1 2009-01-30 Andreas Jaeger <aj@suse.de>
3 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
5 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
6 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
7 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
8 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
9 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
11 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
14 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
15 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
17 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
20 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
21 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
22 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
23 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
25 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
27 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
28 memcpy instead of memcmp.
29 (_dl_setup_pointer_guard): Likewise.
31 2009-01-30 Ulrich Drepper <drepper@redhat.com>
33 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
34 manipulated brk, use malloc_printerr.
35 * misc/sbrk.c (__sbrk): Better error handling for nonsense
38 2009-01-30 Jakub Jelinek <jakub@redhat.com>
40 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
41 rindex): For C++ add inlines so that they can be recognized as
43 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
45 2009-01-29 Ulrich Drepper <drepper@redhat.com>
46 Jakub Jelinek <jakub@redhat.com>
48 * string/string.h: Define correct C++ prototypes for gcc 4.4.
49 * wcsmbs/wchar.h: Likewise.
51 2009-01-29 Ulrich Drepper <drepper@redhat.com>
53 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
54 (stackinfo_sub_sp): Define.
56 2009-01-28 Ulrich Drepper <drepper@redhat.com>
59 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
60 * include/alloca.h (alloca_account): Define.
61 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
62 (stackinfo_sub_sp): Define.
64 * nscd/connections.c (nscd_init): If database file access be
65 opened check whether this is due to permission problems and bail
69 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
70 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
72 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
74 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
75 Add "t" to clobber list.
76 (INTERNAL_SYSCALL_NCS): Likewise.
78 2009-01-28 Ulrich Drepper <drepper@redhat.com>
80 * nss/getent.c (print_networks): Don't print comma between aliases.
82 2009-01-23 Ulrich Drepper <drepper@redhat.com>
84 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
86 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
88 * misc/Makefile (tests): Add bug-hsearch1.
89 * misc/bug-hsearch1.c: New file.
91 2009-01-22 Roland McGrath <roland@redhat.com>
93 * Makeconfig (%.v.i): Strip trailing # comments,
94 not only whole-line comments.
96 2009-01-10 Ulrich Drepper <drepper@redhat.com>
98 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
99 one parameter. If non-NULL use it to initialize return value.
100 (_dl_setup_pointer_guard): New function.
101 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
102 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
103 * elf/rtld.c (security_init): Pass _dl_random to
104 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
106 * elf/dl-sysdep.c (_dl_random): New variable.
107 (_dl_sysdep_start): Handle AT_RANDOM.
108 (_dl_show_auxv): Likewise.
109 * elf/dl-support.c (_dl_random): New variable.
110 (_dl_aux_init): Handle AT_RANDOM.
111 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
112 to _dl_setup_stack_chk_guard.
114 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
116 2009-01-10 Roland McGrath <roland@redhat.com>
118 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
120 2009-01-08 Ulrich Drepper <drepper@redhat.com>
122 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
125 * nss/nss_files/files-parse.c (strtou32): New function.
126 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
127 across 32-bit and 64-bit platforms.
128 (INT_FIELD_MAYBE_NULL): Likewise.
130 2009-01-08 Jakub Jelinek <jakub@redhat.com>
133 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
134 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
135 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
138 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
141 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
142 being NULL also if there are no backreferences.
143 * posix/rxspencer/tests: Add testcases.
145 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
148 * posix/bug-regex17.c: Add testcases.
149 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
152 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
154 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
155 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
156 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
157 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
159 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
160 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
161 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
162 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
163 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
164 * sysdeps/unix/sysv/linux/s390/Versions: New file.
166 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
168 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
169 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
170 re_string_skip_chars, re_string_reconstruct): Likewise.
171 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
173 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
175 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
176 adjust the buffer alignment.
178 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
180 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
181 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
184 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
185 flavor to description only when flavor is not NULL.
187 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
188 mutex after SIGIO/SIGURG lookup loop.
190 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
192 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
194 2009-01-03 Ulrich Drepper <drepper@redhat.com>
196 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
199 2009-01-02 Ulrich Drepper <drepper@redhat.com>
201 * sysdeps/unix/sysv/linux/kernel-features.h
202 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
204 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
205 if no output is written.
207 * version.h: Bump to 2.10 development.
209 * posix/getconf.c: Update copyright year.
210 * nss/getent.c: Likewise.
211 * iconv/iconvconfig.c: Likewise.
212 * iconv/iconv_prog.c: Likewise.
213 * elf/ldconfig.c: Likewise.
214 * catgets/gencat.c: Likewise.
215 * csu/version.c: Likewise.
216 * elf/ldd.bash.in: Likewise.
217 * elf/sprof.c (print_version): Likewise.
218 * locale/programs/locale.c: Likewise.
219 * locale/programs/localedef.c: Likewise.
220 * nscd/nscd.c (print_version): Likewise.
221 * debug/xtrace.sh: Likewise.
222 * malloc/memusage.sh: Likewise.
223 * malloc/mtrace.pl: Likewise.
224 * debug/catchsegv.sh: Likewise.
226 2008-12-29 Mike Frysinger <vapier@gentoo.org>
228 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
231 2008-12-29 Ulrich Drepper <drepper@redhat.com>
233 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
234 gethostbyname4_r function call succeeded, just leave the loop.
237 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
239 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
240 * wctype/Makefile (tests): Add bug-wctypeh.
241 * wctype/bug-wctypeh.c: New file.
243 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
244 LOCALDOMAIN is defined.
245 * nscd/nscd_getai.c (__nscd_getai): Likewise.
247 * sysdeps/x86_64/bits/select.h: New file.
249 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
251 2008-12-21 Bruno Haible <bruno@clisp.org>
254 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
255 if no output is written.
257 2008-12-13 Klaus Dittrich <kladit@arcor.de>
259 * login/utmp_file.c (pututline_file): Replace call to dup2 with
260 libc internal symbol __dup2 to avoid access through the PLT.
262 2008-12-08 Ulrich Drepper <drepper@redhat.com>
265 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
266 available only for __USE_GNU.
268 * inet/Makefile (tests): Add tst-getni2.
269 * inet/tst-getni2.c: New file.
272 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
273 NULL when NI_NAMEREQD is set.
274 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
275 * inet/Makefile (tests): Add tst-getni1.
276 * inet/tst-getni1.c: New file.
278 2008-12-03 Petr Baudis <pasky@suse.cz>
281 * nscd/connections.c (invalidate_cache): Use prune_run_lock
282 instead of prune_lock.
283 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
284 * nscd/nscd.h (database_dyn): Add prune_run_cache.
286 2008-12-07 Ulrich Drepper <drepper@redhat.com>
288 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
291 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
294 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
295 after reading name server list.
298 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
299 handling for host name aliases.
301 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
303 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
304 instead of doing things manually.
306 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
308 * posix/regex_internal.h (build_wcs_upper_buffer):
309 Return type is reg_error_t.
311 2008-12-05 Ulrich Drepper <drepper@redhat.com>
313 * posix/globtest.sh: Use mktemp to create temporary file and
316 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
318 (__CPU_CLR_S): Likewise.
319 (__CPU_ISSET_S): Likewise.
321 2008-12-05 Joseph Myers <joseph@codesourcery.com>
322 Ulrich Drepper <drepper@redhat.com>
324 * scripts/firstversion.awk: Use custom comparison function to compare
326 * scripts/versions.awk: Use sort invocation which can handle
327 multi-digit sub-version numbers.
329 2008-12-04 Ulrich Drepper <drepper@redhat.com>
331 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
332 * locale/iso-639.def: Add Chhattisgarhi entry.
334 2008-12-02 Ulrich Drepper <drepper@redhat.com>
336 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
338 (_nss_dns_gethostbyname4_r): Likewise.
339 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
340 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
341 gethostbyname4_r, we don't have a separate IPv6 status, so copy
342 the no_data variable.
344 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
345 information at the correct index.
347 * socket/sys/socket.h: Declare accept4.
348 * socket/accept4.c: New file.
349 * sysdeps/unix/sysv/linux/accept4.c: New file.
350 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
351 * socket/Makefile (routines): Add accept4.
352 * socket/Versions: Export accept4 with version GLIBC_2.10.
353 * socket/paccept.c: Removed.
354 * sysdeps/unix/sysv/linux/paccept.c: Removed.
355 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
356 * Versions.def: Define GLIBC_2.10 for libc.
357 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
359 * nscd/connections.c: Use accept4.
361 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
363 2008-12-01 Ulrich Drepper <drepper@redhat.com>
365 * resolv/res_send.c (send_dg): Create sockets with non-blocking
368 * stdlib/setenv.c (unsetenv): Don't search environment if it does
370 * stdlib/Makefile (tests): Add tst-unsetenv1.
371 * stdlib/tst-unsetenv1.c: New file.
373 2008-11-29 Ulrich Drepper <drepper@redhat.com>
375 * login/utmp_file.c (file_writable): New variable.
376 (setutent_file): Don't try to open file for writing.
377 (pututline_file): Before writing, make descriptor writable if
380 2008-11-26 Ulrich Drepper <drepper@redhat.com>
382 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
383 to IPv4 or IPv6 if an interface has been found.
385 2008-11-26 Roland McGrath <roland@redhat.com>
387 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
388 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
390 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
391 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
392 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
394 * elf/elf.h (NT_386_IOPERM): New macro.
395 (NT_PPC_VSX): New macro.
397 2008-11-25 Roland McGrath <roland@redhat.com>
399 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
400 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
401 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
402 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
403 Subdirectories moved to ports repository.
404 * configure.in (base_machine): Remove alpha case.
406 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
408 * sysdeps/mach/strerror_l.c: New file.
410 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
413 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
414 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
416 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
417 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
418 (relax_fenv_state): Same as above.
419 (FPSCR_29): Reserve bit in ISA 2.05.
420 (FPSCR_NI): Provide define for compat.
421 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
423 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
425 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
426 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
427 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
428 access to hwcap to account for hwcap size increase to uint64_t.
429 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
431 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
432 (*setcontext): Likewise.
433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
435 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
437 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
438 (*setcontext): dynamically select mtfsf insn based on
439 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
440 increase to uint64_t.
441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
442 (*swapcontext): dynamically select mtfsf insn based on
443 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
444 increase to uint64_t.
445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
447 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
450 (*setcontext): dynamically select mtfsf insn based on
452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
453 (*swapcontext): dynamically select mtfsf insn based on
456 2008-11-13 Ulrich Drepper <drepper@redhat.com>
458 * version.h: Bump for 2.9 release.
459 * include/features.h (__GLIBC_MINOR__): Bump to 9.
462 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
463 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
466 2008-11-11 Ulrich Drepper <drepper@redhat.com>
469 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
470 unknown request types for now.
472 2008-11-11 Roland McGrath <roland@redhat.com>
474 * sysdeps/x86_64/configure: New file.
476 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
477 * configure: Regenerated.
479 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
481 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
482 correct instruction to remove the stack frame.
484 2008-11-03 Michael Matz <matz@suse.de>
486 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
487 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
489 2008-11-07 Jakub Jelinek <jakub@redhat.com>
491 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
494 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
495 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
496 of the thread variable instead of void *.
497 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
498 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
499 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
500 __libc_tsd_define arguments.
501 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
502 __libc_tsd_address arguments. Remove union hack.
503 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
504 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
505 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
506 Adjust __libc_tsd_{set,get} arguments.
507 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
508 __libc_tsd_define arguments.
509 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
511 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
512 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
513 (LOCALE): Adjust __libc_tsd_define arguments.
514 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
516 (LOCALE): Adjust __libc_tsd_define arguments.
517 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
519 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
522 2008-11-02 Ulrich Drepper <drepper@redhat.com>
524 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
525 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
527 2008-11-01 Ulrich Drepper <drepper@redhat.com>
530 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
532 2008-10-24 Joseph Myers <joseph@codesourcery.com>
533 Ulrich Drepper <drepper@redhat.com>
535 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
536 definition for GCC 3.1 and later.
538 2008-10-31 Jakub Jelinek <jakub@redhat.com>
540 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
541 refetch dtv, as it might have changed.
542 * elf/Makefile: Add rules to build and run tst-tls18.
543 * elf/tst-tls18.c: New test.
544 * elf/tst-tlsmod18a.c: New file.
546 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
549 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
551 2008-10-31 Ulrich Drepper <drepper@redhat.com>
554 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
557 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
558 Fix length of copy operation.
560 2008-10-02 Pierre Habouzit <madcoder@debian.org>
562 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
563 and fix its calling convention.
565 2008-10-07 Andreas Schwab <schwab@suse.de>
568 * resolv/res_send.c (send_vc): Fix last change.
569 (send_dg): Align here as well.
571 2008-10-31 Ulrich Drepper <drepper@redhat.com>
573 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
574 return value in case rlimit is RLIM_INFINITY.
577 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
579 * resource/Makefile (tests): Add bug-ulimit1.
580 * resource/bug-ulimit1.c: New file.
583 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
584 without dot. Properly terminate the string with a null byte.
585 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
588 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
590 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
594 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
596 2008-10-30 Ulrich Drepper <drepper@redhat.com>
598 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
599 abort if there is no initgroups_dyn function.
601 * resolv/res_send.c (send_dg): On timeout, only return nonzero
602 result if any of the queries really provided an answer.
604 2008-10-28 Ulrich Drepper <drepper@redhat.com>
606 * po/lt.po: Update from translation team.
608 2008-10-26 Ulrich Drepper <drepper@redhat.com>
610 * po/id.po: Update from translation team.
612 2008-10-24 Ulrich Drepper <drepper@redhat.com>
614 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
615 Fix tests for existence of second reply.
617 2008-10-23 Ulrich Drepper <drepper@redhat.com>
619 * po/id.po: New file.
620 Contributed by the Indonesian translation team.
622 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
624 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
627 2008-10-17 Jakub Jelinek <jakub@redhat.com>
629 * elf/Makefile: Add rules to build and run tst-tls17.
630 * elf/tst-tls17.c: New test.
631 * elf/tst-tlsmod17a.c: New file.
632 * elf/tst-tlsmod17b.c: Likewise.
634 2008-10-17 Ulrich Drepper <drepper@redhat.com>
636 * stdlib/divmod_1.c: Use correct type for dummy variable.
637 * stdlib/mod_1.c: Likewise.
639 2008-10-16 Ulrich Drepper <drepper@redhat.com>
641 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
643 2008-10-16 Jakub Jelinek <jakub@redhat.com>
645 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
646 __nonnull order for C++.
647 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
648 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
650 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
652 * stdlib/longlong.h: Update from GCC.
654 2008-10-09 Jakub Jelinek <jakub@redhat.com>
655 David S. Miller <davem@davemloft.net>
657 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
658 make sure any registers used with 64-bit 'branch-on-register'
659 instructions have their top 32-bits clear.
660 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
661 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
663 2008-09-18 Andreas Schwab <schwab@suse.de>
666 * resolv/res_send.c (send_vc): Fix use of unaligned address.
667 Properly handle partial reads.
669 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
671 * elf/elf.h (STO_MIPS_PLT): New.
673 (R_MIPS_JUMP_SLOT): New.
674 (R_MIPS_NUM): Redefine to 128.
675 (DT_MIPS_PLTGOT): New.
676 (DT_MIPS_RWPLT): New.
677 (DT_MIPS_NUM): Redefine to 0x35.
679 2008-10-01 Ulrich Drepper <drepper@redhat.com>
681 * timezone/africa: Update from tzdata2008f.
682 * timezone/asia: Likewise.
683 * timezone/australasia: Likewise.
684 * timezone/europe: Likewise.
685 * timezone/leapseconds: Likewise.
686 * timezone/northamerica: Likewise.
687 * timezone/southamerica: Likewise.
688 * timezone/zone.tab: Likewise.
690 2008-09-30 Ulrich Drepper <drepper@redhat.com>
692 * nscd/connections.c: Disable use of paccept for now.
694 2008-09-29 Ulrich Drepper <drepper@redhat.com>
696 * socket/Versions: Remove paccept export for GLIBC_2.9.
697 * socket/Makefile (routines): Remove paccept.
698 * socket/sys/socket.h: Remove paccept declaration.
700 * po/sv.po: Update from translation team.
702 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
704 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
705 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
707 2008-09-16 Ulrich Drepper <drepper@redhat.com>
709 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
710 Patch by Olivier Fourdan <ofourdan@redhat.com>.
712 2008-09-15 Ulrich Drepper <drepper@redhat.com>
714 * sunrpc/rpc/svc.h: Declare svcfd_create.
715 Patch by Michael Solberg <msolberg@redhat.com>.
717 2008-09-12 Flavio Leitner <fleitner@redhat.com>
718 Ulrich Drepper <drepper@redhat.com>
720 * malloc/malloc.c (public_vALLOc): Try other arenas in case
722 (public_pVALLOc): Likewise.
724 2008-09-02 Andreas Jaeger <aj@suse.de>
726 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
729 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
732 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
734 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
736 * Makefile (check-data): Check data directory in add-ons.
737 * elf/Makefile (check-data): Likewise.
739 2008-08-18 Roland McGrath <roland@redhat.com>
741 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
742 * configure: Regenerated.
743 * config.make.in (cflags-cpu): New substituted variable.
744 (with-cpu): Variable removed.
745 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
747 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
750 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
751 __signbitl definition and __LONG_DOUBLE_128__ guard from:
752 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
753 redundant. Functions which call floating point assembler operations
754 should go into a sysdeps powerpc/fpu directory.
756 2008-08-15 Ulrich Drepper <drepper@redhat.com>
758 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
759 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
761 2008-08-14 Ulrich Drepper <drepper@redhat.com>
763 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
765 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
766 change related to AT_EXECFN. We cannot use that string.
767 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
769 * elf/dl-support.c: Remove _dl_execfn variable.
770 (_dl_aux_init): Remove handling of AT_EXECFN.
771 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
772 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
774 2008-08-13 Ulrich Drepper <drepper@redhat.com>
777 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
778 byte gets added to writes and seeks from the end use the length of
779 the buffer and not the currently terminating NUL byte.
782 * login/utmp_file.c (getutent_r_file): Take additional parameter.
783 Set to true if locking failed.
784 (getutid_r_file): Adjust caller.
785 (pututline_file): Likewise. Return NULL in this case.
786 Patch mostly by halesh.s@gmail.com.
788 2008-08-12 Ulrich Drepper <drepper@redhat.com>
791 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
793 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
795 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
798 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
799 macro since it is now available in elf/dynamic-link.h.
801 2008-08-12 Roland McGrath <roland@frob.com>
803 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
804 in case used outside of libc.
805 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
807 2008-08-11 Ulrich Drepper <drepper@redhat.com>
809 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
810 directly instead of going through dn_comp.
812 2008-08-11 Aurelien Jarno <aurel32@debian.org>
814 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
817 2008-08-07 Ulrich Drepper <drepper@redhat.com>
820 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
821 (IPV6_PMTUDISC_PROBE): Likewise.
823 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
826 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
828 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
829 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
832 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
833 Added the members 'vsx' and 'arch_2_06'.
834 (_dl_powerpc_platforms): Add the member 'power7'.
835 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
836 to reflect the changes required by VSX and ISA 2.06.
837 Modify _DL_PLATFORMS_COUNT to reflect the addition of
839 Defined PPC_PLATFORM_POWER7.
840 (_dl_string_platform): Add support for POWER7.
841 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
842 capability and ISA 2.06.
844 2008-08-07 Ulrich Drepper <drepper@redhat.com>
847 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
848 macro to detect use of 128 bit long double.
849 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
851 2008-08-05 Ulrich Drepper <drepper@redhat.com>
853 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
856 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
858 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
859 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
861 2008-08-03 Ulrich Drepper <drepper@redhat.com>
863 * nscd/connections.c (main_loop_poll): Pass a buffer which is
864 guaranteed to be large enough to read inotify event. Ignore
865 EAGAIN error. Better error message. Add branch predicition.
866 (main_loop_epoll): Likewise.
868 2008-08-02 Roland McGrath <roland@frob.com>
870 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
873 2008-08-02 Ulrich Drepper <drepper@redhat.com>
875 * manual/arith.texi: Avoid @strong{Note:}.
876 * manual/creature.texi: Likewise.
877 * manual/filesys.texi: Likewise.
878 * manual/math.texi: Likewise.
879 * manual/memory.texi: Likewise.
880 * manual/resource.texi: Likewise.
881 * manual/syslog.texi: Likewise.
882 * manual/time.texi: Likewise.
884 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
887 2008-08-01 Ulrich Drepper <drepper@redhat.com>
889 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
890 new epoll_create1 interface.
891 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
892 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
893 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
895 * include/arpa/nameser.h (NS_GET16): Use const pointer.
896 (NS_GET32): Likewise.
898 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
901 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
902 use the AT_EXECFN value if it is no absolute path.
903 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
906 * Versions.def: Add GLIBC_2.9 to libresolv.
907 * include/resolv.h: Remove hidden proto declarations for __ns_*
908 functions. Add them for __dn_count_labels and __p_secstodate.
909 * include/arpa/nameser.h: Add a number of hidden proto declarations.
910 Define ns_msg_getflags macro here.
911 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
913 * resolv/Versions: Export functions from <arpa/nameser.h> from
914 libresolv in version GLIBC_2.9.
915 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
917 * resolv/ns_netint.c: Likewise.
918 * resolv/ns_parse.c: Likewise.
919 * resolv/ns_print.c: Likewise.
920 * resolv/ns_samedomain.c: Likewise.
921 * resolv/ns_ttl.c: Likewise.
922 * resolv/arpa/nameser_compat.h: Likewise.
923 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
925 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
927 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
928 __ns_get32 instead of ns_get16 and ns_get32 respectively.
929 (gaih_getanswer_slice): Likewise.
930 * resolv/Makefile (libresolv-routines): Add ns_date.
931 * resolv/ns_date.c: New file.
933 * elf/Makefile (check-localplt.out): Also check libresolv and
936 2008-07-31 Ulrich Drepper <drepper@redhat.com>
938 * sysdeps/unix/sysv/linux/kernel-features.h: Define
941 2008-07-30 Ulrich Drepper <drepper@redhat.com>
943 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
944 buffer passed to NSS functions.
946 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
948 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
951 * misc/syslog.c (openlog_internal): Fix compile problem.
953 2008-07-28 Roland McGrath <roland@redhat.com>
955 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
957 2008-07-28 Ulrich Drepper <drepper@redhat.com>
959 * io/ftw.c (add_object): Remove inline to avoid warning.
961 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
963 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
964 Use it instead of locally defined resplen2 variable.
965 (res_nsend): Adjust for __libc_res_nsend interface change.
966 (send_vc): Initialize *resplen2 if necessary. Read length of
967 package into an appropriately aligned variable. Store converted length
968 in new variable and use it appropriately.
969 Add branch prediction help.
970 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
971 and pass it on to __libc_res_nsend. Adjust all callers.
972 (__libc_res_nsearch): Likewise.
973 (__libc_res_nqeurydomain): Likewise.
974 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
976 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
977 Define resplen2 variable and pass it to __libc_res_nsearch and then
979 (getanswer_r): In case of incorrect DNS data don't overread buffer.
980 Add branch prediction.
981 (gaih_getanswer_slice): Likewise. Check for invalid data types.
982 (gaih_getanswer): Don't decode second slice if first one failed due
983 to a too small buffer. Don't let not found status of second
984 decoder shadow results of the first.
985 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
986 and __libc_res_nquery interface changes
987 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
988 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
989 __libc_res_nsearch, and __libc_res_nsend.
990 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
992 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
993 __libc_res_nsearch interface changes.
995 2008-07-27 Ulrich Drepper <drepper@redhat.com>
997 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
999 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1000 file descriptors with close-on-exec set.
1001 (exec_comm_child): Fix the case where the write end of the pipe is
1002 STDOUT_FILENO already. In case it is, clear close-on-exec.
1004 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1005 * io/pipe2.c: Likewise.
1006 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1007 instead of __ASSUME_PACCEPT.
1008 * include/unistd.h: Declare __have_pipe2.
1009 * libio/iopopen.c: Implement "e" flag.
1010 * libio/Makefile (tests): Add tst-popen1.
1011 * libio/tst-popen1.c: New file.
1013 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1014 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1016 2008-07-26 Ulrich Drepper <drepper@redhat.com>
1019 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1020 success call of _IO_SEEKOFF or calls which failed because the
1021 descriptor is for a pipe.
1023 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1026 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1028 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
1029 F_SETFD use if we know fopen set the flag.
1031 * login/utmp_file.c (setutent_file): Minor optimization in case
1032 O_CLOEXEC is available.
1034 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
1036 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1037 * elf/Makefile: Use pie-ccflag variable.
1038 * nscd/Makefile: Likewise.
1039 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1041 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1044 * Versions.def: Add GLIBC_2.9 version tag for libutil.
1045 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1046 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
1047 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1048 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
1049 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1050 utmp32, utmpx32 and login32.
1051 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1052 versions of struct utmp functions to libc and libutil.
1053 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1054 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1055 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1056 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1057 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1058 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1059 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1060 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1061 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1062 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1063 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1064 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1065 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1066 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1067 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1068 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1069 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1070 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1071 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1072 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1073 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1074 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1076 2008-07-26 Ulrich Drepper <drepper@redhat.com>
1078 * scripts/gen-as-const.awk: Generate more widely usable code by
1079 using 64-bit arithmetic.
1081 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1082 the same treatment as narrow output code in last patch.
1084 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1087 * elf/dl-load.c (local_strdup): Remove inline.
1088 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1089 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1092 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1094 2008-07-25 Ulrich Drepper <drepper@redhat.com>
1096 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1097 the new syscalls, too.
1099 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1100 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1103 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1104 parameter for end of buffer. If temporary copy is too large use
1106 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1108 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
1109 string rewrite when allocating buffer.
1111 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1114 * nscd/connections.c (nscd_init): Clean up fcntl call.
1116 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1117 SOCK_NONBLOCK if possible.
1119 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1120 SOCK_CLOEXEC if available.
1122 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1123 __libc_clntudp_bufcreate_internal.
1124 * include/sys/socket.h: Declare __have_sock_cloexec.
1125 * socket/Makefile (aux): Add have_sock_cloexec.
1126 * socket/have_sock_cloexec.c: New file.
1127 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1128 __libc_clntudp_bufcreate.
1129 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1130 which takes an additional parameter. Create socket with non-blocking
1131 mode and close-on-exec flag set, if wanted.
1132 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1133 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1134 instead of clntudp_create. The socket has already the close-on-exec
1135 flag set if SOCK_CLOEXEC is defined.
1137 2008-07-24 Ulrich Drepper <drepper@redhat.com>
1139 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1140 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1142 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1143 non-blocking mode by using socket, paccept, and inotify_init1.
1145 * Versions.def (glibc): Add GLIBC_2.9.
1146 * io/Makefile (routines): Add dup3 and pipe2.
1147 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1148 * io/dup3.c: New file.
1149 * io/pipe2.c: New file.
1150 * posix/unistd.h: Declare dup3 and pipe2.
1151 * socket/Makefile (routines): Add paccept.
1152 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1153 * socket/paccept.c: New file.
1154 * socket/sys/socket.h: Declare paccept.
1155 * sysdeps/unix/syscalls.list: Add entry for dup3.
1156 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1157 epoll_create2 and inotify_init1.
1158 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1159 * sysdeps/unix/sysv/linux/paccept.c: New file.
1160 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1162 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1163 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1164 inotify_init1, and pipe2 entries.
1165 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1166 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1167 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1168 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1169 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1170 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1172 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1173 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1174 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1175 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1176 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1177 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1178 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1179 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1180 EPOLL_NONBLOCK. Declare epoll_create2.
1181 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1183 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1184 IN_NONBLOCK. Declare inotify_init1.
1185 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1187 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1190 * elf/elf.h: Define AT_EXECFN.
1191 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1193 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1194 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
1195 if __ASSUME_AT_EXECFN is defined.
1196 (_dl_aux_init): Handle AT_EXECFN.
1197 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1199 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1200 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1201 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1202 _dl_execfn if available and avoid compatibility code if
1203 __ASSUME_AT_EXECFN is defined.
1205 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1206 _dl_discover_osversion only for older kernels.
1208 2008-07-22 Roland McGrath <roland@frob.com>
1210 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1212 2008-07-21 Roland McGrath <roland@frob.com>
1214 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1215 returned too much data out of line.
1217 2008-07-20 Ulrich Drepper <drepper@redhat.com>
1219 * locale/setlocale.c (setname): Remove inline to avoid compiler
1223 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1225 2008-07-15 Ulrich Drepper <drepper@redhat.com>
1227 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1228 doesn't manage to write anything, fail.
1230 * malloc/hooks.c (__malloc_check_init): Remove printf.
1232 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1234 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1236 2008-07-12 Ulrich Drepper <drepper@redhat.com>
1238 * nscd/connections.c (main_loop_poll): Fix handling of read errors
1240 (main_loop_epoll): Likewise.
1242 2008-07-09 Ulrich Drepper <drepper@redhat.com>
1244 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1246 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1247 if DEBUG is defined.
1249 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1250 query. Adjust buffer size computation for padding.
1252 2008-07-08 Ulrich Drepper <drepper@redhat.com>
1254 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1255 * stdio-common/tst-setvbuf1.c: New file.
1256 * stdio-common/tst-setvbuf1.expect: New file.
1259 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1260 when selecting fully-buffered stream.
1261 Patch by Wang Xin <wxinee@gmail.com>.
1263 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
1265 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1266 (__open_2): New function.
1267 (__open64_2): New alias to __open_2.
1268 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1269 (__openat_2): New function.
1270 (__openat64_2): New alias to __openat_2.
1272 2008-07-06 Ulrich Drepper <drepper@redhat.com>
1275 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1277 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1279 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1280 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1281 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1283 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1284 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1285 * sysdeps/mach/hurd/send.c (__send): Likewise.
1286 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1287 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1289 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1291 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1292 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1293 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1294 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1295 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1296 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1298 2008-06-27 Ulrich Drepper <drepper@redhat.com>
1301 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1303 Patch by Petr Baudis.
1305 2008-06-26 Ulrich Drepper <drepper@redhat.com>
1307 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1308 Patch by Peter Jones <pjones@redhat.com>.
1310 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1313 * stdlib/canonicalize.c (__realpath): readlink can write too much
1314 into the buffer on platforms without PATH_MAX.
1316 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1319 * posix/tst-regex.c (main): Rename to...
1320 (do_test): ... this. Remove cmdline option processing.
1322 (TEST_FUNCTION): Define.
1323 (CMDLINE_OPTIONS): Define.
1325 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1328 * configure.in: Add -Werror to -fstack-protector test to catch
1329 unsupported architectures.
1330 Patch by Gilles Esponasse <g.esp@free.fr>.
1332 2008-06-17 Joseph Myers <joseph@codesourcery.com>
1334 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1335 getcontext returns ENOSYS.
1337 2008-06-18 Ulrich Drepper <drepper@redhat.com>
1339 * nscd/connections.c (main_loop_poll): Fix test for read error.
1340 (main_loop_epoll): Likewise.
1342 2008-06-13 Ulrich Drepper <drepper@redhat.com>
1344 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1345 better place so it is not called when nscd is used.
1347 * nscd/connections.c: Also recognize and handle changes to the
1348 resolver configuration file.
1350 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1352 * time/strftime.c: Pass reference to tzset_called around to handle
1356 * time/strftime.c (__strftime_internal): Call tzset() only
1357 when printing timezone-dependent values.
1358 Based on a patch by Petr Baudis <pasky@suse.cz>.
1360 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1361 unconditionally use second gaih_getanswer_slice result.
1363 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1364 (getaddrinfo): RES must always be non-NULL.
1366 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1368 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1370 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1371 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1373 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1376 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1378 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1380 * nscd/connections.c (inotify_fd): New variable.
1381 (nscd_init): Try to open an inotify descriptor.
1382 If successful, watch files for databases using inotify instead of
1383 having prune threads stat the files.
1384 (nscd_run_prune): Recognize clear_cache flag being set and call
1385 prune_cache appropriately.
1386 (main_loop_poll): Add inotify descriptor to wait set and handle the
1388 (main_loop_epoll): Likewise.
1389 * nscd/cache.c (prune_cache): Don't stat files for databases if
1391 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1392 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1394 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1395 fixed-size portion of the record.
1396 * nscd/servicescache.c (cache_addserv): Likewise.
1397 * nscd/pwdcache.c (cache_addpw): Likewise.
1398 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1400 2008-06-11 Ulrich Drepper <drepper@redhat.com>
1402 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1403 out we don't use uninitialized memory.
1405 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1408 2008-06-10 Ulrich Drepper <drepper@redhat.com>
1410 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1411 ignore T_DNAME messages.
1412 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1414 2008-06-05 Jakub Jelinek <jakub@redhat.com>
1416 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1417 Avoid segfault if first GETC returns eof/'\0'/'\n'.
1419 2008-06-03 Jakub Jelinek <jakub@redhat.com>
1421 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1422 instead of portstr to nscd_getserv_r. Patch by
1423 Roman Kagan <rkagan@mail.ru>.
1425 2008-05-26 Jim Meyering <meyering@redhat.com>
1427 Remove more useless "if" tests before "free".
1428 * include/inline-hashtab.h (htab_delete): Likewise.
1429 * libio/freopen.c (freopen): Likewise.
1430 * libio/freopen64.c (freopen64): Likewise.
1431 * locale/programs/ld-collate.c (collate_read): Likewise.
1432 * misc/fstab.c (libc_freeres_fn): Likewise.
1433 * posix/glob.c (globfree): Likewise.
1435 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1437 * string/Makefile (strop-tests): Add memmem.
1438 * string/test-memmem.c: New file.
1439 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1440 (test_init): Size buf1 according to BUF1PAGES.
1442 2008-05-24 Jakub Jelinek <jakub@redhat.com>
1444 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1445 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1446 (CFLAGS-scanf17.c): New.
1447 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1448 * stdio-common/scanf15.c (main): Likewise.
1449 * stdio-common/scanf16.c: New file.
1450 * stdio-common/scanf17.c: New file.
1452 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1454 * resolv/res_send.c (send_dg): If we already have one of two
1455 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1456 use the one answer insted of failing.
1458 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
1460 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1461 being executed on PowerPC as the expected result exceeds IBM
1462 long double 128 __LDBL_MAX__.
1464 2008-05-21 Roland McGrath <roland@redhat.com>
1466 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1468 * Makefile (check-data): Use $(abi-name) before other guesses.
1469 Look in $(add-ons) dirs before scripts/data/.
1470 * elf/Makefile (check-data): Likewise.
1472 * scripts/soversions.awk: Grok ABI line.
1473 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1474 Emit definition for abi-name variable.
1476 2008-05-21 Ulrich Drepper <drepper@redhat.com>
1478 * string/endian.h: Define new fixed-size hto* and *toh macros only
1481 * iconvdata/Depend: Add localedata.
1483 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1485 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1487 2008-05-08 David S. Miller <davem@davemloft.net>
1489 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1491 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1492 (__SYSCALL_CLOBBERS): Remove %g* registers.
1493 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1494 (__SYSCALL_CLOBBERS): Likewise.
1495 * scripts/data/localplt-sparc-linux-gnu.data: New file.
1496 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1498 2008-05-21 Jakub Jelinek <jakub@redhat.com>
1500 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1501 (CALL_ERRNO_LOCATION): Define.
1502 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1503 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1504 (CALL_ERRNO_LOCATION): Define.
1505 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1506 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1507 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1509 2008-05-20 Ulrich Drepper <drepper@redhat.com>
1511 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1514 2008-05-20 Jakub Jelinek <jakub@redhat.com>
1516 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1517 (FIRST_FRAME_POINTER): Define.
1519 2008-05-09 David S. Miller <davem@davemloft.net>
1521 * sysdeps/sparc/sparc64/backtrace.c: New file.
1523 2008-05-14 David S. Miller <davem@davemloft.net>
1525 * sysdeps/sparc/machine-gmon.h: New file.
1526 * sysdeps/sparc/sparc-mcount.S: Likewise.
1527 * sysdeps/sparc/Makefile: Add sparc-mcount target to
1528 sysdep_routines in gmon directory.
1530 2008-05-19 Jakub Jelinek <jakub@redhat.com>
1532 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1534 2008-05-19 Ulrich Drepper <drepper@redhat.com>
1536 * resolv/res_query.c (__libc_res_nquery): In case one of two
1537 answer was too short don't try to read that answer's header.
1539 * resolv/res_send.c (send_dg): In case of timeout and there are
1540 two queries and one has been answered, return value indicating
1543 2008-05-18 Ulrich Drepper <drepper@redhat.com>
1545 * nscd/cache.c (cache_add): Take additional parameter specifying
1546 whether this is in response of a cache refill. Check alignment
1547 of package data. Revamp waking of pruning thread.
1548 (prune_cache): Small optimization.
1549 * nscd/nscd.h: Adjust cache_add prototypes.
1550 * nscd/aicache.c: Adjust cache_add calls.
1551 * nscd/grpcache.c: Likewise.
1552 * nscd/hstcache.c: Likewise.
1553 * nscd/initgrcache.c: Likewise.
1554 * nscd/pwdcache.c: Likewise.
1555 * nscd/servicescache.c: Likewise.
1556 * nscd/connections.c (restart): Really disable cache use before
1557 exec attempt. If it fails, reenable cache.
1558 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
1559 time to max to be able to notice concurrent cache additions. Unlock
1560 prune_lock while performing gc. Afterwards compute wakeup time with
1561 current wakeup_time value in mind.
1563 2008-05-17 Ulrich Drepper <drepper@redhat.com>
1565 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1567 * nscd/mem.c (gc): Correctly determine highest used array element
1570 * nscd/mem.c (markrange): Add assert to check entries are all
1571 aligned. Small cleanup in bitmap use.
1573 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1574 blockoff of type nscd_ssize_t.
1575 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1576 (mempoll_alloc): Record block offset and not address.
1578 * nscd/mem.c (gc): Fix test for stack overuse.
1580 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1583 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1584 entry is available, believe it.
1586 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1587 no answers return NSS_STATUS_NOTFOUND.
1588 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1589 buffer does not have any content.
1591 2008-05-16 Ulrich Drepper <drepper@redhat.com>
1593 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1595 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1596 lookup, don't assign canon unconditionally.
1598 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1600 * string/Makefile (distribute): Add str-two-way.h.
1602 2008-03-29 Eric Blake <ebb9@byu.net>
1604 Rewrite string searches to O(n) rather than O(n^2).
1605 * string/str-two-way.h: New file. For linear fixed-allocation
1607 * string/memmem.c: New implementation.
1608 * string/strstr.c: New implementation.
1609 * string/strcasestr.c: New implementation.
1611 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
1613 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1615 (calc_first): Initialize constraint field.
1616 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1617 Use search_duplicated_node to avoid loops. Fix grammar.
1618 (duplicate_node): Merge constraint field for all node types.
1619 (calc_eclosure_iter): Look at constraint field for all node types.
1620 * posix/regex_internal.c (create_cd_newstate): Don't look at
1623 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1626 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1629 * string/endian.h: Add macros for fixed-size endian conversion.
1630 * bits/byteswap.h: Allow inclusion from <endian.h>.
1631 * sysdeps/i386/bits/byteswap.h: Likewise.
1632 * sysdeps/ia64/bits/byteswap.h: Likewise.
1633 * sysdeps/s390/bits/byteswap.h: Likewise.
1634 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1635 * string/Makefile (tests): Add tst-endian.
1636 * string/tst-endian.c: New file.
1638 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1639 Patch by Reuben Thomas.
1641 2008-05-14 Joseph Myers <joseph@codesourcery.com>
1643 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1645 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1647 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1650 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1652 (BODY for __gconv_transform_internal_ascii): Likewise.
1655 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1656 to be treated like link-local addresses.
1657 (match_prefix): Don't treat IPv4 loopback address special when
1658 converting to v4 mapped addressed.
1660 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1662 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1663 * posix/tst-rfc3484-2.c: Likewise.
1664 * posix/tst-rfc3484-3.c: Likewise.
1666 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1669 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1671 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1673 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1675 2008-05-13 Ulrich Drepper <drepper@redhat.com>
1677 * po/lt.po: New file. From Lituanian translation team.
1679 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
1681 Introduce TLS descriptors for i386 and x86_64.
1682 * include/inline-hashtab.h: New file, copied from 2005's
1683 libiberty, with fix for memory leak imported afterwards by
1684 Glauber de Oliveira Costa.
1685 * elf/tlsdeschtab.h: New file.
1686 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1687 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1688 (CHECK_STATIC_TLS): Move to...
1689 * elf/dynamic-link.h: ... this file.
1690 (TRY_STATIC_TLS): New macro.
1691 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1692 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1693 R_386_TLS_DESC): Define.
1694 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1696 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1697 R_X86_64_TLSDESC): Define.
1698 (R_386_NUM, R_X86_64_NUM): Adjust.
1699 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1700 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1701 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1702 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1703 release tlsdesc_table.
1704 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1705 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1706 (elf_machine_rel): Handle R_386_TLS_DESC.
1707 (elf_machine_rela): Likewise.
1708 (elf_machine_lazy_rel): Likewise.
1709 (elf_machine_lazy_rela): Likewise.
1710 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1711 * sysdeps/i386/dl-tlsdesc.S: New file.
1712 * sysdeps/i386/dl-tlsdesc.h: New file.
1713 * sysdeps/i386/tlsdesc.c: New file.
1714 * sysdeps/i386/tlsdesc.sym: New file.
1715 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1717 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1718 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1719 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1720 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1721 release tlsdesc_table.
1722 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1723 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1724 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1725 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1726 (elf_machine_rela): Likewise.
1727 (elf_machine_lazy_rel): Likewise.
1728 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1729 (__tls_get_addr): Do not declare for non-shared compiles.
1730 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1731 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1732 * sysdeps/x86_64/tlsdesc.c: New file.
1733 * sysdeps/x86_64/tlsdesc.sym: New file.
1734 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1735 tlsdesc_table for both 32- and 64-bit structs.
1737 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1739 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1740 its own function. This reduces the frame setup costs and more.
1742 2008-02-11 Joseph Myers <joseph@codesourcery.com>
1745 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1746 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1748 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1750 * io/openat.c (__openat_2): Also pass fd to __openat.
1751 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1752 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1754 * string/tester.c (test_memcmp): Add a few more tests.
1755 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1757 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1759 * nscd/cache.c (cache_add): Before returning with failure and this
1760 is the first use of the record, mark it as unusable.
1761 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1762 reporting a failure.
1763 * nscd/grpcache.c: Likewise
1764 * nscd/hstcache.c: Likewise.
1765 * nscd/initgrcache.c: Likewise.
1766 * nscd/pwdcache.c: Likewise.
1767 * nscd/servicescache.c: Likewise.
1769 2008-05-10 Roland McGrath <roland@redhat.com>
1772 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1774 2008-05-08 David S. Miller <davem@davemloft.net>
1776 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1778 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1779 (__ieee754_y0l): Likewise.
1780 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1781 (__ieee754_y1l): Likewise.
1782 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1783 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1784 frexpl and ldexpl. math_private.h provides them and the latter
1786 (__log1pl): Use __frexpl.
1788 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1790 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1792 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1793 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1794 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1795 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1797 (_nss_nis_gethostbyname4_r): New function.
1798 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1799 Change to also handle af==AF_UNSPEC.
1800 (get_tablename): New function. Use it to avoid duplication.
1801 (_nss_nisplus_gethostbyname4_r): New function.
1802 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1804 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1805 * nss/nss.h: Define struct gaih_addrtuple.
1806 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1808 (_nss_files_gethostbyname4_r): New function.
1809 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1810 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1812 * resolv/res_query.c (__libc_res_nquery): Take two additional
1813 parameters for second answer buffer. Handle type=T_UNSPEC to mean
1814 look up IPv4 and IPv6.
1816 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1817 for an additional query and answer buffer. Pass to send_vc and
1819 (send_vc): Send possibly two requests and receive two answers.
1820 (send_dg): Likewise.
1821 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1823 (_nss_dns_gethostbyname4_r): New function.
1824 (gaih_getanswer_slice): Likewise.
1825 (gaih_getanswer): Likewise.
1826 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1827 __libc_res_nquery call.
1828 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1829 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1830 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1833 2008-05-05 David S. Miller <davem@davemloft.net>
1835 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1836 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1838 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1840 Fix termios bit macros.
1841 Move *DLY definitions where they belong, in termios.h.
1842 Add *[0-3] definitions.
1843 Fixes confusion between VT and FF.
1844 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1845 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1846 are already defined to avoid collision with termios.h.
1847 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1848 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1849 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1850 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1851 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1852 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1853 VTDLY, VT0, VT1): New macros.
1854 [__USE_GNU] (OLCUC): Change value of macro.
1855 [__USE_XOPEN] (OFILL): New macro.
1856 [__USE_BSD] (CRTSCTS): Change value.
1857 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1858 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1859 (B7200, B14400, B28800, B76800): New macros.
1861 2008-05-01 David S. Miller <davem@davemloft.net>
1863 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1864 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1865 (gen-as-const-headers): Add it.
1866 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1867 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1868 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1869 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1871 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1872 six system call parameters.
1873 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1875 2008-04-30 Ulrich Drepper <drepper@redhat.com>
1877 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1879 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1880 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1882 2008-04-30 Jakub Jelinek <jakub@redhat.com>
1884 * stdlib/tst-setcontext.c: Include unistd.h.
1886 2008-04-25 David S. Miller <davem@davemloft.net>
1888 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1889 Pass "union semun" properly in to sys_ipc, it must be passed
1890 by value, not by reference.
1892 2008-04-22 Jakub Jelinek <jakub@redhat.com>
1894 * nscd/Makefile (nscd-cflags): Set back to -fpie.
1895 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1896 * nscd/connections.c (mem_in_flight): Likewise.
1898 * nscd/nscd.h (dbs): Make hidden.
1900 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1901 Avoid returning -1, return 0 instead.
1903 2008-04-19 Ulrich Drepper <drepper@redhat.com>
1905 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1907 2008-04-15 Ulrich Drepper <drepper@redhat.com>
1910 * sysdeps/unix/sysv/linux/times.c: New file.
1913 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1914 mem_in_flight_list variables. Add new parameter to mempool_alloc
1916 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1917 appropriate mem_in_flight element.
1918 (gc): Take allocations which have not yet been committed to the
1919 database into account.
1920 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1921 Reset mem_in_flight before returning.
1922 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1923 cue it up in mem_in_flight_list.
1924 * nscd/aicache.c: Adjust mempool_alloc call.
1925 * nscd/grpcache.c: Likewise.
1926 * nscd/hstcache.c: Likewise.
1927 * nscd/initgrcache.c: Likewise.
1928 * nscd/pwdcache.c: Likewise.
1929 * nscd/servicescache.c: Likewise.
1930 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1933 * nscd/connections.c (handle_request): Provide better error message
1934 in case SELinux forbids the service.
1936 * version.h (VERSION): Bump to 2.8.90.
1938 2008-04-17 Jakub Jelinek <jakub@redhat.com>
1940 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1942 2008-04-11 Ulrich Drepper <drepper@redhat.com>
1944 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1945 Also use for 32-bit.
1946 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1947 __nextafter instead of nextafter to avoid local PLT.
1948 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1949 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1951 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1953 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1955 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1956 <fenv_libc.h> instead of <fenv.h>.
1957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1960 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1962 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1963 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1964 function from fegetexcept and make old name weak alias.
1965 * include/fenv.h: Declare __fegetexcept.
1966 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1968 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1969 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1971 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1972 instead of frexpl to avoid local PLT.
1973 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1974 ilogbl to avoid local PLT.
1975 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1976 instead of ldexpl to avoid local PLT.
1977 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1978 __roundl not roundl to avoid local PLT.
1979 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1980 local PLTs. Use __sincosl instead of separate sinl and cosl
1982 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1984 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1985 version for ppc64 to 2.4.21 since without it makecontext will fail.
1987 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1989 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1991 [__powerpc64__] (TLS_GD): Likewise.
1993 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1996 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1997 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1999 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2000 Likewise. Also account for when x is an odd number between 2^52
2002 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2003 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2004 * math/libm-test.inc (lround_test, llround_test): Added test cases to
2005 detect aforementioned erroneous conditions.
2007 2008-04-11 Jakub Jelinek <jakub@redhat.com>
2009 * configure.in: Check for -fno-section-anchors in addition to
2010 -fno-toplevel-reorder.
2012 2008-04-11 Ulrich Drepper <drepper@redhat.com>
2014 * include/features.h (__GLIBC_MINOR__): Bump to 8.
2016 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2017 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2018 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2019 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2020 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2021 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2023 2008-04-11 Jakub Jelinek <jakub@redhat.com>
2026 * time/era.c: Transform __libc_setlocale_lock into rwlock.
2027 * time/alt_digit.c: Likewise.
2028 * wcsmbs/wcsmbsload.c: Likewise.
2030 2008-04-10 Ulrich Drepper <drepper@redhat.com>
2032 * version.h (VERSION): Bump to 2.8.
2034 * timzeone/asia: Update from tzdata2008b.
2035 * timezone/backward: Likewise.
2036 * timezone/europe: Likewise.
2037 * timezone/northamerica: Likewise.
2038 * timezone/southamerica: Likewise.
2039 * timezone/iso3166.tab: Likewise.
2040 * timezone/leapseconds: Likewise.
2041 * timezone/zone.tab: Likewise.
2042 * timezone/private.h: Update from tzcode2008a.
2043 * timezone/zdump.c: Likewise.
2044 * timezone/zic.c: Likewise.
2046 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
2049 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2050 Define additonal Data Cache Block instruction macros.
2051 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2052 Replace dcbst with dcbf and sync with sync/isync.
2054 2008-02-21 Alan Modra <amodra@bigpond.net.au>
2056 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2057 Always set ELF_RTYPE_CLASS_PLT.
2058 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2060 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
2062 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2063 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2064 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2065 For ISA 2.01 and later replace mftb with mfspr 268.
2067 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
2070 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2071 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2073 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
2076 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2077 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2078 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2079 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2081 2008-04-10 Jakub Jelinek <jakub@redhat.com>
2083 * stdlib/tst-makecontext.c (othervar): New variable.
2084 (cf): Test sign extending the argument to long.
2086 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
2088 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2089 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2090 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2091 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2092 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2093 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2094 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2096 2008-02-22 Alan Modra <amodra@bigpond.net.au>
2098 * elf/Makefile (tests): Substitute tests-vis-yes here.
2099 (tests-vis-yes): Delete.
2100 (modules-name, modules-vis-yes): Similarly.
2102 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
2105 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2106 Preserve sign in signgamp when x is zero.
2108 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
2110 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2111 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2112 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2113 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2114 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2115 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2117 2008-04-09 Ulrich Drepper <drepper@redhat.com>
2120 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2124 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2125 a reserved error value.
2127 * stdlib/tst-makecontext.c: Change parameter to cf to negative
2128 value to check for correct sign extension.
2131 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2132 Copy 64-bit parameter values even though this is not required in
2135 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2138 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
2140 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2143 2008-04-09 Jakub Jelinek <jakub@redhat.com>
2145 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2147 2008-04-09 Ulrich Drepper <drepper@redhat.com>
2150 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2151 in line-buffered stream failed.
2152 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2154 2008-04-08 Ulrich Drepper <drepper@redhat.com>
2157 * scripts/abi-versions.awk: If the version specified by
2158 --enable-oldest-abi is older than the first version for this
2159 architecture, use the default version.
2161 * locale/programs/ld-collate.c (collate_read): Ignore script lines
2162 as well when ignoring the whole category.
2164 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2167 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2168 ETHERTYPE_* definitions.
2169 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2171 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2173 * stdlib/mbtowc.c (__no_r_state): Remove.
2174 (mbtowc): New static state variable. Use it instead of
2176 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2177 (__wctomb_state): New hidden variable.
2178 (wctomb): Use __wctomb_state instead of __no_r_state.
2179 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2180 (__wctomb_state): New extern decl.
2181 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2183 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2186 * resolv/res_init.c: Handle scope IDs in resolv.conf.
2188 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2190 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2192 2008-04-06 Ulrich Drepper <drepper@redhat.com>
2194 * po/nl.po: Update from translation team.
2196 2008-03-31 Ulrich Drepper <drepper@redhat.com>
2199 * string/strfry.c: Handle empty strings again.
2201 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2204 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2205 before looking for translation.
2206 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2207 * locale/freelocale.c: Likewise.
2208 * locale/newlocale.c: Likewise.
2209 * locale/setlocale.c: Likewise.
2210 Based partially on a patch by ryo@np.css.fujitsu.com.
2212 2008-03-30 Jakub Jelinek <jakub@redhat.com>
2214 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2215 acquiring wrlock. Do conv_tab allocation while holding lock.
2216 * intl/Makefile: Add rules to build and run tst-gettext6.
2217 * intl/tst-gettext6.c: New test.
2218 * intl/tst-gettext6.sh: New file.
2220 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2222 * po/nl.po: Update from translation team.
2224 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2225 provided through st_blksize, try the default size before giving up.
2227 2008-03-29 Ulrich Drepper <drepper@redhat.com>
2229 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2232 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2234 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2235 error message. POSIX today does not require the messages to be in
2236 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
2239 * sunrpc/auth_unix.c: Unify printed strings.
2240 * sunrpc/clnt_tcp.c: Likewise.
2241 * sunrpc/clnt_udp.c: Likewise.
2242 * sunrpc/clnt_unix.c: Likewise.
2243 * sunrpc/svc_tcp.c: Likewise.
2244 * sunrpc/svc_udp.c: Likewise.
2245 * sunrpc/svc_unix.c: Likewise.
2246 * sunrpc/xdr.c: Likewise.
2247 * sunrpc/xdr_array.c: Likewise.
2248 * sunrpc/xdr_rec.c: Likewise.
2249 * sunrpc/xdr_ref.c: Likewise.
2250 * locale/programs/ld-time.c (time_finish): Unify messages.
2251 * locale/programs/locfile.c (handle_copy): Fix typo.
2252 * nscd/nscd.c (options): Fix typo.
2255 * stdlib/strtod_l.c: Use correct sign for result in one more
2257 Patch by Eric Blake <ebb9@byu.net>.
2259 2008-03-27 Jakub Jelinek <jakub@redhat.com>
2261 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2262 and creat system calls.
2263 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2265 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2268 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2269 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2271 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2273 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2274 <linux/limits.h> has defined it.
2275 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2276 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2278 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2279 it instead of ARG_MAX.
2281 2008-03-25 Jakub Jelinek <jakub@redhat.com>
2283 * posix/gai.conf: Fix comment for scope nullbits.
2284 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2285 default to 128 bits for v4 mapped addresses.
2287 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2289 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2290 ptrace call to get the ieee_instruction_pointer from the kernel.
2291 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2292 ptrace call to set the ieee_instructtion_pointer.
2293 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2294 Add comment that ieee_instruction_pointer is always 0.
2296 2008-03-09 Andreas Jaeger <aj@suse.de>
2299 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2300 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2301 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2303 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2304 (rint_test): Likewise.
2306 2008-03-24 Ulrich Drepper <drepper@redhat.com>
2308 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2310 (__nisfind_server): Similar for open readColdStartFile call.
2311 Patch partially by Jim Meyering.
2312 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2313 around internal_setent call.
2315 * po/vi.po: New Vietnamese translation.
2317 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2320 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2321 remove CLONE_STOPPED.
2323 2008-02-10 Jim Meyering <meyering@redhat.com>
2325 Remove useless "if" before "free":
2326 * elf/ldconfig.c (parse_conf_include): Likewise.
2327 * gmon/gmon.c (weak_alias): Likewise.
2328 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2329 * inet/rcmd.c (__validuser2_sa): Likewise.
2330 * intl/bindtextdom.c (set_binding_values): Likewise.
2331 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2332 * libio/genops.c (save_for_backup): Likewise.
2333 * libio/wgenops.c (save_for_wbackup): Likewise.
2334 * locale/programs/ld-collate.c (collate_read): Likewise.
2335 * locale/programs/linereader.c (get_string): Likewise.
2336 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2337 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2338 * resolv/res_debug.c (do_section): Likewise.
2339 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2340 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2341 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2342 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2343 * time/tzset.c (tzset_internal): Likewise.
2345 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2347 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2350 2008-03-11 Ulrich Drepper <drepper@redhat.com>
2353 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2354 not stream for output file. Open output file here.
2355 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2356 and output file name.
2357 (process_fd): Likewise.
2358 (process_file): Likewise.
2359 (main): Adjust callers of changed functions.
2360 * iconv/iconv_prog.h: Adjust prototype.
2362 2008-03-09 Andreas Jaeger <aj@suse.de>
2365 * sysdeps/ia64/ieee754.h: Use protected namespace
2366 __BIG_ENDIAN/__LITTLE_ENDIAN.
2367 * sysdeps/ieee754/ieee754.h: Likewise.
2368 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2370 2008-03-08 Roland McGrath <roland@frob.com>
2372 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2373 ignore a signal that came from a machine exception, treat it as a
2374 fatal core-dump signal instead.
2375 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2377 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2378 Clear DF bit in thread state's eflags.
2379 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2381 2008-03-08 Ulrich Drepper <drepper@redhat.com>
2384 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2385 of NAN(...) sequence.
2386 * stdlib/Makefile (tests): Add tst-strtod6.
2387 * stdlib/tst-strtod6.c: New file.
2389 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2392 * posix/getopt.c (_getopt_internal_r): Clarify error message by
2393 putting offending option character in quotes. Clean up error
2395 * po/be.po: Adjust msgstr in translation file.
2396 * po/bg.po: Likewise.
2397 * po/ca.po: Likewise.
2398 * po/cs.po: Likewise.
2399 * po/da.po: Likewise.
2400 * po/de.po: Likewise.
2401 * po/es.po: Likewise.
2402 * po/fr.po: Likewise.
2403 * po/hr.po: Likewise.
2404 * po/ko.po: Likewise.
2405 * po/nl.po: Likewise.
2406 * po/rw.po: Likewise.
2407 * po/sk.po: Likewise.
2408 * po/sv.po: Likewise.
2409 * po/tr.po: Likewise.
2410 * po/zh_CN.po: Likewise.
2411 * po/zh_TW.po: Likewise.
2414 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2415 Patch by Roland Bless <roland@bless.de>.
2417 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2419 * elf/Makefile (routines): Add dl-sysdep.
2420 (elide-routines.os): Likewise.
2422 2008-03-07 Ulrich Drepper <drepper@redhat.com>
2425 * elf/dl-sysdep.c: Undefine ROUND after use.
2426 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2427 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2428 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2429 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2431 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2432 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2434 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2436 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2437 _dl_tls_get_addr_soft element.
2438 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2439 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2440 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2442 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2443 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2444 of internal_function.
2446 * stdlib/Makefile (aux): Add tens_in_limb.
2447 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2448 * stdlib/tens_in_limb.c: ...here. New file.
2451 * sysdeps/unix/sysv/linux/pathconf.h: Declare
2452 __statfs_chown_restricted.
2453 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2454 for _PC_CHOWN_RESTRICTED.
2455 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2456 Implement __statfs_chown_restricted.
2457 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2458 _POSIX_CHOWN_RESTRICTED value to zero.
2459 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2462 * sysdeps/x86_64/rtld-memset.c: New file.
2464 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
2466 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2468 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2469 Barcelona machine. Make default fall through branch of
2470 __x86_64_preferred_memory_instruction check as the integer code path.
2472 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2474 * sysdeps/x86_64/cacheinfo.c
2475 (__x86_64_preferred_memory_instruction): New variable.
2476 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2478 * sysdeps/x86_64/memset.S: Rewrite.
2480 2008-03-04 Jakub Jelinek <jakub@redhat.com>
2482 * include/stdio.h (__asprintf_chk, __dprintf_chk,
2483 __obstack_printf_chk): New prototypes.
2484 (__vasprintf_chk, __vdprintf_chk,
2485 __obstack_vprintf_chk): Likewise.
2486 Add libc_hidden_proto.
2488 (_IO_obstack_jumps): No longer static, add attribute_hidden.
2489 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2490 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2491 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2492 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2493 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2494 __obstack_vprintf_chk): New prototypes.
2495 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2496 obstack_vprintf): New inlines.
2497 * debug/dprintf_chk.c: New file.
2498 * debug/vdprintf_chk.c: New file.
2499 * debug/asprintf_chk.c: New file.
2500 * debug/vasprintf_chk.c: New file.
2501 * debug/obprintf_chk.c: New file.
2502 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2503 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2504 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2506 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2507 vdprintf_chk and obprintf_chk, set CFLAGS for them.
2508 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2509 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2511 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2512 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2513 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2514 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2515 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2517 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2518 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2519 obstack_vprintf_chk.
2520 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2521 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2522 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2523 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2524 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2525 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2527 2008-03-04 Ulrich Drepper <drepper@redhat.com>
2530 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2531 Patch by Roy Marples <roy@marples.name>.
2534 * malloc/malloc.c: Fix typo in comment.
2537 * locale/iso-639.def: Add Shuswap.
2539 2008-02-25 Jakub Jelinek <jakub@redhat.com>
2542 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2543 overwrite *h_errnop/*errnop values from getanswer_r in case of
2546 2008-03-03 Ulrich Drepper <drepper@redhat.com>
2549 * nscd/connections.c (dbs): Add initializers for .suggested_module.
2550 (verify_persistent_db): Remove one unnecessary test and add a new one
2551 for bad configuration.
2552 (nscd_init): Improve error reported when persistent database cannot
2554 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2555 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2556 .suggested_module and .max_db_size and case config file says the
2558 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2561 * nis/ypclnt.c (yp_order): Fix handling of return value of
2563 Patch by Jeff Moyer <jmoyer@redhat.com>.
2565 * po/fr.po: Update from translation team.
2567 2008-02-22 Andreas Jaeger <aj@suse.de>,
2568 Carlos O'Donell <carlos@systemhalted.org>
2571 * FAQ.in: Describe why glibc needs to be compiled with
2574 2008-02-19 Roland McGrath <roland@redhat.com>
2576 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2578 2008-02-15 Ulrich Drepper <drepper@redhat.com>
2581 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2582 __USE_MISC is defined.
2584 2008-02-10 Ulrich Drepper <drepper@redhat.com>
2586 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2587 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2589 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2590 timerfd_gettime, timerfd_settime.
2591 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2592 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2594 2008-02-08 Roland McGrath <roland@redhat.com>
2596 * elf/elf.h (NT_PPC_SPE): New macro.
2598 2008-02-06 Roland McGrath <roland@redhat.com>
2600 * Makerules ($(common-objpfx)sysd-rules):
2601 Depend on $(sysdep-makeconfigs).
2603 2008-01-31 Roland McGrath <roland@redhat.com>
2606 * configure.in: Use -print-file-name if it yields a directory,
2607 for each of include and include-fixed.
2608 * configure: Regenerated.
2610 * Makeconfig (sysd-rules-targets): New variable.
2611 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2612 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2614 2008-01-30 Roland McGrath <roland@redhat.com>
2616 * manual/libc.texinfo: Update back-cover text.
2618 * elf/elf.h (NT_386_TLS): New macro.
2620 2008-01-29 Roland McGrath <roland@redhat.com>
2622 * Makeconfig (sysd-rules-patterns): New variable.
2623 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2624 (check-inhibit-asm): New canned sequence, replaces ...
2625 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2626 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2627 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2628 (CFLAGS-rtld): Variable removed.
2630 2008-01-24 Roland McGrath <roland@redhat.com>
2632 * configure.in: Let configure fragments set base_os.
2633 * configure: Regenerated.
2635 2008-01-22 Ulrich Drepper <drepper@redhat.com>
2637 * po/ko.po: Update from translation team.
2639 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2641 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2643 2008-01-12 Andreas Jaeger <aj@suse.de>
2646 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2649 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2651 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2652 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2653 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2655 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
2657 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2658 * elf/dl-close.c (_dl_close): Check for it.
2659 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2660 (_dl_allocate_static_tls): Likewise.
2661 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2662 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2664 * elf/tst-tls16.c: New file.
2665 * elf/tst-tlsmod16a.c: New file.
2666 * elf/tst-tlsmod16b.c: New file.
2667 * elf/Makefile: Add rules to build and run tst-tls16.
2669 2008-01-16 Ulrich Drepper <drepper@redhat.com>
2672 * bits/shm.h: Fix comment describing shmid_ds.
2673 * sysdeps/gnu/bits/shm.h: Likewise.
2674 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2675 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2676 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2677 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2678 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2679 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2680 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2681 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2682 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2685 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2687 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2688 additional suffixes.
2689 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2690 Add optional functions mq_timedreceive and mq_timedsend.
2691 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2692 * conform/data/pthread.h-data: Fix prototype of
2693 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2694 * conform/data/semaphore.h-data: Allow time.h definitions.
2695 * conform/data/signal.h-data: Likewise.
2696 * conform/data/stdio.h-data: getw and putw are not required in v6.
2697 * conform/data/stdlib.h-data: Change setstate prototype.
2698 * conform/data/string.h-data: Fix strerror_r prototype.
2699 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2700 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2701 Fix readlink prototype.
2702 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2704 * inet/netinet/in.h: Cleanup namespace.
2705 * posix/regex.h: Likewise.
2706 * resolv/netdb.h: Likewise.
2707 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2708 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2709 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2710 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2711 of names of in in6_addr.
2712 (default_precedence): Likewise.
2713 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2716 2008-01-15 Ulrich Drepper <drepper@redhat.com>
2718 * conform/data/fmtmsg.h-data: Add missing allows.
2719 * conform/data/ftw.h-data: Likewise.
2720 * conform/data/inttypes.h-data: Likewise.
2721 * conform/data/math.h-data: Likewise.
2722 * conform/data/signal.h-data: Likewise.
2723 * conform/data/net/if.h-data: Likewise.
2724 * conform/data/netinet/in.h-data: Likewise.
2725 * conform/data/sys/socket.h-data: Likewise.
2728 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2729 (__strtok_r): Simplify.
2730 * string/tester.c (test_strtok_r): Add test case for futile search
2731 with single-character seach string.
2733 2008-01-12 Ulrich Drepper <drepper@redhat.com>
2735 * po/ko.po: Update from translation team.
2737 2008-01-11 Andreas Jaeger <aj@suse.de>
2740 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2741 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2744 2008-01-10 Ulrich Drepper <drepper@redhat.com>
2746 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2747 native interface lookup in all the relevant places.
2749 2008-01-10 Jakub Jelinek <jakub@redhat.com>
2750 Ulrich Drepper <drepper@redhat.com>
2752 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2753 field. Use sockaddr_in6 for source_addr.
2754 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2755 (match_prefix): Likewise.
2756 (get_label): Likewise.
2757 (get_precedence): Likewise.
2758 (rfc3484_sort): Change to use indirect access to results array.
2759 Adjust to use of sockaddr_in6. Replace service_order test with
2760 simple index comparison.
2761 (getaddrinfo): Define order array. Initialize it. Don't initialize
2762 service_order field. Adjust qsort_t calls. Access sorted result
2763 array indirectly through order array.
2764 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2765 * posix/tst-rfc3484-2.c: Likewise.
2766 * posix/tst-rfc3484-3.c: Likewise.
2768 2008-01-09 Ulrich Drepper <drepper@redhat.com>
2771 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2773 Patch by André Cruz.
2776 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2777 (clnt_spcreateerror): Likewise.
2780 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2781 (public_mEMALIGn): Likewise.
2782 Patch mostly by Daniel Jacobowitz.
2784 2008-01-09 Jakub Jelinek <jakub@redhat.com>
2786 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2787 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2788 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2789 * stdlib/tst-makecontext2.c: New test.
2791 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2793 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2795 (REINIT_PARAMS): Likewise. Undefine before end of file.
2796 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2797 transliteration hooks and REINIT_PARAMS afterwards.
2798 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2800 (REINIT_PARAMS): Define.
2801 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2802 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2803 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2804 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2805 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2806 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2807 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2808 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2809 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2810 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2811 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2812 * iconvdata/tst-iconv7.c: New test.
2814 2008-01-07 Ulrich Drepper <drepper@redhat.com>
2816 * libio/stdio.h (vscanf): Fix definition for loser compilers.
2818 2008-01-05 Jakub Jelinek <jakub@redhat.com>
2821 * nscd/connections.c (restart): Fix condition.
2823 2008-01-03 Jakub Jelinek <jakub@redhat.com>
2825 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2826 __ctype_toupper_loc): Add __THROW.
2828 2008-01-02 Ulrich Drepper <drepper@redhat.com>
2830 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2831 recognition of interface family.
2833 * posix/getconf.c: Update copyright year.
2834 * nss/getent.c: Likewise.
2835 * iconv/iconvconfig.c: Likewise.
2836 * iconv/iconv_prog.c: Likewise.
2837 * elf/ldconfig.c: Likewise.
2838 * catgets/gencat.c: Likewise.
2839 * csu/version.c: Likewise.
2840 * elf/ldd.bash.in: Likewise.
2841 * elf/sprof.c (print_version): Likewise.
2842 * locale/programs/locale.c: Likewise.
2843 * locale/programs/localedef.c: Likewise.
2844 * nscd/nscd.c (print_version): Likewise.
2845 * debug/xtrace.sh: Likewise.
2846 * malloc/memusage.sh: Likewise.
2847 * malloc/mtrace.pl: Likewise.
2848 * debug/catchsegv.sh: Likewise.
2850 2007-12-26 Ulrich Drepper <drepper@redhat.com>
2852 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2855 2007-12-23 Ulrich Drepper <drepper@redhat.com>
2857 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2858 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2860 2007-12-17 Roland McGrath <roland@redhat.com>
2862 * inet/ether_line.c (ether_line): Remove unused variable.
2864 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2866 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2868 * login/openpty.c (openpty): Likewise.
2869 * login/pty.h (openpty, forkpty): Likewise.
2870 * manual/terminal.texi (openpty, forkpty): Likewise.
2872 2007-12-17 Ulrich Drepper <drepper@redhat.com>
2874 * malloc/malloc.c (public_cALLOc): For arenas other than
2875 main_arena, count all bytes inside the mprotect_size range of the
2876 heap as uninitialized.
2878 2007-12-16 Ulrich Drepper <drepper@redhat.com>
2880 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2883 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2884 mTRIm for all of them.
2885 (mTRIm): Additionally iterate over all free blocks and use madvise
2886 to free memory for all those blocks which contain at least one
2888 * malloc/tst-trim1.c: New file.
2889 * malloc/Makefile (tests): Add tst-trim1.
2891 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2893 2007-12-14 Ulrich Drepper <drepper@redhat.com>
2895 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2896 First cast argument to long
2897 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2899 (__vdso_clock_gettime): Likewise.
2900 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2903 2007-12-13 Ulrich Drepper <drepper@redhat.com>
2905 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2906 * locale/nl_langinfo_l.c: Real implementation, copied from
2908 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2910 2007-12-01 Jim Meyering <meyering@redhat.com>
2912 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2913 that would inhibit utf8-optimization of a regexp containing line-
2914 or buffer-anchors, e.g., `^', `$'.
2916 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2918 * time/bug-getdate1.c (do_test): Don't use century values which
2919 aren't valid on 32-bit systems.
2921 2007-12-12 Jakub Jelinek <jakub@redhat.com>
2923 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2924 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2925 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2926 __strcat_g, __strncat_g): Add __asm__.
2928 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2931 * io/fchmodat.c: Fix typo in stub_warning use.
2932 Patch by Petr Salinger.
2934 2007-12-11 Ulrich Drepper <drepper@redhat.com>
2936 * iconvdata/hp-thai8.c: New file.
2937 * iconvdata/Makefile: Add rules for hp-thai8.c.
2938 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2939 * iconvdata/gconv-modules: Likewise.
2942 * iconvdata/hp-greek8.c: New file.
2943 * iconvdata/Makefile: Add rules for hp-greek8.c.
2944 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2945 * iconvdata/gconv-modules: Likewise.
2948 * iconvdata/hp-turkish8.c: New file.
2949 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2950 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2951 * iconvdata/gconv-modules: Likewise.
2953 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2954 (shrink_heap): ... this new function.
2955 (heap_trim): Call shrink_heap instead of grow_heap.
2957 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2958 case don't call alloc_perturb.
2960 2007-12-10 Ulrich Drepper <drepper@redhat.com>
2962 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2964 * sysdeps/unix/sysv/linux/kernel-features.h
2965 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2966 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2968 2007-12-08 Ulrich Drepper <drepper@redhat.com>
2971 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2972 * stdio-common/Makefile (tests): Add bug22.
2973 * stdio-common/bug22.c: New file.
2976 * time/getdate.c: Fix filling in default values.
2977 * time/bug-getdate1.c: New file.
2978 * time/Makefile: Add rules to build and run bug-getdate1.
2980 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2981 * iconvdata/ebcdic-es.c: Likewise.
2982 * iconvdata/ebcdic-es-a.c: Likewise.
2983 * iconvdata/ebcdic-uk.c: Likewise.
2984 * iconvdata/iso8859-16.c: Likewise.
2985 * iconvdata/viscii.c: Likewise.
2986 * iconvdata/iso8859-9e.c: Likewise.
2987 * iconvdata/Makefile: Adjust appropriately.
2990 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2993 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2996 * iconvdata/hp-roman9.c: New file.
2997 * iconvdata/Makefile: Add rules for hp-roman9.c.
2998 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2999 * iconvdata/gconv-modules: Likewise.
3001 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3002 * iconvdata/Makefile: Adjust appropriately.
3005 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3006 structure, it's allocated with alloca.
3007 * stdio-common/Makefile (tests): Add bug21.
3008 * stdio-common/bug21.c: New file.
3010 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
3013 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3014 keyword for gcc's braced-groups.
3016 2007-12-07 Ulrich Drepper <drepper@redhat.com>
3019 * inet/ether_line.c: Strip hostname of whitespaces.
3020 * inet/Makefile (tests): Add tst-ether_line.
3021 * inet/tst-ether_line.c: New file.
3023 2007-12-03 Ulrich Drepper <drepper@redhat.com>
3026 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3029 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3031 * stdlib/tst-setcontext.c: Catch the case where the links gets
3032 messed up and we do not reach main again.
3034 * po/ca.po: Update from translation team.
3036 2007-11-26 Ulrich Drepper <drepper@redhat.com>
3038 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3039 * posix/regex.h (REG_ENOSYS): Likewise.
3040 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3042 2007-11-25 Ulrich Drepper <drepper@redhat.com>
3044 * nscd/nscd.h (MAX_STACK_USE): Define.
3045 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3046 (gc): Initialize stack_used based on allocation in prune_cache.
3047 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3048 Clear array before use.
3050 * nscd/aicache.c (addhstaiX): Update statistics counter in case
3051 memory allocation failed.
3052 * nscd/hstcache.c (cache_addhst): Likewise.
3053 * nscd/grpcache.c (cache_addgr): Likewise.
3054 * nscd/servicescache.c (cache_addserv): Likewise.
3055 * nscd/pwdcache.c (cache_addpw): Likewise.
3056 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3058 2007-11-23 Ulrich Drepper <drepper@redhat.com>
3060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3061 and creat system calls.
3063 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3065 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
3067 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3069 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3070 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3072 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3073 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3074 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3076 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
3078 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3079 strncat): Define as macros to avoid compile errors.
3081 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
3084 2007-11-22 Ulrich Drepper <drepper@redhat.com>
3087 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3088 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3089 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3091 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3093 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3094 Return zero in case the thread library is not NPTL.
3097 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3098 initializing interface list.
3101 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3102 use result of nss_getgrgid_r if nothing was found. For other
3103 error return with a failure.
3104 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3106 * locale/programs/ld-collate.c (collate_read): Fix loop to match
3109 2007-11-19 Ulrich Drepper <drepper@redhat.com>
3111 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3112 (get_scope): For IPv4 scope, use scopes table.
3113 (fini): Free scopes table if necessary.
3114 (free_scopelist): New function.
3115 (scopecmp): New function.
3116 (gaiconf_init): Also handle scopev4 entries.
3117 * posix/tst-rfc3484.c (do_test): Initialize scopes.
3118 * posix/tst-rfc3484-2.c (do_test): Likewise.
3119 * posix/gai.conf: Document scopev4 defaults.
3120 * posix/Makefile (tests): Add tst-rfc3484-3.
3121 * posix/tst-rfc3484-3.c: New file.
3123 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3125 * posix/gai.conf: Update for current default tables.
3127 2007-11-19 Ulrich Drepper <drepper@redhat.com>
3129 * po/tr.po: Update from translation team.
3131 2007-11-18 Roland McGrath <roland@frob.com>
3133 * manual/arith.texi (Remainder Functions): Spelling fix.
3134 From Shaun Silk <genix@mysoul.com.au>.
3136 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3138 2007-11-17 Ulrich Drepper <drepper@redhat.com>
3140 * po/zh_CN.po: Update from translation team.
3142 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3143 Add sys/signalfd.h and sys/eventfd.h.
3145 2007-11-15 Bruno Haible <bruno@clisp.org>
3148 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3150 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3151 (DCIGETTEXT): Change the allocation of the 'search' variable so that
3152 it needs only fixed stack space. Delay the initialization of
3153 msgid_len until it is needed.
3155 2007-11-15 Andreas Jaeger <aj@suse.de>
3157 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3158 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3160 2007-11-15 Ulrich Drepper <drepper@redhat.com>
3162 * po/ko.po: Update from translation team.
3164 2007-11-14 Ulrich Drepper <drepper@redhat.com>
3166 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3167 significantly. The device type is also part of the ifinfomsg data.
3169 * po/sv.po: Update from translation team.
3170 * po/nl.po: Likewise.
3172 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3173 to wake up in 24 hours.
3175 * nscd/gai.c (__ioctl): Define. Include check_native.c.
3177 2007-11-13 Ulrich Drepper <drepper@redhat.com>
3179 * po/cs.po: Update from translation team.
3180 * po/pl.po: Likewise.
3182 * include/ifaddrs.h: Remove in6ai_temporary.
3183 (struct in6addrinfo): Add index element.
3184 Declare __check_native.
3185 * inet/Makefile (aux): Add check_native.
3186 * sysdeps/unix/sysv/linux/check_native.c: New file.
3187 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3188 IFA_F_TEMPORARY. Pass back ifa_index.
3189 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3190 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
3191 call __check_native if necessary.
3192 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
3193 to sort addresses. Pass information about the results.
3194 * posix/tst-rfc3484.c: Adjust for addition of index field and change
3195 of rfc3484_sort interface.
3196 * posix/tst-rfc3484-2.c: Likewise.
3198 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
3199 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3201 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3202 (qsort_r): Renamed from qsort. Take additional parameter and pass it
3203 on as third parameter to compare function and _quicksort.
3204 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3205 to the compare function.
3206 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3207 * Versions.def: Add GLIBC_2.8 for libc.
3209 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3210 * posix/tst-rfc3484-2.c: Likewise.
3212 * include/kernel-features.h: Moved to...
3213 * sysdeps/mach/hurd/kernel-features.h: ...here.
3215 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3217 * sysdeps/i386/i586/memcpy_chk.S: New file.
3218 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3219 * sysdeps/i386/i586/memset_chk.S: Likewise.
3221 2007-11-12 Ulrich Drepper <drepper@redhat.com>
3223 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3224 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3225 list of interfaces. Also store prefix length.
3226 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3227 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3228 prefix if source and destination address are in the same subnet.
3229 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
3230 Always look for matching record in in6ai list.
3231 Correct source_addr_len value for IPv6->IPv4 converted records.
3233 2007-11-11 Roland McGrath <roland@frob.com>
3235 * include/kernel-features.h: New file.
3237 2007-11-10 Ulrich Drepper <drepper@redhat.com>
3239 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3240 complications for 64-bit platforms.
3242 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3243 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
3244 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3246 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3248 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3249 * sysdeps/wordsize-64/alphasort.c: New file.
3250 * sysdeps/wordsize-64/alphasort64.c: New file.
3251 * sysdeps/wordsize-64/fseeko.c: New file.
3252 * sysdeps/wordsize-64/fseeko64.c: New file.
3253 * sysdeps/wordsize-64/ftello.c: New file.
3254 * sysdeps/wordsize-64/ftello64.c: New file.
3255 * sysdeps/wordsize-64/ftw.c: New file.
3256 * sysdeps/wordsize-64/ftw64.c: New file.
3257 * sysdeps/wordsize-64/iofgetpos.c: New file.
3258 * sysdeps/wordsize-64/iofgetpos64.c: New file.
3259 * sysdeps/wordsize-64/iofopen.c: New file.
3260 * sysdeps/wordsize-64/iofopen64.c: New file.
3261 * sysdeps/wordsize-64/iofsetpos.c: New file.
3262 * sysdeps/wordsize-64/iofsetpos64.c: New file.
3263 * sysdeps/wordsize-64/lockf.c: New file.
3264 * sysdeps/wordsize-64/lockf64.c: New file.
3265 * sysdeps/wordsize-64/mkostemp.c: New file.
3266 * sysdeps/wordsize-64/mkostemp64.c: New file.
3267 * sysdeps/wordsize-64/mkstemp.c: New file.
3268 * sysdeps/wordsize-64/mkstemp64.c: New file.
3269 * sysdeps/wordsize-64/scandir.c: New file.
3270 * sysdeps/wordsize-64/scandir64.c: New file.
3271 * sysdeps/wordsize-64/tmpfile.c: New file.
3272 * sysdeps/wordsize-64/tmpfile64.c: New file.
3273 * sysdeps/wordsize-64/versionsort.c: New file.
3274 * sysdeps/wordsize-64/versionsort64.c: New file.
3275 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3276 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3277 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3278 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3279 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3280 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3281 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3282 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3283 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3284 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3285 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3286 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3288 * crypt/sha256-crypt.c: Fix a comment.
3289 * crypt/sha512-crypt.c: Likewise.
3291 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3293 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3295 2007-11-07 Ulrich Drepper <drepper@redhat.com>
3298 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3299 because output buffer is too small break, don't loop.
3300 * iconvdata/Makefile (tests): Add bug-iconv6.
3301 * iconvdata/bug-iconv6.c: New file.
3303 2007-11-06 Ulrich Drepper <drepper@redhat.com>
3305 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3307 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3308 size_t. Add casts where needed.
3310 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3311 old headers, don't call avc_has_perm if we don't have the
3312 permission information.
3314 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3316 * elf/rtld.c (dl_main): Use the page size to find the map start.
3318 2007-11-05 Ulrich Drepper <drepper@redhat.com>
3320 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3321 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3323 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3324 when the lookup call failed.
3326 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3327 Add prune_cond and wakeup_time.
3328 (CACHE_PRUNE_INTERNAL): Define.
3329 Update declarations of prune_cache and setup_thread.
3330 * nscd/connections.c (dbs): Update initializers.
3331 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3332 (nscd_init): Default number of threads is now 4.
3333 (invalidate_cache): Take lock before calling prune_cache.
3334 (handle_request): If SELinux forbids the request, say so.
3335 (readylist_cond): Use static initializer.
3336 (nscd_run_prune): New function. Used only by pruning threads.
3337 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3339 (fd_ready): Update nscd_run reference.
3340 (start_threads): No need to initialize readylist_cond.
3341 Start pruning threads separately.
3342 * nscd/nscd_setup_thread.c: Change return value type to int and always
3344 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3345 to int and return nonzero value if we can use the TID address hack.
3346 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3347 the database is later than the new entry's timeout, update the
3348 wakeup time and wake the cleanup thread.
3349 (prune_cache): Return seconds the next entry in the database is still
3350 valid. Remove locking for pruning here.
3351 * nscd/nscd.conf: Document default number of threads.
3353 2007-10-31 Ulrich Drepper <drepper@redhat.com>
3355 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3356 stack is properly aligned for the target function.
3357 Correct unwind info.
3359 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3360 when using auditing libraries.
3362 2007-10-29 Ulrich Drepper <drepper@redhat.com>
3364 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3365 _nss_dns_getnetbyaddr2_r.
3366 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3367 extra parameter to getanswer_r.
3368 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3369 _nss_dns_getnetbyaddr2_r.
3371 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3373 * nscd/gethstbynm2_r.c: Remove.
3374 * nscd/gethstbynm3_r.c: New file.
3375 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3377 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
3378 __gethostbyaddr_r compatibility wrapper.
3379 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
3380 determining timeout of entry.
3381 (lookup): Take new parameter and pass it to __gethostbyname3_r and
3383 (addhstbyX): Pass reference to variable for TTL to lookup and
3385 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3386 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3387 and __nss_next2. Remove __nss_services_lookup.
3388 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
3390 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3392 * nss/getXXent_r.c: Likewise.
3393 * nss/getnssent_r.c: Likewise.
3394 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3395 does not exist in module, try the optional second name.
3396 (__nss_next2): New function.
3397 (__nss_next): Now wrapper around __nss_next2.
3398 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3399 Declare __nss_next2.
3400 Adjust definition of db_lookup_function type.
3401 * nss/service-lookup.c: Define NO_COMPAT.
3402 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3403 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3404 * inet/ether_ntoh.c: Likewise.
3405 * sunrpc/netname.c: Likewise.
3406 * sunrpc/publickey.c: Likewise.
3407 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3408 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3409 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3410 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3411 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3413 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3415 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3417 2007-10-28 Ulrich Drepper <drepper@redhat.com>
3420 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3421 * crypt/sha512c-test.c: Likewise.
3424 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3425 to keep track of end of %[ format string element.
3426 * stdio-common/Makefile (tests): Add bug20.
3427 * stdio-common/bug20.c: New file.
3430 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3431 path elements in counting mode.
3433 2007-10-27 Andreas Jaeger <aj@suse.de>
3436 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3439 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3440 (__cleanup): Free shared library when exiting.
3441 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3442 (__cleanup): Free shared library when exiting.
3444 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
3447 * math/libm-test.inc (check_float_internal): Support
3448 denormalized return.
3450 2007-10-23 Andreas Jaeger <aj@suse.de>
3453 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3454 __LONG_LONG_PAIR to handle little endian byte order.
3455 Suggested by abhishekrai@google.com
3457 2007-10-27 Ulrich Drepper <drepper@redhat.com>
3459 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3461 2007-10-26 Ulrich Drepper <drepper@redhat.com>
3463 * nscd/cache.c (prune_cache): Move test for modified file outside
3466 2007-10-21 Andreas Jaeger <aj@suse.de>
3468 * manual/texinfo.tex: Update to latest version.
3470 * manual/sysinfo.texi (System Parameters): Fix Formatting.
3472 * manual/arith.texi (Status bit operations): Fix formatting.
3474 * manual/errno.texi (Error Messages): Fix formatting.
3476 * manual/sysinfo.texi (System Parameters): Fix formatting.
3478 * manual/libc.texinfo: Update VERSION and UPDATED.
3480 2007-10-19 Roland McGrath <roland@redhat.com>
3482 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3484 2007-10-06 David S. Miller <davem@davemloft.net>
3486 * configure.in: Add sparcv9v2 and sparc64v2.
3487 * scripts/config.sub: Likewise.
3488 * configure: Regenerate.
3489 * elf/elf.h (HWCAP_SPARC_N2): New.
3490 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3491 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3492 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3493 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3494 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3495 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3496 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3498 2007-10-18 Ulrich Drepper <drepper@redhat.com>
3500 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3501 even if the poll result indicates there is data to read.
3502 Patch by Jeff Moyer <jmoyer@redhat.com>.
3504 2007-10-18 Roland McGrath <roland@redhat.com>
3506 * elf/elf.h (NT_PPC_VMX): New macro.
3508 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3510 * version.h (VERSION): Set to 2.7.90.
3512 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3514 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
3517 2007-10-17 Roland McGrath <roland@frob.com>
3519 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3520 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3522 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3524 * version.h (VERSION): Bump to 2.7.
3525 * include/features.h (__GLIBC_MINOR__): Bump to 7.
3528 * time/tzset.c (__tz_convert): Don't force testing for a change of
3529 TZ if not called from localtime. But then also see whether the
3530 file changed, in case __use_tzfile is set.
3532 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3533 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3534 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3535 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3536 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3537 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3538 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3539 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3541 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3543 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3544 and admin selects to be able to replace the gai.conf file, lock
3545 data structures around the qsort call.
3547 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3549 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3551 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
3552 too high for the improvements. Implement bzero unconditionally for
3555 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3556 Jakub Jelinek <jakub@redhat.com>
3558 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3559 even when time_t is 32-bit.
3560 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3561 timezone data read by __tzfile_default. Ensure __tzname[0] is
3562 always set after the search.
3564 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3566 * time/tzfile.c (__tzfile_read): Help the compiler recognize
3567 unreachable code on 32-bit machines.
3569 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3572 * time/strftime_l.c: Include stdbool.h.
3573 (my_strftime): New wrapper, old function renamed to...
3574 (__strftime_internal): ... new function. Add tzset_called
3575 argument, pass it down to recursive calls, don't call tzset ()
3576 if already true, set to true after call to tzset ().
3578 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3580 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3581 into account when copying TZ string.
3583 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3585 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3586 num_transition rather than num_transitions - 1.
3588 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3590 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3593 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3594 a local label rather than HIDDEN_JUMPTARGET.
3596 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3598 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3599 (init_cacheinfo): Initialize it.
3600 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3601 Always define bzero.
3602 Remove non-glibc code.
3603 * sysdeps/x86_64/bzero.S: Make an empty file.
3605 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3607 * sysdeps/x86_64/cacheinfo.c
3608 (__x86_64_preferred_memory_instruction): New.
3609 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3611 * sysdeps/x86_64/memset.S: Rewrite.
3613 2007-10-15 Roland McGrath <roland@redhat.com>
3615 * po/libc.pot: Regenerated.
3617 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3619 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3623 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3624 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3625 address record to T_A/T_AAAA requests.
3627 2007-10-14 Ulrich Drepper <drepper@redhat.com>
3629 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3631 * posix/glob.c: Add some branch prediction throughout.
3633 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3636 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3638 (rfc3484_sort): Make sure that even if qsort doesn't support
3639 stable sorting out sorting here is stable by comparing service_order.
3640 (getaddrinfo): Initialize service_order.
3641 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3642 service_order field to sorting structure.
3643 * posix/tst-rfc3484-2.c (do_test): Likewise.
3645 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3646 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3647 __tzset_parse_tz and updating of daylight, timezone, tzname into
3649 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3650 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3651 happens in __tz_compute.
3652 * time/tzfile.c (__tzfile_read): Also read TZ string.
3653 (find_transition): Fold into __tzfile_compute.
3654 (__tzfile_compute): For times beyond the last transition try to
3656 * timezone/tst-timezone.c: Information in daylight and tzname does
3657 change for Asia/Tokyo timezone with more concrete information.
3660 * include/stdio.h: Add libc_hidden_proto for ftello.
3661 * libio/ftello.c: Add libc_hidden_def.
3664 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3665 on the specified time and not the last entries in the file. Move
3666 code to determine tzname[] to...
3667 (find_transition): ...here. Add ugly guess for times before the
3670 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3673 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3675 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3676 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3677 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3678 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3680 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3681 read mechanism when there are no group members and avoid no-op
3682 read syscall in this case.
3685 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3686 (__readall): If reading failed due to EAGAIN error wait a bit
3687 and possibly try again.
3688 (__readvall): Likewise.
3690 2007-10-13 Bruno Haible <bruno@clisp.org>
3692 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3693 when we cannot recode the message.
3695 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3698 * libio/__freading.c (__freading): Don't return true for
3699 write-only streams. For read/write streams, check whether we
3700 performed a read operation already.
3701 * libio/Makefile (tests): Add tst-ext2.
3702 * libio/tst-ext2.c: New file.
3704 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3706 * locale/programs/repertoire.c (repertoire_read): Always free
3707 memory for repertoire file name [Coverity CID 270].
3709 * elf/cache.c (save_aux_cache): Free memory allocated for
3710 temporary file name [Coverity CID 267].
3712 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3714 * misc/Makefile (headers): Add bits/error.h.
3716 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3718 * posix/fnmatch_loop.c: Take rule index returned as part of
3719 findidx return value into account when accessing weights.
3720 * posix/regcomp.c: Likewise.
3721 * posix/regexec.c: Likewise.
3723 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3724 (skip_to): Fix problems with parameter of elifdef/elifndef.
3726 2007-10-11 Ulrich Drepper <drepper@redhat.com>
3728 * iconv/gconv_simple.c: Add some branch prediction.
3730 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3732 * locale/programs/ld-collate.c (collate_read): If ignore_content
3733 and nowtok is tok_define, eat any tok_eol tokens.
3735 2007-10-11 Jakub Jelinek <jakub@redhat.com>
3737 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3738 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3740 * inet/netinet/in.h: Don't include bits/socket.h.
3741 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3743 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3745 2007-10-10 Ulrich Drepper <drepper@redhat.com>
3747 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3749 * locale/programs/locfile-kw.gperf: Likewise.
3750 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3752 2007-10-10 Jakub Jelinek <jakub@redhat.com>
3754 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3755 (__find_specwc): Change into __extern_always_inline function.
3756 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3757 (__parse_one_specmb): Remove ps argument.
3758 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3759 Adjust __find_specmb and __parse_one_specmb callers.
3760 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3761 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3763 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3766 2007-10-09 Ulrich Drepper <drepper@redhat.com>
3768 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3769 with some Pentium Ds.
3771 2007-10-08 Ulrich Drepper <drepper@redhat.com>
3773 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3775 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3778 2007-10-07 Ulrich Drepper <drepper@redhat.com>
3781 * locale/C-time.c: Set week_1stday data to 19971201.
3782 * locale/programs/ld-time.c (time_finish): Default for
3783 first_workday is Monday.
3786 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3789 * posix/glob.c (glob): Recognize patterns starting \/.
3790 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3791 (main): Add test for pattern starting \/.
3793 * misc/error.h: Use __const instead of const.
3794 * misc/bits/error.h: Likewise.
3796 2007-10-07 Andreas Jaeger <aj@suse.de>
3798 * include/bits/error.h: New file.
3800 * misc/bits/error.h (error_at_line): Fix prototype.
3802 2007-10-06 Ulrich Drepper <drepper@redhat.com>
3805 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3806 more little bugs in creating the stack frame when pltexit has to
3809 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3810 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3813 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3814 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3815 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3816 * math/libm-test.inc: Add test for this case.
3819 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3820 (svc_register): Initialize sc_mapped. Set to TRUE if call to
3821 map service succeeded.
3822 (svc_is_mapped): New function.
3823 (svc_unregister): Use it before trying to unmap service.
3825 2007-10-05 Ulrich Drepper <drepper@redhat.com>
3827 * timezone/zic.c: Update from tzcode2007h.
3830 * timezone/africa: Update from tzdata2007h.
3831 * timezone/antarctica: Likewise.
3832 * timezone/asia: Likewise.
3833 * timezone/australasia: Likewise.
3834 * timezone/europe: Likewise.
3835 * timezone/leapseconds: Likewise.
3836 * timezone/northamerica: Likewise.
3837 * timezone/southamerica: Likewise.
3838 * timzeone/zone.tab: Likewise.
3841 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3844 * string/bits/string2.h (__strdup): Cast parameters to calloc to
3845 avoid warning with -Wconversion.
3846 (__strndup): Likewise.
3847 Half the patch by Christian Iseli <christian.iseli@licr.org>.
3850 * nscd/connections.c (restart): Don't resync if database is
3851 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3853 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3854 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
3856 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3857 evetnfd_read, eventfd_write.
3858 * sysdeps/unix/sysv/linux/eventfd.c: New file.
3859 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3860 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3861 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3862 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3863 eventfd_write for GLIBC_2.7.
3865 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3866 * sysdeps/unix/sysv/linux/signalfd.c: New file.
3867 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3868 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3870 2007-10-04 Jakub Jelinek <jakub@redhat.com>
3872 * stdlib/msort.c: Include stdint.h.
3873 (struct msort_param): New type.
3874 (msort_with_tmp): Use struct msort_param pointer for unchanging
3875 parameters. Add optimized handling for several common sizes
3876 and indirect sorting mode.
3877 (qsort): Adjust msort_with_tmp callers. For big S use indirect
3879 Suggested by Belazougui Djamel .
3881 * stdlib/Makefile (tests): Add tst-qsort2.
3882 * stdlib/tst-qsort2.c: New test.
3884 2007-10-04 Ulrich Drepper <drepper@redhat.com>
3886 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3887 for dup2 in case another thread races with the current one. Retry
3890 * misc/error.h: Remove support for use outside of libc. We have to
3891 include <features.h> now. Include <bits/error.h> if possible.
3892 * misc/bits/error.h: New file.
3894 2007-10-03 Jakub Jelinek <jakub@redhat.com>
3896 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3897 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3898 __extern_always_inline functions unconditionally, drop macros.
3900 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3901 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3902 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3904 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3905 add __artificial__ attribute.
3907 2007-10-02 Ulrich Drepper <drepper@redhat.com>
3909 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3910 backward to forward direction.
3912 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3915 * locale/programs/ld-collate.c (collate_finish): Compare against last
3916 used section which is known to have rules defined.
3917 (collate_read): After order_start, correctly record order of sections
3918 and queue sections up.
3920 2007-10-01 Ulrich Drepper <drepper@redhat.com>
3923 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3924 the same number of pages.
3925 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3927 * locale/programs/ld-collate.c (collate_read): After initial copy
3928 statement, continue in state 0.
3930 * include/stdio_ext.h (__fsetlocking): Define as macro.
3932 2007-09-30 Ulrich Drepper <drepper@redhat.com>
3934 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3937 * po/pt_BR.po: Fix typo.
3939 2007-09-29 Ulrich Drepper <drepper@redhat.com>
3941 * iconvdata/Makefile (modules): Add ISO8859-9E.
3942 (distribute): Add iso8859-9e.c.
3943 (gen-8bit-gap-modules): Add iso8859-9e.
3944 * iconvdata/iso8859-9e.c: New file.
3945 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3946 * iconvdata/TESTS: Likewise.
3947 * iconvdata/tst-tables.sh: Likewise.
3949 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3951 * locale/iso-639.def: Add several new entries.
3953 2007-09-24 Jakub Jelinek <jakub@redhat.com>
3955 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3956 void * pointers instead of struct link_map **.
3957 (_dl_scope_free): Change argument type to void *.
3958 * include/link.h (struct link_map): Change type of l_reldeps
3959 to struct link_map_reldeps, move l_reldepsact into that
3961 * elf/dl-deps.c: Include atomic.h.
3962 (_dl_map_object_deps): Only change l->l_initfini when it is
3963 fully populated, use _dl_scope_free for freeing it. Optimize
3964 removal of libs from reldeps by using l_reserved flag, when
3965 some removal is needed, allocate a new list instead of
3966 reallocating and free the old with _dl_scope_free. Adjust
3967 for l_reldeps and l_reldepsact changes.
3968 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3969 searching in l_initfini and l_reldeps without holding dl_load_lock.
3970 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3971 l_reldepsact changes.
3972 * elf/dl-close.c (_dl_close_worker): Likewise.
3973 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3975 2007-09-28 Ulrich Drepper <drepper@redhat.com>
3977 * iconvdata/Makefile (modules): Add KOI8-RU.
3978 (distribute): Add koi8-ru.c.
3979 (gen-8bit-gap-modules): Add koi8-ru.
3980 * iconvdata/koi8-ru.c: New file.
3981 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3982 * iconvdata/TESTS: Likewise.
3983 * iconvdata/tst-tables.sh: Likewise.
3985 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3987 2007-09-26 Jakub Jelinek <jakub@redhat.com>
3989 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3990 with __warning__/__error__ attributes.
3991 (__warnattr): Define.
3992 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3993 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3995 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3996 of __*_chk if compile time detectable overflow is found.
3997 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3998 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4000 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4001 instead of __*_chk if compile time detectable overflow is found.
4002 (__gets_alias): Rename to...
4003 (__gets_warn): ... this. Add __warnattr.
4004 (gets): Call __gets_warn instead of __gets_alias.
4005 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4006 aliases with __warnattr.
4007 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4008 time detectable overflow is found.
4009 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4010 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4011 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4012 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4013 __getdomainname_chk_warn): New aliases with __warnattr.
4014 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4015 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4016 __*_chk_warn instead of __*_chk if compile time detectable overflow
4018 (__getgroups_chk): Rename argument to __listlen from listlen.
4019 (__getwd_alias): Rename to...
4020 (__getwd_warn): ... this. Add __warnattr.
4021 (getwd): Call __getwd_warn instead of __getwd_alias.
4022 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4023 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4024 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4025 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4026 __wcsnrtombs_chk_warn): New aliases with __warnattr.
4027 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4028 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4029 compile time detectable overflow is found.
4030 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
4031 to use __*_chk or not.
4032 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4033 in comparisons which function should be called and in __*_chk*
4034 arguments. Call __*_chk_warn instead of __*_chk if compile time
4035 detectable overflow is found.
4036 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4038 * debug/tst-chk1.c (do_test): Add a few more tests.
4040 2007-09-24 Ulrich Drepper <drepper@redhat.com>
4043 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4044 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4045 (_nl_unload_domain): Finalize conversions_lock.
4046 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4047 handling table of known conversions.
4049 2007-09-24 Jakub Jelinek <jakub@redhat.com>
4051 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4052 close_not_cancel_no_status instead of close.
4054 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
4057 * posix/regcomp.c (lookup_collation_sequence_value): Check that
4058 nrules != 0 for multibyte chars.
4060 2007-09-23 Ulrich Drepper <drepper@redhat.com>
4062 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4063 Provide better error message in case the type is unknown.
4066 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4067 * string/stratcliff.c: Make usable to test wide char functions.
4068 * wcsmbs/wcsatcliff.c: New file.
4069 * wcsmbs/Makefiel (tests): Add wcsatcliff.
4072 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4073 (distribute): Add mac-centraleurope.c.
4074 (gen-8bit-gap-modules): Add mac-centraleurope.
4075 * iconvdata/mac-centraleurope.c: New file.
4076 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4077 * iconvdata/TESTS: Likewise.
4078 * iconvdata/tst-tables.sh: Likewise.
4081 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4083 2007-09-21 Ulrich Drepper <drepper@redhat.com>
4085 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4086 from __x86_64_core_cache_size_half.
4087 (init_cacheinfo): Compute shared cache size for AMD processors with
4088 shared L3 correctly.
4089 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4091 Patch in large parts by Evandro Menezes.
4093 2007-09-19 Ulrich Drepper <drepper@redhat.com>
4095 * elf/dl-lookup.c (add_dependency): Handle failing memory
4096 allocation for dependency list. Remove unnecessary check.
4098 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4099 open/close when determining source addresses.
4101 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4102 sha512-crypt, and sha512.
4103 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4104 (distribute): Add sha256.h and sha512.h.
4105 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4106 and call the appropriate code.
4107 * crypt/sha256-crypt.c: New file.
4108 * crypt/sha256.c: New file.
4109 * crypt/sha256.h: New file.
4110 * crypt/sha256c-test.c: New file.
4111 * crypt/sha256test.c: New file.
4112 * crypt/sha512-crypt.c: New file.
4113 * crypt/sha512.c: New file.
4114 * crypt/sha512.h: New file.
4115 * crypt/sha512c-test.c: New file.
4116 * crypt/sha512test.c: New file.
4118 2007-09-19 Jakub Jelinek <jakub@redhat.com>
4120 * misc/bits/syslog.h (syslog): Remove extraneous argument from
4121 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4124 2007-09-18 Jakub Jelinek <jakub@redhat.com>
4126 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4127 %as in fscanf format strings.
4129 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4130 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4131 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4133 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4136 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4137 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4138 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4139 * elf/dl-sym.c (do_sym): Likewise.
4140 * include/link.h (struct link_map): Add l_serial field.
4141 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4142 * elf/dl-lookup.c (add_dependency): Add flags argument.
4143 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4144 flags, use THREAD_GSCOPE_RESET_FLAG before and
4145 THREAD_GSCOPE_SET_FLAG after
4146 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4147 Don't dereference map until it has been found on some list.
4148 If map->l_serial changed, return -1.
4150 2007-09-17 Jakub Jelinek <jakub@redhat.com>
4152 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4153 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4154 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4156 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4157 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4158 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4159 add libc_hidden_proto.
4160 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4161 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4162 conformance requested.
4163 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4164 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4165 conformance requested.
4166 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4167 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4168 conformance requested.
4169 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4170 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4171 ISO C99 or POSIX conformance requested.
4172 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4173 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4174 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4175 and __isoc99_vsscanf@@GLIBC_2.7.
4176 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4177 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4178 (tests): Add scanf14.
4179 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4180 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4181 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4182 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4183 CFLAGS-isoc99_scanf.c): Add $(exceptions).
4184 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4185 from using internal headers.
4186 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4187 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4188 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4189 and __isoc99_vswscanf@@GLIBC_2.7.
4190 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4191 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4192 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4193 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4194 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4195 * stdio-common/isoc99_scanf.c: New file.
4196 * stdio-common/isoc99_vsscanf.c: New file.
4197 * stdio-common/isoc99_vscanf.c: New file.
4198 * stdio-common/isoc99_vfscanf.c: New file.
4199 * stdio-common/isoc99_fscanf.c: New file.
4200 * stdio-common/isoc99_sscanf.c: New file.
4201 * wcsmbs/isoc99_fwscanf.c: New file.
4202 * wcsmbs/isoc99_vswscanf.c: New file.
4203 * wcsmbs/isoc99_swscanf.c: New file.
4204 * wcsmbs/isoc99_wscanf.c: New file.
4205 * wcsmbs/isoc99_vwscanf.c: New file.
4206 * wcsmbs/isoc99_vfwscanf.c: New file.
4207 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4208 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4209 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4210 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4211 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4212 * stdio-common/scanf14.c: New test.
4213 * stdio-common/scanf15.c: New test.
4214 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4215 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4216 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4217 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4218 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4219 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4220 __nldbl___isoc99_scanf@@GLIBC_2.7,
4221 __nldbl___isoc99_fscanf@@GLIBC_2.7,
4222 __nldbl___isoc99_sscanf@@GLIBC_2.7,
4223 __nldbl___isoc99_vscanf@@GLIBC_2.7,
4224 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4225 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4226 __nldbl___isoc99_wscanf@@GLIBC_2.7,
4227 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4228 __nldbl___isoc99_swscanf@@GLIBC_2.7,
4229 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4230 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4231 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4232 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4233 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4234 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4235 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4236 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4237 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4238 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4239 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4240 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4241 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4242 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4243 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4245 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4246 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4247 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4248 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4249 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4250 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4251 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4252 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4253 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4254 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4255 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4256 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4258 * stdio-common/Makefile (tests): Add scanf13.
4260 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4261 m modifier followed by l.
4262 (STRING_ARG): Add width argument.
4263 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4264 <case L_('C')>: Handle %mlc and %mC.
4265 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4267 * stdio-common/scanf13.c: New test.
4269 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4270 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4272 2007-09-18 Ulrich Drepper <drepper@redhat.com>
4274 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4275 type and __THROW marker of splice, vmsplice, and tee.
4276 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4277 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4278 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4279 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4280 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4281 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4282 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4283 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4284 as cancellation points.
4286 2003-11-01 Daniel Jacobowitz <dan@debian.org>
4288 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4289 parse more than three parts of the version number.
4291 2007-09-15 Ulrich Drepper <drepper@redhat.com>
4293 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4294 modifier. Patch by Jakub Jelinek.
4296 2007-08-26 Jakub Jelinek <jakub@redhat.com>
4298 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4299 call_fallocate in misc subdir.
4300 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4301 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4302 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4303 instead of __fallocate64.
4304 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4306 2007-09-15 Jakub Jelinek <jakub@redhat.com>
4308 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4309 * rt/Makefile (headers): Add bits/mqueue2.h.
4310 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4311 optimizing with GCC and __va_arg_pack_len is defined.
4312 * rt/bits/mqueue2.h: New file.
4313 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4314 (mq_open): New strong_alias.
4315 (__mq_open_2): New function.
4316 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4317 (mq_open): New strong_alias.
4318 (__mq_open_2): New function.
4319 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4320 * Versions.def (librt): Add GLIBC_2.7 version.
4321 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4322 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4324 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4325 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4326 is defined rather than when not C++.
4327 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4328 __openat64_alias): New redirects.
4329 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4330 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4331 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4332 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4333 functions instead of function-like macros.
4335 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4337 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4338 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4339 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4341 2007-09-15 Mike Frysinger <vapier@gentoo.org>
4343 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4344 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4346 2007-09-14 Mike Frysinger <vapier@gentoo.org>
4348 * inet/tst-network.c: Increment ERRORS for failing tests.
4350 2007-09-07 Jakub Jelinek <jakub@redhat.com>
4352 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4353 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4354 implement as __extern_always_inline function.
4355 (vsyslog): Define as __extern_always_inline function unconditionally.
4356 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4357 When __va_arg_pack is defined, implement as __extern_always_inline
4359 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4360 __extern_always_inline functions unconditionally.
4361 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4362 bits/stdio2.h will be included.
4363 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4364 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4365 implement as __extern_always_inline functions.
4366 (vswprintf, vwprintf, vfwprintf): Define as
4367 __extern_always_inline functions unconditionally.
4368 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4370 2007-09-03 Jakub Jelinek <jakub@redhat.com>
4372 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4373 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4375 * include/features.h (__USE_EXTERN_INLINES): Define only when
4376 __extern_inline is defined.
4377 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4378 is defined instead of when not __cplusplus.
4379 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4380 is defined instead of when not __cplusplus.
4381 * socket/sys/socket.h: Include bits/socket2.h when
4382 __extern_always_inline is defined instead of when not __cplusplus.
4383 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4384 is defined instead of when not __cplusplus.
4385 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4386 is defined instead of when not __cplusplus.
4387 * string/string.h: Include bits/string3.h when __extern_always_inline
4388 is defined instead of when not __cplusplus.
4389 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4390 is defined instead of when not __cplusplus.
4391 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4392 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4394 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4395 defined __extern_always_inline instead of !defined __cplusplus.
4396 * libio/bits/stdio-ldbl.h: Likewise.
4397 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4398 * misc/bits/syslog.h (syslog): Don't define for C++.
4399 (vsyslog): Use __extern_always_inline function for C++ instead of
4401 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4402 whenever that macro is defined.
4403 (vprintf): Don't provide the inline for C++.
4404 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4405 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4406 define the macros for C++.
4407 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4408 __extern_always_inline functions for C++.
4409 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4410 stat64, lstat64, fstat64, fstatat64): Don't define if not
4411 __USE_EXTERN_INLINES.
4412 * wcsmbs/bits/wchar2.h: Fix #error message.
4413 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4414 (vswprintf, vwprintf, vfwprintf): Define using
4415 __extern_always_inline functions for C++.
4416 * string/bits/string3.h: Don't #undef macros if __cplusplus.
4417 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4418 strncpy, strcat, strncat): Define as __extern_always_inline
4419 functions instead of macros for C++.
4420 * math/bits/cmathcalls.h: Guard __extern_inline routines with
4421 defined __extern_inline.
4422 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4423 to __extern_inline whenever that macro is defined.
4424 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4425 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4426 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4427 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4428 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4429 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4430 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4431 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4432 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4433 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4434 prototypes. Only provide __extern_inline routines if
4435 __USE_EXTERN_INLINES.
4436 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4438 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4439 For now avoid some *printf tests in C++. Skip all testing
4440 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4442 * debug/tst-chk4.cc: New file.
4443 * debug/tst-chk5.cc: New file.
4444 * debug/tst-chk6.cc: New file.
4445 * debug/tst-lfschk4.cc: New file.
4446 * debug/tst-lfschk5.cc: New file.
4447 * debug/tst-lfschk6.cc: New file.
4448 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4450 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4451 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4452 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4454 2007-09-13 Ulrich Drepper <drepper@redhat.com>
4456 * po/cs.po: Update from translation team.
4458 2007-09-11 Roland McGrath <roland@redhat.com>
4460 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4463 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4465 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4467 2007-09-05 Roland McGrath <roland@redhat.com>
4469 * manual/signal.texi (Signaling Another Process): Typo fix.
4470 From Karl Berry <karl@freefriends.org>.
4472 2007-08-29 Ulrich Drepper <drepper@redhat.com>
4474 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4475 zero if not defined.
4476 (make_request): Recognize optimistic addresses and treat them like
4477 deprecated addresses.
4478 Reported by Neil Horman <nhorman@redhat.com>.
4480 2007-08-28 Ulrich Drepper <drepper@redhat.com>
4482 * nscd/connections.c (send_ro_fd): Also transfer file size.
4483 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4484 file size don't call fstat.
4486 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4487 ahead and map the file. This should always be correct and we can
4488 catch problems later.
4490 2007-08-28 Jakub Jelinek <jakub@redhat.com>
4492 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4494 (__fread_alias, __fread_unlocked_alias): New aliases.
4495 (fread): New extern inline.
4496 (fread_unlocked): Likewise. Undef macro before definition of
4497 the inline function.
4498 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4499 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4500 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4501 and __fread_unlocked_chk@@GLIBC_2.7.
4502 * debug/fread_chk.c: New file.
4503 * debug/fread_u_chk.c: New file.
4504 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4506 2007-08-27 Jakub Jelinek <jakub@redhat.com>
4508 * sysdeps/unix/sysv/linux/syscalls.list
4509 (personality): Change caller to EXTRA.
4511 2007-08-25 Ulrich Drepper <drepper@redhat.com>
4513 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4515 * iconvdata/iso-2022-cn.c (BODY): Likewise.
4517 * locale/programs/ld-collate.c (collate_output): Avoid warning if
4520 * Makerules: Use -p option with mkdir.
4522 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4523 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4524 (_xdr_directory_obj): Likewise.
4525 (xdr_entry_obj): Likewise.
4526 (xdr_group_obj): Likewise.
4527 (xdr_link_obj): Likewise.
4528 (xdr_table_obj): Likewise.
4529 (_xdr_nis_result): Likewise.
4530 (_xdr_ns_request): Likewise.
4531 (_xdr_ib_request): Likewise.
4532 (_xdr_nis_taglist): Likewise.
4533 (xdr_cback_data): Likewise.
4534 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4535 (xdr_ypresp_maplist): Likewise.
4537 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4539 * posix/regex_internal.h: Prevent some declarations and definitions
4540 to be seen when used in tests.
4542 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4543 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4545 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4547 * config.make.in (datarootdir): Add to shut up configure.
4549 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4550 associativity for fully-associative caches.
4552 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4553 requests. Fill on more associativity values for L2.
4554 Patch mostly by Evandro Menezes.
4556 2007-08-24 Ulrich Drepper <drepper@redhat.com>
4558 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4559 (_libc_vdso_platform_setup): Avoid using exported variable by using
4562 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4564 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4565 fallocate64 as EXTRA. It is not referenced if the symbol isn't
4568 2007-08-23 Ulrich Drepper <drepper@redhat.com>
4570 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4571 align stack for call if pltexit is to be used.
4574 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4575 align for function call in case pltexit has to be called later.
4577 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4578 implicit atomic operation when storing function pointer.
4579 (_dl_runtime_profile): Likewise.
4581 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4583 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4586 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4589 * string/strtok.c: Fix typo in comment.
4592 * debug/segfault.c: Fix typos in comments.
4595 * stdio-common/tempnam.c: Fix comment, it is not checked that
4596 TMPDIR points to a writable directory.
4599 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4600 memory allocated for the name server address.
4603 * nscd/connections.c (handle_request): Using sendfile always
4604 requires that mmap is used for the database.
4605 Patch by Petr Baudis <pasky@suse.cz>.
4608 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4609 suddenly has two or more addresses, ignore it and remove the old
4613 * resolv/res_hconf.c: Prepare for compiling outside libc.
4614 * nscd/res_hconf.c: New file.
4615 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4617 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4618 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4620 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4623 * debug/pcprofiledump.c: Turn on internationalization by calling
4624 setlocale. Patch mostly by Benno Schulenberg.
4627 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4629 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4630 * iconvdata/bug-iconv5.c: New file.
4632 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4635 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4636 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4637 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4638 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4639 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4640 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4641 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4642 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4644 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4647 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4648 lookup loop. Suggested by John Reiser.
4650 2007-08-21 Jakub Jelinek <jakub@redhat.com>
4652 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4654 2007-08-20 Ulrich Drepper <drepper@redhat.com>
4656 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4657 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4658 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4659 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4660 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4662 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4664 2007-08-18 Ulrich Drepper <drepper@redhat.com>
4666 * po/nl.po: Update from translation team.
4668 2007-08-16 Andreas Jaeger <aj@suse.de>
4670 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4671 Reported by Peter Festner <peter.festner@ewetel.net>.
4673 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4675 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4677 2007-08-16 Jakub Jelinek <jakub@redhat.com>
4679 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4680 to check for undefined symbols.
4682 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4683 If the syscall fails, set errno to the actual returned error number
4685 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4686 arguments are incorrect, set errno to EINVAL, if the syscall
4687 fails, set errno to the actual returned error number.
4689 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4690 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4692 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4693 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4695 (ASI_PNF, ASI_BLK_P): Don't define.
4696 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4697 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4699 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4700 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4703 2007-08-15 Jakub Jelinek <jakub@redhat.com>
4705 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4706 FE_UNDERFLOW on Niagara CPUs.
4708 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4711 2007-08-14 Jakub Jelinek <jakub@redhat.com>
4713 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4714 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4715 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4716 flush should be used or not inside of the function.
4717 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4719 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4720 __thread_start): Use HIDDEN_JUMPTARGET.
4721 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4722 __thread_start): Likewise.
4723 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4725 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4726 Add libc_hidden_proto.
4727 (STRTOF): Add libc_hidden_proto.
4728 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4729 (strtold_l, wcstold_l): Use them as second argument for
4732 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4734 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4736 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4738 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4740 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4742 * po/bg.po: New file. From the translation team.
4744 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4746 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4747 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4748 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4749 when each feature was introduced.
4751 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4752 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4753 (CHECK_HASH): New macro.
4754 (PREPARE_VERSION): Use it.
4756 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4757 prototype if not __ASSUME_PSELECT.
4758 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4759 prototype if not __ASSUME_PPOLL.
4761 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4763 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4764 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4767 2007-08-13 Ulrich Drepper <drepper@redhat.com>
4769 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4770 (_libc_vdso_platform_setup): If vDSO is not available point
4771 __vdso_gettimeofday to the vsyscall.
4772 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4773 __vdso_gettimeofday instead of vsyscall.
4775 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4777 * nscd/servicescache.c: Include kernel-features.h.
4778 * nscd/gai.c: Likewise.
4779 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4780 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4781 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4782 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4783 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4784 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4785 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4786 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4787 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4789 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4791 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4792 and _dl_get_origin defines anymore.
4794 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4795 Build fix for systems which might lack POSIX timer support.
4797 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4798 (_libc_vdso_platform_setup): Mangle function pointers before storing
4800 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4801 Demangle vdso pointer before use.
4802 (INTERNAL_VSYSCALL): Likewise.
4804 * elf/cache.c (primes): Mark as const.
4805 Noted by Roland McGrath.
4807 2007-08-01 Andreas Jaeger <aj@suse.de>
4808 Jakub Jelinek <jakub@redhat.com>
4810 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4811 (options): Add option.
4812 (parse_opt): Handle option.
4813 (manual_link): Adjust process_file caller. Call implicit_soname.
4814 (search_dir): Formatting. Use and populate auxiliary cache.
4815 (main): Load and save auxiliary cache.
4816 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
4817 stat64 from fstat64 to caller.
4818 (implicit_soname): New function.
4819 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4820 leave *soname as NULL.
4821 * elf/cache.c: Include libgen.h.
4822 (print_entry, print_cache, compare, save_cache, add_to_cache):
4823 Formatting and cleanups.
4824 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4825 aux_cache_file): New structures.
4826 (AUX_CACHEMAGIC): Define.
4827 (primes): New array.
4828 (aux_hash_size, aux_hash): New variables.
4829 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4830 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4831 load_aux_cache, save_aux_cache): New functions.
4832 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4833 (init_aux_cache, search_aux_cache, add_to_aux_cache,
4834 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4835 (process_file): Adjust prototype.
4837 2007-08-12 Jakub Jelinek <jakub@redhat.com>
4839 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4842 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4844 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4845 r_found_version structure as second parameter.
4846 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4847 (_dl_vdso_vsym): Change type of second parameter accordingly.
4848 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4849 (_libc_vdso_platform_setup): Adjust.
4850 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4851 (_libc_vdso_platform_setup): Likewise.
4853 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4854 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4855 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4856 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4857 * csu/libc-start.c: Pretty printing.
4858 Use VDSO_SETUP if defined.
4859 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4860 and let generic code call into _libc_vdso_platform_setup.
4861 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4862 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4863 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4864 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4865 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4867 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4868 (sysdep_rountines): Add dl-vdso.
4870 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4873 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4874 attribute_hidden to __vdso_gettimeofday prototype.
4876 2007-08-12 Roland McGrath <roland@redhat.com>
4878 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4879 From: Karl Berry <karl@freefriends.org>.
4881 2007-08-11 Ulrich Drepper <drepper@redhat.com>
4883 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4884 an atime update for the files we read.
4886 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4888 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4890 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
4893 * misc/Makefile (routines): Add mkostemp and mkostemp64.
4894 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4895 * misc/mkostemp.c: New file.
4896 * misc/mkostemp64.c: New file.
4897 * stdlib/stdlib.h: Declare the new functions.
4898 * sysdeps/posix/tempname.c: Add new parameter which is added to
4899 the flags for open. Remove __GT_BIGFILE handling.
4900 * stdio-common/tempname.c: Likewise.
4901 * include/stdio.h: Adjust __gen_tempname prototype.
4902 Renumber __GT_* constants.
4903 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4904 * misc/mkdtemp.c: Likewise.
4905 * misc/mkstemp.c: Likewise.
4906 * misc/mkstemp64.c: Likewise.
4907 * misc/mktemp.c: Likewise.
4908 * stdio-common/tempnam.c: Likewise.
4909 * stdio-common/tmpfile.c: Likewise.
4910 * stdio-common/tmpfile64.c: Likewise.
4911 * stdio-common/tmpnam.c: Likewise.
4912 * stdio-common/tmpnam_r.c: Likewise.
4914 2007-08-10 Roland McGrath <roland@frob.com>
4916 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4918 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4919 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4921 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4923 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4925 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4926 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4927 * nss/nss_files/files-have_o_cloexec.c: New file.
4929 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4932 2007-08-10 Jakub Jelinek <jakub@redhat.com>
4934 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4935 ___new_wcstold_l): New weak aliases.
4936 (strtold_l, wcstold_l): Use them as second argument for
4939 2007-08-09 Ulrich Drepper <drepper@redhat.com>
4941 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4942 register in test for error.
4944 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4945 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4947 * po/sv.po: Update from translation team.
4949 2007-08-06 Roland McGrath <roland@redhat.com>
4951 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4952 Remove __strto*_l inlines.
4953 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4954 * stdlib/strtod.c: Add libc_hidden_def.
4955 * stdlib/strtod_l.c: Likewise.
4956 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4957 for __new_strtold and __new_wcstold.
4958 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4960 * stdlib/strtol.c: Add libc_hidden_def.
4961 * stdlib/strtol_l.c: Likewise.
4962 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4965 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4967 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4968 * scripts/data/localplt-generic.data: ... here.
4969 * elf/Makefile (check-data): Get generic file if no other.
4970 ($(objpfx)check-localplt.out): Make target unconditional.
4972 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4975 2007-08-05 Ulrich Drepper <drepper@redhat.com>
4977 * po/zh_CN.po: Updated translation from translation team.
4979 2007-08-05 Jakub Jelinek <jakub@redhat.com>
4981 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4982 Don't use CGOTSETUP and CGOTRESTORE macros.
4984 2007-08-04 Roland McGrath <roland@redhat.com>
4986 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4988 2007-08-04 Jakub Jelinek <jakub@redhat.com>
4990 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4991 __extension__ around the whole statement expression.
4993 2007-08-04 Ulrich Drepper <drepper@redhat.com>
4995 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4996 elements during initialization.
4998 * po/pl.po: Updated translation from translation team.
4999 * po/tr.po: Likewise.
5000 * po/nl.po: Likewise.
5002 2007-08-03 Ulrich Drepper <drepper@redhat.com>
5004 * rt/aio.h: Add __nonnull attributes.
5006 2007-08-03 Jakub Jelinek <jakub@redhat.com>
5008 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5009 * stdlib/Makefile (tests): Add tst-strtod5.
5010 (tst-strtod5-ENV): New.
5011 * stdlib/tst-strtod5.c: New file.
5013 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5015 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5018 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5021 2007-08-03 Jakub Jelinek <jakub@redhat.com>
5023 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5026 2007-08-02 Ulrich Drepper <drepper@redhat.com>
5028 * io/Makefile (aux): Add have_o_cloexec.
5029 * include/fcntl.h: Declare __have_o_cloexec.
5030 * io/have_o_cloexec.c: New file.
5031 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5032 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5033 fcntl call if not necessary.
5034 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5037 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5038 Avoid memset, add explicit initialization.
5039 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5040 to the end and change into zero-sized array.
5041 Move lock member to fill a hole on 64-bit platforms.
5043 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5045 * include/stdlib.h: Add __strto*_internal prototypes here.
5046 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5048 * include/wchar.h: Add __wcsto*_internal prototypes.
5049 * sysdeps/generic/inttypes.h: No need to protect the declaration
5050 of the __strto*_internal and __wcsto*_internal members here.
5052 * rt/mqueue.h: Change const to __const and add nonnull attributes.
5054 2007-08-02 Roland McGrath <roland@redhat.com>
5056 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5057 $(inst_bindir)/getconf if possible.
5059 * posix/Makefile ($(objpfx)getconf.speclist): New target.
5060 (generated): Add it.
5061 ($(inst_libexecdir)/getconf): Use it.
5063 2007-08-01 Ulrich Drepper <drepper@redhat.com>
5065 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5066 /proc is faster and sufficient. /sys is still needed for
5069 2007-08-01 Jakub Jelinek <jakub@redhat.com>
5071 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5072 syscall as __fallocate64.
5073 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5074 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5076 2007-07-30 Jakub Jelinek <jakub@redhat.com>
5078 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5081 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5082 if off_t is different rank from size_t.
5084 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5085 uw_frame_state_for): Avoid type punning warnings.
5086 * sysdeps/generic/unwind-dw2-fde-glibc.c
5087 (_Unwind_IteratePhdrCallback): Likewise.
5088 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5089 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5090 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5093 2007-07-31 Ulrich Drepper <drepper@redhat.com>
5095 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5096 total processors using sysfs.
5097 (__get_nprocs): Use sysfs to determine which processors are online.
5099 2007-07-31 Jakub Jelinek <jakub@redhat.com>
5101 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5102 syscall arguments count.
5104 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5106 2007-07-30 Roland McGrath <roland@redhat.com>
5108 * manual/libc.texinfo: Update copyrights, formatting magic, and
5109 @dircategory. From Karl Berry <karl@freefriends.org>.
5111 2007-07-29 Ulrich Drepper <drepper@redhat.com>
5114 * io/Makefile (headers): Add bits/fcntl2.h.
5116 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5118 (__CPU_EQUAL_S): Likewise.
5120 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5121 (tests): Add tst-cpuset.
5122 * posix/sched_cpualloc.c: New file.
5123 * posix/sched_cpufree.c: New file.
5124 * posix/tst-cpuset.c: New file.
5125 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5127 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5128 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5129 macros. Define CPU_*_S macros.
5131 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5133 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5137 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5138 #.0g and value rounded to 1.0.
5139 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5141 2007-07-26 Jakub Jelinek <jakub@redhat.com>
5143 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5144 for int_frac_digits and frac_digits.
5146 * login/logout.c (logout): Avoid aliasing violation.
5147 * login/logwtmp.c (logwtmp): Likewise.
5149 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5151 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5153 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5155 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5157 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5160 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5162 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5164 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5165 char * to avoid warning.
5166 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5168 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5170 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5171 allocate_arrays): Cast second argument to charmap_find_symbol
5172 to char * to avoid warnings.
5174 * locale/programs/repertoire.c (repertoire_new_char): Change
5175 from_nr, to_nr and cnt to unsigned long, adjust printf format
5178 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5179 Cast second argument to new_element to char * to avoid warnings.
5181 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5183 * intl/gettextP.h (struct loaded_domain): Change plural to const
5184 struct expression *.
5185 * intl/plural-eval.c (plural_eval): Change first argument to
5186 const struct expression *.
5187 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5188 argument to const struct expression **.
5189 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5191 * intl/loadmsgcat (_nl_unload_domain): Cast away const
5192 in call to __gettext_free_exp.
5194 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5195 unitialized wstring/wpattern var warnings.
5197 * posix/runtests.c (struct a_test): Make data field const char *.
5199 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5200 vars if not LDBL_MANT_DIG >= 106.
5202 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5204 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5205 __find_specmb to avoid warning.
5207 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5209 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5212 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5215 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5216 tv var when it will be actually used.
5218 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5221 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5222 char array resp. pointer.
5223 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5225 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5226 to const unsigned char **.
5227 (ucs4_to_cns11643): Change second argument to unsigned char *.
5228 * iconvdata/euc-tw.c (BODY): Change endp type to
5229 const unsigned char *.
5230 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5232 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5233 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5234 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5235 types to unsigned char pointers/arrays instead of char.
5236 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5238 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5239 * iconvdata/jis0212.h: Include assert.h.
5240 (ucs4_to_jisx0212): Change second argument to unsigned char *.
5241 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5242 of trying to handle that.
5243 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5245 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5246 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5247 two dimensional const unsigned char arrays.
5248 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5249 Initialize endp to inptr to shut up a warning.
5251 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5254 * time/strptime_l.c (__strptime_internal): Silently ignore
5255 strftime modifiers and field width in recursive calls.
5257 * include/time.h (enum ptime_locale_status): Remove.
5258 (__strptime_internal): Remove decided and era_cnt arguments,
5259 add statep argument.
5260 * time/strptime_l.c (__strptime_internal): Remove decided
5261 and era_cnt arguments, add statep argument. Don't recompute
5262 any fields in recursive calls, only update caller's tm
5263 and state, if recursive call fails, don't change tm nor
5265 (get_alt_number): Adjust.
5266 (recursive): Adjust caller.
5267 (strptime): Likewise.
5268 * time/strptime.c (strptime): Likewise.
5270 2007-07-19 Jakub Jelinek <jakub@redhat.com>
5272 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5273 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5274 if from and to charsets are the same.
5275 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5276 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5277 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5279 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5281 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5282 Don't define wint_t when __need_mbstate_t unless it
5284 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5285 in the typedef if possible.
5286 * wctype/wctype.h (wint_t): Define by including
5287 wchar.h with __need_wint_t instead of including stddef.h
5288 with __need_wint_t and as fallback definining it ourselves.
5289 * iconv/gconv.h (__need_wint_t): Define before including
5291 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5292 or _GLIBCPP_USE_WCHAR_T.
5293 (__need_wchar_t): Don't define
5294 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5295 (__need_wint_t): Don't define before including stddef.h,
5296 define before including wchar.h only if _LIBC or
5297 _GLIBCPP_USE_WCHAR_T.
5298 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5299 * sysdeps/mach/hurd/_G_config.h: Likewise.
5300 * sysdeps/generic/_G_config.h: Likewise.
5301 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5302 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5303 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5304 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5306 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5308 * sysdeps/posix/posix_fallocate64.c: Undefine
5309 __posix_fallocate64_l64 before alias handling.
5310 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5311 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5312 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5313 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5315 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5317 2007-07-23 Jakub Jelinek <jakub@redhat.com>
5319 * locale/programs/ld-collate.c (atwc): New variable.
5320 (add_to_tablewc): New toplevel function, moved from collate_output.
5321 (collate_output): Remove add_to_tablewc nested function.
5323 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5324 (name_insert): New function.
5325 (write_output): Remove hash_table and hash_size vars and name_insert
5328 2007-07-24 Roland McGrath <roland@redhat.com>
5330 * Makerules (install-others-programs-nosubdir): New target.
5331 (install-no-libc.a-nosubdir): Depend on it.
5333 * iconv/Makefile (install-others-programs): Set this instead of
5335 * login/Makefile (install-others-programs): Likewise.
5336 * posix/Makefile (install-others-programs): Likewise.
5338 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5341 2007-07-23 Ulrich Drepper <drepper@redhat.com>
5343 * io/Makefile (tests): Add tst-posix_fallocate.
5344 * io/tst-posix_fallocate.c: New file.
5346 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5349 2007-07-22 Roland McGrath <roland@frob.com>
5351 * hurd/getdport.c: Add missing copyright year update.
5353 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5354 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5356 2007-07-22 Ulrich Drepper <drepper@redhat.com>
5358 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5360 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5361 O_CLOEXEC is needed.
5362 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5363 Avoid additional fcntl to set O_CLOEXEC if not needed.
5364 * nis/nss_compat/compat-initgroups.c: Likewise.
5365 * nis/nss_compat/compat-pwd.c: Likewise.
5366 * nis/nss_compat/compat-spwd.c: Likewise.
5368 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5371 * manual/errno.texi: Change ECANCELED value to 119.
5374 * mach/lock-intern.h: Include <sys/cdefs.h>.
5377 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5381 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5384 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5386 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
5388 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5390 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5392 2007-07-21 Ulrich Drepper <drepper@redhat.com>
5394 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5395 descriptor received from nscd.
5397 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5399 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5400 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5401 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5402 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5403 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5404 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5406 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5409 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5412 * login/forkpty.c (forkpty): Close master and slave fds on
5413 fork failure. Patch by
5414 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5416 2007-07-18 Jakub Jelinek <jakub@redhat.com>
5418 * include/features.h (__USE_ISOC95): New define.
5419 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5420 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5421 for -std=iso9899:199409.
5422 * CONFORMANCE: Remove comments about unsupported AMD1.
5424 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5426 * sysdeps/ia64/sched_cpucount.c: New file.
5427 * sysdeps/powerpc/sched_cpucount.c: New file.
5429 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5430 __BEGIN_DECLS/__END_DECLS around the prototype.
5431 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
5432 pointer to const cpu_set_t.
5434 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5435 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5436 __need_size_t and include stddef.h.
5437 * sysvipc/sys/msg.h: Likewise.
5438 * posix/sched.h: Likewise.
5439 * hurd/hurd/signal.h (__need_size_t): Define.
5441 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5442 neither does signal.h in pedantic ISO C namespaces. stdio.h
5443 no longer defines wint_t or wchar_t.
5445 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5446 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5447 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5448 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5449 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5450 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5451 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5452 * debug/printf_chk.c (__printf_chk): Likewise.
5453 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5454 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5456 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5459 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5460 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5462 2007-07-16 Jakub Jelinek <jakub@redhat.com>
5465 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5466 * malloc/malloc.h (realloc): Likewise.
5468 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5469 if one of proc_file_chain streams has that fileno.
5470 * stdio-common/Makefile (tests): Add tst-popen2.
5471 * stdio-common/tst-popen2.c: New test.
5473 2007-07-14 Jakub Jelinek <jakub@redhat.com>
5475 * elf/ldconfig.c: Allow GPLv2 or any later version.
5476 * elf/readlib.c: Likewise.
5477 * elf/chroot_canon.c: Likewise.
5478 * elf/cache.c: Likewise.
5479 * nscd/mem.c: Likewise.
5480 * nscd/getpwuid_r.c: Likewise.
5481 * nscd/grpcache.c: Likewise.
5482 * nscd/aicache.c: Likewise.
5483 * nscd/getsrvbynm_r.c: Likewise.
5484 * nscd/nscd.c: Likewise.
5485 * nscd/servicescache.c: Likewise.
5486 * nscd/getsrvbypt_r.c: Likewise.
5487 * nscd/initgrcache.c: Likewise.
5488 * nscd/gethstbyad_r.c: Likewise.
5489 * nscd/gethstbynm2_r.c: Likewise.
5490 * nscd/getgrnam_r.c: Likewise.
5491 * nscd/nscd_setup_thread.c: Likewise.
5492 * nscd/getpwnam_r.c: Likewise.
5493 * nscd/gai.c: Likewise.
5494 * nscd/connections.c: Likewise.
5495 * nscd/dbg_log.c: Likewise.
5496 * nscd/cache.c: Likewise.
5497 * nscd/hstcache.c: Likewise.
5498 * nscd/nscd_conf.c: Likewise.
5499 * nscd/getgrgid_r.c: Likewise.
5500 * nscd/pwdcache.c: Likewise.
5501 * catgets/gencat.c: Likewise.
5502 * locale/programs/linereader.h: Likewise.
5503 * locale/programs/locarchive.c: Likewise.
5504 * locale/programs/ld-paper.c: Likewise.
5505 * locale/programs/locfile-kw.h: Likewise.
5506 * locale/programs/ld-address.c: Likewise.
5507 * locale/programs/xmalloc.c: Likewise.
5508 * locale/programs/ld-time.c: Likewise.
5509 * locale/programs/localedef.c: Likewise.
5510 * locale/programs/simple-hash.c: Likewise.
5511 * locale/programs/xstrdup.c: Likewise.
5512 * locale/programs/ld-numeric.c: Likewise.
5513 * locale/programs/locfile-kw.gperf: Likewise.
5514 * locale/programs/ld-collate.c: Likewise.
5515 * locale/programs/charmap-kw.gperf: Likewise.
5516 * locale/programs/charmap.h: Likewise.
5517 * locale/programs/charmap-kw.h: Likewise.
5518 * locale/programs/config.h: Likewise.
5519 * locale/programs/locfile.c: Likewise.
5520 * locale/programs/ld-ctype.c: Likewise.
5521 * locale/programs/charmap.c: Likewise.
5522 * locale/programs/ld-messages.c: Likewise.
5523 * locale/programs/repertoire.h: Likewise.
5524 * locale/programs/locale.c: Likewise.
5525 * locale/programs/ld-name.c: Likewise.
5526 * locale/programs/linereader.c: Likewise.
5527 * locale/programs/locfile.h: Likewise.
5528 * locale/programs/3level.h: Likewise.
5529 * locale/programs/ld-monetary.c: Likewise.
5530 * locale/programs/ld-measurement.c: Likewise.
5531 * locale/programs/charmap-dir.c: Likewise.
5532 * locale/programs/ld-identification.c: Likewise.
5533 * locale/programs/localedef.h: Likewise.
5534 * locale/programs/charmap-dir.h: Likewise.
5535 * locale/programs/repertoire.c: Likewise.
5536 * locale/programs/simple-hash.h: Likewise.
5537 * locale/programs/ld-telephone.c: Likewise.
5538 * locale/programs/locale-spec.c: Likewise.
5539 * locale/programs/locfile-token.h: Likewise.
5540 * posix/getconf.c: Likewise.
5541 * iconv/dummy-repertoire.c: Likewise.
5542 * iconv/iconv_charmap.c: Likewise.
5543 * iconv/iconvconfig.c: Likewise.
5544 * iconv/iconv_prog.c: Likewise.
5545 * malloc/memusagestat.c: Likewise.
5546 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5548 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5550 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5551 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5552 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5553 check for the first argument.
5555 2007-07-12 Jakub Jelinek <jakub@redhat.com>
5558 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5559 (__tgmath_real_type): Fix if expr is const int or other const
5560 qualified integral type.
5561 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5562 expressions and handle const qualified arguments.
5563 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5564 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5565 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5566 statement expressions.
5567 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5568 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5569 (__TGMATH_UNARY_IMAG): Define.
5570 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5571 * math/Makefile (tests): Add test-tgmath2.
5572 (CFLAGS-test-tgmath2.c): Add.
5573 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5574 count_cfloat, count_cldouble): New variables.
5576 (main): Check number of complex calls as well.
5577 (F(compile_test)): Add complex tests and tests with const qualified
5579 (y, z, ccount): Define.
5580 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5581 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5582 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5583 F(cproj)): New functions.
5584 * math/test-tgmath2.c: New test.
5586 2007-07-11 Jakub Jelinek <jakub@redhat.com>
5589 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5590 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5592 * dlfcn/Makefile (distribute): Add glreflib3.c.
5593 (module-names): Add glreflib3.
5594 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5596 (LDFLAGS_glreflib3.so): New.
5597 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5599 * dlfcn/glreflib3.c: New file.
5601 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5602 returned -1, return NULL.
5603 * intl/explodename.c (_nl_explode_name): Return -1 if
5604 _nl_normalize_codeset failed.
5606 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5608 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5609 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5610 and avoid branch misspredicts for > 31 bytes memset case.
5611 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5612 Remove toc ref to __cache_line_size.
5614 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5615 to get ISA-V2.0 branch hints.
5616 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5617 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5618 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5619 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5620 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5621 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5622 Remove toc ref to __cache_line_size.
5624 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5625 Include math_ldbl_opt.h.
5627 2007-07-10 Ulrich Drepper <drepper@redhat.com>
5630 * time/strptime_l.c (__strptime_internal): Implement greedy
5631 matching of weekday and month names.
5633 2007-07-09 Roland McGrath <roland@redhat.com>
5635 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5636 (ELF_NOTE_ABI): Use it.
5637 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5639 2007-07-09 Ulrich Drepper <drepper@redhat.com>
5641 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5642 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5644 2007-07-07 Ulrich Drepper <drepper@redhat.com>
5647 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5648 in loop to look for conversion specifier to avoid testing of
5650 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5651 * stdio-common/bug18.c: New file.
5652 * stdio-common/bug18a.c: New file.
5653 * stdio-common/bug19.c: New file.
5654 * stdio-common/bug19a.c: New file.
5656 2007-07-05 Mike Frysinger <vapier@gentoo.org>
5658 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5661 2007-07-01 Jakub Jelinek <jakub@redhat.com>
5663 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5664 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5665 Return NULL if mmap failed instead of asserting it does not.
5666 (calloc): Check for integer overflow.
5668 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5671 2007-07-03 Jakub Jelinek <jakub@redhat.com>
5674 * nis/nss-default.c: Include errno.h.
5675 (init): Preserve errno.
5677 2007-07-02 Ulrich Drepper <drepper@redhat.com>
5679 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5681 2007-06-30 Ulrich Drepper <drepper@redhat.com>
5683 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5685 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5687 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5689 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5691 * sysdeps/s390/dl-procinfo.c: New file.
5692 * sysdeps/s390/dl-procinfo.h: New file.
5693 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5695 2007-06-29 Jakub Jelinek <jakub@redhat.com>
5697 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5698 in PT_NOTE segments with multiple notes.
5699 * elf/readelflib.c (process_elf_file): Likewise.
5701 2007-06-22 Ulrich Drepper <drepper@redhat.com>
5703 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5706 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5708 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5710 2007-06-13 Jakub Jelinek <jakub@redhat.com>
5712 * include/link.h: Don't include rtld-lowlevel.h.
5713 (struct link_map): Remove l_scope_lock.
5714 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5715 (_dl_scope_free_list): New field (variable) in _rtld_global.
5716 (DL_LOOKUP_SCOPE_LOCK): Remove.
5717 (_dl_scope_free): New prototype.
5718 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5719 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5720 (_dl_profile_fixup): Likewise.
5721 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5722 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5723 THREAD_GSCOPE_RESET_FLAG around it.
5724 * elf/dl-close.c (_dl_close_worker): Don't use
5725 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5726 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5727 scopes were queued or if l_scope_mem has been abandoned.
5728 * elf/dl-open.c (_dl_scope_free): New function.
5729 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5730 * elf/dl-support.c (_dl_scope_free_list): New variable.
5731 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5732 Remove DL_LOOKUP_SCOPE_LOCK handling.
5733 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5735 * elf/dl-object.c (_dl_new_object): Don't use
5736 __rtld_mrlock_initialize.
5738 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5740 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5742 (rtld_global_ro): Likewise.
5744 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5746 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5747 Move PT_LOAD checking to...
5748 (_dl_addr_inside_object): ... here, new function.
5749 * elf/dl-sym.c (do_sym): If not l_contiguous,
5750 call _dl_addr_inside_object.
5751 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5752 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5753 * elf/dl-open.c (dl_open_worker): Likewise.
5754 (_dl_addr_inside_object): New function if IS_IN_rtld.
5755 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5756 holes are present or are PROT_NONE protected.
5757 * include/link.h (struct link_map): Add l_contiguous field.
5758 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5760 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5761 Tomas Janousek <tjanouse@redhat.com>
5762 Ulrich Drepper <drepper@redhat.com>
5765 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5766 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5768 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5769 unused member a bitmap.
5770 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5771 servers are configured.
5773 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5775 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5777 2007-06-17 Andreas Schwab <schwab@suse.de>
5779 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5781 2007-06-16 Andreas Jaeger <aj@suse.de>
5784 * sysdeps/unix/sysv/linux/sys/ptrace.h
5785 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5786 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5787 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5788 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5789 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5791 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5792 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5793 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5794 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5796 2007-06-16 Ulrich Drepper <drepper@redhat.com>
5799 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5800 determining whether there are IPv4/IPv6 addresses, ignore loopback
5803 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5805 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5806 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5807 as the return type. Change type of "r" variable to CMPtype.
5808 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5809 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5810 * soft-fp/gedf2.c (__gedf2): Likewise.
5811 * soft-fp/gesf2.c (__gesf2): Likewise.
5812 * soft-fp/getf2.c (__getf2): Likewise.
5813 * soft-fp/ledf2.c (__ledf2): Likewise.
5814 * soft-fp/lesf2.c (__lesf2): Likewise.
5815 * soft-fp/letf2.c (__letf2): Likewise.
5816 * soft-fp/unorddf2 (__unorddf2): Likewise.
5817 * soft-fp/unordsf2 (__unordsf2): Likewise.
5818 * soft-fp/unordtf2 (__unordtf2): Likewise.
5820 2007-06-09 Ulrich Drepper <drepper@redhat.com>
5822 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5823 make sure gcc doesn't mess around with this.
5825 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5827 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5829 2007-06-08 Jakub Jelinek <jakub@redhat.com>
5831 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5832 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5833 at most once per _dl_close_worker.
5835 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5837 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5838 __sched_cpucount as const.
5839 * posix/sched_cpucount.c: Adjust.
5841 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5842 instruction for counting bits.
5843 * sysdeps/x86_64/sched_cpucount.c: New file.
5845 2007-06-07 Ulrich Drepper <drepper@redhat.com>
5847 * configure.in: Avoid variable named BASH.
5848 * config.make.in: Likewise.
5849 Patch in part by Mike Frysinger.
5851 2007-06-06 Jakub Jelinek <jakub@redhat.com>
5854 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5855 pseudo-zeros as zero.
5856 * sysdeps/x86_64/ldbl2mpn.c: New file.
5857 * sysdeps/ia64/ldbl2mpn.c: New file.
5859 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5861 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5862 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5863 Remove unreachable code at the end.
5865 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5867 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5868 ldbl-128ibm in comment.
5869 (fpclassifyl): Correct classification of denormals.
5870 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5871 return value for MIN denormal. Rewrite using long double math too
5872 correctly handle denormals and canonicalize the results.
5874 2007-06-05 Jakub Jelinek <jakub@redhat.com>
5876 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5877 (__mpn_construct_long_double): Fix conversion where result ought
5878 to be smaller than __LDBL_MIN__, or the low double should be
5879 denormal. Fix decision where to negate low double - honor round
5881 * stdio-common/tst-sprintf2.c: Include string.h.
5882 (COMPARE_LDBL): Define.
5883 (TEST): Also test whether a string hexadecimal float representation
5884 can be parsed back to the number.
5885 (main): Add a couple of further tests.
5887 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5889 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5890 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5891 is non-zero, but smaller than 2 * __DBL_MIN__.
5892 * stdio-common/tst-sprintf2.c: New test.
5893 * stdio-common/Makefile (tests): Add tst-sprintf2.
5895 * math/test-misc.c (main): Don't run last batch of tests with
5896 IBM long double format.
5898 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5900 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5901 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5902 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5903 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5904 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5905 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5906 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5907 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5908 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5909 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5913 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5933 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5935 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5936 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5937 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5938 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5939 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5940 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5941 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5942 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5944 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5946 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5947 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5948 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5949 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5950 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5951 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5952 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5953 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5955 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5957 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5958 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5959 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5960 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5962 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5964 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5965 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5967 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5969 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5970 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5971 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5972 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5974 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5976 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5977 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5979 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5981 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5982 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5984 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5985 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5986 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5987 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5989 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5991 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5992 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5993 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5994 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5996 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5998 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5999 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6000 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6001 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6002 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6003 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6005 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
6007 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6008 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6009 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6010 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6012 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6014 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6015 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6016 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6017 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6018 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6019 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6020 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6021 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6022 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6023 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6024 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6025 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6026 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6027 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6028 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6029 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6031 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
6033 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6034 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6036 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
6038 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6039 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6041 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6043 * sysdeps/powerpc/powerpc32/970/Implies: New file.
6044 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6045 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6046 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6047 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6048 * sysdeps/powerpc/powerpc64/970/Implies: New file.
6049 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6050 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6051 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6052 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6054 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
6056 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6058 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
6060 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6061 branch miss-predicts. Ensure that cache line crossing does not impact
6064 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
6066 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6067 "../../powerpc32/power4/memcopy.h".
6068 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6069 "../../powerpc32/power4/wordcopy.c".
6071 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
6073 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6074 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6075 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6076 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6077 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6078 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6080 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
6082 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6084 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
6086 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6087 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6088 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6089 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6090 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6091 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6092 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6093 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6095 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
6097 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6099 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
6101 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6102 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6103 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6104 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6105 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6106 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6107 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6109 2007-05-29 Roland McGrath <roland@redhat.com>
6111 * po/Makefile (po-sed-cmd): New variable.
6112 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6114 2007-05-29 Ulrich Drepper <drepper@redhat.com>
6116 * crypt/md5-crypt.c: Fix comment.
6118 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6119 of crashing. When this is the case or if the reply is malformed,
6120 don't try to close the new file descriptor since it does not
6122 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6124 2007-05-28 Jakub Jelinek <jakub@redhat.com>
6126 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6127 if __NR_utimensat is not defined.
6129 2007-05-26 Ulrich Drepper <drepper@redhat.com>
6131 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6133 2007-05-25 Jakub Jelinek <jakub@redhat.com>
6135 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6136 (open): Fix comment typos. Don't call __open_2 if flags
6137 is a compile time constant without O_CREAT.
6138 (__open64_2): Add nonnull attribute.
6139 (open64): Fix comment typos. Don't call __open64_2 if flags
6140 is a compile time constant without O_CREAT.
6141 (__openat_2): Add nonnull attribute, fix nonnull attribute
6143 (openat): Fix comment typos. Don't call __openat_2 if flags
6144 is a compile time constant without O_CREAT.
6145 (__openat64_2): Add nonnull attribute, fix nonnull attribute
6147 (openat64): Fix comment typos. Don't call __openat64_2 if flags
6148 is a compile time constant without O_CREAT.
6150 2007-05-24 Ulrich Drepper <drepper@redhat.com>
6152 * Makerules (sysd-rules): Define PTW for ptw-* files.
6153 * Versions: Define GLIBC_2.7 for libc.
6154 * include/stdio.h: Declare __fortify_fail.
6155 * debug/fortify_fail.c: New file.
6156 * debug/Makefile (routines): Add fortify_fail.
6157 * debug/chk_fail.c: Use __fortify_fail.
6158 * debug/stack_chk_fail.c: Likewise.
6159 * io/Versions: Export __open_2, __open64_2, __openat_2, and
6160 __openat64_2 for GLIBC_2.7.
6161 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6162 * io/open.c: Define *_2 variant of function which checks for O_CREAT
6163 and fails if necessary.
6164 * io/open64.c: Likewise.
6165 * io/openat.c: Likewise.
6166 * io/openat64.c: Likewise.
6167 * sysdeps/unix/sysv/linux/open64.c: Likewise.
6168 * sysdeps/unix/sysv/linux/openat.c: Likewise.
6169 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6170 * io/bits/fcntl2.h: New file.
6171 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6173 * include/bits/fcntl2.h: New file.
6174 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6176 * sysdeps/unix/sysv/linux/open_2.c: New file.
6178 2007-05-21 Ulrich Drepper <drepper@redhat.com>
6180 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6181 as second parameter to handle_intel.
6183 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6186 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6188 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
6189 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6191 * sysdeps/x86_64/memcpy.S: Complete rewrite.
6192 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6193 Patch by Evandro Menezes <evandro.menezes@amd.com>.
6195 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6197 2007-05-21 Jakub Jelinek <jakub@redhat.com>
6200 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6201 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6202 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6204 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6207 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6208 reinitialize workend at the start of each do_positional format spec
6209 loop, free workstart before do_positional loops.
6210 (printf_unknown): Fix size of work_buffer.
6211 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6213 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6214 (public_sET_STATe): If ms->version < 3, put all chunks into
6215 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6218 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6219 * malloc/hooks.c: Likewise.
6220 * malloc/arena.c: Likewise.
6221 * malloc/malloc.c (do_check_malloc_state): Don't assert
6222 n_mmaps is not greater than n_mmaps_max. This removes the need
6223 for the previous change.
6225 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6228 2007-05-19 Ulrich Drepper <drepper@redhat.com>
6230 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6231 Define for kernel >= 2.6.22.
6233 2007-05-18 Ulrich Drepper <drepper@redhat.com>
6235 * elf/dl-close.c (_dl_close_worker): When removing object from
6236 global scope, wait for all lookups to finish afterwards.
6237 * elf/dl-open.c (add_to_global): When global scope array must
6238 grow, allocate a new one and free old array only after all
6240 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6241 (_dl_lookup_symbol_x): Likewise.
6242 * elf/dl-support.c: Define _dl_wait_lookup_done.
6243 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6244 _dl_wait_lookup_done.
6246 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6247 not overlapping with arena.
6249 * malloc/mcheck.c (reallochook): If size==0, free the block.
6251 * rt/tst-shm.c: Use fstat64 instead of fstat.
6253 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6254 __NR_sync_file_range is not defined.
6256 2007-05-17 Ulrich Drepper <drepper@redhat.com>
6258 Dummy files to prevent stub versions from being used.
6259 * sysdeps/x86_64/fpu/k_cosl.c: New file.
6260 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6261 * sysdeps/x86_64/fpu/k_sinl.c: New file.
6262 * sysdeps/x86_64/fpu/k_tanl.c: New file.
6264 * version.h (VERSION): Set to 2.6.90.
6266 2007-05-14 Ulrich Drepper <drepper@redhat.com>
6268 * version.h (VERSION): Define to 2.6.
6269 * include/features.h (__GLIBC_MINOR__): Define to 6.
6271 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6273 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6276 2007-05-13 Ulrich Drepper <drepper@redhat.com>
6278 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6279 number of mmaps. n_mmaps_max is the target.
6280 * malloc/hooks.c: Likewise.
6281 * malloc/arena.c: Likewise.
6283 2007-05-12 Andreas Jaeger <aj@suse.de>
6285 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6288 2007-05-11 Ulrich Drepper <drepper@redhat.com>
6290 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6291 adding new variables.
6293 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6294 optimize. Completely extend global scope array before making the
6295 new entries visible.
6297 2007-05-10 Ulrich Drepper <drepper@redhat.com>
6299 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6300 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6303 * include/link.h: Move l_version and l_nversion members around to
6306 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6308 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6309 (__sched_setaffinity_new): If syscall was successful and
6310 RESET_VGETCPU_CACHE is defined, use it before returning.
6311 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6313 * io/sys/stat.h: Make sure struct timespec is defined for
6316 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6318 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6319 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6320 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6321 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6322 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6323 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6324 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6325 * io/sys/stat.h: Declare utimensat, futimens.
6326 * io/utimensat.c: New file.
6327 * io/futimens.c: New file.
6328 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6329 * sysdeps/unix/sysv/linux/futimens.c: New file.
6330 * io/Makefile (routines): Add utimensat, futimens.
6331 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6332 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6333 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6336 * include/sys/cdefs.h: Redefine __nonnull so that test for
6337 incorrect parameters in the libc code itself are not omitted.
6339 2007-05-09 Jakub Jelinek <jakub@redhat.com>
6341 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6342 exception in addition to inexact when asked to raise only FE_INEXACT.
6345 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6348 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6351 * string/strfry.c (strfry): Make result more random.
6353 2007-05-07 Richard Henderson <rth@redhat.com>
6355 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6356 if __NO_LONG_DOUBLE_MATH.
6357 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6358 available in the compiler, add .arch directive to the assembly.
6360 2007-05-07 Jakub Jelinek <jakub@redhat.com>
6362 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6363 compat_symbol to GLIBC_2_1.
6364 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6365 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6366 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6367 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6368 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6369 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6370 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6372 (__isnanl): New compat_symbol.
6374 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6375 Jakub Jelinek <jakub@redhat.com>
6377 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6378 (new_heap): Initialize mprotect_size.
6379 (grow_heap): When growing, only mprotect from mprotect_size till
6380 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
6381 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6383 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
6384 Peter Bergner <bergner@us.ibm.com>
6386 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6387 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
6388 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6389 * sysdeps/powerpc/fpu/fe_mask.c: New file.
6390 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6391 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6392 Call __fe_mask_env() if all FP exceptions disabled.
6393 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6394 from old FPSCR to new fenv to propagate DFP rounding modes.
6395 Call __fe_mask_env() if FP exceptions previously enabled.
6396 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6397 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6398 transitioning from all exceptions disabled to any exception enabled
6400 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6401 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6402 when transitioning from all exceptions disabled to any exception
6403 enabled or visa versa.
6404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6408 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6411 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6414 * posix/unistd.h: Remove __THROW from fdatasync.
6416 2007-05-06 Mike Frysinger <vapier@gentoo.org>
6419 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6421 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6423 * stdio-common/vfprintf.c (process_string_arg): Optimize
6424 ridiculous precision in wide char code printing multi-byte string.
6425 Reported by Jim Meyering <jim@meyering.net>.
6428 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6429 boundaries to work around systems with overlapping binary loading.
6430 Based on a patch by Suzuki <suzuki@in.ibm.com>.
6432 2007-05-04 Ulrich Drepper <drepper@redhat.com>
6434 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6435 __mbsnrtowcs after last change.
6437 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6438 (get_ident): Likewise.
6440 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6442 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6443 with setting the sticky bit.
6444 * math/test-misc.c (main): Add more truncation tests.
6446 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
6448 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6449 double in the function declaration.
6450 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6451 double in the function declaration.
6452 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6453 float in the function declaration.
6454 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6455 float in the function declaration.
6457 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6458 denormal operands. Do not generate FP_EX_DENORM exception.
6459 (FP_UNPACK_RAW_EP): Ditto.
6460 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6461 undefined _FP_UNPACK_RAW_E.
6462 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6463 undefined _FP_UNPACK_RAW_EP.
6464 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6465 undefined _FP_PACK_RAW_E.
6466 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6467 undefined _FP_PACK_RAW_EP.
6469 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6471 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6474 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
6475 Jakub Jelinek <jakub@redhat.com>
6477 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6478 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
6480 * soft-fp/op-common.h (FP_TRUNC): Ditto.
6482 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6484 * math/test-misc.c (main): Add tests for rounding long double
6485 values close to smallest double denormalized value to double.
6487 2007-04-30 Joseph Myers <joseph@codesourcery.com>
6489 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6490 condition for truncating to 0. Set sticky bit for such
6493 2007-05-02 Jakub Jelinek <jakub@redhat.com>
6495 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6496 fixed length array for ignore.
6498 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6501 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6502 stack for large precisions.
6503 * stdio-common/test-vfprintf.c (main): Add test for large
6506 2007-04-30 Jakub Jelinek <jakub@redhat.com>
6508 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6510 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6513 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6514 account in the size check.
6515 * resolv/tst-inet_ntop.c: New test.
6516 * resolv/Makefile (tests): Add tst-inet_ntop.
6518 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6519 Jakub Jelinek <jakub@redhat.com>
6522 * malloc/malloc.c: Keep separate list for first blocks on the bin
6523 lists with a given size. This helps skipping over list elements
6524 we know won't fit in two places.
6525 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6527 2007-04-28 Ulrich Drepper <drepper@redhat.com>
6530 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6531 label to Teredo tunnel addresses 2001://32.
6533 2007-04-27 Ulrich Drepper <drepper@redhat.com>
6535 * locale/programs/ld-collate.c (collate_read): Allow order_start
6538 * locale/programs/ld-collate.c (collate_read): Fix printing of
6542 * locale/C-translit.h.in: Add entry for U2044.
6545 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6546 hexa-decimal floats without exponent.
6547 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6549 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6551 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6552 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6553 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6554 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6556 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6559 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6561 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6562 of 0 after the out_fail label.
6564 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6567 * iconv/gconv_charset.h (strip): Allow ':'.
6568 * iconv/iconv_open.c (iconv_open): Adjust comment.
6570 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6572 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6575 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6578 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6579 alignment of buffer and tmp_buffer.
6580 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6581 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6582 alignment of buffer.
6583 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6584 bigger than INT_MAX.
6585 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6586 h_errnop arguments. Fail if buflen is too small.
6587 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6589 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6592 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6593 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6595 2007-04-22 Roland McGrath <roland@redhat.com>
6597 * elf/elf.h (NT_PRXFPREG): New macro.
6599 2007-04-19 Andreas Jaeger <aj@suse.de>
6602 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6603 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6606 2007-04-19 Ulrich Drepper <drepper@redhat.com>
6608 * include/sys/mman.h: Mark madvise hidden.
6609 * misc/madvise.c: Add libc_hidden_def.
6611 2007-04-06 Jakub Jelinek <jakub@redhat.com>
6613 * nis/nis_domain_of.c (__nis_domain_of): New function.
6614 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6615 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6616 * nis/nis_call.c (rec_dirsearch): Likewise.
6617 (first_shoot): Likewise. Remove search_parent_first argument.
6618 (struct nis_server_cache): Rename search_parent_first field
6620 (nis_server_cache_search, nis_server_cache_add): Rename
6621 search_parent_first argument to search_parent.
6622 (__nisfind_server): Likewise. If search_parent, call
6625 2007-04-18 Ulrich Drepper <drepper@redhat.com>
6627 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6629 2007-04-17 Ulrich Drepper <drepper@redhat.com>
6632 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6634 2007-04-16 Ulrich Drepper <drepper@redhat.com>
6637 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6639 2007-04-15 Jakub Jelinek <jakub@redhat.com>
6641 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6642 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6643 current number of locales in SUPPORTED.
6644 (create_archive): Initialize serial.
6645 (enlarge_archive): Preserve aliases rather than duplicating
6648 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6650 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6651 after _IO_un_link, not before it.
6653 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6654 special case handling when wcp == wstartp + 1. Fix a comment typo.
6655 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6657 2007-03-30 Jakub Jelinek <jakub@redhat.com>
6659 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6660 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6661 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6663 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6664 _IO_file_xsgetn_maybe_mmap): Likewise.
6665 * libio/oldfileops.c (old_do_write): Likewise.
6666 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6667 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6668 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6669 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6670 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6671 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6672 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6673 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6674 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6675 _IO_file_underflow, _IO_file_underflow_mmap,
6676 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6677 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6678 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6679 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6680 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6681 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6682 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6683 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6684 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6685 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6686 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6687 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6688 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6689 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6690 _IO_adjust_column_internal, _IO_default_uflow_internal,
6691 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6692 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6693 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6694 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6695 _IO_file_close_it_internal, _IO_file_underflow_internal,
6696 _IO_file_overflow_internal, _IO_file_attach_internal,
6697 _IO_file_fopen_internal, _IO_file_sync_internal,
6698 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6699 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6700 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6701 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6702 _IO_seekpos_unlocked): Likewise.
6703 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6704 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6706 2007-04-16 Jakub Jelinek <jakub@redhat.com>
6708 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6709 argument in xmalloc size computation.
6711 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6713 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6714 math_opt_barrier and math_force_eval macros.
6716 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6719 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6720 * sysdeps/i386/fpu/math_private.h: New file.
6721 * sysdeps/x86_64/fpu/math_private.h: New file.
6722 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6723 math_force_eval macros. Use "+m" constraint on asm rather than
6725 * math/s_nextafter.c (__nextafter): Likewise.
6726 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6728 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6729 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6730 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6731 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6732 math_opt_barrier and math_force_eval macros.
6733 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6734 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6735 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6736 (__nexttoward): Use math_opt_barrier and
6737 math_force_eval macros. Use "+m" constraint on asm rather than
6738 "=m" and "m". Only use asm to force double result if
6739 FLT_EVAL_METHOD is 2.
6740 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6741 (__nexttowardf): Use math_opt_barrier and
6742 math_force_eval macros. Use "+m" constraint on asm rather than
6743 "=m" and "m". Only use asm to force double result if
6744 FLT_EVAL_METHOD is not 0.
6745 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6746 (__nexttowardf): Use math_opt_barrier and
6747 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6748 x to float using asm.
6749 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6750 (__nldbl_nexttowardf): Use math_opt_barrier and
6751 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6752 x to float using asm.
6753 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6754 (__nexttowardf): Use math_opt_barrier and math_force_eval
6755 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6756 * math/bug-nextafter.c (zero, inf): New variables.
6757 (main): Add new tests.
6758 * math/bug-nexttoward.c (zero, inf): New variables.
6759 (main): Add new tests.
6761 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6764 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6765 exceptions both in SW and MXCSR.
6766 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6767 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6768 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6769 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6770 in MXCSR if SSE is available.
6771 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6773 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6775 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6776 Return 0 rather than 1.
6777 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6778 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6779 * math/test-fenv.c (feholdexcept_tests): New function.
6782 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6785 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6788 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6791 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6792 Reported by David Anderson <davea42@earthlink.net>.
6794 2007-04-07 Ulrich Drepper <drepper@redhat.com>
6796 * posix/sys/wait.h: Remove unnecessary forward declaration.
6798 2007-04-05 Jakub Jelinek <jakub@redhat.com>
6800 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6801 with obj->do_servers after first_shoot.
6803 2007-04-03 Ulrich Drepper <drepper@redhat.com>
6805 * posix/Makefile (routines): Add sched_cpucount.
6806 (tests): Add tst-cpucount.
6807 * posix/sched_cpucount.c: New file.
6808 * posix/tst-cpucount.c: New file.
6809 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6810 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6811 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6812 * posix/sched.h: Define CPU_COUNT.
6814 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6816 * posix/fnmatch.c (STRUCT): Define.
6817 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6818 * posix/fnmatch_loop.c (struct STRUCT): New type.
6819 (FCT): Add ends argument. If ends != NULL and normal * is
6820 seen in the pattern, store current pattern and string pointers
6821 and return. Adjust recursive calls.
6822 (EXT): Adjust FCT callers.
6823 (STRUCT): Undef at the end of the file.
6824 * posix/Makefile (tests): Add tst-fnmatch2.
6825 * posix/tst-fnmatch2.c: New test.
6827 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6829 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6832 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6833 Change last argument to unsigned int.
6835 2007-03-23 Jakub Jelinek <jakub@redhat.com>
6837 * scripts/check-local-headers.sh: Filter out sys/capability.h.
6839 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6841 * config.h.in (HAVE_LIBCAP): Add.
6842 * nscd/selinux.h: Include sys/capability.h rather than non-existent
6844 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6845 free_caps. Cast away const from 4th cap_set_flag argument.
6847 2007-03-26 Ulrich Drepper <drepper@redhat.com>
6849 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6851 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6852 Add sync_file_range.
6853 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6855 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
6857 * sysdeps/powerpc/bits/atomic.h
6858 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6859 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6860 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6861 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6862 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6863 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6864 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6865 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6866 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6867 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6868 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6869 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6870 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6871 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6872 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6873 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6874 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6875 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6876 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6877 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6879 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6881 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6882 (__cache_line_size): Define the variable here. Add
6883 attribute_hidden, remove weak_extern.
6884 (__libc_start_main): Set __cache_line_size
6886 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6887 (__cache_line_size): Define the variable here. Add
6888 attribute_hidden, remove weak_extern.
6889 (DL_PLATFORM_AUXV): Set __cache_line_size
6891 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6892 weak_extern, add attribute_hidden.
6893 (__elf_machine_runtime_setup): Assume __cache_line_size is always
6895 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6897 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6899 2007-03-26 Jakub Jelinek <jakub@redhat.com>
6902 * timezone/africa: Update from tzdata2007d.
6903 * timezone/asia: Likewise.
6904 * timezone/australasia: Likewise.
6905 * timezone/backward: Likewise.
6906 * timezone/europe: Likewise.
6907 * timezone/iso3166.tab: Likewise.
6908 * timezone/leapseconds: Likewise.
6909 * timezone/northamerica: Likewise.
6910 * timezone/southamerica: Likewise.
6911 * timezone/zone.tab: Likewise.
6913 * timezone/private.h: Update from tzcode2007d.
6914 * timezone/zdump.c: Likewise.
6915 * timezone/zic.c: Likewise.
6917 2007-03-21 Jakub Jelinek <jakub@redhat.com>
6919 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6920 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6922 (nis_server_cache_search, nis_server_cache_add): New functions.
6923 (__nisfind_server): Use them. Add dbp and flags argument, if
6924 call __nisbind_create.
6925 (__nisbind_create): Add server_used and current_ep arguments,
6926 only call __nis_findfastest if server_used is ~0.
6927 (__do_niscall2, __prepare_niscall): Adjust callers.
6928 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6929 ckey_cache_euid, ckey_cache_lock): New variables.
6930 (get_ckey): New function.
6931 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6932 __pmap_getnisport. Save __pmap_getnisport result in
6933 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6935 * nis/nis_lookup.c (nis_lookup): Likewise.
6936 * nis/nis_table.c (nis_list): Likewise.
6937 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6940 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6941 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6942 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6943 _nss_nisplus_getservbyport_r): Likewise.
6944 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6945 _nss_nisplus_getnetbyaddr_r): Likewise.
6946 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6947 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6948 _nss_nisplus_getntohost_r): Likewise.
6949 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6950 _nss_nisplus_getrpcbynumber_r): Likewise.
6952 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6954 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6955 * configure: Rebuilt.
6957 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6959 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6961 2006-06-07 Joseph Myers <joseph@codesourcery.com>
6964 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6967 2007-03-18 Jakub Jelinek <jakub@redhat.com>
6969 * nscd/gai.c: Include alloca.h.
6970 (__libc_use_alloca): Define.
6972 2007-03-16 Jakub Jelinek <jakub@redhat.com>
6974 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6976 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6977 (DL_DST_REQUIRED): Adjust user.
6979 * include/dlfcn.h (struct link_map): New forward decl.
6981 * inet/getnameinfo.c: Include stddef.h.
6982 (getnameinfo): Use offsetof.
6984 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6986 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6988 * string/strerror_l.c: Include stdlib.h.
6990 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6991 * config.make.in (gnu89-inline-CFLAGS): New variable.
6992 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6994 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6995 * argp/argp.h: Use it.
6996 * bits/mathinline.h: Likewise.
6997 * bits/sigset.h: Likewise.
6998 * bits/string.h: Likewise.
6999 * ctype/ctype.h: Likewise.
7000 * hurd/hurd.h: Likewise.
7001 * hurd/hurd/fd.h: Likewise.
7002 * hurd/hurd/port.h: Likewise.
7003 * hurd/hurd/signal.h: Likewise.
7004 * hurd/hurd/threadvar.h: Likewise.
7005 * hurd/hurd/userlink.h: Likewise.
7006 * io/sys/stat.h: Likewise.
7007 * libio/bits/stdio.h: Likewise.
7008 * libio/bits/stdio2.h: Likewise.
7009 * mach/lock-intern.h: Likewise.
7010 * mach/mach/mig_support.h: Likewise.
7011 * math/bits/cmathcalls.h: Likewise.
7012 * posix/bits/unistd.h: Likewise.
7013 * socket/bits/socket2.h: Likewise.
7014 * stdlib/bits/stdlib.h: Likewise.
7015 * stdlib/stdlib.h: Likewise.
7016 * string/argz.h: Likewise.
7017 * string/bits/string2.h: Likewise.
7018 * string/bits/string3.h: Likewise.
7019 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7020 * sysdeps/generic/inttypes.h: Likewise.
7021 * sysdeps/generic/machine-lock.h: Likewise.
7022 * sysdeps/generic/machine-sp.h: Likewise.
7023 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7024 * sysdeps/i386/i486/bits/string.h: Likewise.
7025 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7026 * sysdeps/mach/alpha/machine-lock.h: Likewise.
7027 * sysdeps/mach/alpha/machine-sp.h: Likewise.
7028 * sysdeps/mach/i386/machine-lock.h: Likewise.
7029 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7030 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7031 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7032 * sysdeps/s390/bits/string.h: Likewise.
7033 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7034 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7035 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7036 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7037 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7038 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7039 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7040 * wcsmbs/bits/wchar2.h: Likewise.
7041 * wcsmbs/wchar.h: Likewise.
7042 * stdlib/gmp.h: Likewise. Include <features.h> to get
7043 __extern_inline definition.
7045 2007-03-15 Jakub Jelinek <jakub@redhat.com>
7047 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7051 * math/libm-test.inc (log_test): Test -Inf and NaN.
7052 (log10_test, log1p_test, log2_test): Test -Inf.
7053 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7054 FE_INVALID when argument is qNaN.
7055 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7056 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7057 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7058 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7059 andb $1, %ah with testb $1, %ah, don't test for parity, instead
7060 testb $4, %ah and jump if non-zero.
7061 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7062 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7065 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7066 ancestors with the same depths.
7067 Patch by Niels Moeller <nisse@lysator.liu.se>.
7068 (filter_doc): Don't crash if argp is NULL.
7069 * argp/Makefile (tests): Add tst-argp2.
7070 * argp/tst-argp2.c: New test.
7073 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7075 (updwtmp_file): Likewise.
7078 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7079 (inet6_opt_append): Don't check extlen is big enough if extbuf
7081 (inet6_opt_finish): Likewise.
7082 * inet/Makefile (tests): Add test-inet6_opt.
7083 * inet/test-inet6_opt.c: New test.
7085 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7086 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7087 NLMSG_ERR. Instead use a page sized buffer.
7088 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7091 2007-03-14 Richard Henderson <rth@redhat.com>
7093 * sysdeps/alpha/fpu/s_llround.c: New file.
7094 * sysdeps/alpha/fpu/s_llroundf.c: New file.
7095 * sysdeps/alpha/fpu/s_lround.c: New file.
7096 * sysdeps/alpha/fpu/s_lroundf.c: New file.
7097 * sysdeps/alpha/fpu/s_round.c: New file.
7098 * sysdeps/alpha/fpu/s_roundf.c: New file.
7099 * sysdeps/alpha/fpu/s_trunc.c: New file.
7100 * sysdeps/alpha/fpu/s_truncf.c: New file.
7102 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7103 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7104 * sysdeps/alpha/fpu/s_floor.c: Likewise.
7105 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7106 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7107 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7109 * sysdeps/alpha/fpu/s_fmax.S: New file.
7110 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7111 * sysdeps/alpha/fpu/s_fmin.S: New file.
7112 * sysdeps/alpha/fpu/s_fminf.S: New file.
7113 * sysdeps/alpha/fpu/s_isnan.c: New file.
7114 * sysdeps/alpha/fpu/s_isnanf.c: New file.
7115 * sysdeps/alpha/fpu/s_llrint.c: New file.
7116 * sysdeps/alpha/fpu/s_llrintf.c: New file.
7117 * sysdeps/alpha/fpu/s_lrint.c: New file.
7118 * sysdeps/alpha/fpu/s_lrintf.c: New file.
7119 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7120 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7122 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7123 (__fdimf, fdimf, __fdim, fdim): Remove.
7124 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7125 (__isnanf, __isnan, __isnanl): New.
7127 2007-03-13 Richard Henderson <rth@redhat.com>
7129 * sysdeps/ieee754/ldbl-128/Makefile: New file.
7131 2007-03-13 Richard Henderson <rth@redhat.com>
7133 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7134 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7135 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7136 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7137 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7138 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7140 2007-03-13 Richard Henderson <rth@redhat.com>
7142 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7143 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7144 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7145 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7146 Move to dl-auxv.h; initialize instead of extern weak.
7147 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7149 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7150 Extern instead of initialized.
7152 2007-03-13 Richard Henderson <rth@redhat.com>
7154 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7155 __sigsuspend_nocancel.
7157 2007-03-06 Ulrich Drepper <drepper@redhat.com>
7159 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7160 172.16/12 address range.
7162 2007-03-02 Jakub Jelinek <jakub@redhat.com>
7164 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7165 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7168 2007-03-01 Jakub Jelinek <jakub@redhat.com>
7171 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7173 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7175 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7176 for x qNaN and y either +-inf or non-integer value.
7177 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7178 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7179 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7181 2007-02-10 Mike Frysinger <vapier@gentoo.org>
7183 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7184 from sysdep_headers.
7186 2007-02-28 Jakub Jelinek <jakub@redhat.com>
7188 * time/tzfile.c (find_transition): Instead of a linear search try to
7189 guess the transition index, use a linear search if the result is at
7190 most 10 transitions away from the guess or binary search otherwise.
7192 2007-02-27 Jakub Jelinek <jakub@redhat.com>
7194 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7195 memory reallocation.
7197 2007-02-21 Ulrich Drepper <drepper@redhat.com>
7199 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7201 Optimize use of TOLOWER.
7204 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7205 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7206 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7209 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7210 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7213 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7214 (open_dir_stream): Likewise.
7215 * io/Makefile (tests): Add bug-ftw5.
7216 * io/bug-ftw5.c: New file.
7218 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7219 * nscd/servicescache.c (cache_addserv): Likewise.
7221 * nscd/grpcache.c (cache_addgr): In case a record changed on
7222 refresh, adjust key_copy.
7225 * nscd/pwdcache.c (cache_addpw): In case a record changed on
7226 refresh, adjust key_copy.
7229 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7231 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7233 2007-02-19 Ulrich Drepper <drepper@redhat.com>
7235 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7238 * stdio-common/vfscanf.c: Small cleanups throughout.
7240 2007-02-18 Ulrich Drepper <drepper@redhat.com>
7243 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7244 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7245 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7246 Patch by Jared Casper <jaredcasper@gmail.com>.
7248 * sysdeps/unix/closedir.c: Outside libc don't use locking.
7249 * sysdeps/unix/opendir.c: Likewise.
7250 * sysdeps/unix/readdir.c: Likewise.
7253 * stdio-common/vfscanf.c: Handle localized digits etc for floating
7255 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7257 * stdio-common/vfscanf.c: Fix problems in width accounting.
7258 * stdio-common/tst-sscanf.c (double_tests): New tests.
7259 (main): Hook them up.
7261 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7262 More simplifications of floating-point reader.
7264 * stdio-common/Makefile (tests): Add tst-swscanf.
7265 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7267 * stdio-common/tst-swscanf.c: New file.
7269 2007-02-17 Ulrich Drepper <drepper@redhat.com>
7272 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7273 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7274 Remove using for __jmp_buf_tag.
7275 * locale/locale.h (struct lconv): Also define in std namespace.
7276 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7279 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7280 using __libc_enable_secure.
7283 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7286 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7287 of names for ellipsises.
7290 * malloc/memusage.sh: Cleanups.
7291 * debug/xtrace.sh: Quoting and trap changes.
7293 2007-02-16 Ulrich Drepper <drepper@redhat.com>
7295 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7297 * locale/iso-3166.def: Update entry for Serbia.
7298 * locale/iso-4217.def: Define RSD, remove CSD.
7300 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7301 and 64-bit operations.
7304 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7307 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7310 2007-02-15 Ulrich Drepper <drepper@redhat.com>
7313 * assert/assert.h (assert): Simplify.
7314 (assert_perror): Likewise.
7315 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7317 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7320 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7321 change: don't pass NULL in place of an integer.
7323 2007-02-02 Bruno Haible <bruno@clisp.org>
7326 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7327 Add mapping for U+327E.
7328 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7329 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7330 mapping of 0xD9 0xE8.
7331 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7333 Reported by Jungshik Shin <jungshik@google.com>.
7336 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7337 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7338 Reported by Jungshik Shin <jungshik@google.com>.
7340 2007-02-14 Ulrich Drepper <drepper@redhat.com>
7342 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7346 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7347 byte variants. Patch mostly be tom@tommay.net.
7349 2007-02-14 Jakub Jelinek <jakub@redhat.com>
7352 * posix/glob.c (attribute_hidden): Define if not defined.
7353 (glob): Unescape dirname, filename or username when needed and not
7354 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7355 is NULL. Handle unescaped [ in pattern without closing ].
7356 Don't pass GLOB_CHECK down to recursive glob for directories.
7357 (__glob_pattern_type): New function.
7358 (__glob_pattern_p): Implement using __glob_pattern_type.
7359 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7360 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7361 Remove unreachable code.
7362 * posix/globtest.sh: Add a couple of new tests.
7364 2007-02-13 Ulrich Drepper <drepper@redhat.com>
7366 * po/ru.po: Update from translation team.
7368 2007-02-12 Jakub Jelinek <jakub@redhat.com>
7370 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7371 to the list of i486+ CPUs.
7372 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7374 2007-02-12 Ulrich Drepper <drepper@redhat.com>
7376 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7377 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7380 2007-02-09 Ulrich Drepper <drepper@redhat.com>
7382 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7384 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7385 * resolv/res_mkquery.c: Define __res_nopt.
7386 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7387 try adding EDNS0 record.
7388 * resolv/res_send.c (send_dg): If request failed with FORMERR and
7389 EDNS0 record was send make sure we don't try it again.
7390 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7391 * include/resolv.h: Declare __res_nopt.
7393 2007-02-08 Jakub Jelinek <jakub@redhat.com>
7396 * time/strptime_l.c (__strptime_internal): Set have_mon for
7397 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7398 have been computed from tm_yday and tm_year. Don't crash
7399 in day_of_the_week or day_of_the_year if not have_mon
7400 and tm_mon contains bogus value.
7401 * time/Makefile (tests): Add tst-strptime3.
7402 * time/tst-strptime3.c: New test.
7404 2007-02-05 Jakub Jelinek <jakub@redhat.com>
7407 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7408 bit for RE_HAT_LISTS_NOT_NEWLINE.
7409 (build_charclass_op): Remove bogus comment.
7410 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7411 * posix/bug-regex27.c: New test.
7412 * posix/bug-regex28.c: New test.
7414 2007-02-03 Ulrich Drepper <drepper@redhat.com>
7416 * po/sv.po: Update from translation team.
7418 2007-02-02 Ulrich Drepper <drepper@redhat.com>
7420 * nscd/nscd_helper.c (open_socket): Minor size optimization.
7422 2007-02-02 Jakub Jelinek <jakub@redhat.com>
7424 * include/locale.h (__uselocale): Add libc_hidden_proto.
7425 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7427 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7430 2007-02-01 Ulrich Drepper <drepper@redhat.com>
7432 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7434 (PTR_DEMANGLE): Real definition now that it's not the same as
7436 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7438 * string/strerror_l.c: New file.
7439 * string/Makefile (routines): Add strerror_l.
7440 * string/string.h: Declare strerror_l.
7441 * string/Versions: Export strerror_l for GLIBC_2.6.
7443 2007-01-31 Ulrich Drepper <drepper@redhat.com>
7445 * nscd/nscd_helper.c (open_socket): Now takes request type and key
7446 as parameter. Construct request record. Try sending request
7447 before the first poll use, it usually succeeds. Adjust all
7449 * nscd/nscd-client.h: Define MAXKEYLEN.
7450 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7452 2007-01-31 Jakub Jelinek <jakub@redhat.com>
7454 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7456 * nscd/nscd_helper.c: Include string.h.
7457 (__nscd_cache_search): Remove const qualifier from return value.
7458 On strict alignment architectures check hash entry and data head
7460 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7461 mmapped data during GC cycle contains garbage. If
7462 __nscd_drop_map_ref fails, decrement mapped->counter when returning
7463 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7465 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7466 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7467 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7468 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7469 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7471 2007-01-30 Ulrich Drepper <drepper@redhat.com>
7473 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7475 2007-01-26 Ulrich Drepper <drepper@redhat.com>
7477 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7478 names not numbers in cfi_*.
7480 2007-01-26 Andreas Jaeger <aj@suse.de>
7482 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7483 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7484 Correct values of PER_HPUX and PER_OSF4.
7486 2007-01-24 Ulrich Drepper <drepper@redhat.com>
7488 * elf/dl-minimal.c: Undefine _itoa first.
7489 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7490 * malloc/mtrace.c: Revert last change.
7491 * posix/wordexp.c: Likewise.
7493 2007-01-24 Jakub Jelinek <jakub@redhat.com>
7495 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7496 and __geode__ to the list of i486+ CPUs.
7497 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7499 2007-01-23 Ulrich Drepper <drepper@redhat.com>
7501 * stdio-common/_itoa.c: Include <limits.h>.
7502 * stdio-common/_itowa.c: Likewise.
7504 2007-01-22 Ulrich Drepper <drepper@redhat.com>
7506 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7508 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7510 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7512 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7516 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7517 * stdio-common/Makefile (tests): Add bug17.
7518 * stdio-common/bug17.c: New file.
7520 2007-01-19 Ulrich Drepper <drepper@redhat.com>
7522 * iconvdata/brf.c: New file.
7523 * iconvdata/testdata/BRF: New file.
7524 * iconvdata/testdata/BRF..UTF8: New file.
7525 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7526 * iconvdata/Makefile: Add rules to build BRF.
7527 * iconvdata/TESTS: Add BRF entry.
7528 * iconvdata/gconv-modules: Likewise.
7529 * iconvdata/tst-tables.sh: Likewise.
7531 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
7533 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7534 type `long long int', not `long int'.
7537 2007-01-18 Ulrich Drepper <drepper@redhat.com>
7539 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7540 of values on 64-bit platforms which are too large.
7542 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
7543 Joe Kerian <jkerian@us.us.ibm.com>
7546 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7547 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7548 (__copysignl): Use signbit() for comparison.
7549 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7550 SET_LDOUBLE_WORDS64.
7553 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7554 (__ceill): Remove calls to fegetround(), fesetround().
7555 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7556 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7557 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7559 2007-01-17 Jakub Jelinek <jakub@redhat.com>
7561 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7563 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7565 2007-01-17 Ulrich Drepper <drepper@redhat.com>
7567 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7569 * csu/libc-start.c: Likewise.
7571 2007-01-16 Ulrich Drepper <drepper@redhat.com>
7573 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7576 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7578 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
7580 (handle_request): Remove unnecessary tests.
7582 * nscd/cache.c (cache_add): Record the failure to add to the cache.
7584 2007-01-15 Jakub Jelinek <jakub@redhat.com>
7586 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7587 workbits in semi-raw fraction.
7589 * math/test-misc.c: Add new tests.
7591 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7593 * math/basic-test.c: Include test-skeleton.c.
7594 (TEST_TRUNC): Define.
7595 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7596 (main): Rename to ...
7597 (do_test): ...this. Run new tests.
7598 (TEST_FUNCTION): Define.
7600 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7601 Joe Kerian <jkerian@us.us.ibm.com>
7604 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7605 handling for high words.
7606 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7607 and overflow for infinity.
7609 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7611 * nscd/connections.c (handle_request): Add a __builtin_expect.
7613 * nscd/connections.c (serv2db): Change type into structure which
7614 also says whether this is a request for data. Renamed to
7615 servinfo. All users changed.
7616 (handle_request): Much simpler test whether we should search the cache.
7618 * nscd/connections.c (handle_request): Fix thinko in selinux test
7621 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7622 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7623 it before getting dl_load_lock and then relock.
7624 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7625 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7626 case we unlocked the scope.
7627 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7628 _dl_lookup_symbol_x in case we locked the scope.
7629 (_dl_profile_fixup): Likewise.
7630 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7631 set DL_LOOKUP_SCOPE_LOCK.
7633 2007-01-13 Ulrich Drepper <drepper@redhat.com>
7635 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7636 CFLAGS-getsrvbynpt_r.c.
7637 * nscd/getsrvbynm_r.c: New file.
7638 * nscd/getsrvbypt_r.c: New file.
7639 * nscd/nscd_getserv_r.c: New file.
7640 * nscd/servicescache.c: New file.
7641 * nscd/Makefile (routines): Add nscd_getserv_r.
7642 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7643 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7644 CFLAGS-getsrvbypt_r.c.
7645 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7646 table. Add entries for services database.
7647 * nscd/connections.c (serv2str): Mark as const. Add entries for
7649 (dbs): Add .reset_res and servdb initialization.
7650 (serv2db): Add entries for services database.
7651 (verify_persistent_db): Accept dbnr == servdb.
7652 (invalidate_cache): Rewrite database name recognition to use a table.
7653 Call res_init() if .reset_res is set for database.
7654 (handle_request): Add code to handle services database.
7655 * nscd/gai.c: Don't define __getservbyname_r.
7656 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7657 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7658 (serv_response_header): Define.
7659 (struct datahead): Add serv_response_header member.
7660 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7662 * nscd/nscd.conf: Add entries for services database.
7663 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7664 Declare serv_iov_disabled.
7665 Declare addservbyname, readdservbyname, addservbyport, and
7667 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7668 (find_db): Fix error message.
7669 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7670 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7671 * nscd/selinux.c (perms): Add entries for services database.
7672 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7673 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7675 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7676 * nscd/hstcache.c: Likewise.
7677 * nscd/pwdcache.c: Likewise.
7679 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7680 computation of keylen.
7682 * include/string.h: Only redefine strndupa if this is really for
7685 2007-01-12 Ulrich Drepper <drepper@redhat.com>
7687 * nscd/nscd_gethst_r.c: Minor cleanups.
7689 * nscd/connections.c (handle_request): Check selinux permissions
7690 for all non-admin commands.
7692 * sysdeps/i386/i486/bits/atomic.h: Define
7693 atomic_compare_and_exchange_val_acq,
7694 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7695 using __sync_* built-ins for gcc >= 4.1.
7696 * sysdeps/x86_64/bits/atomic.h: Likewise.
7699 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7702 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7704 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7705 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7706 (do_test): Check errno and exit(0) if ENOSYS.
7708 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7710 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7711 thousands separators.
7712 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7713 * stdlib/tst-strtod4.c: New test.
7716 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7717 hexadecimal digit should accept just the initial 0.
7718 * stdlib/tst-strtod2.c (tests): New variable.
7719 (do_test): Run several tests rather than just one.
7721 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7723 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7724 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7726 2007-01-10 Ulrich Drepper <drepper@redhat.com>
7728 * io/fts.c: Make sure fts_cur is always valid after return from
7730 Patch by Miloslav Trmac <mitr@redhat.com>.
7732 2006-10-27 Richard Sandiford <richard@codesourcery.com>
7734 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7735 (R_MIPS_NUM): Bump by 1.
7737 2007-01-03 Jakub Jelinek <jakub@redhat.com>
7739 * posix/execvp.c: Include alloca.h.
7740 (allocate_scripts_argv): Renamed to...
7741 (scripts_argv): ... this. Don't allocate buffer here nor count
7743 (execvp): Use alloca if possible.
7744 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7745 * posix/tst-vfork3.c: New test.
7747 2007-01-03 Ulrich Drepper <drepper@redhat.com>
7749 * string/Makefile (tst-strxfrm2-ENV): Define.
7750 * stdlib/Makefile (tst-strtod3-ENV): Define.
7752 2007-01-02 Ulrich Drepper <drepper@redhat.com>
7754 * posix/getconf.c: Update copyright year.
7755 * nss/getent.c: Likewise.
7756 * iconv/iconvconfig.c: Likewise.
7757 * iconv/iconv_prog.c: Likewise.
7758 * elf/ldconfig.c: Likewise.
7759 * catgets/gencat.c: Likewise.
7760 * csu/version.c: Likewise.
7761 * elf/ldd.bash.in: Likewise.
7762 * elf/sprof.c (print_version): Likewise.
7763 * locale/programs/locale.c: Likewise.
7764 * locale/programs/localedef.c: Likewise.
7765 * nscd/nscd.c (print_version): Likewise.
7766 * debug/xtrace.sh: Likewise.
7767 * malloc/memusage.sh: Likewise.
7768 * malloc/mtrace.pl: Likewise.
7769 * debug/catchsegv.sh: Likewise.
7771 2006-12-24 Ulrich Drepper <drepper@redhat.com>
7773 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7776 2006-12-23 Ulrich Drepper <drepper@redhat.com>
7778 * posix/wordexp.c: Remove some unnecessary tests.
7780 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7782 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7783 blacklist the group till after we look it up.
7785 2006-12-21 Ulrich Drepper <drepper@redhat.com>
7787 * include/atomic.h (atomic_forced_read): New macro.
7789 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7791 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7793 2006-12-19 Jakub Jelinek <jakub@redhat.com>
7795 * nss/getXXbyYY_r.c: Include atomic.h.
7796 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7797 add atomic_write_barrier () in between.
7799 * stdlib/Makefile (tests): Add tst-makecontext.
7800 * stdlib/tst-makecontext.c: New test.
7802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7803 (__makecontext): Don't realign uc_mcontext.uc_regs.
7805 2006-11-28 Jakub Jelinek <jakub@redhat.com>
7807 * elf/dl-support.c: Include dl-procinfo.h.
7808 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7809 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7810 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7812 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7813 hardcoded constants.
7814 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7815 PPC_PLATFORM_* macros for array designators.
7817 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
7819 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7820 names to the beginning.
7821 (_dl_powerpc_platforms): Add "power6x".
7822 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7823 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7824 (_DL_PLATFORMS_COUNT): Increase.
7825 (_dl_string_platform): Handle power6x case.
7826 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7827 PPC_FEATURE_POWER6_EXT): Define.
7828 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7830 2006-12-18 Jakub Jelinek <jakub@redhat.com>
7833 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7834 [-2^31 .. 2^31) range.
7835 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7837 * stdlib/tst-rand48-2.c: New test.
7838 * stdlib/Makefile (tests): Add tst-rand48-2.
7840 2006-12-14 Jakub Jelinek <jakub@redhat.com>
7842 * misc/tst-pselect.c (do_test): Fix sigblock argument.
7844 2006-12-14 Ulrich Drepper <drepper@redhat.com>
7846 * misc/tst-pselect.c (do_test): Make sure the helper process is
7847 terminating when the test is aborted.
7849 2006-12-13 Ulrich Drepper <drepper@redhat.com>
7851 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7852 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7853 Handle relatime mount option.
7856 * libio/Makefile (tests): Add tst-setvbuf1.
7857 * libio/tst-setvbuf1.c: New file.
7859 2006-12-08 Jakub Jelinek <jakub@redhat.com>
7862 * libio/genops.c (__uflow): Fix a typo.
7863 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7864 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
7865 the narrow buffer size.
7867 2006-11-24 Jakub Jelinek <jakub@redhat.com>
7870 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7871 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7872 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7874 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7875 _IO_wstr_finish): Likewise.
7876 * libio/wmemstream.c (open_wmemstream): Likewise.
7877 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7878 even for wide streams.
7880 2006-12-13 Jakub Jelinek <jakub@redhat.com>
7882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7885 2006-12-11 Ulrich Drepper <drepper@redhat.com>
7887 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7888 separators also if no non-zero digits found.
7889 * stdlib/Makefile (tests): Add tst-strtod3.
7891 2006-12-09 Ulrich Drepper <drepper@redhat.com>
7894 * include/features.h: Fix comment about default value for
7898 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7899 empty parsed strings.
7900 * stdlib/Makefile (tests): Add tst-strtod2.
7901 * stdlib/tst-strtod2.c: New file.
7904 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7906 * stdlib/Makefile (tests): Add tst-atof2.
7907 * stdlib/tst-atof2.c: New file.
7910 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7911 correctly if removing trailing zero of hex-float.
7912 * stdlib/Makefile (tests): Add tst-atof1.
7913 * stdlib/tst-atof1.c: New file.
7915 2006-12-09 Jakub Jelinek <jakub@redhat.com>
7917 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7918 Start searching for next comma at p rather than rest.
7919 * misc/Makefile (tests): Add tst-mntent2.
7920 * misc/tst-mntent2.c: New test.
7922 * misc/getusershell.c (initshells): Check for integer overflows.
7923 Make strings buffer one bigger as fgets always succeeds when second
7924 argument is 1. Don't use calloc for shells array. Disallow
7927 2006-12-08 Ulrich Drepper <drepper@redhat.com>
7929 * malloc/memusage.c: Handle realloc with new size of zero and
7930 non-NULL pointer correctly.
7931 (me): Really write first record twice.
7932 (struct entry): Make format bi-arch safe.
7933 (dest): Write out more realloc statistics.
7934 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7936 2006-12-05 Jakub Jelinek <jakub@redhat.com>
7938 * nis/nis_subr.c (nis_getnames): Revert last change.
7940 2006-12-04 Jakub Jelinek <jakub@redhat.com>
7942 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7943 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7944 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7945 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7947 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7948 * io/tst-ttyname_r.c: New test.
7950 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7952 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7954 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
7956 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7959 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7961 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7962 `clone' function to ensure proper unwinding stop of gdb.
7963 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7965 2006-12-01 Ulrich Drepper <drepper@redhat.com>
7967 * nscd/nscd.init: Remove obsolete and commented-out -S option
7970 2006-11-23 Jakub Jelinek <jakub@redhat.com>
7973 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7976 * manual/string.texi (strtok): Remove duplicate paragraph.
7978 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7980 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7981 libgcc not supporting `rflags' unwinding (register # >= 17).
7983 2006-11-30 Jakub Jelinek <jakub@redhat.com>
7985 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7988 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7989 Jakub Jelinek <jakub@redhat.com>
7990 Jan Kratochvil <jan.kratochvil@redhat.com>
7992 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7994 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7995 'restore_rt' even in the 'signal' directory.
7996 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7998 2006-11-27 Jakub Jelinek <jakub@redhat.com>
8001 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8002 malloc crashed. Don't allocate memory unnecessarily in each
8005 2006-10-21 Jakub Jelinek <jakub@redhat.com>
8007 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8009 2006-11-20 Ulrich Drepper <drepper@redhat.com>
8011 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8013 2006-11-18 Bruno Haible <bruno@clisp.org>
8015 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8016 __sysconf only after having tried to call getgroups32.
8018 2006-11-19 Ulrich Drepper <drepper@redhat.com>
8020 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8021 addresses for IPv4 queries if they can be mapped.
8023 2006-11-16 Jakub Jelinek <jakub@redhat.com>
8025 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8026 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8027 (signmask): Add .size directive.
8028 (othermask): Add .type directive.
8030 2006-11-14 Ulrich Drepper <drepper@redhat.com>
8032 * po/nl.po: Update from translation team.
8034 * timezone/zdump.c: Redo fix for BZ #3137.
8036 2006-11-14 Jakub Jelinek <jakub@redhat.com>
8038 * nss/nss_files/files-alias.c (get_next_alias): Set line back
8039 to first_unused after parsing :include: file.
8041 2006-11-10 Ulrich Drepper <drepper@redhat.com>
8043 * timezone/africa: Update from tzdata2006o.
8044 * timezone/antarctica: Likewise.
8045 * timezone/asia: Likewise.
8046 * timezone/australasia: Likewise.
8047 * timezone/backward: Likewise.
8048 * timezone/europe: Likewise.
8049 * timezone/iso3166.tab: Likewise.
8050 * timezone/northamerica: Likewise.
8051 * timezone/southamerica: Likewise.
8052 * timezone/zone.tab: Likewise.
8054 * time/tzfile.c (__tzfile_read): Extend to handle new file format
8055 on machines with 64-bit time_t.
8057 * timezone/checktab.awk: Update from tzcode2006o.
8058 * timezone/ialloc.c: Likewise.
8059 * timezone/private.h: Likewise.
8060 * timezone/scheck.c: Likewise.
8061 * timezone/tzfile.h: Likewise.
8062 * timezone/tzselect.ksh: Likewise.
8063 * timezone/zdump.c: Likewise.
8064 * timezone/zic.c: Likewise.
8067 * elf/ldconfig.c (main): Call setlocale and textdomain.
8068 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8071 * manual/argp.texi: Fix typos.
8072 * manual/charset.texi: Likewise.
8073 * manual/errno.texi: Likewise.
8074 * manual/filesys.texi: Likewise.
8075 * manual/lang.texi: Likewise.
8076 * manual/maint.texi: Likewise.
8077 * manual/memory.texi: Likewise.
8078 * manual/message.texi: Likewise.
8079 * manual/resource.texi: Likewise.
8080 * manual/search.texi: Likewise.
8081 * manual/signal.texi: Likewise.
8082 * manual/startup.texi: Likewise.
8083 * manual/stdio.texi: Likewise.
8084 * manual/sysinfo.texi: Likewise.
8085 * manual/syslog.texi: Likewise.
8086 * manual/time.texi: Likewise.
8087 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8090 * sunrpc/clnt_raw.c: Minimal message improvements.
8091 * sunrpc/pm_getmaps.c: Likewise.
8092 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8093 * nis/nis_print_group_entry.c: Likewise.
8094 * locale/programs/repertoire.c: Likewise.
8095 * locale/programs/charmap.c: Likewise.
8096 * malloc/memusage.sh: Likewise.
8097 * elf/dl-deps.c: Likewise.
8098 * locale/programs/ld-collate.c: Likewise.
8099 * libio/vswprintf.c: Likewise.
8100 * malloc/memusagestat.c: Likewise.
8101 * sunrpc/auth_unix.c: Likewise.
8102 * sunrpc/rpc_main.c: Likewise.
8103 * nscd/cache.c: Likewise.
8104 * locale/programs/repertoire.c: Unify output messages.
8105 * locale/programs/charmap.c: Likewise.
8106 * locale/programs/ld-ctype.c: Likewise.
8107 * locale/programs/ld-monetary.c: Likewise.
8108 * locale/programs/ld-numeric.c: Likewise.
8109 * locale/programs/ld-time.c: Likewise.
8110 * elf/ldconfig.c: Likewise.
8111 * nscd/selinux.c: Likewise.
8112 * elf/cache.c: Likewise.
8113 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8116 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8120 2006-11-10 Jakub Jelinek <jakub@redhat.com>
8122 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8123 if N is one bigger than return value.
8124 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8125 and l1 last arguments, if buf is defined, verify the return value
8126 equals to strlen (buf) and verify no byte beyond passed length
8129 2006-11-10 Ulrich Drepper <drepper@redhat.com>
8131 * po/sv.po: Update from translation team.
8133 2006-11-09 Ulrich Drepper <drepper@redhat.com>
8135 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8138 2006-11-10 Jakub Jelinek <jakub@redhat.com>
8140 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8143 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8144 Use __new_sys_siglist instead of _sys_siglist_internal as
8145 second macro argument.
8146 (_old_sys_siglist): Use declare_symbol_alias macro instead of
8149 2006-11-09 Ulrich Drepper <drepper@redhat.com>
8152 * posix/unistd.h (sysconf): Remove const attribute.
8154 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8155 temporary or deprecated addresses.
8156 Patch by Sridhar Samudrala <sri@us.ibm.com>.
8158 * string/Makefile (tests): Add tst-strxfrm2.
8159 * string/tst-strxfrm2.c: New file.
8161 2006-10-09 Jakub Jelinek <jakub@redhat.com>
8163 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8164 rather than r->r_brk.
8166 2006-11-08 Jakub Jelinek <jakub@redhat.com>
8168 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8169 optimization even if needed > n.
8171 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8172 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8173 return false, otherwise return true.
8174 (cache_rpath): Return decompose_rpath return value.
8176 2006-11-07 Jakub Jelinek <jakub@redhat.com>
8178 * include/libc-symbols.h (declare_symbol): Rename to...
8179 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
8180 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8182 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8184 * sysdeps/gnu/siglist.c: Likewise.
8186 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
8188 * sysdeps/powerpc/fpu/bits/mathinline.h
8189 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8190 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
8192 2006-11-05 Ulrich Drepper <drepper@redhat.com>
8194 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8195 Update handling of cache descriptor 0x49 for new models.
8196 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8199 2006-11-02 Jakub Jelinek <jakub@redhat.com>
8201 * malloc/memusage.c (dest): Reset not_me back to false after
8202 printing statistics.
8204 2006-11-02 Ulrich Drepper <drepper@redhat.com>
8206 * configure.in: Work around ld --help change and avoid -z relro
8207 test completely if the architecture doesn't care about security.
8209 2006-11-01 Ulrich Drepper <drepper@redhat.com>
8211 * po/sv.po: Update from translation team.
8213 2006-10-31 Ulrich Drepper <drepper@redhat.com>
8215 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8216 generate compatibility version.
8218 2006-10-29 Ulrich Drepper <drepper@redhat.com>
8220 * configure.in: Relax -z relro requirement a bit.
8222 * po/sv.po: Update from translation team.
8224 2006-10-29 Jakub Jelinek <jakub@redhat.com>
8226 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8227 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8228 * elf/dl-close.c (_dl_close_worker): Likewise.
8229 * elf/dl-open.c (_dl_open_worker): Likewise.
8230 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8232 2006-10-27 Ulrich Drepper <drepper@redhat.com>
8234 * configure.in: Require assembler support for visibility, compiler
8235 support for visibility and aliases, linker support for various -z
8237 * Makeconfig: Remove conditional code which now is unnecessary.
8238 * config.h.in: Likewise.
8239 * config.make.in: Likewise.
8240 * dlfcn/Makefile: Likewise.
8241 * elf/Makefile: Likewise.
8242 * elf/dl-load.c: Likewise.
8243 * elf/rtld.c: Likewise.
8244 * include/libc-symbols.h: Likewise.
8245 * include/stdio.h: Likewise.
8246 * io/Makefile: Likewise.
8247 * io/fstat.c: Likewise.
8248 * io/fstat64.c: Likewise.
8249 * io/fstatat.c: Likewise.
8250 * io/fstatat64.c: Likewise.
8251 * io/lstat.c: Likewise.
8252 * io/lstat64.c: Likewise.
8253 * io/mknod.c: Likewise.
8254 * io/mknodat.c: Likewise.
8255 * io/stat.c: Likewise.
8256 * io/stat64.c: Likewise.
8257 * libio/stdio.c: Likewise.
8258 * nscd/Makefile: Likewise.
8259 * stdlib/Makefile: Likewise.
8260 * stdlib/atexit.c: Likewise.
8261 * sysdeps/generic/ldsodefs.h: Likewise.
8262 * sysdeps/i386/dl-machine.h: Likewise.
8263 * sysdeps/i386/sysdep.h: Likewise.
8264 * sysdeps/i386/i686/memcmp.S: Likewise.
8265 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8266 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8267 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8269 * Makerules: USE_TLS support is now default.
8270 * tls.make.c: Likewise.
8271 * csu/Versions: Likewise.
8272 * csu/libc-start.c: Likewise.
8273 * csu/libc-tls.c: Likewise.
8274 * csu/version.c: Likewise.
8275 * dlfcn/dlinfo.c: Likewise.
8276 * elf/dl-addr.c: Likewise.
8277 * elf/dl-cache.c: Likewise.
8278 * elf/dl-close.c: Likewise.
8279 * elf/dl-iteratephdr.c: Likewise.
8280 * elf/dl-load.c: Likewise.
8281 * elf/dl-lookup.c: Likewise.
8282 * elf/dl-object.c: Likewise.
8283 * elf/dl-open.c: Likewise.
8284 * elf/dl-reloc.c: Likewise.
8285 * elf/dl-support.c: Likewise.
8286 * elf/dl-sym.c: Likewise.
8287 * elf/dl-sysdep.c: Likewise.
8288 * elf/dl-tls.c: Likewise.
8289 * elf/ldconfig.c: Likewise.
8290 * elf/rtld.c: Likewise.
8291 * elf/tst-tls-dlinfo.c: Likewise.
8292 * elf/tst-tls1.c: Likewise.
8293 * elf/tst-tls10.h: Likewise.
8294 * elf/tst-tls14.c: Likewise.
8295 * elf/tst-tls2.c: Likewise.
8296 * elf/tst-tls3.c: Likewise.
8297 * elf/tst-tls4.c: Likewise.
8298 * elf/tst-tls5.c: Likewise.
8299 * elf/tst-tls6.c: Likewise.
8300 * elf/tst-tls7.c: Likewise.
8301 * elf/tst-tls8.c: Likewise.
8302 * elf/tst-tls9.c: Likewise.
8303 * elf/tst-tlsmod1.c: Likewise.
8304 * elf/tst-tlsmod13.c: Likewise.
8305 * elf/tst-tlsmod13a.c: Likewise.
8306 * elf/tst-tlsmod14a.c: Likewise.
8307 * elf/tst-tlsmod2.c: Likewise.
8308 * elf/tst-tlsmod3.c: Likewise.
8309 * elf/tst-tlsmod4.c: Likewise.
8310 * elf/tst-tlsmod5.c: Likewise.
8311 * elf/tst-tlsmod6.c: Likewise.
8312 * include/errno.h: Likewise.
8313 * include/link.h: Likewise.
8314 * include/tls.h: Likewise.
8315 * locale/global-locale.c: Likewise.
8316 * locale/localeinfo.h: Likewise.
8317 * malloc/arena.c: Likewise.
8318 * malloc/hooks.c: Likewise.
8319 * malloc/malloc.c: Likewise.
8320 * resolv/Versions: Likewise.
8321 * sysdeps/alpha/dl-machine.h: Likewise.
8322 * sysdeps/alpha/libc-tls.c: Likewise.
8323 * sysdeps/generic/ldsodefs.h: Likewise.
8324 * sysdeps/generic/tls.h: Likewise.
8325 * sysdeps/i386/dl-machine.h: Likewise.
8326 * sysdeps/ia64/dl-machine.h: Likewise.
8327 * sysdeps/ia64/libc-tls.c: Likewise.
8328 * sysdeps/mach/hurd/fork.c: Likewise.
8329 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8330 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8331 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8332 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8333 * sysdeps/s390/libc-tls.c: Likewise.
8334 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8335 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8336 * sysdeps/sh/dl-machine.h: Likewise.
8337 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8338 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8339 * sysdeps/x86_64/dl-machine.h: Likewise.
8341 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8342 split out locking and parameter checking.
8343 (_dl_close): Call _dl_close_worker after locking and checking.
8344 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8346 * elf/Makefile: Add rules to build and run tst-thrlock.
8347 * elf/tst-thrlock.c: New file.
8350 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8354 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8355 we are sure we do not need it anymore for _dl_close. Also move
8356 the asserts inside the lock region.
8357 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8359 2006-10-27 Jakub Jelinek <jakub@redhat.com>
8361 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8363 (_dl_lookup_symbol_x): Adjust caller.
8365 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8367 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8369 * elf/dl-libc.c: Revert l_scope name changes.
8370 * elf/dl-load.c: Likewise.
8371 * elf/dl-object.c: Likewise.
8372 * elf/rtld.c: Likewise.
8373 * elf/dl-close.c (_dl_close): Likewise.
8374 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8375 always use __rtld_mrlock_{change,done}. Always free old scope list
8376 here if not l_scope_mem.
8377 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8378 change. Never free scope list here. Just __rtld_mrlock_lock before
8379 the lookup and __rtld_mrlock_unlock it after the lookup.
8380 * elf/dl-sym.c: Likewise.
8381 * include/link.h (struct r_scoperec): Remove.
8382 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8383 with l_scope_mem and l_scoperec_lock with l_scope_lock.
8385 2006-10-25 Ulrich Drepper <drepper@redhat.com>
8387 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8389 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8391 * configure.in: Disable building profile libraries by default.
8393 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8395 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8396 as signed longs, check for x_base + pos overflow.
8397 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8398 * sunrpc/tst-xdrmem2.c: New test.
8400 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8402 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8403 _dl_lookup_symbol_x code.
8405 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8407 * elf/dl-runtime.c: Include sysdep-cancel.h.
8408 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8409 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
8410 instead of catomic_* macros.
8411 * elf/dl-sym.c: Include sysdep-cancel.h.
8412 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8413 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8414 * elf/dl-close.c: Include sysdep-cancel.h.
8415 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8416 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8417 * elf/dl-open.c: Include sysdep-cancel.h.
8418 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8419 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8421 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8424 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8425 fastbin rather than end of fastbin array.
8427 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8429 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8431 * sysdeps/x86_64/bits/atomic.h
8432 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8433 (catomic_decrement): Use correct body macro.
8435 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8437 * include/atomic.h: Add a unique prefix to all local variables
8439 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8441 2006-10-16 Ulrich Drepper <drepper@redhat.com>
8444 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8447 2006-10-14 Ulrich Drepper <drepper@redhat.com>
8449 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8451 2006-10-13 Ulrich Drepper <drepper@redhat.com>
8454 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8455 determine highest fast bin to consolidate, always look into all of
8457 (do_check_malloc_state): Only require for empty bins for large
8458 sizes in main arena.
8460 * libio/stdio.h: Add more __wur attributes.
8462 * elf/dl-minimal.c (realloc): Optimize last patch.
8464 2006-10-12 Richard Sandiford <richard@codesourcery.com>
8467 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8468 and use memcpy() if it does.
8470 2006-11-12 Andreas Jaeger <aj@suse.de>
8473 * manual/search.texi (Hash Search Function): Clarify.
8474 (Array Search Function): Clarify.
8476 2006-11-12 Joseph Myers <joseph@codesourcery.com>
8479 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8481 * math/atest-exp2.c (read_mpn_hex): Likewise.
8482 * math/atest-sincos.c (main): Likewise.
8484 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8486 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8487 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8488 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8490 * Versions.def: Add GLIBC_2.6 for libc.
8492 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8494 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8496 2006-10-11 Jakub Jelinek <jakub@redhat.com>
8498 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8500 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8502 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8503 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8505 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8507 * include/atomic.c: Define catomic_* operations.
8508 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
8509 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8510 * malloc/memusage.c: Likewise.
8511 * gmon/mcount.c: Likewise.
8512 * elf/dl-close.c: Likewise.
8513 * elf/dl-open.c: Likewise.
8514 * elf/dl-profile.c: Likewise.
8515 * elf/dl-sym.c: Likewise.
8516 * elf/dl-runtime.c: Likewise.
8517 * elf/dl-fptr.c: Likewise.
8518 * resolv/res_libc.c: Likewise.
8520 2006-10-10 Ulrich Drepper <drepper@redhat.com>
8522 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8523 components which lack them.
8525 * nis/nis_subr.c (nis_getnames): Make sure that we always return
8526 at least one entry consisting of the parameter concatenated with
8529 2006-10-10 Roland McGrath <roland@frob.com>
8531 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8532 * sysdeps/mach/hurd/futimes.c: Likewise.
8533 * sysdeps/mach/hurd/lutimes.c: Likewise.
8535 2006-10-09 Ulrich Drepper <drepper@redhat.com>
8536 Jakub Jelinek <jakub@redhat.com>
8538 Implement reference counting of scope records.
8539 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8540 from the list in objects which remain. Always allocate new scope
8542 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8543 don't resize, allocate a new one.
8544 * elf/dl-runtime.c: Update reference counters before using a scope
8546 * elf/dl-sym.c: Likewise.
8547 * elf/dl-libc.c: Adjust for l_scope name change.
8548 * elf/dl-load.c: Likewise.
8549 * elf/dl-object.c: Likewise.
8550 * elf/rtld.c: Likewise.
8551 * include/link.h: Include <rtld-lowlevel.h>. Define struct
8552 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
8553 Add l_scoperec_lock.
8554 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8555 * sysdeps/generic/rtld-lowlevel.h: New file.
8557 * include/atomic.h: Rename atomic_and to atomic_and_val and
8558 atomic_or to atomic_or_val. Define new macros atomic_and and
8559 atomic_or which do not return values.
8560 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8562 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8564 * po/sv.po: Update from translation team.
8566 2006-10-07 Ulrich Drepper <drepper@redhat.com>
8568 * Versions.def: Add GLIBC_2.6 to libpthread.
8570 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8571 (versioned_symbol): Likewise.
8572 (compat_symbol): Likewise.
8574 * po/tr.po: Update from translation team.
8576 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8578 * nis/Banner: Removed. It's been integral part forever and the
8579 author info is incomplete anyway.
8580 * libio/Banner: Likewise.
8582 * nis/nis_table.c (nis_list): If __follow_path fails in the new
8583 code, make sure the nis_freeresult call doesn't crash and that the
8584 result is reported correctly.
8586 2006-09-27 Jakub Jelinek <jakub@redhat.com>
8588 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8589 when callback is NULL.
8591 * nis/Versions (libnss_nisplus): Add
8592 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8593 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8594 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8595 _nss_create_tablename): Rename to...
8596 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8597 ... these. No longer static.
8598 (internal_setgrent): Adjust users.
8599 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8600 Don't use locking around _nss_grp_create_tablename call.
8601 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8603 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8605 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8607 2006-10-06 Andreas Jaeger <aj@suse.de>
8609 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8611 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8613 * po/pl.po: Update from translation team.
8615 * nscd/nscd.c (main): Fix typo in message.
8616 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8618 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8621 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8622 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8623 (__sigprocmask): Define.
8625 2006-10-02 Ulrich Drepper <drepper@redhat.com>
8627 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8630 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8632 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8633 in oldtotal and newtotal calculation.
8634 * nscd/nscd-client.h (struct mapped_database): Add datasize
8636 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8637 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8639 (__nscd_cache_search): Add checks to make sure we never reference
8640 data beyond the current mapping.
8642 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8644 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8645 variables const to avoid compiler warnings.
8647 * io/fts.c (fts_close): Remove redundant checks.
8648 (fts_build): Likewise.
8649 (fts_palloc): Likewise.
8651 * manual/message.texi (Advanced gettext functions,
8652 Using gettextized software): Fix typos.
8654 2006-09-30 Ulrich Drepper <drepper@redhat.com>
8656 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8657 explain why there are no leaks.
8659 2006-09-29 Ulrich Drepper <drepper@redhat.com>
8661 * libio/wmemstream.c: Include <wchar.h>.
8662 * libio/bug-wmemstream1.c: Likewise.
8663 * libio/tst-wmemstream1.c: Likewise.
8664 * libio/tst-wmemstream2.c: Likewise.
8666 * version.h (RELEASE): Bump to 2.5.
8667 * README: Regenerated.
8669 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8672 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8673 found no group members.
8674 Patch by Petr Baudis.
8676 2006-09-29 Jakub Jelinek <jakub@redhat.com>
8678 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8679 assert bootstrap_map.l_tls_modid is zero.
8680 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8683 2006-09-27 Ulrich Drepper <drepper@redhat.com>
8685 * libio/stdio.h: Move open_wmemstream prototype to ...
8686 * wcsmbs/wchar.h: ... here.
8688 2006-09-25 Jakub Jelinek <jakub@redhat.com>
8691 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8692 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8693 __{,l}chown to handle the rest.
8694 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8695 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8696 __{,l}chown to handle the rest.
8697 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8699 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8700 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8703 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8704 time, rather allocate increasingly bigger arrays of pointers, if
8705 possible with alloca, if too large with malloc.
8707 2006-09-24 Jakub Jelinek <jakub@redhat.com>
8709 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8711 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8713 2006-09-24 Ulrich Drepper <drepper@redhat.com>
8715 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8717 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8718 IFA_F_HOMEADDRESS flag for interfaces.
8719 * include/ifaddrs.h (struct in6addrinfo): Define
8722 2006-09-21 Jakub Jelinek <jakub@redhat.com>
8725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8726 PTR_DEMANGLE3): Define.
8727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8728 PTR_DEMANGLE3): Likewise.
8729 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8730 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8732 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8734 2006-09-20 Jakub Jelinek <jakub@redhat.com>
8736 * po/libc.pot: Regenerated.
8737 * po/be.po: Updated.
8738 * po/ca.po: Likewise.
8739 * po/cs.po: Likewise.
8740 * po/da.po: Likewise.
8741 * po/de.po: Likewise.
8742 * po/el.po: Likewise.
8743 * po/en_GB.po: Likewise.
8744 * po/es.po: Likewise.
8745 * po/fi.po: Likewise.
8746 * po/fr.po: Likewise.
8747 * po/gl.po: Likewise.
8748 * po/hr.po: Likewise.
8749 * po/hu.po: Likewise.
8750 * po/ja.po: Likewise.
8751 * po/ko.po: Likewise.
8752 * po/nb.po: Likewise.
8753 * po/nl.po: Likewise.
8754 * po/pl.po: Likewise.
8755 * po/pt_BR.po: Likewise.
8756 * po/ru.po: Likewise.
8757 * po/rw.po: Likewise.
8758 * po/sk.po: Likewise.
8759 * po/sv.po: Likewise.
8760 * po/tr.po: Likewise.
8761 * po/zh_CN.po: Likewise.
8762 * po/zh_TW.po: Likewise.
8765 * iconv/iconv_prog.c (main): Fix spelling in error message.
8766 * iconv/iconvconfig.c (main): Likewise.
8767 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8768 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8769 * locale/programs/localedef.c (main): Likewise.
8770 * locale/programs/repertoire.c (repertoire_read): Likewise.
8771 * timezone/zdump.c (main): Likewise.
8772 * nscd/connections.c (handle_request): Fix spelling in log message.
8773 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8775 2006-09-20 Ulrich Drepper <drepper@redhat.com>
8777 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8780 2006-09-20 Andreas Jaeger <aj@suse.de>
8782 * math/libm-test.inc (lrint_test_upward): Fix typo.
8784 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8787 * math/libm-test.inc (lrint_test_tonearest): New function.
8788 (lrint_test_towardzero): New function.
8789 (lrint_test_downward): New function.
8790 (lrint_test_upward): New function.
8791 (main): Run these new tests.
8792 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8793 of values near to 0.
8794 (two52): Use double not long double.
8795 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8796 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8797 (two23): Use float not double.
8798 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8799 (two23): Use float not double.
8800 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8801 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8802 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8803 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8805 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8807 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8808 Cast sp to unsigned long to avoid compiler warning.
8809 Use __makecontext_ret function instead of a trampoline on the stack.
8810 (__makecontext_ret): New function.
8811 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8813 2006-09-19 Jakub Jelinek <jakub@redhat.com>
8815 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8816 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8819 2006-09-19 Ulrich Drepper <drepper@redhat.com>
8821 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8822 sure no reference to the unloaded map's search list remains in the
8825 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8827 * elf/Makefile: Add rules to build and run unload7 test.
8828 * elf/unload7.c: New test.
8829 * elf/unload7mod1.c: New file.
8830 * elf/unload7mod2.c: New file.
8832 2006-09-18 Jakub Jelinek <jakub@redhat.com>
8834 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8835 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8836 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8837 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8838 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8839 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8840 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8841 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8842 PTRACE_GETEVENTMSG): Likewise.
8843 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8846 2006-09-17 Mike Frysinger <vapier@gentoo.org>
8848 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8849 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8850 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8851 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8853 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8855 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8856 write '\0' to the fd.
8857 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8858 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8859 Change regs to unsigned long pointer from unsigned int, fix fscr
8862 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8864 * io/Makefile (CFLAGS-fstatat.c): Set.
8865 (CFLAGS-fstatat64.c): Likewise.
8866 (CFLAGS-mknodat.c): Likewise.
8868 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8869 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8870 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8871 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8873 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8874 Steven Munroe <sjmunroe@us.ibm.com>
8876 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8877 names to the beginning. Rename "cell" to "cellbe".
8878 (_dl_powerpc_platforms): New.
8879 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8880 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8881 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8882 (_DL_HWCAP_PLATFORM): Define to new mask.
8883 (_dl_platform_string, _dl_string_platform): New functions.
8884 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8885 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8887 2006-09-12 Jakub Jelinek <jakub@redhat.com>
8890 * README.libm: Fix a thinko in sqrt algorithm description.
8893 * manual/string.texi (argz_delete): Fix prototype.
8894 Patch by <alpt@freaknet.org>.
8896 2006-08-26 Joseph Myers <joseph@codesourcery.com>
8899 * io/test-lfs.c (do_prepare): Give name_len type size_t.
8900 * io/tst-fcntl.c (do_prepare): Likewise.
8901 * posix/tst-exec.c (do_prepare): Likewise.
8902 * posix/tst-preadwrite.c (do_prepare): Likewise.
8903 * posix/tst-spawn.c (do_prepare): Likewise.
8904 * posix/tst-truncate.c (do_prepare): Likewise.
8905 * rt/tst-aio.c (do_prepare): Likewise.
8906 * rt/tst-aio64.c (do_prepare): Likewise.
8907 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8910 2006-09-09 Ulrich Drepper <drepper@redhat.com>
8913 * time/mktime.c (guess_time_tm): Fix overflow detection.
8914 * time/Makefile (tests): Add bug-mktime1.
8915 * time/bug-mktime1.c: New file.
8918 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8921 2006-09-07 Jakub Jelinek <jakub@redhat.com>
8924 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8925 Ensure relocation doesn't clobber any bits outside of the
8926 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8927 R_SPARC_HI22 and R_SPARC_H44.
8930 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8931 (long) (MINSIZE + nb - old_size) is positive.
8933 * malloc/arena.c (grow_heap): When growing bail even if new_size
8937 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8940 2006-09-06 Jakub Jelinek <jakub@redhat.com>
8942 * posix/regex_internal.c (re_string_reconstruct): Handle
8943 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8944 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8945 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8946 re_string_context_at.
8947 * posix/Makefile: Add rules to build and run bug-regex26 test.
8948 * posix/bug-regex26.c: New test.
8950 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8951 rather than col_sym_free. Move seqp declaration earlier.
8953 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8955 2006-09-05 Jakub Jelinek <jakub@redhat.com>
8957 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8958 decl before first goto out.
8960 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8962 * Makerules (shlib.lds): If have-hash-style, put .hash section
8963 at the end of the RO segment.
8965 2006-09-04 Ulrich Drepper <drepper@redhat.com>
8967 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8968 style hash table format is used.
8970 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8972 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8973 randomization rather than before.
8974 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8976 2006-08-31 Jakub Jelinek <jakub@redhat.com>
8978 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8980 * malloc/malloc.c (_int_malloc): Use full list insert and not
8981 shortcut which assumes the list is empty for large requests
8984 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8986 2006-08-30 Jakub Jelinek <jakub@redhat.com>
8988 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8989 and offout arguments to the prototype.
8990 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8991 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8992 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8993 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8994 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8995 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8996 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8997 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8999 2006-08-28 Ulrich Drepper <drepper@redhat.com>
9001 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9003 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9006 2006-08-28 Jakub Jelinek <jakub@redhat.com>
9008 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9009 only if herrno is NETDB_INTERNAL. Handle errors other than
9010 ERANGE outside of the loops, handle TRY_AGAIN.
9012 * locale/programs/ld-ctype.c (translit_flatten): Issue error
9013 if other's ctype category was missing.
9014 * locale/programs/ld-collate.c (collate_read): Return if
9015 copy_locale's collate category is missing.
9017 2006-08-27 Ulrich Drepper <drepper@redhat.com>
9020 * malloc/malloc.c (public_rEALLOc): Try harder by using other
9021 arenas if allocation failed.
9022 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9024 2006-08-26 Ulrich Drepper <drepper@redhat.com>
9026 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9028 (malloc_state): Reduce bins size by 2.
9029 (_int_malloc): Fix test for large enough buffer for early termination.
9030 When no unsorted block matches perfectly and an exiting block has
9031 to be split, use full list insert and not shortcut which assumes
9034 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9037 2006-08-24 Ulrich Drepper <drepper@redhat.com>
9039 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9042 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9043 symbol require exact match (these are PLTs).
9044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9045 (_dl_ppc64_addr_sym_match): Likewise.
9048 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9049 If symbol has a value use it.
9050 * elf/tst-dladdr1.c: New file.
9051 * elf/Makefile: Add rules to build and run tst-addr1.
9053 2006-08-24 Jakub Jelinek <jakub@redhat.com>
9055 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9056 keeps failing and heap growth or new heap creation isn't
9058 * malloc/tst-malloc.c (main): Add new tests.
9060 2006-08-24 Ulrich Drepper <drepper@redhat.com>
9063 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9064 as in the x86-64 code to use bswap.
9066 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
9069 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9071 * posix/bits/unistd.h: Likewise.
9073 2006-05-15 Mike Frysinger <vapier@gentoo.org>
9076 * string/strchr.c: Add cast to avoid warning.
9078 2006-08-21 Ulrich Drepper <drepper@redhat.com>
9080 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9081 platforms define as 512K. For 64-bit platforms as 32MB. The lower
9082 limit is needed to avoid the exploding of the address space
9083 requirement for secondary heaps.
9084 * malloc/arena.c (HEAP_MAX_SIZE): Define using
9085 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9087 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
9090 * Makerules (depfiles): Handle extra-test-objs the same as
9092 (common-mostlyclean): Likewise.
9093 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9095 * elf/Makefile (extra-objs): Likewise.
9096 * stdlib/Makefile (extra-objs): Likewise.
9098 2006-08-14 Eric Blake <ebb9@byu.net>
9101 * misc/error.h: Assume C89 or better.
9102 * misc/error.c: Likewise.
9104 2006-08-21 Ulrich Drepper <drepper@redhat.com>
9107 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9108 __ASSUME_ATFCTS is defined.
9110 2006-08-19 Ulrich Drepper <drepper@redhat.com>
9112 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9113 to sort in each call.
9115 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9116 is empty simply return and use next service.
9117 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9119 * locale/programs/charmap.c (charmap_read): Add new parameter. It
9120 tells us when not finding a charmap file is an error.
9121 * locale/programs/charmap.h: Adjust charmap_read prototype.
9122 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9123 cannot find a charmap.
9124 * locale/programs/localedef.c (main): Adjust charmap_read call.
9126 2006-08-15 Jakub Jelinek <jakub@redhat.com>
9128 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9129 sysdeps/posix/pause.c implementation instead.
9131 2006-08-09 Jakub Jelinek <jakub@redhat.com>
9133 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9136 2006-08-13 Andreas Schwab <schwab@suse.de>
9138 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9139 Don't clobber caller's LRSAVE.
9140 (_dl_prof_resolve): Likewise.
9142 2006-08-14 Ulrich Drepper <drepper@redhat.com>
9145 * libio/memstream.c (open_memstream): Allocate initial buffer with
9147 * libio/wmemstream.c (open_wmemstream): Likewise.
9148 * libio/strops.c: Pretty printing.
9149 (_IO_str_overflow): Clear uninitialized part of the new buffer.
9150 (enlarge_userbuf): New function.
9151 (_IO_str_seekoff): Call it if seek position is larger than current
9153 * libio/wstrops.c: Likewise.
9154 * libio/vasprintf.c: Add comment as to why we do not have to use
9155 calloc instead of malloc to allocate initial buffer.
9156 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9157 * libio/bug-memstream1.c: New file.
9158 * libio/bug-wmemstream1.c: New file.
9160 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9162 * libio/wstrops.c: Remove dead macro definitions and comments.
9163 * libio/strops.c: Likewise.
9166 * login/utmpname.c (__utmpname): Remove unnecessary test.
9168 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
9171 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9174 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9177 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9179 * sysdeps/unix/clock_settime.c: Add support for platform-specific
9180 setting of CPU clocks.
9182 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
9185 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9186 since C99 requires the result to promote to 'int' when uint_least8_t
9187 and uint_least16_t promote to 'int'.
9189 2006-08-12 Ulrich Drepper <drepper@redhat.com>
9192 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9193 lenght of one output field, correct bitmask creation.
9194 * locale/programs/ld-time.c: Add alignment.
9197 * misc/error.c: Add space between program name and message if file
9200 2006-08-03 Eric Blake <ebb9@byu.net>
9203 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9205 2006-08-09 Ulrich Drepper <drepper@redhat.com>
9207 * malloc/memusagestat.c: Silence warnings.
9209 * malloc/malloc.c: Dynamically size mmap treshold if the program
9210 frees mmaped blocks.
9211 Patch by Valerie Henson and Arjan van de Ven.
9213 2006-08-08 Jakub Jelinek <jakub@redhat.com>
9215 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9218 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9219 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9220 (DEF): Don't put the var into .gnu.linkonce.r.* section.
9221 Only provide var definitions in strtol_l (or for *ull*
9224 * stdio-common/bug16.c (tests): New array.
9225 (do_tests): Allow the first hexadecimal digit
9226 to be 1, 2, 4 or 8. Do 3 additional tests.
9228 * sysdeps/s390/fpu/libm-test-ulps: Update.
9230 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9231 fchownat syscall if available.
9232 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9233 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9234 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9236 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9238 * nis/nis_xdr.c: Avoid some function calls.
9240 2006-08-07 Jakub Jelinek <jakub@redhat.com>
9241 Ulrich Drepper <drepper@redhat.com>
9243 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9244 short cut if only one name component is stripped away.
9246 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9248 * nis/nis_call.c: Minor cleanups throughout.
9249 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9250 (first_shoot): Add search_parent_first parameter. Only if it is set
9251 search parent server first.
9252 If directory for table found through cold start cache is not the same
9253 as referenced in the cache, don't use it.
9254 (__nisfind_server): Take additional parameter. Pass it on to
9256 (__prepare_niscall): Adjust __nisfind_server call.
9257 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9258 * nis/nis_table.c: Adjust __nisfind_server call.
9259 * nis/nis_lookup.c: Likewise.
9260 (nis_lookup): Don't loop endlessly if name is reduced to ".".
9262 2006-08-03 Ulrich Drepper <drepper@redhat.com>
9265 * math/s_cacosh.c: Return values from positive branch.
9266 * math/s_cacoshf.c: Likewise.
9267 * math/s_cacoshl.c: Likewise.
9270 * sysvipc/sys/msg.h: Change return value to ssize_t.
9271 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9272 * sysvipc/msgrcv.c: Likewise.
9273 * include/sys/msg.h: Likewise.
9275 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9276 test introduced in patch for bz #661.
9277 (getgrouplist): Simplify code a bit. Don't allocate one additional
9278 element for NEWGROUPS.
9281 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9282 'f', use '1' as leading digit not '\1'.
9283 * stdio-common/Makefile (tests): Add bug16.
9284 * stdio-common/bug16.c: New file.
9287 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9288 and don't try to open it. The patch introducing the macro
9289 contained a bug and used the same file name as the new file
9290 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9291 this out completely.
9294 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9295 Patch by Jerry James <Jerry.James@usu.edu>.
9297 * rt/Makefile (tests): Add tst-clock2.
9298 * rt/tst-clock2.c: New file.
9301 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9302 function and its parameters and pass it to new thread.
9303 (__gai_notify): Add support for alternative waiting for completion.
9304 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9305 waiting for completion.
9306 * resolv/getaddrinfo_a.c: Likewise.
9307 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9308 waiting for completion is used.
9309 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9310 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9311 * resolv/gai_error.c: Likewise.
9312 * resolv/gai_sigqueue.c: Likewise.
9314 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9316 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9317 errno to EBADF and return MACH_PORT_NULL.
9319 2006-06-23 Joseph Myers <joseph@codesourcery.com>
9322 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9324 2006-08-02 Ulrich Drepper <drepper@redhat.com>
9326 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9327 walk them instead of the symbol table.
9329 2006-08-01 Ulrich Drepper <drepper@redhat.com>
9332 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9333 status of NSS calls, not the number of returned entries.
9335 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9336 request_key, keyctl.
9338 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9340 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9342 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9344 * elf/tst-auditmod1.c: Fix typo in #error.
9346 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9348 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9350 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9352 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9354 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9355 that the directory is empty even on non-POSIX filesystems.
9357 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9359 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9361 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9362 the backend NSS module. If backend setgrent call failed, don't have
9363 internal_setgrent fail. Just remember this until it is needed.
9364 * nis/nss_compat/compat-pwd.c: Likewise.
9365 * nis/nss_compat/compat-spwd.c: Likewise.
9367 2006-07-30 Roland McGrath <roland@redhat.com>
9369 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9370 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9371 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9372 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9374 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9375 (nanosleep_not_cancel): New macro.
9376 (sigsuspend_not_cancel): new macro.
9377 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9378 (do_sigsuspend): Define as inline.
9379 (__sigsuspend): Always use do_sigsuspend.
9380 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9381 * include/signal.h: Declare __sigsuspend_nocancel.
9382 * sysdeps/posix/pause.c
9383 [! NO_CANCELLATION] (__pause_nocancel): New function.
9385 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9386 * include/time.h (__nanosleep_nocancel): Likewise.
9388 2006-07-30 Ulrich Drepper <drepper@redhat.com>
9390 * locale/programs/localedef.c (add_to_readlist): Rename local
9391 variables to avoid confusion.
9393 * locale/programs/charmap.c (charmap_read): Emit error message if
9394 charmap couldn't be found or read.
9396 2006-07-28 Ulrich Drepper <drepper@redhat.com>
9398 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9399 __ASSUME_FUTEX_LOCK_PI.
9400 * include/time.h: Declare __nanosleep_nocancel.
9401 * include/unistd.h: Declare __pause_nocancel.
9403 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9404 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9405 get the __stack_chk_fail_local definition when it's needed.
9407 2006-07-26 Ulrich Drepper <drepper@redhat.com>
9409 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9410 * dlfcn/bug-atexit3.c: New file.
9411 * dlfcn/bug-atexit3-lib.cc: New file.
9413 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9414 used when the namespace is not the base namespace.
9416 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
9418 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9419 (__new_exitfn): Bump it in every successful call.
9420 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9421 more exit handlers, call them right away.
9422 * stdlib/exit.h: Declare __new_exitfn_called.
9424 2006-07-25 Ulrich Drepper <drepper@redhat.com>
9426 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9427 calling registered handler.
9429 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9430 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9431 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9432 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9433 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9434 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9435 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9436 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9438 2006-07-10 Ulrich Drepper <drepper@redhat.com>
9440 * elf/dl-lookup.c (dl_new_hash): New functions.
9441 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9442 value here. Compute new-style hash value. Pass new hash value
9443 and reference to variable with the old value to do_lookup_x.
9444 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9445 old-style hash table.
9446 (_dl_debug_bindings): Pass new hash value and reference to variable
9447 with the old value to do_lookup_x.
9448 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9449 new-style hash value and change old-style hash value parameter to
9450 be a reference. Reoganize functions to determine whether
9451 new-style hash table is available. Only fall back on old-style
9452 table. If old-style hash value is needed, compute it here.
9453 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9455 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9456 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
9457 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9458 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9459 * Makeconfig: If linker supports --hash-style option add it to all
9460 linker command lines to build DSOs.
9461 * config.make.in: Define have-hash-style.
9462 * configure.in: Test whether linker supports --hash-style option.
9464 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9465 * sysdeps/generic/ldsodefs.h: Adjust prototype.
9467 2006-06-27 Ulrich Drepper <drepper@redhat.com>
9469 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9472 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9473 RPATH of main map twice.
9475 2006-06-22 Ulrich Drepper <drepper@redhat.com>
9477 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9478 look further, return original strings.
9479 (_nl_find_msg): Do not return found translation if the conversion
9480 failed. Either signal the string is unusable or that something went
9481 wrong and the original should be used.
9483 2006-06-21 Ulrich Drepper <drepper@redhat.com>
9485 * string/_strerror.c (__strerror_r): Add __builtin_expect.
9487 2006-06-14 Jakub Jelinek <jakub@redhat.com>
9490 * misc/insremque.c (insque): Handle prev == NULL.
9491 * misc/Makefile (tests): Add tst-insremque.
9492 * misc/tst-insremque.c: New test.
9494 2006-06-17 Ulrich Drepper <drepper@redhat.com>
9497 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9498 conflict with DL_DST_REQUIRED.
9500 2006-06-16 Ulrich Drepper <drepper@redhat.com>
9502 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9503 match what Solaris does.
9505 2006-06-04 Ulrich Drepper <drepper@redhat.com>
9507 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9508 local_setegid instead of seteuid and setegid.
9509 * sysdeps/generic/local-setxid.h: New file.
9510 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9512 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9514 * string/Makefile (tests): Add bug-envz1.
9515 * string/bug-envz1.c: New file.
9517 2006-06-02 Jakub Jelinek <jakub@redhat.com>
9519 * posix/regex_internal.c (re_string_skip_chars): If no character has
9520 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
9521 to the byte which couldn't be converted.
9522 (re_string_reconstruct): Don't clear valid_raw_len before calling
9523 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9524 tip_context using re_string_context_at.
9525 * posix/Makefile: Add rules to build and run bug-regex25 test.
9526 * posix/bug-regex25.c: New test.
9528 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
9531 * string/envz.c (envz_strip): Correct erroneously reversed src
9532 and dest parameters to memmove() invocation.
9534 2006-05-30 Jakub Jelinek <jakub@redhat.com>
9536 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9537 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9538 to make sure the database has been already invalidated.
9539 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
9540 after the cache has been invalidated. Use pthread_mutex_lock rather
9541 than pthread_mutex_trylock if fd != -1.
9542 * nscd/connections.c (invalidate_cache): Add fd argument, write
9543 response to fd if not calling prune_cache, pass fd to prune_cache.
9544 (handle_request): Adjust invalidate_cache caller.
9545 (nscd_run): Pass -1 as fd to prune_cache.
9547 2006-05-30 Ulrich Drepper <drepper@redhat.com>
9549 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9552 2006-05-29 Ulrich Drepper <drepper@redhat.com>
9554 * nscd/nscd.h (struct database_dyn): Add prunelock field.
9555 * nscd/cache.c (prune_cache): Take prunelock before starting the
9556 work. Just return in case it is already taken.
9557 * nscd/connections.c (dbs): Initialize .prunelock.
9559 2006-05-25 Ulrich Drepper <drepper@redhat.com>
9561 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9562 copying. No need to allocate new array for group members. Just
9563 move the pointers and update the size.
9565 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9566 Avoid memory leak in case realloc fails. Simplification for
9567 better code generation.
9569 Avoid deprecation warning because of libc_hidden_proto for
9571 * inet/inet6_option.c (option_alloc): Renamed from
9572 inet6_option_alloc. Made static.
9573 (inet6_option_alloc): Now a simple wrapper around option_alloc.
9574 (inet6_option_append): Call option_alloc.
9575 * include/netinet/in.h: Remove libc_hidden_proto for
9578 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9579 for cleanup when cb!=NULL [Coverity CID 233].
9581 2006-05-24 Ulrich Drepper <drepper@redhat.com>
9584 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9585 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9586 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9587 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9588 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9589 and inet6_rth_getaddr.
9590 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9592 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9593 Mark inet6_option_* interfaces as deprecated.
9594 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9595 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9596 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9597 inet6_rth_segments, and inet6_rth_getaddr.
9598 * inet/inet6_opt.c: New file.
9599 * inet/inet6_rth.c: New file.
9601 * inet/netinet/icmp6.h: Pretty printing.
9604 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9606 2006-05-23 Ulrich Drepper <drepper@redhat.com>
9608 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9609 doing it all here. When server does not know the answer do not
9610 fail immediate, try parent first.
9612 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9615 2006-05-20 Ulrich Drepper <drepper@redhat.com>
9617 * nis/nis_call.c (__prepare_niscall): New function. Split out
9619 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9621 (__follow_path): New function. Split out from nis_list.
9622 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9624 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9626 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9628 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9629 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9630 from libnsl for version GLIBC_PRIVATE.
9631 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9632 Remove entry parameter from _nss_nisplus_parse_pwent and
9633 _nss_nisplus_parse_grent.
9634 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9635 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9636 again. Rewrite getpwent handling to not use nis_first_entry and
9637 nis_next_entry. Roll out own niscall handling.
9638 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9640 * sunrpc/xdr_rec.c: Fix typo in comment.
9642 2006-05-19 Ulrich Drepper <drepper@redhat.com>
9644 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9647 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9648 to allocate memory for my_pollfd. Better initialization of
9649 cb_is_running. Use TEMP_FAILURE_RETRY.
9651 * malloc/memusage.sh (memusageso): Add quotes.
9652 (memusagestat): Likewise.
9653 * debug/xtrace.sh (pcprofileso): Likewise.
9654 (pcprofiledump): Likewise.
9655 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9657 * malloc/Makefile ($(objpfx)memusage): Likewise.
9659 * nis/nis_callback.c (__nis_create_callback): Calls to
9660 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9661 asprintf call fails.
9663 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9664 no uninitialized memory is passed to sendto.
9666 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9668 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9669 of snprintf+strdup. Handle OOM.
9670 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9671 cb->serv together. Remove now obsolete free calls.
9672 (__nis_destroy_callback): Remove now obsolete free call.
9674 2006-05-18 David Woodhouse <dwmw2@redhat.com>
9676 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9677 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9678 and ULA respectively). Set precedence for IPv4 address to 10 as
9679 defined in RFC3484 for preferring IPv6.
9680 * posix/gai.conf: Update to match the new default tables.
9682 2006-05-18 Jakub Jelinek <jakub@redhat.com>
9684 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9685 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9686 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9687 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9689 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9691 (init_nss_interface): Remove initialization of these variables.
9693 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9695 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9696 nis_free_directory forward to avoid duplication.
9698 2006-05-17 Ulrich Drepper <drepper@redhat.com>
9700 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9701 rec_dirsearch returning NULL.
9702 (first_shoot): Handle __nis_finddirectory returning NULL.
9703 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9705 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9706 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9708 2006-05-17 Jakub Jelinek <jakub@redhat.com>
9710 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9713 2006-05-15 Ulrich Drepper <drepper@redhat.com>
9715 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9717 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9718 * nscd/nscd_getgr_r.c: Likewise.
9720 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9722 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9723 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9725 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9727 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9729 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9731 * include/rpc/auth.h: Mark xdr_des_block_internal and
9732 xdr_opaque_auth_internal as hidden.
9734 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9737 * include/rpc/xdr.h: Mark all _internal functions as hidden.
9739 * misc/getusershell.c (okshells): Don't use static initializers,
9742 * stdlib/fmtmsg.c (keywords): Change type of len element to
9743 uint32_t to not waste space on 64bit machines.
9745 * locale/setlocale.c: Change _nl_category_names into a string.
9746 Add new _nl_category_name_idxs. Change all users.
9747 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9748 Declare _nl_category_name_idxs.
9749 * locale/findlocale.c: Adjust for _nl_category_names change.
9750 * locale/loadlocale.c: Likewise.
9751 * locale/newlocale.c: Likewise.
9752 * intl/dcigettext.c: Likewise.
9754 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9755 (add_alias2): ...here. New function.
9756 (__gconv_read_conf): Simplify builtin alias handling.
9757 (builtin_aliases): Convert to string to avoid relocations.
9758 * iconv/gconv_builtin.h: Add comment about correct formatting.
9760 2006-05-15 Jakub Jelinek <jakub@redhat.com>
9762 * resolv/res_debug.c (loc_ntoa): Make error const.
9764 2006-05-14 Andreas Schwab <schwab@suse.de>
9766 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9768 2006-05-12 Jakub Jelinek <jakub@redhat.com>
9770 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9771 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9774 2006-05-11 Ulrich Drepper <drepper@redhat.com>
9776 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9778 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9780 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9781 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9783 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9784 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9786 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9787 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9790 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9791 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9794 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9795 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9797 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9798 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9800 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9801 * include/rpcsvc/nis_callback.h: New file.
9803 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9804 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9806 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9807 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9809 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9810 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9812 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9813 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9815 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9816 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9819 * nis/nis_xdr.h: Mark all functions as hidden. Remove
9820 __BEGIN_DECLS and __END_DECLS, the header is not installed.
9822 * nis/nis_error.c: Remove table of strings. Use position
9823 independent mechanism.
9824 * nis/nis_error.h: New file.
9826 2006-05-11 Jakub Jelinek <jakub@redhat.com>
9828 * locale/programs/ld-time.c (time_finish): If wide era name or
9829 format aren't provided, set both wname and wformat to L"".
9831 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9833 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9834 results if the call was succesful.
9836 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9838 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9841 2006-05-10 Jakub Jelinek <jakub@redhat.com>
9843 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9845 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9847 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9848 caller makes sure this is not the case.
9849 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
9851 2006-05-09 Ulrich Drepper <drepper@redhat.com>
9853 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9856 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9857 [Coverity CID 229, 230]
9859 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9861 (hol_help): Likewise. [Coverity CID 226, 227]
9863 * string/argz-replace.c (__argz_replace): Unconditionally call
9864 free on SRC. [Coverity CID 225]
9866 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9867 the return value of __nis_default_owner and __nis_default_group,
9868 it has been especially allocated. [Coverity CID 224]
9870 * nis/nis_defaults.c (searchXYX): New functions. Used by both
9871 searchgroup and searchowner. Significantly simplified.
9872 (__nis_default_owner): Remove duplication. Do not locally copy the
9873 string before duplicating it.
9874 (__nis_default_group): Likewise.
9876 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9877 we must clear the variable before calling __nisfind_server.
9879 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9880 nis_getnames. [Coverity CID 223]
9882 * locale/programs/locfile.c (locfile_read): Use alloca instead of
9883 xmalloc to allocate local repertoire name. [Coverity CID 222]
9885 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9886 allocate memory for the input to add_bytes. [Coverity CID 221]
9888 * posix/wordexp.c (w_addword): Free word if realloc fails and it
9889 was allocated here. [Coverity CID 219, 220]
9891 * posix/getconf.c (print_all): Free confstr data after printing.
9894 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9895 list allocation fails. [Coverity CID 215]
9897 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9900 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9901 string is NULL. [Coverity CID 212]
9902 * argp/Makefile: Add rules to build and run bug-argp1.
9903 * argp/bug-argp1.c: New file.
9905 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9907 * stdlib/canonicalize.c (__realpath): Likewise.
9909 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9910 pointer. [Coverity CID 206]
9912 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9913 in statically linked code.
9914 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9915 statically built code, be prepared to have no link map.
9918 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9919 dgettext calls. [Coverity CID 204]
9921 * argp/argp-help.c (struct uparams): Remove valid member. Change
9923 (uparam_names): Reduce size. Avoid relative relocations.
9924 Moved to read-only segment.
9925 (fill_in_uparams): Update for new layout.
9927 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9928 assumed to always be != NULL. [Coverity CID 202]
9930 * argp/argp-help.c (hol_entry_help): Remove some dead code
9933 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9934 away a few more unconditional yperr2nss calls.
9935 (_nss_nis_getservbyname_r): Likewise.
9937 2006-05-06 Ulrich Drepper <drepper@redhat.com>
9939 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9942 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9943 that unused memory passed to sendto is nevertheless initialized.
9946 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9947 possibly unaligned memory accesses.
9949 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9950 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9951 and __putlong respectively. Correct buffer overflow check for
9954 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9956 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9957 (send_dg): Rewrite error handling to be more compact and avoid
9958 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9960 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9962 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9963 instead of ns_get16.
9964 (res_queriesmatch): Likewise. Minor optimization.
9967 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9968 __libc_res_nsend might reallocate the buffer for the answer. In
9969 this case we have to reload the HP pointer.
9971 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9973 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9974 some branch prediction hints.
9976 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9977 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9978 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9979 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9980 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9981 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9982 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9983 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9985 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9987 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9988 by a GOT relocation to make Scrt1.o position independent.
9989 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9991 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9992 six system call parameters.
9993 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9995 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9997 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10000 * sunrpc/svc_udp.c (BZERO): Remove definition.
10002 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10004 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
10005 (des_SPtrans): Use uint32_t type.
10006 (des_skb): Likewise.
10008 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10010 2006-05-05 Jakub Jelinek <jakub@redhat.com>
10013 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10016 2006-05-05 Ulrich Drepper <drepper@redhat.com>
10018 * locale/programs/ld-address.c (address_finish): Fix one more
10019 place where the iso639 array might be accessed beyond the limits.
10021 2006-05-04 Ulrich Drepper <drepper@redhat.com>
10023 * nis/nis_table.c (nis_list): Avoid clearing res twice before
10024 filling it for the first time.
10026 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10027 Adjust all callers.
10028 Free res object content before returning.
10030 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10032 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10035 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10036 cleanup for initial thread, just the free call on TVP.
10038 * nscd/gai.c (__getline): Define.
10041 See ChangeLog.16 for earlier changes.