1 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
5 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
7 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
10 Add "t" to clobber list.
11 (INTERNAL_SYSCALL_NCS): Likewise.
13 2009-01-28 Ulrich Drepper <drepper@redhat.com>
15 * nss/getent.c (print_networks): Don't print comma between aliases.
17 2009-01-23 Ulrich Drepper <drepper@redhat.com>
19 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
21 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
23 * misc/Makefile (tests): Add bug-hsearch1.
24 * misc/bug-hsearch1.c: New file.
26 2009-01-22 Roland McGrath <roland@redhat.com>
28 * Makeconfig (%.v.i): Strip trailing # comments,
29 not only whole-line comments.
31 2009-01-10 Ulrich Drepper <drepper@redhat.com>
33 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
34 one parameter. If non-NULL use it to initialize return value.
35 (_dl_setup_pointer_guard): New function.
36 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
37 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
38 * elf/rtld.c (security_init): Pass _dl_random to
39 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
41 * elf/dl-sysdep.c (_dl_random): New variable.
42 (_dl_sysdep_start): Handle AT_RANDOM.
43 (_dl_show_auxv): Likewise.
44 * elf/dl-support.c (_dl_random): New variable.
45 (_dl_aux_init): Handle AT_RANDOM.
46 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
47 to _dl_setup_stack_chk_guard.
49 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
51 2009-01-10 Roland McGrath <roland@redhat.com>
53 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
55 2009-01-08 Ulrich Drepper <drepper@redhat.com>
57 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
60 * nss/nss_files/files-parse.c (strtou32): New function.
61 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
62 across 32-bit and 64-bit platforms.
63 (INT_FIELD_MAYBE_NULL): Likewise.
65 2009-01-08 Jakub Jelinek <jakub@redhat.com>
68 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
69 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
70 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
73 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
76 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
77 being NULL also if there are no backreferences.
78 * posix/rxspencer/tests: Add testcases.
80 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
83 * posix/bug-regex17.c: Add testcases.
84 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
87 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
89 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
90 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
91 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
92 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
94 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
95 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
96 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
97 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
98 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
99 * sysdeps/unix/sysv/linux/s390/Versions: New file.
101 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
103 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
104 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
105 re_string_skip_chars, re_string_reconstruct): Likewise.
106 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
108 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
110 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
111 adjust the buffer alignment.
113 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
115 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
116 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
119 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
120 flavor to description only when flavor is not NULL.
122 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
123 mutex after SIGIO/SIGURG lookup loop.
125 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
127 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
129 2009-01-03 Ulrich Drepper <drepper@redhat.com>
131 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
134 2009-01-02 Ulrich Drepper <drepper@redhat.com>
136 * sysdeps/unix/sysv/linux/kernel-features.h
137 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
139 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
140 if no output is written.
142 * version.h: Bump to 2.10 development.
144 * posix/getconf.c: Update copyright year.
145 * nss/getent.c: Likewise.
146 * iconv/iconvconfig.c: Likewise.
147 * iconv/iconv_prog.c: Likewise.
148 * elf/ldconfig.c: Likewise.
149 * catgets/gencat.c: Likewise.
150 * csu/version.c: Likewise.
151 * elf/ldd.bash.in: Likewise.
152 * elf/sprof.c (print_version): Likewise.
153 * locale/programs/locale.c: Likewise.
154 * locale/programs/localedef.c: Likewise.
155 * nscd/nscd.c (print_version): Likewise.
156 * debug/xtrace.sh: Likewise.
157 * malloc/memusage.sh: Likewise.
158 * malloc/mtrace.pl: Likewise.
159 * debug/catchsegv.sh: Likewise.
161 2008-12-29 Mike Frysinger <vapier@gentoo.org>
163 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
166 2008-12-29 Ulrich Drepper <drepper@redhat.com>
168 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
169 gethostbyname4_r function call succeeded, just leave the loop.
172 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
174 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
175 * wctype/Makefile (tests): Add bug-wctypeh.
176 * wctype/bug-wctypeh.c: New file.
178 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
179 LOCALDOMAIN is defined.
180 * nscd/nscd_getai.c (__nscd_getai): Likewise.
182 * sysdeps/x86_64/bits/select.h: New file.
184 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
186 2008-12-21 Bruno Haible <bruno@clisp.org>
189 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
190 if no output is written.
192 2008-12-13 Klaus Dittrich <kladit@arcor.de>
194 * login/utmp_file.c (pututline_file): Replace call to dup2 with
195 libc internal symbol __dup2 to avoid access through the PLT.
197 2008-12-08 Ulrich Drepper <drepper@redhat.com>
200 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
201 available only for __USE_GNU.
203 * inet/Makefile (tests): Add tst-getni2.
204 * inet/tst-getni2.c: New file.
207 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
208 NULL when NI_NAMEREQD is set.
209 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
210 * inet/Makefile (tests): Add tst-getni1.
211 * inet/tst-getni1.c: New file.
213 2008-12-03 Petr Baudis <pasky@suse.cz>
216 * nscd/connections.c (invalidate_cache): Use prune_run_lock
217 instead of prune_lock.
218 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
219 * nscd/nscd.h (database_dyn): Add prune_run_cache.
221 2008-12-07 Ulrich Drepper <drepper@redhat.com>
223 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
226 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
229 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
230 after reading name server list.
233 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
234 handling for host name aliases.
236 2008-11-24 Arkadiusz MiĆkiewicz <arekm@maven.pl>
238 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
239 instead of doing things manually.
241 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
243 * posix/regex_internal.h (build_wcs_upper_buffer):
244 Return type is reg_error_t.
246 2008-12-05 Ulrich Drepper <drepper@redhat.com>
248 * posix/globtest.sh: Use mktemp to create temporary file and
251 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
253 (__CPU_CLR_S): Likewise.
254 (__CPU_ISSET_S): Likewise.
256 2008-12-05 Joseph Myers <joseph@codesourcery.com>
257 Ulrich Drepper <drepper@redhat.com>
259 * scripts/firstversion.awk: Use custom comparison function to compare
261 * scripts/versions.awk: Use sort invocation which can handle
262 multi-digit sub-version numbers.
264 2008-12-04 Ulrich Drepper <drepper@redhat.com>
266 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
267 * locale/iso-639.def: Add Chhattisgarhi entry.
269 2008-12-02 Ulrich Drepper <drepper@redhat.com>
271 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
273 (_nss_dns_gethostbyname4_r): Likewise.
274 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
275 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
276 gethostbyname4_r, we don't have a separate IPv6 status, so copy
277 the no_data variable.
279 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
280 information at the correct index.
282 * socket/sys/socket.h: Declare accept4.
283 * socket/accept4.c: New file.
284 * sysdeps/unix/sysv/linux/accept4.c: New file.
285 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
286 * socket/Makefile (routines): Add accept4.
287 * socket/Versions: Export accept4 with version GLIBC_2.10.
288 * socket/paccept.c: Removed.
289 * sysdeps/unix/sysv/linux/paccept.c: Removed.
290 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
291 * Versions.def: Define GLIBC_2.10 for libc.
292 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
294 * nscd/connections.c: Use accept4.
296 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
298 2008-12-01 Ulrich Drepper <drepper@redhat.com>
300 * resolv/res_send.c (send_dg): Create sockets with non-blocking
303 * stdlib/setenv.c (unsetenv): Don't search environment if it does
305 * stdlib/Makefile (tests): Add tst-unsetenv1.
306 * stdlib/tst-unsetenv1.c: New file.
308 2008-11-29 Ulrich Drepper <drepper@redhat.com>
310 * login/utmp_file.c (file_writable): New variable.
311 (setutent_file): Don't try to open file for writing.
312 (pututline_file): Before writing, make descriptor writable if
315 2008-11-26 Ulrich Drepper <drepper@redhat.com>
317 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
318 to IPv4 or IPv6 if an interface has been found.
320 2008-11-26 Roland McGrath <roland@redhat.com>
322 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
323 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
325 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
326 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
327 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
329 * elf/elf.h (NT_386_IOPERM): New macro.
330 (NT_PPC_VSX): New macro.
332 2008-11-25 Roland McGrath <roland@redhat.com>
334 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
335 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
336 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
337 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
338 Subdirectories moved to ports repository.
339 * configure.in (base_machine): Remove alpha case.
341 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
343 * sysdeps/mach/strerror_l.c: New file.
345 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
348 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
349 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
351 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
352 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
353 (relax_fenv_state): Same as above.
354 (FPSCR_29): Reserve bit in ISA 2.05.
355 (FPSCR_NI): Provide define for compat.
356 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
358 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
360 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
361 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
362 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
363 access to hwcap to account for hwcap size increase to uint64_t.
364 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
367 (*setcontext): Likewise.
368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
373 (*setcontext): dynamically select mtfsf insn based on
374 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
375 increase to uint64_t.
376 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
377 (*swapcontext): dynamically select mtfsf insn based on
378 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
379 increase to uint64_t.
380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
384 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
385 (*setcontext): dynamically select mtfsf insn based on
387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
388 (*swapcontext): dynamically select mtfsf insn based on
391 2008-11-13 Ulrich Drepper <drepper@redhat.com>
393 * version.h: Bump for 2.9 release.
394 * include/features.h (__GLIBC_MINOR__): Bump to 9.
397 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
398 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
401 2008-11-11 Ulrich Drepper <drepper@redhat.com>
404 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
405 unknown request types for now.
407 2008-11-11 Roland McGrath <roland@redhat.com>
409 * sysdeps/x86_64/configure: New file.
411 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
412 * configure: Regenerated.
414 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
416 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
417 correct instruction to remove the stack frame.
419 2008-11-03 Michael Matz <matz@suse.de>
421 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
422 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
424 2008-11-07 Jakub Jelinek <jakub@redhat.com>
426 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
429 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
430 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
431 of the thread variable instead of void *.
432 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
433 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
434 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
435 __libc_tsd_define arguments.
436 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
437 __libc_tsd_address arguments. Remove union hack.
438 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
439 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
440 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
441 Adjust __libc_tsd_{set,get} arguments.
442 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
443 __libc_tsd_define arguments.
444 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
446 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
447 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
448 (LOCALE): Adjust __libc_tsd_define arguments.
449 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
451 (LOCALE): Adjust __libc_tsd_define arguments.
452 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
454 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
457 2008-11-02 Ulrich Drepper <drepper@redhat.com>
459 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
460 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
462 2008-11-01 Ulrich Drepper <drepper@redhat.com>
465 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
467 2008-10-24 Joseph Myers <joseph@codesourcery.com>
468 Ulrich Drepper <drepper@redhat.com>
470 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
471 definition for GCC 3.1 and later.
473 2008-10-31 Jakub Jelinek <jakub@redhat.com>
475 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
476 refetch dtv, as it might have changed.
477 * elf/Makefile: Add rules to build and run tst-tls18.
478 * elf/tst-tls18.c: New test.
479 * elf/tst-tlsmod18a.c: New file.
481 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
484 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
486 2008-10-31 Ulrich Drepper <drepper@redhat.com>
489 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
492 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
493 Fix length of copy operation.
495 2008-10-02 Pierre Habouzit <madcoder@debian.org>
497 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
498 and fix its calling convention.
500 2008-10-07 Andreas Schwab <schwab@suse.de>
503 * resolv/res_send.c (send_vc): Fix last change.
504 (send_dg): Align here as well.
506 2008-10-31 Ulrich Drepper <drepper@redhat.com>
508 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
509 return value in case rlimit is RLIM_INFINITY.
512 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
514 * resource/Makefile (tests): Add bug-ulimit1.
515 * resource/bug-ulimit1.c: New file.
518 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
519 without dot. Properly terminate the string with a null byte.
520 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
523 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
525 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
529 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
531 2008-10-30 Ulrich Drepper <drepper@redhat.com>
533 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
534 abort if there is no initgroups_dyn function.
536 * resolv/res_send.c (send_dg): On timeout, only return nonzero
537 result if any of the queries really provided an answer.
539 2008-10-28 Ulrich Drepper <drepper@redhat.com>
541 * po/lt.po: Update from translation team.
543 2008-10-26 Ulrich Drepper <drepper@redhat.com>
545 * po/id.po: Update from translation team.
547 2008-10-24 Ulrich Drepper <drepper@redhat.com>
549 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
550 Fix tests for existence of second reply.
552 2008-10-23 Ulrich Drepper <drepper@redhat.com>
554 * po/id.po: New file.
555 Contributed by the Indonesian translation team.
557 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
559 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
562 2008-10-17 Jakub Jelinek <jakub@redhat.com>
564 * elf/Makefile: Add rules to build and run tst-tls17.
565 * elf/tst-tls17.c: New test.
566 * elf/tst-tlsmod17a.c: New file.
567 * elf/tst-tlsmod17b.c: Likewise.
569 2008-10-17 Ulrich Drepper <drepper@redhat.com>
571 * stdlib/divmod_1.c: Use correct type for dummy variable.
572 * stdlib/mod_1.c: Likewise.
574 2008-10-16 Ulrich Drepper <drepper@redhat.com>
576 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
578 2008-10-16 Jakub Jelinek <jakub@redhat.com>
580 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
581 __nonnull order for C++.
582 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
583 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
585 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
587 * stdlib/longlong.h: Update from GCC.
589 2008-10-09 Jakub Jelinek <jakub@redhat.com>
590 David S. Miller <davem@davemloft.net>
592 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
593 make sure any registers used with 64-bit 'branch-on-register'
594 instructions have their top 32-bits clear.
595 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
596 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
598 2008-09-18 Andreas Schwab <schwab@suse.de>
601 * resolv/res_send.c (send_vc): Fix use of unaligned address.
602 Properly handle partial reads.
604 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
606 * elf/elf.h (STO_MIPS_PLT): New.
608 (R_MIPS_JUMP_SLOT): New.
609 (R_MIPS_NUM): Redefine to 128.
610 (DT_MIPS_PLTGOT): New.
611 (DT_MIPS_RWPLT): New.
612 (DT_MIPS_NUM): Redefine to 0x35.
614 2008-10-01 Ulrich Drepper <drepper@redhat.com>
616 * timezone/africa: Update from tzdata2008f.
617 * timezone/asia: Likewise.
618 * timezone/australasia: Likewise.
619 * timezone/europe: Likewise.
620 * timezone/leapseconds: Likewise.
621 * timezone/northamerica: Likewise.
622 * timezone/southamerica: Likewise.
623 * timezone/zone.tab: Likewise.
625 2008-09-30 Ulrich Drepper <drepper@redhat.com>
627 * nscd/connections.c: Disable use of paccept for now.
629 2008-09-29 Ulrich Drepper <drepper@redhat.com>
631 * socket/Versions: Remove paccept export for GLIBC_2.9.
632 * socket/Makefile (routines): Remove paccept.
633 * socket/sys/socket.h: Remove paccept declaration.
635 * po/sv.po: Update from translation team.
637 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
639 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
640 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
642 2008-09-16 Ulrich Drepper <drepper@redhat.com>
644 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
645 Patch by Olivier Fourdan <ofourdan@redhat.com>.
647 2008-09-15 Ulrich Drepper <drepper@redhat.com>
649 * sunrpc/rpc/svc.h: Declare svcfd_create.
650 Patch by Michael Solberg <msolberg@redhat.com>.
652 2008-09-12 Flavio Leitner <fleitner@redhat.com>
653 Ulrich Drepper <drepper@redhat.com>
655 * malloc/malloc.c (public_vALLOc): Try other arenas in case
657 (public_pVALLOc): Likewise.
659 2008-09-02 Andreas Jaeger <aj@suse.de>
661 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
664 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
667 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
669 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
671 * Makefile (check-data): Check data directory in add-ons.
672 * elf/Makefile (check-data): Likewise.
674 2008-08-18 Roland McGrath <roland@redhat.com>
676 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
677 * configure: Regenerated.
678 * config.make.in (cflags-cpu): New substituted variable.
679 (with-cpu): Variable removed.
680 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
682 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
685 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
686 __signbitl definition and __LONG_DOUBLE_128__ guard from:
687 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
688 redundant. Functions which call floating point assembler operations
689 should go into a sysdeps powerpc/fpu directory.
691 2008-08-15 Ulrich Drepper <drepper@redhat.com>
693 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
694 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
696 2008-08-14 Ulrich Drepper <drepper@redhat.com>
698 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
700 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
701 change related to AT_EXECFN. We cannot use that string.
702 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
704 * elf/dl-support.c: Remove _dl_execfn variable.
705 (_dl_aux_init): Remove handling of AT_EXECFN.
706 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
707 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
709 2008-08-13 Ulrich Drepper <drepper@redhat.com>
712 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
713 byte gets added to writes and seeks from the end use the length of
714 the buffer and not the currently terminating NUL byte.
717 * login/utmp_file.c (getutent_r_file): Take additional parameter.
718 Set to true if locking failed.
719 (getutid_r_file): Adjust caller.
720 (pututline_file): Likewise. Return NULL in this case.
721 Patch mostly by halesh.s@gmail.com.
723 2008-08-12 Ulrich Drepper <drepper@redhat.com>
726 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
728 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
730 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
733 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
734 macro since it is now available in elf/dynamic-link.h.
736 2008-08-12 Roland McGrath <roland@frob.com>
738 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
739 in case used outside of libc.
740 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
742 2008-08-11 Ulrich Drepper <drepper@redhat.com>
744 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
745 directly instead of going through dn_comp.
747 2008-08-11 Aurelien Jarno <aurel32@debian.org>
749 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
752 2008-08-07 Ulrich Drepper <drepper@redhat.com>
755 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
756 (IPV6_PMTUDISC_PROBE): Likewise.
758 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
761 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
763 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
764 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
767 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
768 Added the members 'vsx' and 'arch_2_06'.
769 (_dl_powerpc_platforms): Add the member 'power7'.
770 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
771 to reflect the changes required by VSX and ISA 2.06.
772 Modify _DL_PLATFORMS_COUNT to reflect the addition of
774 Defined PPC_PLATFORM_POWER7.
775 (_dl_string_platform): Add support for POWER7.
776 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
777 capability and ISA 2.06.
779 2008-08-07 Ulrich Drepper <drepper@redhat.com>
782 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
783 macro to detect use of 128 bit long double.
784 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
786 2008-08-05 Ulrich Drepper <drepper@redhat.com>
788 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
791 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
793 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
794 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
796 2008-08-03 Ulrich Drepper <drepper@redhat.com>
798 * nscd/connections.c (main_loop_poll): Pass a buffer which is
799 guaranteed to be large enough to read inotify event. Ignore
800 EAGAIN error. Better error message. Add branch predicition.
801 (main_loop_epoll): Likewise.
803 2008-08-02 Roland McGrath <roland@frob.com>
805 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
808 2008-08-02 Ulrich Drepper <drepper@redhat.com>
810 * manual/arith.texi: Avoid @strong{Note:}.
811 * manual/creature.texi: Likewise.
812 * manual/filesys.texi: Likewise.
813 * manual/math.texi: Likewise.
814 * manual/memory.texi: Likewise.
815 * manual/resource.texi: Likewise.
816 * manual/syslog.texi: Likewise.
817 * manual/time.texi: Likewise.
819 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
822 2008-08-01 Ulrich Drepper <drepper@redhat.com>
824 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
825 new epoll_create1 interface.
826 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
827 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
828 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
830 * include/arpa/nameser.h (NS_GET16): Use const pointer.
831 (NS_GET32): Likewise.
833 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
836 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
837 use the AT_EXECFN value if it is no absolute path.
838 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
841 * Versions.def: Add GLIBC_2.9 to libresolv.
842 * include/resolv.h: Remove hidden proto declarations for __ns_*
843 functions. Add them for __dn_count_labels and __p_secstodate.
844 * include/arpa/nameser.h: Add a number of hidden proto declarations.
845 Define ns_msg_getflags macro here.
846 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
848 * resolv/Versions: Export functions from <arpa/nameser.h> from
849 libresolv in version GLIBC_2.9.
850 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
852 * resolv/ns_netint.c: Likewise.
853 * resolv/ns_parse.c: Likewise.
854 * resolv/ns_print.c: Likewise.
855 * resolv/ns_samedomain.c: Likewise.
856 * resolv/ns_ttl.c: Likewise.
857 * resolv/arpa/nameser_compat.h: Likewise.
858 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
860 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
862 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
863 __ns_get32 instead of ns_get16 and ns_get32 respectively.
864 (gaih_getanswer_slice): Likewise.
865 * resolv/Makefile (libresolv-routines): Add ns_date.
866 * resolv/ns_date.c: New file.
868 * elf/Makefile (check-localplt.out): Also check libresolv and
871 2008-07-31 Ulrich Drepper <drepper@redhat.com>
873 * sysdeps/unix/sysv/linux/kernel-features.h: Define
876 2008-07-30 Ulrich Drepper <drepper@redhat.com>
878 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
879 buffer passed to NSS functions.
881 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
883 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
886 * misc/syslog.c (openlog_internal): Fix compile problem.
888 2008-07-28 Roland McGrath <roland@redhat.com>
890 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
892 2008-07-28 Ulrich Drepper <drepper@redhat.com>
894 * io/ftw.c (add_object): Remove inline to avoid warning.
896 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
898 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
899 Use it instead of locally defined resplen2 variable.
900 (res_nsend): Adjust for __libc_res_nsend interface change.
901 (send_vc): Initialize *resplen2 if necessary. Read length of
902 package into an appropriately aligned variable. Store converted length
903 in new variable and use it appropriately.
904 Add branch prediction help.
905 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
906 and pass it on to __libc_res_nsend. Adjust all callers.
907 (__libc_res_nsearch): Likewise.
908 (__libc_res_nqeurydomain): Likewise.
909 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
911 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
912 Define resplen2 variable and pass it to __libc_res_nsearch and then
914 (getanswer_r): In case of incorrect DNS data don't overread buffer.
915 Add branch prediction.
916 (gaih_getanswer_slice): Likewise. Check for invalid data types.
917 (gaih_getanswer): Don't decode second slice if first one failed due
918 to a too small buffer. Don't let not found status of second
919 decoder shadow results of the first.
920 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
921 and __libc_res_nquery interface changes
922 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
923 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
924 __libc_res_nsearch, and __libc_res_nsend.
925 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
927 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
928 __libc_res_nsearch interface changes.
930 2008-07-27 Ulrich Drepper <drepper@redhat.com>
932 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
934 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
935 file descriptors with close-on-exec set.
936 (exec_comm_child): Fix the case where the write end of the pipe is
937 STDOUT_FILENO already. In case it is, clear close-on-exec.
939 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
940 * io/pipe2.c: Likewise.
941 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
942 instead of __ASSUME_PACCEPT.
943 * include/unistd.h: Declare __have_pipe2.
944 * libio/iopopen.c: Implement "e" flag.
945 * libio/Makefile (tests): Add tst-popen1.
946 * libio/tst-popen1.c: New file.
948 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
949 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
951 2008-07-26 Ulrich Drepper <drepper@redhat.com>
954 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
955 success call of _IO_SEEKOFF or calls which failed because the
956 descriptor is for a pipe.
958 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
961 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
963 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
964 F_SETFD use if we know fopen set the flag.
966 * login/utmp_file.c (setutent_file): Minor optimization in case
967 O_CLOEXEC is available.
969 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
971 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
972 * elf/Makefile: Use pie-ccflag variable.
973 * nscd/Makefile: Likewise.
974 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
976 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
979 * Versions.def: Add GLIBC_2.9 version tag for libutil.
980 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
981 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
982 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
983 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
984 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
985 utmp32, utmpx32 and login32.
986 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
987 versions of struct utmp functions to libc and libutil.
988 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
989 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
990 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
991 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
992 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
993 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
994 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
995 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
996 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
997 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
998 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
999 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1000 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1001 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1002 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1003 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1004 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1005 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1006 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1007 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1008 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1009 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1011 2008-07-26 Ulrich Drepper <drepper@redhat.com>
1013 * scripts/gen-as-const.awk: Generate more widely usable code by
1014 using 64-bit arithmetic.
1016 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1017 the same treatment as narrow output code in last patch.
1019 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1022 * elf/dl-load.c (local_strdup): Remove inline.
1023 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1024 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1027 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1029 2008-07-25 Ulrich Drepper <drepper@redhat.com>
1031 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1032 the new syscalls, too.
1034 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1035 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1038 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1039 parameter for end of buffer. If temporary copy is too large use
1041 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1043 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
1044 string rewrite when allocating buffer.
1046 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1049 * nscd/connections.c (nscd_init): Clean up fcntl call.
1051 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1052 SOCK_NONBLOCK if possible.
1054 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1055 SOCK_CLOEXEC if available.
1057 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1058 __libc_clntudp_bufcreate_internal.
1059 * include/sys/socket.h: Declare __have_sock_cloexec.
1060 * socket/Makefile (aux): Add have_sock_cloexec.
1061 * socket/have_sock_cloexec.c: New file.
1062 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1063 __libc_clntudp_bufcreate.
1064 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1065 which takes an additional parameter. Create socket with non-blocking
1066 mode and close-on-exec flag set, if wanted.
1067 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1068 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1069 instead of clntudp_create. The socket has already the close-on-exec
1070 flag set if SOCK_CLOEXEC is defined.
1072 2008-07-24 Ulrich Drepper <drepper@redhat.com>
1074 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1075 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1077 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1078 non-blocking mode by using socket, paccept, and inotify_init1.
1080 * Versions.def (glibc): Add GLIBC_2.9.
1081 * io/Makefile (routines): Add dup3 and pipe2.
1082 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1083 * io/dup3.c: New file.
1084 * io/pipe2.c: New file.
1085 * posix/unistd.h: Declare dup3 and pipe2.
1086 * socket/Makefile (routines): Add paccept.
1087 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1088 * socket/paccept.c: New file.
1089 * socket/sys/socket.h: Declare paccept.
1090 * sysdeps/unix/syscalls.list: Add entry for dup3.
1091 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1092 epoll_create2 and inotify_init1.
1093 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1094 * sysdeps/unix/sysv/linux/paccept.c: New file.
1095 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1097 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1098 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1099 inotify_init1, and pipe2 entries.
1100 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1101 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1102 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1103 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1104 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1105 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1107 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1108 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1109 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1110 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1111 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1112 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1113 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1114 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1115 EPOLL_NONBLOCK. Declare epoll_create2.
1116 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1118 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1119 IN_NONBLOCK. Declare inotify_init1.
1120 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1122 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1125 * elf/elf.h: Define AT_EXECFN.
1126 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1128 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1129 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
1130 if __ASSUME_AT_EXECFN is defined.
1131 (_dl_aux_init): Handle AT_EXECFN.
1132 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1134 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1135 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1136 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1137 _dl_execfn if available and avoid compatibility code if
1138 __ASSUME_AT_EXECFN is defined.
1140 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1141 _dl_discover_osversion only for older kernels.
1143 2008-07-22 Roland McGrath <roland@frob.com>
1145 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1147 2008-07-21 Roland McGrath <roland@frob.com>
1149 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1150 returned too much data out of line.
1152 2008-07-20 Ulrich Drepper <drepper@redhat.com>
1154 * locale/setlocale.c (setname): Remove inline to avoid compiler
1158 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1160 2008-07-15 Ulrich Drepper <drepper@redhat.com>
1162 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1163 doesn't manage to write anything, fail.
1165 * malloc/hooks.c (__malloc_check_init): Remove printf.
1167 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1169 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1171 2008-07-12 Ulrich Drepper <drepper@redhat.com>
1173 * nscd/connections.c (main_loop_poll): Fix handling of read errors
1175 (main_loop_epoll): Likewise.
1177 2008-07-09 Ulrich Drepper <drepper@redhat.com>
1179 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1181 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1182 if DEBUG is defined.
1184 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1185 query. Adjust buffer size computation for padding.
1187 2008-07-08 Ulrich Drepper <drepper@redhat.com>
1189 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1190 * stdio-common/tst-setvbuf1.c: New file.
1191 * stdio-common/tst-setvbuf1.expect: New file.
1194 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1195 when selecting fully-buffered stream.
1196 Patch by Wang Xin <wxinee@gmail.com>.
1198 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
1200 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1201 (__open_2): New function.
1202 (__open64_2): New alias to __open_2.
1203 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1204 (__openat_2): New function.
1205 (__openat64_2): New alias to __openat_2.
1207 2008-07-06 Ulrich Drepper <drepper@redhat.com>
1210 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1212 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1214 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1215 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1216 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1218 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1219 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1220 * sysdeps/mach/hurd/send.c (__send): Likewise.
1221 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1222 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1224 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1226 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1227 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1228 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1229 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1230 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1231 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1233 2008-06-27 Ulrich Drepper <drepper@redhat.com>
1236 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1238 Patch by Petr Baudis.
1240 2008-06-26 Ulrich Drepper <drepper@redhat.com>
1242 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1243 Patch by Peter Jones <pjones@redhat.com>.
1245 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1248 * stdlib/canonicalize.c (__realpath): readlink can write too much
1249 into the buffer on platforms without PATH_MAX.
1251 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1254 * posix/tst-regex.c (main): Rename to...
1255 (do_test): ... this. Remove cmdline option processing.
1257 (TEST_FUNCTION): Define.
1258 (CMDLINE_OPTIONS): Define.
1260 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1263 * configure.in: Add -Werror to -fstack-protector test to catch
1264 unsupported architectures.
1265 Patch by Gilles Esponasse <g.esp@free.fr>.
1267 2008-06-17 Joseph Myers <joseph@codesourcery.com>
1269 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1270 getcontext returns ENOSYS.
1272 2008-06-18 Ulrich Drepper <drepper@redhat.com>
1274 * nscd/connections.c (main_loop_poll): Fix test for read error.
1275 (main_loop_epoll): Likewise.
1277 2008-06-13 Ulrich Drepper <drepper@redhat.com>
1279 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1280 better place so it is not called when nscd is used.
1282 * nscd/connections.c: Also recognize and handle changes to the
1283 resolver configuration file.
1285 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1287 * time/strftime.c: Pass reference to tzset_called around to handle
1291 * time/strftime.c (__strftime_internal): Call tzset() only
1292 when printing timezone-dependent values.
1293 Based on a patch by Petr Baudis <pasky@suse.cz>.
1295 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1296 unconditionally use second gaih_getanswer_slice result.
1298 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1299 (getaddrinfo): RES must always be non-NULL.
1301 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1303 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1305 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1306 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1308 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1311 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1313 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1315 * nscd/connections.c (inotify_fd): New variable.
1316 (nscd_init): Try to open an inotify descriptor.
1317 If successful, watch files for databases using inotify instead of
1318 having prune threads stat the files.
1319 (nscd_run_prune): Recognize clear_cache flag being set and call
1320 prune_cache appropriately.
1321 (main_loop_poll): Add inotify descriptor to wait set and handle the
1323 (main_loop_epoll): Likewise.
1324 * nscd/cache.c (prune_cache): Don't stat files for databases if
1326 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1327 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1329 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1330 fixed-size portion of the record.
1331 * nscd/servicescache.c (cache_addserv): Likewise.
1332 * nscd/pwdcache.c (cache_addpw): Likewise.
1333 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1335 2008-06-11 Ulrich Drepper <drepper@redhat.com>
1337 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1338 out we don't use uninitialized memory.
1340 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1343 2008-06-10 Ulrich Drepper <drepper@redhat.com>
1345 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1346 ignore T_DNAME messages.
1347 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1349 2008-06-05 Jakub Jelinek <jakub@redhat.com>
1351 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1352 Avoid segfault if first GETC returns eof/'\0'/'\n'.
1354 2008-06-03 Jakub Jelinek <jakub@redhat.com>
1356 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1357 instead of portstr to nscd_getserv_r. Patch by
1358 Roman Kagan <rkagan@mail.ru>.
1360 2008-05-26 Jim Meyering <meyering@redhat.com>
1362 Remove more useless "if" tests before "free".
1363 * include/inline-hashtab.h (htab_delete): Likewise.
1364 * libio/freopen.c (freopen): Likewise.
1365 * libio/freopen64.c (freopen64): Likewise.
1366 * locale/programs/ld-collate.c (collate_read): Likewise.
1367 * misc/fstab.c (libc_freeres_fn): Likewise.
1368 * posix/glob.c (globfree): Likewise.
1370 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1372 * string/Makefile (strop-tests): Add memmem.
1373 * string/test-memmem.c: New file.
1374 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1375 (test_init): Size buf1 according to BUF1PAGES.
1377 2008-05-24 Jakub Jelinek <jakub@redhat.com>
1379 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1380 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1381 (CFLAGS-scanf17.c): New.
1382 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1383 * stdio-common/scanf15.c (main): Likewise.
1384 * stdio-common/scanf16.c: New file.
1385 * stdio-common/scanf17.c: New file.
1387 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1389 * resolv/res_send.c (send_dg): If we already have one of two
1390 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1391 use the one answer insted of failing.
1393 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
1395 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1396 being executed on PowerPC as the expected result exceeds IBM
1397 long double 128 __LDBL_MAX__.
1399 2008-05-21 Roland McGrath <roland@redhat.com>
1401 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1403 * Makefile (check-data): Use $(abi-name) before other guesses.
1404 Look in $(add-ons) dirs before scripts/data/.
1405 * elf/Makefile (check-data): Likewise.
1407 * scripts/soversions.awk: Grok ABI line.
1408 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1409 Emit definition for abi-name variable.
1411 2008-05-21 Ulrich Drepper <drepper@redhat.com>
1413 * string/endian.h: Define new fixed-size hto* and *toh macros only
1416 * iconvdata/Depend: Add localedata.
1418 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1420 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1422 2008-05-08 David S. Miller <davem@davemloft.net>
1424 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1426 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1427 (__SYSCALL_CLOBBERS): Remove %g* registers.
1428 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1429 (__SYSCALL_CLOBBERS): Likewise.
1430 * scripts/data/localplt-sparc-linux-gnu.data: New file.
1431 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1433 2008-05-21 Jakub Jelinek <jakub@redhat.com>
1435 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1436 (CALL_ERRNO_LOCATION): Define.
1437 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1438 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1439 (CALL_ERRNO_LOCATION): Define.
1440 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1441 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1442 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1444 2008-05-20 Ulrich Drepper <drepper@redhat.com>
1446 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1449 2008-05-20 Jakub Jelinek <jakub@redhat.com>
1451 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1452 (FIRST_FRAME_POINTER): Define.
1454 2008-05-09 David S. Miller <davem@davemloft.net>
1456 * sysdeps/sparc/sparc64/backtrace.c: New file.
1458 2008-05-14 David S. Miller <davem@davemloft.net>
1460 * sysdeps/sparc/machine-gmon.h: New file.
1461 * sysdeps/sparc/sparc-mcount.S: Likewise.
1462 * sysdeps/sparc/Makefile: Add sparc-mcount target to
1463 sysdep_routines in gmon directory.
1465 2008-05-19 Jakub Jelinek <jakub@redhat.com>
1467 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1469 2008-05-19 Ulrich Drepper <drepper@redhat.com>
1471 * resolv/res_query.c (__libc_res_nquery): In case one of two
1472 answer was too short don't try to read that answer's header.
1474 * resolv/res_send.c (send_dg): In case of timeout and there are
1475 two queries and one has been answered, return value indicating
1478 2008-05-18 Ulrich Drepper <drepper@redhat.com>
1480 * nscd/cache.c (cache_add): Take additional parameter specifying
1481 whether this is in response of a cache refill. Check alignment
1482 of package data. Revamp waking of pruning thread.
1483 (prune_cache): Small optimization.
1484 * nscd/nscd.h: Adjust cache_add prototypes.
1485 * nscd/aicache.c: Adjust cache_add calls.
1486 * nscd/grpcache.c: Likewise.
1487 * nscd/hstcache.c: Likewise.
1488 * nscd/initgrcache.c: Likewise.
1489 * nscd/pwdcache.c: Likewise.
1490 * nscd/servicescache.c: Likewise.
1491 * nscd/connections.c (restart): Really disable cache use before
1492 exec attempt. If it fails, reenable cache.
1493 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
1494 time to max to be able to notice concurrent cache additions. Unlock
1495 prune_lock while performing gc. Afterwards compute wakeup time with
1496 current wakeup_time value in mind.
1498 2008-05-17 Ulrich Drepper <drepper@redhat.com>
1500 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1502 * nscd/mem.c (gc): Correctly determine highest used array element
1505 * nscd/mem.c (markrange): Add assert to check entries are all
1506 aligned. Small cleanup in bitmap use.
1508 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1509 blockoff of type nscd_ssize_t.
1510 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1511 (mempoll_alloc): Record block offset and not address.
1513 * nscd/mem.c (gc): Fix test for stack overuse.
1515 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1518 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1519 entry is available, believe it.
1521 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1522 no answers return NSS_STATUS_NOTFOUND.
1523 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1524 buffer does not have any content.
1526 2008-05-16 Ulrich Drepper <drepper@redhat.com>
1528 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1530 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1531 lookup, don't assign canon unconditionally.
1533 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1535 * string/Makefile (distribute): Add str-two-way.h.
1537 2008-03-29 Eric Blake <ebb9@byu.net>
1539 Rewrite string searches to O(n) rather than O(n^2).
1540 * string/str-two-way.h: New file. For linear fixed-allocation
1542 * string/memmem.c: New implementation.
1543 * string/strstr.c: New implementation.
1544 * string/strcasestr.c: New implementation.
1546 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
1548 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1550 (calc_first): Initialize constraint field.
1551 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1552 Use search_duplicated_node to avoid loops. Fix grammar.
1553 (duplicate_node): Merge constraint field for all node types.
1554 (calc_eclosure_iter): Look at constraint field for all node types.
1555 * posix/regex_internal.c (create_cd_newstate): Don't look at
1558 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1561 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1564 * string/endian.h: Add macros for fixed-size endian conversion.
1565 * bits/byteswap.h: Allow inclusion from <endian.h>.
1566 * sysdeps/i386/bits/byteswap.h: Likewise.
1567 * sysdeps/ia64/bits/byteswap.h: Likewise.
1568 * sysdeps/s390/bits/byteswap.h: Likewise.
1569 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1570 * string/Makefile (tests): Add tst-endian.
1571 * string/tst-endian.c: New file.
1573 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1574 Patch by Reuben Thomas.
1576 2008-05-14 Joseph Myers <joseph@codesourcery.com>
1578 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1580 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1582 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1585 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1587 (BODY for __gconv_transform_internal_ascii): Likewise.
1590 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1591 to be treated like link-local addresses.
1592 (match_prefix): Don't treat IPv4 loopback address special when
1593 converting to v4 mapped addressed.
1595 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1597 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1598 * posix/tst-rfc3484-2.c: Likewise.
1599 * posix/tst-rfc3484-3.c: Likewise.
1601 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1604 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1606 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1608 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1610 2008-05-13 Ulrich Drepper <drepper@redhat.com>
1612 * po/lt.po: New file. From Lituanian translation team.
1614 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
1616 Introduce TLS descriptors for i386 and x86_64.
1617 * include/inline-hashtab.h: New file, copied from 2005's
1618 libiberty, with fix for memory leak imported afterwards by
1619 Glauber de Oliveira Costa.
1620 * elf/tlsdeschtab.h: New file.
1621 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1622 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1623 (CHECK_STATIC_TLS): Move to...
1624 * elf/dynamic-link.h: ... this file.
1625 (TRY_STATIC_TLS): New macro.
1626 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1627 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1628 R_386_TLS_DESC): Define.
1629 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1631 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1632 R_X86_64_TLSDESC): Define.
1633 (R_386_NUM, R_X86_64_NUM): Adjust.
1634 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1635 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1636 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1637 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1638 release tlsdesc_table.
1639 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1640 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1641 (elf_machine_rel): Handle R_386_TLS_DESC.
1642 (elf_machine_rela): Likewise.
1643 (elf_machine_lazy_rel): Likewise.
1644 (elf_machine_lazy_rela): Likewise.
1645 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1646 * sysdeps/i386/dl-tlsdesc.S: New file.
1647 * sysdeps/i386/dl-tlsdesc.h: New file.
1648 * sysdeps/i386/tlsdesc.c: New file.
1649 * sysdeps/i386/tlsdesc.sym: New file.
1650 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1652 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1653 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1654 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1655 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1656 release tlsdesc_table.
1657 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1658 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1659 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1660 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1661 (elf_machine_rela): Likewise.
1662 (elf_machine_lazy_rel): Likewise.
1663 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1664 (__tls_get_addr): Do not declare for non-shared compiles.
1665 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1666 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1667 * sysdeps/x86_64/tlsdesc.c: New file.
1668 * sysdeps/x86_64/tlsdesc.sym: New file.
1669 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1670 tlsdesc_table for both 32- and 64-bit structs.
1672 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1674 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1675 its own function. This reduces the frame setup costs and more.
1677 2008-02-11 Joseph Myers <joseph@codesourcery.com>
1680 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1681 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1683 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1685 * io/openat.c (__openat_2): Also pass fd to __openat.
1686 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1687 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1689 * string/tester.c (test_memcmp): Add a few more tests.
1690 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1692 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1694 * nscd/cache.c (cache_add): Before returning with failure and this
1695 is the first use of the record, mark it as unusable.
1696 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1697 reporting a failure.
1698 * nscd/grpcache.c: Likewise
1699 * nscd/hstcache.c: Likewise.
1700 * nscd/initgrcache.c: Likewise.
1701 * nscd/pwdcache.c: Likewise.
1702 * nscd/servicescache.c: Likewise.
1704 2008-05-10 Roland McGrath <roland@redhat.com>
1707 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1709 2008-05-08 David S. Miller <davem@davemloft.net>
1711 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1713 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1714 (__ieee754_y0l): Likewise.
1715 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1716 (__ieee754_y1l): Likewise.
1717 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1718 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1719 frexpl and ldexpl. math_private.h provides them and the latter
1721 (__log1pl): Use __frexpl.
1723 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1725 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1727 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1728 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1729 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1730 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1732 (_nss_nis_gethostbyname4_r): New function.
1733 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1734 Change to also handle af==AF_UNSPEC.
1735 (get_tablename): New function. Use it to avoid duplication.
1736 (_nss_nisplus_gethostbyname4_r): New function.
1737 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1739 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1740 * nss/nss.h: Define struct gaih_addrtuple.
1741 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1743 (_nss_files_gethostbyname4_r): New function.
1744 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1745 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1747 * resolv/res_query.c (__libc_res_nquery): Take two additional
1748 parameters for second answer buffer. Handle type=T_UNSPEC to mean
1749 look up IPv4 and IPv6.
1751 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1752 for an additional query and answer buffer. Pass to send_vc and
1754 (send_vc): Send possibly two requests and receive two answers.
1755 (send_dg): Likewise.
1756 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1758 (_nss_dns_gethostbyname4_r): New function.
1759 (gaih_getanswer_slice): Likewise.
1760 (gaih_getanswer): Likewise.
1761 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1762 __libc_res_nquery call.
1763 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1764 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1765 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1768 2008-05-05 David S. Miller <davem@davemloft.net>
1770 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1771 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1773 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1775 Fix termios bit macros.
1776 Move *DLY definitions where they belong, in termios.h.
1777 Add *[0-3] definitions.
1778 Fixes confusion between VT and FF.
1779 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1780 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1781 are already defined to avoid collision with termios.h.
1782 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1783 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1784 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1785 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1786 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1787 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1788 VTDLY, VT0, VT1): New macros.
1789 [__USE_GNU] (OLCUC): Change value of macro.
1790 [__USE_XOPEN] (OFILL): New macro.
1791 [__USE_BSD] (CRTSCTS): Change value.
1792 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1793 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1794 (B7200, B14400, B28800, B76800): New macros.
1796 2008-05-01 David S. Miller <davem@davemloft.net>
1798 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1799 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1800 (gen-as-const-headers): Add it.
1801 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1802 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1803 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1804 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1806 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1807 six system call parameters.
1808 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1810 2008-04-30 Ulrich Drepper <drepper@redhat.com>
1812 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1814 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1815 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1817 2008-04-30 Jakub Jelinek <jakub@redhat.com>
1819 * stdlib/tst-setcontext.c: Include unistd.h.
1821 2008-04-25 David S. Miller <davem@davemloft.net>
1823 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1824 Pass "union semun" properly in to sys_ipc, it must be passed
1825 by value, not by reference.
1827 2008-04-22 Jakub Jelinek <jakub@redhat.com>
1829 * nscd/Makefile (nscd-cflags): Set back to -fpie.
1830 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1831 * nscd/connections.c (mem_in_flight): Likewise.
1833 * nscd/nscd.h (dbs): Make hidden.
1835 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1836 Avoid returning -1, return 0 instead.
1838 2008-04-19 Ulrich Drepper <drepper@redhat.com>
1840 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1842 2008-04-15 Ulrich Drepper <drepper@redhat.com>
1845 * sysdeps/unix/sysv/linux/times.c: New file.
1848 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1849 mem_in_flight_list variables. Add new parameter to mempool_alloc
1851 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1852 appropriate mem_in_flight element.
1853 (gc): Take allocations which have not yet been committed to the
1854 database into account.
1855 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1856 Reset mem_in_flight before returning.
1857 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1858 cue it up in mem_in_flight_list.
1859 * nscd/aicache.c: Adjust mempool_alloc call.
1860 * nscd/grpcache.c: Likewise.
1861 * nscd/hstcache.c: Likewise.
1862 * nscd/initgrcache.c: Likewise.
1863 * nscd/pwdcache.c: Likewise.
1864 * nscd/servicescache.c: Likewise.
1865 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1868 * nscd/connections.c (handle_request): Provide better error message
1869 in case SELinux forbids the service.
1871 * version.h (VERSION): Bump to 2.8.90.
1873 2008-04-17 Jakub Jelinek <jakub@redhat.com>
1875 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1877 2008-04-11 Ulrich Drepper <drepper@redhat.com>
1879 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1880 Also use for 32-bit.
1881 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1882 __nextafter instead of nextafter to avoid local PLT.
1883 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1884 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1886 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1888 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1890 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1891 <fenv_libc.h> instead of <fenv.h>.
1892 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1895 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1897 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1898 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1899 function from fegetexcept and make old name weak alias.
1900 * include/fenv.h: Declare __fegetexcept.
1901 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1903 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1904 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1906 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1907 instead of frexpl to avoid local PLT.
1908 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1909 ilogbl to avoid local PLT.
1910 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1911 instead of ldexpl to avoid local PLT.
1912 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1913 __roundl not roundl to avoid local PLT.
1914 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1915 local PLTs. Use __sincosl instead of separate sinl and cosl
1917 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1919 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1920 version for ppc64 to 2.4.21 since without it makecontext will fail.
1922 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1924 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1926 [__powerpc64__] (TLS_GD): Likewise.
1928 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1931 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1932 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1934 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1935 Likewise. Also account for when x is an odd number between 2^52
1937 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1938 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1939 * math/libm-test.inc (lround_test, llround_test): Added test cases to
1940 detect aforementioned erroneous conditions.
1942 2008-04-11 Jakub Jelinek <jakub@redhat.com>
1944 * configure.in: Check for -fno-section-anchors in addition to
1945 -fno-toplevel-reorder.
1947 2008-04-11 Ulrich Drepper <drepper@redhat.com>
1949 * include/features.h (__GLIBC_MINOR__): Bump to 8.
1951 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1952 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1953 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1954 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1955 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1956 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1958 2008-04-11 Jakub Jelinek <jakub@redhat.com>
1961 * time/era.c: Transform __libc_setlocale_lock into rwlock.
1962 * time/alt_digit.c: Likewise.
1963 * wcsmbs/wcsmbsload.c: Likewise.
1965 2008-04-10 Ulrich Drepper <drepper@redhat.com>
1967 * version.h (VERSION): Bump to 2.8.
1969 * timzeone/asia: Update from tzdata2008b.
1970 * timezone/backward: Likewise.
1971 * timezone/europe: Likewise.
1972 * timezone/northamerica: Likewise.
1973 * timezone/southamerica: Likewise.
1974 * timezone/iso3166.tab: Likewise.
1975 * timezone/leapseconds: Likewise.
1976 * timezone/zone.tab: Likewise.
1977 * timezone/private.h: Update from tzcode2008a.
1978 * timezone/zdump.c: Likewise.
1979 * timezone/zic.c: Likewise.
1981 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1984 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1985 Define additonal Data Cache Block instruction macros.
1986 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1987 Replace dcbst with dcbf and sync with sync/isync.
1989 2008-02-21 Alan Modra <amodra@bigpond.net.au>
1991 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1992 Always set ELF_RTYPE_CLASS_PLT.
1993 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1995 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
1997 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1998 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1999 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2000 For ISA 2.01 and later replace mftb with mfspr 268.
2002 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
2005 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2006 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2008 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
2011 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2012 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2013 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2014 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2016 2008-04-10 Jakub Jelinek <jakub@redhat.com>
2018 * stdlib/tst-makecontext.c (othervar): New variable.
2019 (cf): Test sign extending the argument to long.
2021 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
2023 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2024 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2025 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2026 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2027 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2028 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2029 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2031 2008-02-22 Alan Modra <amodra@bigpond.net.au>
2033 * elf/Makefile (tests): Substitute tests-vis-yes here.
2034 (tests-vis-yes): Delete.
2035 (modules-name, modules-vis-yes): Similarly.
2037 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
2040 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2041 Preserve sign in signgamp when x is zero.
2043 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
2045 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2046 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2047 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2048 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2049 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2050 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2052 2008-04-09 Ulrich Drepper <drepper@redhat.com>
2055 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2059 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2060 a reserved error value.
2062 * stdlib/tst-makecontext.c: Change parameter to cf to negative
2063 value to check for correct sign extension.
2066 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2067 Copy 64-bit parameter values even though this is not required in
2070 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2073 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
2075 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2078 2008-04-09 Jakub Jelinek <jakub@redhat.com>
2080 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2082 2008-04-09 Ulrich Drepper <drepper@redhat.com>
2085 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2086 in line-buffered stream failed.
2087 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2089 2008-04-08 Ulrich Drepper <drepper@redhat.com>
2092 * scripts/abi-versions.awk: If the version specified by
2093 --enable-oldest-abi is older than the first version for this
2094 architecture, use the default version.
2096 * locale/programs/ld-collate.c (collate_read): Ignore script lines
2097 as well when ignoring the whole category.
2099 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2102 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2103 ETHERTYPE_* definitions.
2104 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2106 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2108 * stdlib/mbtowc.c (__no_r_state): Remove.
2109 (mbtowc): New static state variable. Use it instead of
2111 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2112 (__wctomb_state): New hidden variable.
2113 (wctomb): Use __wctomb_state instead of __no_r_state.
2114 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2115 (__wctomb_state): New extern decl.
2116 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2118 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2121 * resolv/res_init.c: Handle scope IDs in resolv.conf.
2123 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2125 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2127 2008-04-06 Ulrich Drepper <drepper@redhat.com>
2129 * po/nl.po: Update from translation team.
2131 2008-03-31 Ulrich Drepper <drepper@redhat.com>
2134 * string/strfry.c: Handle empty strings again.
2136 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2139 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2140 before looking for translation.
2141 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2142 * locale/freelocale.c: Likewise.
2143 * locale/newlocale.c: Likewise.
2144 * locale/setlocale.c: Likewise.
2145 Based partially on a patch by ryo@np.css.fujitsu.com.
2147 2008-03-30 Jakub Jelinek <jakub@redhat.com>
2149 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2150 acquiring wrlock. Do conv_tab allocation while holding lock.
2151 * intl/Makefile: Add rules to build and run tst-gettext6.
2152 * intl/tst-gettext6.c: New test.
2153 * intl/tst-gettext6.sh: New file.
2155 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2157 * po/nl.po: Update from translation team.
2159 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2160 provided through st_blksize, try the default size before giving up.
2162 2008-03-29 Ulrich Drepper <drepper@redhat.com>
2164 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2167 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2169 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2170 error message. POSIX today does not require the messages to be in
2171 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
2174 * sunrpc/auth_unix.c: Unify printed strings.
2175 * sunrpc/clnt_tcp.c: Likewise.
2176 * sunrpc/clnt_udp.c: Likewise.
2177 * sunrpc/clnt_unix.c: Likewise.
2178 * sunrpc/svc_tcp.c: Likewise.
2179 * sunrpc/svc_udp.c: Likewise.
2180 * sunrpc/svc_unix.c: Likewise.
2181 * sunrpc/xdr.c: Likewise.
2182 * sunrpc/xdr_array.c: Likewise.
2183 * sunrpc/xdr_rec.c: Likewise.
2184 * sunrpc/xdr_ref.c: Likewise.
2185 * locale/programs/ld-time.c (time_finish): Unify messages.
2186 * locale/programs/locfile.c (handle_copy): Fix typo.
2187 * nscd/nscd.c (options): Fix typo.
2190 * stdlib/strtod_l.c: Use correct sign for result in one more
2192 Patch by Eric Blake <ebb9@byu.net>.
2194 2008-03-27 Jakub Jelinek <jakub@redhat.com>
2196 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2197 and creat system calls.
2198 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2200 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2202 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2203 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2204 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2206 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2208 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2209 <linux/limits.h> has defined it.
2210 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2211 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2213 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2214 it instead of ARG_MAX.
2216 2008-03-25 Jakub Jelinek <jakub@redhat.com>
2218 * posix/gai.conf: Fix comment for scope nullbits.
2219 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2220 default to 128 bits for v4 mapped addresses.
2222 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2224 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2225 ptrace call to get the ieee_instruction_pointer from the kernel.
2226 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2227 ptrace call to set the ieee_instructtion_pointer.
2228 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2229 Add comment that ieee_instruction_pointer is always 0.
2231 2008-03-09 Andreas Jaeger <aj@suse.de>
2234 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2235 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2236 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2238 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2239 (rint_test): Likewise.
2241 2008-03-24 Ulrich Drepper <drepper@redhat.com>
2243 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2245 (__nisfind_server): Similar for open readColdStartFile call.
2246 Patch partially by Jim Meyering.
2247 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2248 around internal_setent call.
2250 * po/vi.po: New Vietnamese translation.
2252 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2255 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2256 remove CLONE_STOPPED.
2258 2008-02-10 Jim Meyering <meyering@redhat.com>
2260 Remove useless "if" before "free":
2261 * elf/ldconfig.c (parse_conf_include): Likewise.
2262 * gmon/gmon.c (weak_alias): Likewise.
2263 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2264 * inet/rcmd.c (__validuser2_sa): Likewise.
2265 * intl/bindtextdom.c (set_binding_values): Likewise.
2266 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2267 * libio/genops.c (save_for_backup): Likewise.
2268 * libio/wgenops.c (save_for_wbackup): Likewise.
2269 * locale/programs/ld-collate.c (collate_read): Likewise.
2270 * locale/programs/linereader.c (get_string): Likewise.
2271 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2272 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2273 * resolv/res_debug.c (do_section): Likewise.
2274 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2275 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2276 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2277 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2278 * time/tzset.c (tzset_internal): Likewise.
2280 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2282 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2285 2008-03-11 Ulrich Drepper <drepper@redhat.com>
2288 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2289 not stream for output file. Open output file here.
2290 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2291 and output file name.
2292 (process_fd): Likewise.
2293 (process_file): Likewise.
2294 (main): Adjust callers of changed functions.
2295 * iconv/iconv_prog.h: Adjust prototype.
2297 2008-03-09 Andreas Jaeger <aj@suse.de>
2300 * sysdeps/ia64/ieee754.h: Use protected namespace
2301 __BIG_ENDIAN/__LITTLE_ENDIAN.
2302 * sysdeps/ieee754/ieee754.h: Likewise.
2303 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2305 2008-03-08 Roland McGrath <roland@frob.com>
2307 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2308 ignore a signal that came from a machine exception, treat it as a
2309 fatal core-dump signal instead.
2310 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2312 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2313 Clear DF bit in thread state's eflags.
2314 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2316 2008-03-08 Ulrich Drepper <drepper@redhat.com>
2319 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2320 of NAN(...) sequence.
2321 * stdlib/Makefile (tests): Add tst-strtod6.
2322 * stdlib/tst-strtod6.c: New file.
2324 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2327 * posix/getopt.c (_getopt_internal_r): Clarify error message by
2328 putting offending option character in quotes. Clean up error
2330 * po/be.po: Adjust msgstr in translation file.
2331 * po/bg.po: Likewise.
2332 * po/ca.po: Likewise.
2333 * po/cs.po: Likewise.
2334 * po/da.po: Likewise.
2335 * po/de.po: Likewise.
2336 * po/es.po: Likewise.
2337 * po/fr.po: Likewise.
2338 * po/hr.po: Likewise.
2339 * po/ko.po: Likewise.
2340 * po/nl.po: Likewise.
2341 * po/rw.po: Likewise.
2342 * po/sk.po: Likewise.
2343 * po/sv.po: Likewise.
2344 * po/tr.po: Likewise.
2345 * po/zh_CN.po: Likewise.
2346 * po/zh_TW.po: Likewise.
2349 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2350 Patch by Roland Bless <roland@bless.de>.
2352 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2354 * elf/Makefile (routines): Add dl-sysdep.
2355 (elide-routines.os): Likewise.
2357 2008-03-07 Ulrich Drepper <drepper@redhat.com>
2360 * elf/dl-sysdep.c: Undefine ROUND after use.
2361 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2362 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2363 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2364 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2366 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2367 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2369 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2371 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2372 _dl_tls_get_addr_soft element.
2373 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2374 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2375 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2377 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2378 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2379 of internal_function.
2381 * stdlib/Makefile (aux): Add tens_in_limb.
2382 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2383 * stdlib/tens_in_limb.c: ...here. New file.
2386 * sysdeps/unix/sysv/linux/pathconf.h: Declare
2387 __statfs_chown_restricted.
2388 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2389 for _PC_CHOWN_RESTRICTED.
2390 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2391 Implement __statfs_chown_restricted.
2392 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2393 _POSIX_CHOWN_RESTRICTED value to zero.
2394 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2397 * sysdeps/x86_64/rtld-memset.c: New file.
2399 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
2401 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2403 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2404 Barcelona machine. Make default fall through branch of
2405 __x86_64_preferred_memory_instruction check as the integer code path.
2407 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2409 * sysdeps/x86_64/cacheinfo.c
2410 (__x86_64_preferred_memory_instruction): New variable.
2411 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2413 * sysdeps/x86_64/memset.S: Rewrite.
2415 2008-03-04 Jakub Jelinek <jakub@redhat.com>
2417 * include/stdio.h (__asprintf_chk, __dprintf_chk,
2418 __obstack_printf_chk): New prototypes.
2419 (__vasprintf_chk, __vdprintf_chk,
2420 __obstack_vprintf_chk): Likewise.
2421 Add libc_hidden_proto.
2423 (_IO_obstack_jumps): No longer static, add attribute_hidden.
2424 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2425 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2426 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2427 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2428 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2429 __obstack_vprintf_chk): New prototypes.
2430 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2431 obstack_vprintf): New inlines.
2432 * debug/dprintf_chk.c: New file.
2433 * debug/vdprintf_chk.c: New file.
2434 * debug/asprintf_chk.c: New file.
2435 * debug/vasprintf_chk.c: New file.
2436 * debug/obprintf_chk.c: New file.
2437 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2438 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2439 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2441 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2442 vdprintf_chk and obprintf_chk, set CFLAGS for them.
2443 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2444 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2446 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2447 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2448 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2449 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2450 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2452 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2453 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2454 obstack_vprintf_chk.
2455 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2456 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2457 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2458 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2459 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2460 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2462 2008-03-04 Ulrich Drepper <drepper@redhat.com>
2465 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2466 Patch by Roy Marples <roy@marples.name>.
2469 * malloc/malloc.c: Fix typo in comment.
2472 * locale/iso-639.def: Add Shuswap.
2474 2008-02-25 Jakub Jelinek <jakub@redhat.com>
2477 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2478 overwrite *h_errnop/*errnop values from getanswer_r in case of
2481 2008-03-03 Ulrich Drepper <drepper@redhat.com>
2484 * nscd/connections.c (dbs): Add initializers for .suggested_module.
2485 (verify_persistent_db): Remove one unnecessary test and add a new one
2486 for bad configuration.
2487 (nscd_init): Improve error reported when persistent database cannot
2489 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2490 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2491 .suggested_module and .max_db_size and case config file says the
2493 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2496 * nis/ypclnt.c (yp_order): Fix handling of return value of
2498 Patch by Jeff Moyer <jmoyer@redhat.com>.
2500 * po/fr.po: Update from translation team.
2502 2008-02-22 Andreas Jaeger <aj@suse.de>,
2503 Carlos O'Donell <carlos@systemhalted.org>
2506 * FAQ.in: Describe why glibc needs to be compiled with
2509 2008-02-19 Roland McGrath <roland@redhat.com>
2511 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2513 2008-02-15 Ulrich Drepper <drepper@redhat.com>
2516 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2517 __USE_MISC is defined.
2519 2008-02-10 Ulrich Drepper <drepper@redhat.com>
2521 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2522 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2524 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2525 timerfd_gettime, timerfd_settime.
2526 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2527 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2529 2008-02-08 Roland McGrath <roland@redhat.com>
2531 * elf/elf.h (NT_PPC_SPE): New macro.
2533 2008-02-06 Roland McGrath <roland@redhat.com>
2535 * Makerules ($(common-objpfx)sysd-rules):
2536 Depend on $(sysdep-makeconfigs).
2538 2008-01-31 Roland McGrath <roland@redhat.com>
2541 * configure.in: Use -print-file-name if it yields a directory,
2542 for each of include and include-fixed.
2543 * configure: Regenerated.
2545 * Makeconfig (sysd-rules-targets): New variable.
2546 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2547 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2549 2008-01-30 Roland McGrath <roland@redhat.com>
2551 * manual/libc.texinfo: Update back-cover text.
2553 * elf/elf.h (NT_386_TLS): New macro.
2555 2008-01-29 Roland McGrath <roland@redhat.com>
2557 * Makeconfig (sysd-rules-patterns): New variable.
2558 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2559 (check-inhibit-asm): New canned sequence, replaces ...
2560 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2561 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2562 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2563 (CFLAGS-rtld): Variable removed.
2565 2008-01-24 Roland McGrath <roland@redhat.com>
2567 * configure.in: Let configure fragments set base_os.
2568 * configure: Regenerated.
2570 2008-01-22 Ulrich Drepper <drepper@redhat.com>
2572 * po/ko.po: Update from translation team.
2574 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2576 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2578 2008-01-12 Andreas Jaeger <aj@suse.de>
2581 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2584 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2586 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2587 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2588 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2590 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
2592 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2593 * elf/dl-close.c (_dl_close): Check for it.
2594 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2595 (_dl_allocate_static_tls): Likewise.
2596 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2597 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2599 * elf/tst-tls16.c: New file.
2600 * elf/tst-tlsmod16a.c: New file.
2601 * elf/tst-tlsmod16b.c: New file.
2602 * elf/Makefile: Add rules to build and run tst-tls16.
2604 2008-01-16 Ulrich Drepper <drepper@redhat.com>
2607 * bits/shm.h: Fix comment describing shmid_ds.
2608 * sysdeps/gnu/bits/shm.h: Likewise.
2609 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2610 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2611 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2612 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2613 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2614 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2615 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2616 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2617 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2620 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2622 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2623 additional suffixes.
2624 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2625 Add optional functions mq_timedreceive and mq_timedsend.
2626 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2627 * conform/data/pthread.h-data: Fix prototype of
2628 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2629 * conform/data/semaphore.h-data: Allow time.h definitions.
2630 * conform/data/signal.h-data: Likewise.
2631 * conform/data/stdio.h-data: getw and putw are not required in v6.
2632 * conform/data/stdlib.h-data: Change setstate prototype.
2633 * conform/data/string.h-data: Fix strerror_r prototype.
2634 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2635 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2636 Fix readlink prototype.
2637 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2639 * inet/netinet/in.h: Cleanup namespace.
2640 * posix/regex.h: Likewise.
2641 * resolv/netdb.h: Likewise.
2642 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2643 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2644 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2645 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2646 of names of in in6_addr.
2647 (default_precedence): Likewise.
2648 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2651 2008-01-15 Ulrich Drepper <drepper@redhat.com>
2653 * conform/data/fmtmsg.h-data: Add missing allows.
2654 * conform/data/ftw.h-data: Likewise.
2655 * conform/data/inttypes.h-data: Likewise.
2656 * conform/data/math.h-data: Likewise.
2657 * conform/data/signal.h-data: Likewise.
2658 * conform/data/net/if.h-data: Likewise.
2659 * conform/data/netinet/in.h-data: Likewise.
2660 * conform/data/sys/socket.h-data: Likewise.
2663 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2664 (__strtok_r): Simplify.
2665 * string/tester.c (test_strtok_r): Add test case for futile search
2666 with single-character seach string.
2668 2008-01-12 Ulrich Drepper <drepper@redhat.com>
2670 * po/ko.po: Update from translation team.
2672 2008-01-11 Andreas Jaeger <aj@suse.de>
2675 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2676 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2679 2008-01-10 Ulrich Drepper <drepper@redhat.com>
2681 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2682 native interface lookup in all the relevant places.
2684 2008-01-10 Jakub Jelinek <jakub@redhat.com>
2685 Ulrich Drepper <drepper@redhat.com>
2687 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2688 field. Use sockaddr_in6 for source_addr.
2689 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2690 (match_prefix): Likewise.
2691 (get_label): Likewise.
2692 (get_precedence): Likewise.
2693 (rfc3484_sort): Change to use indirect access to results array.
2694 Adjust to use of sockaddr_in6. Replace service_order test with
2695 simple index comparison.
2696 (getaddrinfo): Define order array. Initialize it. Don't initialize
2697 service_order field. Adjust qsort_t calls. Access sorted result
2698 array indirectly through order array.
2699 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2700 * posix/tst-rfc3484-2.c: Likewise.
2701 * posix/tst-rfc3484-3.c: Likewise.
2703 2008-01-09 Ulrich Drepper <drepper@redhat.com>
2706 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2708 Patch by André Cruz.
2711 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2712 (clnt_spcreateerror): Likewise.
2715 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2716 (public_mEMALIGn): Likewise.
2717 Patch mostly by Daniel Jacobowitz.
2719 2008-01-09 Jakub Jelinek <jakub@redhat.com>
2721 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2722 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2723 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2724 * stdlib/tst-makecontext2.c: New test.
2726 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2728 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2730 (REINIT_PARAMS): Likewise. Undefine before end of file.
2731 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2732 transliteration hooks and REINIT_PARAMS afterwards.
2733 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2735 (REINIT_PARAMS): Define.
2736 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2737 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2738 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2739 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2740 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2741 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2742 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2743 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2744 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2745 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2746 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2747 * iconvdata/tst-iconv7.c: New test.
2749 2008-01-07 Ulrich Drepper <drepper@redhat.com>
2751 * libio/stdio.h (vscanf): Fix definition for loser compilers.
2753 2008-01-05 Jakub Jelinek <jakub@redhat.com>
2756 * nscd/connections.c (restart): Fix condition.
2758 2008-01-03 Jakub Jelinek <jakub@redhat.com>
2760 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2761 __ctype_toupper_loc): Add __THROW.
2763 2008-01-02 Ulrich Drepper <drepper@redhat.com>
2765 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2766 recognition of interface family.
2768 * posix/getconf.c: Update copyright year.
2769 * nss/getent.c: Likewise.
2770 * iconv/iconvconfig.c: Likewise.
2771 * iconv/iconv_prog.c: Likewise.
2772 * elf/ldconfig.c: Likewise.
2773 * catgets/gencat.c: Likewise.
2774 * csu/version.c: Likewise.
2775 * elf/ldd.bash.in: Likewise.
2776 * elf/sprof.c (print_version): Likewise.
2777 * locale/programs/locale.c: Likewise.
2778 * locale/programs/localedef.c: Likewise.
2779 * nscd/nscd.c (print_version): Likewise.
2780 * debug/xtrace.sh: Likewise.
2781 * malloc/memusage.sh: Likewise.
2782 * malloc/mtrace.pl: Likewise.
2783 * debug/catchsegv.sh: Likewise.
2785 2007-12-26 Ulrich Drepper <drepper@redhat.com>
2787 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2790 2007-12-23 Ulrich Drepper <drepper@redhat.com>
2792 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2793 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2795 2007-12-17 Roland McGrath <roland@redhat.com>
2797 * inet/ether_line.c (ether_line): Remove unused variable.
2799 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2801 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2803 * login/openpty.c (openpty): Likewise.
2804 * login/pty.h (openpty, forkpty): Likewise.
2805 * manual/terminal.texi (openpty, forkpty): Likewise.
2807 2007-12-17 Ulrich Drepper <drepper@redhat.com>
2809 * malloc/malloc.c (public_cALLOc): For arenas other than
2810 main_arena, count all bytes inside the mprotect_size range of the
2811 heap as uninitialized.
2813 2007-12-16 Ulrich Drepper <drepper@redhat.com>
2815 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2818 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2819 mTRIm for all of them.
2820 (mTRIm): Additionally iterate over all free blocks and use madvise
2821 to free memory for all those blocks which contain at least one
2823 * malloc/tst-trim1.c: New file.
2824 * malloc/Makefile (tests): Add tst-trim1.
2826 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2828 2007-12-14 Ulrich Drepper <drepper@redhat.com>
2830 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2831 First cast argument to long
2832 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2834 (__vdso_clock_gettime): Likewise.
2835 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2838 2007-12-13 Ulrich Drepper <drepper@redhat.com>
2840 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2841 * locale/nl_langinfo_l.c: Real implementation, copied from
2843 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2845 2007-12-01 Jim Meyering <meyering@redhat.com>
2847 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2848 that would inhibit utf8-optimization of a regexp containing line-
2849 or buffer-anchors, e.g., `^', `$'.
2851 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2853 * time/bug-getdate1.c (do_test): Don't use century values which
2854 aren't valid on 32-bit systems.
2856 2007-12-12 Jakub Jelinek <jakub@redhat.com>
2858 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2859 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2860 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2861 __strcat_g, __strncat_g): Add __asm__.
2863 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2866 * io/fchmodat.c: Fix typo in stub_warning use.
2867 Patch by Petr Salinger.
2869 2007-12-11 Ulrich Drepper <drepper@redhat.com>
2871 * iconvdata/hp-thai8.c: New file.
2872 * iconvdata/Makefile: Add rules for hp-thai8.c.
2873 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2874 * iconvdata/gconv-modules: Likewise.
2877 * iconvdata/hp-greek8.c: New file.
2878 * iconvdata/Makefile: Add rules for hp-greek8.c.
2879 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2880 * iconvdata/gconv-modules: Likewise.
2883 * iconvdata/hp-turkish8.c: New file.
2884 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2885 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2886 * iconvdata/gconv-modules: Likewise.
2888 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2889 (shrink_heap): ... this new function.
2890 (heap_trim): Call shrink_heap instead of grow_heap.
2892 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2893 case don't call alloc_perturb.
2895 2007-12-10 Ulrich Drepper <drepper@redhat.com>
2897 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2899 * sysdeps/unix/sysv/linux/kernel-features.h
2900 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2901 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2903 2007-12-08 Ulrich Drepper <drepper@redhat.com>
2906 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2907 * stdio-common/Makefile (tests): Add bug22.
2908 * stdio-common/bug22.c: New file.
2911 * time/getdate.c: Fix filling in default values.
2912 * time/bug-getdate1.c: New file.
2913 * time/Makefile: Add rules to build and run bug-getdate1.
2915 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2916 * iconvdata/ebcdic-es.c: Likewise.
2917 * iconvdata/ebcdic-es-a.c: Likewise.
2918 * iconvdata/ebcdic-uk.c: Likewise.
2919 * iconvdata/iso8859-16.c: Likewise.
2920 * iconvdata/viscii.c: Likewise.
2921 * iconvdata/iso8859-9e.c: Likewise.
2922 * iconvdata/Makefile: Adjust appropriately.
2925 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2928 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2931 * iconvdata/hp-roman9.c: New file.
2932 * iconvdata/Makefile: Add rules for hp-roman9.c.
2933 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2934 * iconvdata/gconv-modules: Likewise.
2936 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2937 * iconvdata/Makefile: Adjust appropriately.
2940 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2941 structure, it's allocated with alloca.
2942 * stdio-common/Makefile (tests): Add bug21.
2943 * stdio-common/bug21.c: New file.
2945 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
2948 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2949 keyword for gcc's braced-groups.
2951 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2954 * inet/ether_line.c: Strip hostname of whitespaces.
2955 * inet/Makefile (tests): Add tst-ether_line.
2956 * inet/tst-ether_line.c: New file.
2958 2007-12-03 Ulrich Drepper <drepper@redhat.com>
2961 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2964 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2966 * stdlib/tst-setcontext.c: Catch the case where the links gets
2967 messed up and we do not reach main again.
2969 * po/ca.po: Update from translation team.
2971 2007-11-26 Ulrich Drepper <drepper@redhat.com>
2973 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2974 * posix/regex.h (REG_ENOSYS): Likewise.
2975 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2977 2007-11-25 Ulrich Drepper <drepper@redhat.com>
2979 * nscd/nscd.h (MAX_STACK_USE): Define.
2980 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2981 (gc): Initialize stack_used based on allocation in prune_cache.
2982 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2983 Clear array before use.
2985 * nscd/aicache.c (addhstaiX): Update statistics counter in case
2986 memory allocation failed.
2987 * nscd/hstcache.c (cache_addhst): Likewise.
2988 * nscd/grpcache.c (cache_addgr): Likewise.
2989 * nscd/servicescache.c (cache_addserv): Likewise.
2990 * nscd/pwdcache.c (cache_addpw): Likewise.
2991 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2993 2007-11-23 Ulrich Drepper <drepper@redhat.com>
2995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2996 and creat system calls.
2998 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3000 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
3002 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3004 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3005 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3007 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3008 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3009 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3011 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
3013 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3014 strncat): Define as macros to avoid compile errors.
3016 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
3019 2007-11-22 Ulrich Drepper <drepper@redhat.com>
3022 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3023 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3024 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3026 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3028 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3029 Return zero in case the thread library is not NPTL.
3032 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3033 initializing interface list.
3036 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3037 use result of nss_getgrgid_r if nothing was found. For other
3038 error return with a failure.
3039 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3041 * locale/programs/ld-collate.c (collate_read): Fix loop to match
3044 2007-11-19 Ulrich Drepper <drepper@redhat.com>
3046 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3047 (get_scope): For IPv4 scope, use scopes table.
3048 (fini): Free scopes table if necessary.
3049 (free_scopelist): New function.
3050 (scopecmp): New function.
3051 (gaiconf_init): Also handle scopev4 entries.
3052 * posix/tst-rfc3484.c (do_test): Initialize scopes.
3053 * posix/tst-rfc3484-2.c (do_test): Likewise.
3054 * posix/gai.conf: Document scopev4 defaults.
3055 * posix/Makefile (tests): Add tst-rfc3484-3.
3056 * posix/tst-rfc3484-3.c: New file.
3058 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3060 * posix/gai.conf: Update for current default tables.
3062 2007-11-19 Ulrich Drepper <drepper@redhat.com>
3064 * po/tr.po: Update from translation team.
3066 2007-11-18 Roland McGrath <roland@frob.com>
3068 * manual/arith.texi (Remainder Functions): Spelling fix.
3069 From Shaun Silk <genix@mysoul.com.au>.
3071 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3073 2007-11-17 Ulrich Drepper <drepper@redhat.com>
3075 * po/zh_CN.po: Update from translation team.
3077 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3078 Add sys/signalfd.h and sys/eventfd.h.
3080 2007-11-15 Bruno Haible <bruno@clisp.org>
3083 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3085 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3086 (DCIGETTEXT): Change the allocation of the 'search' variable so that
3087 it needs only fixed stack space. Delay the initialization of
3088 msgid_len until it is needed.
3090 2007-11-15 Andreas Jaeger <aj@suse.de>
3092 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3093 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3095 2007-11-15 Ulrich Drepper <drepper@redhat.com>
3097 * po/ko.po: Update from translation team.
3099 2007-11-14 Ulrich Drepper <drepper@redhat.com>
3101 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3102 significantly. The device type is also part of the ifinfomsg data.
3104 * po/sv.po: Update from translation team.
3105 * po/nl.po: Likewise.
3107 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3108 to wake up in 24 hours.
3110 * nscd/gai.c (__ioctl): Define. Include check_native.c.
3112 2007-11-13 Ulrich Drepper <drepper@redhat.com>
3114 * po/cs.po: Update from translation team.
3115 * po/pl.po: Likewise.
3117 * include/ifaddrs.h: Remove in6ai_temporary.
3118 (struct in6addrinfo): Add index element.
3119 Declare __check_native.
3120 * inet/Makefile (aux): Add check_native.
3121 * sysdeps/unix/sysv/linux/check_native.c: New file.
3122 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3123 IFA_F_TEMPORARY. Pass back ifa_index.
3124 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3125 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
3126 call __check_native if necessary.
3127 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
3128 to sort addresses. Pass information about the results.
3129 * posix/tst-rfc3484.c: Adjust for addition of index field and change
3130 of rfc3484_sort interface.
3131 * posix/tst-rfc3484-2.c: Likewise.
3133 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
3134 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3136 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3137 (qsort_r): Renamed from qsort. Take additional parameter and pass it
3138 on as third parameter to compare function and _quicksort.
3139 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3140 to the compare function.
3141 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3142 * Versions.def: Add GLIBC_2.8 for libc.
3144 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3145 * posix/tst-rfc3484-2.c: Likewise.
3147 * include/kernel-features.h: Moved to...
3148 * sysdeps/mach/hurd/kernel-features.h: ...here.
3150 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3152 * sysdeps/i386/i586/memcpy_chk.S: New file.
3153 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3154 * sysdeps/i386/i586/memset_chk.S: Likewise.
3156 2007-11-12 Ulrich Drepper <drepper@redhat.com>
3158 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3159 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3160 list of interfaces. Also store prefix length.
3161 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3162 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3163 prefix if source and destination address are in the same subnet.
3164 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
3165 Always look for matching record in in6ai list.
3166 Correct source_addr_len value for IPv6->IPv4 converted records.
3168 2007-11-11 Roland McGrath <roland@frob.com>
3170 * include/kernel-features.h: New file.
3172 2007-11-10 Ulrich Drepper <drepper@redhat.com>
3174 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3175 complications for 64-bit platforms.
3177 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3178 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
3179 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3181 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3183 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3184 * sysdeps/wordsize-64/alphasort.c: New file.
3185 * sysdeps/wordsize-64/alphasort64.c: New file.
3186 * sysdeps/wordsize-64/fseeko.c: New file.
3187 * sysdeps/wordsize-64/fseeko64.c: New file.
3188 * sysdeps/wordsize-64/ftello.c: New file.
3189 * sysdeps/wordsize-64/ftello64.c: New file.
3190 * sysdeps/wordsize-64/ftw.c: New file.
3191 * sysdeps/wordsize-64/ftw64.c: New file.
3192 * sysdeps/wordsize-64/iofgetpos.c: New file.
3193 * sysdeps/wordsize-64/iofgetpos64.c: New file.
3194 * sysdeps/wordsize-64/iofopen.c: New file.
3195 * sysdeps/wordsize-64/iofopen64.c: New file.
3196 * sysdeps/wordsize-64/iofsetpos.c: New file.
3197 * sysdeps/wordsize-64/iofsetpos64.c: New file.
3198 * sysdeps/wordsize-64/lockf.c: New file.
3199 * sysdeps/wordsize-64/lockf64.c: New file.
3200 * sysdeps/wordsize-64/mkostemp.c: New file.
3201 * sysdeps/wordsize-64/mkostemp64.c: New file.
3202 * sysdeps/wordsize-64/mkstemp.c: New file.
3203 * sysdeps/wordsize-64/mkstemp64.c: New file.
3204 * sysdeps/wordsize-64/scandir.c: New file.
3205 * sysdeps/wordsize-64/scandir64.c: New file.
3206 * sysdeps/wordsize-64/tmpfile.c: New file.
3207 * sysdeps/wordsize-64/tmpfile64.c: New file.
3208 * sysdeps/wordsize-64/versionsort.c: New file.
3209 * sysdeps/wordsize-64/versionsort64.c: New file.
3210 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3211 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3212 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3213 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3214 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3215 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3216 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3217 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3218 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3219 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3220 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3221 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3223 * crypt/sha256-crypt.c: Fix a comment.
3224 * crypt/sha512-crypt.c: Likewise.
3226 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3228 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3230 2007-11-07 Ulrich Drepper <drepper@redhat.com>
3233 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3234 because output buffer is too small break, don't loop.
3235 * iconvdata/Makefile (tests): Add bug-iconv6.
3236 * iconvdata/bug-iconv6.c: New file.
3238 2007-11-06 Ulrich Drepper <drepper@redhat.com>
3240 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3242 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3243 size_t. Add casts where needed.
3245 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3246 old headers, don't call avc_has_perm if we don't have the
3247 permission information.
3249 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3251 * elf/rtld.c (dl_main): Use the page size to find the map start.
3253 2007-11-05 Ulrich Drepper <drepper@redhat.com>
3255 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3256 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3258 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3259 when the lookup call failed.
3261 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3262 Add prune_cond and wakeup_time.
3263 (CACHE_PRUNE_INTERNAL): Define.
3264 Update declarations of prune_cache and setup_thread.
3265 * nscd/connections.c (dbs): Update initializers.
3266 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3267 (nscd_init): Default number of threads is now 4.
3268 (invalidate_cache): Take lock before calling prune_cache.
3269 (handle_request): If SELinux forbids the request, say so.
3270 (readylist_cond): Use static initializer.
3271 (nscd_run_prune): New function. Used only by pruning threads.
3272 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3274 (fd_ready): Update nscd_run reference.
3275 (start_threads): No need to initialize readylist_cond.
3276 Start pruning threads separately.
3277 * nscd/nscd_setup_thread.c: Change return value type to int and always
3279 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3280 to int and return nonzero value if we can use the TID address hack.
3281 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3282 the database is later than the new entry's timeout, update the
3283 wakeup time and wake the cleanup thread.
3284 (prune_cache): Return seconds the next entry in the database is still
3285 valid. Remove locking for pruning here.
3286 * nscd/nscd.conf: Document default number of threads.
3288 2007-10-31 Ulrich Drepper <drepper@redhat.com>
3290 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3291 stack is properly aligned for the target function.
3292 Correct unwind info.
3294 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3295 when using auditing libraries.
3297 2007-10-29 Ulrich Drepper <drepper@redhat.com>
3299 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3300 _nss_dns_getnetbyaddr2_r.
3301 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3302 extra parameter to getanswer_r.
3303 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3304 _nss_dns_getnetbyaddr2_r.
3306 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3308 * nscd/gethstbynm2_r.c: Remove.
3309 * nscd/gethstbynm3_r.c: New file.
3310 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3312 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
3313 __gethostbyaddr_r compatibility wrapper.
3314 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
3315 determining timeout of entry.
3316 (lookup): Take new parameter and pass it to __gethostbyname3_r and
3318 (addhstbyX): Pass reference to variable for TTL to lookup and
3320 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3321 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3322 and __nss_next2. Remove __nss_services_lookup.
3323 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
3325 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3327 * nss/getXXent_r.c: Likewise.
3328 * nss/getnssent_r.c: Likewise.
3329 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3330 does not exist in module, try the optional second name.
3331 (__nss_next2): New function.
3332 (__nss_next): Now wrapper around __nss_next2.
3333 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3334 Declare __nss_next2.
3335 Adjust definition of db_lookup_function type.
3336 * nss/service-lookup.c: Define NO_COMPAT.
3337 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3338 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3339 * inet/ether_ntoh.c: Likewise.
3340 * sunrpc/netname.c: Likewise.
3341 * sunrpc/publickey.c: Likewise.
3342 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3343 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3344 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3345 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3346 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3348 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3350 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3352 2007-10-28 Ulrich Drepper <drepper@redhat.com>
3355 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3356 * crypt/sha512c-test.c: Likewise.
3359 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3360 to keep track of end of %[ format string element.
3361 * stdio-common/Makefile (tests): Add bug20.
3362 * stdio-common/bug20.c: New file.
3365 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3366 path elements in counting mode.
3368 2007-10-27 Andreas Jaeger <aj@suse.de>
3371 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3374 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3375 (__cleanup): Free shared library when exiting.
3376 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3377 (__cleanup): Free shared library when exiting.
3379 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
3382 * math/libm-test.inc (check_float_internal): Support
3383 denormalized return.
3385 2007-10-23 Andreas Jaeger <aj@suse.de>
3388 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3389 __LONG_LONG_PAIR to handle little endian byte order.
3390 Suggested by abhishekrai@google.com
3392 2007-10-27 Ulrich Drepper <drepper@redhat.com>
3394 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3396 2007-10-26 Ulrich Drepper <drepper@redhat.com>
3398 * nscd/cache.c (prune_cache): Move test for modified file outside
3401 2007-10-21 Andreas Jaeger <aj@suse.de>
3403 * manual/texinfo.tex: Update to latest version.
3405 * manual/sysinfo.texi (System Parameters): Fix Formatting.
3407 * manual/arith.texi (Status bit operations): Fix formatting.
3409 * manual/errno.texi (Error Messages): Fix formatting.
3411 * manual/sysinfo.texi (System Parameters): Fix formatting.
3413 * manual/libc.texinfo: Update VERSION and UPDATED.
3415 2007-10-19 Roland McGrath <roland@redhat.com>
3417 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3419 2007-10-06 David S. Miller <davem@davemloft.net>
3421 * configure.in: Add sparcv9v2 and sparc64v2.
3422 * scripts/config.sub: Likewise.
3423 * configure: Regenerate.
3424 * elf/elf.h (HWCAP_SPARC_N2): New.
3425 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3426 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3427 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3428 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3429 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3430 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3431 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3433 2007-10-18 Ulrich Drepper <drepper@redhat.com>
3435 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3436 even if the poll result indicates there is data to read.
3437 Patch by Jeff Moyer <jmoyer@redhat.com>.
3439 2007-10-18 Roland McGrath <roland@redhat.com>
3441 * elf/elf.h (NT_PPC_VMX): New macro.
3443 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3445 * version.h (VERSION): Set to 2.7.90.
3447 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3449 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
3452 2007-10-17 Roland McGrath <roland@frob.com>
3454 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3455 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3457 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3459 * version.h (VERSION): Bump to 2.7.
3460 * include/features.h (__GLIBC_MINOR__): Bump to 7.
3463 * time/tzset.c (__tz_convert): Don't force testing for a change of
3464 TZ if not called from localtime. But then also see whether the
3465 file changed, in case __use_tzfile is set.
3467 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3468 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3469 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3470 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3471 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3472 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3473 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3474 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3476 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3478 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3479 and admin selects to be able to replace the gai.conf file, lock
3480 data structures around the qsort call.
3482 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3484 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3486 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
3487 too high for the improvements. Implement bzero unconditionally for
3490 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3491 Jakub Jelinek <jakub@redhat.com>
3493 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3494 even when time_t is 32-bit.
3495 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3496 timezone data read by __tzfile_default. Ensure __tzname[0] is
3497 always set after the search.
3499 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3501 * time/tzfile.c (__tzfile_read): Help the compiler recognize
3502 unreachable code on 32-bit machines.
3504 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3507 * time/strftime_l.c: Include stdbool.h.
3508 (my_strftime): New wrapper, old function renamed to...
3509 (__strftime_internal): ... new function. Add tzset_called
3510 argument, pass it down to recursive calls, don't call tzset ()
3511 if already true, set to true after call to tzset ().
3513 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3515 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3516 into account when copying TZ string.
3518 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3520 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3521 num_transition rather than num_transitions - 1.
3523 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3525 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3528 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3529 a local label rather than HIDDEN_JUMPTARGET.
3531 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3533 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3534 (init_cacheinfo): Initialize it.
3535 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3536 Always define bzero.
3537 Remove non-glibc code.
3538 * sysdeps/x86_64/bzero.S: Make an empty file.
3540 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3542 * sysdeps/x86_64/cacheinfo.c
3543 (__x86_64_preferred_memory_instruction): New.
3544 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3546 * sysdeps/x86_64/memset.S: Rewrite.
3548 2007-10-15 Roland McGrath <roland@redhat.com>
3550 * po/libc.pot: Regenerated.
3552 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3554 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3558 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3559 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3560 address record to T_A/T_AAAA requests.
3562 2007-10-14 Ulrich Drepper <drepper@redhat.com>
3564 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3566 * posix/glob.c: Add some branch prediction throughout.
3568 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3571 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3573 (rfc3484_sort): Make sure that even if qsort doesn't support
3574 stable sorting out sorting here is stable by comparing service_order.
3575 (getaddrinfo): Initialize service_order.
3576 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3577 service_order field to sorting structure.
3578 * posix/tst-rfc3484-2.c (do_test): Likewise.
3580 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3581 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3582 __tzset_parse_tz and updating of daylight, timezone, tzname into
3584 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3585 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3586 happens in __tz_compute.
3587 * time/tzfile.c (__tzfile_read): Also read TZ string.
3588 (find_transition): Fold into __tzfile_compute.
3589 (__tzfile_compute): For times beyond the last transition try to
3591 * timezone/tst-timezone.c: Information in daylight and tzname does
3592 change for Asia/Tokyo timezone with more concrete information.
3595 * include/stdio.h: Add libc_hidden_proto for ftello.
3596 * libio/ftello.c: Add libc_hidden_def.
3599 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3600 on the specified time and not the last entries in the file. Move
3601 code to determine tzname[] to...
3602 (find_transition): ...here. Add ugly guess for times before the
3605 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3608 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3610 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3611 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3612 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3613 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3615 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3616 read mechanism when there are no group members and avoid no-op
3617 read syscall in this case.
3620 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3621 (__readall): If reading failed due to EAGAIN error wait a bit
3622 and possibly try again.
3623 (__readvall): Likewise.
3625 2007-10-13 Bruno Haible <bruno@clisp.org>
3627 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3628 when we cannot recode the message.
3630 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3633 * libio/__freading.c (__freading): Don't return true for
3634 write-only streams. For read/write streams, check whether we
3635 performed a read operation already.
3636 * libio/Makefile (tests): Add tst-ext2.
3637 * libio/tst-ext2.c: New file.
3639 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3641 * locale/programs/repertoire.c (repertoire_read): Always free
3642 memory for repertoire file name [Coverity CID 270].
3644 * elf/cache.c (save_aux_cache): Free memory allocated for
3645 temporary file name [Coverity CID 267].
3647 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3649 * misc/Makefile (headers): Add bits/error.h.
3651 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3653 * posix/fnmatch_loop.c: Take rule index returned as part of
3654 findidx return value into account when accessing weights.
3655 * posix/regcomp.c: Likewise.
3656 * posix/regexec.c: Likewise.
3658 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3659 (skip_to): Fix problems with parameter of elifdef/elifndef.
3661 2007-10-11 Ulrich Drepper <drepper@redhat.com>
3663 * iconv/gconv_simple.c: Add some branch prediction.
3665 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3667 * locale/programs/ld-collate.c (collate_read): If ignore_content
3668 and nowtok is tok_define, eat any tok_eol tokens.
3670 2007-10-11 Jakub Jelinek <jakub@redhat.com>
3672 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3673 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3675 * inet/netinet/in.h: Don't include bits/socket.h.
3676 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3678 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3680 2007-10-10 Ulrich Drepper <drepper@redhat.com>
3682 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3684 * locale/programs/locfile-kw.gperf: Likewise.
3685 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3687 2007-10-10 Jakub Jelinek <jakub@redhat.com>
3689 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3690 (__find_specwc): Change into __extern_always_inline function.
3691 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3692 (__parse_one_specmb): Remove ps argument.
3693 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3694 Adjust __find_specmb and __parse_one_specmb callers.
3695 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3696 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3698 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3701 2007-10-09 Ulrich Drepper <drepper@redhat.com>
3703 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3704 with some Pentium Ds.
3706 2007-10-08 Ulrich Drepper <drepper@redhat.com>
3708 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3710 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3713 2007-10-07 Ulrich Drepper <drepper@redhat.com>
3716 * locale/C-time.c: Set week_1stday data to 19971201.
3717 * locale/programs/ld-time.c (time_finish): Default for
3718 first_workday is Monday.
3721 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3724 * posix/glob.c (glob): Recognize patterns starting \/.
3725 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3726 (main): Add test for pattern starting \/.
3728 * misc/error.h: Use __const instead of const.
3729 * misc/bits/error.h: Likewise.
3731 2007-10-07 Andreas Jaeger <aj@suse.de>
3733 * include/bits/error.h: New file.
3735 * misc/bits/error.h (error_at_line): Fix prototype.
3737 2007-10-06 Ulrich Drepper <drepper@redhat.com>
3740 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3741 more little bugs in creating the stack frame when pltexit has to
3744 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3745 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3748 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3749 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3750 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3751 * math/libm-test.inc: Add test for this case.
3754 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3755 (svc_register): Initialize sc_mapped. Set to TRUE if call to
3756 map service succeeded.
3757 (svc_is_mapped): New function.
3758 (svc_unregister): Use it before trying to unmap service.
3760 2007-10-05 Ulrich Drepper <drepper@redhat.com>
3762 * timezone/zic.c: Update from tzcode2007h.
3765 * timezone/africa: Update from tzdata2007h.
3766 * timezone/antarctica: Likewise.
3767 * timezone/asia: Likewise.
3768 * timezone/australasia: Likewise.
3769 * timezone/europe: Likewise.
3770 * timezone/leapseconds: Likewise.
3771 * timezone/northamerica: Likewise.
3772 * timezone/southamerica: Likewise.
3773 * timzeone/zone.tab: Likewise.
3776 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3779 * string/bits/string2.h (__strdup): Cast parameters to calloc to
3780 avoid warning with -Wconversion.
3781 (__strndup): Likewise.
3782 Half the patch by Christian Iseli <christian.iseli@licr.org>.
3785 * nscd/connections.c (restart): Don't resync if database is
3786 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3788 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3789 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
3791 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3792 evetnfd_read, eventfd_write.
3793 * sysdeps/unix/sysv/linux/eventfd.c: New file.
3794 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3795 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3796 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3797 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3798 eventfd_write for GLIBC_2.7.
3800 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3801 * sysdeps/unix/sysv/linux/signalfd.c: New file.
3802 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3803 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3805 2007-10-04 Jakub Jelinek <jakub@redhat.com>
3807 * stdlib/msort.c: Include stdint.h.
3808 (struct msort_param): New type.
3809 (msort_with_tmp): Use struct msort_param pointer for unchanging
3810 parameters. Add optimized handling for several common sizes
3811 and indirect sorting mode.
3812 (qsort): Adjust msort_with_tmp callers. For big S use indirect
3814 Suggested by Belazougui Djamel .
3816 * stdlib/Makefile (tests): Add tst-qsort2.
3817 * stdlib/tst-qsort2.c: New test.
3819 2007-10-04 Ulrich Drepper <drepper@redhat.com>
3821 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3822 for dup2 in case another thread races with the current one. Retry
3825 * misc/error.h: Remove support for use outside of libc. We have to
3826 include <features.h> now. Include <bits/error.h> if possible.
3827 * misc/bits/error.h: New file.
3829 2007-10-03 Jakub Jelinek <jakub@redhat.com>
3831 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3832 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3833 __extern_always_inline functions unconditionally, drop macros.
3835 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3836 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3837 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3839 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3840 add __artificial__ attribute.
3842 2007-10-02 Ulrich Drepper <drepper@redhat.com>
3844 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3845 backward to forward direction.
3847 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3850 * locale/programs/ld-collate.c (collate_finish): Compare against last
3851 used section which is known to have rules defined.
3852 (collate_read): After order_start, correctly record order of sections
3853 and queue sections up.
3855 2007-10-01 Ulrich Drepper <drepper@redhat.com>
3858 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3859 the same number of pages.
3860 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3862 * locale/programs/ld-collate.c (collate_read): After initial copy
3863 statement, continue in state 0.
3865 * include/stdio_ext.h (__fsetlocking): Define as macro.
3867 2007-09-30 Ulrich Drepper <drepper@redhat.com>
3869 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3872 * po/pt_BR.po: Fix typo.
3874 2007-09-29 Ulrich Drepper <drepper@redhat.com>
3876 * iconvdata/Makefile (modules): Add ISO8859-9E.
3877 (distribute): Add iso8859-9e.c.
3878 (gen-8bit-gap-modules): Add iso8859-9e.
3879 * iconvdata/iso8859-9e.c: New file.
3880 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3881 * iconvdata/TESTS: Likewise.
3882 * iconvdata/tst-tables.sh: Likewise.
3884 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3886 * locale/iso-639.def: Add several new entries.
3888 2007-09-24 Jakub Jelinek <jakub@redhat.com>
3890 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3891 void * pointers instead of struct link_map **.
3892 (_dl_scope_free): Change argument type to void *.
3893 * include/link.h (struct link_map): Change type of l_reldeps
3894 to struct link_map_reldeps, move l_reldepsact into that
3896 * elf/dl-deps.c: Include atomic.h.
3897 (_dl_map_object_deps): Only change l->l_initfini when it is
3898 fully populated, use _dl_scope_free for freeing it. Optimize
3899 removal of libs from reldeps by using l_reserved flag, when
3900 some removal is needed, allocate a new list instead of
3901 reallocating and free the old with _dl_scope_free. Adjust
3902 for l_reldeps and l_reldepsact changes.
3903 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3904 searching in l_initfini and l_reldeps without holding dl_load_lock.
3905 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3906 l_reldepsact changes.
3907 * elf/dl-close.c (_dl_close_worker): Likewise.
3908 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3910 2007-09-28 Ulrich Drepper <drepper@redhat.com>
3912 * iconvdata/Makefile (modules): Add KOI8-RU.
3913 (distribute): Add koi8-ru.c.
3914 (gen-8bit-gap-modules): Add koi8-ru.
3915 * iconvdata/koi8-ru.c: New file.
3916 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3917 * iconvdata/TESTS: Likewise.
3918 * iconvdata/tst-tables.sh: Likewise.
3920 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3922 2007-09-26 Jakub Jelinek <jakub@redhat.com>
3924 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3925 with __warning__/__error__ attributes.
3926 (__warnattr): Define.
3927 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3928 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3930 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3931 of __*_chk if compile time detectable overflow is found.
3932 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3933 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3935 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3936 instead of __*_chk if compile time detectable overflow is found.
3937 (__gets_alias): Rename to...
3938 (__gets_warn): ... this. Add __warnattr.
3939 (gets): Call __gets_warn instead of __gets_alias.
3940 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3941 aliases with __warnattr.
3942 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3943 time detectable overflow is found.
3944 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3945 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3946 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3947 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3948 __getdomainname_chk_warn): New aliases with __warnattr.
3949 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3950 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3951 __*_chk_warn instead of __*_chk if compile time detectable overflow
3953 (__getgroups_chk): Rename argument to __listlen from listlen.
3954 (__getwd_alias): Rename to...
3955 (__getwd_warn): ... this. Add __warnattr.
3956 (getwd): Call __getwd_warn instead of __getwd_alias.
3957 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3958 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3959 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3960 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3961 __wcsnrtombs_chk_warn): New aliases with __warnattr.
3962 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3963 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3964 compile time detectable overflow is found.
3965 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
3966 to use __*_chk or not.
3967 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3968 in comparisons which function should be called and in __*_chk*
3969 arguments. Call __*_chk_warn instead of __*_chk if compile time
3970 detectable overflow is found.
3971 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3973 * debug/tst-chk1.c (do_test): Add a few more tests.
3975 2007-09-24 Ulrich Drepper <drepper@redhat.com>
3978 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3979 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3980 (_nl_unload_domain): Finalize conversions_lock.
3981 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3982 handling table of known conversions.
3984 2007-09-24 Jakub Jelinek <jakub@redhat.com>
3986 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3987 close_not_cancel_no_status instead of close.
3989 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
3992 * posix/regcomp.c (lookup_collation_sequence_value): Check that
3993 nrules != 0 for multibyte chars.
3995 2007-09-23 Ulrich Drepper <drepper@redhat.com>
3997 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3998 Provide better error message in case the type is unknown.
4001 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4002 * string/stratcliff.c: Make usable to test wide char functions.
4003 * wcsmbs/wcsatcliff.c: New file.
4004 * wcsmbs/Makefiel (tests): Add wcsatcliff.
4007 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4008 (distribute): Add mac-centraleurope.c.
4009 (gen-8bit-gap-modules): Add mac-centraleurope.
4010 * iconvdata/mac-centraleurope.c: New file.
4011 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4012 * iconvdata/TESTS: Likewise.
4013 * iconvdata/tst-tables.sh: Likewise.
4016 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4018 2007-09-21 Ulrich Drepper <drepper@redhat.com>
4020 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4021 from __x86_64_core_cache_size_half.
4022 (init_cacheinfo): Compute shared cache size for AMD processors with
4023 shared L3 correctly.
4024 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4026 Patch in large parts by Evandro Menezes.
4028 2007-09-19 Ulrich Drepper <drepper@redhat.com>
4030 * elf/dl-lookup.c (add_dependency): Handle failing memory
4031 allocation for dependency list. Remove unnecessary check.
4033 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4034 open/close when determining source addresses.
4036 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4037 sha512-crypt, and sha512.
4038 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4039 (distribute): Add sha256.h and sha512.h.
4040 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4041 and call the appropriate code.
4042 * crypt/sha256-crypt.c: New file.
4043 * crypt/sha256.c: New file.
4044 * crypt/sha256.h: New file.
4045 * crypt/sha256c-test.c: New file.
4046 * crypt/sha256test.c: New file.
4047 * crypt/sha512-crypt.c: New file.
4048 * crypt/sha512.c: New file.
4049 * crypt/sha512.h: New file.
4050 * crypt/sha512c-test.c: New file.
4051 * crypt/sha512test.c: New file.
4053 2007-09-19 Jakub Jelinek <jakub@redhat.com>
4055 * misc/bits/syslog.h (syslog): Remove extraneous argument from
4056 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4059 2007-09-18 Jakub Jelinek <jakub@redhat.com>
4061 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4062 %as in fscanf format strings.
4064 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4065 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4066 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4068 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4071 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4072 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4073 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4074 * elf/dl-sym.c (do_sym): Likewise.
4075 * include/link.h (struct link_map): Add l_serial field.
4076 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4077 * elf/dl-lookup.c (add_dependency): Add flags argument.
4078 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4079 flags, use THREAD_GSCOPE_RESET_FLAG before and
4080 THREAD_GSCOPE_SET_FLAG after
4081 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4082 Don't dereference map until it has been found on some list.
4083 If map->l_serial changed, return -1.
4085 2007-09-17 Jakub Jelinek <jakub@redhat.com>
4087 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4088 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4089 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4091 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4092 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4093 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4094 add libc_hidden_proto.
4095 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4096 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4097 conformance requested.
4098 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4099 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4100 conformance requested.
4101 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4102 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4103 conformance requested.
4104 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4105 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4106 ISO C99 or POSIX conformance requested.
4107 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4108 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4109 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4110 and __isoc99_vsscanf@@GLIBC_2.7.
4111 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4112 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4113 (tests): Add scanf14.
4114 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4115 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4116 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4117 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4118 CFLAGS-isoc99_scanf.c): Add $(exceptions).
4119 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4120 from using internal headers.
4121 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4122 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4123 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4124 and __isoc99_vswscanf@@GLIBC_2.7.
4125 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4126 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4127 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4128 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4129 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4130 * stdio-common/isoc99_scanf.c: New file.
4131 * stdio-common/isoc99_vsscanf.c: New file.
4132 * stdio-common/isoc99_vscanf.c: New file.
4133 * stdio-common/isoc99_vfscanf.c: New file.
4134 * stdio-common/isoc99_fscanf.c: New file.
4135 * stdio-common/isoc99_sscanf.c: New file.
4136 * wcsmbs/isoc99_fwscanf.c: New file.
4137 * wcsmbs/isoc99_vswscanf.c: New file.
4138 * wcsmbs/isoc99_swscanf.c: New file.
4139 * wcsmbs/isoc99_wscanf.c: New file.
4140 * wcsmbs/isoc99_vwscanf.c: New file.
4141 * wcsmbs/isoc99_vfwscanf.c: New file.
4142 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4143 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4144 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4145 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4146 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4147 * stdio-common/scanf14.c: New test.
4148 * stdio-common/scanf15.c: New test.
4149 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4150 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4151 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4152 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4153 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4154 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4155 __nldbl___isoc99_scanf@@GLIBC_2.7,
4156 __nldbl___isoc99_fscanf@@GLIBC_2.7,
4157 __nldbl___isoc99_sscanf@@GLIBC_2.7,
4158 __nldbl___isoc99_vscanf@@GLIBC_2.7,
4159 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4160 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4161 __nldbl___isoc99_wscanf@@GLIBC_2.7,
4162 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4163 __nldbl___isoc99_swscanf@@GLIBC_2.7,
4164 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4165 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4166 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4167 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4168 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4169 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4170 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4171 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4172 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4173 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4174 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4175 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4176 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4177 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4178 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4180 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4181 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4182 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4183 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4184 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4185 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4186 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4187 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4188 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4189 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4190 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4191 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4193 * stdio-common/Makefile (tests): Add scanf13.
4195 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4196 m modifier followed by l.
4197 (STRING_ARG): Add width argument.
4198 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4199 <case L_('C')>: Handle %mlc and %mC.
4200 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4202 * stdio-common/scanf13.c: New test.
4204 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4205 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4207 2007-09-18 Ulrich Drepper <drepper@redhat.com>
4209 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4210 type and __THROW marker of splice, vmsplice, and tee.
4211 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4212 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4213 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4214 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4215 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4216 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4217 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4218 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4219 as cancellation points.
4221 2003-11-01 Daniel Jacobowitz <dan@debian.org>
4223 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4224 parse more than three parts of the version number.
4226 2007-09-15 Ulrich Drepper <drepper@redhat.com>
4228 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4229 modifier. Patch by Jakub Jelinek.
4231 2007-08-26 Jakub Jelinek <jakub@redhat.com>
4233 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4234 call_fallocate in misc subdir.
4235 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4236 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4237 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4238 instead of __fallocate64.
4239 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4241 2007-09-15 Jakub Jelinek <jakub@redhat.com>
4243 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4244 * rt/Makefile (headers): Add bits/mqueue2.h.
4245 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4246 optimizing with GCC and __va_arg_pack_len is defined.
4247 * rt/bits/mqueue2.h: New file.
4248 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4249 (mq_open): New strong_alias.
4250 (__mq_open_2): New function.
4251 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4252 (mq_open): New strong_alias.
4253 (__mq_open_2): New function.
4254 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4255 * Versions.def (librt): Add GLIBC_2.7 version.
4256 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4257 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4259 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4260 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4261 is defined rather than when not C++.
4262 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4263 __openat64_alias): New redirects.
4264 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4265 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4266 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4267 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4268 functions instead of function-like macros.
4270 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4272 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4273 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4274 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4276 2007-09-15 Mike Frysinger <vapier@gentoo.org>
4278 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4279 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4281 2007-09-14 Mike Frysinger <vapier@gentoo.org>
4283 * inet/tst-network.c: Increment ERRORS for failing tests.
4285 2007-09-07 Jakub Jelinek <jakub@redhat.com>
4287 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4288 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4289 implement as __extern_always_inline function.
4290 (vsyslog): Define as __extern_always_inline function unconditionally.
4291 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4292 When __va_arg_pack is defined, implement as __extern_always_inline
4294 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4295 __extern_always_inline functions unconditionally.
4296 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4297 bits/stdio2.h will be included.
4298 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4299 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4300 implement as __extern_always_inline functions.
4301 (vswprintf, vwprintf, vfwprintf): Define as
4302 __extern_always_inline functions unconditionally.
4303 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4305 2007-09-03 Jakub Jelinek <jakub@redhat.com>
4307 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4308 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4310 * include/features.h (__USE_EXTERN_INLINES): Define only when
4311 __extern_inline is defined.
4312 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4313 is defined instead of when not __cplusplus.
4314 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4315 is defined instead of when not __cplusplus.
4316 * socket/sys/socket.h: Include bits/socket2.h when
4317 __extern_always_inline is defined instead of when not __cplusplus.
4318 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4319 is defined instead of when not __cplusplus.
4320 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4321 is defined instead of when not __cplusplus.
4322 * string/string.h: Include bits/string3.h when __extern_always_inline
4323 is defined instead of when not __cplusplus.
4324 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4325 is defined instead of when not __cplusplus.
4326 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4327 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4329 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4330 defined __extern_always_inline instead of !defined __cplusplus.
4331 * libio/bits/stdio-ldbl.h: Likewise.
4332 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4333 * misc/bits/syslog.h (syslog): Don't define for C++.
4334 (vsyslog): Use __extern_always_inline function for C++ instead of
4336 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4337 whenever that macro is defined.
4338 (vprintf): Don't provide the inline for C++.
4339 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4340 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4341 define the macros for C++.
4342 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4343 __extern_always_inline functions for C++.
4344 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4345 stat64, lstat64, fstat64, fstatat64): Don't define if not
4346 __USE_EXTERN_INLINES.
4347 * wcsmbs/bits/wchar2.h: Fix #error message.
4348 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4349 (vswprintf, vwprintf, vfwprintf): Define using
4350 __extern_always_inline functions for C++.
4351 * string/bits/string3.h: Don't #undef macros if __cplusplus.
4352 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4353 strncpy, strcat, strncat): Define as __extern_always_inline
4354 functions instead of macros for C++.
4355 * math/bits/cmathcalls.h: Guard __extern_inline routines with
4356 defined __extern_inline.
4357 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4358 to __extern_inline whenever that macro is defined.
4359 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4360 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4361 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4362 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4363 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4364 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4365 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4366 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4367 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4368 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4369 prototypes. Only provide __extern_inline routines if
4370 __USE_EXTERN_INLINES.
4371 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4373 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4374 For now avoid some *printf tests in C++. Skip all testing
4375 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4377 * debug/tst-chk4.cc: New file.
4378 * debug/tst-chk5.cc: New file.
4379 * debug/tst-chk6.cc: New file.
4380 * debug/tst-lfschk4.cc: New file.
4381 * debug/tst-lfschk5.cc: New file.
4382 * debug/tst-lfschk6.cc: New file.
4383 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4385 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4386 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4387 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4389 2007-09-13 Ulrich Drepper <drepper@redhat.com>
4391 * po/cs.po: Update from translation team.
4393 2007-09-11 Roland McGrath <roland@redhat.com>
4395 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4398 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4400 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4402 2007-09-05 Roland McGrath <roland@redhat.com>
4404 * manual/signal.texi (Signaling Another Process): Typo fix.
4405 From Karl Berry <karl@freefriends.org>.
4407 2007-08-29 Ulrich Drepper <drepper@redhat.com>
4409 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4410 zero if not defined.
4411 (make_request): Recognize optimistic addresses and treat them like
4412 deprecated addresses.
4413 Reported by Neil Horman <nhorman@redhat.com>.
4415 2007-08-28 Ulrich Drepper <drepper@redhat.com>
4417 * nscd/connections.c (send_ro_fd): Also transfer file size.
4418 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4419 file size don't call fstat.
4421 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4422 ahead and map the file. This should always be correct and we can
4423 catch problems later.
4425 2007-08-28 Jakub Jelinek <jakub@redhat.com>
4427 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4429 (__fread_alias, __fread_unlocked_alias): New aliases.
4430 (fread): New extern inline.
4431 (fread_unlocked): Likewise. Undef macro before definition of
4432 the inline function.
4433 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4434 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4435 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4436 and __fread_unlocked_chk@@GLIBC_2.7.
4437 * debug/fread_chk.c: New file.
4438 * debug/fread_u_chk.c: New file.
4439 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4441 2007-08-27 Jakub Jelinek <jakub@redhat.com>
4443 * sysdeps/unix/sysv/linux/syscalls.list
4444 (personality): Change caller to EXTRA.
4446 2007-08-25 Ulrich Drepper <drepper@redhat.com>
4448 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4450 * iconvdata/iso-2022-cn.c (BODY): Likewise.
4452 * locale/programs/ld-collate.c (collate_output): Avoid warning if
4455 * Makerules: Use -p option with mkdir.
4457 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4458 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4459 (_xdr_directory_obj): Likewise.
4460 (xdr_entry_obj): Likewise.
4461 (xdr_group_obj): Likewise.
4462 (xdr_link_obj): Likewise.
4463 (xdr_table_obj): Likewise.
4464 (_xdr_nis_result): Likewise.
4465 (_xdr_ns_request): Likewise.
4466 (_xdr_ib_request): Likewise.
4467 (_xdr_nis_taglist): Likewise.
4468 (xdr_cback_data): Likewise.
4469 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4470 (xdr_ypresp_maplist): Likewise.
4472 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4474 * posix/regex_internal.h: Prevent some declarations and definitions
4475 to be seen when used in tests.
4477 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4478 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4480 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4482 * config.make.in (datarootdir): Add to shut up configure.
4484 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4485 associativity for fully-associative caches.
4487 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4488 requests. Fill on more associativity values for L2.
4489 Patch mostly by Evandro Menezes.
4491 2007-08-24 Ulrich Drepper <drepper@redhat.com>
4493 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4494 (_libc_vdso_platform_setup): Avoid using exported variable by using
4497 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4499 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4500 fallocate64 as EXTRA. It is not referenced if the symbol isn't
4503 2007-08-23 Ulrich Drepper <drepper@redhat.com>
4505 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4506 align stack for call if pltexit is to be used.
4509 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4510 align for function call in case pltexit has to be called later.
4512 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4513 implicit atomic operation when storing function pointer.
4514 (_dl_runtime_profile): Likewise.
4516 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4518 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4521 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4524 * string/strtok.c: Fix typo in comment.
4527 * debug/segfault.c: Fix typos in comments.
4530 * stdio-common/tempnam.c: Fix comment, it is not checked that
4531 TMPDIR points to a writable directory.
4534 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4535 memory allocated for the name server address.
4538 * nscd/connections.c (handle_request): Using sendfile always
4539 requires that mmap is used for the database.
4540 Patch by Petr Baudis <pasky@suse.cz>.
4543 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4544 suddenly has two or more addresses, ignore it and remove the old
4548 * resolv/res_hconf.c: Prepare for compiling outside libc.
4549 * nscd/res_hconf.c: New file.
4550 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4552 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4553 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4555 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4558 * debug/pcprofiledump.c: Turn on internationalization by calling
4559 setlocale. Patch mostly by Benno Schulenberg.
4562 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4564 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4565 * iconvdata/bug-iconv5.c: New file.
4567 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4570 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4571 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4572 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4573 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4574 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4575 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4576 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4577 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4579 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4582 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4583 lookup loop. Suggested by John Reiser.
4585 2007-08-21 Jakub Jelinek <jakub@redhat.com>
4587 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4589 2007-08-20 Ulrich Drepper <drepper@redhat.com>
4591 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4592 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4593 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4594 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4595 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4597 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4599 2007-08-18 Ulrich Drepper <drepper@redhat.com>
4601 * po/nl.po: Update from translation team.
4603 2007-08-16 Andreas Jaeger <aj@suse.de>
4605 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4606 Reported by Peter Festner <peter.festner@ewetel.net>.
4608 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4610 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4612 2007-08-16 Jakub Jelinek <jakub@redhat.com>
4614 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4615 to check for undefined symbols.
4617 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4618 If the syscall fails, set errno to the actual returned error number
4620 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4621 arguments are incorrect, set errno to EINVAL, if the syscall
4622 fails, set errno to the actual returned error number.
4624 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4625 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4627 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4628 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4630 (ASI_PNF, ASI_BLK_P): Don't define.
4631 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4632 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4634 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4635 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4638 2007-08-15 Jakub Jelinek <jakub@redhat.com>
4640 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4641 FE_UNDERFLOW on Niagara CPUs.
4643 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4646 2007-08-14 Jakub Jelinek <jakub@redhat.com>
4648 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4649 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4650 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4651 flush should be used or not inside of the function.
4652 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4654 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4655 __thread_start): Use HIDDEN_JUMPTARGET.
4656 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4657 __thread_start): Likewise.
4658 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4660 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4661 Add libc_hidden_proto.
4662 (STRTOF): Add libc_hidden_proto.
4663 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4664 (strtold_l, wcstold_l): Use them as second argument for
4667 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4669 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4671 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4673 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4675 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4677 * po/bg.po: New file. From the translation team.
4679 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4681 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4682 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4683 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4684 when each feature was introduced.
4686 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4687 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4688 (CHECK_HASH): New macro.
4689 (PREPARE_VERSION): Use it.
4691 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4692 prototype if not __ASSUME_PSELECT.
4693 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4694 prototype if not __ASSUME_PPOLL.
4696 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4698 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4699 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4702 2007-08-13 Ulrich Drepper <drepper@redhat.com>
4704 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4705 (_libc_vdso_platform_setup): If vDSO is not available point
4706 __vdso_gettimeofday to the vsyscall.
4707 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4708 __vdso_gettimeofday instead of vsyscall.
4710 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4712 * nscd/servicescache.c: Include kernel-features.h.
4713 * nscd/gai.c: Likewise.
4714 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4715 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4716 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4717 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4718 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4719 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4720 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4721 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4722 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4724 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4726 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4727 and _dl_get_origin defines anymore.
4729 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4730 Build fix for systems which might lack POSIX timer support.
4732 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4733 (_libc_vdso_platform_setup): Mangle function pointers before storing
4735 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4736 Demangle vdso pointer before use.
4737 (INTERNAL_VSYSCALL): Likewise.
4739 * elf/cache.c (primes): Mark as const.
4740 Noted by Roland McGrath.
4742 2007-08-01 Andreas Jaeger <aj@suse.de>
4743 Jakub Jelinek <jakub@redhat.com>
4745 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4746 (options): Add option.
4747 (parse_opt): Handle option.
4748 (manual_link): Adjust process_file caller. Call implicit_soname.
4749 (search_dir): Formatting. Use and populate auxiliary cache.
4750 (main): Load and save auxiliary cache.
4751 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
4752 stat64 from fstat64 to caller.
4753 (implicit_soname): New function.
4754 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4755 leave *soname as NULL.
4756 * elf/cache.c: Include libgen.h.
4757 (print_entry, print_cache, compare, save_cache, add_to_cache):
4758 Formatting and cleanups.
4759 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4760 aux_cache_file): New structures.
4761 (AUX_CACHEMAGIC): Define.
4762 (primes): New array.
4763 (aux_hash_size, aux_hash): New variables.
4764 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4765 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4766 load_aux_cache, save_aux_cache): New functions.
4767 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4768 (init_aux_cache, search_aux_cache, add_to_aux_cache,
4769 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4770 (process_file): Adjust prototype.
4772 2007-08-12 Jakub Jelinek <jakub@redhat.com>
4774 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4777 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4779 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4780 r_found_version structure as second parameter.
4781 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4782 (_dl_vdso_vsym): Change type of second parameter accordingly.
4783 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4784 (_libc_vdso_platform_setup): Adjust.
4785 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4786 (_libc_vdso_platform_setup): Likewise.
4788 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4789 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4790 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4791 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4792 * csu/libc-start.c: Pretty printing.
4793 Use VDSO_SETUP if defined.
4794 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4795 and let generic code call into _libc_vdso_platform_setup.
4796 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4797 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4798 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4799 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4800 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4802 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4803 (sysdep_rountines): Add dl-vdso.
4805 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4808 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4809 attribute_hidden to __vdso_gettimeofday prototype.
4811 2007-08-12 Roland McGrath <roland@redhat.com>
4813 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4814 From: Karl Berry <karl@freefriends.org>.
4816 2007-08-11 Ulrich Drepper <drepper@redhat.com>
4818 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4819 an atime update for the files we read.
4821 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4823 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4825 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
4828 * misc/Makefile (routines): Add mkostemp and mkostemp64.
4829 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4830 * misc/mkostemp.c: New file.
4831 * misc/mkostemp64.c: New file.
4832 * stdlib/stdlib.h: Declare the new functions.
4833 * sysdeps/posix/tempname.c: Add new parameter which is added to
4834 the flags for open. Remove __GT_BIGFILE handling.
4835 * stdio-common/tempname.c: Likewise.
4836 * include/stdio.h: Adjust __gen_tempname prototype.
4837 Renumber __GT_* constants.
4838 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4839 * misc/mkdtemp.c: Likewise.
4840 * misc/mkstemp.c: Likewise.
4841 * misc/mkstemp64.c: Likewise.
4842 * misc/mktemp.c: Likewise.
4843 * stdio-common/tempnam.c: Likewise.
4844 * stdio-common/tmpfile.c: Likewise.
4845 * stdio-common/tmpfile64.c: Likewise.
4846 * stdio-common/tmpnam.c: Likewise.
4847 * stdio-common/tmpnam_r.c: Likewise.
4849 2007-08-10 Roland McGrath <roland@frob.com>
4851 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4853 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4854 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4856 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4858 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4860 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4861 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4862 * nss/nss_files/files-have_o_cloexec.c: New file.
4864 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4867 2007-08-10 Jakub Jelinek <jakub@redhat.com>
4869 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4870 ___new_wcstold_l): New weak aliases.
4871 (strtold_l, wcstold_l): Use them as second argument for
4874 2007-08-09 Ulrich Drepper <drepper@redhat.com>
4876 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4877 register in test for error.
4879 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4880 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4882 * po/sv.po: Update from translation team.
4884 2007-08-06 Roland McGrath <roland@redhat.com>
4886 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4887 Remove __strto*_l inlines.
4888 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4889 * stdlib/strtod.c: Add libc_hidden_def.
4890 * stdlib/strtod_l.c: Likewise.
4891 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4892 for __new_strtold and __new_wcstold.
4893 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4895 * stdlib/strtol.c: Add libc_hidden_def.
4896 * stdlib/strtol_l.c: Likewise.
4897 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4900 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4902 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4903 * scripts/data/localplt-generic.data: ... here.
4904 * elf/Makefile (check-data): Get generic file if no other.
4905 ($(objpfx)check-localplt.out): Make target unconditional.
4907 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4910 2007-08-05 Ulrich Drepper <drepper@redhat.com>
4912 * po/zh_CN.po: Updated translation from translation team.
4914 2007-08-05 Jakub Jelinek <jakub@redhat.com>
4916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4917 Don't use CGOTSETUP and CGOTRESTORE macros.
4919 2007-08-04 Roland McGrath <roland@redhat.com>
4921 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4923 2007-08-04 Jakub Jelinek <jakub@redhat.com>
4925 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4926 __extension__ around the whole statement expression.
4928 2007-08-04 Ulrich Drepper <drepper@redhat.com>
4930 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4931 elements during initialization.
4933 * po/pl.po: Updated translation from translation team.
4934 * po/tr.po: Likewise.
4935 * po/nl.po: Likewise.
4937 2007-08-03 Ulrich Drepper <drepper@redhat.com>
4939 * rt/aio.h: Add __nonnull attributes.
4941 2007-08-03 Jakub Jelinek <jakub@redhat.com>
4943 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4944 * stdlib/Makefile (tests): Add tst-strtod5.
4945 (tst-strtod5-ENV): New.
4946 * stdlib/tst-strtod5.c: New file.
4948 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4950 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4953 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4956 2007-08-03 Jakub Jelinek <jakub@redhat.com>
4958 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4961 2007-08-02 Ulrich Drepper <drepper@redhat.com>
4963 * io/Makefile (aux): Add have_o_cloexec.
4964 * include/fcntl.h: Declare __have_o_cloexec.
4965 * io/have_o_cloexec.c: New file.
4966 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4967 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4968 fcntl call if not necessary.
4969 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4972 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4973 Avoid memset, add explicit initialization.
4974 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4975 to the end and change into zero-sized array.
4976 Move lock member to fill a hole on 64-bit platforms.
4978 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4980 * include/stdlib.h: Add __strto*_internal prototypes here.
4981 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4983 * include/wchar.h: Add __wcsto*_internal prototypes.
4984 * sysdeps/generic/inttypes.h: No need to protect the declaration
4985 of the __strto*_internal and __wcsto*_internal members here.
4987 * rt/mqueue.h: Change const to __const and add nonnull attributes.
4989 2007-08-02 Roland McGrath <roland@redhat.com>
4991 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4992 $(inst_bindir)/getconf if possible.
4994 * posix/Makefile ($(objpfx)getconf.speclist): New target.
4995 (generated): Add it.
4996 ($(inst_libexecdir)/getconf): Use it.
4998 2007-08-01 Ulrich Drepper <drepper@redhat.com>
5000 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5001 /proc is faster and sufficient. /sys is still needed for
5004 2007-08-01 Jakub Jelinek <jakub@redhat.com>
5006 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5007 syscall as __fallocate64.
5008 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5009 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5011 2007-07-30 Jakub Jelinek <jakub@redhat.com>
5013 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5016 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5017 if off_t is different rank from size_t.
5019 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5020 uw_frame_state_for): Avoid type punning warnings.
5021 * sysdeps/generic/unwind-dw2-fde-glibc.c
5022 (_Unwind_IteratePhdrCallback): Likewise.
5023 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5024 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5025 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5028 2007-07-31 Ulrich Drepper <drepper@redhat.com>
5030 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5031 total processors using sysfs.
5032 (__get_nprocs): Use sysfs to determine which processors are online.
5034 2007-07-31 Jakub Jelinek <jakub@redhat.com>
5036 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5037 syscall arguments count.
5039 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5041 2007-07-30 Roland McGrath <roland@redhat.com>
5043 * manual/libc.texinfo: Update copyrights, formatting magic, and
5044 @dircategory. From Karl Berry <karl@freefriends.org>.
5046 2007-07-29 Ulrich Drepper <drepper@redhat.com>
5049 * io/Makefile (headers): Add bits/fcntl2.h.
5051 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5053 (__CPU_EQUAL_S): Likewise.
5055 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5056 (tests): Add tst-cpuset.
5057 * posix/sched_cpualloc.c: New file.
5058 * posix/sched_cpufree.c: New file.
5059 * posix/tst-cpuset.c: New file.
5060 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5062 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5063 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5064 macros. Define CPU_*_S macros.
5066 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5068 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5072 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5073 #.0g and value rounded to 1.0.
5074 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5076 2007-07-26 Jakub Jelinek <jakub@redhat.com>
5078 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5079 for int_frac_digits and frac_digits.
5081 * login/logout.c (logout): Avoid aliasing violation.
5082 * login/logwtmp.c (logwtmp): Likewise.
5084 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5086 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5088 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5090 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5092 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5095 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5097 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5099 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5100 char * to avoid warning.
5101 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5103 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5105 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5106 allocate_arrays): Cast second argument to charmap_find_symbol
5107 to char * to avoid warnings.
5109 * locale/programs/repertoire.c (repertoire_new_char): Change
5110 from_nr, to_nr and cnt to unsigned long, adjust printf format
5113 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5114 Cast second argument to new_element to char * to avoid warnings.
5116 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5118 * intl/gettextP.h (struct loaded_domain): Change plural to const
5119 struct expression *.
5120 * intl/plural-eval.c (plural_eval): Change first argument to
5121 const struct expression *.
5122 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5123 argument to const struct expression **.
5124 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5126 * intl/loadmsgcat (_nl_unload_domain): Cast away const
5127 in call to __gettext_free_exp.
5129 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5130 unitialized wstring/wpattern var warnings.
5132 * posix/runtests.c (struct a_test): Make data field const char *.
5134 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5135 vars if not LDBL_MANT_DIG >= 106.
5137 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5139 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5140 __find_specmb to avoid warning.
5142 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5144 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5147 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5150 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5151 tv var when it will be actually used.
5153 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5156 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5157 char array resp. pointer.
5158 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5160 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5161 to const unsigned char **.
5162 (ucs4_to_cns11643): Change second argument to unsigned char *.
5163 * iconvdata/euc-tw.c (BODY): Change endp type to
5164 const unsigned char *.
5165 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5167 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5168 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5169 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5170 types to unsigned char pointers/arrays instead of char.
5171 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5173 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5174 * iconvdata/jis0212.h: Include assert.h.
5175 (ucs4_to_jisx0212): Change second argument to unsigned char *.
5176 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5177 of trying to handle that.
5178 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5180 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5181 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5182 two dimensional const unsigned char arrays.
5183 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5184 Initialize endp to inptr to shut up a warning.
5186 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5189 * time/strptime_l.c (__strptime_internal): Silently ignore
5190 strftime modifiers and field width in recursive calls.
5192 * include/time.h (enum ptime_locale_status): Remove.
5193 (__strptime_internal): Remove decided and era_cnt arguments,
5194 add statep argument.
5195 * time/strptime_l.c (__strptime_internal): Remove decided
5196 and era_cnt arguments, add statep argument. Don't recompute
5197 any fields in recursive calls, only update caller's tm
5198 and state, if recursive call fails, don't change tm nor
5200 (get_alt_number): Adjust.
5201 (recursive): Adjust caller.
5202 (strptime): Likewise.
5203 * time/strptime.c (strptime): Likewise.
5205 2007-07-19 Jakub Jelinek <jakub@redhat.com>
5207 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5208 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5209 if from and to charsets are the same.
5210 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5211 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5212 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5214 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5216 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5217 Don't define wint_t when __need_mbstate_t unless it
5219 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5220 in the typedef if possible.
5221 * wctype/wctype.h (wint_t): Define by including
5222 wchar.h with __need_wint_t instead of including stddef.h
5223 with __need_wint_t and as fallback definining it ourselves.
5224 * iconv/gconv.h (__need_wint_t): Define before including
5226 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5227 or _GLIBCPP_USE_WCHAR_T.
5228 (__need_wchar_t): Don't define
5229 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5230 (__need_wint_t): Don't define before including stddef.h,
5231 define before including wchar.h only if _LIBC or
5232 _GLIBCPP_USE_WCHAR_T.
5233 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5234 * sysdeps/mach/hurd/_G_config.h: Likewise.
5235 * sysdeps/generic/_G_config.h: Likewise.
5236 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5237 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5238 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5239 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5241 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5243 * sysdeps/posix/posix_fallocate64.c: Undefine
5244 __posix_fallocate64_l64 before alias handling.
5245 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5246 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5247 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5248 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5250 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5252 2007-07-23 Jakub Jelinek <jakub@redhat.com>
5254 * locale/programs/ld-collate.c (atwc): New variable.
5255 (add_to_tablewc): New toplevel function, moved from collate_output.
5256 (collate_output): Remove add_to_tablewc nested function.
5258 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5259 (name_insert): New function.
5260 (write_output): Remove hash_table and hash_size vars and name_insert
5263 2007-07-24 Roland McGrath <roland@redhat.com>
5265 * Makerules (install-others-programs-nosubdir): New target.
5266 (install-no-libc.a-nosubdir): Depend on it.
5268 * iconv/Makefile (install-others-programs): Set this instead of
5270 * login/Makefile (install-others-programs): Likewise.
5271 * posix/Makefile (install-others-programs): Likewise.
5273 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5276 2007-07-23 Ulrich Drepper <drepper@redhat.com>
5278 * io/Makefile (tests): Add tst-posix_fallocate.
5279 * io/tst-posix_fallocate.c: New file.
5281 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5284 2007-07-22 Roland McGrath <roland@frob.com>
5286 * hurd/getdport.c: Add missing copyright year update.
5288 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5289 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5291 2007-07-22 Ulrich Drepper <drepper@redhat.com>
5293 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5295 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5296 O_CLOEXEC is needed.
5297 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5298 Avoid additional fcntl to set O_CLOEXEC if not needed.
5299 * nis/nss_compat/compat-initgroups.c: Likewise.
5300 * nis/nss_compat/compat-pwd.c: Likewise.
5301 * nis/nss_compat/compat-spwd.c: Likewise.
5303 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5306 * manual/errno.texi: Change ECANCELED value to 119.
5309 * mach/lock-intern.h: Include <sys/cdefs.h>.
5312 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5316 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5319 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5321 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
5323 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5325 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5327 2007-07-21 Ulrich Drepper <drepper@redhat.com>
5329 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5330 descriptor received from nscd.
5332 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5334 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5335 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5336 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5337 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5338 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5339 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5341 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5344 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5347 * login/forkpty.c (forkpty): Close master and slave fds on
5348 fork failure. Patch by
5349 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5351 2007-07-18 Jakub Jelinek <jakub@redhat.com>
5353 * include/features.h (__USE_ISOC95): New define.
5354 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5355 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5356 for -std=iso9899:199409.
5357 * CONFORMANCE: Remove comments about unsupported AMD1.
5359 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5361 * sysdeps/ia64/sched_cpucount.c: New file.
5362 * sysdeps/powerpc/sched_cpucount.c: New file.
5364 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5365 __BEGIN_DECLS/__END_DECLS around the prototype.
5366 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
5367 pointer to const cpu_set_t.
5369 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5370 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5371 __need_size_t and include stddef.h.
5372 * sysvipc/sys/msg.h: Likewise.
5373 * posix/sched.h: Likewise.
5374 * hurd/hurd/signal.h (__need_size_t): Define.
5376 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5377 neither does signal.h in pedantic ISO C namespaces. stdio.h
5378 no longer defines wint_t or wchar_t.
5380 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5381 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5382 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5383 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5384 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5385 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5386 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5387 * debug/printf_chk.c (__printf_chk): Likewise.
5388 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5389 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5391 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5394 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5395 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5397 2007-07-16 Jakub Jelinek <jakub@redhat.com>
5400 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5401 * malloc/malloc.h (realloc): Likewise.
5403 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5404 if one of proc_file_chain streams has that fileno.
5405 * stdio-common/Makefile (tests): Add tst-popen2.
5406 * stdio-common/tst-popen2.c: New test.
5408 2007-07-14 Jakub Jelinek <jakub@redhat.com>
5410 * elf/ldconfig.c: Allow GPLv2 or any later version.
5411 * elf/readlib.c: Likewise.
5412 * elf/chroot_canon.c: Likewise.
5413 * elf/cache.c: Likewise.
5414 * nscd/mem.c: Likewise.
5415 * nscd/getpwuid_r.c: Likewise.
5416 * nscd/grpcache.c: Likewise.
5417 * nscd/aicache.c: Likewise.
5418 * nscd/getsrvbynm_r.c: Likewise.
5419 * nscd/nscd.c: Likewise.
5420 * nscd/servicescache.c: Likewise.
5421 * nscd/getsrvbypt_r.c: Likewise.
5422 * nscd/initgrcache.c: Likewise.
5423 * nscd/gethstbyad_r.c: Likewise.
5424 * nscd/gethstbynm2_r.c: Likewise.
5425 * nscd/getgrnam_r.c: Likewise.
5426 * nscd/nscd_setup_thread.c: Likewise.
5427 * nscd/getpwnam_r.c: Likewise.
5428 * nscd/gai.c: Likewise.
5429 * nscd/connections.c: Likewise.
5430 * nscd/dbg_log.c: Likewise.
5431 * nscd/cache.c: Likewise.
5432 * nscd/hstcache.c: Likewise.
5433 * nscd/nscd_conf.c: Likewise.
5434 * nscd/getgrgid_r.c: Likewise.
5435 * nscd/pwdcache.c: Likewise.
5436 * catgets/gencat.c: Likewise.
5437 * locale/programs/linereader.h: Likewise.
5438 * locale/programs/locarchive.c: Likewise.
5439 * locale/programs/ld-paper.c: Likewise.
5440 * locale/programs/locfile-kw.h: Likewise.
5441 * locale/programs/ld-address.c: Likewise.
5442 * locale/programs/xmalloc.c: Likewise.
5443 * locale/programs/ld-time.c: Likewise.
5444 * locale/programs/localedef.c: Likewise.
5445 * locale/programs/simple-hash.c: Likewise.
5446 * locale/programs/xstrdup.c: Likewise.
5447 * locale/programs/ld-numeric.c: Likewise.
5448 * locale/programs/locfile-kw.gperf: Likewise.
5449 * locale/programs/ld-collate.c: Likewise.
5450 * locale/programs/charmap-kw.gperf: Likewise.
5451 * locale/programs/charmap.h: Likewise.
5452 * locale/programs/charmap-kw.h: Likewise.
5453 * locale/programs/config.h: Likewise.
5454 * locale/programs/locfile.c: Likewise.
5455 * locale/programs/ld-ctype.c: Likewise.
5456 * locale/programs/charmap.c: Likewise.
5457 * locale/programs/ld-messages.c: Likewise.
5458 * locale/programs/repertoire.h: Likewise.
5459 * locale/programs/locale.c: Likewise.
5460 * locale/programs/ld-name.c: Likewise.
5461 * locale/programs/linereader.c: Likewise.
5462 * locale/programs/locfile.h: Likewise.
5463 * locale/programs/3level.h: Likewise.
5464 * locale/programs/ld-monetary.c: Likewise.
5465 * locale/programs/ld-measurement.c: Likewise.
5466 * locale/programs/charmap-dir.c: Likewise.
5467 * locale/programs/ld-identification.c: Likewise.
5468 * locale/programs/localedef.h: Likewise.
5469 * locale/programs/charmap-dir.h: Likewise.
5470 * locale/programs/repertoire.c: Likewise.
5471 * locale/programs/simple-hash.h: Likewise.
5472 * locale/programs/ld-telephone.c: Likewise.
5473 * locale/programs/locale-spec.c: Likewise.
5474 * locale/programs/locfile-token.h: Likewise.
5475 * posix/getconf.c: Likewise.
5476 * iconv/dummy-repertoire.c: Likewise.
5477 * iconv/iconv_charmap.c: Likewise.
5478 * iconv/iconvconfig.c: Likewise.
5479 * iconv/iconv_prog.c: Likewise.
5480 * malloc/memusagestat.c: Likewise.
5481 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5483 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5485 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5486 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5487 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5488 check for the first argument.
5490 2007-07-12 Jakub Jelinek <jakub@redhat.com>
5493 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5494 (__tgmath_real_type): Fix if expr is const int or other const
5495 qualified integral type.
5496 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5497 expressions and handle const qualified arguments.
5498 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5499 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5500 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5501 statement expressions.
5502 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5503 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5504 (__TGMATH_UNARY_IMAG): Define.
5505 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5506 * math/Makefile (tests): Add test-tgmath2.
5507 (CFLAGS-test-tgmath2.c): Add.
5508 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5509 count_cfloat, count_cldouble): New variables.
5511 (main): Check number of complex calls as well.
5512 (F(compile_test)): Add complex tests and tests with const qualified
5514 (y, z, ccount): Define.
5515 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5516 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5517 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5518 F(cproj)): New functions.
5519 * math/test-tgmath2.c: New test.
5521 2007-07-11 Jakub Jelinek <jakub@redhat.com>
5524 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5525 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5527 * dlfcn/Makefile (distribute): Add glreflib3.c.
5528 (module-names): Add glreflib3.
5529 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5531 (LDFLAGS_glreflib3.so): New.
5532 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5534 * dlfcn/glreflib3.c: New file.
5536 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5537 returned -1, return NULL.
5538 * intl/explodename.c (_nl_explode_name): Return -1 if
5539 _nl_normalize_codeset failed.
5541 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5543 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5544 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5545 and avoid branch misspredicts for > 31 bytes memset case.
5546 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5547 Remove toc ref to __cache_line_size.
5549 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5550 to get ISA-V2.0 branch hints.
5551 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5552 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5553 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5554 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5555 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5556 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5557 Remove toc ref to __cache_line_size.
5559 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5560 Include math_ldbl_opt.h.
5562 2007-07-10 Ulrich Drepper <drepper@redhat.com>
5565 * time/strptime_l.c (__strptime_internal): Implement greedy
5566 matching of weekday and month names.
5568 2007-07-09 Roland McGrath <roland@redhat.com>
5570 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5571 (ELF_NOTE_ABI): Use it.
5572 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5574 2007-07-09 Ulrich Drepper <drepper@redhat.com>
5576 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5577 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5579 2007-07-07 Ulrich Drepper <drepper@redhat.com>
5582 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5583 in loop to look for conversion specifier to avoid testing of
5585 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5586 * stdio-common/bug18.c: New file.
5587 * stdio-common/bug18a.c: New file.
5588 * stdio-common/bug19.c: New file.
5589 * stdio-common/bug19a.c: New file.
5591 2007-07-05 Mike Frysinger <vapier@gentoo.org>
5593 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5596 2007-07-01 Jakub Jelinek <jakub@redhat.com>
5598 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5599 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5600 Return NULL if mmap failed instead of asserting it does not.
5601 (calloc): Check for integer overflow.
5603 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5606 2007-07-03 Jakub Jelinek <jakub@redhat.com>
5609 * nis/nss-default.c: Include errno.h.
5610 (init): Preserve errno.
5612 2007-07-02 Ulrich Drepper <drepper@redhat.com>
5614 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5616 2007-06-30 Ulrich Drepper <drepper@redhat.com>
5618 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5620 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5622 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5624 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5626 * sysdeps/s390/dl-procinfo.c: New file.
5627 * sysdeps/s390/dl-procinfo.h: New file.
5628 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5630 2007-06-29 Jakub Jelinek <jakub@redhat.com>
5632 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5633 in PT_NOTE segments with multiple notes.
5634 * elf/readelflib.c (process_elf_file): Likewise.
5636 2007-06-22 Ulrich Drepper <drepper@redhat.com>
5638 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5641 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5643 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5645 2007-06-13 Jakub Jelinek <jakub@redhat.com>
5647 * include/link.h: Don't include rtld-lowlevel.h.
5648 (struct link_map): Remove l_scope_lock.
5649 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5650 (_dl_scope_free_list): New field (variable) in _rtld_global.
5651 (DL_LOOKUP_SCOPE_LOCK): Remove.
5652 (_dl_scope_free): New prototype.
5653 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5654 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5655 (_dl_profile_fixup): Likewise.
5656 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5657 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5658 THREAD_GSCOPE_RESET_FLAG around it.
5659 * elf/dl-close.c (_dl_close_worker): Don't use
5660 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5661 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5662 scopes were queued or if l_scope_mem has been abandoned.
5663 * elf/dl-open.c (_dl_scope_free): New function.
5664 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5665 * elf/dl-support.c (_dl_scope_free_list): New variable.
5666 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5667 Remove DL_LOOKUP_SCOPE_LOCK handling.
5668 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5670 * elf/dl-object.c (_dl_new_object): Don't use
5671 __rtld_mrlock_initialize.
5673 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5675 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5677 (rtld_global_ro): Likewise.
5679 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5681 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5682 Move PT_LOAD checking to...
5683 (_dl_addr_inside_object): ... here, new function.
5684 * elf/dl-sym.c (do_sym): If not l_contiguous,
5685 call _dl_addr_inside_object.
5686 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5687 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5688 * elf/dl-open.c (dl_open_worker): Likewise.
5689 (_dl_addr_inside_object): New function if IS_IN_rtld.
5690 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5691 holes are present or are PROT_NONE protected.
5692 * include/link.h (struct link_map): Add l_contiguous field.
5693 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5695 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5696 Tomas Janousek <tjanouse@redhat.com>
5697 Ulrich Drepper <drepper@redhat.com>
5700 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5701 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5703 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5704 unused member a bitmap.
5705 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5706 servers are configured.
5708 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5710 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5712 2007-06-17 Andreas Schwab <schwab@suse.de>
5714 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5716 2007-06-16 Andreas Jaeger <aj@suse.de>
5719 * sysdeps/unix/sysv/linux/sys/ptrace.h
5720 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5721 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5722 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5723 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5724 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5726 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5727 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5728 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5729 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5731 2007-06-16 Ulrich Drepper <drepper@redhat.com>
5734 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5735 determining whether there are IPv4/IPv6 addresses, ignore loopback
5738 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5740 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5741 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5742 as the return type. Change type of "r" variable to CMPtype.
5743 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5744 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5745 * soft-fp/gedf2.c (__gedf2): Likewise.
5746 * soft-fp/gesf2.c (__gesf2): Likewise.
5747 * soft-fp/getf2.c (__getf2): Likewise.
5748 * soft-fp/ledf2.c (__ledf2): Likewise.
5749 * soft-fp/lesf2.c (__lesf2): Likewise.
5750 * soft-fp/letf2.c (__letf2): Likewise.
5751 * soft-fp/unorddf2 (__unorddf2): Likewise.
5752 * soft-fp/unordsf2 (__unordsf2): Likewise.
5753 * soft-fp/unordtf2 (__unordtf2): Likewise.
5755 2007-06-09 Ulrich Drepper <drepper@redhat.com>
5757 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5758 make sure gcc doesn't mess around with this.
5760 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5762 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5764 2007-06-08 Jakub Jelinek <jakub@redhat.com>
5766 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5767 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5768 at most once per _dl_close_worker.
5770 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5772 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5773 __sched_cpucount as const.
5774 * posix/sched_cpucount.c: Adjust.
5776 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5777 instruction for counting bits.
5778 * sysdeps/x86_64/sched_cpucount.c: New file.
5780 2007-06-07 Ulrich Drepper <drepper@redhat.com>
5782 * configure.in: Avoid variable named BASH.
5783 * config.make.in: Likewise.
5784 Patch in part by Mike Frysinger.
5786 2007-06-06 Jakub Jelinek <jakub@redhat.com>
5789 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5790 pseudo-zeros as zero.
5791 * sysdeps/x86_64/ldbl2mpn.c: New file.
5792 * sysdeps/ia64/ldbl2mpn.c: New file.
5794 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5796 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5797 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5798 Remove unreachable code at the end.
5800 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5802 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5803 ldbl-128ibm in comment.
5804 (fpclassifyl): Correct classification of denormals.
5805 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5806 return value for MIN denormal. Rewrite using long double math too
5807 correctly handle denormals and canonicalize the results.
5809 2007-06-05 Jakub Jelinek <jakub@redhat.com>
5811 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5812 (__mpn_construct_long_double): Fix conversion where result ought
5813 to be smaller than __LDBL_MIN__, or the low double should be
5814 denormal. Fix decision where to negate low double - honor round
5816 * stdio-common/tst-sprintf2.c: Include string.h.
5817 (COMPARE_LDBL): Define.
5818 (TEST): Also test whether a string hexadecimal float representation
5819 can be parsed back to the number.
5820 (main): Add a couple of further tests.
5822 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5824 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5825 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5826 is non-zero, but smaller than 2 * __DBL_MIN__.
5827 * stdio-common/tst-sprintf2.c: New test.
5828 * stdio-common/Makefile (tests): Add tst-sprintf2.
5830 * math/test-misc.c (main): Don't run last batch of tests with
5831 IBM long double format.
5833 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5835 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5836 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5837 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5838 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5839 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5840 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5841 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5842 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5843 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5844 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5850 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5854 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5868 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5870 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5871 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5872 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5873 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5874 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5875 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5876 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5877 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5879 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5881 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5882 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5883 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5884 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5885 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5886 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5887 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5888 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5890 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5892 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5893 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5894 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5895 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5897 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5899 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5900 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5902 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5904 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5905 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5906 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5907 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5909 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5911 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5912 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5914 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5916 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5917 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5919 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5920 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5921 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5922 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5924 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5926 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5927 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5928 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5929 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5931 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5933 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5934 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5935 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5936 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5937 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5938 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5940 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5942 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5943 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5944 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5945 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5947 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5949 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5950 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5951 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5952 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5953 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5954 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5955 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5956 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5957 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5958 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5959 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5960 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5961 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5962 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5963 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5964 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5966 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5968 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5969 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5971 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5973 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5974 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5976 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5978 * sysdeps/powerpc/powerpc32/970/Implies: New file.
5979 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5980 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5981 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5982 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5983 * sysdeps/powerpc/powerpc64/970/Implies: New file.
5984 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5985 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5986 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5987 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5989 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5991 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5993 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
5995 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5996 branch miss-predicts. Ensure that cache line crossing does not impact
5999 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
6001 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6002 "../../powerpc32/power4/memcopy.h".
6003 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6004 "../../powerpc32/power4/wordcopy.c".
6006 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
6008 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6009 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6010 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6011 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6012 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6013 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6015 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
6017 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6019 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
6021 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6022 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6023 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6024 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6025 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6026 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6027 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6028 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6030 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
6032 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6034 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
6036 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6037 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6038 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6039 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6040 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6041 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6042 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6044 2007-05-29 Roland McGrath <roland@redhat.com>
6046 * po/Makefile (po-sed-cmd): New variable.
6047 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6049 2007-05-29 Ulrich Drepper <drepper@redhat.com>
6051 * crypt/md5-crypt.c: Fix comment.
6053 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6054 of crashing. When this is the case or if the reply is malformed,
6055 don't try to close the new file descriptor since it does not
6057 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6059 2007-05-28 Jakub Jelinek <jakub@redhat.com>
6061 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6062 if __NR_utimensat is not defined.
6064 2007-05-26 Ulrich Drepper <drepper@redhat.com>
6066 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6068 2007-05-25 Jakub Jelinek <jakub@redhat.com>
6070 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6071 (open): Fix comment typos. Don't call __open_2 if flags
6072 is a compile time constant without O_CREAT.
6073 (__open64_2): Add nonnull attribute.
6074 (open64): Fix comment typos. Don't call __open64_2 if flags
6075 is a compile time constant without O_CREAT.
6076 (__openat_2): Add nonnull attribute, fix nonnull attribute
6078 (openat): Fix comment typos. Don't call __openat_2 if flags
6079 is a compile time constant without O_CREAT.
6080 (__openat64_2): Add nonnull attribute, fix nonnull attribute
6082 (openat64): Fix comment typos. Don't call __openat64_2 if flags
6083 is a compile time constant without O_CREAT.
6085 2007-05-24 Ulrich Drepper <drepper@redhat.com>
6087 * Makerules (sysd-rules): Define PTW for ptw-* files.
6088 * Versions: Define GLIBC_2.7 for libc.
6089 * include/stdio.h: Declare __fortify_fail.
6090 * debug/fortify_fail.c: New file.
6091 * debug/Makefile (routines): Add fortify_fail.
6092 * debug/chk_fail.c: Use __fortify_fail.
6093 * debug/stack_chk_fail.c: Likewise.
6094 * io/Versions: Export __open_2, __open64_2, __openat_2, and
6095 __openat64_2 for GLIBC_2.7.
6096 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6097 * io/open.c: Define *_2 variant of function which checks for O_CREAT
6098 and fails if necessary.
6099 * io/open64.c: Likewise.
6100 * io/openat.c: Likewise.
6101 * io/openat64.c: Likewise.
6102 * sysdeps/unix/sysv/linux/open64.c: Likewise.
6103 * sysdeps/unix/sysv/linux/openat.c: Likewise.
6104 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6105 * io/bits/fcntl2.h: New file.
6106 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6108 * include/bits/fcntl2.h: New file.
6109 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6111 * sysdeps/unix/sysv/linux/open_2.c: New file.
6113 2007-05-21 Ulrich Drepper <drepper@redhat.com>
6115 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6116 as second parameter to handle_intel.
6118 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6121 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6123 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
6124 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6126 * sysdeps/x86_64/memcpy.S: Complete rewrite.
6127 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6128 Patch by Evandro Menezes <evandro.menezes@amd.com>.
6130 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6132 2007-05-21 Jakub Jelinek <jakub@redhat.com>
6135 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6136 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6137 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6139 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6142 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6143 reinitialize workend at the start of each do_positional format spec
6144 loop, free workstart before do_positional loops.
6145 (printf_unknown): Fix size of work_buffer.
6146 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6148 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6149 (public_sET_STATe): If ms->version < 3, put all chunks into
6150 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6153 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6154 * malloc/hooks.c: Likewise.
6155 * malloc/arena.c: Likewise.
6156 * malloc/malloc.c (do_check_malloc_state): Don't assert
6157 n_mmaps is not greater than n_mmaps_max. This removes the need
6158 for the previous change.
6160 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6163 2007-05-19 Ulrich Drepper <drepper@redhat.com>
6165 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6166 Define for kernel >= 2.6.22.
6168 2007-05-18 Ulrich Drepper <drepper@redhat.com>
6170 * elf/dl-close.c (_dl_close_worker): When removing object from
6171 global scope, wait for all lookups to finish afterwards.
6172 * elf/dl-open.c (add_to_global): When global scope array must
6173 grow, allocate a new one and free old array only after all
6175 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6176 (_dl_lookup_symbol_x): Likewise.
6177 * elf/dl-support.c: Define _dl_wait_lookup_done.
6178 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6179 _dl_wait_lookup_done.
6181 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6182 not overlapping with arena.
6184 * malloc/mcheck.c (reallochook): If size==0, free the block.
6186 * rt/tst-shm.c: Use fstat64 instead of fstat.
6188 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6189 __NR_sync_file_range is not defined.
6191 2007-05-17 Ulrich Drepper <drepper@redhat.com>
6193 Dummy files to prevent stub versions from being used.
6194 * sysdeps/x86_64/fpu/k_cosl.c: New file.
6195 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6196 * sysdeps/x86_64/fpu/k_sinl.c: New file.
6197 * sysdeps/x86_64/fpu/k_tanl.c: New file.
6199 * version.h (VERSION): Set to 2.6.90.
6201 2007-05-14 Ulrich Drepper <drepper@redhat.com>
6203 * version.h (VERSION): Define to 2.6.
6204 * include/features.h (__GLIBC_MINOR__): Define to 6.
6206 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6208 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6211 2007-05-13 Ulrich Drepper <drepper@redhat.com>
6213 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6214 number of mmaps. n_mmaps_max is the target.
6215 * malloc/hooks.c: Likewise.
6216 * malloc/arena.c: Likewise.
6218 2007-05-12 Andreas Jaeger <aj@suse.de>
6220 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6223 2007-05-11 Ulrich Drepper <drepper@redhat.com>
6225 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6226 adding new variables.
6228 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6229 optimize. Completely extend global scope array before making the
6230 new entries visible.
6232 2007-05-10 Ulrich Drepper <drepper@redhat.com>
6234 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6235 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6238 * include/link.h: Move l_version and l_nversion members around to
6241 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6243 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6244 (__sched_setaffinity_new): If syscall was successful and
6245 RESET_VGETCPU_CACHE is defined, use it before returning.
6246 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6248 * io/sys/stat.h: Make sure struct timespec is defined for
6251 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6253 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6254 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6255 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6256 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6257 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6258 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6259 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6260 * io/sys/stat.h: Declare utimensat, futimens.
6261 * io/utimensat.c: New file.
6262 * io/futimens.c: New file.
6263 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6264 * sysdeps/unix/sysv/linux/futimens.c: New file.
6265 * io/Makefile (routines): Add utimensat, futimens.
6266 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6267 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6268 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6271 * include/sys/cdefs.h: Redefine __nonnull so that test for
6272 incorrect parameters in the libc code itself are not omitted.
6274 2007-05-09 Jakub Jelinek <jakub@redhat.com>
6276 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6277 exception in addition to inexact when asked to raise only FE_INEXACT.
6280 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6283 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6286 * string/strfry.c (strfry): Make result more random.
6288 2007-05-07 Richard Henderson <rth@redhat.com>
6290 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6291 if __NO_LONG_DOUBLE_MATH.
6292 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6293 available in the compiler, add .arch directive to the assembly.
6295 2007-05-07 Jakub Jelinek <jakub@redhat.com>
6297 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6298 compat_symbol to GLIBC_2_1.
6299 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6300 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6301 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6302 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6303 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6304 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6305 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6307 (__isnanl): New compat_symbol.
6309 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6310 Jakub Jelinek <jakub@redhat.com>
6312 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6313 (new_heap): Initialize mprotect_size.
6314 (grow_heap): When growing, only mprotect from mprotect_size till
6315 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
6316 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6318 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
6319 Peter Bergner <bergner@us.ibm.com>
6321 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6322 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
6323 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6324 * sysdeps/powerpc/fpu/fe_mask.c: New file.
6325 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6326 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6327 Call __fe_mask_env() if all FP exceptions disabled.
6328 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6329 from old FPSCR to new fenv to propagate DFP rounding modes.
6330 Call __fe_mask_env() if FP exceptions previously enabled.
6331 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6332 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6333 transitioning from all exceptions disabled to any exception enabled
6335 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6336 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6337 when transitioning from all exceptions disabled to any exception
6338 enabled or visa versa.
6339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6346 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6349 * posix/unistd.h: Remove __THROW from fdatasync.
6351 2007-05-06 Mike Frysinger <vapier@gentoo.org>
6354 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6356 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6358 * stdio-common/vfprintf.c (process_string_arg): Optimize
6359 ridiculous precision in wide char code printing multi-byte string.
6360 Reported by Jim Meyering <jim@meyering.net>.
6363 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6364 boundaries to work around systems with overlapping binary loading.
6365 Based on a patch by Suzuki <suzuki@in.ibm.com>.
6367 2007-05-04 Ulrich Drepper <drepper@redhat.com>
6369 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6370 __mbsnrtowcs after last change.
6372 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6373 (get_ident): Likewise.
6375 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6377 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6378 with setting the sticky bit.
6379 * math/test-misc.c (main): Add more truncation tests.
6381 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
6383 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6384 double in the function declaration.
6385 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6386 double in the function declaration.
6387 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6388 float in the function declaration.
6389 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6390 float in the function declaration.
6392 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6393 denormal operands. Do not generate FP_EX_DENORM exception.
6394 (FP_UNPACK_RAW_EP): Ditto.
6395 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6396 undefined _FP_UNPACK_RAW_E.
6397 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6398 undefined _FP_UNPACK_RAW_EP.
6399 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6400 undefined _FP_PACK_RAW_E.
6401 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6402 undefined _FP_PACK_RAW_EP.
6404 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6406 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6409 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
6410 Jakub Jelinek <jakub@redhat.com>
6412 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6413 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
6415 * soft-fp/op-common.h (FP_TRUNC): Ditto.
6417 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6419 * math/test-misc.c (main): Add tests for rounding long double
6420 values close to smallest double denormalized value to double.
6422 2007-04-30 Joseph Myers <joseph@codesourcery.com>
6424 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6425 condition for truncating to 0. Set sticky bit for such
6428 2007-05-02 Jakub Jelinek <jakub@redhat.com>
6430 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6431 fixed length array for ignore.
6433 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6436 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6437 stack for large precisions.
6438 * stdio-common/test-vfprintf.c (main): Add test for large
6441 2007-04-30 Jakub Jelinek <jakub@redhat.com>
6443 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6445 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6448 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6449 account in the size check.
6450 * resolv/tst-inet_ntop.c: New test.
6451 * resolv/Makefile (tests): Add tst-inet_ntop.
6453 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6454 Jakub Jelinek <jakub@redhat.com>
6457 * malloc/malloc.c: Keep separate list for first blocks on the bin
6458 lists with a given size. This helps skipping over list elements
6459 we know won't fit in two places.
6460 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6462 2007-04-28 Ulrich Drepper <drepper@redhat.com>
6465 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6466 label to Teredo tunnel addresses 2001://32.
6468 2007-04-27 Ulrich Drepper <drepper@redhat.com>
6470 * locale/programs/ld-collate.c (collate_read): Allow order_start
6473 * locale/programs/ld-collate.c (collate_read): Fix printing of
6477 * locale/C-translit.h.in: Add entry for U2044.
6480 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6481 hexa-decimal floats without exponent.
6482 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6484 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6486 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6487 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6488 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6489 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6491 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6494 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6496 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6497 of 0 after the out_fail label.
6499 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6502 * iconv/gconv_charset.h (strip): Allow ':'.
6503 * iconv/iconv_open.c (iconv_open): Adjust comment.
6505 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6507 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6510 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6513 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6514 alignment of buffer and tmp_buffer.
6515 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6516 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6517 alignment of buffer.
6518 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6519 bigger than INT_MAX.
6520 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6521 h_errnop arguments. Fail if buflen is too small.
6522 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6524 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6527 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6528 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6530 2007-04-22 Roland McGrath <roland@redhat.com>
6532 * elf/elf.h (NT_PRXFPREG): New macro.
6534 2007-04-19 Andreas Jaeger <aj@suse.de>
6537 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6538 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6541 2007-04-19 Ulrich Drepper <drepper@redhat.com>
6543 * include/sys/mman.h: Mark madvise hidden.
6544 * misc/madvise.c: Add libc_hidden_def.
6546 2007-04-06 Jakub Jelinek <jakub@redhat.com>
6548 * nis/nis_domain_of.c (__nis_domain_of): New function.
6549 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6550 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6551 * nis/nis_call.c (rec_dirsearch): Likewise.
6552 (first_shoot): Likewise. Remove search_parent_first argument.
6553 (struct nis_server_cache): Rename search_parent_first field
6555 (nis_server_cache_search, nis_server_cache_add): Rename
6556 search_parent_first argument to search_parent.
6557 (__nisfind_server): Likewise. If search_parent, call
6560 2007-04-18 Ulrich Drepper <drepper@redhat.com>
6562 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6564 2007-04-17 Ulrich Drepper <drepper@redhat.com>
6567 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6569 2007-04-16 Ulrich Drepper <drepper@redhat.com>
6572 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6574 2007-04-15 Jakub Jelinek <jakub@redhat.com>
6576 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6577 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6578 current number of locales in SUPPORTED.
6579 (create_archive): Initialize serial.
6580 (enlarge_archive): Preserve aliases rather than duplicating
6583 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6585 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6586 after _IO_un_link, not before it.
6588 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6589 special case handling when wcp == wstartp + 1. Fix a comment typo.
6590 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6592 2007-03-30 Jakub Jelinek <jakub@redhat.com>
6594 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6595 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6596 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6598 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6599 _IO_file_xsgetn_maybe_mmap): Likewise.
6600 * libio/oldfileops.c (old_do_write): Likewise.
6601 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6602 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6603 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6604 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6605 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6606 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6607 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6608 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6609 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6610 _IO_file_underflow, _IO_file_underflow_mmap,
6611 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6612 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6613 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6614 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6615 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6616 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6617 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6618 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6619 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6620 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6621 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6622 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6623 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6624 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6625 _IO_adjust_column_internal, _IO_default_uflow_internal,
6626 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6627 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6628 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6629 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6630 _IO_file_close_it_internal, _IO_file_underflow_internal,
6631 _IO_file_overflow_internal, _IO_file_attach_internal,
6632 _IO_file_fopen_internal, _IO_file_sync_internal,
6633 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6634 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6635 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6636 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6637 _IO_seekpos_unlocked): Likewise.
6638 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6639 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6641 2007-04-16 Jakub Jelinek <jakub@redhat.com>
6643 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6644 argument in xmalloc size computation.
6646 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6648 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6649 math_opt_barrier and math_force_eval macros.
6651 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6654 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6655 * sysdeps/i386/fpu/math_private.h: New file.
6656 * sysdeps/x86_64/fpu/math_private.h: New file.
6657 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6658 math_force_eval macros. Use "+m" constraint on asm rather than
6660 * math/s_nextafter.c (__nextafter): Likewise.
6661 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6663 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6664 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6665 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6666 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6667 math_opt_barrier and math_force_eval macros.
6668 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6669 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6670 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6671 (__nexttoward): Use math_opt_barrier and
6672 math_force_eval macros. Use "+m" constraint on asm rather than
6673 "=m" and "m". Only use asm to force double result if
6674 FLT_EVAL_METHOD is 2.
6675 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6676 (__nexttowardf): Use math_opt_barrier and
6677 math_force_eval macros. Use "+m" constraint on asm rather than
6678 "=m" and "m". Only use asm to force double result if
6679 FLT_EVAL_METHOD is not 0.
6680 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6681 (__nexttowardf): Use math_opt_barrier and
6682 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6683 x to float using asm.
6684 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6685 (__nldbl_nexttowardf): Use math_opt_barrier and
6686 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6687 x to float using asm.
6688 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6689 (__nexttowardf): Use math_opt_barrier and math_force_eval
6690 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6691 * math/bug-nextafter.c (zero, inf): New variables.
6692 (main): Add new tests.
6693 * math/bug-nexttoward.c (zero, inf): New variables.
6694 (main): Add new tests.
6696 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6699 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6700 exceptions both in SW and MXCSR.
6701 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6702 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6703 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6704 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6705 in MXCSR if SSE is available.
6706 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6708 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6710 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6711 Return 0 rather than 1.
6712 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6713 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6714 * math/test-fenv.c (feholdexcept_tests): New function.
6717 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6720 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6723 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6726 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6727 Reported by David Anderson <davea42@earthlink.net>.
6729 2007-04-07 Ulrich Drepper <drepper@redhat.com>
6731 * posix/sys/wait.h: Remove unnecessary forward declaration.
6733 2007-04-05 Jakub Jelinek <jakub@redhat.com>
6735 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6736 with obj->do_servers after first_shoot.
6738 2007-04-03 Ulrich Drepper <drepper@redhat.com>
6740 * posix/Makefile (routines): Add sched_cpucount.
6741 (tests): Add tst-cpucount.
6742 * posix/sched_cpucount.c: New file.
6743 * posix/tst-cpucount.c: New file.
6744 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6745 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6746 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6747 * posix/sched.h: Define CPU_COUNT.
6749 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6751 * posix/fnmatch.c (STRUCT): Define.
6752 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6753 * posix/fnmatch_loop.c (struct STRUCT): New type.
6754 (FCT): Add ends argument. If ends != NULL and normal * is
6755 seen in the pattern, store current pattern and string pointers
6756 and return. Adjust recursive calls.
6757 (EXT): Adjust FCT callers.
6758 (STRUCT): Undef at the end of the file.
6759 * posix/Makefile (tests): Add tst-fnmatch2.
6760 * posix/tst-fnmatch2.c: New test.
6762 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6764 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6767 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6768 Change last argument to unsigned int.
6770 2007-03-23 Jakub Jelinek <jakub@redhat.com>
6772 * scripts/check-local-headers.sh: Filter out sys/capability.h.
6774 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6776 * config.h.in (HAVE_LIBCAP): Add.
6777 * nscd/selinux.h: Include sys/capability.h rather than non-existent
6779 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6780 free_caps. Cast away const from 4th cap_set_flag argument.
6782 2007-03-26 Ulrich Drepper <drepper@redhat.com>
6784 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6786 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6787 Add sync_file_range.
6788 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6790 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
6792 * sysdeps/powerpc/bits/atomic.h
6793 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6794 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6795 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6796 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6797 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6798 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6799 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6800 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6801 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6802 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6803 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6804 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6805 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6806 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6807 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6808 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6809 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6810 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6811 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6812 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6814 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6816 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6817 (__cache_line_size): Define the variable here. Add
6818 attribute_hidden, remove weak_extern.
6819 (__libc_start_main): Set __cache_line_size
6821 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6822 (__cache_line_size): Define the variable here. Add
6823 attribute_hidden, remove weak_extern.
6824 (DL_PLATFORM_AUXV): Set __cache_line_size
6826 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6827 weak_extern, add attribute_hidden.
6828 (__elf_machine_runtime_setup): Assume __cache_line_size is always
6830 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6832 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6834 2007-03-26 Jakub Jelinek <jakub@redhat.com>
6837 * timezone/africa: Update from tzdata2007d.
6838 * timezone/asia: Likewise.
6839 * timezone/australasia: Likewise.
6840 * timezone/backward: Likewise.
6841 * timezone/europe: Likewise.
6842 * timezone/iso3166.tab: Likewise.
6843 * timezone/leapseconds: Likewise.
6844 * timezone/northamerica: Likewise.
6845 * timezone/southamerica: Likewise.
6846 * timezone/zone.tab: Likewise.
6848 * timezone/private.h: Update from tzcode2007d.
6849 * timezone/zdump.c: Likewise.
6850 * timezone/zic.c: Likewise.
6852 2007-03-21 Jakub Jelinek <jakub@redhat.com>
6854 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6855 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6857 (nis_server_cache_search, nis_server_cache_add): New functions.
6858 (__nisfind_server): Use them. Add dbp and flags argument, if
6859 call __nisbind_create.
6860 (__nisbind_create): Add server_used and current_ep arguments,
6861 only call __nis_findfastest if server_used is ~0.
6862 (__do_niscall2, __prepare_niscall): Adjust callers.
6863 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6864 ckey_cache_euid, ckey_cache_lock): New variables.
6865 (get_ckey): New function.
6866 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6867 __pmap_getnisport. Save __pmap_getnisport result in
6868 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6870 * nis/nis_lookup.c (nis_lookup): Likewise.
6871 * nis/nis_table.c (nis_list): Likewise.
6872 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6875 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6876 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6877 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6878 _nss_nisplus_getservbyport_r): Likewise.
6879 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6880 _nss_nisplus_getnetbyaddr_r): Likewise.
6881 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6882 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6883 _nss_nisplus_getntohost_r): Likewise.
6884 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6885 _nss_nisplus_getrpcbynumber_r): Likewise.
6887 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6889 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6890 * configure: Rebuilt.
6892 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6894 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6896 2006-06-07 Joseph Myers <joseph@codesourcery.com>
6899 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6902 2007-03-18 Jakub Jelinek <jakub@redhat.com>
6904 * nscd/gai.c: Include alloca.h.
6905 (__libc_use_alloca): Define.
6907 2007-03-16 Jakub Jelinek <jakub@redhat.com>
6909 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6911 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6912 (DL_DST_REQUIRED): Adjust user.
6914 * include/dlfcn.h (struct link_map): New forward decl.
6916 * inet/getnameinfo.c: Include stddef.h.
6917 (getnameinfo): Use offsetof.
6919 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6921 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6923 * string/strerror_l.c: Include stdlib.h.
6925 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6926 * config.make.in (gnu89-inline-CFLAGS): New variable.
6927 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6929 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6930 * argp/argp.h: Use it.
6931 * bits/mathinline.h: Likewise.
6932 * bits/sigset.h: Likewise.
6933 * bits/string.h: Likewise.
6934 * ctype/ctype.h: Likewise.
6935 * hurd/hurd.h: Likewise.
6936 * hurd/hurd/fd.h: Likewise.
6937 * hurd/hurd/port.h: Likewise.
6938 * hurd/hurd/signal.h: Likewise.
6939 * hurd/hurd/threadvar.h: Likewise.
6940 * hurd/hurd/userlink.h: Likewise.
6941 * io/sys/stat.h: Likewise.
6942 * libio/bits/stdio.h: Likewise.
6943 * libio/bits/stdio2.h: Likewise.
6944 * mach/lock-intern.h: Likewise.
6945 * mach/mach/mig_support.h: Likewise.
6946 * math/bits/cmathcalls.h: Likewise.
6947 * posix/bits/unistd.h: Likewise.
6948 * socket/bits/socket2.h: Likewise.
6949 * stdlib/bits/stdlib.h: Likewise.
6950 * stdlib/stdlib.h: Likewise.
6951 * string/argz.h: Likewise.
6952 * string/bits/string2.h: Likewise.
6953 * string/bits/string3.h: Likewise.
6954 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6955 * sysdeps/generic/inttypes.h: Likewise.
6956 * sysdeps/generic/machine-lock.h: Likewise.
6957 * sysdeps/generic/machine-sp.h: Likewise.
6958 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6959 * sysdeps/i386/i486/bits/string.h: Likewise.
6960 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6961 * sysdeps/mach/alpha/machine-lock.h: Likewise.
6962 * sysdeps/mach/alpha/machine-sp.h: Likewise.
6963 * sysdeps/mach/i386/machine-lock.h: Likewise.
6964 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6965 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6966 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6967 * sysdeps/s390/bits/string.h: Likewise.
6968 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6969 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6970 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6971 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6972 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6973 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6974 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6975 * wcsmbs/bits/wchar2.h: Likewise.
6976 * wcsmbs/wchar.h: Likewise.
6977 * stdlib/gmp.h: Likewise. Include <features.h> to get
6978 __extern_inline definition.
6980 2007-03-15 Jakub Jelinek <jakub@redhat.com>
6982 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6986 * math/libm-test.inc (log_test): Test -Inf and NaN.
6987 (log10_test, log1p_test, log2_test): Test -Inf.
6988 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6989 FE_INVALID when argument is qNaN.
6990 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6991 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6992 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6993 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6994 andb $1, %ah with testb $1, %ah, don't test for parity, instead
6995 testb $4, %ah and jump if non-zero.
6996 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6997 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7000 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7001 ancestors with the same depths.
7002 Patch by Niels Moeller <nisse@lysator.liu.se>.
7003 (filter_doc): Don't crash if argp is NULL.
7004 * argp/Makefile (tests): Add tst-argp2.
7005 * argp/tst-argp2.c: New test.
7008 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7010 (updwtmp_file): Likewise.
7013 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7014 (inet6_opt_append): Don't check extlen is big enough if extbuf
7016 (inet6_opt_finish): Likewise.
7017 * inet/Makefile (tests): Add test-inet6_opt.
7018 * inet/test-inet6_opt.c: New test.
7020 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7021 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7022 NLMSG_ERR. Instead use a page sized buffer.
7023 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7026 2007-03-14 Richard Henderson <rth@redhat.com>
7028 * sysdeps/alpha/fpu/s_llround.c: New file.
7029 * sysdeps/alpha/fpu/s_llroundf.c: New file.
7030 * sysdeps/alpha/fpu/s_lround.c: New file.
7031 * sysdeps/alpha/fpu/s_lroundf.c: New file.
7032 * sysdeps/alpha/fpu/s_round.c: New file.
7033 * sysdeps/alpha/fpu/s_roundf.c: New file.
7034 * sysdeps/alpha/fpu/s_trunc.c: New file.
7035 * sysdeps/alpha/fpu/s_truncf.c: New file.
7037 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7038 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7039 * sysdeps/alpha/fpu/s_floor.c: Likewise.
7040 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7041 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7042 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7044 * sysdeps/alpha/fpu/s_fmax.S: New file.
7045 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7046 * sysdeps/alpha/fpu/s_fmin.S: New file.
7047 * sysdeps/alpha/fpu/s_fminf.S: New file.
7048 * sysdeps/alpha/fpu/s_isnan.c: New file.
7049 * sysdeps/alpha/fpu/s_isnanf.c: New file.
7050 * sysdeps/alpha/fpu/s_llrint.c: New file.
7051 * sysdeps/alpha/fpu/s_llrintf.c: New file.
7052 * sysdeps/alpha/fpu/s_lrint.c: New file.
7053 * sysdeps/alpha/fpu/s_lrintf.c: New file.
7054 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7055 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7057 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7058 (__fdimf, fdimf, __fdim, fdim): Remove.
7059 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7060 (__isnanf, __isnan, __isnanl): New.
7062 2007-03-13 Richard Henderson <rth@redhat.com>
7064 * sysdeps/ieee754/ldbl-128/Makefile: New file.
7066 2007-03-13 Richard Henderson <rth@redhat.com>
7068 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7069 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7070 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7071 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7072 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7073 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7075 2007-03-13 Richard Henderson <rth@redhat.com>
7077 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7078 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7079 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7080 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7081 Move to dl-auxv.h; initialize instead of extern weak.
7082 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7084 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7085 Extern instead of initialized.
7087 2007-03-13 Richard Henderson <rth@redhat.com>
7089 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7090 __sigsuspend_nocancel.
7092 2007-03-06 Ulrich Drepper <drepper@redhat.com>
7094 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7095 172.16/12 address range.
7097 2007-03-02 Jakub Jelinek <jakub@redhat.com>
7099 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7100 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7103 2007-03-01 Jakub Jelinek <jakub@redhat.com>
7106 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7108 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7110 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7111 for x qNaN and y either +-inf or non-integer value.
7112 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7113 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7114 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7116 2007-02-10 Mike Frysinger <vapier@gentoo.org>
7118 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7119 from sysdep_headers.
7121 2007-02-28 Jakub Jelinek <jakub@redhat.com>
7123 * time/tzfile.c (find_transition): Instead of a linear search try to
7124 guess the transition index, use a linear search if the result is at
7125 most 10 transitions away from the guess or binary search otherwise.
7127 2007-02-27 Jakub Jelinek <jakub@redhat.com>
7129 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7130 memory reallocation.
7132 2007-02-21 Ulrich Drepper <drepper@redhat.com>
7134 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7136 Optimize use of TOLOWER.
7139 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7140 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7141 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7144 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7145 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7148 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7149 (open_dir_stream): Likewise.
7150 * io/Makefile (tests): Add bug-ftw5.
7151 * io/bug-ftw5.c: New file.
7153 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7154 * nscd/servicescache.c (cache_addserv): Likewise.
7156 * nscd/grpcache.c (cache_addgr): In case a record changed on
7157 refresh, adjust key_copy.
7160 * nscd/pwdcache.c (cache_addpw): In case a record changed on
7161 refresh, adjust key_copy.
7164 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7166 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7168 2007-02-19 Ulrich Drepper <drepper@redhat.com>
7170 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7173 * stdio-common/vfscanf.c: Small cleanups throughout.
7175 2007-02-18 Ulrich Drepper <drepper@redhat.com>
7178 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7179 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7180 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7181 Patch by Jared Casper <jaredcasper@gmail.com>.
7183 * sysdeps/unix/closedir.c: Outside libc don't use locking.
7184 * sysdeps/unix/opendir.c: Likewise.
7185 * sysdeps/unix/readdir.c: Likewise.
7188 * stdio-common/vfscanf.c: Handle localized digits etc for floating
7190 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7192 * stdio-common/vfscanf.c: Fix problems in width accounting.
7193 * stdio-common/tst-sscanf.c (double_tests): New tests.
7194 (main): Hook them up.
7196 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7197 More simplifications of floating-point reader.
7199 * stdio-common/Makefile (tests): Add tst-swscanf.
7200 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7202 * stdio-common/tst-swscanf.c: New file.
7204 2007-02-17 Ulrich Drepper <drepper@redhat.com>
7207 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7208 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7209 Remove using for __jmp_buf_tag.
7210 * locale/locale.h (struct lconv): Also define in std namespace.
7211 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7214 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7215 using __libc_enable_secure.
7218 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7221 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7222 of names for ellipsises.
7225 * malloc/memusage.sh: Cleanups.
7226 * debug/xtrace.sh: Quoting and trap changes.
7228 2007-02-16 Ulrich Drepper <drepper@redhat.com>
7230 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7232 * locale/iso-3166.def: Update entry for Serbia.
7233 * locale/iso-4217.def: Define RSD, remove CSD.
7235 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7236 and 64-bit operations.
7239 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7242 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7245 2007-02-15 Ulrich Drepper <drepper@redhat.com>
7248 * assert/assert.h (assert): Simplify.
7249 (assert_perror): Likewise.
7250 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7252 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7255 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7256 change: don't pass NULL in place of an integer.
7258 2007-02-02 Bruno Haible <bruno@clisp.org>
7261 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7262 Add mapping for U+327E.
7263 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7264 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7265 mapping of 0xD9 0xE8.
7266 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7268 Reported by Jungshik Shin <jungshik@google.com>.
7271 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7272 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7273 Reported by Jungshik Shin <jungshik@google.com>.
7275 2007-02-14 Ulrich Drepper <drepper@redhat.com>
7277 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7281 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7282 byte variants. Patch mostly be tom@tommay.net.
7284 2007-02-14 Jakub Jelinek <jakub@redhat.com>
7287 * posix/glob.c (attribute_hidden): Define if not defined.
7288 (glob): Unescape dirname, filename or username when needed and not
7289 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7290 is NULL. Handle unescaped [ in pattern without closing ].
7291 Don't pass GLOB_CHECK down to recursive glob for directories.
7292 (__glob_pattern_type): New function.
7293 (__glob_pattern_p): Implement using __glob_pattern_type.
7294 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7295 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7296 Remove unreachable code.
7297 * posix/globtest.sh: Add a couple of new tests.
7299 2007-02-13 Ulrich Drepper <drepper@redhat.com>
7301 * po/ru.po: Update from translation team.
7303 2007-02-12 Jakub Jelinek <jakub@redhat.com>
7305 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7306 to the list of i486+ CPUs.
7307 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7309 2007-02-12 Ulrich Drepper <drepper@redhat.com>
7311 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7312 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7315 2007-02-09 Ulrich Drepper <drepper@redhat.com>
7317 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7319 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7320 * resolv/res_mkquery.c: Define __res_nopt.
7321 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7322 try adding EDNS0 record.
7323 * resolv/res_send.c (send_dg): If request failed with FORMERR and
7324 EDNS0 record was send make sure we don't try it again.
7325 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7326 * include/resolv.h: Declare __res_nopt.
7328 2007-02-08 Jakub Jelinek <jakub@redhat.com>
7331 * time/strptime_l.c (__strptime_internal): Set have_mon for
7332 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7333 have been computed from tm_yday and tm_year. Don't crash
7334 in day_of_the_week or day_of_the_year if not have_mon
7335 and tm_mon contains bogus value.
7336 * time/Makefile (tests): Add tst-strptime3.
7337 * time/tst-strptime3.c: New test.
7339 2007-02-05 Jakub Jelinek <jakub@redhat.com>
7342 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7343 bit for RE_HAT_LISTS_NOT_NEWLINE.
7344 (build_charclass_op): Remove bogus comment.
7345 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7346 * posix/bug-regex27.c: New test.
7347 * posix/bug-regex28.c: New test.
7349 2007-02-03 Ulrich Drepper <drepper@redhat.com>
7351 * po/sv.po: Update from translation team.
7353 2007-02-02 Ulrich Drepper <drepper@redhat.com>
7355 * nscd/nscd_helper.c (open_socket): Minor size optimization.
7357 2007-02-02 Jakub Jelinek <jakub@redhat.com>
7359 * include/locale.h (__uselocale): Add libc_hidden_proto.
7360 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7362 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7365 2007-02-01 Ulrich Drepper <drepper@redhat.com>
7367 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7369 (PTR_DEMANGLE): Real definition now that it's not the same as
7371 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7373 * string/strerror_l.c: New file.
7374 * string/Makefile (routines): Add strerror_l.
7375 * string/string.h: Declare strerror_l.
7376 * string/Versions: Export strerror_l for GLIBC_2.6.
7378 2007-01-31 Ulrich Drepper <drepper@redhat.com>
7380 * nscd/nscd_helper.c (open_socket): Now takes request type and key
7381 as parameter. Construct request record. Try sending request
7382 before the first poll use, it usually succeeds. Adjust all
7384 * nscd/nscd-client.h: Define MAXKEYLEN.
7385 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7387 2007-01-31 Jakub Jelinek <jakub@redhat.com>
7389 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7391 * nscd/nscd_helper.c: Include string.h.
7392 (__nscd_cache_search): Remove const qualifier from return value.
7393 On strict alignment architectures check hash entry and data head
7395 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7396 mmapped data during GC cycle contains garbage. If
7397 __nscd_drop_map_ref fails, decrement mapped->counter when returning
7398 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7400 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7401 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7402 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7403 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7404 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7406 2007-01-30 Ulrich Drepper <drepper@redhat.com>
7408 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7410 2007-01-26 Ulrich Drepper <drepper@redhat.com>
7412 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7413 names not numbers in cfi_*.
7415 2007-01-26 Andreas Jaeger <aj@suse.de>
7417 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7418 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7419 Correct values of PER_HPUX and PER_OSF4.
7421 2007-01-24 Ulrich Drepper <drepper@redhat.com>
7423 * elf/dl-minimal.c: Undefine _itoa first.
7424 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7425 * malloc/mtrace.c: Revert last change.
7426 * posix/wordexp.c: Likewise.
7428 2007-01-24 Jakub Jelinek <jakub@redhat.com>
7430 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7431 and __geode__ to the list of i486+ CPUs.
7432 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7434 2007-01-23 Ulrich Drepper <drepper@redhat.com>
7436 * stdio-common/_itoa.c: Include <limits.h>.
7437 * stdio-common/_itowa.c: Likewise.
7439 2007-01-22 Ulrich Drepper <drepper@redhat.com>
7441 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7443 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7445 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7447 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7451 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7452 * stdio-common/Makefile (tests): Add bug17.
7453 * stdio-common/bug17.c: New file.
7455 2007-01-19 Ulrich Drepper <drepper@redhat.com>
7457 * iconvdata/brf.c: New file.
7458 * iconvdata/testdata/BRF: New file.
7459 * iconvdata/testdata/BRF..UTF8: New file.
7460 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7461 * iconvdata/Makefile: Add rules to build BRF.
7462 * iconvdata/TESTS: Add BRF entry.
7463 * iconvdata/gconv-modules: Likewise.
7464 * iconvdata/tst-tables.sh: Likewise.
7466 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
7468 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7469 type `long long int', not `long int'.
7472 2007-01-18 Ulrich Drepper <drepper@redhat.com>
7474 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7475 of values on 64-bit platforms which are too large.
7477 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
7478 Joe Kerian <jkerian@us.us.ibm.com>
7481 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7482 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7483 (__copysignl): Use signbit() for comparison.
7484 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7485 SET_LDOUBLE_WORDS64.
7488 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7489 (__ceill): Remove calls to fegetround(), fesetround().
7490 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7491 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7492 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7494 2007-01-17 Jakub Jelinek <jakub@redhat.com>
7496 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7498 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7500 2007-01-17 Ulrich Drepper <drepper@redhat.com>
7502 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7504 * csu/libc-start.c: Likewise.
7506 2007-01-16 Ulrich Drepper <drepper@redhat.com>
7508 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7511 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7513 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
7515 (handle_request): Remove unnecessary tests.
7517 * nscd/cache.c (cache_add): Record the failure to add to the cache.
7519 2007-01-15 Jakub Jelinek <jakub@redhat.com>
7521 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7522 workbits in semi-raw fraction.
7524 * math/test-misc.c: Add new tests.
7526 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7528 * math/basic-test.c: Include test-skeleton.c.
7529 (TEST_TRUNC): Define.
7530 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7531 (main): Rename to ...
7532 (do_test): ...this. Run new tests.
7533 (TEST_FUNCTION): Define.
7535 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7536 Joe Kerian <jkerian@us.us.ibm.com>
7539 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7540 handling for high words.
7541 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7542 and overflow for infinity.
7544 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7546 * nscd/connections.c (handle_request): Add a __builtin_expect.
7548 * nscd/connections.c (serv2db): Change type into structure which
7549 also says whether this is a request for data. Renamed to
7550 servinfo. All users changed.
7551 (handle_request): Much simpler test whether we should search the cache.
7553 * nscd/connections.c (handle_request): Fix thinko in selinux test
7556 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7557 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7558 it before getting dl_load_lock and then relock.
7559 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7560 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7561 case we unlocked the scope.
7562 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7563 _dl_lookup_symbol_x in case we locked the scope.
7564 (_dl_profile_fixup): Likewise.
7565 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7566 set DL_LOOKUP_SCOPE_LOCK.
7568 2007-01-13 Ulrich Drepper <drepper@redhat.com>
7570 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7571 CFLAGS-getsrvbynpt_r.c.
7572 * nscd/getsrvbynm_r.c: New file.
7573 * nscd/getsrvbypt_r.c: New file.
7574 * nscd/nscd_getserv_r.c: New file.
7575 * nscd/servicescache.c: New file.
7576 * nscd/Makefile (routines): Add nscd_getserv_r.
7577 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7578 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7579 CFLAGS-getsrvbypt_r.c.
7580 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7581 table. Add entries for services database.
7582 * nscd/connections.c (serv2str): Mark as const. Add entries for
7584 (dbs): Add .reset_res and servdb initialization.
7585 (serv2db): Add entries for services database.
7586 (verify_persistent_db): Accept dbnr == servdb.
7587 (invalidate_cache): Rewrite database name recognition to use a table.
7588 Call res_init() if .reset_res is set for database.
7589 (handle_request): Add code to handle services database.
7590 * nscd/gai.c: Don't define __getservbyname_r.
7591 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7592 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7593 (serv_response_header): Define.
7594 (struct datahead): Add serv_response_header member.
7595 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7597 * nscd/nscd.conf: Add entries for services database.
7598 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7599 Declare serv_iov_disabled.
7600 Declare addservbyname, readdservbyname, addservbyport, and
7602 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7603 (find_db): Fix error message.
7604 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7605 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7606 * nscd/selinux.c (perms): Add entries for services database.
7607 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7608 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7610 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7611 * nscd/hstcache.c: Likewise.
7612 * nscd/pwdcache.c: Likewise.
7614 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7615 computation of keylen.
7617 * include/string.h: Only redefine strndupa if this is really for
7620 2007-01-12 Ulrich Drepper <drepper@redhat.com>
7622 * nscd/nscd_gethst_r.c: Minor cleanups.
7624 * nscd/connections.c (handle_request): Check selinux permissions
7625 for all non-admin commands.
7627 * sysdeps/i386/i486/bits/atomic.h: Define
7628 atomic_compare_and_exchange_val_acq,
7629 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7630 using __sync_* built-ins for gcc >= 4.1.
7631 * sysdeps/x86_64/bits/atomic.h: Likewise.
7634 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7637 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7639 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7640 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7641 (do_test): Check errno and exit(0) if ENOSYS.
7643 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7645 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7646 thousands separators.
7647 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7648 * stdlib/tst-strtod4.c: New test.
7651 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7652 hexadecimal digit should accept just the initial 0.
7653 * stdlib/tst-strtod2.c (tests): New variable.
7654 (do_test): Run several tests rather than just one.
7656 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7658 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7659 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7661 2007-01-10 Ulrich Drepper <drepper@redhat.com>
7663 * io/fts.c: Make sure fts_cur is always valid after return from
7665 Patch by Miloslav Trmac <mitr@redhat.com>.
7667 2006-10-27 Richard Sandiford <richard@codesourcery.com>
7669 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7670 (R_MIPS_NUM): Bump by 1.
7672 2007-01-03 Jakub Jelinek <jakub@redhat.com>
7674 * posix/execvp.c: Include alloca.h.
7675 (allocate_scripts_argv): Renamed to...
7676 (scripts_argv): ... this. Don't allocate buffer here nor count
7678 (execvp): Use alloca if possible.
7679 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7680 * posix/tst-vfork3.c: New test.
7682 2007-01-03 Ulrich Drepper <drepper@redhat.com>
7684 * string/Makefile (tst-strxfrm2-ENV): Define.
7685 * stdlib/Makefile (tst-strtod3-ENV): Define.
7687 2007-01-02 Ulrich Drepper <drepper@redhat.com>
7689 * posix/getconf.c: Update copyright year.
7690 * nss/getent.c: Likewise.
7691 * iconv/iconvconfig.c: Likewise.
7692 * iconv/iconv_prog.c: Likewise.
7693 * elf/ldconfig.c: Likewise.
7694 * catgets/gencat.c: Likewise.
7695 * csu/version.c: Likewise.
7696 * elf/ldd.bash.in: Likewise.
7697 * elf/sprof.c (print_version): Likewise.
7698 * locale/programs/locale.c: Likewise.
7699 * locale/programs/localedef.c: Likewise.
7700 * nscd/nscd.c (print_version): Likewise.
7701 * debug/xtrace.sh: Likewise.
7702 * malloc/memusage.sh: Likewise.
7703 * malloc/mtrace.pl: Likewise.
7704 * debug/catchsegv.sh: Likewise.
7706 2006-12-24 Ulrich Drepper <drepper@redhat.com>
7708 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7711 2006-12-23 Ulrich Drepper <drepper@redhat.com>
7713 * posix/wordexp.c: Remove some unnecessary tests.
7715 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7717 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7718 blacklist the group till after we look it up.
7720 2006-12-21 Ulrich Drepper <drepper@redhat.com>
7722 * include/atomic.h (atomic_forced_read): New macro.
7724 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7726 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7728 2006-12-19 Jakub Jelinek <jakub@redhat.com>
7730 * nss/getXXbyYY_r.c: Include atomic.h.
7731 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7732 add atomic_write_barrier () in between.
7734 * stdlib/Makefile (tests): Add tst-makecontext.
7735 * stdlib/tst-makecontext.c: New test.
7737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7738 (__makecontext): Don't realign uc_mcontext.uc_regs.
7740 2006-11-28 Jakub Jelinek <jakub@redhat.com>
7742 * elf/dl-support.c: Include dl-procinfo.h.
7743 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7744 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7745 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7747 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7748 hardcoded constants.
7749 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7750 PPC_PLATFORM_* macros for array designators.
7752 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
7754 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7755 names to the beginning.
7756 (_dl_powerpc_platforms): Add "power6x".
7757 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7758 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7759 (_DL_PLATFORMS_COUNT): Increase.
7760 (_dl_string_platform): Handle power6x case.
7761 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7762 PPC_FEATURE_POWER6_EXT): Define.
7763 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7765 2006-12-18 Jakub Jelinek <jakub@redhat.com>
7768 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7769 [-2^31 .. 2^31) range.
7770 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7772 * stdlib/tst-rand48-2.c: New test.
7773 * stdlib/Makefile (tests): Add tst-rand48-2.
7775 2006-12-14 Jakub Jelinek <jakub@redhat.com>
7777 * misc/tst-pselect.c (do_test): Fix sigblock argument.
7779 2006-12-14 Ulrich Drepper <drepper@redhat.com>
7781 * misc/tst-pselect.c (do_test): Make sure the helper process is
7782 terminating when the test is aborted.
7784 2006-12-13 Ulrich Drepper <drepper@redhat.com>
7786 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7787 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7788 Handle relatime mount option.
7791 * libio/Makefile (tests): Add tst-setvbuf1.
7792 * libio/tst-setvbuf1.c: New file.
7794 2006-12-08 Jakub Jelinek <jakub@redhat.com>
7797 * libio/genops.c (__uflow): Fix a typo.
7798 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7799 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
7800 the narrow buffer size.
7802 2006-11-24 Jakub Jelinek <jakub@redhat.com>
7805 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7806 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7807 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7809 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7810 _IO_wstr_finish): Likewise.
7811 * libio/wmemstream.c (open_wmemstream): Likewise.
7812 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7813 even for wide streams.
7815 2006-12-13 Jakub Jelinek <jakub@redhat.com>
7817 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7820 2006-12-11 Ulrich Drepper <drepper@redhat.com>
7822 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7823 separators also if no non-zero digits found.
7824 * stdlib/Makefile (tests): Add tst-strtod3.
7826 2006-12-09 Ulrich Drepper <drepper@redhat.com>
7829 * include/features.h: Fix comment about default value for
7833 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7834 empty parsed strings.
7835 * stdlib/Makefile (tests): Add tst-strtod2.
7836 * stdlib/tst-strtod2.c: New file.
7839 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7841 * stdlib/Makefile (tests): Add tst-atof2.
7842 * stdlib/tst-atof2.c: New file.
7845 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7846 correctly if removing trailing zero of hex-float.
7847 * stdlib/Makefile (tests): Add tst-atof1.
7848 * stdlib/tst-atof1.c: New file.
7850 2006-12-09 Jakub Jelinek <jakub@redhat.com>
7852 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7853 Start searching for next comma at p rather than rest.
7854 * misc/Makefile (tests): Add tst-mntent2.
7855 * misc/tst-mntent2.c: New test.
7857 * misc/getusershell.c (initshells): Check for integer overflows.
7858 Make strings buffer one bigger as fgets always succeeds when second
7859 argument is 1. Don't use calloc for shells array. Disallow
7862 2006-12-08 Ulrich Drepper <drepper@redhat.com>
7864 * malloc/memusage.c: Handle realloc with new size of zero and
7865 non-NULL pointer correctly.
7866 (me): Really write first record twice.
7867 (struct entry): Make format bi-arch safe.
7868 (dest): Write out more realloc statistics.
7869 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7871 2006-12-05 Jakub Jelinek <jakub@redhat.com>
7873 * nis/nis_subr.c (nis_getnames): Revert last change.
7875 2006-12-04 Jakub Jelinek <jakub@redhat.com>
7877 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7878 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7879 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7880 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7882 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7883 * io/tst-ttyname_r.c: New test.
7885 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7887 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7889 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
7891 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7894 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7896 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7897 `clone' function to ensure proper unwinding stop of gdb.
7898 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7900 2006-12-01 Ulrich Drepper <drepper@redhat.com>
7902 * nscd/nscd.init: Remove obsolete and commented-out -S option
7905 2006-11-23 Jakub Jelinek <jakub@redhat.com>
7908 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7911 * manual/string.texi (strtok): Remove duplicate paragraph.
7913 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7915 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7916 libgcc not supporting `rflags' unwinding (register # >= 17).
7918 2006-11-30 Jakub Jelinek <jakub@redhat.com>
7920 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7923 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7924 Jakub Jelinek <jakub@redhat.com>
7925 Jan Kratochvil <jan.kratochvil@redhat.com>
7927 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7929 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7930 'restore_rt' even in the 'signal' directory.
7931 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7933 2006-11-27 Jakub Jelinek <jakub@redhat.com>
7936 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7937 malloc crashed. Don't allocate memory unnecessarily in each
7940 2006-10-21 Jakub Jelinek <jakub@redhat.com>
7942 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7944 2006-11-20 Ulrich Drepper <drepper@redhat.com>
7946 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7948 2006-11-18 Bruno Haible <bruno@clisp.org>
7950 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7951 __sysconf only after having tried to call getgroups32.
7953 2006-11-19 Ulrich Drepper <drepper@redhat.com>
7955 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7956 addresses for IPv4 queries if they can be mapped.
7958 2006-11-16 Jakub Jelinek <jakub@redhat.com>
7960 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7961 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7962 (signmask): Add .size directive.
7963 (othermask): Add .type directive.
7965 2006-11-14 Ulrich Drepper <drepper@redhat.com>
7967 * po/nl.po: Update from translation team.
7969 * timezone/zdump.c: Redo fix for BZ #3137.
7971 2006-11-14 Jakub Jelinek <jakub@redhat.com>
7973 * nss/nss_files/files-alias.c (get_next_alias): Set line back
7974 to first_unused after parsing :include: file.
7976 2006-11-10 Ulrich Drepper <drepper@redhat.com>
7978 * timezone/africa: Update from tzdata2006o.
7979 * timezone/antarctica: Likewise.
7980 * timezone/asia: Likewise.
7981 * timezone/australasia: Likewise.
7982 * timezone/backward: Likewise.
7983 * timezone/europe: Likewise.
7984 * timezone/iso3166.tab: Likewise.
7985 * timezone/northamerica: Likewise.
7986 * timezone/southamerica: Likewise.
7987 * timezone/zone.tab: Likewise.
7989 * time/tzfile.c (__tzfile_read): Extend to handle new file format
7990 on machines with 64-bit time_t.
7992 * timezone/checktab.awk: Update from tzcode2006o.
7993 * timezone/ialloc.c: Likewise.
7994 * timezone/private.h: Likewise.
7995 * timezone/scheck.c: Likewise.
7996 * timezone/tzfile.h: Likewise.
7997 * timezone/tzselect.ksh: Likewise.
7998 * timezone/zdump.c: Likewise.
7999 * timezone/zic.c: Likewise.
8002 * elf/ldconfig.c (main): Call setlocale and textdomain.
8003 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8006 * manual/argp.texi: Fix typos.
8007 * manual/charset.texi: Likewise.
8008 * manual/errno.texi: Likewise.
8009 * manual/filesys.texi: Likewise.
8010 * manual/lang.texi: Likewise.
8011 * manual/maint.texi: Likewise.
8012 * manual/memory.texi: Likewise.
8013 * manual/message.texi: Likewise.
8014 * manual/resource.texi: Likewise.
8015 * manual/search.texi: Likewise.
8016 * manual/signal.texi: Likewise.
8017 * manual/startup.texi: Likewise.
8018 * manual/stdio.texi: Likewise.
8019 * manual/sysinfo.texi: Likewise.
8020 * manual/syslog.texi: Likewise.
8021 * manual/time.texi: Likewise.
8022 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8025 * sunrpc/clnt_raw.c: Minimal message improvements.
8026 * sunrpc/pm_getmaps.c: Likewise.
8027 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8028 * nis/nis_print_group_entry.c: Likewise.
8029 * locale/programs/repertoire.c: Likewise.
8030 * locale/programs/charmap.c: Likewise.
8031 * malloc/memusage.sh: Likewise.
8032 * elf/dl-deps.c: Likewise.
8033 * locale/programs/ld-collate.c: Likewise.
8034 * libio/vswprintf.c: Likewise.
8035 * malloc/memusagestat.c: Likewise.
8036 * sunrpc/auth_unix.c: Likewise.
8037 * sunrpc/rpc_main.c: Likewise.
8038 * nscd/cache.c: Likewise.
8039 * locale/programs/repertoire.c: Unify output messages.
8040 * locale/programs/charmap.c: Likewise.
8041 * locale/programs/ld-ctype.c: Likewise.
8042 * locale/programs/ld-monetary.c: Likewise.
8043 * locale/programs/ld-numeric.c: Likewise.
8044 * locale/programs/ld-time.c: Likewise.
8045 * elf/ldconfig.c: Likewise.
8046 * nscd/selinux.c: Likewise.
8047 * elf/cache.c: Likewise.
8048 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8051 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8055 2006-11-10 Jakub Jelinek <jakub@redhat.com>
8057 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8058 if N is one bigger than return value.
8059 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8060 and l1 last arguments, if buf is defined, verify the return value
8061 equals to strlen (buf) and verify no byte beyond passed length
8064 2006-11-10 Ulrich Drepper <drepper@redhat.com>
8066 * po/sv.po: Update from translation team.
8068 2006-11-09 Ulrich Drepper <drepper@redhat.com>
8070 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8073 2006-11-10 Jakub Jelinek <jakub@redhat.com>
8075 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8078 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8079 Use __new_sys_siglist instead of _sys_siglist_internal as
8080 second macro argument.
8081 (_old_sys_siglist): Use declare_symbol_alias macro instead of
8084 2006-11-09 Ulrich Drepper <drepper@redhat.com>
8087 * posix/unistd.h (sysconf): Remove const attribute.
8089 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8090 temporary or deprecated addresses.
8091 Patch by Sridhar Samudrala <sri@us.ibm.com>.
8093 * string/Makefile (tests): Add tst-strxfrm2.
8094 * string/tst-strxfrm2.c: New file.
8096 2006-10-09 Jakub Jelinek <jakub@redhat.com>
8098 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8099 rather than r->r_brk.
8101 2006-11-08 Jakub Jelinek <jakub@redhat.com>
8103 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8104 optimization even if needed > n.
8106 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8107 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8108 return false, otherwise return true.
8109 (cache_rpath): Return decompose_rpath return value.
8111 2006-11-07 Jakub Jelinek <jakub@redhat.com>
8113 * include/libc-symbols.h (declare_symbol): Rename to...
8114 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
8115 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8117 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8119 * sysdeps/gnu/siglist.c: Likewise.
8121 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
8123 * sysdeps/powerpc/fpu/bits/mathinline.h
8124 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8125 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
8127 2006-11-05 Ulrich Drepper <drepper@redhat.com>
8129 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8130 Update handling of cache descriptor 0x49 for new models.
8131 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8134 2006-11-02 Jakub Jelinek <jakub@redhat.com>
8136 * malloc/memusage.c (dest): Reset not_me back to false after
8137 printing statistics.
8139 2006-11-02 Ulrich Drepper <drepper@redhat.com>
8141 * configure.in: Work around ld --help change and avoid -z relro
8142 test completely if the architecture doesn't care about security.
8144 2006-11-01 Ulrich Drepper <drepper@redhat.com>
8146 * po/sv.po: Update from translation team.
8148 2006-10-31 Ulrich Drepper <drepper@redhat.com>
8150 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8151 generate compatibility version.
8153 2006-10-29 Ulrich Drepper <drepper@redhat.com>
8155 * configure.in: Relax -z relro requirement a bit.
8157 * po/sv.po: Update from translation team.
8159 2006-10-29 Jakub Jelinek <jakub@redhat.com>
8161 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8162 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8163 * elf/dl-close.c (_dl_close_worker): Likewise.
8164 * elf/dl-open.c (_dl_open_worker): Likewise.
8165 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8167 2006-10-27 Ulrich Drepper <drepper@redhat.com>
8169 * configure.in: Require assembler support for visibility, compiler
8170 support for visibility and aliases, linker support for various -z
8172 * Makeconfig: Remove conditional code which now is unnecessary.
8173 * config.h.in: Likewise.
8174 * config.make.in: Likewise.
8175 * dlfcn/Makefile: Likewise.
8176 * elf/Makefile: Likewise.
8177 * elf/dl-load.c: Likewise.
8178 * elf/rtld.c: Likewise.
8179 * include/libc-symbols.h: Likewise.
8180 * include/stdio.h: Likewise.
8181 * io/Makefile: Likewise.
8182 * io/fstat.c: Likewise.
8183 * io/fstat64.c: Likewise.
8184 * io/fstatat.c: Likewise.
8185 * io/fstatat64.c: Likewise.
8186 * io/lstat.c: Likewise.
8187 * io/lstat64.c: Likewise.
8188 * io/mknod.c: Likewise.
8189 * io/mknodat.c: Likewise.
8190 * io/stat.c: Likewise.
8191 * io/stat64.c: Likewise.
8192 * libio/stdio.c: Likewise.
8193 * nscd/Makefile: Likewise.
8194 * stdlib/Makefile: Likewise.
8195 * stdlib/atexit.c: Likewise.
8196 * sysdeps/generic/ldsodefs.h: Likewise.
8197 * sysdeps/i386/dl-machine.h: Likewise.
8198 * sysdeps/i386/sysdep.h: Likewise.
8199 * sysdeps/i386/i686/memcmp.S: Likewise.
8200 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8201 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8202 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8204 * Makerules: USE_TLS support is now default.
8205 * tls.make.c: Likewise.
8206 * csu/Versions: Likewise.
8207 * csu/libc-start.c: Likewise.
8208 * csu/libc-tls.c: Likewise.
8209 * csu/version.c: Likewise.
8210 * dlfcn/dlinfo.c: Likewise.
8211 * elf/dl-addr.c: Likewise.
8212 * elf/dl-cache.c: Likewise.
8213 * elf/dl-close.c: Likewise.
8214 * elf/dl-iteratephdr.c: Likewise.
8215 * elf/dl-load.c: Likewise.
8216 * elf/dl-lookup.c: Likewise.
8217 * elf/dl-object.c: Likewise.
8218 * elf/dl-open.c: Likewise.
8219 * elf/dl-reloc.c: Likewise.
8220 * elf/dl-support.c: Likewise.
8221 * elf/dl-sym.c: Likewise.
8222 * elf/dl-sysdep.c: Likewise.
8223 * elf/dl-tls.c: Likewise.
8224 * elf/ldconfig.c: Likewise.
8225 * elf/rtld.c: Likewise.
8226 * elf/tst-tls-dlinfo.c: Likewise.
8227 * elf/tst-tls1.c: Likewise.
8228 * elf/tst-tls10.h: Likewise.
8229 * elf/tst-tls14.c: Likewise.
8230 * elf/tst-tls2.c: Likewise.
8231 * elf/tst-tls3.c: Likewise.
8232 * elf/tst-tls4.c: Likewise.
8233 * elf/tst-tls5.c: Likewise.
8234 * elf/tst-tls6.c: Likewise.
8235 * elf/tst-tls7.c: Likewise.
8236 * elf/tst-tls8.c: Likewise.
8237 * elf/tst-tls9.c: Likewise.
8238 * elf/tst-tlsmod1.c: Likewise.
8239 * elf/tst-tlsmod13.c: Likewise.
8240 * elf/tst-tlsmod13a.c: Likewise.
8241 * elf/tst-tlsmod14a.c: Likewise.
8242 * elf/tst-tlsmod2.c: Likewise.
8243 * elf/tst-tlsmod3.c: Likewise.
8244 * elf/tst-tlsmod4.c: Likewise.
8245 * elf/tst-tlsmod5.c: Likewise.
8246 * elf/tst-tlsmod6.c: Likewise.
8247 * include/errno.h: Likewise.
8248 * include/link.h: Likewise.
8249 * include/tls.h: Likewise.
8250 * locale/global-locale.c: Likewise.
8251 * locale/localeinfo.h: Likewise.
8252 * malloc/arena.c: Likewise.
8253 * malloc/hooks.c: Likewise.
8254 * malloc/malloc.c: Likewise.
8255 * resolv/Versions: Likewise.
8256 * sysdeps/alpha/dl-machine.h: Likewise.
8257 * sysdeps/alpha/libc-tls.c: Likewise.
8258 * sysdeps/generic/ldsodefs.h: Likewise.
8259 * sysdeps/generic/tls.h: Likewise.
8260 * sysdeps/i386/dl-machine.h: Likewise.
8261 * sysdeps/ia64/dl-machine.h: Likewise.
8262 * sysdeps/ia64/libc-tls.c: Likewise.
8263 * sysdeps/mach/hurd/fork.c: Likewise.
8264 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8265 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8266 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8267 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8268 * sysdeps/s390/libc-tls.c: Likewise.
8269 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8270 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8271 * sysdeps/sh/dl-machine.h: Likewise.
8272 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8273 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8274 * sysdeps/x86_64/dl-machine.h: Likewise.
8276 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8277 split out locking and parameter checking.
8278 (_dl_close): Call _dl_close_worker after locking and checking.
8279 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8281 * elf/Makefile: Add rules to build and run tst-thrlock.
8282 * elf/tst-thrlock.c: New file.
8285 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8289 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8290 we are sure we do not need it anymore for _dl_close. Also move
8291 the asserts inside the lock region.
8292 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8294 2006-10-27 Jakub Jelinek <jakub@redhat.com>
8296 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8298 (_dl_lookup_symbol_x): Adjust caller.
8300 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8302 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8304 * elf/dl-libc.c: Revert l_scope name changes.
8305 * elf/dl-load.c: Likewise.
8306 * elf/dl-object.c: Likewise.
8307 * elf/rtld.c: Likewise.
8308 * elf/dl-close.c (_dl_close): Likewise.
8309 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8310 always use __rtld_mrlock_{change,done}. Always free old scope list
8311 here if not l_scope_mem.
8312 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8313 change. Never free scope list here. Just __rtld_mrlock_lock before
8314 the lookup and __rtld_mrlock_unlock it after the lookup.
8315 * elf/dl-sym.c: Likewise.
8316 * include/link.h (struct r_scoperec): Remove.
8317 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8318 with l_scope_mem and l_scoperec_lock with l_scope_lock.
8320 2006-10-25 Ulrich Drepper <drepper@redhat.com>
8322 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8324 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8326 * configure.in: Disable building profile libraries by default.
8328 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8330 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8331 as signed longs, check for x_base + pos overflow.
8332 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8333 * sunrpc/tst-xdrmem2.c: New test.
8335 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8337 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8338 _dl_lookup_symbol_x code.
8340 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8342 * elf/dl-runtime.c: Include sysdep-cancel.h.
8343 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8344 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
8345 instead of catomic_* macros.
8346 * elf/dl-sym.c: Include sysdep-cancel.h.
8347 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8348 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8349 * elf/dl-close.c: Include sysdep-cancel.h.
8350 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8351 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8352 * elf/dl-open.c: Include sysdep-cancel.h.
8353 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8354 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8356 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8359 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8360 fastbin rather than end of fastbin array.
8362 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8364 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8366 * sysdeps/x86_64/bits/atomic.h
8367 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8368 (catomic_decrement): Use correct body macro.
8370 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8372 * include/atomic.h: Add a unique prefix to all local variables
8374 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8376 2006-10-16 Ulrich Drepper <drepper@redhat.com>
8379 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8382 2006-10-14 Ulrich Drepper <drepper@redhat.com>
8384 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8386 2006-10-13 Ulrich Drepper <drepper@redhat.com>
8389 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8390 determine highest fast bin to consolidate, always look into all of
8392 (do_check_malloc_state): Only require for empty bins for large
8393 sizes in main arena.
8395 * libio/stdio.h: Add more __wur attributes.
8397 * elf/dl-minimal.c (realloc): Optimize last patch.
8399 2006-10-12 Richard Sandiford <richard@codesourcery.com>
8402 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8403 and use memcpy() if it does.
8405 2006-11-12 Andreas Jaeger <aj@suse.de>
8408 * manual/search.texi (Hash Search Function): Clarify.
8409 (Array Search Function): Clarify.
8411 2006-11-12 Joseph Myers <joseph@codesourcery.com>
8414 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8416 * math/atest-exp2.c (read_mpn_hex): Likewise.
8417 * math/atest-sincos.c (main): Likewise.
8419 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8421 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8422 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8423 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8425 * Versions.def: Add GLIBC_2.6 for libc.
8427 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8429 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8431 2006-10-11 Jakub Jelinek <jakub@redhat.com>
8433 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8435 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8437 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8438 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8440 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8442 * include/atomic.c: Define catomic_* operations.
8443 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
8444 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8445 * malloc/memusage.c: Likewise.
8446 * gmon/mcount.c: Likewise.
8447 * elf/dl-close.c: Likewise.
8448 * elf/dl-open.c: Likewise.
8449 * elf/dl-profile.c: Likewise.
8450 * elf/dl-sym.c: Likewise.
8451 * elf/dl-runtime.c: Likewise.
8452 * elf/dl-fptr.c: Likewise.
8453 * resolv/res_libc.c: Likewise.
8455 2006-10-10 Ulrich Drepper <drepper@redhat.com>
8457 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8458 components which lack them.
8460 * nis/nis_subr.c (nis_getnames): Make sure that we always return
8461 at least one entry consisting of the parameter concatenated with
8464 2006-10-10 Roland McGrath <roland@frob.com>
8466 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8467 * sysdeps/mach/hurd/futimes.c: Likewise.
8468 * sysdeps/mach/hurd/lutimes.c: Likewise.
8470 2006-10-09 Ulrich Drepper <drepper@redhat.com>
8471 Jakub Jelinek <jakub@redhat.com>
8473 Implement reference counting of scope records.
8474 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8475 from the list in objects which remain. Always allocate new scope
8477 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8478 don't resize, allocate a new one.
8479 * elf/dl-runtime.c: Update reference counters before using a scope
8481 * elf/dl-sym.c: Likewise.
8482 * elf/dl-libc.c: Adjust for l_scope name change.
8483 * elf/dl-load.c: Likewise.
8484 * elf/dl-object.c: Likewise.
8485 * elf/rtld.c: Likewise.
8486 * include/link.h: Include <rtld-lowlevel.h>. Define struct
8487 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
8488 Add l_scoperec_lock.
8489 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8490 * sysdeps/generic/rtld-lowlevel.h: New file.
8492 * include/atomic.h: Rename atomic_and to atomic_and_val and
8493 atomic_or to atomic_or_val. Define new macros atomic_and and
8494 atomic_or which do not return values.
8495 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8497 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8499 * po/sv.po: Update from translation team.
8501 2006-10-07 Ulrich Drepper <drepper@redhat.com>
8503 * Versions.def: Add GLIBC_2.6 to libpthread.
8505 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8506 (versioned_symbol): Likewise.
8507 (compat_symbol): Likewise.
8509 * po/tr.po: Update from translation team.
8511 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8513 * nis/Banner: Removed. It's been integral part forever and the
8514 author info is incomplete anyway.
8515 * libio/Banner: Likewise.
8517 * nis/nis_table.c (nis_list): If __follow_path fails in the new
8518 code, make sure the nis_freeresult call doesn't crash and that the
8519 result is reported correctly.
8521 2006-09-27 Jakub Jelinek <jakub@redhat.com>
8523 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8524 when callback is NULL.
8526 * nis/Versions (libnss_nisplus): Add
8527 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8528 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8529 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8530 _nss_create_tablename): Rename to...
8531 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8532 ... these. No longer static.
8533 (internal_setgrent): Adjust users.
8534 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8535 Don't use locking around _nss_grp_create_tablename call.
8536 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8538 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8540 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8542 2006-10-06 Andreas Jaeger <aj@suse.de>
8544 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8546 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8548 * po/pl.po: Update from translation team.
8550 * nscd/nscd.c (main): Fix typo in message.
8551 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8553 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8556 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8557 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8558 (__sigprocmask): Define.
8560 2006-10-02 Ulrich Drepper <drepper@redhat.com>
8562 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8565 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8567 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8568 in oldtotal and newtotal calculation.
8569 * nscd/nscd-client.h (struct mapped_database): Add datasize
8571 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8572 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8574 (__nscd_cache_search): Add checks to make sure we never reference
8575 data beyond the current mapping.
8577 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8579 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8580 variables const to avoid compiler warnings.
8582 * io/fts.c (fts_close): Remove redundant checks.
8583 (fts_build): Likewise.
8584 (fts_palloc): Likewise.
8586 * manual/message.texi (Advanced gettext functions,
8587 Using gettextized software): Fix typos.
8589 2006-09-30 Ulrich Drepper <drepper@redhat.com>
8591 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8592 explain why there are no leaks.
8594 2006-09-29 Ulrich Drepper <drepper@redhat.com>
8596 * libio/wmemstream.c: Include <wchar.h>.
8597 * libio/bug-wmemstream1.c: Likewise.
8598 * libio/tst-wmemstream1.c: Likewise.
8599 * libio/tst-wmemstream2.c: Likewise.
8601 * version.h (RELEASE): Bump to 2.5.
8602 * README: Regenerated.
8604 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8607 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8608 found no group members.
8609 Patch by Petr Baudis.
8611 2006-09-29 Jakub Jelinek <jakub@redhat.com>
8613 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8614 assert bootstrap_map.l_tls_modid is zero.
8615 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8618 2006-09-27 Ulrich Drepper <drepper@redhat.com>
8620 * libio/stdio.h: Move open_wmemstream prototype to ...
8621 * wcsmbs/wchar.h: ... here.
8623 2006-09-25 Jakub Jelinek <jakub@redhat.com>
8626 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8627 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8628 __{,l}chown to handle the rest.
8629 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8630 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8631 __{,l}chown to handle the rest.
8632 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8634 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8635 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8638 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8639 time, rather allocate increasingly bigger arrays of pointers, if
8640 possible with alloca, if too large with malloc.
8642 2006-09-24 Jakub Jelinek <jakub@redhat.com>
8644 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8646 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8648 2006-09-24 Ulrich Drepper <drepper@redhat.com>
8650 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8652 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8653 IFA_F_HOMEADDRESS flag for interfaces.
8654 * include/ifaddrs.h (struct in6addrinfo): Define
8657 2006-09-21 Jakub Jelinek <jakub@redhat.com>
8660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8661 PTR_DEMANGLE3): Define.
8662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8663 PTR_DEMANGLE3): Likewise.
8664 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8665 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8667 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8669 2006-09-20 Jakub Jelinek <jakub@redhat.com>
8671 * po/libc.pot: Regenerated.
8672 * po/be.po: Updated.
8673 * po/ca.po: Likewise.
8674 * po/cs.po: Likewise.
8675 * po/da.po: Likewise.
8676 * po/de.po: Likewise.
8677 * po/el.po: Likewise.
8678 * po/en_GB.po: Likewise.
8679 * po/es.po: Likewise.
8680 * po/fi.po: Likewise.
8681 * po/fr.po: Likewise.
8682 * po/gl.po: Likewise.
8683 * po/hr.po: Likewise.
8684 * po/hu.po: Likewise.
8685 * po/ja.po: Likewise.
8686 * po/ko.po: Likewise.
8687 * po/nb.po: Likewise.
8688 * po/nl.po: Likewise.
8689 * po/pl.po: Likewise.
8690 * po/pt_BR.po: Likewise.
8691 * po/ru.po: Likewise.
8692 * po/rw.po: Likewise.
8693 * po/sk.po: Likewise.
8694 * po/sv.po: Likewise.
8695 * po/tr.po: Likewise.
8696 * po/zh_CN.po: Likewise.
8697 * po/zh_TW.po: Likewise.
8700 * iconv/iconv_prog.c (main): Fix spelling in error message.
8701 * iconv/iconvconfig.c (main): Likewise.
8702 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8703 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8704 * locale/programs/localedef.c (main): Likewise.
8705 * locale/programs/repertoire.c (repertoire_read): Likewise.
8706 * timezone/zdump.c (main): Likewise.
8707 * nscd/connections.c (handle_request): Fix spelling in log message.
8708 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8710 2006-09-20 Ulrich Drepper <drepper@redhat.com>
8712 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8715 2006-09-20 Andreas Jaeger <aj@suse.de>
8717 * math/libm-test.inc (lrint_test_upward): Fix typo.
8719 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8722 * math/libm-test.inc (lrint_test_tonearest): New function.
8723 (lrint_test_towardzero): New function.
8724 (lrint_test_downward): New function.
8725 (lrint_test_upward): New function.
8726 (main): Run these new tests.
8727 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8728 of values near to 0.
8729 (two52): Use double not long double.
8730 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8731 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8732 (two23): Use float not double.
8733 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8734 (two23): Use float not double.
8735 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8736 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8737 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8738 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8740 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8742 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8743 Cast sp to unsigned long to avoid compiler warning.
8744 Use __makecontext_ret function instead of a trampoline on the stack.
8745 (__makecontext_ret): New function.
8746 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8748 2006-09-19 Jakub Jelinek <jakub@redhat.com>
8750 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8751 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8754 2006-09-19 Ulrich Drepper <drepper@redhat.com>
8756 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8757 sure no reference to the unloaded map's search list remains in the
8760 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8762 * elf/Makefile: Add rules to build and run unload7 test.
8763 * elf/unload7.c: New test.
8764 * elf/unload7mod1.c: New file.
8765 * elf/unload7mod2.c: New file.
8767 2006-09-18 Jakub Jelinek <jakub@redhat.com>
8769 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8770 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8771 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8772 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8773 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8774 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8775 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8776 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8777 PTRACE_GETEVENTMSG): Likewise.
8778 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8781 2006-09-17 Mike Frysinger <vapier@gentoo.org>
8783 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8784 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8785 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8786 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8788 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8790 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8791 write '\0' to the fd.
8792 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8793 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8794 Change regs to unsigned long pointer from unsigned int, fix fscr
8797 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8799 * io/Makefile (CFLAGS-fstatat.c): Set.
8800 (CFLAGS-fstatat64.c): Likewise.
8801 (CFLAGS-mknodat.c): Likewise.
8803 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8804 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8805 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8806 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8808 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8809 Steven Munroe <sjmunroe@us.ibm.com>
8811 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8812 names to the beginning. Rename "cell" to "cellbe".
8813 (_dl_powerpc_platforms): New.
8814 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8815 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8816 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8817 (_DL_HWCAP_PLATFORM): Define to new mask.
8818 (_dl_platform_string, _dl_string_platform): New functions.
8819 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8820 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8822 2006-09-12 Jakub Jelinek <jakub@redhat.com>
8825 * README.libm: Fix a thinko in sqrt algorithm description.
8828 * manual/string.texi (argz_delete): Fix prototype.
8829 Patch by <alpt@freaknet.org>.
8831 2006-08-26 Joseph Myers <joseph@codesourcery.com>
8834 * io/test-lfs.c (do_prepare): Give name_len type size_t.
8835 * io/tst-fcntl.c (do_prepare): Likewise.
8836 * posix/tst-exec.c (do_prepare): Likewise.
8837 * posix/tst-preadwrite.c (do_prepare): Likewise.
8838 * posix/tst-spawn.c (do_prepare): Likewise.
8839 * posix/tst-truncate.c (do_prepare): Likewise.
8840 * rt/tst-aio.c (do_prepare): Likewise.
8841 * rt/tst-aio64.c (do_prepare): Likewise.
8842 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8845 2006-09-09 Ulrich Drepper <drepper@redhat.com>
8848 * time/mktime.c (guess_time_tm): Fix overflow detection.
8849 * time/Makefile (tests): Add bug-mktime1.
8850 * time/bug-mktime1.c: New file.
8853 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8856 2006-09-07 Jakub Jelinek <jakub@redhat.com>
8859 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8860 Ensure relocation doesn't clobber any bits outside of the
8861 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8862 R_SPARC_HI22 and R_SPARC_H44.
8865 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8866 (long) (MINSIZE + nb - old_size) is positive.
8868 * malloc/arena.c (grow_heap): When growing bail even if new_size
8872 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8875 2006-09-06 Jakub Jelinek <jakub@redhat.com>
8877 * posix/regex_internal.c (re_string_reconstruct): Handle
8878 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8879 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8880 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8881 re_string_context_at.
8882 * posix/Makefile: Add rules to build and run bug-regex26 test.
8883 * posix/bug-regex26.c: New test.
8885 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8886 rather than col_sym_free. Move seqp declaration earlier.
8888 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8890 2006-09-05 Jakub Jelinek <jakub@redhat.com>
8892 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8893 decl before first goto out.
8895 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8897 * Makerules (shlib.lds): If have-hash-style, put .hash section
8898 at the end of the RO segment.
8900 2006-09-04 Ulrich Drepper <drepper@redhat.com>
8902 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8903 style hash table format is used.
8905 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8907 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8908 randomization rather than before.
8909 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8911 2006-08-31 Jakub Jelinek <jakub@redhat.com>
8913 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8915 * malloc/malloc.c (_int_malloc): Use full list insert and not
8916 shortcut which assumes the list is empty for large requests
8919 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8921 2006-08-30 Jakub Jelinek <jakub@redhat.com>
8923 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8924 and offout arguments to the prototype.
8925 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8926 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8927 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8928 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8929 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8930 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8931 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8932 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8934 2006-08-28 Ulrich Drepper <drepper@redhat.com>
8936 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8938 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8941 2006-08-28 Jakub Jelinek <jakub@redhat.com>
8943 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8944 only if herrno is NETDB_INTERNAL. Handle errors other than
8945 ERANGE outside of the loops, handle TRY_AGAIN.
8947 * locale/programs/ld-ctype.c (translit_flatten): Issue error
8948 if other's ctype category was missing.
8949 * locale/programs/ld-collate.c (collate_read): Return if
8950 copy_locale's collate category is missing.
8952 2006-08-27 Ulrich Drepper <drepper@redhat.com>
8955 * malloc/malloc.c (public_rEALLOc): Try harder by using other
8956 arenas if allocation failed.
8957 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8959 2006-08-26 Ulrich Drepper <drepper@redhat.com>
8961 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8963 (malloc_state): Reduce bins size by 2.
8964 (_int_malloc): Fix test for large enough buffer for early termination.
8965 When no unsorted block matches perfectly and an exiting block has
8966 to be split, use full list insert and not shortcut which assumes
8969 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8972 2006-08-24 Ulrich Drepper <drepper@redhat.com>
8974 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8977 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8978 symbol require exact match (these are PLTs).
8979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8980 (_dl_ppc64_addr_sym_match): Likewise.
8983 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8984 If symbol has a value use it.
8985 * elf/tst-dladdr1.c: New file.
8986 * elf/Makefile: Add rules to build and run tst-addr1.
8988 2006-08-24 Jakub Jelinek <jakub@redhat.com>
8990 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8991 keeps failing and heap growth or new heap creation isn't
8993 * malloc/tst-malloc.c (main): Add new tests.
8995 2006-08-24 Ulrich Drepper <drepper@redhat.com>
8998 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8999 as in the x86-64 code to use bswap.
9001 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
9004 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9006 * posix/bits/unistd.h: Likewise.
9008 2006-05-15 Mike Frysinger <vapier@gentoo.org>
9011 * string/strchr.c: Add cast to avoid warning.
9013 2006-08-21 Ulrich Drepper <drepper@redhat.com>
9015 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9016 platforms define as 512K. For 64-bit platforms as 32MB. The lower
9017 limit is needed to avoid the exploding of the address space
9018 requirement for secondary heaps.
9019 * malloc/arena.c (HEAP_MAX_SIZE): Define using
9020 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9022 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
9025 * Makerules (depfiles): Handle extra-test-objs the same as
9027 (common-mostlyclean): Likewise.
9028 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9030 * elf/Makefile (extra-objs): Likewise.
9031 * stdlib/Makefile (extra-objs): Likewise.
9033 2006-08-14 Eric Blake <ebb9@byu.net>
9036 * misc/error.h: Assume C89 or better.
9037 * misc/error.c: Likewise.
9039 2006-08-21 Ulrich Drepper <drepper@redhat.com>
9042 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9043 __ASSUME_ATFCTS is defined.
9045 2006-08-19 Ulrich Drepper <drepper@redhat.com>
9047 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9048 to sort in each call.
9050 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9051 is empty simply return and use next service.
9052 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9054 * locale/programs/charmap.c (charmap_read): Add new parameter. It
9055 tells us when not finding a charmap file is an error.
9056 * locale/programs/charmap.h: Adjust charmap_read prototype.
9057 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9058 cannot find a charmap.
9059 * locale/programs/localedef.c (main): Adjust charmap_read call.
9061 2006-08-15 Jakub Jelinek <jakub@redhat.com>
9063 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9064 sysdeps/posix/pause.c implementation instead.
9066 2006-08-09 Jakub Jelinek <jakub@redhat.com>
9068 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9071 2006-08-13 Andreas Schwab <schwab@suse.de>
9073 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9074 Don't clobber caller's LRSAVE.
9075 (_dl_prof_resolve): Likewise.
9077 2006-08-14 Ulrich Drepper <drepper@redhat.com>
9080 * libio/memstream.c (open_memstream): Allocate initial buffer with
9082 * libio/wmemstream.c (open_wmemstream): Likewise.
9083 * libio/strops.c: Pretty printing.
9084 (_IO_str_overflow): Clear uninitialized part of the new buffer.
9085 (enlarge_userbuf): New function.
9086 (_IO_str_seekoff): Call it if seek position is larger than current
9088 * libio/wstrops.c: Likewise.
9089 * libio/vasprintf.c: Add comment as to why we do not have to use
9090 calloc instead of malloc to allocate initial buffer.
9091 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9092 * libio/bug-memstream1.c: New file.
9093 * libio/bug-wmemstream1.c: New file.
9095 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9097 * libio/wstrops.c: Remove dead macro definitions and comments.
9098 * libio/strops.c: Likewise.
9101 * login/utmpname.c (__utmpname): Remove unnecessary test.
9103 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
9106 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9109 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9112 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9114 * sysdeps/unix/clock_settime.c: Add support for platform-specific
9115 setting of CPU clocks.
9117 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
9120 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9121 since C99 requires the result to promote to 'int' when uint_least8_t
9122 and uint_least16_t promote to 'int'.
9124 2006-08-12 Ulrich Drepper <drepper@redhat.com>
9127 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9128 lenght of one output field, correct bitmask creation.
9129 * locale/programs/ld-time.c: Add alignment.
9132 * misc/error.c: Add space between program name and message if file
9135 2006-08-03 Eric Blake <ebb9@byu.net>
9138 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9140 2006-08-09 Ulrich Drepper <drepper@redhat.com>
9142 * malloc/memusagestat.c: Silence warnings.
9144 * malloc/malloc.c: Dynamically size mmap treshold if the program
9145 frees mmaped blocks.
9146 Patch by Valerie Henson and Arjan van de Ven.
9148 2006-08-08 Jakub Jelinek <jakub@redhat.com>
9150 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9153 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9154 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9155 (DEF): Don't put the var into .gnu.linkonce.r.* section.
9156 Only provide var definitions in strtol_l (or for *ull*
9159 * stdio-common/bug16.c (tests): New array.
9160 (do_tests): Allow the first hexadecimal digit
9161 to be 1, 2, 4 or 8. Do 3 additional tests.
9163 * sysdeps/s390/fpu/libm-test-ulps: Update.
9165 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9166 fchownat syscall if available.
9167 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9168 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9169 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9171 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9173 * nis/nis_xdr.c: Avoid some function calls.
9175 2006-08-07 Jakub Jelinek <jakub@redhat.com>
9176 Ulrich Drepper <drepper@redhat.com>
9178 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9179 short cut if only one name component is stripped away.
9181 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9183 * nis/nis_call.c: Minor cleanups throughout.
9184 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9185 (first_shoot): Add search_parent_first parameter. Only if it is set
9186 search parent server first.
9187 If directory for table found through cold start cache is not the same
9188 as referenced in the cache, don't use it.
9189 (__nisfind_server): Take additional parameter. Pass it on to
9191 (__prepare_niscall): Adjust __nisfind_server call.
9192 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9193 * nis/nis_table.c: Adjust __nisfind_server call.
9194 * nis/nis_lookup.c: Likewise.
9195 (nis_lookup): Don't loop endlessly if name is reduced to ".".
9197 2006-08-03 Ulrich Drepper <drepper@redhat.com>
9200 * math/s_cacosh.c: Return values from positive branch.
9201 * math/s_cacoshf.c: Likewise.
9202 * math/s_cacoshl.c: Likewise.
9205 * sysvipc/sys/msg.h: Change return value to ssize_t.
9206 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9207 * sysvipc/msgrcv.c: Likewise.
9208 * include/sys/msg.h: Likewise.
9210 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9211 test introduced in patch for bz #661.
9212 (getgrouplist): Simplify code a bit. Don't allocate one additional
9213 element for NEWGROUPS.
9216 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9217 'f', use '1' as leading digit not '\1'.
9218 * stdio-common/Makefile (tests): Add bug16.
9219 * stdio-common/bug16.c: New file.
9222 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9223 and don't try to open it. The patch introducing the macro
9224 contained a bug and used the same file name as the new file
9225 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9226 this out completely.
9229 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9230 Patch by Jerry James <Jerry.James@usu.edu>.
9232 * rt/Makefile (tests): Add tst-clock2.
9233 * rt/tst-clock2.c: New file.
9236 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9237 function and its parameters and pass it to new thread.
9238 (__gai_notify): Add support for alternative waiting for completion.
9239 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9240 waiting for completion.
9241 * resolv/getaddrinfo_a.c: Likewise.
9242 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9243 waiting for completion is used.
9244 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9245 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9246 * resolv/gai_error.c: Likewise.
9247 * resolv/gai_sigqueue.c: Likewise.
9249 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9251 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9252 errno to EBADF and return MACH_PORT_NULL.
9254 2006-06-23 Joseph Myers <joseph@codesourcery.com>
9257 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9259 2006-08-02 Ulrich Drepper <drepper@redhat.com>
9261 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9262 walk them instead of the symbol table.
9264 2006-08-01 Ulrich Drepper <drepper@redhat.com>
9267 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9268 status of NSS calls, not the number of returned entries.
9270 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9271 request_key, keyctl.
9273 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9275 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9277 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9279 * elf/tst-auditmod1.c: Fix typo in #error.
9281 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9283 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9285 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9287 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9289 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9290 that the directory is empty even on non-POSIX filesystems.
9292 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9294 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9296 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9297 the backend NSS module. If backend setgrent call failed, don't have
9298 internal_setgrent fail. Just remember this until it is needed.
9299 * nis/nss_compat/compat-pwd.c: Likewise.
9300 * nis/nss_compat/compat-spwd.c: Likewise.
9302 2006-07-30 Roland McGrath <roland@redhat.com>
9304 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9305 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9306 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9307 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9309 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9310 (nanosleep_not_cancel): New macro.
9311 (sigsuspend_not_cancel): new macro.
9312 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9313 (do_sigsuspend): Define as inline.
9314 (__sigsuspend): Always use do_sigsuspend.
9315 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9316 * include/signal.h: Declare __sigsuspend_nocancel.
9317 * sysdeps/posix/pause.c
9318 [! NO_CANCELLATION] (__pause_nocancel): New function.
9320 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9321 * include/time.h (__nanosleep_nocancel): Likewise.
9323 2006-07-30 Ulrich Drepper <drepper@redhat.com>
9325 * locale/programs/localedef.c (add_to_readlist): Rename local
9326 variables to avoid confusion.
9328 * locale/programs/charmap.c (charmap_read): Emit error message if
9329 charmap couldn't be found or read.
9331 2006-07-28 Ulrich Drepper <drepper@redhat.com>
9333 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9334 __ASSUME_FUTEX_LOCK_PI.
9335 * include/time.h: Declare __nanosleep_nocancel.
9336 * include/unistd.h: Declare __pause_nocancel.
9338 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9339 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9340 get the __stack_chk_fail_local definition when it's needed.
9342 2006-07-26 Ulrich Drepper <drepper@redhat.com>
9344 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9345 * dlfcn/bug-atexit3.c: New file.
9346 * dlfcn/bug-atexit3-lib.cc: New file.
9348 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9349 used when the namespace is not the base namespace.
9351 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
9353 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9354 (__new_exitfn): Bump it in every successful call.
9355 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9356 more exit handlers, call them right away.
9357 * stdlib/exit.h: Declare __new_exitfn_called.
9359 2006-07-25 Ulrich Drepper <drepper@redhat.com>
9361 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9362 calling registered handler.
9364 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9365 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9366 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9367 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9368 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9369 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9370 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9371 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9373 2006-07-10 Ulrich Drepper <drepper@redhat.com>
9375 * elf/dl-lookup.c (dl_new_hash): New functions.
9376 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9377 value here. Compute new-style hash value. Pass new hash value
9378 and reference to variable with the old value to do_lookup_x.
9379 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9380 old-style hash table.
9381 (_dl_debug_bindings): Pass new hash value and reference to variable
9382 with the old value to do_lookup_x.
9383 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9384 new-style hash value and change old-style hash value parameter to
9385 be a reference. Reoganize functions to determine whether
9386 new-style hash table is available. Only fall back on old-style
9387 table. If old-style hash value is needed, compute it here.
9388 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9390 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9391 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
9392 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9393 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9394 * Makeconfig: If linker supports --hash-style option add it to all
9395 linker command lines to build DSOs.
9396 * config.make.in: Define have-hash-style.
9397 * configure.in: Test whether linker supports --hash-style option.
9399 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9400 * sysdeps/generic/ldsodefs.h: Adjust prototype.
9402 2006-06-27 Ulrich Drepper <drepper@redhat.com>
9404 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9407 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9408 RPATH of main map twice.
9410 2006-06-22 Ulrich Drepper <drepper@redhat.com>
9412 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9413 look further, return original strings.
9414 (_nl_find_msg): Do not return found translation if the conversion
9415 failed. Either signal the string is unusable or that something went
9416 wrong and the original should be used.
9418 2006-06-21 Ulrich Drepper <drepper@redhat.com>
9420 * string/_strerror.c (__strerror_r): Add __builtin_expect.
9422 2006-06-14 Jakub Jelinek <jakub@redhat.com>
9425 * misc/insremque.c (insque): Handle prev == NULL.
9426 * misc/Makefile (tests): Add tst-insremque.
9427 * misc/tst-insremque.c: New test.
9429 2006-06-17 Ulrich Drepper <drepper@redhat.com>
9432 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9433 conflict with DL_DST_REQUIRED.
9435 2006-06-16 Ulrich Drepper <drepper@redhat.com>
9437 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9438 match what Solaris does.
9440 2006-06-04 Ulrich Drepper <drepper@redhat.com>
9442 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9443 local_setegid instead of seteuid and setegid.
9444 * sysdeps/generic/local-setxid.h: New file.
9445 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9447 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9449 * string/Makefile (tests): Add bug-envz1.
9450 * string/bug-envz1.c: New file.
9452 2006-06-02 Jakub Jelinek <jakub@redhat.com>
9454 * posix/regex_internal.c (re_string_skip_chars): If no character has
9455 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
9456 to the byte which couldn't be converted.
9457 (re_string_reconstruct): Don't clear valid_raw_len before calling
9458 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9459 tip_context using re_string_context_at.
9460 * posix/Makefile: Add rules to build and run bug-regex25 test.
9461 * posix/bug-regex25.c: New test.
9463 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
9466 * string/envz.c (envz_strip): Correct erroneously reversed src
9467 and dest parameters to memmove() invocation.
9469 2006-05-30 Jakub Jelinek <jakub@redhat.com>
9471 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9472 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9473 to make sure the database has been already invalidated.
9474 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
9475 after the cache has been invalidated. Use pthread_mutex_lock rather
9476 than pthread_mutex_trylock if fd != -1.
9477 * nscd/connections.c (invalidate_cache): Add fd argument, write
9478 response to fd if not calling prune_cache, pass fd to prune_cache.
9479 (handle_request): Adjust invalidate_cache caller.
9480 (nscd_run): Pass -1 as fd to prune_cache.
9482 2006-05-30 Ulrich Drepper <drepper@redhat.com>
9484 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9487 2006-05-29 Ulrich Drepper <drepper@redhat.com>
9489 * nscd/nscd.h (struct database_dyn): Add prunelock field.
9490 * nscd/cache.c (prune_cache): Take prunelock before starting the
9491 work. Just return in case it is already taken.
9492 * nscd/connections.c (dbs): Initialize .prunelock.
9494 2006-05-25 Ulrich Drepper <drepper@redhat.com>
9496 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9497 copying. No need to allocate new array for group members. Just
9498 move the pointers and update the size.
9500 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9501 Avoid memory leak in case realloc fails. Simplification for
9502 better code generation.
9504 Avoid deprecation warning because of libc_hidden_proto for
9506 * inet/inet6_option.c (option_alloc): Renamed from
9507 inet6_option_alloc. Made static.
9508 (inet6_option_alloc): Now a simple wrapper around option_alloc.
9509 (inet6_option_append): Call option_alloc.
9510 * include/netinet/in.h: Remove libc_hidden_proto for
9513 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9514 for cleanup when cb!=NULL [Coverity CID 233].
9516 2006-05-24 Ulrich Drepper <drepper@redhat.com>
9519 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9520 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9521 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9522 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9523 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9524 and inet6_rth_getaddr.
9525 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9527 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9528 Mark inet6_option_* interfaces as deprecated.
9529 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9530 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9531 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9532 inet6_rth_segments, and inet6_rth_getaddr.
9533 * inet/inet6_opt.c: New file.
9534 * inet/inet6_rth.c: New file.
9536 * inet/netinet/icmp6.h: Pretty printing.
9539 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9541 2006-05-23 Ulrich Drepper <drepper@redhat.com>
9543 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9544 doing it all here. When server does not know the answer do not
9545 fail immediate, try parent first.
9547 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9550 2006-05-20 Ulrich Drepper <drepper@redhat.com>
9552 * nis/nis_call.c (__prepare_niscall): New function. Split out
9554 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9556 (__follow_path): New function. Split out from nis_list.
9557 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9559 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9561 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9563 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9564 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9565 from libnsl for version GLIBC_PRIVATE.
9566 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9567 Remove entry parameter from _nss_nisplus_parse_pwent and
9568 _nss_nisplus_parse_grent.
9569 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9570 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9571 again. Rewrite getpwent handling to not use nis_first_entry and
9572 nis_next_entry. Roll out own niscall handling.
9573 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9575 * sunrpc/xdr_rec.c: Fix typo in comment.
9577 2006-05-19 Ulrich Drepper <drepper@redhat.com>
9579 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9582 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9583 to allocate memory for my_pollfd. Better initialization of
9584 cb_is_running. Use TEMP_FAILURE_RETRY.
9586 * malloc/memusage.sh (memusageso): Add quotes.
9587 (memusagestat): Likewise.
9588 * debug/xtrace.sh (pcprofileso): Likewise.
9589 (pcprofiledump): Likewise.
9590 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9592 * malloc/Makefile ($(objpfx)memusage): Likewise.
9594 * nis/nis_callback.c (__nis_create_callback): Calls to
9595 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9596 asprintf call fails.
9598 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9599 no uninitialized memory is passed to sendto.
9601 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9603 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9604 of snprintf+strdup. Handle OOM.
9605 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9606 cb->serv together. Remove now obsolete free calls.
9607 (__nis_destroy_callback): Remove now obsolete free call.
9609 2006-05-18 David Woodhouse <dwmw2@redhat.com>
9611 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9612 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9613 and ULA respectively). Set precedence for IPv4 address to 10 as
9614 defined in RFC3484 for preferring IPv6.
9615 * posix/gai.conf: Update to match the new default tables.
9617 2006-05-18 Jakub Jelinek <jakub@redhat.com>
9619 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9620 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9621 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9622 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9624 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9626 (init_nss_interface): Remove initialization of these variables.
9628 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9630 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9631 nis_free_directory forward to avoid duplication.
9633 2006-05-17 Ulrich Drepper <drepper@redhat.com>
9635 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9636 rec_dirsearch returning NULL.
9637 (first_shoot): Handle __nis_finddirectory returning NULL.
9638 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9640 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9641 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9643 2006-05-17 Jakub Jelinek <jakub@redhat.com>
9645 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9648 2006-05-15 Ulrich Drepper <drepper@redhat.com>
9650 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9652 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9653 * nscd/nscd_getgr_r.c: Likewise.
9655 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9657 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9658 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9660 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9662 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9664 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9666 * include/rpc/auth.h: Mark xdr_des_block_internal and
9667 xdr_opaque_auth_internal as hidden.
9669 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9672 * include/rpc/xdr.h: Mark all _internal functions as hidden.
9674 * misc/getusershell.c (okshells): Don't use static initializers,
9677 * stdlib/fmtmsg.c (keywords): Change type of len element to
9678 uint32_t to not waste space on 64bit machines.
9680 * locale/setlocale.c: Change _nl_category_names into a string.
9681 Add new _nl_category_name_idxs. Change all users.
9682 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9683 Declare _nl_category_name_idxs.
9684 * locale/findlocale.c: Adjust for _nl_category_names change.
9685 * locale/loadlocale.c: Likewise.
9686 * locale/newlocale.c: Likewise.
9687 * intl/dcigettext.c: Likewise.
9689 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9690 (add_alias2): ...here. New function.
9691 (__gconv_read_conf): Simplify builtin alias handling.
9692 (builtin_aliases): Convert to string to avoid relocations.
9693 * iconv/gconv_builtin.h: Add comment about correct formatting.
9695 2006-05-15 Jakub Jelinek <jakub@redhat.com>
9697 * resolv/res_debug.c (loc_ntoa): Make error const.
9699 2006-05-14 Andreas Schwab <schwab@suse.de>
9701 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9703 2006-05-12 Jakub Jelinek <jakub@redhat.com>
9705 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9706 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9709 2006-05-11 Ulrich Drepper <drepper@redhat.com>
9711 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9713 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9715 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9716 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9718 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9719 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9721 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9722 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9725 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9726 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9729 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9730 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9732 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9733 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9735 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9736 * include/rpcsvc/nis_callback.h: New file.
9738 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9739 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9741 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9742 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9744 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9745 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9747 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9748 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9750 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9751 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9754 * nis/nis_xdr.h: Mark all functions as hidden. Remove
9755 __BEGIN_DECLS and __END_DECLS, the header is not installed.
9757 * nis/nis_error.c: Remove table of strings. Use position
9758 independent mechanism.
9759 * nis/nis_error.h: New file.
9761 2006-05-11 Jakub Jelinek <jakub@redhat.com>
9763 * locale/programs/ld-time.c (time_finish): If wide era name or
9764 format aren't provided, set both wname and wformat to L"".
9766 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9768 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9769 results if the call was succesful.
9771 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9773 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9776 2006-05-10 Jakub Jelinek <jakub@redhat.com>
9778 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9780 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9782 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9783 caller makes sure this is not the case.
9784 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
9786 2006-05-09 Ulrich Drepper <drepper@redhat.com>
9788 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9791 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9792 [Coverity CID 229, 230]
9794 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9796 (hol_help): Likewise. [Coverity CID 226, 227]
9798 * string/argz-replace.c (__argz_replace): Unconditionally call
9799 free on SRC. [Coverity CID 225]
9801 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9802 the return value of __nis_default_owner and __nis_default_group,
9803 it has been especially allocated. [Coverity CID 224]
9805 * nis/nis_defaults.c (searchXYX): New functions. Used by both
9806 searchgroup and searchowner. Significantly simplified.
9807 (__nis_default_owner): Remove duplication. Do not locally copy the
9808 string before duplicating it.
9809 (__nis_default_group): Likewise.
9811 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9812 we must clear the variable before calling __nisfind_server.
9814 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9815 nis_getnames. [Coverity CID 223]
9817 * locale/programs/locfile.c (locfile_read): Use alloca instead of
9818 xmalloc to allocate local repertoire name. [Coverity CID 222]
9820 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9821 allocate memory for the input to add_bytes. [Coverity CID 221]
9823 * posix/wordexp.c (w_addword): Free word if realloc fails and it
9824 was allocated here. [Coverity CID 219, 220]
9826 * posix/getconf.c (print_all): Free confstr data after printing.
9829 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9830 list allocation fails. [Coverity CID 215]
9832 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9835 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9836 string is NULL. [Coverity CID 212]
9837 * argp/Makefile: Add rules to build and run bug-argp1.
9838 * argp/bug-argp1.c: New file.
9840 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9842 * stdlib/canonicalize.c (__realpath): Likewise.
9844 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9845 pointer. [Coverity CID 206]
9847 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9848 in statically linked code.
9849 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9850 statically built code, be prepared to have no link map.
9853 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9854 dgettext calls. [Coverity CID 204]
9856 * argp/argp-help.c (struct uparams): Remove valid member. Change
9858 (uparam_names): Reduce size. Avoid relative relocations.
9859 Moved to read-only segment.
9860 (fill_in_uparams): Update for new layout.
9862 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9863 assumed to always be != NULL. [Coverity CID 202]
9865 * argp/argp-help.c (hol_entry_help): Remove some dead code
9868 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9869 away a few more unconditional yperr2nss calls.
9870 (_nss_nis_getservbyname_r): Likewise.
9872 2006-05-06 Ulrich Drepper <drepper@redhat.com>
9874 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9877 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9878 that unused memory passed to sendto is nevertheless initialized.
9881 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9882 possibly unaligned memory accesses.
9884 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9885 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9886 and __putlong respectively. Correct buffer overflow check for
9889 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9891 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9892 (send_dg): Rewrite error handling to be more compact and avoid
9893 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9895 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9897 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9898 instead of ns_get16.
9899 (res_queriesmatch): Likewise. Minor optimization.
9902 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9903 __libc_res_nsend might reallocate the buffer for the answer. In
9904 this case we have to reload the HP pointer.
9906 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9908 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9909 some branch prediction hints.
9911 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9912 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9913 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9914 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9915 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9916 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9917 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9918 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9920 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9922 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9923 by a GOT relocation to make Scrt1.o position independent.
9924 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9926 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9927 six system call parameters.
9928 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9930 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9932 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9935 * sunrpc/svc_udp.c (BZERO): Remove definition.
9937 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9939 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
9940 (des_SPtrans): Use uint32_t type.
9941 (des_skb): Likewise.
9943 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9945 2006-05-05 Jakub Jelinek <jakub@redhat.com>
9948 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9951 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9953 * locale/programs/ld-address.c (address_finish): Fix one more
9954 place where the iso639 array might be accessed beyond the limits.
9956 2006-05-04 Ulrich Drepper <drepper@redhat.com>
9958 * nis/nis_table.c (nis_list): Avoid clearing res twice before
9959 filling it for the first time.
9961 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9963 Free res object content before returning.
9965 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9967 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9970 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9971 cleanup for initial thread, just the free call on TVP.
9973 * nscd/gai.c (__getline): Define.
9976 See ChangeLog.16 for earlier changes.