1 2008-12-08 Ulrich Drepper <drepper@redhat.com>
3 * inet/Makefile (tests): Add tst-getni2.
4 * inet/tst-getni2.c: New file.
7 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
8 NULL when NI_NAMEREQD is set.
9 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
10 * inet/Makefile (tests): Add tst-getni1.
11 * inet/tst-getni1.c: New file.
13 2008-12-03 Petr Baudis <pasky@suse.cz>
16 * nscd/connections.c (invalidate_cache): Use prune_run_lock
17 instead of prune_lock.
18 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
19 * nscd/nscd.h (database_dyn): Add prune_run_cache.
21 2008-12-07 Ulrich Drepper <drepper@redhat.com>
23 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
26 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
29 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
30 after reading name server list.
32 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
33 handling for host name aliases.
35 2008-11-24 Arkadiusz MiĆkiewicz <arekm@maven.pl>
37 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
38 instead of doing things manually.
40 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
42 * posix/regex_internal.h (build_wcs_upper_buffer):
43 Return type is reg_error_t.
45 2008-12-05 Ulrich Drepper <drepper@redhat.com>
47 * posix/globtest.sh: Use mktemp to create temporary file and
50 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
52 (__CPU_CLR_S): Likewise.
53 (__CPU_ISSET_S): Likewise.
55 2008-12-05 Joseph Myers <joseph@codesourcery.com>
56 Ulrich Drepper <drepper@redhat.com>
58 * scripts/firstversion.awk: Use custom comparison function to compare
60 * scripts/versions.awk: Use sort invocation which can handle
61 multi-digit sub-version numbers.
63 2008-12-04 Ulrich Drepper <drepper@redhat.com>
65 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
66 * locale/iso-639.def: Add Chhattisgarhi entry.
68 2008-12-02 Ulrich Drepper <drepper@redhat.com>
70 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
72 (_nss_dns_gethostbyname4_r): Likewise.
73 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
74 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
75 gethostbyname4_r, we don't have a separate IPv6 status, so copy
78 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
79 information at the correct index.
81 * socket/sys/socket.h: Declare accept4.
82 * socket/accept4.c: New file.
83 * sysdeps/unix/sysv/linux/accept4.c: New file.
84 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
85 * socket/Makefile (routines): Add accept4.
86 * socket/Versions: Export accept4 with version GLIBC_2.10.
87 * socket/paccept.c: Removed.
88 * sysdeps/unix/sysv/linux/paccept.c: Removed.
89 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
90 * Versions.def: Define GLIBC_2.10 for libc.
91 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
93 * nscd/connections.c: Use accept4.
95 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
97 2008-12-01 Ulrich Drepper <drepper@redhat.com>
99 * resolv/res_send.c (send_dg): Create sockets with non-blocking
102 * stdlib/setenv.c (unsetenv): Don't search environment if it does
104 * stdlib/Makefile (tests): Add tst-unsetenv1.
105 * stdlib/tst-unsetenv1.c: New file.
107 2008-11-29 Ulrich Drepper <drepper@redhat.com>
109 * login/utmp_file.c (file_writable): New variable.
110 (setutent_file): Don't try to open file for writing.
111 (pututline_file): Before writing, make descriptor writable if
114 2008-11-26 Ulrich Drepper <drepper@redhat.com>
116 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
117 to IPv4 or IPv6 if an interface has been found.
119 2008-11-26 Roland McGrath <roland@redhat.com>
121 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
122 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
124 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
125 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
126 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
128 * elf/elf.h (NT_386_IOPERM): New macro.
129 (NT_PPC_VSX): New macro.
131 2008-11-25 Roland McGrath <roland@redhat.com>
133 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
134 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
135 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
136 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
137 Subdirectories moved to ports repository.
138 * configure.in (base_machine): Remove alpha case.
140 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
142 * sysdeps/mach/strerror_l.c: New file.
144 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
147 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
148 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
150 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
151 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
152 (relax_fenv_state): Same as above.
153 (FPSCR_29): Reserve bit in ISA 2.05.
154 (FPSCR_NI): Provide define for compat.
155 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
157 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
159 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
160 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
161 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
162 access to hwcap to account for hwcap size increase to uint64_t.
163 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
166 (*setcontext): Likewise.
167 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
169 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
172 (*setcontext): dynamically select mtfsf insn based on
173 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
174 increase to uint64_t.
175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
176 (*swapcontext): dynamically select mtfsf insn based on
177 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
178 increase to uint64_t.
179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
184 (*setcontext): dynamically select mtfsf insn based on
186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
187 (*swapcontext): dynamically select mtfsf insn based on
190 2008-11-13 Ulrich Drepper <drepper@redhat.com>
192 * version.h: Bump for 2.9 release.
193 * include/features.h (__GLIBC_MINOR__): Bump to 9.
196 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
197 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
200 2008-11-11 Ulrich Drepper <drepper@redhat.com>
203 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
204 unknown request types for now.
206 2008-11-11 Roland McGrath <roland@redhat.com>
208 * sysdeps/x86_64/configure: New file.
210 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
211 * configure: Regenerated.
213 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
215 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
216 correct instruction to remove the stack frame.
218 2008-11-03 Michael Matz <matz@suse.de>
220 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
221 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
223 2008-11-07 Jakub Jelinek <jakub@redhat.com>
225 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
228 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
229 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
230 of the thread variable instead of void *.
231 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
232 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
233 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
234 __libc_tsd_define arguments.
235 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
236 __libc_tsd_address arguments. Remove union hack.
237 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
238 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
239 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
240 Adjust __libc_tsd_{set,get} arguments.
241 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
242 __libc_tsd_define arguments.
243 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
245 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
246 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
247 (LOCALE): Adjust __libc_tsd_define arguments.
248 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
250 (LOCALE): Adjust __libc_tsd_define arguments.
251 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
253 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
256 2008-11-02 Ulrich Drepper <drepper@redhat.com>
258 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
259 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
261 2008-11-01 Ulrich Drepper <drepper@redhat.com>
264 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
266 2008-10-24 Joseph Myers <joseph@codesourcery.com>
267 Ulrich Drepper <drepper@redhat.com>
269 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
270 definition for GCC 3.1 and later.
272 2008-10-31 Jakub Jelinek <jakub@redhat.com>
274 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
275 refetch dtv, as it might have changed.
276 * elf/Makefile: Add rules to build and run tst-tls18.
277 * elf/tst-tls18.c: New test.
278 * elf/tst-tlsmod18a.c: New file.
280 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
283 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
285 2008-10-31 Ulrich Drepper <drepper@redhat.com>
288 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
291 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
292 Fix length of copy operation.
294 2008-10-02 Pierre Habouzit <madcoder@debian.org>
296 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
297 and fix its calling convention.
299 2008-10-07 Andreas Schwab <schwab@suse.de>
302 * resolv/res_send.c (send_vc): Fix last change.
303 (send_dg): Align here as well.
305 2008-10-31 Ulrich Drepper <drepper@redhat.com>
307 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
308 return value in case rlimit is RLIM_INFINITY.
311 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
313 * resource/Makefile (tests): Add bug-ulimit1.
314 * resource/bug-ulimit1.c: New file.
317 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
318 without dot. Properly terminate the string with a null byte.
319 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
322 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
324 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
328 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
330 2008-10-30 Ulrich Drepper <drepper@redhat.com>
332 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
333 abort if there is no initgroups_dyn function.
335 * resolv/res_send.c (send_dg): On timeout, only return nonzero
336 result if any of the queries really provided an answer.
338 2008-10-28 Ulrich Drepper <drepper@redhat.com>
340 * po/lt.po: Update from translation team.
342 2008-10-26 Ulrich Drepper <drepper@redhat.com>
344 * po/id.po: Update from translation team.
346 2008-10-24 Ulrich Drepper <drepper@redhat.com>
348 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
349 Fix tests for existence of second reply.
351 2008-10-23 Ulrich Drepper <drepper@redhat.com>
353 * po/id.po: New file.
354 Contributed by the Indonesian translation team.
356 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
358 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
361 2008-10-17 Jakub Jelinek <jakub@redhat.com>
363 * elf/Makefile: Add rules to build and run tst-tls17.
364 * elf/tst-tls17.c: New test.
365 * elf/tst-tlsmod17a.c: New file.
366 * elf/tst-tlsmod17b.c: Likewise.
368 2008-10-17 Ulrich Drepper <drepper@redhat.com>
370 * stdlib/divmod_1.c: Use correct type for dummy variable.
371 * stdlib/mod_1.c: Likewise.
373 2008-10-16 Ulrich Drepper <drepper@redhat.com>
375 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
377 2008-10-16 Jakub Jelinek <jakub@redhat.com>
379 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
380 __nonnull order for C++.
381 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
382 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
384 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
386 * stdlib/longlong.h: Update from GCC.
388 2008-10-09 Jakub Jelinek <jakub@redhat.com>
389 David S. Miller <davem@davemloft.net>
391 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
392 make sure any registers used with 64-bit 'branch-on-register'
393 instructions have their top 32-bits clear.
394 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
395 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
397 2008-09-18 Andreas Schwab <schwab@suse.de>
400 * resolv/res_send.c (send_vc): Fix use of unaligned address.
401 Properly handle partial reads.
403 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
405 * elf/elf.h (STO_MIPS_PLT): New.
407 (R_MIPS_JUMP_SLOT): New.
408 (R_MIPS_NUM): Redefine to 128.
409 (DT_MIPS_PLTGOT): New.
410 (DT_MIPS_RWPLT): New.
411 (DT_MIPS_NUM): Redefine to 0x35.
413 2008-10-01 Ulrich Drepper <drepper@redhat.com>
415 * timezone/africa: Update from tzdata2008f.
416 * timezone/asia: Likewise.
417 * timezone/australasia: Likewise.
418 * timezone/europe: Likewise.
419 * timezone/leapseconds: Likewise.
420 * timezone/northamerica: Likewise.
421 * timezone/southamerica: Likewise.
422 * timezone/zone.tab: Likewise.
424 2008-09-30 Ulrich Drepper <drepper@redhat.com>
426 * nscd/connections.c: Disable use of paccept for now.
428 2008-09-29 Ulrich Drepper <drepper@redhat.com>
430 * socket/Versions: Remove paccept export for GLIBC_2.9.
431 * socket/Makefile (routines): Remove paccept.
432 * socket/sys/socket.h: Remove paccept declaration.
434 * po/sv.po: Update from translation team.
436 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
438 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
439 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
441 2008-09-16 Ulrich Drepper <drepper@redhat.com>
443 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
444 Patch by Olivier Fourdan <ofourdan@redhat.com>.
446 2008-09-15 Ulrich Drepper <drepper@redhat.com>
448 * sunrpc/rpc/svc.h: Declare svcfd_create.
449 Patch by Michael Solberg <msolberg@redhat.com>.
451 2008-09-12 Flavio Leitner <fleitner@redhat.com>
452 Ulrich Drepper <drepper@redhat.com>
454 * malloc/malloc.c (public_vALLOc): Try other arenas in case
456 (public_pVALLOc): Likewise.
458 2008-09-02 Andreas Jaeger <aj@suse.de>
460 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
463 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
466 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
468 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
470 * Makefile (check-data): Check data directory in add-ons.
471 * elf/Makefile (check-data): Likewise.
473 2008-08-18 Roland McGrath <roland@redhat.com>
475 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
476 * configure: Regenerated.
477 * config.make.in (cflags-cpu): New substituted variable.
478 (with-cpu): Variable removed.
479 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
481 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
484 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
485 __signbitl definition and __LONG_DOUBLE_128__ guard from:
486 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
487 redundant. Functions which call floating point assembler operations
488 should go into a sysdeps powerpc/fpu directory.
490 2008-08-15 Ulrich Drepper <drepper@redhat.com>
492 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
493 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
495 2008-08-14 Ulrich Drepper <drepper@redhat.com>
497 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
499 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
500 change related to AT_EXECFN. We cannot use that string.
501 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
503 * elf/dl-support.c: Remove _dl_execfn variable.
504 (_dl_aux_init): Remove handling of AT_EXECFN.
505 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
506 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
508 2008-08-13 Ulrich Drepper <drepper@redhat.com>
511 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
512 byte gets added to writes and seeks from the end use the length of
513 the buffer and not the currently terminating NUL byte.
516 * login/utmp_file.c (getutent_r_file): Take additional parameter.
517 Set to true if locking failed.
518 (getutid_r_file): Adjust caller.
519 (pututline_file): Likewise. Return NULL in this case.
520 Patch mostly by halesh.s@gmail.com.
522 2008-08-12 Ulrich Drepper <drepper@redhat.com>
525 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
527 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
529 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
532 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
533 macro since it is now available in elf/dynamic-link.h.
535 2008-08-12 Roland McGrath <roland@frob.com>
537 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
538 in case used outside of libc.
539 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
541 2008-08-11 Ulrich Drepper <drepper@redhat.com>
543 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
544 directly instead of going through dn_comp.
546 2008-08-11 Aurelien Jarno <aurel32@debian.org>
548 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
551 2008-08-07 Ulrich Drepper <drepper@redhat.com>
554 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
555 (IPV6_PMTUDISC_PROBE): Likewise.
557 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
560 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
562 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
563 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
566 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
567 Added the members 'vsx' and 'arch_2_06'.
568 (_dl_powerpc_platforms): Add the member 'power7'.
569 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
570 to reflect the changes required by VSX and ISA 2.06.
571 Modify _DL_PLATFORMS_COUNT to reflect the addition of
573 Defined PPC_PLATFORM_POWER7.
574 (_dl_string_platform): Add support for POWER7.
575 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
576 capability and ISA 2.06.
578 2008-08-07 Ulrich Drepper <drepper@redhat.com>
581 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
582 macro to detect use of 128 bit long double.
583 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
585 2008-08-05 Ulrich Drepper <drepper@redhat.com>
587 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
590 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
592 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
593 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
595 2008-08-03 Ulrich Drepper <drepper@redhat.com>
597 * nscd/connections.c (main_loop_poll): Pass a buffer which is
598 guaranteed to be large enough to read inotify event. Ignore
599 EAGAIN error. Better error message. Add branch predicition.
600 (main_loop_epoll): Likewise.
602 2008-08-02 Roland McGrath <roland@frob.com>
604 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
607 2008-08-02 Ulrich Drepper <drepper@redhat.com>
609 * manual/arith.texi: Avoid @strong{Note:}.
610 * manual/creature.texi: Likewise.
611 * manual/filesys.texi: Likewise.
612 * manual/math.texi: Likewise.
613 * manual/memory.texi: Likewise.
614 * manual/resource.texi: Likewise.
615 * manual/syslog.texi: Likewise.
616 * manual/time.texi: Likewise.
618 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
621 2008-08-01 Ulrich Drepper <drepper@redhat.com>
623 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
624 new epoll_create1 interface.
625 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
626 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
627 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
629 * include/arpa/nameser.h (NS_GET16): Use const pointer.
630 (NS_GET32): Likewise.
632 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
635 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
636 use the AT_EXECFN value if it is no absolute path.
637 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
640 * Versions.def: Add GLIBC_2.9 to libresolv.
641 * include/resolv.h: Remove hidden proto declarations for __ns_*
642 functions. Add them for __dn_count_labels and __p_secstodate.
643 * include/arpa/nameser.h: Add a number of hidden proto declarations.
644 Define ns_msg_getflags macro here.
645 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
647 * resolv/Versions: Export functions from <arpa/nameser.h> from
648 libresolv in version GLIBC_2.9.
649 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
651 * resolv/ns_netint.c: Likewise.
652 * resolv/ns_parse.c: Likewise.
653 * resolv/ns_print.c: Likewise.
654 * resolv/ns_samedomain.c: Likewise.
655 * resolv/ns_ttl.c: Likewise.
656 * resolv/arpa/nameser_compat.h: Likewise.
657 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
659 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
661 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
662 __ns_get32 instead of ns_get16 and ns_get32 respectively.
663 (gaih_getanswer_slice): Likewise.
664 * resolv/Makefile (libresolv-routines): Add ns_date.
665 * resolv/ns_date.c: New file.
667 * elf/Makefile (check-localplt.out): Also check libresolv and
670 2008-07-31 Ulrich Drepper <drepper@redhat.com>
672 * sysdeps/unix/sysv/linux/kernel-features.h: Define
675 2008-07-30 Ulrich Drepper <drepper@redhat.com>
677 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
678 buffer passed to NSS functions.
680 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
682 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
685 * misc/syslog.c (openlog_internal): Fix compile problem.
687 2008-07-28 Roland McGrath <roland@redhat.com>
689 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
691 2008-07-28 Ulrich Drepper <drepper@redhat.com>
693 * io/ftw.c (add_object): Remove inline to avoid warning.
695 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
697 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
698 Use it instead of locally defined resplen2 variable.
699 (res_nsend): Adjust for __libc_res_nsend interface change.
700 (send_vc): Initialize *resplen2 if necessary. Read length of
701 package into an appropriately aligned variable. Store converted length
702 in new variable and use it appropriately.
703 Add branch prediction help.
704 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
705 and pass it on to __libc_res_nsend. Adjust all callers.
706 (__libc_res_nsearch): Likewise.
707 (__libc_res_nqeurydomain): Likewise.
708 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
710 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
711 Define resplen2 variable and pass it to __libc_res_nsearch and then
713 (getanswer_r): In case of incorrect DNS data don't overread buffer.
714 Add branch prediction.
715 (gaih_getanswer_slice): Likewise. Check for invalid data types.
716 (gaih_getanswer): Don't decode second slice if first one failed due
717 to a too small buffer. Don't let not found status of second
718 decoder shadow results of the first.
719 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
720 and __libc_res_nquery interface changes
721 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
722 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
723 __libc_res_nsearch, and __libc_res_nsend.
724 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
726 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
727 __libc_res_nsearch interface changes.
729 2008-07-27 Ulrich Drepper <drepper@redhat.com>
731 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
733 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
734 file descriptors with close-on-exec set.
735 (exec_comm_child): Fix the case where the write end of the pipe is
736 STDOUT_FILENO already. In case it is, clear close-on-exec.
738 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
739 * io/pipe2.c: Likewise.
740 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
741 instead of __ASSUME_PACCEPT.
742 * include/unistd.h: Declare __have_pipe2.
743 * libio/iopopen.c: Implement "e" flag.
744 * libio/Makefile (tests): Add tst-popen1.
745 * libio/tst-popen1.c: New file.
747 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
748 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
750 2008-07-26 Ulrich Drepper <drepper@redhat.com>
753 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
754 success call of _IO_SEEKOFF or calls which failed because the
755 descriptor is for a pipe.
757 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
760 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
762 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
763 F_SETFD use if we know fopen set the flag.
765 * login/utmp_file.c (setutent_file): Minor optimization in case
766 O_CLOEXEC is available.
768 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
770 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
771 * elf/Makefile: Use pie-ccflag variable.
772 * nscd/Makefile: Likewise.
773 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
775 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
778 * Versions.def: Add GLIBC_2.9 version tag for libutil.
779 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
780 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
781 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
782 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
783 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
784 utmp32, utmpx32 and login32.
785 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
786 versions of struct utmp functions to libc and libutil.
787 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
788 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
789 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
790 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
791 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
792 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
793 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
794 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
795 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
796 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
797 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
798 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
799 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
800 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
801 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
802 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
803 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
804 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
805 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
806 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
807 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
808 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
810 2008-07-26 Ulrich Drepper <drepper@redhat.com>
812 * scripts/gen-as-const.awk: Generate more widely usable code by
813 using 64-bit arithmetic.
815 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
816 the same treatment as narrow output code in last patch.
818 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
821 * elf/dl-load.c (local_strdup): Remove inline.
822 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
823 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
826 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
828 2008-07-25 Ulrich Drepper <drepper@redhat.com>
830 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
831 the new syscalls, too.
833 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
834 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
837 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
838 parameter for end of buffer. If temporary copy is too large use
840 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
842 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
843 string rewrite when allocating buffer.
845 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
848 * nscd/connections.c (nscd_init): Clean up fcntl call.
850 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
851 SOCK_NONBLOCK if possible.
853 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
854 SOCK_CLOEXEC if available.
856 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
857 __libc_clntudp_bufcreate_internal.
858 * include/sys/socket.h: Declare __have_sock_cloexec.
859 * socket/Makefile (aux): Add have_sock_cloexec.
860 * socket/have_sock_cloexec.c: New file.
861 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
862 __libc_clntudp_bufcreate.
863 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
864 which takes an additional parameter. Create socket with non-blocking
865 mode and close-on-exec flag set, if wanted.
866 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
867 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
868 instead of clntudp_create. The socket has already the close-on-exec
869 flag set if SOCK_CLOEXEC is defined.
871 2008-07-24 Ulrich Drepper <drepper@redhat.com>
873 * sysdeps/unix/sysv/linux/kernel-features.h: Define
874 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
876 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
877 non-blocking mode by using socket, paccept, and inotify_init1.
879 * Versions.def (glibc): Add GLIBC_2.9.
880 * io/Makefile (routines): Add dup3 and pipe2.
881 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
882 * io/dup3.c: New file.
883 * io/pipe2.c: New file.
884 * posix/unistd.h: Declare dup3 and pipe2.
885 * socket/Makefile (routines): Add paccept.
886 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
887 * socket/paccept.c: New file.
888 * socket/sys/socket.h: Declare paccept.
889 * sysdeps/unix/syscalls.list: Add entry for dup3.
890 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
891 epoll_create2 and inotify_init1.
892 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
893 * sysdeps/unix/sysv/linux/paccept.c: New file.
894 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
896 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
897 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
898 inotify_init1, and pipe2 entries.
899 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
900 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
901 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
902 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
903 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
904 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
906 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
907 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
908 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
909 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
910 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
911 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
912 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
913 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
914 EPOLL_NONBLOCK. Declare epoll_create2.
915 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
917 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
918 IN_NONBLOCK. Declare inotify_init1.
919 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
921 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
924 * elf/elf.h: Define AT_EXECFN.
925 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
927 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
928 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
929 if __ASSUME_AT_EXECFN is defined.
930 (_dl_aux_init): Handle AT_EXECFN.
931 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
933 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
934 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
935 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
936 _dl_execfn if available and avoid compatibility code if
937 __ASSUME_AT_EXECFN is defined.
939 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
940 _dl_discover_osversion only for older kernels.
942 2008-07-22 Roland McGrath <roland@frob.com>
944 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
946 2008-07-21 Roland McGrath <roland@frob.com>
948 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
949 returned too much data out of line.
951 2008-07-20 Ulrich Drepper <drepper@redhat.com>
953 * locale/setlocale.c (setname): Remove inline to avoid compiler
957 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
959 2008-07-15 Ulrich Drepper <drepper@redhat.com>
961 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
962 doesn't manage to write anything, fail.
964 * malloc/hooks.c (__malloc_check_init): Remove printf.
966 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
968 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
970 2008-07-12 Ulrich Drepper <drepper@redhat.com>
972 * nscd/connections.c (main_loop_poll): Fix handling of read errors
974 (main_loop_epoll): Likewise.
976 2008-07-09 Ulrich Drepper <drepper@redhat.com>
978 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
980 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
983 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
984 query. Adjust buffer size computation for padding.
986 2008-07-08 Ulrich Drepper <drepper@redhat.com>
988 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
989 * stdio-common/tst-setvbuf1.c: New file.
990 * stdio-common/tst-setvbuf1.expect: New file.
993 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
994 when selecting fully-buffered stream.
995 Patch by Wang Xin <wxinee@gmail.com>.
997 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
999 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1000 (__open_2): New function.
1001 (__open64_2): New alias to __open_2.
1002 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1003 (__openat_2): New function.
1004 (__openat64_2): New alias to __openat_2.
1006 2008-07-06 Ulrich Drepper <drepper@redhat.com>
1009 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1011 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1013 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1014 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1015 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1017 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1018 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1019 * sysdeps/mach/hurd/send.c (__send): Likewise.
1020 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1021 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1023 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1025 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1026 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1027 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1028 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1029 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1030 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1032 2008-06-27 Ulrich Drepper <drepper@redhat.com>
1035 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1037 Patch by Petr Baudis.
1039 2008-06-26 Ulrich Drepper <drepper@redhat.com>
1041 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1042 Patch by Peter Jones <pjones@redhat.com>.
1044 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1047 * stdlib/canonicalize.c (__realpath): readlink can write too much
1048 into the buffer on platforms without PATH_MAX.
1050 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1053 * posix/tst-regex.c (main): Rename to...
1054 (do_test): ... this. Remove cmdline option processing.
1056 (TEST_FUNCTION): Define.
1057 (CMDLINE_OPTIONS): Define.
1059 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1062 * configure.in: Add -Werror to -fstack-protector test to catch
1063 unsupported architectures.
1064 Patch by Gilles Esponasse <g.esp@free.fr>.
1066 2008-06-17 Joseph Myers <joseph@codesourcery.com>
1068 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1069 getcontext returns ENOSYS.
1071 2008-06-18 Ulrich Drepper <drepper@redhat.com>
1073 * nscd/connections.c (main_loop_poll): Fix test for read error.
1074 (main_loop_epoll): Likewise.
1076 2008-06-13 Ulrich Drepper <drepper@redhat.com>
1078 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1079 better place so it is not called when nscd is used.
1081 * nscd/connections.c: Also recognize and handle changes to the
1082 resolver configuration file.
1084 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1086 * time/strftime.c: Pass reference to tzset_called around to handle
1090 * time/strftime.c (__strftime_internal): Call tzset() only
1091 when printing timezone-dependent values.
1092 Based on a patch by Petr Baudis <pasky@suse.cz>.
1094 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1095 unconditionally use second gaih_getanswer_slice result.
1097 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1098 (getaddrinfo): RES must always be non-NULL.
1100 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1102 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1104 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1105 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1107 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1110 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1112 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1114 * nscd/connections.c (inotify_fd): New variable.
1115 (nscd_init): Try to open an inotify descriptor.
1116 If successful, watch files for databases using inotify instead of
1117 having prune threads stat the files.
1118 (nscd_run_prune): Recognize clear_cache flag being set and call
1119 prune_cache appropriately.
1120 (main_loop_poll): Add inotify descriptor to wait set and handle the
1122 (main_loop_epoll): Likewise.
1123 * nscd/cache.c (prune_cache): Don't stat files for databases if
1125 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1126 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1128 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1129 fixed-size portion of the record.
1130 * nscd/servicescache.c (cache_addserv): Likewise.
1131 * nscd/pwdcache.c (cache_addpw): Likewise.
1132 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1134 2008-06-11 Ulrich Drepper <drepper@redhat.com>
1136 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1137 out we don't use uninitialized memory.
1139 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1142 2008-06-10 Ulrich Drepper <drepper@redhat.com>
1144 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1145 ignore T_DNAME messages.
1146 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1148 2008-06-05 Jakub Jelinek <jakub@redhat.com>
1150 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1151 Avoid segfault if first GETC returns eof/'\0'/'\n'.
1153 2008-06-03 Jakub Jelinek <jakub@redhat.com>
1155 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1156 instead of portstr to nscd_getserv_r. Patch by
1157 Roman Kagan <rkagan@mail.ru>.
1159 2008-05-26 Jim Meyering <meyering@redhat.com>
1161 Remove more useless "if" tests before "free".
1162 * include/inline-hashtab.h (htab_delete): Likewise.
1163 * libio/freopen.c (freopen): Likewise.
1164 * libio/freopen64.c (freopen64): Likewise.
1165 * locale/programs/ld-collate.c (collate_read): Likewise.
1166 * misc/fstab.c (libc_freeres_fn): Likewise.
1167 * posix/glob.c (globfree): Likewise.
1169 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1171 * string/Makefile (strop-tests): Add memmem.
1172 * string/test-memmem.c: New file.
1173 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1174 (test_init): Size buf1 according to BUF1PAGES.
1176 2008-05-24 Jakub Jelinek <jakub@redhat.com>
1178 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1179 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1180 (CFLAGS-scanf17.c): New.
1181 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1182 * stdio-common/scanf15.c (main): Likewise.
1183 * stdio-common/scanf16.c: New file.
1184 * stdio-common/scanf17.c: New file.
1186 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1188 * resolv/res_send.c (send_dg): If we already have one of two
1189 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1190 use the one answer insted of failing.
1192 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
1194 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1195 being executed on PowerPC as the expected result exceeds IBM
1196 long double 128 __LDBL_MAX__.
1198 2008-05-21 Roland McGrath <roland@redhat.com>
1200 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1202 * Makefile (check-data): Use $(abi-name) before other guesses.
1203 Look in $(add-ons) dirs before scripts/data/.
1204 * elf/Makefile (check-data): Likewise.
1206 * scripts/soversions.awk: Grok ABI line.
1207 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1208 Emit definition for abi-name variable.
1210 2008-05-21 Ulrich Drepper <drepper@redhat.com>
1212 * string/endian.h: Define new fixed-size hto* and *toh macros only
1215 * iconvdata/Depend: Add localedata.
1217 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1219 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1221 2008-05-08 David S. Miller <davem@davemloft.net>
1223 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1225 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1226 (__SYSCALL_CLOBBERS): Remove %g* registers.
1227 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1228 (__SYSCALL_CLOBBERS): Likewise.
1229 * scripts/data/localplt-sparc-linux-gnu.data: New file.
1230 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1232 2008-05-21 Jakub Jelinek <jakub@redhat.com>
1234 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1235 (CALL_ERRNO_LOCATION): Define.
1236 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1237 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1238 (CALL_ERRNO_LOCATION): Define.
1239 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1240 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1241 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1243 2008-05-20 Ulrich Drepper <drepper@redhat.com>
1245 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1248 2008-05-20 Jakub Jelinek <jakub@redhat.com>
1250 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1251 (FIRST_FRAME_POINTER): Define.
1253 2008-05-09 David S. Miller <davem@davemloft.net>
1255 * sysdeps/sparc/sparc64/backtrace.c: New file.
1257 2008-05-14 David S. Miller <davem@davemloft.net>
1259 * sysdeps/sparc/machine-gmon.h: New file.
1260 * sysdeps/sparc/sparc-mcount.S: Likewise.
1261 * sysdeps/sparc/Makefile: Add sparc-mcount target to
1262 sysdep_routines in gmon directory.
1264 2008-05-19 Jakub Jelinek <jakub@redhat.com>
1266 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1268 2008-05-19 Ulrich Drepper <drepper@redhat.com>
1270 * resolv/res_query.c (__libc_res_nquery): In case one of two
1271 answer was too short don't try to read that answer's header.
1273 * resolv/res_send.c (send_dg): In case of timeout and there are
1274 two queries and one has been answered, return value indicating
1277 2008-05-18 Ulrich Drepper <drepper@redhat.com>
1279 * nscd/cache.c (cache_add): Take additional parameter specifying
1280 whether this is in response of a cache refill. Check alignment
1281 of package data. Revamp waking of pruning thread.
1282 (prune_cache): Small optimization.
1283 * nscd/nscd.h: Adjust cache_add prototypes.
1284 * nscd/aicache.c: Adjust cache_add calls.
1285 * nscd/grpcache.c: Likewise.
1286 * nscd/hstcache.c: Likewise.
1287 * nscd/initgrcache.c: Likewise.
1288 * nscd/pwdcache.c: Likewise.
1289 * nscd/servicescache.c: Likewise.
1290 * nscd/connections.c (restart): Really disable cache use before
1291 exec attempt. If it fails, reenable cache.
1292 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
1293 time to max to be able to notice concurrent cache additions. Unlock
1294 prune_lock while performing gc. Afterwards compute wakeup time with
1295 current wakeup_time value in mind.
1297 2008-05-17 Ulrich Drepper <drepper@redhat.com>
1299 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1301 * nscd/mem.c (gc): Correctly determine highest used array element
1304 * nscd/mem.c (markrange): Add assert to check entries are all
1305 aligned. Small cleanup in bitmap use.
1307 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1308 blockoff of type nscd_ssize_t.
1309 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1310 (mempoll_alloc): Record block offset and not address.
1312 * nscd/mem.c (gc): Fix test for stack overuse.
1314 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1317 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1318 entry is available, believe it.
1320 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1321 no answers return NSS_STATUS_NOTFOUND.
1322 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1323 buffer does not have any content.
1325 2008-05-16 Ulrich Drepper <drepper@redhat.com>
1327 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1329 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1330 lookup, don't assign canon unconditionally.
1332 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1334 * string/Makefile (distribute): Add str-two-way.h.
1336 2008-03-29 Eric Blake <ebb9@byu.net>
1338 Rewrite string searches to O(n) rather than O(n^2).
1339 * string/str-two-way.h: New file. For linear fixed-allocation
1341 * string/memmem.c: New implementation.
1342 * string/strstr.c: New implementation.
1343 * string/strcasestr.c: New implementation.
1345 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
1347 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1349 (calc_first): Initialize constraint field.
1350 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1351 Use search_duplicated_node to avoid loops. Fix grammar.
1352 (duplicate_node): Merge constraint field for all node types.
1353 (calc_eclosure_iter): Look at constraint field for all node types.
1354 * posix/regex_internal.c (create_cd_newstate): Don't look at
1357 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1360 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1363 * string/endian.h: Add macros for fixed-size endian conversion.
1364 * bits/byteswap.h: Allow inclusion from <endian.h>.
1365 * sysdeps/i386/bits/byteswap.h: Likewise.
1366 * sysdeps/ia64/bits/byteswap.h: Likewise.
1367 * sysdeps/s390/bits/byteswap.h: Likewise.
1368 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1369 * string/Makefile (tests): Add tst-endian.
1370 * string/tst-endian.c: New file.
1372 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1373 Patch by Reuben Thomas.
1375 2008-05-14 Joseph Myers <joseph@codesourcery.com>
1377 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1379 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1381 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1384 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1386 (BODY for __gconv_transform_internal_ascii): Likewise.
1389 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1390 to be treated like link-local addresses.
1391 (match_prefix): Don't treat IPv4 loopback address special when
1392 converting to v4 mapped addressed.
1394 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1396 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1397 * posix/tst-rfc3484-2.c: Likewise.
1398 * posix/tst-rfc3484-3.c: Likewise.
1400 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1403 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1405 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1407 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1409 2008-05-13 Ulrich Drepper <drepper@redhat.com>
1411 * po/lt.po: New file. From Lituanian translation team.
1413 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
1415 Introduce TLS descriptors for i386 and x86_64.
1416 * include/inline-hashtab.h: New file, copied from 2005's
1417 libiberty, with fix for memory leak imported afterwards by
1418 Glauber de Oliveira Costa.
1419 * elf/tlsdeschtab.h: New file.
1420 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1421 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1422 (CHECK_STATIC_TLS): Move to...
1423 * elf/dynamic-link.h: ... this file.
1424 (TRY_STATIC_TLS): New macro.
1425 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1426 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1427 R_386_TLS_DESC): Define.
1428 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1430 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1431 R_X86_64_TLSDESC): Define.
1432 (R_386_NUM, R_X86_64_NUM): Adjust.
1433 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1434 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1435 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1436 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1437 release tlsdesc_table.
1438 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1439 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1440 (elf_machine_rel): Handle R_386_TLS_DESC.
1441 (elf_machine_rela): Likewise.
1442 (elf_machine_lazy_rel): Likewise.
1443 (elf_machine_lazy_rela): Likewise.
1444 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1445 * sysdeps/i386/dl-tlsdesc.S: New file.
1446 * sysdeps/i386/dl-tlsdesc.h: New file.
1447 * sysdeps/i386/tlsdesc.c: New file.
1448 * sysdeps/i386/tlsdesc.sym: New file.
1449 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1451 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1452 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1453 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1454 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1455 release tlsdesc_table.
1456 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1457 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1458 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1459 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1460 (elf_machine_rela): Likewise.
1461 (elf_machine_lazy_rel): Likewise.
1462 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1463 (__tls_get_addr): Do not declare for non-shared compiles.
1464 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1465 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1466 * sysdeps/x86_64/tlsdesc.c: New file.
1467 * sysdeps/x86_64/tlsdesc.sym: New file.
1468 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1469 tlsdesc_table for both 32- and 64-bit structs.
1471 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1473 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1474 its own function. This reduces the frame setup costs and more.
1476 2008-02-11 Joseph Myers <joseph@codesourcery.com>
1479 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1480 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1482 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1484 * io/openat.c (__openat_2): Also pass fd to __openat.
1485 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1486 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1488 * string/tester.c (test_memcmp): Add a few more tests.
1489 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1491 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1493 * nscd/cache.c (cache_add): Before returning with failure and this
1494 is the first use of the record, mark it as unusable.
1495 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1496 reporting a failure.
1497 * nscd/grpcache.c: Likewise
1498 * nscd/hstcache.c: Likewise.
1499 * nscd/initgrcache.c: Likewise.
1500 * nscd/pwdcache.c: Likewise.
1501 * nscd/servicescache.c: Likewise.
1503 2008-05-10 Roland McGrath <roland@redhat.com>
1506 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1508 2008-05-08 David S. Miller <davem@davemloft.net>
1510 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1512 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1513 (__ieee754_y0l): Likewise.
1514 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1515 (__ieee754_y1l): Likewise.
1516 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1517 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1518 frexpl and ldexpl. math_private.h provides them and the latter
1520 (__log1pl): Use __frexpl.
1522 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1524 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1526 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1527 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1528 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1529 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1531 (_nss_nis_gethostbyname4_r): New function.
1532 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1533 Change to also handle af==AF_UNSPEC.
1534 (get_tablename): New function. Use it to avoid duplication.
1535 (_nss_nisplus_gethostbyname4_r): New function.
1536 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1538 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1539 * nss/nss.h: Define struct gaih_addrtuple.
1540 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1542 (_nss_files_gethostbyname4_r): New function.
1543 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1544 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1546 * resolv/res_query.c (__libc_res_nquery): Take two additional
1547 parameters for second answer buffer. Handle type=T_UNSPEC to mean
1548 look up IPv4 and IPv6.
1550 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1551 for an additional query and answer buffer. Pass to send_vc and
1553 (send_vc): Send possibly two requests and receive two answers.
1554 (send_dg): Likewise.
1555 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1557 (_nss_dns_gethostbyname4_r): New function.
1558 (gaih_getanswer_slice): Likewise.
1559 (gaih_getanswer): Likewise.
1560 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1561 __libc_res_nquery call.
1562 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1563 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1564 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1567 2008-05-05 David S. Miller <davem@davemloft.net>
1569 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1570 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1572 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1574 Fix termios bit macros.
1575 Move *DLY definitions where they belong, in termios.h.
1576 Add *[0-3] definitions.
1577 Fixes confusion between VT and FF.
1578 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1579 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1580 are already defined to avoid collision with termios.h.
1581 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1582 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1583 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1584 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1585 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1586 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1587 VTDLY, VT0, VT1): New macros.
1588 [__USE_GNU] (OLCUC): Change value of macro.
1589 [__USE_XOPEN] (OFILL): New macro.
1590 [__USE_BSD] (CRTSCTS): Change value.
1591 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1592 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1593 (B7200, B14400, B28800, B76800): New macros.
1595 2008-05-01 David S. Miller <davem@davemloft.net>
1597 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1598 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1599 (gen-as-const-headers): Add it.
1600 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1601 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1602 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1603 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1605 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1606 six system call parameters.
1607 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1609 2008-04-30 Ulrich Drepper <drepper@redhat.com>
1611 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1613 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1614 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1616 2008-04-30 Jakub Jelinek <jakub@redhat.com>
1618 * stdlib/tst-setcontext.c: Include unistd.h.
1620 2008-04-25 David S. Miller <davem@davemloft.net>
1622 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1623 Pass "union semun" properly in to sys_ipc, it must be passed
1624 by value, not by reference.
1626 2008-04-22 Jakub Jelinek <jakub@redhat.com>
1628 * nscd/Makefile (nscd-cflags): Set back to -fpie.
1629 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1630 * nscd/connections.c (mem_in_flight): Likewise.
1632 * nscd/nscd.h (dbs): Make hidden.
1634 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1635 Avoid returning -1, return 0 instead.
1637 2008-04-19 Ulrich Drepper <drepper@redhat.com>
1639 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1641 2008-04-15 Ulrich Drepper <drepper@redhat.com>
1644 * sysdeps/unix/sysv/linux/times.c: New file.
1647 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1648 mem_in_flight_list variables. Add new parameter to mempool_alloc
1650 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1651 appropriate mem_in_flight element.
1652 (gc): Take allocations which have not yet been committed to the
1653 database into account.
1654 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1655 Reset mem_in_flight before returning.
1656 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1657 cue it up in mem_in_flight_list.
1658 * nscd/aicache.c: Adjust mempool_alloc call.
1659 * nscd/grpcache.c: Likewise.
1660 * nscd/hstcache.c: Likewise.
1661 * nscd/initgrcache.c: Likewise.
1662 * nscd/pwdcache.c: Likewise.
1663 * nscd/servicescache.c: Likewise.
1664 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1667 * nscd/connections.c (handle_request): Provide better error message
1668 in case SELinux forbids the service.
1670 * version.h (VERSION): Bump to 2.8.90.
1672 2008-04-17 Jakub Jelinek <jakub@redhat.com>
1674 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1676 2008-04-11 Ulrich Drepper <drepper@redhat.com>
1678 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1679 Also use for 32-bit.
1680 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1681 __nextafter instead of nextafter to avoid local PLT.
1682 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1683 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1685 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1687 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1689 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1690 <fenv_libc.h> instead of <fenv.h>.
1691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1694 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1696 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1697 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1698 function from fegetexcept and make old name weak alias.
1699 * include/fenv.h: Declare __fegetexcept.
1700 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1702 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1703 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1705 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1706 instead of frexpl to avoid local PLT.
1707 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1708 ilogbl to avoid local PLT.
1709 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1710 instead of ldexpl to avoid local PLT.
1711 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1712 __roundl not roundl to avoid local PLT.
1713 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1714 local PLTs. Use __sincosl instead of separate sinl and cosl
1716 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1718 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1719 version for ppc64 to 2.4.21 since without it makecontext will fail.
1721 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1723 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1725 [__powerpc64__] (TLS_GD): Likewise.
1727 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1730 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1731 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1733 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1734 Likewise. Also account for when x is an odd number between 2^52
1736 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1737 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1738 * math/libm-test.inc (lround_test, llround_test): Added test cases to
1739 detect aforementioned erroneous conditions.
1741 2008-04-11 Jakub Jelinek <jakub@redhat.com>
1743 * configure.in: Check for -fno-section-anchors in addition to
1744 -fno-toplevel-reorder.
1746 2008-04-11 Ulrich Drepper <drepper@redhat.com>
1748 * include/features.h (__GLIBC_MINOR__): Bump to 8.
1750 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1751 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1752 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1753 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1754 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1755 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1757 2008-04-11 Jakub Jelinek <jakub@redhat.com>
1760 * time/era.c: Transform __libc_setlocale_lock into rwlock.
1761 * time/alt_digit.c: Likewise.
1762 * wcsmbs/wcsmbsload.c: Likewise.
1764 2008-04-10 Ulrich Drepper <drepper@redhat.com>
1766 * version.h (VERSION): Bump to 2.8.
1768 * timzeone/asia: Update from tzdata2008b.
1769 * timezone/backward: Likewise.
1770 * timezone/europe: Likewise.
1771 * timezone/northamerica: Likewise.
1772 * timezone/southamerica: Likewise.
1773 * timezone/iso3166.tab: Likewise.
1774 * timezone/leapseconds: Likewise.
1775 * timezone/zone.tab: Likewise.
1776 * timezone/private.h: Update from tzcode2008a.
1777 * timezone/zdump.c: Likewise.
1778 * timezone/zic.c: Likewise.
1780 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1783 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1784 Define additonal Data Cache Block instruction macros.
1785 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1786 Replace dcbst with dcbf and sync with sync/isync.
1788 2008-02-21 Alan Modra <amodra@bigpond.net.au>
1790 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1791 Always set ELF_RTYPE_CLASS_PLT.
1792 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1794 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
1796 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1797 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1798 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1799 For ISA 2.01 and later replace mftb with mfspr 268.
1801 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1804 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1805 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1807 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
1810 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1811 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1812 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1813 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1815 2008-04-10 Jakub Jelinek <jakub@redhat.com>
1817 * stdlib/tst-makecontext.c (othervar): New variable.
1818 (cf): Test sign extending the argument to long.
1820 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
1822 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1823 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1824 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1825 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1826 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1827 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1828 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1830 2008-02-22 Alan Modra <amodra@bigpond.net.au>
1832 * elf/Makefile (tests): Substitute tests-vis-yes here.
1833 (tests-vis-yes): Delete.
1834 (modules-name, modules-vis-yes): Similarly.
1836 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
1839 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1840 Preserve sign in signgamp when x is zero.
1842 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
1844 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1845 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1846 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1847 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1848 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1849 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1851 2008-04-09 Ulrich Drepper <drepper@redhat.com>
1854 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
1858 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
1859 a reserved error value.
1861 * stdlib/tst-makecontext.c: Change parameter to cf to negative
1862 value to check for correct sign extension.
1865 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1866 Copy 64-bit parameter values even though this is not required in
1869 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
1872 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
1874 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
1877 2008-04-09 Jakub Jelinek <jakub@redhat.com>
1879 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
1881 2008-04-09 Ulrich Drepper <drepper@redhat.com>
1884 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
1885 in line-buffered stream failed.
1886 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1888 2008-04-08 Ulrich Drepper <drepper@redhat.com>
1891 * scripts/abi-versions.awk: If the version specified by
1892 --enable-oldest-abi is older than the first version for this
1893 architecture, use the default version.
1895 * locale/programs/ld-collate.c (collate_read): Ignore script lines
1896 as well when ignoring the whole category.
1898 2008-04-07 Ulrich Drepper <drepper@redhat.com>
1901 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
1902 ETHERTYPE_* definitions.
1903 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
1905 2008-04-07 Jakub Jelinek <jakub@redhat.com>
1907 * stdlib/mbtowc.c (__no_r_state): Remove.
1908 (mbtowc): New static state variable. Use it instead of
1910 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
1911 (__wctomb_state): New hidden variable.
1912 (wctomb): Use __wctomb_state instead of __no_r_state.
1913 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
1914 (__wctomb_state): New extern decl.
1915 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
1917 2008-04-07 Ulrich Drepper <drepper@redhat.com>
1920 * resolv/res_init.c: Handle scope IDs in resolv.conf.
1922 2008-04-07 Jakub Jelinek <jakub@redhat.com>
1924 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
1926 2008-04-06 Ulrich Drepper <drepper@redhat.com>
1928 * po/nl.po: Update from translation team.
1930 2008-03-31 Ulrich Drepper <drepper@redhat.com>
1933 * string/strfry.c: Handle empty strings again.
1935 2008-03-30 Ulrich Drepper <drepper@redhat.com>
1938 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
1939 before looking for translation.
1940 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
1941 * locale/freelocale.c: Likewise.
1942 * locale/newlocale.c: Likewise.
1943 * locale/setlocale.c: Likewise.
1944 Based partially on a patch by ryo@np.css.fujitsu.com.
1946 2008-03-30 Jakub Jelinek <jakub@redhat.com>
1948 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
1949 acquiring wrlock. Do conv_tab allocation while holding lock.
1950 * intl/Makefile: Add rules to build and run tst-gettext6.
1951 * intl/tst-gettext6.c: New test.
1952 * intl/tst-gettext6.sh: New file.
1954 2008-03-30 Ulrich Drepper <drepper@redhat.com>
1956 * po/nl.po: Update from translation team.
1958 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
1959 provided through st_blksize, try the default size before giving up.
1961 2008-03-29 Ulrich Drepper <drepper@redhat.com>
1963 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
1966 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
1968 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
1969 error message. POSIX today does not require the messages to be in
1970 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
1973 * sunrpc/auth_unix.c: Unify printed strings.
1974 * sunrpc/clnt_tcp.c: Likewise.
1975 * sunrpc/clnt_udp.c: Likewise.
1976 * sunrpc/clnt_unix.c: Likewise.
1977 * sunrpc/svc_tcp.c: Likewise.
1978 * sunrpc/svc_udp.c: Likewise.
1979 * sunrpc/svc_unix.c: Likewise.
1980 * sunrpc/xdr.c: Likewise.
1981 * sunrpc/xdr_array.c: Likewise.
1982 * sunrpc/xdr_rec.c: Likewise.
1983 * sunrpc/xdr_ref.c: Likewise.
1984 * locale/programs/ld-time.c (time_finish): Unify messages.
1985 * locale/programs/locfile.c (handle_copy): Fix typo.
1986 * nscd/nscd.c (options): Fix typo.
1989 * stdlib/strtod_l.c: Use correct sign for result in one more
1991 Patch by Eric Blake <ebb9@byu.net>.
1993 2008-03-27 Jakub Jelinek <jakub@redhat.com>
1995 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
1996 and creat system calls.
1997 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
1999 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2002 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2003 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2005 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2007 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2008 <linux/limits.h> has defined it.
2009 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2010 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2012 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2013 it instead of ARG_MAX.
2015 2008-03-25 Jakub Jelinek <jakub@redhat.com>
2017 * posix/gai.conf: Fix comment for scope nullbits.
2018 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2019 default to 128 bits for v4 mapped addresses.
2021 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2023 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2024 ptrace call to get the ieee_instruction_pointer from the kernel.
2025 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2026 ptrace call to set the ieee_instructtion_pointer.
2027 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2028 Add comment that ieee_instruction_pointer is always 0.
2030 2008-03-09 Andreas Jaeger <aj@suse.de>
2033 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2034 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2035 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2037 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2038 (rint_test): Likewise.
2040 2008-03-24 Ulrich Drepper <drepper@redhat.com>
2042 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2044 (__nisfind_server): Similar for open readColdStartFile call.
2045 Patch partially by Jim Meyering.
2046 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2047 around internal_setent call.
2049 * po/vi.po: New Vietnamese translation.
2051 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2054 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2055 remove CLONE_STOPPED.
2057 2008-02-10 Jim Meyering <meyering@redhat.com>
2059 Remove useless "if" before "free":
2060 * elf/ldconfig.c (parse_conf_include): Likewise.
2061 * gmon/gmon.c (weak_alias): Likewise.
2062 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2063 * inet/rcmd.c (__validuser2_sa): Likewise.
2064 * intl/bindtextdom.c (set_binding_values): Likewise.
2065 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2066 * libio/genops.c (save_for_backup): Likewise.
2067 * libio/wgenops.c (save_for_wbackup): Likewise.
2068 * locale/programs/ld-collate.c (collate_read): Likewise.
2069 * locale/programs/linereader.c (get_string): Likewise.
2070 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2071 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2072 * resolv/res_debug.c (do_section): Likewise.
2073 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2074 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2075 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2076 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2077 * time/tzset.c (tzset_internal): Likewise.
2079 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2081 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2084 2008-03-11 Ulrich Drepper <drepper@redhat.com>
2087 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2088 not stream for output file. Open output file here.
2089 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2090 and output file name.
2091 (process_fd): Likewise.
2092 (process_file): Likewise.
2093 (main): Adjust callers of changed functions.
2094 * iconv/iconv_prog.h: Adjust prototype.
2096 2008-03-09 Andreas Jaeger <aj@suse.de>
2099 * sysdeps/ia64/ieee754.h: Use protected namespace
2100 __BIG_ENDIAN/__LITTLE_ENDIAN.
2101 * sysdeps/ieee754/ieee754.h: Likewise.
2102 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2104 2008-03-08 Roland McGrath <roland@frob.com>
2106 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2107 ignore a signal that came from a machine exception, treat it as a
2108 fatal core-dump signal instead.
2109 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2111 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2112 Clear DF bit in thread state's eflags.
2113 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2115 2008-03-08 Ulrich Drepper <drepper@redhat.com>
2118 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2119 of NAN(...) sequence.
2120 * stdlib/Makefile (tests): Add tst-strtod6.
2121 * stdlib/tst-strtod6.c: New file.
2123 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2126 * posix/getopt.c (_getopt_internal_r): Clarify error message by
2127 putting offending option character in quotes. Clean up error
2129 * po/be.po: Adjust msgstr in translation file.
2130 * po/bg.po: Likewise.
2131 * po/ca.po: Likewise.
2132 * po/cs.po: Likewise.
2133 * po/da.po: Likewise.
2134 * po/de.po: Likewise.
2135 * po/es.po: Likewise.
2136 * po/fr.po: Likewise.
2137 * po/hr.po: Likewise.
2138 * po/ko.po: Likewise.
2139 * po/nl.po: Likewise.
2140 * po/rw.po: Likewise.
2141 * po/sk.po: Likewise.
2142 * po/sv.po: Likewise.
2143 * po/tr.po: Likewise.
2144 * po/zh_CN.po: Likewise.
2145 * po/zh_TW.po: Likewise.
2148 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2149 Patch by Roland Bless <roland@bless.de>.
2151 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2153 * elf/Makefile (routines): Add dl-sysdep.
2154 (elide-routines.os): Likewise.
2156 2008-03-07 Ulrich Drepper <drepper@redhat.com>
2159 * elf/dl-sysdep.c: Undefine ROUND after use.
2160 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2161 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2162 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2163 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2165 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2166 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2168 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2170 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2171 _dl_tls_get_addr_soft element.
2172 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2173 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2174 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2176 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2177 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2178 of internal_function.
2180 * stdlib/Makefile (aux): Add tens_in_limb.
2181 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2182 * stdlib/tens_in_limb.c: ...here. New file.
2185 * sysdeps/unix/sysv/linux/pathconf.h: Declare
2186 __statfs_chown_restricted.
2187 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2188 for _PC_CHOWN_RESTRICTED.
2189 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2190 Implement __statfs_chown_restricted.
2191 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2192 _POSIX_CHOWN_RESTRICTED value to zero.
2193 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2196 * sysdeps/x86_64/rtld-memset.c: New file.
2198 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
2200 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2202 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2203 Barcelona machine. Make default fall through branch of
2204 __x86_64_preferred_memory_instruction check as the integer code path.
2206 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2208 * sysdeps/x86_64/cacheinfo.c
2209 (__x86_64_preferred_memory_instruction): New variable.
2210 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2212 * sysdeps/x86_64/memset.S: Rewrite.
2214 2008-03-04 Jakub Jelinek <jakub@redhat.com>
2216 * include/stdio.h (__asprintf_chk, __dprintf_chk,
2217 __obstack_printf_chk): New prototypes.
2218 (__vasprintf_chk, __vdprintf_chk,
2219 __obstack_vprintf_chk): Likewise.
2220 Add libc_hidden_proto.
2222 (_IO_obstack_jumps): No longer static, add attribute_hidden.
2223 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2224 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2225 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2226 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2227 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2228 __obstack_vprintf_chk): New prototypes.
2229 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2230 obstack_vprintf): New inlines.
2231 * debug/dprintf_chk.c: New file.
2232 * debug/vdprintf_chk.c: New file.
2233 * debug/asprintf_chk.c: New file.
2234 * debug/vasprintf_chk.c: New file.
2235 * debug/obprintf_chk.c: New file.
2236 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2237 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2238 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2240 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2241 vdprintf_chk and obprintf_chk, set CFLAGS for them.
2242 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2243 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2245 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2246 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2247 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2248 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2249 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2251 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2252 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2253 obstack_vprintf_chk.
2254 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2255 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2256 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2257 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2258 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2259 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2261 2008-03-04 Ulrich Drepper <drepper@redhat.com>
2264 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2265 Patch by Roy Marples <roy@marples.name>.
2268 * malloc/malloc.c: Fix typo in comment.
2271 * locale/iso-639.def: Add Shuswap.
2273 2008-02-25 Jakub Jelinek <jakub@redhat.com>
2276 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2277 overwrite *h_errnop/*errnop values from getanswer_r in case of
2280 2008-03-03 Ulrich Drepper <drepper@redhat.com>
2283 * nscd/connections.c (dbs): Add initializers for .suggested_module.
2284 (verify_persistent_db): Remove one unnecessary test and add a new one
2285 for bad configuration.
2286 (nscd_init): Improve error reported when persistent database cannot
2288 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2289 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2290 .suggested_module and .max_db_size and case config file says the
2292 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2295 * nis/ypclnt.c (yp_order): Fix handling of return value of
2297 Patch by Jeff Moyer <jmoyer@redhat.com>.
2299 * po/fr.po: Update from translation team.
2301 2008-02-22 Andreas Jaeger <aj@suse.de>,
2302 Carlos O'Donell <carlos@systemhalted.org>
2305 * FAQ.in: Describe why glibc needs to be compiled with
2308 2008-02-19 Roland McGrath <roland@redhat.com>
2310 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2312 2008-02-15 Ulrich Drepper <drepper@redhat.com>
2315 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2316 __USE_MISC is defined.
2318 2008-02-10 Ulrich Drepper <drepper@redhat.com>
2320 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2321 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2323 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2324 timerfd_gettime, timerfd_settime.
2325 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2326 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2328 2008-02-08 Roland McGrath <roland@redhat.com>
2330 * elf/elf.h (NT_PPC_SPE): New macro.
2332 2008-02-06 Roland McGrath <roland@redhat.com>
2334 * Makerules ($(common-objpfx)sysd-rules):
2335 Depend on $(sysdep-makeconfigs).
2337 2008-01-31 Roland McGrath <roland@redhat.com>
2340 * configure.in: Use -print-file-name if it yields a directory,
2341 for each of include and include-fixed.
2342 * configure: Regenerated.
2344 * Makeconfig (sysd-rules-targets): New variable.
2345 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2346 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2348 2008-01-30 Roland McGrath <roland@redhat.com>
2350 * manual/libc.texinfo: Update back-cover text.
2352 * elf/elf.h (NT_386_TLS): New macro.
2354 2008-01-29 Roland McGrath <roland@redhat.com>
2356 * Makeconfig (sysd-rules-patterns): New variable.
2357 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2358 (check-inhibit-asm): New canned sequence, replaces ...
2359 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2360 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2361 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2362 (CFLAGS-rtld): Variable removed.
2364 2008-01-24 Roland McGrath <roland@redhat.com>
2366 * configure.in: Let configure fragments set base_os.
2367 * configure: Regenerated.
2369 2008-01-22 Ulrich Drepper <drepper@redhat.com>
2371 * po/ko.po: Update from translation team.
2373 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2375 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2377 2008-01-12 Andreas Jaeger <aj@suse.de>
2380 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2383 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2385 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2386 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2387 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2389 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
2391 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2392 * elf/dl-close.c (_dl_close): Check for it.
2393 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2394 (_dl_allocate_static_tls): Likewise.
2395 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2396 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2398 * elf/tst-tls16.c: New file.
2399 * elf/tst-tlsmod16a.c: New file.
2400 * elf/tst-tlsmod16b.c: New file.
2401 * elf/Makefile: Add rules to build and run tst-tls16.
2403 2008-01-16 Ulrich Drepper <drepper@redhat.com>
2406 * bits/shm.h: Fix comment describing shmid_ds.
2407 * sysdeps/gnu/bits/shm.h: Likewise.
2408 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2409 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2410 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2411 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2412 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2413 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2414 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2415 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2416 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2419 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2421 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2422 additional suffixes.
2423 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2424 Add optional functions mq_timedreceive and mq_timedsend.
2425 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2426 * conform/data/pthread.h-data: Fix prototype of
2427 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2428 * conform/data/semaphore.h-data: Allow time.h definitions.
2429 * conform/data/signal.h-data: Likewise.
2430 * conform/data/stdio.h-data: getw and putw are not required in v6.
2431 * conform/data/stdlib.h-data: Change setstate prototype.
2432 * conform/data/string.h-data: Fix strerror_r prototype.
2433 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2434 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2435 Fix readlink prototype.
2436 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2438 * inet/netinet/in.h: Cleanup namespace.
2439 * posix/regex.h: Likewise.
2440 * resolv/netdb.h: Likewise.
2441 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2442 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2443 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2444 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2445 of names of in in6_addr.
2446 (default_precedence): Likewise.
2447 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2450 2008-01-15 Ulrich Drepper <drepper@redhat.com>
2452 * conform/data/fmtmsg.h-data: Add missing allows.
2453 * conform/data/ftw.h-data: Likewise.
2454 * conform/data/inttypes.h-data: Likewise.
2455 * conform/data/math.h-data: Likewise.
2456 * conform/data/signal.h-data: Likewise.
2457 * conform/data/net/if.h-data: Likewise.
2458 * conform/data/netinet/in.h-data: Likewise.
2459 * conform/data/sys/socket.h-data: Likewise.
2462 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2463 (__strtok_r): Simplify.
2464 * string/tester.c (test_strtok_r): Add test case for futile search
2465 with single-character seach string.
2467 2008-01-12 Ulrich Drepper <drepper@redhat.com>
2469 * po/ko.po: Update from translation team.
2471 2008-01-11 Andreas Jaeger <aj@suse.de>
2474 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2475 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2478 2008-01-10 Ulrich Drepper <drepper@redhat.com>
2480 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2481 native interface lookup in all the relevant places.
2483 2008-01-10 Jakub Jelinek <jakub@redhat.com>
2484 Ulrich Drepper <drepper@redhat.com>
2486 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2487 field. Use sockaddr_in6 for source_addr.
2488 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2489 (match_prefix): Likewise.
2490 (get_label): Likewise.
2491 (get_precedence): Likewise.
2492 (rfc3484_sort): Change to use indirect access to results array.
2493 Adjust to use of sockaddr_in6. Replace service_order test with
2494 simple index comparison.
2495 (getaddrinfo): Define order array. Initialize it. Don't initialize
2496 service_order field. Adjust qsort_t calls. Access sorted result
2497 array indirectly through order array.
2498 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2499 * posix/tst-rfc3484-2.c: Likewise.
2500 * posix/tst-rfc3484-3.c: Likewise.
2502 2008-01-09 Ulrich Drepper <drepper@redhat.com>
2505 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2507 Patch by André Cruz.
2510 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2511 (clnt_spcreateerror): Likewise.
2514 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2515 (public_mEMALIGn): Likewise.
2516 Patch mostly by Daniel Jacobowitz.
2518 2008-01-09 Jakub Jelinek <jakub@redhat.com>
2520 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2521 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2522 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2523 * stdlib/tst-makecontext2.c: New test.
2525 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2527 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2529 (REINIT_PARAMS): Likewise. Undefine before end of file.
2530 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2531 transliteration hooks and REINIT_PARAMS afterwards.
2532 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2534 (REINIT_PARAMS): Define.
2535 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2536 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2537 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2538 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2539 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2540 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2541 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2542 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2543 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2544 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2545 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2546 * iconvdata/tst-iconv7.c: New test.
2548 2008-01-07 Ulrich Drepper <drepper@redhat.com>
2550 * libio/stdio.h (vscanf): Fix definition for loser compilers.
2552 2008-01-05 Jakub Jelinek <jakub@redhat.com>
2555 * nscd/connections.c (restart): Fix condition.
2557 2008-01-03 Jakub Jelinek <jakub@redhat.com>
2559 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2560 __ctype_toupper_loc): Add __THROW.
2562 2008-01-02 Ulrich Drepper <drepper@redhat.com>
2564 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2565 recognition of interface family.
2567 * posix/getconf.c: Update copyright year.
2568 * nss/getent.c: Likewise.
2569 * iconv/iconvconfig.c: Likewise.
2570 * iconv/iconv_prog.c: Likewise.
2571 * elf/ldconfig.c: Likewise.
2572 * catgets/gencat.c: Likewise.
2573 * csu/version.c: Likewise.
2574 * elf/ldd.bash.in: Likewise.
2575 * elf/sprof.c (print_version): Likewise.
2576 * locale/programs/locale.c: Likewise.
2577 * locale/programs/localedef.c: Likewise.
2578 * nscd/nscd.c (print_version): Likewise.
2579 * debug/xtrace.sh: Likewise.
2580 * malloc/memusage.sh: Likewise.
2581 * malloc/mtrace.pl: Likewise.
2582 * debug/catchsegv.sh: Likewise.
2584 2007-12-26 Ulrich Drepper <drepper@redhat.com>
2586 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2589 2007-12-23 Ulrich Drepper <drepper@redhat.com>
2591 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2592 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2594 2007-12-17 Roland McGrath <roland@redhat.com>
2596 * inet/ether_line.c (ether_line): Remove unused variable.
2598 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2600 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2602 * login/openpty.c (openpty): Likewise.
2603 * login/pty.h (openpty, forkpty): Likewise.
2604 * manual/terminal.texi (openpty, forkpty): Likewise.
2606 2007-12-17 Ulrich Drepper <drepper@redhat.com>
2608 * malloc/malloc.c (public_cALLOc): For arenas other than
2609 main_arena, count all bytes inside the mprotect_size range of the
2610 heap as uninitialized.
2612 2007-12-16 Ulrich Drepper <drepper@redhat.com>
2614 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2617 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2618 mTRIm for all of them.
2619 (mTRIm): Additionally iterate over all free blocks and use madvise
2620 to free memory for all those blocks which contain at least one
2622 * malloc/tst-trim1.c: New file.
2623 * malloc/Makefile (tests): Add tst-trim1.
2625 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2627 2007-12-14 Ulrich Drepper <drepper@redhat.com>
2629 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2630 First cast argument to long
2631 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2633 (__vdso_clock_gettime): Likewise.
2634 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2637 2007-12-13 Ulrich Drepper <drepper@redhat.com>
2639 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2640 * locale/nl_langinfo_l.c: Real implementation, copied from
2642 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2644 2007-12-01 Jim Meyering <meyering@redhat.com>
2646 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2647 that would inhibit utf8-optimization of a regexp containing line-
2648 or buffer-anchors, e.g., `^', `$'.
2650 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2652 * time/bug-getdate1.c (do_test): Don't use century values which
2653 aren't valid on 32-bit systems.
2655 2007-12-12 Jakub Jelinek <jakub@redhat.com>
2657 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2658 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2659 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2660 __strcat_g, __strncat_g): Add __asm__.
2662 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2665 * io/fchmodat.c: Fix typo in stub_warning use.
2666 Patch by Petr Salinger.
2668 2007-12-11 Ulrich Drepper <drepper@redhat.com>
2670 * iconvdata/hp-thai8.c: New file.
2671 * iconvdata/Makefile: Add rules for hp-thai8.c.
2672 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2673 * iconvdata/gconv-modules: Likewise.
2676 * iconvdata/hp-greek8.c: New file.
2677 * iconvdata/Makefile: Add rules for hp-greek8.c.
2678 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2679 * iconvdata/gconv-modules: Likewise.
2682 * iconvdata/hp-turkish8.c: New file.
2683 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2684 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2685 * iconvdata/gconv-modules: Likewise.
2687 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2688 (shrink_heap): ... this new function.
2689 (heap_trim): Call shrink_heap instead of grow_heap.
2691 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2692 case don't call alloc_perturb.
2694 2007-12-10 Ulrich Drepper <drepper@redhat.com>
2696 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2698 * sysdeps/unix/sysv/linux/kernel-features.h
2699 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2700 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2702 2007-12-08 Ulrich Drepper <drepper@redhat.com>
2705 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2706 * stdio-common/Makefile (tests): Add bug22.
2707 * stdio-common/bug22.c: New file.
2710 * time/getdate.c: Fix filling in default values.
2711 * time/bug-getdate1.c: New file.
2712 * time/Makefile: Add rules to build and run bug-getdate1.
2714 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2715 * iconvdata/ebcdic-es.c: Likewise.
2716 * iconvdata/ebcdic-es-a.c: Likewise.
2717 * iconvdata/ebcdic-uk.c: Likewise.
2718 * iconvdata/iso8859-16.c: Likewise.
2719 * iconvdata/viscii.c: Likewise.
2720 * iconvdata/iso8859-9e.c: Likewise.
2721 * iconvdata/Makefile: Adjust appropriately.
2724 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2727 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2730 * iconvdata/hp-roman9.c: New file.
2731 * iconvdata/Makefile: Add rules for hp-roman9.c.
2732 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2733 * iconvdata/gconv-modules: Likewise.
2735 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2736 * iconvdata/Makefile: Adjust appropriately.
2739 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2740 structure, it's allocated with alloca.
2741 * stdio-common/Makefile (tests): Add bug21.
2742 * stdio-common/bug21.c: New file.
2744 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
2747 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2748 keyword for gcc's braced-groups.
2750 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2753 * inet/ether_line.c: Strip hostname of whitespaces.
2754 * inet/Makefile (tests): Add tst-ether_line.
2755 * inet/tst-ether_line.c: New file.
2757 2007-12-03 Ulrich Drepper <drepper@redhat.com>
2760 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2763 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2765 * stdlib/tst-setcontext.c: Catch the case where the links gets
2766 messed up and we do not reach main again.
2768 * po/ca.po: Update from translation team.
2770 2007-11-26 Ulrich Drepper <drepper@redhat.com>
2772 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2773 * posix/regex.h (REG_ENOSYS): Likewise.
2774 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2776 2007-11-25 Ulrich Drepper <drepper@redhat.com>
2778 * nscd/nscd.h (MAX_STACK_USE): Define.
2779 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2780 (gc): Initialize stack_used based on allocation in prune_cache.
2781 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2782 Clear array before use.
2784 * nscd/aicache.c (addhstaiX): Update statistics counter in case
2785 memory allocation failed.
2786 * nscd/hstcache.c (cache_addhst): Likewise.
2787 * nscd/grpcache.c (cache_addgr): Likewise.
2788 * nscd/servicescache.c (cache_addserv): Likewise.
2789 * nscd/pwdcache.c (cache_addpw): Likewise.
2790 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2792 2007-11-23 Ulrich Drepper <drepper@redhat.com>
2794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2795 and creat system calls.
2797 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2799 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
2801 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2803 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2804 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2806 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2807 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2808 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2810 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
2812 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2813 strncat): Define as macros to avoid compile errors.
2815 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
2818 2007-11-22 Ulrich Drepper <drepper@redhat.com>
2821 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2822 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
2823 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
2825 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2827 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
2828 Return zero in case the thread library is not NPTL.
2831 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2832 initializing interface list.
2835 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2836 use result of nss_getgrgid_r if nothing was found. For other
2837 error return with a failure.
2838 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2840 * locale/programs/ld-collate.c (collate_read): Fix loop to match
2843 2007-11-19 Ulrich Drepper <drepper@redhat.com>
2845 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2846 (get_scope): For IPv4 scope, use scopes table.
2847 (fini): Free scopes table if necessary.
2848 (free_scopelist): New function.
2849 (scopecmp): New function.
2850 (gaiconf_init): Also handle scopev4 entries.
2851 * posix/tst-rfc3484.c (do_test): Initialize scopes.
2852 * posix/tst-rfc3484-2.c (do_test): Likewise.
2853 * posix/gai.conf: Document scopev4 defaults.
2854 * posix/Makefile (tests): Add tst-rfc3484-3.
2855 * posix/tst-rfc3484-3.c: New file.
2857 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
2859 * posix/gai.conf: Update for current default tables.
2861 2007-11-19 Ulrich Drepper <drepper@redhat.com>
2863 * po/tr.po: Update from translation team.
2865 2007-11-18 Roland McGrath <roland@frob.com>
2867 * manual/arith.texi (Remainder Functions): Spelling fix.
2868 From Shaun Silk <genix@mysoul.com.au>.
2870 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2872 2007-11-17 Ulrich Drepper <drepper@redhat.com>
2874 * po/zh_CN.po: Update from translation team.
2876 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2877 Add sys/signalfd.h and sys/eventfd.h.
2879 2007-11-15 Bruno Haible <bruno@clisp.org>
2882 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
2884 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
2885 (DCIGETTEXT): Change the allocation of the 'search' variable so that
2886 it needs only fixed stack space. Delay the initialization of
2887 msgid_len until it is needed.
2889 2007-11-15 Andreas Jaeger <aj@suse.de>
2891 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
2892 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
2894 2007-11-15 Ulrich Drepper <drepper@redhat.com>
2896 * po/ko.po: Update from translation team.
2898 2007-11-14 Ulrich Drepper <drepper@redhat.com>
2900 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
2901 significantly. The device type is also part of the ifinfomsg data.
2903 * po/sv.po: Update from translation team.
2904 * po/nl.po: Likewise.
2906 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
2907 to wake up in 24 hours.
2909 * nscd/gai.c (__ioctl): Define. Include check_native.c.
2911 2007-11-13 Ulrich Drepper <drepper@redhat.com>
2913 * po/cs.po: Update from translation team.
2914 * po/pl.po: Likewise.
2916 * include/ifaddrs.h: Remove in6ai_temporary.
2917 (struct in6addrinfo): Add index element.
2918 Declare __check_native.
2919 * inet/Makefile (aux): Add check_native.
2920 * sysdeps/unix/sysv/linux/check_native.c: New file.
2921 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
2922 IFA_F_TEMPORARY. Pass back ifa_index.
2923 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
2924 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
2925 call __check_native if necessary.
2926 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
2927 to sort addresses. Pass information about the results.
2928 * posix/tst-rfc3484.c: Adjust for addition of index field and change
2929 of rfc3484_sort interface.
2930 * posix/tst-rfc3484-2.c: Likewise.
2932 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
2933 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
2935 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
2936 (qsort_r): Renamed from qsort. Take additional parameter and pass it
2937 on as third parameter to compare function and _quicksort.
2938 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
2939 to the compare function.
2940 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
2941 * Versions.def: Add GLIBC_2.8 for libc.
2943 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
2944 * posix/tst-rfc3484-2.c: Likewise.
2946 * include/kernel-features.h: Moved to...
2947 * sysdeps/mach/hurd/kernel-features.h: ...here.
2949 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
2951 * sysdeps/i386/i586/memcpy_chk.S: New file.
2952 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
2953 * sysdeps/i386/i586/memset_chk.S: Likewise.
2955 2007-11-12 Ulrich Drepper <drepper@redhat.com>
2957 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
2958 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
2959 list of interfaces. Also store prefix length.
2960 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
2961 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
2962 prefix if source and destination address are in the same subnet.
2963 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
2964 Always look for matching record in in6ai list.
2965 Correct source_addr_len value for IPv6->IPv4 converted records.
2967 2007-11-11 Roland McGrath <roland@frob.com>
2969 * include/kernel-features.h: New file.
2971 2007-11-10 Ulrich Drepper <drepper@redhat.com>
2973 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
2974 complications for 64-bit platforms.
2976 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
2977 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
2978 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
2980 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
2982 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2983 * sysdeps/wordsize-64/alphasort.c: New file.
2984 * sysdeps/wordsize-64/alphasort64.c: New file.
2985 * sysdeps/wordsize-64/fseeko.c: New file.
2986 * sysdeps/wordsize-64/fseeko64.c: New file.
2987 * sysdeps/wordsize-64/ftello.c: New file.
2988 * sysdeps/wordsize-64/ftello64.c: New file.
2989 * sysdeps/wordsize-64/ftw.c: New file.
2990 * sysdeps/wordsize-64/ftw64.c: New file.
2991 * sysdeps/wordsize-64/iofgetpos.c: New file.
2992 * sysdeps/wordsize-64/iofgetpos64.c: New file.
2993 * sysdeps/wordsize-64/iofopen.c: New file.
2994 * sysdeps/wordsize-64/iofopen64.c: New file.
2995 * sysdeps/wordsize-64/iofsetpos.c: New file.
2996 * sysdeps/wordsize-64/iofsetpos64.c: New file.
2997 * sysdeps/wordsize-64/lockf.c: New file.
2998 * sysdeps/wordsize-64/lockf64.c: New file.
2999 * sysdeps/wordsize-64/mkostemp.c: New file.
3000 * sysdeps/wordsize-64/mkostemp64.c: New file.
3001 * sysdeps/wordsize-64/mkstemp.c: New file.
3002 * sysdeps/wordsize-64/mkstemp64.c: New file.
3003 * sysdeps/wordsize-64/scandir.c: New file.
3004 * sysdeps/wordsize-64/scandir64.c: New file.
3005 * sysdeps/wordsize-64/tmpfile.c: New file.
3006 * sysdeps/wordsize-64/tmpfile64.c: New file.
3007 * sysdeps/wordsize-64/versionsort.c: New file.
3008 * sysdeps/wordsize-64/versionsort64.c: New file.
3009 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3010 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3011 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3012 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3013 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3014 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3015 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3016 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3017 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3018 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3019 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3020 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3022 * crypt/sha256-crypt.c: Fix a comment.
3023 * crypt/sha512-crypt.c: Likewise.
3025 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3027 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3029 2007-11-07 Ulrich Drepper <drepper@redhat.com>
3032 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3033 because output buffer is too small break, don't loop.
3034 * iconvdata/Makefile (tests): Add bug-iconv6.
3035 * iconvdata/bug-iconv6.c: New file.
3037 2007-11-06 Ulrich Drepper <drepper@redhat.com>
3039 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3041 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3042 size_t. Add casts where needed.
3044 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3045 old headers, don't call avc_has_perm if we don't have the
3046 permission information.
3048 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3050 * elf/rtld.c (dl_main): Use the page size to find the map start.
3052 2007-11-05 Ulrich Drepper <drepper@redhat.com>
3054 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3055 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3057 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3058 when the lookup call failed.
3060 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3061 Add prune_cond and wakeup_time.
3062 (CACHE_PRUNE_INTERNAL): Define.
3063 Update declarations of prune_cache and setup_thread.
3064 * nscd/connections.c (dbs): Update initializers.
3065 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3066 (nscd_init): Default number of threads is now 4.
3067 (invalidate_cache): Take lock before calling prune_cache.
3068 (handle_request): If SELinux forbids the request, say so.
3069 (readylist_cond): Use static initializer.
3070 (nscd_run_prune): New function. Used only by pruning threads.
3071 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3073 (fd_ready): Update nscd_run reference.
3074 (start_threads): No need to initialize readylist_cond.
3075 Start pruning threads separately.
3076 * nscd/nscd_setup_thread.c: Change return value type to int and always
3078 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3079 to int and return nonzero value if we can use the TID address hack.
3080 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3081 the database is later than the new entry's timeout, update the
3082 wakeup time and wake the cleanup thread.
3083 (prune_cache): Return seconds the next entry in the database is still
3084 valid. Remove locking for pruning here.
3085 * nscd/nscd.conf: Document default number of threads.
3087 2007-10-31 Ulrich Drepper <drepper@redhat.com>
3089 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3090 stack is properly aligned for the target function.
3091 Correct unwind info.
3093 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3094 when using auditing libraries.
3096 2007-10-29 Ulrich Drepper <drepper@redhat.com>
3098 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3099 _nss_dns_getnetbyaddr2_r.
3100 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3101 extra parameter to getanswer_r.
3102 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3103 _nss_dns_getnetbyaddr2_r.
3105 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3107 * nscd/gethstbynm2_r.c: Remove.
3108 * nscd/gethstbynm3_r.c: New file.
3109 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3111 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
3112 __gethostbyaddr_r compatibility wrapper.
3113 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
3114 determining timeout of entry.
3115 (lookup): Take new parameter and pass it to __gethostbyname3_r and
3117 (addhstbyX): Pass reference to variable for TTL to lookup and
3119 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3120 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3121 and __nss_next2. Remove __nss_services_lookup.
3122 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
3124 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3126 * nss/getXXent_r.c: Likewise.
3127 * nss/getnssent_r.c: Likewise.
3128 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3129 does not exist in module, try the optional second name.
3130 (__nss_next2): New function.
3131 (__nss_next): Now wrapper around __nss_next2.
3132 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3133 Declare __nss_next2.
3134 Adjust definition of db_lookup_function type.
3135 * nss/service-lookup.c: Define NO_COMPAT.
3136 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3137 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3138 * inet/ether_ntoh.c: Likewise.
3139 * sunrpc/netname.c: Likewise.
3140 * sunrpc/publickey.c: Likewise.
3141 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3142 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3143 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3144 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3145 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3147 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3149 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3151 2007-10-28 Ulrich Drepper <drepper@redhat.com>
3154 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3155 * crypt/sha512c-test.c: Likewise.
3158 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3159 to keep track of end of %[ format string element.
3160 * stdio-common/Makefile (tests): Add bug20.
3161 * stdio-common/bug20.c: New file.
3164 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3165 path elements in counting mode.
3167 2007-10-27 Andreas Jaeger <aj@suse.de>
3170 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3173 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3174 (__cleanup): Free shared library when exiting.
3175 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3176 (__cleanup): Free shared library when exiting.
3178 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
3181 * math/libm-test.inc (check_float_internal): Support
3182 denormalized return.
3184 2007-10-23 Andreas Jaeger <aj@suse.de>
3187 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3188 __LONG_LONG_PAIR to handle little endian byte order.
3189 Suggested by abhishekrai@google.com
3191 2007-10-27 Ulrich Drepper <drepper@redhat.com>
3193 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3195 2007-10-26 Ulrich Drepper <drepper@redhat.com>
3197 * nscd/cache.c (prune_cache): Move test for modified file outside
3200 2007-10-21 Andreas Jaeger <aj@suse.de>
3202 * manual/texinfo.tex: Update to latest version.
3204 * manual/sysinfo.texi (System Parameters): Fix Formatting.
3206 * manual/arith.texi (Status bit operations): Fix formatting.
3208 * manual/errno.texi (Error Messages): Fix formatting.
3210 * manual/sysinfo.texi (System Parameters): Fix formatting.
3212 * manual/libc.texinfo: Update VERSION and UPDATED.
3214 2007-10-19 Roland McGrath <roland@redhat.com>
3216 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3218 2007-10-06 David S. Miller <davem@davemloft.net>
3220 * configure.in: Add sparcv9v2 and sparc64v2.
3221 * scripts/config.sub: Likewise.
3222 * configure: Regenerate.
3223 * elf/elf.h (HWCAP_SPARC_N2): New.
3224 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3225 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3226 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3227 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3228 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3229 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3230 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3232 2007-10-18 Ulrich Drepper <drepper@redhat.com>
3234 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3235 even if the poll result indicates there is data to read.
3236 Patch by Jeff Moyer <jmoyer@redhat.com>.
3238 2007-10-18 Roland McGrath <roland@redhat.com>
3240 * elf/elf.h (NT_PPC_VMX): New macro.
3242 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3244 * version.h (VERSION): Set to 2.7.90.
3246 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3248 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
3251 2007-10-17 Roland McGrath <roland@frob.com>
3253 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3254 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3256 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3258 * version.h (VERSION): Bump to 2.7.
3259 * include/features.h (__GLIBC_MINOR__): Bump to 7.
3262 * time/tzset.c (__tz_convert): Don't force testing for a change of
3263 TZ if not called from localtime. But then also see whether the
3264 file changed, in case __use_tzfile is set.
3266 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3267 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3268 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3269 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3270 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3271 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3272 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3273 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3275 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3277 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3278 and admin selects to be able to replace the gai.conf file, lock
3279 data structures around the qsort call.
3281 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3283 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3285 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
3286 too high for the improvements. Implement bzero unconditionally for
3289 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3290 Jakub Jelinek <jakub@redhat.com>
3292 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3293 even when time_t is 32-bit.
3294 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3295 timezone data read by __tzfile_default. Ensure __tzname[0] is
3296 always set after the search.
3298 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3300 * time/tzfile.c (__tzfile_read): Help the compiler recognize
3301 unreachable code on 32-bit machines.
3303 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3306 * time/strftime_l.c: Include stdbool.h.
3307 (my_strftime): New wrapper, old function renamed to...
3308 (__strftime_internal): ... new function. Add tzset_called
3309 argument, pass it down to recursive calls, don't call tzset ()
3310 if already true, set to true after call to tzset ().
3312 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3314 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3315 into account when copying TZ string.
3317 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3319 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3320 num_transition rather than num_transitions - 1.
3322 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3324 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3327 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3328 a local label rather than HIDDEN_JUMPTARGET.
3330 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3332 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3333 (init_cacheinfo): Initialize it.
3334 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3335 Always define bzero.
3336 Remove non-glibc code.
3337 * sysdeps/x86_64/bzero.S: Make an empty file.
3339 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3341 * sysdeps/x86_64/cacheinfo.c
3342 (__x86_64_preferred_memory_instruction): New.
3343 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3345 * sysdeps/x86_64/memset.S: Rewrite.
3347 2007-10-15 Roland McGrath <roland@redhat.com>
3349 * po/libc.pot: Regenerated.
3351 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3353 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3357 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3358 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3359 address record to T_A/T_AAAA requests.
3361 2007-10-14 Ulrich Drepper <drepper@redhat.com>
3363 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3365 * posix/glob.c: Add some branch prediction throughout.
3367 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3370 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3372 (rfc3484_sort): Make sure that even if qsort doesn't support
3373 stable sorting out sorting here is stable by comparing service_order.
3374 (getaddrinfo): Initialize service_order.
3375 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3376 service_order field to sorting structure.
3377 * posix/tst-rfc3484-2.c (do_test): Likewise.
3379 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3380 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3381 __tzset_parse_tz and updating of daylight, timezone, tzname into
3383 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3384 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3385 happens in __tz_compute.
3386 * time/tzfile.c (__tzfile_read): Also read TZ string.
3387 (find_transition): Fold into __tzfile_compute.
3388 (__tzfile_compute): For times beyond the last transition try to
3390 * timezone/tst-timezone.c: Information in daylight and tzname does
3391 change for Asia/Tokyo timezone with more concrete information.
3394 * include/stdio.h: Add libc_hidden_proto for ftello.
3395 * libio/ftello.c: Add libc_hidden_def.
3398 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3399 on the specified time and not the last entries in the file. Move
3400 code to determine tzname[] to...
3401 (find_transition): ...here. Add ugly guess for times before the
3404 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3407 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3409 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3410 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3411 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3412 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3414 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3415 read mechanism when there are no group members and avoid no-op
3416 read syscall in this case.
3419 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3420 (__readall): If reading failed due to EAGAIN error wait a bit
3421 and possibly try again.
3422 (__readvall): Likewise.
3424 2007-10-13 Bruno Haible <bruno@clisp.org>
3426 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3427 when we cannot recode the message.
3429 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3432 * libio/__freading.c (__freading): Don't return true for
3433 write-only streams. For read/write streams, check whether we
3434 performed a read operation already.
3435 * libio/Makefile (tests): Add tst-ext2.
3436 * libio/tst-ext2.c: New file.
3438 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3440 * locale/programs/repertoire.c (repertoire_read): Always free
3441 memory for repertoire file name [Coverity CID 270].
3443 * elf/cache.c (save_aux_cache): Free memory allocated for
3444 temporary file name [Coverity CID 267].
3446 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3448 * misc/Makefile (headers): Add bits/error.h.
3450 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3452 * posix/fnmatch_loop.c: Take rule index returned as part of
3453 findidx return value into account when accessing weights.
3454 * posix/regcomp.c: Likewise.
3455 * posix/regexec.c: Likewise.
3457 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3458 (skip_to): Fix problems with parameter of elifdef/elifndef.
3460 2007-10-11 Ulrich Drepper <drepper@redhat.com>
3462 * iconv/gconv_simple.c: Add some branch prediction.
3464 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3466 * locale/programs/ld-collate.c (collate_read): If ignore_content
3467 and nowtok is tok_define, eat any tok_eol tokens.
3469 2007-10-11 Jakub Jelinek <jakub@redhat.com>
3471 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3472 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3474 * inet/netinet/in.h: Don't include bits/socket.h.
3475 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3477 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3479 2007-10-10 Ulrich Drepper <drepper@redhat.com>
3481 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3483 * locale/programs/locfile-kw.gperf: Likewise.
3484 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3486 2007-10-10 Jakub Jelinek <jakub@redhat.com>
3488 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3489 (__find_specwc): Change into __extern_always_inline function.
3490 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3491 (__parse_one_specmb): Remove ps argument.
3492 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3493 Adjust __find_specmb and __parse_one_specmb callers.
3494 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3495 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3497 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3500 2007-10-09 Ulrich Drepper <drepper@redhat.com>
3502 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3503 with some Pentium Ds.
3505 2007-10-08 Ulrich Drepper <drepper@redhat.com>
3507 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3509 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3512 2007-10-07 Ulrich Drepper <drepper@redhat.com>
3515 * locale/C-time.c: Set week_1stday data to 19971201.
3516 * locale/programs/ld-time.c (time_finish): Default for
3517 first_workday is Monday.
3520 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3523 * posix/glob.c (glob): Recognize patterns starting \/.
3524 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3525 (main): Add test for pattern starting \/.
3527 * misc/error.h: Use __const instead of const.
3528 * misc/bits/error.h: Likewise.
3530 2007-10-07 Andreas Jaeger <aj@suse.de>
3532 * include/bits/error.h: New file.
3534 * misc/bits/error.h (error_at_line): Fix prototype.
3536 2007-10-06 Ulrich Drepper <drepper@redhat.com>
3539 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3540 more little bugs in creating the stack frame when pltexit has to
3543 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3544 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3547 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3548 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3549 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3550 * math/libm-test.inc: Add test for this case.
3553 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3554 (svc_register): Initialize sc_mapped. Set to TRUE if call to
3555 map service succeeded.
3556 (svc_is_mapped): New function.
3557 (svc_unregister): Use it before trying to unmap service.
3559 2007-10-05 Ulrich Drepper <drepper@redhat.com>
3561 * timezone/zic.c: Update from tzcode2007h.
3564 * timezone/africa: Update from tzdata2007h.
3565 * timezone/antarctica: Likewise.
3566 * timezone/asia: Likewise.
3567 * timezone/australasia: Likewise.
3568 * timezone/europe: Likewise.
3569 * timezone/leapseconds: Likewise.
3570 * timezone/northamerica: Likewise.
3571 * timezone/southamerica: Likewise.
3572 * timzeone/zone.tab: Likewise.
3575 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3578 * string/bits/string2.h (__strdup): Cast parameters to calloc to
3579 avoid warning with -Wconversion.
3580 (__strndup): Likewise.
3581 Half the patch by Christian Iseli <christian.iseli@licr.org>.
3584 * nscd/connections.c (restart): Don't resync if database is
3585 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3587 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3588 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
3590 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3591 evetnfd_read, eventfd_write.
3592 * sysdeps/unix/sysv/linux/eventfd.c: New file.
3593 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3594 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3595 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3596 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3597 eventfd_write for GLIBC_2.7.
3599 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3600 * sysdeps/unix/sysv/linux/signalfd.c: New file.
3601 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3602 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3604 2007-10-04 Jakub Jelinek <jakub@redhat.com>
3606 * stdlib/msort.c: Include stdint.h.
3607 (struct msort_param): New type.
3608 (msort_with_tmp): Use struct msort_param pointer for unchanging
3609 parameters. Add optimized handling for several common sizes
3610 and indirect sorting mode.
3611 (qsort): Adjust msort_with_tmp callers. For big S use indirect
3613 Suggested by Belazougui Djamel .
3615 * stdlib/Makefile (tests): Add tst-qsort2.
3616 * stdlib/tst-qsort2.c: New test.
3618 2007-10-04 Ulrich Drepper <drepper@redhat.com>
3620 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3621 for dup2 in case another thread races with the current one. Retry
3624 * misc/error.h: Remove support for use outside of libc. We have to
3625 include <features.h> now. Include <bits/error.h> if possible.
3626 * misc/bits/error.h: New file.
3628 2007-10-03 Jakub Jelinek <jakub@redhat.com>
3630 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3631 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3632 __extern_always_inline functions unconditionally, drop macros.
3634 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3635 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3636 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3638 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3639 add __artificial__ attribute.
3641 2007-10-02 Ulrich Drepper <drepper@redhat.com>
3643 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3644 backward to forward direction.
3646 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3649 * locale/programs/ld-collate.c (collate_finish): Compare against last
3650 used section which is known to have rules defined.
3651 (collate_read): After order_start, correctly record order of sections
3652 and queue sections up.
3654 2007-10-01 Ulrich Drepper <drepper@redhat.com>
3657 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3658 the same number of pages.
3659 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3661 * locale/programs/ld-collate.c (collate_read): After initial copy
3662 statement, continue in state 0.
3664 * include/stdio_ext.h (__fsetlocking): Define as macro.
3666 2007-09-30 Ulrich Drepper <drepper@redhat.com>
3668 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3671 * po/pt_BR.po: Fix typo.
3673 2007-09-29 Ulrich Drepper <drepper@redhat.com>
3675 * iconvdata/Makefile (modules): Add ISO8859-9E.
3676 (distribute): Add iso8859-9e.c.
3677 (gen-8bit-gap-modules): Add iso8859-9e.
3678 * iconvdata/iso8859-9e.c: New file.
3679 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3680 * iconvdata/TESTS: Likewise.
3681 * iconvdata/tst-tables.sh: Likewise.
3683 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3685 * locale/iso-639.def: Add several new entries.
3687 2007-09-24 Jakub Jelinek <jakub@redhat.com>
3689 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3690 void * pointers instead of struct link_map **.
3691 (_dl_scope_free): Change argument type to void *.
3692 * include/link.h (struct link_map): Change type of l_reldeps
3693 to struct link_map_reldeps, move l_reldepsact into that
3695 * elf/dl-deps.c: Include atomic.h.
3696 (_dl_map_object_deps): Only change l->l_initfini when it is
3697 fully populated, use _dl_scope_free for freeing it. Optimize
3698 removal of libs from reldeps by using l_reserved flag, when
3699 some removal is needed, allocate a new list instead of
3700 reallocating and free the old with _dl_scope_free. Adjust
3701 for l_reldeps and l_reldepsact changes.
3702 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3703 searching in l_initfini and l_reldeps without holding dl_load_lock.
3704 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3705 l_reldepsact changes.
3706 * elf/dl-close.c (_dl_close_worker): Likewise.
3707 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3709 2007-09-28 Ulrich Drepper <drepper@redhat.com>
3711 * iconvdata/Makefile (modules): Add KOI8-RU.
3712 (distribute): Add koi8-ru.c.
3713 (gen-8bit-gap-modules): Add koi8-ru.
3714 * iconvdata/koi8-ru.c: New file.
3715 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3716 * iconvdata/TESTS: Likewise.
3717 * iconvdata/tst-tables.sh: Likewise.
3719 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3721 2007-09-26 Jakub Jelinek <jakub@redhat.com>
3723 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3724 with __warning__/__error__ attributes.
3725 (__warnattr): Define.
3726 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3727 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3729 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3730 of __*_chk if compile time detectable overflow is found.
3731 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3732 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3734 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3735 instead of __*_chk if compile time detectable overflow is found.
3736 (__gets_alias): Rename to...
3737 (__gets_warn): ... this. Add __warnattr.
3738 (gets): Call __gets_warn instead of __gets_alias.
3739 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3740 aliases with __warnattr.
3741 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3742 time detectable overflow is found.
3743 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3744 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3745 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3746 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3747 __getdomainname_chk_warn): New aliases with __warnattr.
3748 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3749 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3750 __*_chk_warn instead of __*_chk if compile time detectable overflow
3752 (__getgroups_chk): Rename argument to __listlen from listlen.
3753 (__getwd_alias): Rename to...
3754 (__getwd_warn): ... this. Add __warnattr.
3755 (getwd): Call __getwd_warn instead of __getwd_alias.
3756 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3757 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3758 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3759 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3760 __wcsnrtombs_chk_warn): New aliases with __warnattr.
3761 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3762 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3763 compile time detectable overflow is found.
3764 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
3765 to use __*_chk or not.
3766 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3767 in comparisons which function should be called and in __*_chk*
3768 arguments. Call __*_chk_warn instead of __*_chk if compile time
3769 detectable overflow is found.
3770 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3772 * debug/tst-chk1.c (do_test): Add a few more tests.
3774 2007-09-24 Ulrich Drepper <drepper@redhat.com>
3777 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3778 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3779 (_nl_unload_domain): Finalize conversions_lock.
3780 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3781 handling table of known conversions.
3783 2007-09-24 Jakub Jelinek <jakub@redhat.com>
3785 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3786 close_not_cancel_no_status instead of close.
3788 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
3791 * posix/regcomp.c (lookup_collation_sequence_value): Check that
3792 nrules != 0 for multibyte chars.
3794 2007-09-23 Ulrich Drepper <drepper@redhat.com>
3796 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3797 Provide better error message in case the type is unknown.
3800 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3801 * string/stratcliff.c: Make usable to test wide char functions.
3802 * wcsmbs/wcsatcliff.c: New file.
3803 * wcsmbs/Makefiel (tests): Add wcsatcliff.
3806 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3807 (distribute): Add mac-centraleurope.c.
3808 (gen-8bit-gap-modules): Add mac-centraleurope.
3809 * iconvdata/mac-centraleurope.c: New file.
3810 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3811 * iconvdata/TESTS: Likewise.
3812 * iconvdata/tst-tables.sh: Likewise.
3815 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3817 2007-09-21 Ulrich Drepper <drepper@redhat.com>
3819 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3820 from __x86_64_core_cache_size_half.
3821 (init_cacheinfo): Compute shared cache size for AMD processors with
3822 shared L3 correctly.
3823 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3825 Patch in large parts by Evandro Menezes.
3827 2007-09-19 Ulrich Drepper <drepper@redhat.com>
3829 * elf/dl-lookup.c (add_dependency): Handle failing memory
3830 allocation for dependency list. Remove unnecessary check.
3832 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3833 open/close when determining source addresses.
3835 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3836 sha512-crypt, and sha512.
3837 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3838 (distribute): Add sha256.h and sha512.h.
3839 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3840 and call the appropriate code.
3841 * crypt/sha256-crypt.c: New file.
3842 * crypt/sha256.c: New file.
3843 * crypt/sha256.h: New file.
3844 * crypt/sha256c-test.c: New file.
3845 * crypt/sha256test.c: New file.
3846 * crypt/sha512-crypt.c: New file.
3847 * crypt/sha512.c: New file.
3848 * crypt/sha512.h: New file.
3849 * crypt/sha512c-test.c: New file.
3850 * crypt/sha512test.c: New file.
3852 2007-09-19 Jakub Jelinek <jakub@redhat.com>
3854 * misc/bits/syslog.h (syslog): Remove extraneous argument from
3855 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
3858 2007-09-18 Jakub Jelinek <jakub@redhat.com>
3860 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
3861 %as in fscanf format strings.
3863 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
3864 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3865 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
3867 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
3870 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
3871 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
3872 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
3873 * elf/dl-sym.c (do_sym): Likewise.
3874 * include/link.h (struct link_map): Add l_serial field.
3875 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
3876 * elf/dl-lookup.c (add_dependency): Add flags argument.
3877 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
3878 flags, use THREAD_GSCOPE_RESET_FLAG before and
3879 THREAD_GSCOPE_SET_FLAG after
3880 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
3881 Don't dereference map until it has been found on some list.
3882 If map->l_serial changed, return -1.
3884 2007-09-17 Jakub Jelinek <jakub@redhat.com>
3886 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
3887 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
3888 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
3890 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
3891 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
3892 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
3893 add libc_hidden_proto.
3894 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3895 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3896 conformance requested.
3897 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
3898 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3899 conformance requested.
3900 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3901 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
3902 conformance requested.
3903 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
3904 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
3905 ISO C99 or POSIX conformance requested.
3906 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
3907 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
3908 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
3909 and __isoc99_vsscanf@@GLIBC_2.7.
3910 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
3911 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
3912 (tests): Add scanf14.
3913 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
3914 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
3915 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
3916 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
3917 CFLAGS-isoc99_scanf.c): Add $(exceptions).
3918 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
3919 from using internal headers.
3920 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
3921 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
3922 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
3923 and __isoc99_vswscanf@@GLIBC_2.7.
3924 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
3925 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
3926 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
3927 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
3928 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
3929 * stdio-common/isoc99_scanf.c: New file.
3930 * stdio-common/isoc99_vsscanf.c: New file.
3931 * stdio-common/isoc99_vscanf.c: New file.
3932 * stdio-common/isoc99_vfscanf.c: New file.
3933 * stdio-common/isoc99_fscanf.c: New file.
3934 * stdio-common/isoc99_sscanf.c: New file.
3935 * wcsmbs/isoc99_fwscanf.c: New file.
3936 * wcsmbs/isoc99_vswscanf.c: New file.
3937 * wcsmbs/isoc99_swscanf.c: New file.
3938 * wcsmbs/isoc99_wscanf.c: New file.
3939 * wcsmbs/isoc99_vwscanf.c: New file.
3940 * wcsmbs/isoc99_vfwscanf.c: New file.
3941 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
3942 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
3943 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
3944 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
3945 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
3946 * stdio-common/scanf14.c: New test.
3947 * stdio-common/scanf15.c: New test.
3948 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
3949 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
3950 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
3951 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
3952 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
3953 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
3954 __nldbl___isoc99_scanf@@GLIBC_2.7,
3955 __nldbl___isoc99_fscanf@@GLIBC_2.7,
3956 __nldbl___isoc99_sscanf@@GLIBC_2.7,
3957 __nldbl___isoc99_vscanf@@GLIBC_2.7,
3958 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
3959 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
3960 __nldbl___isoc99_wscanf@@GLIBC_2.7,
3961 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
3962 __nldbl___isoc99_swscanf@@GLIBC_2.7,
3963 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
3964 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
3965 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
3966 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
3967 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
3968 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
3969 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
3970 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
3971 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3972 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
3973 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
3974 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
3975 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
3976 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
3977 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
3979 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
3980 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
3981 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
3982 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
3983 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
3984 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
3985 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
3986 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
3987 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
3988 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
3989 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
3990 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
3992 * stdio-common/Makefile (tests): Add scanf13.
3994 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
3995 m modifier followed by l.
3996 (STRING_ARG): Add width argument.
3997 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
3998 <case L_('C')>: Handle %mlc and %mC.
3999 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4001 * stdio-common/scanf13.c: New test.
4003 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4004 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4006 2007-09-18 Ulrich Drepper <drepper@redhat.com>
4008 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4009 type and __THROW marker of splice, vmsplice, and tee.
4010 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4011 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4012 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4013 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4014 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4015 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4016 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4017 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4018 as cancellation points.
4020 2003-11-01 Daniel Jacobowitz <dan@debian.org>
4022 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4023 parse more than three parts of the version number.
4025 2007-09-15 Ulrich Drepper <drepper@redhat.com>
4027 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4028 modifier. Patch by Jakub Jelinek.
4030 2007-08-26 Jakub Jelinek <jakub@redhat.com>
4032 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4033 call_fallocate in misc subdir.
4034 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4035 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4036 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4037 instead of __fallocate64.
4038 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4040 2007-09-15 Jakub Jelinek <jakub@redhat.com>
4042 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4043 * rt/Makefile (headers): Add bits/mqueue2.h.
4044 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4045 optimizing with GCC and __va_arg_pack_len is defined.
4046 * rt/bits/mqueue2.h: New file.
4047 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4048 (mq_open): New strong_alias.
4049 (__mq_open_2): New function.
4050 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4051 (mq_open): New strong_alias.
4052 (__mq_open_2): New function.
4053 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4054 * Versions.def (librt): Add GLIBC_2.7 version.
4055 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4056 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4058 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4059 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4060 is defined rather than when not C++.
4061 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4062 __openat64_alias): New redirects.
4063 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4064 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4065 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4066 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4067 functions instead of function-like macros.
4069 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4071 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4072 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4073 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4075 2007-09-15 Mike Frysinger <vapier@gentoo.org>
4077 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4078 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4080 2007-09-14 Mike Frysinger <vapier@gentoo.org>
4082 * inet/tst-network.c: Increment ERRORS for failing tests.
4084 2007-09-07 Jakub Jelinek <jakub@redhat.com>
4086 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4087 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4088 implement as __extern_always_inline function.
4089 (vsyslog): Define as __extern_always_inline function unconditionally.
4090 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4091 When __va_arg_pack is defined, implement as __extern_always_inline
4093 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4094 __extern_always_inline functions unconditionally.
4095 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4096 bits/stdio2.h will be included.
4097 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4098 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4099 implement as __extern_always_inline functions.
4100 (vswprintf, vwprintf, vfwprintf): Define as
4101 __extern_always_inline functions unconditionally.
4102 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4104 2007-09-03 Jakub Jelinek <jakub@redhat.com>
4106 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4107 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4109 * include/features.h (__USE_EXTERN_INLINES): Define only when
4110 __extern_inline is defined.
4111 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4112 is defined instead of when not __cplusplus.
4113 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4114 is defined instead of when not __cplusplus.
4115 * socket/sys/socket.h: Include bits/socket2.h when
4116 __extern_always_inline is defined instead of when not __cplusplus.
4117 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4118 is defined instead of when not __cplusplus.
4119 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4120 is defined instead of when not __cplusplus.
4121 * string/string.h: Include bits/string3.h when __extern_always_inline
4122 is defined instead of when not __cplusplus.
4123 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4124 is defined instead of when not __cplusplus.
4125 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4126 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4128 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4129 defined __extern_always_inline instead of !defined __cplusplus.
4130 * libio/bits/stdio-ldbl.h: Likewise.
4131 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4132 * misc/bits/syslog.h (syslog): Don't define for C++.
4133 (vsyslog): Use __extern_always_inline function for C++ instead of
4135 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4136 whenever that macro is defined.
4137 (vprintf): Don't provide the inline for C++.
4138 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4139 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4140 define the macros for C++.
4141 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4142 __extern_always_inline functions for C++.
4143 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4144 stat64, lstat64, fstat64, fstatat64): Don't define if not
4145 __USE_EXTERN_INLINES.
4146 * wcsmbs/bits/wchar2.h: Fix #error message.
4147 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4148 (vswprintf, vwprintf, vfwprintf): Define using
4149 __extern_always_inline functions for C++.
4150 * string/bits/string3.h: Don't #undef macros if __cplusplus.
4151 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4152 strncpy, strcat, strncat): Define as __extern_always_inline
4153 functions instead of macros for C++.
4154 * math/bits/cmathcalls.h: Guard __extern_inline routines with
4155 defined __extern_inline.
4156 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4157 to __extern_inline whenever that macro is defined.
4158 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4159 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4160 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4161 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4162 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4163 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4164 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4165 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4166 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4167 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4168 prototypes. Only provide __extern_inline routines if
4169 __USE_EXTERN_INLINES.
4170 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4172 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4173 For now avoid some *printf tests in C++. Skip all testing
4174 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4176 * debug/tst-chk4.cc: New file.
4177 * debug/tst-chk5.cc: New file.
4178 * debug/tst-chk6.cc: New file.
4179 * debug/tst-lfschk4.cc: New file.
4180 * debug/tst-lfschk5.cc: New file.
4181 * debug/tst-lfschk6.cc: New file.
4182 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4184 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4185 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4186 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4188 2007-09-13 Ulrich Drepper <drepper@redhat.com>
4190 * po/cs.po: Update from translation team.
4192 2007-09-11 Roland McGrath <roland@redhat.com>
4194 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4197 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4199 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4201 2007-09-05 Roland McGrath <roland@redhat.com>
4203 * manual/signal.texi (Signaling Another Process): Typo fix.
4204 From Karl Berry <karl@freefriends.org>.
4206 2007-08-29 Ulrich Drepper <drepper@redhat.com>
4208 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4209 zero if not defined.
4210 (make_request): Recognize optimistic addresses and treat them like
4211 deprecated addresses.
4212 Reported by Neil Horman <nhorman@redhat.com>.
4214 2007-08-28 Ulrich Drepper <drepper@redhat.com>
4216 * nscd/connections.c (send_ro_fd): Also transfer file size.
4217 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4218 file size don't call fstat.
4220 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4221 ahead and map the file. This should always be correct and we can
4222 catch problems later.
4224 2007-08-28 Jakub Jelinek <jakub@redhat.com>
4226 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4228 (__fread_alias, __fread_unlocked_alias): New aliases.
4229 (fread): New extern inline.
4230 (fread_unlocked): Likewise. Undef macro before definition of
4231 the inline function.
4232 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4233 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4234 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4235 and __fread_unlocked_chk@@GLIBC_2.7.
4236 * debug/fread_chk.c: New file.
4237 * debug/fread_u_chk.c: New file.
4238 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4240 2007-08-27 Jakub Jelinek <jakub@redhat.com>
4242 * sysdeps/unix/sysv/linux/syscalls.list
4243 (personality): Change caller to EXTRA.
4245 2007-08-25 Ulrich Drepper <drepper@redhat.com>
4247 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4249 * iconvdata/iso-2022-cn.c (BODY): Likewise.
4251 * locale/programs/ld-collate.c (collate_output): Avoid warning if
4254 * Makerules: Use -p option with mkdir.
4256 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4257 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4258 (_xdr_directory_obj): Likewise.
4259 (xdr_entry_obj): Likewise.
4260 (xdr_group_obj): Likewise.
4261 (xdr_link_obj): Likewise.
4262 (xdr_table_obj): Likewise.
4263 (_xdr_nis_result): Likewise.
4264 (_xdr_ns_request): Likewise.
4265 (_xdr_ib_request): Likewise.
4266 (_xdr_nis_taglist): Likewise.
4267 (xdr_cback_data): Likewise.
4268 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4269 (xdr_ypresp_maplist): Likewise.
4271 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4273 * posix/regex_internal.h: Prevent some declarations and definitions
4274 to be seen when used in tests.
4276 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4277 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4279 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4281 * config.make.in (datarootdir): Add to shut up configure.
4283 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4284 associativity for fully-associative caches.
4286 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4287 requests. Fill on more associativity values for L2.
4288 Patch mostly by Evandro Menezes.
4290 2007-08-24 Ulrich Drepper <drepper@redhat.com>
4292 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4293 (_libc_vdso_platform_setup): Avoid using exported variable by using
4296 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4298 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4299 fallocate64 as EXTRA. It is not referenced if the symbol isn't
4302 2007-08-23 Ulrich Drepper <drepper@redhat.com>
4304 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4305 align stack for call if pltexit is to be used.
4308 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4309 align for function call in case pltexit has to be called later.
4311 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4312 implicit atomic operation when storing function pointer.
4313 (_dl_runtime_profile): Likewise.
4315 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4317 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4320 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4323 * string/strtok.c: Fix typo in comment.
4326 * debug/segfault.c: Fix typos in comments.
4329 * stdio-common/tempnam.c: Fix comment, it is not checked that
4330 TMPDIR points to a writable directory.
4333 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4334 memory allocated for the name server address.
4337 * nscd/connections.c (handle_request): Using sendfile always
4338 requires that mmap is used for the database.
4339 Patch by Petr Baudis <pasky@suse.cz>.
4342 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4343 suddenly has two or more addresses, ignore it and remove the old
4347 * resolv/res_hconf.c: Prepare for compiling outside libc.
4348 * nscd/res_hconf.c: New file.
4349 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4351 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4352 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4354 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4357 * debug/pcprofiledump.c: Turn on internationalization by calling
4358 setlocale. Patch mostly by Benno Schulenberg.
4361 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4363 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4364 * iconvdata/bug-iconv5.c: New file.
4366 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4369 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4370 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4371 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4372 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4373 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4374 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4375 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4376 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4378 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4381 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4382 lookup loop. Suggested by John Reiser.
4384 2007-08-21 Jakub Jelinek <jakub@redhat.com>
4386 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4388 2007-08-20 Ulrich Drepper <drepper@redhat.com>
4390 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4391 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4392 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4393 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4394 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4396 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4398 2007-08-18 Ulrich Drepper <drepper@redhat.com>
4400 * po/nl.po: Update from translation team.
4402 2007-08-16 Andreas Jaeger <aj@suse.de>
4404 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4405 Reported by Peter Festner <peter.festner@ewetel.net>.
4407 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4409 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4411 2007-08-16 Jakub Jelinek <jakub@redhat.com>
4413 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4414 to check for undefined symbols.
4416 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4417 If the syscall fails, set errno to the actual returned error number
4419 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4420 arguments are incorrect, set errno to EINVAL, if the syscall
4421 fails, set errno to the actual returned error number.
4423 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4424 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4426 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4427 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4429 (ASI_PNF, ASI_BLK_P): Don't define.
4430 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4431 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4433 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4434 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4437 2007-08-15 Jakub Jelinek <jakub@redhat.com>
4439 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4440 FE_UNDERFLOW on Niagara CPUs.
4442 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4445 2007-08-14 Jakub Jelinek <jakub@redhat.com>
4447 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4448 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4449 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4450 flush should be used or not inside of the function.
4451 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4453 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4454 __thread_start): Use HIDDEN_JUMPTARGET.
4455 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4456 __thread_start): Likewise.
4457 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4459 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4460 Add libc_hidden_proto.
4461 (STRTOF): Add libc_hidden_proto.
4462 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4463 (strtold_l, wcstold_l): Use them as second argument for
4466 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4468 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4470 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4472 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4474 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4476 * po/bg.po: New file. From the translation team.
4478 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4480 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4481 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4482 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4483 when each feature was introduced.
4485 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4486 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4487 (CHECK_HASH): New macro.
4488 (PREPARE_VERSION): Use it.
4490 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4491 prototype if not __ASSUME_PSELECT.
4492 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4493 prototype if not __ASSUME_PPOLL.
4495 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4497 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4498 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4501 2007-08-13 Ulrich Drepper <drepper@redhat.com>
4503 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4504 (_libc_vdso_platform_setup): If vDSO is not available point
4505 __vdso_gettimeofday to the vsyscall.
4506 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4507 __vdso_gettimeofday instead of vsyscall.
4509 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4511 * nscd/servicescache.c: Include kernel-features.h.
4512 * nscd/gai.c: Likewise.
4513 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4514 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4515 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4516 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4517 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4518 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4519 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4520 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4521 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4523 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4525 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4526 and _dl_get_origin defines anymore.
4528 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4529 Build fix for systems which might lack POSIX timer support.
4531 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4532 (_libc_vdso_platform_setup): Mangle function pointers before storing
4534 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4535 Demangle vdso pointer before use.
4536 (INTERNAL_VSYSCALL): Likewise.
4538 * elf/cache.c (primes): Mark as const.
4539 Noted by Roland McGrath.
4541 2007-08-01 Andreas Jaeger <aj@suse.de>
4542 Jakub Jelinek <jakub@redhat.com>
4544 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4545 (options): Add option.
4546 (parse_opt): Handle option.
4547 (manual_link): Adjust process_file caller. Call implicit_soname.
4548 (search_dir): Formatting. Use and populate auxiliary cache.
4549 (main): Load and save auxiliary cache.
4550 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
4551 stat64 from fstat64 to caller.
4552 (implicit_soname): New function.
4553 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4554 leave *soname as NULL.
4555 * elf/cache.c: Include libgen.h.
4556 (print_entry, print_cache, compare, save_cache, add_to_cache):
4557 Formatting and cleanups.
4558 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4559 aux_cache_file): New structures.
4560 (AUX_CACHEMAGIC): Define.
4561 (primes): New array.
4562 (aux_hash_size, aux_hash): New variables.
4563 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4564 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4565 load_aux_cache, save_aux_cache): New functions.
4566 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4567 (init_aux_cache, search_aux_cache, add_to_aux_cache,
4568 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4569 (process_file): Adjust prototype.
4571 2007-08-12 Jakub Jelinek <jakub@redhat.com>
4573 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4576 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4578 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4579 r_found_version structure as second parameter.
4580 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4581 (_dl_vdso_vsym): Change type of second parameter accordingly.
4582 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4583 (_libc_vdso_platform_setup): Adjust.
4584 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4585 (_libc_vdso_platform_setup): Likewise.
4587 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4588 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4589 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4590 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4591 * csu/libc-start.c: Pretty printing.
4592 Use VDSO_SETUP if defined.
4593 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4594 and let generic code call into _libc_vdso_platform_setup.
4595 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4596 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4597 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4598 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4599 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4601 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4602 (sysdep_rountines): Add dl-vdso.
4604 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4607 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4608 attribute_hidden to __vdso_gettimeofday prototype.
4610 2007-08-12 Roland McGrath <roland@redhat.com>
4612 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4613 From: Karl Berry <karl@freefriends.org>.
4615 2007-08-11 Ulrich Drepper <drepper@redhat.com>
4617 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4618 an atime update for the files we read.
4620 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4622 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4624 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
4627 * misc/Makefile (routines): Add mkostemp and mkostemp64.
4628 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4629 * misc/mkostemp.c: New file.
4630 * misc/mkostemp64.c: New file.
4631 * stdlib/stdlib.h: Declare the new functions.
4632 * sysdeps/posix/tempname.c: Add new parameter which is added to
4633 the flags for open. Remove __GT_BIGFILE handling.
4634 * stdio-common/tempname.c: Likewise.
4635 * include/stdio.h: Adjust __gen_tempname prototype.
4636 Renumber __GT_* constants.
4637 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4638 * misc/mkdtemp.c: Likewise.
4639 * misc/mkstemp.c: Likewise.
4640 * misc/mkstemp64.c: Likewise.
4641 * misc/mktemp.c: Likewise.
4642 * stdio-common/tempnam.c: Likewise.
4643 * stdio-common/tmpfile.c: Likewise.
4644 * stdio-common/tmpfile64.c: Likewise.
4645 * stdio-common/tmpnam.c: Likewise.
4646 * stdio-common/tmpnam_r.c: Likewise.
4648 2007-08-10 Roland McGrath <roland@frob.com>
4650 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4652 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4653 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4655 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4657 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4659 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4660 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4661 * nss/nss_files/files-have_o_cloexec.c: New file.
4663 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4666 2007-08-10 Jakub Jelinek <jakub@redhat.com>
4668 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4669 ___new_wcstold_l): New weak aliases.
4670 (strtold_l, wcstold_l): Use them as second argument for
4673 2007-08-09 Ulrich Drepper <drepper@redhat.com>
4675 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4676 register in test for error.
4678 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4679 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4681 * po/sv.po: Update from translation team.
4683 2007-08-06 Roland McGrath <roland@redhat.com>
4685 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4686 Remove __strto*_l inlines.
4687 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4688 * stdlib/strtod.c: Add libc_hidden_def.
4689 * stdlib/strtod_l.c: Likewise.
4690 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4691 for __new_strtold and __new_wcstold.
4692 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4694 * stdlib/strtol.c: Add libc_hidden_def.
4695 * stdlib/strtol_l.c: Likewise.
4696 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4699 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4701 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4702 * scripts/data/localplt-generic.data: ... here.
4703 * elf/Makefile (check-data): Get generic file if no other.
4704 ($(objpfx)check-localplt.out): Make target unconditional.
4706 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4709 2007-08-05 Ulrich Drepper <drepper@redhat.com>
4711 * po/zh_CN.po: Updated translation from translation team.
4713 2007-08-05 Jakub Jelinek <jakub@redhat.com>
4715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4716 Don't use CGOTSETUP and CGOTRESTORE macros.
4718 2007-08-04 Roland McGrath <roland@redhat.com>
4720 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4722 2007-08-04 Jakub Jelinek <jakub@redhat.com>
4724 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4725 __extension__ around the whole statement expression.
4727 2007-08-04 Ulrich Drepper <drepper@redhat.com>
4729 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4730 elements during initialization.
4732 * po/pl.po: Updated translation from translation team.
4733 * po/tr.po: Likewise.
4734 * po/nl.po: Likewise.
4736 2007-08-03 Ulrich Drepper <drepper@redhat.com>
4738 * rt/aio.h: Add __nonnull attributes.
4740 2007-08-03 Jakub Jelinek <jakub@redhat.com>
4742 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4743 * stdlib/Makefile (tests): Add tst-strtod5.
4744 (tst-strtod5-ENV): New.
4745 * stdlib/tst-strtod5.c: New file.
4747 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4749 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4752 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4755 2007-08-03 Jakub Jelinek <jakub@redhat.com>
4757 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4760 2007-08-02 Ulrich Drepper <drepper@redhat.com>
4762 * io/Makefile (aux): Add have_o_cloexec.
4763 * include/fcntl.h: Declare __have_o_cloexec.
4764 * io/have_o_cloexec.c: New file.
4765 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4766 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4767 fcntl call if not necessary.
4768 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4771 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4772 Avoid memset, add explicit initialization.
4773 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4774 to the end and change into zero-sized array.
4775 Move lock member to fill a hole on 64-bit platforms.
4777 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4779 * include/stdlib.h: Add __strto*_internal prototypes here.
4780 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4782 * include/wchar.h: Add __wcsto*_internal prototypes.
4783 * sysdeps/generic/inttypes.h: No need to protect the declaration
4784 of the __strto*_internal and __wcsto*_internal members here.
4786 * rt/mqueue.h: Change const to __const and add nonnull attributes.
4788 2007-08-02 Roland McGrath <roland@redhat.com>
4790 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4791 $(inst_bindir)/getconf if possible.
4793 * posix/Makefile ($(objpfx)getconf.speclist): New target.
4794 (generated): Add it.
4795 ($(inst_libexecdir)/getconf): Use it.
4797 2007-08-01 Ulrich Drepper <drepper@redhat.com>
4799 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4800 /proc is faster and sufficient. /sys is still needed for
4803 2007-08-01 Jakub Jelinek <jakub@redhat.com>
4805 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4806 syscall as __fallocate64.
4807 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4808 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4810 2007-07-30 Jakub Jelinek <jakub@redhat.com>
4812 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4815 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4816 if off_t is different rank from size_t.
4818 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4819 uw_frame_state_for): Avoid type punning warnings.
4820 * sysdeps/generic/unwind-dw2-fde-glibc.c
4821 (_Unwind_IteratePhdrCallback): Likewise.
4822 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4823 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4824 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4827 2007-07-31 Ulrich Drepper <drepper@redhat.com>
4829 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4830 total processors using sysfs.
4831 (__get_nprocs): Use sysfs to determine which processors are online.
4833 2007-07-31 Jakub Jelinek <jakub@redhat.com>
4835 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4836 syscall arguments count.
4838 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4840 2007-07-30 Roland McGrath <roland@redhat.com>
4842 * manual/libc.texinfo: Update copyrights, formatting magic, and
4843 @dircategory. From Karl Berry <karl@freefriends.org>.
4845 2007-07-29 Ulrich Drepper <drepper@redhat.com>
4848 * io/Makefile (headers): Add bits/fcntl2.h.
4850 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4852 (__CPU_EQUAL_S): Likewise.
4854 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
4855 (tests): Add tst-cpuset.
4856 * posix/sched_cpualloc.c: New file.
4857 * posix/sched_cpufree.c: New file.
4858 * posix/tst-cpuset.c: New file.
4859 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
4861 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
4862 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
4863 macros. Define CPU_*_S macros.
4865 2007-07-28 Ulrich Drepper <drepper@redhat.com>
4867 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
4871 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
4872 #.0g and value rounded to 1.0.
4873 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
4875 2007-07-26 Jakub Jelinek <jakub@redhat.com>
4877 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
4878 for int_frac_digits and frac_digits.
4880 * login/logout.c (logout): Avoid aliasing violation.
4881 * login/logwtmp.c (logwtmp): Likewise.
4883 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
4885 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
4887 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
4889 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
4891 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
4894 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
4896 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
4898 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
4899 char * to avoid warning.
4900 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
4902 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
4904 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
4905 allocate_arrays): Cast second argument to charmap_find_symbol
4906 to char * to avoid warnings.
4908 * locale/programs/repertoire.c (repertoire_new_char): Change
4909 from_nr, to_nr and cnt to unsigned long, adjust printf format
4912 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
4913 Cast second argument to new_element to char * to avoid warnings.
4915 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
4917 * intl/gettextP.h (struct loaded_domain): Change plural to const
4918 struct expression *.
4919 * intl/plural-eval.c (plural_eval): Change first argument to
4920 const struct expression *.
4921 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
4922 argument to const struct expression **.
4923 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
4925 * intl/loadmsgcat (_nl_unload_domain): Cast away const
4926 in call to __gettext_free_exp.
4928 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
4929 unitialized wstring/wpattern var warnings.
4931 * posix/runtests.c (struct a_test): Make data field const char *.
4933 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
4934 vars if not LDBL_MANT_DIG >= 106.
4936 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
4938 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
4939 __find_specmb to avoid warning.
4941 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
4943 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
4946 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
4949 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
4950 tv var when it will be actually used.
4952 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
4955 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
4956 char array resp. pointer.
4957 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
4959 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
4960 to const unsigned char **.
4961 (ucs4_to_cns11643): Change second argument to unsigned char *.
4962 * iconvdata/euc-tw.c (BODY): Change endp type to
4963 const unsigned char *.
4964 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
4966 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
4967 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
4968 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
4969 types to unsigned char pointers/arrays instead of char.
4970 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
4972 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
4973 * iconvdata/jis0212.h: Include assert.h.
4974 (ucs4_to_jisx0212): Change second argument to unsigned char *.
4975 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
4976 of trying to handle that.
4977 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
4979 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
4980 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
4981 two dimensional const unsigned char arrays.
4982 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
4983 Initialize endp to inptr to shut up a warning.
4985 2007-07-20 Jakub Jelinek <jakub@redhat.com>
4988 * time/strptime_l.c (__strptime_internal): Silently ignore
4989 strftime modifiers and field width in recursive calls.
4991 * include/time.h (enum ptime_locale_status): Remove.
4992 (__strptime_internal): Remove decided and era_cnt arguments,
4993 add statep argument.
4994 * time/strptime_l.c (__strptime_internal): Remove decided
4995 and era_cnt arguments, add statep argument. Don't recompute
4996 any fields in recursive calls, only update caller's tm
4997 and state, if recursive call fails, don't change tm nor
4999 (get_alt_number): Adjust.
5000 (recursive): Adjust caller.
5001 (strptime): Likewise.
5002 * time/strptime.c (strptime): Likewise.
5004 2007-07-19 Jakub Jelinek <jakub@redhat.com>
5006 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5007 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5008 if from and to charsets are the same.
5009 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5010 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5011 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5013 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5015 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5016 Don't define wint_t when __need_mbstate_t unless it
5018 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5019 in the typedef if possible.
5020 * wctype/wctype.h (wint_t): Define by including
5021 wchar.h with __need_wint_t instead of including stddef.h
5022 with __need_wint_t and as fallback definining it ourselves.
5023 * iconv/gconv.h (__need_wint_t): Define before including
5025 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5026 or _GLIBCPP_USE_WCHAR_T.
5027 (__need_wchar_t): Don't define
5028 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5029 (__need_wint_t): Don't define before including stddef.h,
5030 define before including wchar.h only if _LIBC or
5031 _GLIBCPP_USE_WCHAR_T.
5032 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5033 * sysdeps/mach/hurd/_G_config.h: Likewise.
5034 * sysdeps/generic/_G_config.h: Likewise.
5035 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5036 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5037 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5038 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5040 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5042 * sysdeps/posix/posix_fallocate64.c: Undefine
5043 __posix_fallocate64_l64 before alias handling.
5044 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5045 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5046 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5047 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5049 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5051 2007-07-23 Jakub Jelinek <jakub@redhat.com>
5053 * locale/programs/ld-collate.c (atwc): New variable.
5054 (add_to_tablewc): New toplevel function, moved from collate_output.
5055 (collate_output): Remove add_to_tablewc nested function.
5057 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5058 (name_insert): New function.
5059 (write_output): Remove hash_table and hash_size vars and name_insert
5062 2007-07-24 Roland McGrath <roland@redhat.com>
5064 * Makerules (install-others-programs-nosubdir): New target.
5065 (install-no-libc.a-nosubdir): Depend on it.
5067 * iconv/Makefile (install-others-programs): Set this instead of
5069 * login/Makefile (install-others-programs): Likewise.
5070 * posix/Makefile (install-others-programs): Likewise.
5072 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5075 2007-07-23 Ulrich Drepper <drepper@redhat.com>
5077 * io/Makefile (tests): Add tst-posix_fallocate.
5078 * io/tst-posix_fallocate.c: New file.
5080 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5083 2007-07-22 Roland McGrath <roland@frob.com>
5085 * hurd/getdport.c: Add missing copyright year update.
5087 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5088 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5090 2007-07-22 Ulrich Drepper <drepper@redhat.com>
5092 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5094 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5095 O_CLOEXEC is needed.
5096 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5097 Avoid additional fcntl to set O_CLOEXEC if not needed.
5098 * nis/nss_compat/compat-initgroups.c: Likewise.
5099 * nis/nss_compat/compat-pwd.c: Likewise.
5100 * nis/nss_compat/compat-spwd.c: Likewise.
5102 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5105 * manual/errno.texi: Change ECANCELED value to 119.
5108 * mach/lock-intern.h: Include <sys/cdefs.h>.
5111 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5115 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5118 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5120 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
5122 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5124 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5126 2007-07-21 Ulrich Drepper <drepper@redhat.com>
5128 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5129 descriptor received from nscd.
5131 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5133 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5134 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5135 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5136 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5137 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5138 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5140 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5143 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5146 * login/forkpty.c (forkpty): Close master and slave fds on
5147 fork failure. Patch by
5148 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5150 2007-07-18 Jakub Jelinek <jakub@redhat.com>
5152 * include/features.h (__USE_ISOC95): New define.
5153 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5154 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5155 for -std=iso9899:199409.
5156 * CONFORMANCE: Remove comments about unsupported AMD1.
5158 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5160 * sysdeps/ia64/sched_cpucount.c: New file.
5161 * sysdeps/powerpc/sched_cpucount.c: New file.
5163 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5164 __BEGIN_DECLS/__END_DECLS around the prototype.
5165 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
5166 pointer to const cpu_set_t.
5168 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5169 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5170 __need_size_t and include stddef.h.
5171 * sysvipc/sys/msg.h: Likewise.
5172 * posix/sched.h: Likewise.
5173 * hurd/hurd/signal.h (__need_size_t): Define.
5175 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5176 neither does signal.h in pedantic ISO C namespaces. stdio.h
5177 no longer defines wint_t or wchar_t.
5179 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5180 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5181 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5182 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5183 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5184 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5185 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5186 * debug/printf_chk.c (__printf_chk): Likewise.
5187 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5188 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5190 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5193 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5194 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5196 2007-07-16 Jakub Jelinek <jakub@redhat.com>
5199 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5200 * malloc/malloc.h (realloc): Likewise.
5202 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5203 if one of proc_file_chain streams has that fileno.
5204 * stdio-common/Makefile (tests): Add tst-popen2.
5205 * stdio-common/tst-popen2.c: New test.
5207 2007-07-14 Jakub Jelinek <jakub@redhat.com>
5209 * elf/ldconfig.c: Allow GPLv2 or any later version.
5210 * elf/readlib.c: Likewise.
5211 * elf/chroot_canon.c: Likewise.
5212 * elf/cache.c: Likewise.
5213 * nscd/mem.c: Likewise.
5214 * nscd/getpwuid_r.c: Likewise.
5215 * nscd/grpcache.c: Likewise.
5216 * nscd/aicache.c: Likewise.
5217 * nscd/getsrvbynm_r.c: Likewise.
5218 * nscd/nscd.c: Likewise.
5219 * nscd/servicescache.c: Likewise.
5220 * nscd/getsrvbypt_r.c: Likewise.
5221 * nscd/initgrcache.c: Likewise.
5222 * nscd/gethstbyad_r.c: Likewise.
5223 * nscd/gethstbynm2_r.c: Likewise.
5224 * nscd/getgrnam_r.c: Likewise.
5225 * nscd/nscd_setup_thread.c: Likewise.
5226 * nscd/getpwnam_r.c: Likewise.
5227 * nscd/gai.c: Likewise.
5228 * nscd/connections.c: Likewise.
5229 * nscd/dbg_log.c: Likewise.
5230 * nscd/cache.c: Likewise.
5231 * nscd/hstcache.c: Likewise.
5232 * nscd/nscd_conf.c: Likewise.
5233 * nscd/getgrgid_r.c: Likewise.
5234 * nscd/pwdcache.c: Likewise.
5235 * catgets/gencat.c: Likewise.
5236 * locale/programs/linereader.h: Likewise.
5237 * locale/programs/locarchive.c: Likewise.
5238 * locale/programs/ld-paper.c: Likewise.
5239 * locale/programs/locfile-kw.h: Likewise.
5240 * locale/programs/ld-address.c: Likewise.
5241 * locale/programs/xmalloc.c: Likewise.
5242 * locale/programs/ld-time.c: Likewise.
5243 * locale/programs/localedef.c: Likewise.
5244 * locale/programs/simple-hash.c: Likewise.
5245 * locale/programs/xstrdup.c: Likewise.
5246 * locale/programs/ld-numeric.c: Likewise.
5247 * locale/programs/locfile-kw.gperf: Likewise.
5248 * locale/programs/ld-collate.c: Likewise.
5249 * locale/programs/charmap-kw.gperf: Likewise.
5250 * locale/programs/charmap.h: Likewise.
5251 * locale/programs/charmap-kw.h: Likewise.
5252 * locale/programs/config.h: Likewise.
5253 * locale/programs/locfile.c: Likewise.
5254 * locale/programs/ld-ctype.c: Likewise.
5255 * locale/programs/charmap.c: Likewise.
5256 * locale/programs/ld-messages.c: Likewise.
5257 * locale/programs/repertoire.h: Likewise.
5258 * locale/programs/locale.c: Likewise.
5259 * locale/programs/ld-name.c: Likewise.
5260 * locale/programs/linereader.c: Likewise.
5261 * locale/programs/locfile.h: Likewise.
5262 * locale/programs/3level.h: Likewise.
5263 * locale/programs/ld-monetary.c: Likewise.
5264 * locale/programs/ld-measurement.c: Likewise.
5265 * locale/programs/charmap-dir.c: Likewise.
5266 * locale/programs/ld-identification.c: Likewise.
5267 * locale/programs/localedef.h: Likewise.
5268 * locale/programs/charmap-dir.h: Likewise.
5269 * locale/programs/repertoire.c: Likewise.
5270 * locale/programs/simple-hash.h: Likewise.
5271 * locale/programs/ld-telephone.c: Likewise.
5272 * locale/programs/locale-spec.c: Likewise.
5273 * locale/programs/locfile-token.h: Likewise.
5274 * posix/getconf.c: Likewise.
5275 * iconv/dummy-repertoire.c: Likewise.
5276 * iconv/iconv_charmap.c: Likewise.
5277 * iconv/iconvconfig.c: Likewise.
5278 * iconv/iconv_prog.c: Likewise.
5279 * malloc/memusagestat.c: Likewise.
5280 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5282 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5284 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5285 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5286 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5287 check for the first argument.
5289 2007-07-12 Jakub Jelinek <jakub@redhat.com>
5292 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5293 (__tgmath_real_type): Fix if expr is const int or other const
5294 qualified integral type.
5295 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5296 expressions and handle const qualified arguments.
5297 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5298 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5299 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5300 statement expressions.
5301 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5302 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5303 (__TGMATH_UNARY_IMAG): Define.
5304 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5305 * math/Makefile (tests): Add test-tgmath2.
5306 (CFLAGS-test-tgmath2.c): Add.
5307 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5308 count_cfloat, count_cldouble): New variables.
5310 (main): Check number of complex calls as well.
5311 (F(compile_test)): Add complex tests and tests with const qualified
5313 (y, z, ccount): Define.
5314 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5315 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5316 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5317 F(cproj)): New functions.
5318 * math/test-tgmath2.c: New test.
5320 2007-07-11 Jakub Jelinek <jakub@redhat.com>
5323 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5324 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5326 * dlfcn/Makefile (distribute): Add glreflib3.c.
5327 (module-names): Add glreflib3.
5328 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5330 (LDFLAGS_glreflib3.so): New.
5331 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5333 * dlfcn/glreflib3.c: New file.
5335 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5336 returned -1, return NULL.
5337 * intl/explodename.c (_nl_explode_name): Return -1 if
5338 _nl_normalize_codeset failed.
5340 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5342 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5343 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5344 and avoid branch misspredicts for > 31 bytes memset case.
5345 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5346 Remove toc ref to __cache_line_size.
5348 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5349 to get ISA-V2.0 branch hints.
5350 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5351 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5352 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5353 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5354 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5355 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5356 Remove toc ref to __cache_line_size.
5358 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5359 Include math_ldbl_opt.h.
5361 2007-07-10 Ulrich Drepper <drepper@redhat.com>
5364 * time/strptime_l.c (__strptime_internal): Implement greedy
5365 matching of weekday and month names.
5367 2007-07-09 Roland McGrath <roland@redhat.com>
5369 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5370 (ELF_NOTE_ABI): Use it.
5371 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5373 2007-07-09 Ulrich Drepper <drepper@redhat.com>
5375 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5376 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5378 2007-07-07 Ulrich Drepper <drepper@redhat.com>
5381 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5382 in loop to look for conversion specifier to avoid testing of
5384 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5385 * stdio-common/bug18.c: New file.
5386 * stdio-common/bug18a.c: New file.
5387 * stdio-common/bug19.c: New file.
5388 * stdio-common/bug19a.c: New file.
5390 2007-07-05 Mike Frysinger <vapier@gentoo.org>
5392 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5395 2007-07-01 Jakub Jelinek <jakub@redhat.com>
5397 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5398 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5399 Return NULL if mmap failed instead of asserting it does not.
5400 (calloc): Check for integer overflow.
5402 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5405 2007-07-03 Jakub Jelinek <jakub@redhat.com>
5408 * nis/nss-default.c: Include errno.h.
5409 (init): Preserve errno.
5411 2007-07-02 Ulrich Drepper <drepper@redhat.com>
5413 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5415 2007-06-30 Ulrich Drepper <drepper@redhat.com>
5417 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5419 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5421 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5423 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5425 * sysdeps/s390/dl-procinfo.c: New file.
5426 * sysdeps/s390/dl-procinfo.h: New file.
5427 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5429 2007-06-29 Jakub Jelinek <jakub@redhat.com>
5431 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5432 in PT_NOTE segments with multiple notes.
5433 * elf/readelflib.c (process_elf_file): Likewise.
5435 2007-06-22 Ulrich Drepper <drepper@redhat.com>
5437 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5440 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5442 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5444 2007-06-13 Jakub Jelinek <jakub@redhat.com>
5446 * include/link.h: Don't include rtld-lowlevel.h.
5447 (struct link_map): Remove l_scope_lock.
5448 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5449 (_dl_scope_free_list): New field (variable) in _rtld_global.
5450 (DL_LOOKUP_SCOPE_LOCK): Remove.
5451 (_dl_scope_free): New prototype.
5452 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5453 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5454 (_dl_profile_fixup): Likewise.
5455 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5456 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5457 THREAD_GSCOPE_RESET_FLAG around it.
5458 * elf/dl-close.c (_dl_close_worker): Don't use
5459 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5460 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5461 scopes were queued or if l_scope_mem has been abandoned.
5462 * elf/dl-open.c (_dl_scope_free): New function.
5463 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5464 * elf/dl-support.c (_dl_scope_free_list): New variable.
5465 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5466 Remove DL_LOOKUP_SCOPE_LOCK handling.
5467 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5469 * elf/dl-object.c (_dl_new_object): Don't use
5470 __rtld_mrlock_initialize.
5472 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5474 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5476 (rtld_global_ro): Likewise.
5478 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5480 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5481 Move PT_LOAD checking to...
5482 (_dl_addr_inside_object): ... here, new function.
5483 * elf/dl-sym.c (do_sym): If not l_contiguous,
5484 call _dl_addr_inside_object.
5485 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5486 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5487 * elf/dl-open.c (dl_open_worker): Likewise.
5488 (_dl_addr_inside_object): New function if IS_IN_rtld.
5489 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5490 holes are present or are PROT_NONE protected.
5491 * include/link.h (struct link_map): Add l_contiguous field.
5492 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5494 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5495 Tomas Janousek <tjanouse@redhat.com>
5496 Ulrich Drepper <drepper@redhat.com>
5499 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5500 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5502 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5503 unused member a bitmap.
5504 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5505 servers are configured.
5507 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5509 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5511 2007-06-17 Andreas Schwab <schwab@suse.de>
5513 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5515 2007-06-16 Andreas Jaeger <aj@suse.de>
5518 * sysdeps/unix/sysv/linux/sys/ptrace.h
5519 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5520 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5521 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5522 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5523 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5525 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5526 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5527 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5528 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5530 2007-06-16 Ulrich Drepper <drepper@redhat.com>
5533 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5534 determining whether there are IPv4/IPv6 addresses, ignore loopback
5537 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5539 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5540 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5541 as the return type. Change type of "r" variable to CMPtype.
5542 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5543 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5544 * soft-fp/gedf2.c (__gedf2): Likewise.
5545 * soft-fp/gesf2.c (__gesf2): Likewise.
5546 * soft-fp/getf2.c (__getf2): Likewise.
5547 * soft-fp/ledf2.c (__ledf2): Likewise.
5548 * soft-fp/lesf2.c (__lesf2): Likewise.
5549 * soft-fp/letf2.c (__letf2): Likewise.
5550 * soft-fp/unorddf2 (__unorddf2): Likewise.
5551 * soft-fp/unordsf2 (__unordsf2): Likewise.
5552 * soft-fp/unordtf2 (__unordtf2): Likewise.
5554 2007-06-09 Ulrich Drepper <drepper@redhat.com>
5556 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5557 make sure gcc doesn't mess around with this.
5559 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5561 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5563 2007-06-08 Jakub Jelinek <jakub@redhat.com>
5565 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5566 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5567 at most once per _dl_close_worker.
5569 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5571 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5572 __sched_cpucount as const.
5573 * posix/sched_cpucount.c: Adjust.
5575 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5576 instruction for counting bits.
5577 * sysdeps/x86_64/sched_cpucount.c: New file.
5579 2007-06-07 Ulrich Drepper <drepper@redhat.com>
5581 * configure.in: Avoid variable named BASH.
5582 * config.make.in: Likewise.
5583 Patch in part by Mike Frysinger.
5585 2007-06-06 Jakub Jelinek <jakub@redhat.com>
5588 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5589 pseudo-zeros as zero.
5590 * sysdeps/x86_64/ldbl2mpn.c: New file.
5591 * sysdeps/ia64/ldbl2mpn.c: New file.
5593 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5595 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5596 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5597 Remove unreachable code at the end.
5599 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5601 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5602 ldbl-128ibm in comment.
5603 (fpclassifyl): Correct classification of denormals.
5604 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5605 return value for MIN denormal. Rewrite using long double math too
5606 correctly handle denormals and canonicalize the results.
5608 2007-06-05 Jakub Jelinek <jakub@redhat.com>
5610 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5611 (__mpn_construct_long_double): Fix conversion where result ought
5612 to be smaller than __LDBL_MIN__, or the low double should be
5613 denormal. Fix decision where to negate low double - honor round
5615 * stdio-common/tst-sprintf2.c: Include string.h.
5616 (COMPARE_LDBL): Define.
5617 (TEST): Also test whether a string hexadecimal float representation
5618 can be parsed back to the number.
5619 (main): Add a couple of further tests.
5621 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5623 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5624 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5625 is non-zero, but smaller than 2 * __DBL_MIN__.
5626 * stdio-common/tst-sprintf2.c: New test.
5627 * stdio-common/Makefile (tests): Add tst-sprintf2.
5629 * math/test-misc.c (main): Don't run last batch of tests with
5630 IBM long double format.
5632 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5634 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5635 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5636 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5637 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5638 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5639 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5640 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5641 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5642 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5643 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5644 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5645 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5649 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5658 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5667 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5669 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5670 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5671 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5672 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5673 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5674 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5675 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5676 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5678 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5680 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5681 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5682 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5683 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5684 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5685 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5686 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5687 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5689 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5691 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5692 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5693 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5694 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5696 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5698 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5699 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5701 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5703 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5704 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5705 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5706 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5708 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5710 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5711 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5713 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5715 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5716 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5718 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5719 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5720 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5721 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5723 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5725 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5726 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5727 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5728 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5730 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5732 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5733 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5734 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5735 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5736 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5737 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5739 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5741 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5742 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5743 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5744 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5746 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5748 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5749 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5750 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5751 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5752 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5753 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5754 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5755 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5756 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5757 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5758 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5759 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5760 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5761 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5762 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5763 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5765 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5767 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5768 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5770 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5772 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5773 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5775 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5777 * sysdeps/powerpc/powerpc32/970/Implies: New file.
5778 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5779 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5780 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5781 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5782 * sysdeps/powerpc/powerpc64/970/Implies: New file.
5783 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5784 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5785 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5786 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5788 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5790 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5792 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
5794 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5795 branch miss-predicts. Ensure that cache line crossing does not impact
5798 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
5800 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5801 "../../powerpc32/power4/memcopy.h".
5802 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5803 "../../powerpc32/power4/wordcopy.c".
5805 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5807 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5808 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5809 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5810 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5811 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5812 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5814 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
5816 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5818 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5820 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5821 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5822 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5823 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5824 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5825 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5826 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5827 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5829 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
5831 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5833 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5835 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5836 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5837 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5838 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5839 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5840 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5841 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5843 2007-05-29 Roland McGrath <roland@redhat.com>
5845 * po/Makefile (po-sed-cmd): New variable.
5846 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5848 2007-05-29 Ulrich Drepper <drepper@redhat.com>
5850 * crypt/md5-crypt.c: Fix comment.
5852 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5853 of crashing. When this is the case or if the reply is malformed,
5854 don't try to close the new file descriptor since it does not
5856 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
5858 2007-05-28 Jakub Jelinek <jakub@redhat.com>
5860 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
5861 if __NR_utimensat is not defined.
5863 2007-05-26 Ulrich Drepper <drepper@redhat.com>
5865 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
5867 2007-05-25 Jakub Jelinek <jakub@redhat.com>
5869 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
5870 (open): Fix comment typos. Don't call __open_2 if flags
5871 is a compile time constant without O_CREAT.
5872 (__open64_2): Add nonnull attribute.
5873 (open64): Fix comment typos. Don't call __open64_2 if flags
5874 is a compile time constant without O_CREAT.
5875 (__openat_2): Add nonnull attribute, fix nonnull attribute
5877 (openat): Fix comment typos. Don't call __openat_2 if flags
5878 is a compile time constant without O_CREAT.
5879 (__openat64_2): Add nonnull attribute, fix nonnull attribute
5881 (openat64): Fix comment typos. Don't call __openat64_2 if flags
5882 is a compile time constant without O_CREAT.
5884 2007-05-24 Ulrich Drepper <drepper@redhat.com>
5886 * Makerules (sysd-rules): Define PTW for ptw-* files.
5887 * Versions: Define GLIBC_2.7 for libc.
5888 * include/stdio.h: Declare __fortify_fail.
5889 * debug/fortify_fail.c: New file.
5890 * debug/Makefile (routines): Add fortify_fail.
5891 * debug/chk_fail.c: Use __fortify_fail.
5892 * debug/stack_chk_fail.c: Likewise.
5893 * io/Versions: Export __open_2, __open64_2, __openat_2, and
5894 __openat64_2 for GLIBC_2.7.
5895 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
5896 * io/open.c: Define *_2 variant of function which checks for O_CREAT
5897 and fails if necessary.
5898 * io/open64.c: Likewise.
5899 * io/openat.c: Likewise.
5900 * io/openat64.c: Likewise.
5901 * sysdeps/unix/sysv/linux/open64.c: Likewise.
5902 * sysdeps/unix/sysv/linux/openat.c: Likewise.
5903 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
5904 * io/bits/fcntl2.h: New file.
5905 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
5907 * include/bits/fcntl2.h: New file.
5908 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5910 * sysdeps/unix/sysv/linux/open_2.c: New file.
5912 2007-05-21 Ulrich Drepper <drepper@redhat.com>
5914 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
5915 as second parameter to handle_intel.
5917 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
5920 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
5922 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
5923 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
5925 * sysdeps/x86_64/memcpy.S: Complete rewrite.
5926 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
5927 Patch by Evandro Menezes <evandro.menezes@amd.com>.
5929 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
5931 2007-05-21 Jakub Jelinek <jakub@redhat.com>
5934 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
5935 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
5936 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
5938 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
5941 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
5942 reinitialize workend at the start of each do_positional format spec
5943 loop, free workstart before do_positional loops.
5944 (printf_unknown): Fix size of work_buffer.
5945 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
5947 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
5948 (public_sET_STATe): If ms->version < 3, put all chunks into
5949 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
5952 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
5953 * malloc/hooks.c: Likewise.
5954 * malloc/arena.c: Likewise.
5955 * malloc/malloc.c (do_check_malloc_state): Don't assert
5956 n_mmaps is not greater than n_mmaps_max. This removes the need
5957 for the previous change.
5959 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
5962 2007-05-19 Ulrich Drepper <drepper@redhat.com>
5964 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
5965 Define for kernel >= 2.6.22.
5967 2007-05-18 Ulrich Drepper <drepper@redhat.com>
5969 * elf/dl-close.c (_dl_close_worker): When removing object from
5970 global scope, wait for all lookups to finish afterwards.
5971 * elf/dl-open.c (add_to_global): When global scope array must
5972 grow, allocate a new one and free old array only after all
5974 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
5975 (_dl_lookup_symbol_x): Likewise.
5976 * elf/dl-support.c: Define _dl_wait_lookup_done.
5977 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
5978 _dl_wait_lookup_done.
5980 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
5981 not overlapping with arena.
5983 * malloc/mcheck.c (reallochook): If size==0, free the block.
5985 * rt/tst-shm.c: Use fstat64 instead of fstat.
5987 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
5988 __NR_sync_file_range is not defined.
5990 2007-05-17 Ulrich Drepper <drepper@redhat.com>
5992 Dummy files to prevent stub versions from being used.
5993 * sysdeps/x86_64/fpu/k_cosl.c: New file.
5994 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
5995 * sysdeps/x86_64/fpu/k_sinl.c: New file.
5996 * sysdeps/x86_64/fpu/k_tanl.c: New file.
5998 * version.h (VERSION): Set to 2.6.90.
6000 2007-05-14 Ulrich Drepper <drepper@redhat.com>
6002 * version.h (VERSION): Define to 2.6.
6003 * include/features.h (__GLIBC_MINOR__): Define to 6.
6005 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6007 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6010 2007-05-13 Ulrich Drepper <drepper@redhat.com>
6012 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6013 number of mmaps. n_mmaps_max is the target.
6014 * malloc/hooks.c: Likewise.
6015 * malloc/arena.c: Likewise.
6017 2007-05-12 Andreas Jaeger <aj@suse.de>
6019 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6022 2007-05-11 Ulrich Drepper <drepper@redhat.com>
6024 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6025 adding new variables.
6027 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6028 optimize. Completely extend global scope array before making the
6029 new entries visible.
6031 2007-05-10 Ulrich Drepper <drepper@redhat.com>
6033 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6034 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6037 * include/link.h: Move l_version and l_nversion members around to
6040 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6042 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6043 (__sched_setaffinity_new): If syscall was successful and
6044 RESET_VGETCPU_CACHE is defined, use it before returning.
6045 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6047 * io/sys/stat.h: Make sure struct timespec is defined for
6050 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6052 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6053 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6054 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6055 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6056 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6057 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6058 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6059 * io/sys/stat.h: Declare utimensat, futimens.
6060 * io/utimensat.c: New file.
6061 * io/futimens.c: New file.
6062 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6063 * sysdeps/unix/sysv/linux/futimens.c: New file.
6064 * io/Makefile (routines): Add utimensat, futimens.
6065 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6066 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6067 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6070 * include/sys/cdefs.h: Redefine __nonnull so that test for
6071 incorrect parameters in the libc code itself are not omitted.
6073 2007-05-09 Jakub Jelinek <jakub@redhat.com>
6075 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6076 exception in addition to inexact when asked to raise only FE_INEXACT.
6079 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6082 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6085 * string/strfry.c (strfry): Make result more random.
6087 2007-05-07 Richard Henderson <rth@redhat.com>
6089 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6090 if __NO_LONG_DOUBLE_MATH.
6091 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6092 available in the compiler, add .arch directive to the assembly.
6094 2007-05-07 Jakub Jelinek <jakub@redhat.com>
6096 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6097 compat_symbol to GLIBC_2_1.
6098 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6099 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6100 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6101 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6102 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6103 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6104 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6106 (__isnanl): New compat_symbol.
6108 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6109 Jakub Jelinek <jakub@redhat.com>
6111 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6112 (new_heap): Initialize mprotect_size.
6113 (grow_heap): When growing, only mprotect from mprotect_size till
6114 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
6115 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6117 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
6118 Peter Bergner <bergner@us.ibm.com>
6120 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6121 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
6122 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6123 * sysdeps/powerpc/fpu/fe_mask.c: New file.
6124 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6125 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6126 Call __fe_mask_env() if all FP exceptions disabled.
6127 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6128 from old FPSCR to new fenv to propagate DFP rounding modes.
6129 Call __fe_mask_env() if FP exceptions previously enabled.
6130 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6131 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6132 transitioning from all exceptions disabled to any exception enabled
6134 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6135 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6136 when transitioning from all exceptions disabled to any exception
6137 enabled or visa versa.
6138 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6145 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6148 * posix/unistd.h: Remove __THROW from fdatasync.
6150 2007-05-06 Mike Frysinger <vapier@gentoo.org>
6153 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6155 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6157 * stdio-common/vfprintf.c (process_string_arg): Optimize
6158 ridiculous precision in wide char code printing multi-byte string.
6159 Reported by Jim Meyering <jim@meyering.net>.
6162 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6163 boundaries to work around systems with overlapping binary loading.
6164 Based on a patch by Suzuki <suzuki@in.ibm.com>.
6166 2007-05-04 Ulrich Drepper <drepper@redhat.com>
6168 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6169 __mbsnrtowcs after last change.
6171 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6172 (get_ident): Likewise.
6174 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6176 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6177 with setting the sticky bit.
6178 * math/test-misc.c (main): Add more truncation tests.
6180 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
6182 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6183 double in the function declaration.
6184 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6185 double in the function declaration.
6186 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6187 float in the function declaration.
6188 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6189 float in the function declaration.
6191 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6192 denormal operands. Do not generate FP_EX_DENORM exception.
6193 (FP_UNPACK_RAW_EP): Ditto.
6194 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6195 undefined _FP_UNPACK_RAW_E.
6196 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6197 undefined _FP_UNPACK_RAW_EP.
6198 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6199 undefined _FP_PACK_RAW_E.
6200 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6201 undefined _FP_PACK_RAW_EP.
6203 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6205 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6208 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
6209 Jakub Jelinek <jakub@redhat.com>
6211 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6212 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
6214 * soft-fp/op-common.h (FP_TRUNC): Ditto.
6216 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6218 * math/test-misc.c (main): Add tests for rounding long double
6219 values close to smallest double denormalized value to double.
6221 2007-04-30 Joseph Myers <joseph@codesourcery.com>
6223 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6224 condition for truncating to 0. Set sticky bit for such
6227 2007-05-02 Jakub Jelinek <jakub@redhat.com>
6229 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6230 fixed length array for ignore.
6232 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6235 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6236 stack for large precisions.
6237 * stdio-common/test-vfprintf.c (main): Add test for large
6240 2007-04-30 Jakub Jelinek <jakub@redhat.com>
6242 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6244 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6247 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6248 account in the size check.
6249 * resolv/tst-inet_ntop.c: New test.
6250 * resolv/Makefile (tests): Add tst-inet_ntop.
6252 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6253 Jakub Jelinek <jakub@redhat.com>
6256 * malloc/malloc.c: Keep separate list for first blocks on the bin
6257 lists with a given size. This helps skipping over list elements
6258 we know won't fit in two places.
6259 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6261 2007-04-28 Ulrich Drepper <drepper@redhat.com>
6264 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6265 label to Teredo tunnel addresses 2001://32.
6267 2007-04-27 Ulrich Drepper <drepper@redhat.com>
6269 * locale/programs/ld-collate.c (collate_read): Allow order_start
6272 * locale/programs/ld-collate.c (collate_read): Fix printing of
6276 * locale/C-translit.h.in: Add entry for U2044.
6279 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6280 hexa-decimal floats without exponent.
6281 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6283 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6285 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6286 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6287 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6288 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6290 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6293 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6295 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6296 of 0 after the out_fail label.
6298 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6301 * iconv/gconv_charset.h (strip): Allow ':'.
6302 * iconv/iconv_open.c (iconv_open): Adjust comment.
6304 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6306 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6309 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6312 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6313 alignment of buffer and tmp_buffer.
6314 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6315 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6316 alignment of buffer.
6317 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6318 bigger than INT_MAX.
6319 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6320 h_errnop arguments. Fail if buflen is too small.
6321 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6323 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6326 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6327 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6329 2007-04-22 Roland McGrath <roland@redhat.com>
6331 * elf/elf.h (NT_PRXFPREG): New macro.
6333 2007-04-19 Andreas Jaeger <aj@suse.de>
6336 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6337 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6340 2007-04-19 Ulrich Drepper <drepper@redhat.com>
6342 * include/sys/mman.h: Mark madvise hidden.
6343 * misc/madvise.c: Add libc_hidden_def.
6345 2007-04-06 Jakub Jelinek <jakub@redhat.com>
6347 * nis/nis_domain_of.c (__nis_domain_of): New function.
6348 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6349 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6350 * nis/nis_call.c (rec_dirsearch): Likewise.
6351 (first_shoot): Likewise. Remove search_parent_first argument.
6352 (struct nis_server_cache): Rename search_parent_first field
6354 (nis_server_cache_search, nis_server_cache_add): Rename
6355 search_parent_first argument to search_parent.
6356 (__nisfind_server): Likewise. If search_parent, call
6359 2007-04-18 Ulrich Drepper <drepper@redhat.com>
6361 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6363 2007-04-17 Ulrich Drepper <drepper@redhat.com>
6366 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6368 2007-04-16 Ulrich Drepper <drepper@redhat.com>
6371 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6373 2007-04-15 Jakub Jelinek <jakub@redhat.com>
6375 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6376 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6377 current number of locales in SUPPORTED.
6378 (create_archive): Initialize serial.
6379 (enlarge_archive): Preserve aliases rather than duplicating
6382 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6384 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6385 after _IO_un_link, not before it.
6387 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6388 special case handling when wcp == wstartp + 1. Fix a comment typo.
6389 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6391 2007-03-30 Jakub Jelinek <jakub@redhat.com>
6393 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6394 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6395 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6397 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6398 _IO_file_xsgetn_maybe_mmap): Likewise.
6399 * libio/oldfileops.c (old_do_write): Likewise.
6400 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6401 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6402 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6403 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6404 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6405 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6406 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6407 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6408 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6409 _IO_file_underflow, _IO_file_underflow_mmap,
6410 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6411 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6412 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6413 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6414 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6415 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6416 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6417 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6418 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6419 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6420 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6421 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6422 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6423 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6424 _IO_adjust_column_internal, _IO_default_uflow_internal,
6425 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6426 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6427 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6428 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6429 _IO_file_close_it_internal, _IO_file_underflow_internal,
6430 _IO_file_overflow_internal, _IO_file_attach_internal,
6431 _IO_file_fopen_internal, _IO_file_sync_internal,
6432 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6433 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6434 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6435 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6436 _IO_seekpos_unlocked): Likewise.
6437 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6438 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6440 2007-04-16 Jakub Jelinek <jakub@redhat.com>
6442 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6443 argument in xmalloc size computation.
6445 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6447 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6448 math_opt_barrier and math_force_eval macros.
6450 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6453 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6454 * sysdeps/i386/fpu/math_private.h: New file.
6455 * sysdeps/x86_64/fpu/math_private.h: New file.
6456 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6457 math_force_eval macros. Use "+m" constraint on asm rather than
6459 * math/s_nextafter.c (__nextafter): Likewise.
6460 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6462 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6463 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6464 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6465 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6466 math_opt_barrier and math_force_eval macros.
6467 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6468 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6469 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6470 (__nexttoward): Use math_opt_barrier and
6471 math_force_eval macros. Use "+m" constraint on asm rather than
6472 "=m" and "m". Only use asm to force double result if
6473 FLT_EVAL_METHOD is 2.
6474 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6475 (__nexttowardf): Use math_opt_barrier and
6476 math_force_eval macros. Use "+m" constraint on asm rather than
6477 "=m" and "m". Only use asm to force double result if
6478 FLT_EVAL_METHOD is not 0.
6479 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6480 (__nexttowardf): Use math_opt_barrier and
6481 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6482 x to float using asm.
6483 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6484 (__nldbl_nexttowardf): Use math_opt_barrier and
6485 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6486 x to float using asm.
6487 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6488 (__nexttowardf): Use math_opt_barrier and math_force_eval
6489 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6490 * math/bug-nextafter.c (zero, inf): New variables.
6491 (main): Add new tests.
6492 * math/bug-nexttoward.c (zero, inf): New variables.
6493 (main): Add new tests.
6495 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6498 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6499 exceptions both in SW and MXCSR.
6500 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6501 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6502 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6503 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6504 in MXCSR if SSE is available.
6505 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6507 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6509 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6510 Return 0 rather than 1.
6511 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6512 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6513 * math/test-fenv.c (feholdexcept_tests): New function.
6516 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6519 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6522 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6525 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6526 Reported by David Anderson <davea42@earthlink.net>.
6528 2007-04-07 Ulrich Drepper <drepper@redhat.com>
6530 * posix/sys/wait.h: Remove unnecessary forward declaration.
6532 2007-04-05 Jakub Jelinek <jakub@redhat.com>
6534 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6535 with obj->do_servers after first_shoot.
6537 2007-04-03 Ulrich Drepper <drepper@redhat.com>
6539 * posix/Makefile (routines): Add sched_cpucount.
6540 (tests): Add tst-cpucount.
6541 * posix/sched_cpucount.c: New file.
6542 * posix/tst-cpucount.c: New file.
6543 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6544 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6545 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6546 * posix/sched.h: Define CPU_COUNT.
6548 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6550 * posix/fnmatch.c (STRUCT): Define.
6551 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6552 * posix/fnmatch_loop.c (struct STRUCT): New type.
6553 (FCT): Add ends argument. If ends != NULL and normal * is
6554 seen in the pattern, store current pattern and string pointers
6555 and return. Adjust recursive calls.
6556 (EXT): Adjust FCT callers.
6557 (STRUCT): Undef at the end of the file.
6558 * posix/Makefile (tests): Add tst-fnmatch2.
6559 * posix/tst-fnmatch2.c: New test.
6561 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6563 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6566 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6567 Change last argument to unsigned int.
6569 2007-03-23 Jakub Jelinek <jakub@redhat.com>
6571 * scripts/check-local-headers.sh: Filter out sys/capability.h.
6573 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6575 * config.h.in (HAVE_LIBCAP): Add.
6576 * nscd/selinux.h: Include sys/capability.h rather than non-existent
6578 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6579 free_caps. Cast away const from 4th cap_set_flag argument.
6581 2007-03-26 Ulrich Drepper <drepper@redhat.com>
6583 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6585 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6586 Add sync_file_range.
6587 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6589 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
6591 * sysdeps/powerpc/bits/atomic.h
6592 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6593 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6594 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6595 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6596 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6597 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6598 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6599 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6600 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6601 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6602 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6603 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6604 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6605 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6606 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6607 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6608 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6609 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6610 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6611 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6613 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6615 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6616 (__cache_line_size): Define the variable here. Add
6617 attribute_hidden, remove weak_extern.
6618 (__libc_start_main): Set __cache_line_size
6620 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6621 (__cache_line_size): Define the variable here. Add
6622 attribute_hidden, remove weak_extern.
6623 (DL_PLATFORM_AUXV): Set __cache_line_size
6625 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6626 weak_extern, add attribute_hidden.
6627 (__elf_machine_runtime_setup): Assume __cache_line_size is always
6629 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6631 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6633 2007-03-26 Jakub Jelinek <jakub@redhat.com>
6636 * timezone/africa: Update from tzdata2007d.
6637 * timezone/asia: Likewise.
6638 * timezone/australasia: Likewise.
6639 * timezone/backward: Likewise.
6640 * timezone/europe: Likewise.
6641 * timezone/iso3166.tab: Likewise.
6642 * timezone/leapseconds: Likewise.
6643 * timezone/northamerica: Likewise.
6644 * timezone/southamerica: Likewise.
6645 * timezone/zone.tab: Likewise.
6647 * timezone/private.h: Update from tzcode2007d.
6648 * timezone/zdump.c: Likewise.
6649 * timezone/zic.c: Likewise.
6651 2007-03-21 Jakub Jelinek <jakub@redhat.com>
6653 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6654 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6656 (nis_server_cache_search, nis_server_cache_add): New functions.
6657 (__nisfind_server): Use them. Add dbp and flags argument, if
6658 call __nisbind_create.
6659 (__nisbind_create): Add server_used and current_ep arguments,
6660 only call __nis_findfastest if server_used is ~0.
6661 (__do_niscall2, __prepare_niscall): Adjust callers.
6662 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6663 ckey_cache_euid, ckey_cache_lock): New variables.
6664 (get_ckey): New function.
6665 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6666 __pmap_getnisport. Save __pmap_getnisport result in
6667 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6669 * nis/nis_lookup.c (nis_lookup): Likewise.
6670 * nis/nis_table.c (nis_list): Likewise.
6671 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6674 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6675 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6676 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6677 _nss_nisplus_getservbyport_r): Likewise.
6678 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6679 _nss_nisplus_getnetbyaddr_r): Likewise.
6680 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6681 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6682 _nss_nisplus_getntohost_r): Likewise.
6683 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6684 _nss_nisplus_getrpcbynumber_r): Likewise.
6686 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6688 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6689 * configure: Rebuilt.
6691 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6693 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6695 2006-06-07 Joseph Myers <joseph@codesourcery.com>
6698 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6701 2007-03-18 Jakub Jelinek <jakub@redhat.com>
6703 * nscd/gai.c: Include alloca.h.
6704 (__libc_use_alloca): Define.
6706 2007-03-16 Jakub Jelinek <jakub@redhat.com>
6708 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6710 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6711 (DL_DST_REQUIRED): Adjust user.
6713 * include/dlfcn.h (struct link_map): New forward decl.
6715 * inet/getnameinfo.c: Include stddef.h.
6716 (getnameinfo): Use offsetof.
6718 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6720 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6722 * string/strerror_l.c: Include stdlib.h.
6724 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6725 * config.make.in (gnu89-inline-CFLAGS): New variable.
6726 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6728 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6729 * argp/argp.h: Use it.
6730 * bits/mathinline.h: Likewise.
6731 * bits/sigset.h: Likewise.
6732 * bits/string.h: Likewise.
6733 * ctype/ctype.h: Likewise.
6734 * hurd/hurd.h: Likewise.
6735 * hurd/hurd/fd.h: Likewise.
6736 * hurd/hurd/port.h: Likewise.
6737 * hurd/hurd/signal.h: Likewise.
6738 * hurd/hurd/threadvar.h: Likewise.
6739 * hurd/hurd/userlink.h: Likewise.
6740 * io/sys/stat.h: Likewise.
6741 * libio/bits/stdio.h: Likewise.
6742 * libio/bits/stdio2.h: Likewise.
6743 * mach/lock-intern.h: Likewise.
6744 * mach/mach/mig_support.h: Likewise.
6745 * math/bits/cmathcalls.h: Likewise.
6746 * posix/bits/unistd.h: Likewise.
6747 * socket/bits/socket2.h: Likewise.
6748 * stdlib/bits/stdlib.h: Likewise.
6749 * stdlib/stdlib.h: Likewise.
6750 * string/argz.h: Likewise.
6751 * string/bits/string2.h: Likewise.
6752 * string/bits/string3.h: Likewise.
6753 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6754 * sysdeps/generic/inttypes.h: Likewise.
6755 * sysdeps/generic/machine-lock.h: Likewise.
6756 * sysdeps/generic/machine-sp.h: Likewise.
6757 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6758 * sysdeps/i386/i486/bits/string.h: Likewise.
6759 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6760 * sysdeps/mach/alpha/machine-lock.h: Likewise.
6761 * sysdeps/mach/alpha/machine-sp.h: Likewise.
6762 * sysdeps/mach/i386/machine-lock.h: Likewise.
6763 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6764 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6765 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6766 * sysdeps/s390/bits/string.h: Likewise.
6767 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6768 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6769 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6770 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6771 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6772 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6773 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6774 * wcsmbs/bits/wchar2.h: Likewise.
6775 * wcsmbs/wchar.h: Likewise.
6776 * stdlib/gmp.h: Likewise. Include <features.h> to get
6777 __extern_inline definition.
6779 2007-03-15 Jakub Jelinek <jakub@redhat.com>
6781 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6785 * math/libm-test.inc (log_test): Test -Inf and NaN.
6786 (log10_test, log1p_test, log2_test): Test -Inf.
6787 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6788 FE_INVALID when argument is qNaN.
6789 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6790 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6791 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6792 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6793 andb $1, %ah with testb $1, %ah, don't test for parity, instead
6794 testb $4, %ah and jump if non-zero.
6795 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6796 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6799 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6800 ancestors with the same depths.
6801 Patch by Niels Moeller <nisse@lysator.liu.se>.
6802 (filter_doc): Don't crash if argp is NULL.
6803 * argp/Makefile (tests): Add tst-argp2.
6804 * argp/tst-argp2.c: New test.
6807 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6809 (updwtmp_file): Likewise.
6812 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6813 (inet6_opt_append): Don't check extlen is big enough if extbuf
6815 (inet6_opt_finish): Likewise.
6816 * inet/Makefile (tests): Add test-inet6_opt.
6817 * inet/test-inet6_opt.c: New test.
6819 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6820 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6821 NLMSG_ERR. Instead use a page sized buffer.
6822 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6825 2007-03-14 Richard Henderson <rth@redhat.com>
6827 * sysdeps/alpha/fpu/s_llround.c: New file.
6828 * sysdeps/alpha/fpu/s_llroundf.c: New file.
6829 * sysdeps/alpha/fpu/s_lround.c: New file.
6830 * sysdeps/alpha/fpu/s_lroundf.c: New file.
6831 * sysdeps/alpha/fpu/s_round.c: New file.
6832 * sysdeps/alpha/fpu/s_roundf.c: New file.
6833 * sysdeps/alpha/fpu/s_trunc.c: New file.
6834 * sysdeps/alpha/fpu/s_truncf.c: New file.
6836 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6837 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6838 * sysdeps/alpha/fpu/s_floor.c: Likewise.
6839 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6840 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6841 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6843 * sysdeps/alpha/fpu/s_fmax.S: New file.
6844 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6845 * sysdeps/alpha/fpu/s_fmin.S: New file.
6846 * sysdeps/alpha/fpu/s_fminf.S: New file.
6847 * sysdeps/alpha/fpu/s_isnan.c: New file.
6848 * sysdeps/alpha/fpu/s_isnanf.c: New file.
6849 * sysdeps/alpha/fpu/s_llrint.c: New file.
6850 * sysdeps/alpha/fpu/s_llrintf.c: New file.
6851 * sysdeps/alpha/fpu/s_lrint.c: New file.
6852 * sysdeps/alpha/fpu/s_lrintf.c: New file.
6853 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6854 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
6856 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
6857 (__fdimf, fdimf, __fdim, fdim): Remove.
6858 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
6859 (__isnanf, __isnan, __isnanl): New.
6861 2007-03-13 Richard Henderson <rth@redhat.com>
6863 * sysdeps/ieee754/ldbl-128/Makefile: New file.
6865 2007-03-13 Richard Henderson <rth@redhat.com>
6867 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
6868 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
6869 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
6870 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
6871 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
6872 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
6874 2007-03-13 Richard Henderson <rth@redhat.com>
6876 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
6877 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
6878 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
6879 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
6880 Move to dl-auxv.h; initialize instead of extern weak.
6881 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
6883 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
6884 Extern instead of initialized.
6886 2007-03-13 Richard Henderson <rth@redhat.com>
6888 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
6889 __sigsuspend_nocancel.
6891 2007-03-06 Ulrich Drepper <drepper@redhat.com>
6893 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
6894 172.16/12 address range.
6896 2007-03-02 Jakub Jelinek <jakub@redhat.com>
6898 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
6899 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
6902 2007-03-01 Jakub Jelinek <jakub@redhat.com>
6905 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
6907 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
6909 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
6910 for x qNaN and y either +-inf or non-integer value.
6911 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
6912 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6913 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6915 2007-02-10 Mike Frysinger <vapier@gentoo.org>
6917 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
6918 from sysdep_headers.
6920 2007-02-28 Jakub Jelinek <jakub@redhat.com>
6922 * time/tzfile.c (find_transition): Instead of a linear search try to
6923 guess the transition index, use a linear search if the result is at
6924 most 10 transitions away from the guess or binary search otherwise.
6926 2007-02-27 Jakub Jelinek <jakub@redhat.com>
6928 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
6929 memory reallocation.
6931 2007-02-21 Ulrich Drepper <drepper@redhat.com>
6933 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
6935 Optimize use of TOLOWER.
6938 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
6939 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6940 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6943 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
6944 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
6947 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
6948 (open_dir_stream): Likewise.
6949 * io/Makefile (tests): Add bug-ftw5.
6950 * io/bug-ftw5.c: New file.
6952 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
6953 * nscd/servicescache.c (cache_addserv): Likewise.
6955 * nscd/grpcache.c (cache_addgr): In case a record changed on
6956 refresh, adjust key_copy.
6959 * nscd/pwdcache.c (cache_addpw): In case a record changed on
6960 refresh, adjust key_copy.
6963 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
6965 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
6967 2007-02-19 Ulrich Drepper <drepper@redhat.com>
6969 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
6972 * stdio-common/vfscanf.c: Small cleanups throughout.
6974 2007-02-18 Ulrich Drepper <drepper@redhat.com>
6977 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
6978 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6979 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6980 Patch by Jared Casper <jaredcasper@gmail.com>.
6982 * sysdeps/unix/closedir.c: Outside libc don't use locking.
6983 * sysdeps/unix/opendir.c: Likewise.
6984 * sysdeps/unix/readdir.c: Likewise.
6987 * stdio-common/vfscanf.c: Handle localized digits etc for floating
6989 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
6991 * stdio-common/vfscanf.c: Fix problems in width accounting.
6992 * stdio-common/tst-sscanf.c (double_tests): New tests.
6993 (main): Hook them up.
6995 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
6996 More simplifications of floating-point reader.
6998 * stdio-common/Makefile (tests): Add tst-swscanf.
6999 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7001 * stdio-common/tst-swscanf.c: New file.
7003 2007-02-17 Ulrich Drepper <drepper@redhat.com>
7006 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7007 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7008 Remove using for __jmp_buf_tag.
7009 * locale/locale.h (struct lconv): Also define in std namespace.
7010 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7013 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7014 using __libc_enable_secure.
7017 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7020 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7021 of names for ellipsises.
7024 * malloc/memusage.sh: Cleanups.
7025 * debug/xtrace.sh: Quoting and trap changes.
7027 2007-02-16 Ulrich Drepper <drepper@redhat.com>
7029 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7031 * locale/iso-3166.def: Update entry for Serbia.
7032 * locale/iso-4217.def: Define RSD, remove CSD.
7034 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7035 and 64-bit operations.
7038 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7041 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7044 2007-02-15 Ulrich Drepper <drepper@redhat.com>
7047 * assert/assert.h (assert): Simplify.
7048 (assert_perror): Likewise.
7049 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7051 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7054 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7055 change: don't pass NULL in place of an integer.
7057 2007-02-02 Bruno Haible <bruno@clisp.org>
7060 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7061 Add mapping for U+327E.
7062 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7063 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7064 mapping of 0xD9 0xE8.
7065 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7067 Reported by Jungshik Shin <jungshik@google.com>.
7070 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7071 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7072 Reported by Jungshik Shin <jungshik@google.com>.
7074 2007-02-14 Ulrich Drepper <drepper@redhat.com>
7076 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7080 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7081 byte variants. Patch mostly be tom@tommay.net.
7083 2007-02-14 Jakub Jelinek <jakub@redhat.com>
7086 * posix/glob.c (attribute_hidden): Define if not defined.
7087 (glob): Unescape dirname, filename or username when needed and not
7088 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7089 is NULL. Handle unescaped [ in pattern without closing ].
7090 Don't pass GLOB_CHECK down to recursive glob for directories.
7091 (__glob_pattern_type): New function.
7092 (__glob_pattern_p): Implement using __glob_pattern_type.
7093 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7094 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7095 Remove unreachable code.
7096 * posix/globtest.sh: Add a couple of new tests.
7098 2007-02-13 Ulrich Drepper <drepper@redhat.com>
7100 * po/ru.po: Update from translation team.
7102 2007-02-12 Jakub Jelinek <jakub@redhat.com>
7104 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7105 to the list of i486+ CPUs.
7106 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7108 2007-02-12 Ulrich Drepper <drepper@redhat.com>
7110 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7111 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7114 2007-02-09 Ulrich Drepper <drepper@redhat.com>
7116 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7118 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7119 * resolv/res_mkquery.c: Define __res_nopt.
7120 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7121 try adding EDNS0 record.
7122 * resolv/res_send.c (send_dg): If request failed with FORMERR and
7123 EDNS0 record was send make sure we don't try it again.
7124 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7125 * include/resolv.h: Declare __res_nopt.
7127 2007-02-08 Jakub Jelinek <jakub@redhat.com>
7130 * time/strptime_l.c (__strptime_internal): Set have_mon for
7131 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7132 have been computed from tm_yday and tm_year. Don't crash
7133 in day_of_the_week or day_of_the_year if not have_mon
7134 and tm_mon contains bogus value.
7135 * time/Makefile (tests): Add tst-strptime3.
7136 * time/tst-strptime3.c: New test.
7138 2007-02-05 Jakub Jelinek <jakub@redhat.com>
7141 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7142 bit for RE_HAT_LISTS_NOT_NEWLINE.
7143 (build_charclass_op): Remove bogus comment.
7144 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7145 * posix/bug-regex27.c: New test.
7146 * posix/bug-regex28.c: New test.
7148 2007-02-03 Ulrich Drepper <drepper@redhat.com>
7150 * po/sv.po: Update from translation team.
7152 2007-02-02 Ulrich Drepper <drepper@redhat.com>
7154 * nscd/nscd_helper.c (open_socket): Minor size optimization.
7156 2007-02-02 Jakub Jelinek <jakub@redhat.com>
7158 * include/locale.h (__uselocale): Add libc_hidden_proto.
7159 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7161 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7164 2007-02-01 Ulrich Drepper <drepper@redhat.com>
7166 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7168 (PTR_DEMANGLE): Real definition now that it's not the same as
7170 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7172 * string/strerror_l.c: New file.
7173 * string/Makefile (routines): Add strerror_l.
7174 * string/string.h: Declare strerror_l.
7175 * string/Versions: Export strerror_l for GLIBC_2.6.
7177 2007-01-31 Ulrich Drepper <drepper@redhat.com>
7179 * nscd/nscd_helper.c (open_socket): Now takes request type and key
7180 as parameter. Construct request record. Try sending request
7181 before the first poll use, it usually succeeds. Adjust all
7183 * nscd/nscd-client.h: Define MAXKEYLEN.
7184 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7186 2007-01-31 Jakub Jelinek <jakub@redhat.com>
7188 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7190 * nscd/nscd_helper.c: Include string.h.
7191 (__nscd_cache_search): Remove const qualifier from return value.
7192 On strict alignment architectures check hash entry and data head
7194 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7195 mmapped data during GC cycle contains garbage. If
7196 __nscd_drop_map_ref fails, decrement mapped->counter when returning
7197 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7199 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7200 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7201 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7202 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7203 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7205 2007-01-30 Ulrich Drepper <drepper@redhat.com>
7207 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7209 2007-01-26 Ulrich Drepper <drepper@redhat.com>
7211 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7212 names not numbers in cfi_*.
7214 2007-01-26 Andreas Jaeger <aj@suse.de>
7216 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7217 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7218 Correct values of PER_HPUX and PER_OSF4.
7220 2007-01-24 Ulrich Drepper <drepper@redhat.com>
7222 * elf/dl-minimal.c: Undefine _itoa first.
7223 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7224 * malloc/mtrace.c: Revert last change.
7225 * posix/wordexp.c: Likewise.
7227 2007-01-24 Jakub Jelinek <jakub@redhat.com>
7229 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7230 and __geode__ to the list of i486+ CPUs.
7231 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7233 2007-01-23 Ulrich Drepper <drepper@redhat.com>
7235 * stdio-common/_itoa.c: Include <limits.h>.
7236 * stdio-common/_itowa.c: Likewise.
7238 2007-01-22 Ulrich Drepper <drepper@redhat.com>
7240 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7242 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7244 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7246 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7250 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7251 * stdio-common/Makefile (tests): Add bug17.
7252 * stdio-common/bug17.c: New file.
7254 2007-01-19 Ulrich Drepper <drepper@redhat.com>
7256 * iconvdata/brf.c: New file.
7257 * iconvdata/testdata/BRF: New file.
7258 * iconvdata/testdata/BRF..UTF8: New file.
7259 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7260 * iconvdata/Makefile: Add rules to build BRF.
7261 * iconvdata/TESTS: Add BRF entry.
7262 * iconvdata/gconv-modules: Likewise.
7263 * iconvdata/tst-tables.sh: Likewise.
7265 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
7267 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7268 type `long long int', not `long int'.
7271 2007-01-18 Ulrich Drepper <drepper@redhat.com>
7273 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7274 of values on 64-bit platforms which are too large.
7276 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
7277 Joe Kerian <jkerian@us.us.ibm.com>
7280 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7281 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7282 (__copysignl): Use signbit() for comparison.
7283 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7284 SET_LDOUBLE_WORDS64.
7287 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7288 (__ceill): Remove calls to fegetround(), fesetround().
7289 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7290 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7291 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7293 2007-01-17 Jakub Jelinek <jakub@redhat.com>
7295 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7297 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7299 2007-01-17 Ulrich Drepper <drepper@redhat.com>
7301 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7303 * csu/libc-start.c: Likewise.
7305 2007-01-16 Ulrich Drepper <drepper@redhat.com>
7307 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7310 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7312 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
7314 (handle_request): Remove unnecessary tests.
7316 * nscd/cache.c (cache_add): Record the failure to add to the cache.
7318 2007-01-15 Jakub Jelinek <jakub@redhat.com>
7320 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7321 workbits in semi-raw fraction.
7323 * math/test-misc.c: Add new tests.
7325 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7327 * math/basic-test.c: Include test-skeleton.c.
7328 (TEST_TRUNC): Define.
7329 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7330 (main): Rename to ...
7331 (do_test): ...this. Run new tests.
7332 (TEST_FUNCTION): Define.
7334 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7335 Joe Kerian <jkerian@us.us.ibm.com>
7338 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7339 handling for high words.
7340 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7341 and overflow for infinity.
7343 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7345 * nscd/connections.c (handle_request): Add a __builtin_expect.
7347 * nscd/connections.c (serv2db): Change type into structure which
7348 also says whether this is a request for data. Renamed to
7349 servinfo. All users changed.
7350 (handle_request): Much simpler test whether we should search the cache.
7352 * nscd/connections.c (handle_request): Fix thinko in selinux test
7355 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7356 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7357 it before getting dl_load_lock and then relock.
7358 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7359 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7360 case we unlocked the scope.
7361 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7362 _dl_lookup_symbol_x in case we locked the scope.
7363 (_dl_profile_fixup): Likewise.
7364 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7365 set DL_LOOKUP_SCOPE_LOCK.
7367 2007-01-13 Ulrich Drepper <drepper@redhat.com>
7369 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7370 CFLAGS-getsrvbynpt_r.c.
7371 * nscd/getsrvbynm_r.c: New file.
7372 * nscd/getsrvbypt_r.c: New file.
7373 * nscd/nscd_getserv_r.c: New file.
7374 * nscd/servicescache.c: New file.
7375 * nscd/Makefile (routines): Add nscd_getserv_r.
7376 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7377 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7378 CFLAGS-getsrvbypt_r.c.
7379 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7380 table. Add entries for services database.
7381 * nscd/connections.c (serv2str): Mark as const. Add entries for
7383 (dbs): Add .reset_res and servdb initialization.
7384 (serv2db): Add entries for services database.
7385 (verify_persistent_db): Accept dbnr == servdb.
7386 (invalidate_cache): Rewrite database name recognition to use a table.
7387 Call res_init() if .reset_res is set for database.
7388 (handle_request): Add code to handle services database.
7389 * nscd/gai.c: Don't define __getservbyname_r.
7390 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7391 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7392 (serv_response_header): Define.
7393 (struct datahead): Add serv_response_header member.
7394 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7396 * nscd/nscd.conf: Add entries for services database.
7397 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7398 Declare serv_iov_disabled.
7399 Declare addservbyname, readdservbyname, addservbyport, and
7401 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7402 (find_db): Fix error message.
7403 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7404 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7405 * nscd/selinux.c (perms): Add entries for services database.
7406 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7407 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7409 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7410 * nscd/hstcache.c: Likewise.
7411 * nscd/pwdcache.c: Likewise.
7413 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7414 computation of keylen.
7416 * include/string.h: Only redefine strndupa if this is really for
7419 2007-01-12 Ulrich Drepper <drepper@redhat.com>
7421 * nscd/nscd_gethst_r.c: Minor cleanups.
7423 * nscd/connections.c (handle_request): Check selinux permissions
7424 for all non-admin commands.
7426 * sysdeps/i386/i486/bits/atomic.h: Define
7427 atomic_compare_and_exchange_val_acq,
7428 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7429 using __sync_* built-ins for gcc >= 4.1.
7430 * sysdeps/x86_64/bits/atomic.h: Likewise.
7433 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7436 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7438 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7439 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7440 (do_test): Check errno and exit(0) if ENOSYS.
7442 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7444 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7445 thousands separators.
7446 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7447 * stdlib/tst-strtod4.c: New test.
7450 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7451 hexadecimal digit should accept just the initial 0.
7452 * stdlib/tst-strtod2.c (tests): New variable.
7453 (do_test): Run several tests rather than just one.
7455 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7457 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7458 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7460 2007-01-10 Ulrich Drepper <drepper@redhat.com>
7462 * io/fts.c: Make sure fts_cur is always valid after return from
7464 Patch by Miloslav Trmac <mitr@redhat.com>.
7466 2006-10-27 Richard Sandiford <richard@codesourcery.com>
7468 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7469 (R_MIPS_NUM): Bump by 1.
7471 2007-01-03 Jakub Jelinek <jakub@redhat.com>
7473 * posix/execvp.c: Include alloca.h.
7474 (allocate_scripts_argv): Renamed to...
7475 (scripts_argv): ... this. Don't allocate buffer here nor count
7477 (execvp): Use alloca if possible.
7478 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7479 * posix/tst-vfork3.c: New test.
7481 2007-01-03 Ulrich Drepper <drepper@redhat.com>
7483 * string/Makefile (tst-strxfrm2-ENV): Define.
7484 * stdlib/Makefile (tst-strtod3-ENV): Define.
7486 2007-01-02 Ulrich Drepper <drepper@redhat.com>
7488 * posix/getconf.c: Update copyright year.
7489 * nss/getent.c: Likewise.
7490 * iconv/iconvconfig.c: Likewise.
7491 * iconv/iconv_prog.c: Likewise.
7492 * elf/ldconfig.c: Likewise.
7493 * catgets/gencat.c: Likewise.
7494 * csu/version.c: Likewise.
7495 * elf/ldd.bash.in: Likewise.
7496 * elf/sprof.c (print_version): Likewise.
7497 * locale/programs/locale.c: Likewise.
7498 * locale/programs/localedef.c: Likewise.
7499 * nscd/nscd.c (print_version): Likewise.
7500 * debug/xtrace.sh: Likewise.
7501 * malloc/memusage.sh: Likewise.
7502 * malloc/mtrace.pl: Likewise.
7503 * debug/catchsegv.sh: Likewise.
7505 2006-12-24 Ulrich Drepper <drepper@redhat.com>
7507 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7510 2006-12-23 Ulrich Drepper <drepper@redhat.com>
7512 * posix/wordexp.c: Remove some unnecessary tests.
7514 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7516 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7517 blacklist the group till after we look it up.
7519 2006-12-21 Ulrich Drepper <drepper@redhat.com>
7521 * include/atomic.h (atomic_forced_read): New macro.
7523 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7525 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7527 2006-12-19 Jakub Jelinek <jakub@redhat.com>
7529 * nss/getXXbyYY_r.c: Include atomic.h.
7530 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7531 add atomic_write_barrier () in between.
7533 * stdlib/Makefile (tests): Add tst-makecontext.
7534 * stdlib/tst-makecontext.c: New test.
7536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7537 (__makecontext): Don't realign uc_mcontext.uc_regs.
7539 2006-11-28 Jakub Jelinek <jakub@redhat.com>
7541 * elf/dl-support.c: Include dl-procinfo.h.
7542 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7543 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7544 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7546 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7547 hardcoded constants.
7548 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7549 PPC_PLATFORM_* macros for array designators.
7551 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
7553 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7554 names to the beginning.
7555 (_dl_powerpc_platforms): Add "power6x".
7556 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7557 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7558 (_DL_PLATFORMS_COUNT): Increase.
7559 (_dl_string_platform): Handle power6x case.
7560 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7561 PPC_FEATURE_POWER6_EXT): Define.
7562 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7564 2006-12-18 Jakub Jelinek <jakub@redhat.com>
7567 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7568 [-2^31 .. 2^31) range.
7569 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7571 * stdlib/tst-rand48-2.c: New test.
7572 * stdlib/Makefile (tests): Add tst-rand48-2.
7574 2006-12-14 Jakub Jelinek <jakub@redhat.com>
7576 * misc/tst-pselect.c (do_test): Fix sigblock argument.
7578 2006-12-14 Ulrich Drepper <drepper@redhat.com>
7580 * misc/tst-pselect.c (do_test): Make sure the helper process is
7581 terminating when the test is aborted.
7583 2006-12-13 Ulrich Drepper <drepper@redhat.com>
7585 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7586 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7587 Handle relatime mount option.
7590 * libio/Makefile (tests): Add tst-setvbuf1.
7591 * libio/tst-setvbuf1.c: New file.
7593 2006-12-08 Jakub Jelinek <jakub@redhat.com>
7596 * libio/genops.c (__uflow): Fix a typo.
7597 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7598 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
7599 the narrow buffer size.
7601 2006-11-24 Jakub Jelinek <jakub@redhat.com>
7604 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7605 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7606 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7608 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7609 _IO_wstr_finish): Likewise.
7610 * libio/wmemstream.c (open_wmemstream): Likewise.
7611 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7612 even for wide streams.
7614 2006-12-13 Jakub Jelinek <jakub@redhat.com>
7616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7619 2006-12-11 Ulrich Drepper <drepper@redhat.com>
7621 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7622 separators also if no non-zero digits found.
7623 * stdlib/Makefile (tests): Add tst-strtod3.
7625 2006-12-09 Ulrich Drepper <drepper@redhat.com>
7628 * include/features.h: Fix comment about default value for
7632 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7633 empty parsed strings.
7634 * stdlib/Makefile (tests): Add tst-strtod2.
7635 * stdlib/tst-strtod2.c: New file.
7638 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7640 * stdlib/Makefile (tests): Add tst-atof2.
7641 * stdlib/tst-atof2.c: New file.
7644 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7645 correctly if removing trailing zero of hex-float.
7646 * stdlib/Makefile (tests): Add tst-atof1.
7647 * stdlib/tst-atof1.c: New file.
7649 2006-12-09 Jakub Jelinek <jakub@redhat.com>
7651 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7652 Start searching for next comma at p rather than rest.
7653 * misc/Makefile (tests): Add tst-mntent2.
7654 * misc/tst-mntent2.c: New test.
7656 * misc/getusershell.c (initshells): Check for integer overflows.
7657 Make strings buffer one bigger as fgets always succeeds when second
7658 argument is 1. Don't use calloc for shells array. Disallow
7661 2006-12-08 Ulrich Drepper <drepper@redhat.com>
7663 * malloc/memusage.c: Handle realloc with new size of zero and
7664 non-NULL pointer correctly.
7665 (me): Really write first record twice.
7666 (struct entry): Make format bi-arch safe.
7667 (dest): Write out more realloc statistics.
7668 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7670 2006-12-05 Jakub Jelinek <jakub@redhat.com>
7672 * nis/nis_subr.c (nis_getnames): Revert last change.
7674 2006-12-04 Jakub Jelinek <jakub@redhat.com>
7676 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7677 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7678 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7679 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7681 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7682 * io/tst-ttyname_r.c: New test.
7684 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7686 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7688 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
7690 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7693 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7695 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7696 `clone' function to ensure proper unwinding stop of gdb.
7697 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7699 2006-12-01 Ulrich Drepper <drepper@redhat.com>
7701 * nscd/nscd.init: Remove obsolete and commented-out -S option
7704 2006-11-23 Jakub Jelinek <jakub@redhat.com>
7707 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7710 * manual/string.texi (strtok): Remove duplicate paragraph.
7712 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7714 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7715 libgcc not supporting `rflags' unwinding (register # >= 17).
7717 2006-11-30 Jakub Jelinek <jakub@redhat.com>
7719 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7722 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7723 Jakub Jelinek <jakub@redhat.com>
7724 Jan Kratochvil <jan.kratochvil@redhat.com>
7726 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7728 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7729 'restore_rt' even in the 'signal' directory.
7730 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7732 2006-11-27 Jakub Jelinek <jakub@redhat.com>
7735 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7736 malloc crashed. Don't allocate memory unnecessarily in each
7739 2006-10-21 Jakub Jelinek <jakub@redhat.com>
7741 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7743 2006-11-20 Ulrich Drepper <drepper@redhat.com>
7745 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7747 2006-11-18 Bruno Haible <bruno@clisp.org>
7749 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7750 __sysconf only after having tried to call getgroups32.
7752 2006-11-19 Ulrich Drepper <drepper@redhat.com>
7754 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7755 addresses for IPv4 queries if they can be mapped.
7757 2006-11-16 Jakub Jelinek <jakub@redhat.com>
7759 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7760 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7761 (signmask): Add .size directive.
7762 (othermask): Add .type directive.
7764 2006-11-14 Ulrich Drepper <drepper@redhat.com>
7766 * po/nl.po: Update from translation team.
7768 * timezone/zdump.c: Redo fix for BZ #3137.
7770 2006-11-14 Jakub Jelinek <jakub@redhat.com>
7772 * nss/nss_files/files-alias.c (get_next_alias): Set line back
7773 to first_unused after parsing :include: file.
7775 2006-11-10 Ulrich Drepper <drepper@redhat.com>
7777 * timezone/africa: Update from tzdata2006o.
7778 * timezone/antarctica: Likewise.
7779 * timezone/asia: Likewise.
7780 * timezone/australasia: Likewise.
7781 * timezone/backward: Likewise.
7782 * timezone/europe: Likewise.
7783 * timezone/iso3166.tab: Likewise.
7784 * timezone/northamerica: Likewise.
7785 * timezone/southamerica: Likewise.
7786 * timezone/zone.tab: Likewise.
7788 * time/tzfile.c (__tzfile_read): Extend to handle new file format
7789 on machines with 64-bit time_t.
7791 * timezone/checktab.awk: Update from tzcode2006o.
7792 * timezone/ialloc.c: Likewise.
7793 * timezone/private.h: Likewise.
7794 * timezone/scheck.c: Likewise.
7795 * timezone/tzfile.h: Likewise.
7796 * timezone/tzselect.ksh: Likewise.
7797 * timezone/zdump.c: Likewise.
7798 * timezone/zic.c: Likewise.
7801 * elf/ldconfig.c (main): Call setlocale and textdomain.
7802 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7805 * manual/argp.texi: Fix typos.
7806 * manual/charset.texi: Likewise.
7807 * manual/errno.texi: Likewise.
7808 * manual/filesys.texi: Likewise.
7809 * manual/lang.texi: Likewise.
7810 * manual/maint.texi: Likewise.
7811 * manual/memory.texi: Likewise.
7812 * manual/message.texi: Likewise.
7813 * manual/resource.texi: Likewise.
7814 * manual/search.texi: Likewise.
7815 * manual/signal.texi: Likewise.
7816 * manual/startup.texi: Likewise.
7817 * manual/stdio.texi: Likewise.
7818 * manual/sysinfo.texi: Likewise.
7819 * manual/syslog.texi: Likewise.
7820 * manual/time.texi: Likewise.
7821 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7824 * sunrpc/clnt_raw.c: Minimal message improvements.
7825 * sunrpc/pm_getmaps.c: Likewise.
7826 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7827 * nis/nis_print_group_entry.c: Likewise.
7828 * locale/programs/repertoire.c: Likewise.
7829 * locale/programs/charmap.c: Likewise.
7830 * malloc/memusage.sh: Likewise.
7831 * elf/dl-deps.c: Likewise.
7832 * locale/programs/ld-collate.c: Likewise.
7833 * libio/vswprintf.c: Likewise.
7834 * malloc/memusagestat.c: Likewise.
7835 * sunrpc/auth_unix.c: Likewise.
7836 * sunrpc/rpc_main.c: Likewise.
7837 * nscd/cache.c: Likewise.
7838 * locale/programs/repertoire.c: Unify output messages.
7839 * locale/programs/charmap.c: Likewise.
7840 * locale/programs/ld-ctype.c: Likewise.
7841 * locale/programs/ld-monetary.c: Likewise.
7842 * locale/programs/ld-numeric.c: Likewise.
7843 * locale/programs/ld-time.c: Likewise.
7844 * elf/ldconfig.c: Likewise.
7845 * nscd/selinux.c: Likewise.
7846 * elf/cache.c: Likewise.
7847 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7850 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7854 2006-11-10 Jakub Jelinek <jakub@redhat.com>
7856 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
7857 if N is one bigger than return value.
7858 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
7859 and l1 last arguments, if buf is defined, verify the return value
7860 equals to strlen (buf) and verify no byte beyond passed length
7863 2006-11-10 Ulrich Drepper <drepper@redhat.com>
7865 * po/sv.po: Update from translation team.
7867 2006-11-09 Ulrich Drepper <drepper@redhat.com>
7869 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
7872 2006-11-10 Jakub Jelinek <jakub@redhat.com>
7874 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
7877 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
7878 Use __new_sys_siglist instead of _sys_siglist_internal as
7879 second macro argument.
7880 (_old_sys_siglist): Use declare_symbol_alias macro instead of
7883 2006-11-09 Ulrich Drepper <drepper@redhat.com>
7886 * posix/unistd.h (sysconf): Remove const attribute.
7888 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
7889 temporary or deprecated addresses.
7890 Patch by Sridhar Samudrala <sri@us.ibm.com>.
7892 * string/Makefile (tests): Add tst-strxfrm2.
7893 * string/tst-strxfrm2.c: New file.
7895 2006-10-09 Jakub Jelinek <jakub@redhat.com>
7897 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
7898 rather than r->r_brk.
7900 2006-11-08 Jakub Jelinek <jakub@redhat.com>
7902 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
7903 optimization even if needed > n.
7905 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
7906 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
7907 return false, otherwise return true.
7908 (cache_rpath): Return decompose_rpath return value.
7910 2006-11-07 Jakub Jelinek <jakub@redhat.com>
7912 * include/libc-symbols.h (declare_symbol): Rename to...
7913 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
7914 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
7916 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
7918 * sysdeps/gnu/siglist.c: Likewise.
7920 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
7922 * sysdeps/powerpc/fpu/bits/mathinline.h
7923 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
7924 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
7926 2006-11-05 Ulrich Drepper <drepper@redhat.com>
7928 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
7929 Update handling of cache descriptor 0x49 for new models.
7930 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
7933 2006-11-02 Jakub Jelinek <jakub@redhat.com>
7935 * malloc/memusage.c (dest): Reset not_me back to false after
7936 printing statistics.
7938 2006-11-02 Ulrich Drepper <drepper@redhat.com>
7940 * configure.in: Work around ld --help change and avoid -z relro
7941 test completely if the architecture doesn't care about security.
7943 2006-11-01 Ulrich Drepper <drepper@redhat.com>
7945 * po/sv.po: Update from translation team.
7947 2006-10-31 Ulrich Drepper <drepper@redhat.com>
7949 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
7950 generate compatibility version.
7952 2006-10-29 Ulrich Drepper <drepper@redhat.com>
7954 * configure.in: Relax -z relro requirement a bit.
7956 * po/sv.po: Update from translation team.
7958 2006-10-29 Jakub Jelinek <jakub@redhat.com>
7960 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
7961 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7962 * elf/dl-close.c (_dl_close_worker): Likewise.
7963 * elf/dl-open.c (_dl_open_worker): Likewise.
7964 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
7966 2006-10-27 Ulrich Drepper <drepper@redhat.com>
7968 * configure.in: Require assembler support for visibility, compiler
7969 support for visibility and aliases, linker support for various -z
7971 * Makeconfig: Remove conditional code which now is unnecessary.
7972 * config.h.in: Likewise.
7973 * config.make.in: Likewise.
7974 * dlfcn/Makefile: Likewise.
7975 * elf/Makefile: Likewise.
7976 * elf/dl-load.c: Likewise.
7977 * elf/rtld.c: Likewise.
7978 * include/libc-symbols.h: Likewise.
7979 * include/stdio.h: Likewise.
7980 * io/Makefile: Likewise.
7981 * io/fstat.c: Likewise.
7982 * io/fstat64.c: Likewise.
7983 * io/fstatat.c: Likewise.
7984 * io/fstatat64.c: Likewise.
7985 * io/lstat.c: Likewise.
7986 * io/lstat64.c: Likewise.
7987 * io/mknod.c: Likewise.
7988 * io/mknodat.c: Likewise.
7989 * io/stat.c: Likewise.
7990 * io/stat64.c: Likewise.
7991 * libio/stdio.c: Likewise.
7992 * nscd/Makefile: Likewise.
7993 * stdlib/Makefile: Likewise.
7994 * stdlib/atexit.c: Likewise.
7995 * sysdeps/generic/ldsodefs.h: Likewise.
7996 * sysdeps/i386/dl-machine.h: Likewise.
7997 * sysdeps/i386/sysdep.h: Likewise.
7998 * sysdeps/i386/i686/memcmp.S: Likewise.
7999 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8000 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8001 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8003 * Makerules: USE_TLS support is now default.
8004 * tls.make.c: Likewise.
8005 * csu/Versions: Likewise.
8006 * csu/libc-start.c: Likewise.
8007 * csu/libc-tls.c: Likewise.
8008 * csu/version.c: Likewise.
8009 * dlfcn/dlinfo.c: Likewise.
8010 * elf/dl-addr.c: Likewise.
8011 * elf/dl-cache.c: Likewise.
8012 * elf/dl-close.c: Likewise.
8013 * elf/dl-iteratephdr.c: Likewise.
8014 * elf/dl-load.c: Likewise.
8015 * elf/dl-lookup.c: Likewise.
8016 * elf/dl-object.c: Likewise.
8017 * elf/dl-open.c: Likewise.
8018 * elf/dl-reloc.c: Likewise.
8019 * elf/dl-support.c: Likewise.
8020 * elf/dl-sym.c: Likewise.
8021 * elf/dl-sysdep.c: Likewise.
8022 * elf/dl-tls.c: Likewise.
8023 * elf/ldconfig.c: Likewise.
8024 * elf/rtld.c: Likewise.
8025 * elf/tst-tls-dlinfo.c: Likewise.
8026 * elf/tst-tls1.c: Likewise.
8027 * elf/tst-tls10.h: Likewise.
8028 * elf/tst-tls14.c: Likewise.
8029 * elf/tst-tls2.c: Likewise.
8030 * elf/tst-tls3.c: Likewise.
8031 * elf/tst-tls4.c: Likewise.
8032 * elf/tst-tls5.c: Likewise.
8033 * elf/tst-tls6.c: Likewise.
8034 * elf/tst-tls7.c: Likewise.
8035 * elf/tst-tls8.c: Likewise.
8036 * elf/tst-tls9.c: Likewise.
8037 * elf/tst-tlsmod1.c: Likewise.
8038 * elf/tst-tlsmod13.c: Likewise.
8039 * elf/tst-tlsmod13a.c: Likewise.
8040 * elf/tst-tlsmod14a.c: Likewise.
8041 * elf/tst-tlsmod2.c: Likewise.
8042 * elf/tst-tlsmod3.c: Likewise.
8043 * elf/tst-tlsmod4.c: Likewise.
8044 * elf/tst-tlsmod5.c: Likewise.
8045 * elf/tst-tlsmod6.c: Likewise.
8046 * include/errno.h: Likewise.
8047 * include/link.h: Likewise.
8048 * include/tls.h: Likewise.
8049 * locale/global-locale.c: Likewise.
8050 * locale/localeinfo.h: Likewise.
8051 * malloc/arena.c: Likewise.
8052 * malloc/hooks.c: Likewise.
8053 * malloc/malloc.c: Likewise.
8054 * resolv/Versions: Likewise.
8055 * sysdeps/alpha/dl-machine.h: Likewise.
8056 * sysdeps/alpha/libc-tls.c: Likewise.
8057 * sysdeps/generic/ldsodefs.h: Likewise.
8058 * sysdeps/generic/tls.h: Likewise.
8059 * sysdeps/i386/dl-machine.h: Likewise.
8060 * sysdeps/ia64/dl-machine.h: Likewise.
8061 * sysdeps/ia64/libc-tls.c: Likewise.
8062 * sysdeps/mach/hurd/fork.c: Likewise.
8063 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8064 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8065 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8066 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8067 * sysdeps/s390/libc-tls.c: Likewise.
8068 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8069 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8070 * sysdeps/sh/dl-machine.h: Likewise.
8071 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8072 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8073 * sysdeps/x86_64/dl-machine.h: Likewise.
8075 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8076 split out locking and parameter checking.
8077 (_dl_close): Call _dl_close_worker after locking and checking.
8078 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8080 * elf/Makefile: Add rules to build and run tst-thrlock.
8081 * elf/tst-thrlock.c: New file.
8084 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8088 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8089 we are sure we do not need it anymore for _dl_close. Also move
8090 the asserts inside the lock region.
8091 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8093 2006-10-27 Jakub Jelinek <jakub@redhat.com>
8095 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8097 (_dl_lookup_symbol_x): Adjust caller.
8099 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8101 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8103 * elf/dl-libc.c: Revert l_scope name changes.
8104 * elf/dl-load.c: Likewise.
8105 * elf/dl-object.c: Likewise.
8106 * elf/rtld.c: Likewise.
8107 * elf/dl-close.c (_dl_close): Likewise.
8108 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8109 always use __rtld_mrlock_{change,done}. Always free old scope list
8110 here if not l_scope_mem.
8111 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8112 change. Never free scope list here. Just __rtld_mrlock_lock before
8113 the lookup and __rtld_mrlock_unlock it after the lookup.
8114 * elf/dl-sym.c: Likewise.
8115 * include/link.h (struct r_scoperec): Remove.
8116 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8117 with l_scope_mem and l_scoperec_lock with l_scope_lock.
8119 2006-10-25 Ulrich Drepper <drepper@redhat.com>
8121 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8123 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8125 * configure.in: Disable building profile libraries by default.
8127 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8129 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8130 as signed longs, check for x_base + pos overflow.
8131 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8132 * sunrpc/tst-xdrmem2.c: New test.
8134 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8136 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8137 _dl_lookup_symbol_x code.
8139 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8141 * elf/dl-runtime.c: Include sysdep-cancel.h.
8142 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8143 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
8144 instead of catomic_* macros.
8145 * elf/dl-sym.c: Include sysdep-cancel.h.
8146 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8147 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8148 * elf/dl-close.c: Include sysdep-cancel.h.
8149 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8150 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8151 * elf/dl-open.c: Include sysdep-cancel.h.
8152 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8153 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8155 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8158 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8159 fastbin rather than end of fastbin array.
8161 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8163 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8165 * sysdeps/x86_64/bits/atomic.h
8166 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8167 (catomic_decrement): Use correct body macro.
8169 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8171 * include/atomic.h: Add a unique prefix to all local variables
8173 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8175 2006-10-16 Ulrich Drepper <drepper@redhat.com>
8178 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8181 2006-10-14 Ulrich Drepper <drepper@redhat.com>
8183 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8185 2006-10-13 Ulrich Drepper <drepper@redhat.com>
8188 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8189 determine highest fast bin to consolidate, always look into all of
8191 (do_check_malloc_state): Only require for empty bins for large
8192 sizes in main arena.
8194 * libio/stdio.h: Add more __wur attributes.
8196 * elf/dl-minimal.c (realloc): Optimize last patch.
8198 2006-10-12 Richard Sandiford <richard@codesourcery.com>
8201 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8202 and use memcpy() if it does.
8204 2006-11-12 Andreas Jaeger <aj@suse.de>
8207 * manual/search.texi (Hash Search Function): Clarify.
8208 (Array Search Function): Clarify.
8210 2006-11-12 Joseph Myers <joseph@codesourcery.com>
8213 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8215 * math/atest-exp2.c (read_mpn_hex): Likewise.
8216 * math/atest-sincos.c (main): Likewise.
8218 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8220 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8221 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8222 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8224 * Versions.def: Add GLIBC_2.6 for libc.
8226 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8228 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8230 2006-10-11 Jakub Jelinek <jakub@redhat.com>
8232 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8234 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8236 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8237 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8239 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8241 * include/atomic.c: Define catomic_* operations.
8242 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
8243 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8244 * malloc/memusage.c: Likewise.
8245 * gmon/mcount.c: Likewise.
8246 * elf/dl-close.c: Likewise.
8247 * elf/dl-open.c: Likewise.
8248 * elf/dl-profile.c: Likewise.
8249 * elf/dl-sym.c: Likewise.
8250 * elf/dl-runtime.c: Likewise.
8251 * elf/dl-fptr.c: Likewise.
8252 * resolv/res_libc.c: Likewise.
8254 2006-10-10 Ulrich Drepper <drepper@redhat.com>
8256 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8257 components which lack them.
8259 * nis/nis_subr.c (nis_getnames): Make sure that we always return
8260 at least one entry consisting of the parameter concatenated with
8263 2006-10-10 Roland McGrath <roland@frob.com>
8265 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8266 * sysdeps/mach/hurd/futimes.c: Likewise.
8267 * sysdeps/mach/hurd/lutimes.c: Likewise.
8269 2006-10-09 Ulrich Drepper <drepper@redhat.com>
8270 Jakub Jelinek <jakub@redhat.com>
8272 Implement reference counting of scope records.
8273 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8274 from the list in objects which remain. Always allocate new scope
8276 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8277 don't resize, allocate a new one.
8278 * elf/dl-runtime.c: Update reference counters before using a scope
8280 * elf/dl-sym.c: Likewise.
8281 * elf/dl-libc.c: Adjust for l_scope name change.
8282 * elf/dl-load.c: Likewise.
8283 * elf/dl-object.c: Likewise.
8284 * elf/rtld.c: Likewise.
8285 * include/link.h: Include <rtld-lowlevel.h>. Define struct
8286 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
8287 Add l_scoperec_lock.
8288 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8289 * sysdeps/generic/rtld-lowlevel.h: New file.
8291 * include/atomic.h: Rename atomic_and to atomic_and_val and
8292 atomic_or to atomic_or_val. Define new macros atomic_and and
8293 atomic_or which do not return values.
8294 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8296 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8298 * po/sv.po: Update from translation team.
8300 2006-10-07 Ulrich Drepper <drepper@redhat.com>
8302 * Versions.def: Add GLIBC_2.6 to libpthread.
8304 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8305 (versioned_symbol): Likewise.
8306 (compat_symbol): Likewise.
8308 * po/tr.po: Update from translation team.
8310 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8312 * nis/Banner: Removed. It's been integral part forever and the
8313 author info is incomplete anyway.
8314 * libio/Banner: Likewise.
8316 * nis/nis_table.c (nis_list): If __follow_path fails in the new
8317 code, make sure the nis_freeresult call doesn't crash and that the
8318 result is reported correctly.
8320 2006-09-27 Jakub Jelinek <jakub@redhat.com>
8322 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8323 when callback is NULL.
8325 * nis/Versions (libnss_nisplus): Add
8326 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8327 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8328 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8329 _nss_create_tablename): Rename to...
8330 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8331 ... these. No longer static.
8332 (internal_setgrent): Adjust users.
8333 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8334 Don't use locking around _nss_grp_create_tablename call.
8335 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8337 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8339 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8341 2006-10-06 Andreas Jaeger <aj@suse.de>
8343 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8345 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8347 * po/pl.po: Update from translation team.
8349 * nscd/nscd.c (main): Fix typo in message.
8350 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8352 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8355 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8356 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8357 (__sigprocmask): Define.
8359 2006-10-02 Ulrich Drepper <drepper@redhat.com>
8361 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8364 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8366 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8367 in oldtotal and newtotal calculation.
8368 * nscd/nscd-client.h (struct mapped_database): Add datasize
8370 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8371 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8373 (__nscd_cache_search): Add checks to make sure we never reference
8374 data beyond the current mapping.
8376 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8378 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8379 variables const to avoid compiler warnings.
8381 * io/fts.c (fts_close): Remove redundant checks.
8382 (fts_build): Likewise.
8383 (fts_palloc): Likewise.
8385 * manual/message.texi (Advanced gettext functions,
8386 Using gettextized software): Fix typos.
8388 2006-09-30 Ulrich Drepper <drepper@redhat.com>
8390 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8391 explain why there are no leaks.
8393 2006-09-29 Ulrich Drepper <drepper@redhat.com>
8395 * libio/wmemstream.c: Include <wchar.h>.
8396 * libio/bug-wmemstream1.c: Likewise.
8397 * libio/tst-wmemstream1.c: Likewise.
8398 * libio/tst-wmemstream2.c: Likewise.
8400 * version.h (RELEASE): Bump to 2.5.
8401 * README: Regenerated.
8403 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8406 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8407 found no group members.
8408 Patch by Petr Baudis.
8410 2006-09-29 Jakub Jelinek <jakub@redhat.com>
8412 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8413 assert bootstrap_map.l_tls_modid is zero.
8414 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8417 2006-09-27 Ulrich Drepper <drepper@redhat.com>
8419 * libio/stdio.h: Move open_wmemstream prototype to ...
8420 * wcsmbs/wchar.h: ... here.
8422 2006-09-25 Jakub Jelinek <jakub@redhat.com>
8425 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8426 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8427 __{,l}chown to handle the rest.
8428 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8429 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8430 __{,l}chown to handle the rest.
8431 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8433 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8434 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8437 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8438 time, rather allocate increasingly bigger arrays of pointers, if
8439 possible with alloca, if too large with malloc.
8441 2006-09-24 Jakub Jelinek <jakub@redhat.com>
8443 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8445 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8447 2006-09-24 Ulrich Drepper <drepper@redhat.com>
8449 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8451 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8452 IFA_F_HOMEADDRESS flag for interfaces.
8453 * include/ifaddrs.h (struct in6addrinfo): Define
8456 2006-09-21 Jakub Jelinek <jakub@redhat.com>
8459 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8460 PTR_DEMANGLE3): Define.
8461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8462 PTR_DEMANGLE3): Likewise.
8463 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8464 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8466 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8468 2006-09-20 Jakub Jelinek <jakub@redhat.com>
8470 * po/libc.pot: Regenerated.
8471 * po/be.po: Updated.
8472 * po/ca.po: Likewise.
8473 * po/cs.po: Likewise.
8474 * po/da.po: Likewise.
8475 * po/de.po: Likewise.
8476 * po/el.po: Likewise.
8477 * po/en_GB.po: Likewise.
8478 * po/es.po: Likewise.
8479 * po/fi.po: Likewise.
8480 * po/fr.po: Likewise.
8481 * po/gl.po: Likewise.
8482 * po/hr.po: Likewise.
8483 * po/hu.po: Likewise.
8484 * po/ja.po: Likewise.
8485 * po/ko.po: Likewise.
8486 * po/nb.po: Likewise.
8487 * po/nl.po: Likewise.
8488 * po/pl.po: Likewise.
8489 * po/pt_BR.po: Likewise.
8490 * po/ru.po: Likewise.
8491 * po/rw.po: Likewise.
8492 * po/sk.po: Likewise.
8493 * po/sv.po: Likewise.
8494 * po/tr.po: Likewise.
8495 * po/zh_CN.po: Likewise.
8496 * po/zh_TW.po: Likewise.
8499 * iconv/iconv_prog.c (main): Fix spelling in error message.
8500 * iconv/iconvconfig.c (main): Likewise.
8501 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8502 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8503 * locale/programs/localedef.c (main): Likewise.
8504 * locale/programs/repertoire.c (repertoire_read): Likewise.
8505 * timezone/zdump.c (main): Likewise.
8506 * nscd/connections.c (handle_request): Fix spelling in log message.
8507 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8509 2006-09-20 Ulrich Drepper <drepper@redhat.com>
8511 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8514 2006-09-20 Andreas Jaeger <aj@suse.de>
8516 * math/libm-test.inc (lrint_test_upward): Fix typo.
8518 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8521 * math/libm-test.inc (lrint_test_tonearest): New function.
8522 (lrint_test_towardzero): New function.
8523 (lrint_test_downward): New function.
8524 (lrint_test_upward): New function.
8525 (main): Run these new tests.
8526 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8527 of values near to 0.
8528 (two52): Use double not long double.
8529 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8530 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8531 (two23): Use float not double.
8532 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8533 (two23): Use float not double.
8534 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8535 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8536 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8537 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8539 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8541 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8542 Cast sp to unsigned long to avoid compiler warning.
8543 Use __makecontext_ret function instead of a trampoline on the stack.
8544 (__makecontext_ret): New function.
8545 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8547 2006-09-19 Jakub Jelinek <jakub@redhat.com>
8549 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8550 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8553 2006-09-19 Ulrich Drepper <drepper@redhat.com>
8555 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8556 sure no reference to the unloaded map's search list remains in the
8559 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8561 * elf/Makefile: Add rules to build and run unload7 test.
8562 * elf/unload7.c: New test.
8563 * elf/unload7mod1.c: New file.
8564 * elf/unload7mod2.c: New file.
8566 2006-09-18 Jakub Jelinek <jakub@redhat.com>
8568 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8569 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8570 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8571 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8572 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8573 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8574 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8575 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8576 PTRACE_GETEVENTMSG): Likewise.
8577 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8580 2006-09-17 Mike Frysinger <vapier@gentoo.org>
8582 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8583 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8584 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8585 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8587 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8589 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8590 write '\0' to the fd.
8591 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8592 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8593 Change regs to unsigned long pointer from unsigned int, fix fscr
8596 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8598 * io/Makefile (CFLAGS-fstatat.c): Set.
8599 (CFLAGS-fstatat64.c): Likewise.
8600 (CFLAGS-mknodat.c): Likewise.
8602 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8603 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8604 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8605 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8607 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8608 Steven Munroe <sjmunroe@us.ibm.com>
8610 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8611 names to the beginning. Rename "cell" to "cellbe".
8612 (_dl_powerpc_platforms): New.
8613 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8614 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8615 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8616 (_DL_HWCAP_PLATFORM): Define to new mask.
8617 (_dl_platform_string, _dl_string_platform): New functions.
8618 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8619 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8621 2006-09-12 Jakub Jelinek <jakub@redhat.com>
8624 * README.libm: Fix a thinko in sqrt algorithm description.
8627 * manual/string.texi (argz_delete): Fix prototype.
8628 Patch by <alpt@freaknet.org>.
8630 2006-08-26 Joseph Myers <joseph@codesourcery.com>
8633 * io/test-lfs.c (do_prepare): Give name_len type size_t.
8634 * io/tst-fcntl.c (do_prepare): Likewise.
8635 * posix/tst-exec.c (do_prepare): Likewise.
8636 * posix/tst-preadwrite.c (do_prepare): Likewise.
8637 * posix/tst-spawn.c (do_prepare): Likewise.
8638 * posix/tst-truncate.c (do_prepare): Likewise.
8639 * rt/tst-aio.c (do_prepare): Likewise.
8640 * rt/tst-aio64.c (do_prepare): Likewise.
8641 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8644 2006-09-09 Ulrich Drepper <drepper@redhat.com>
8647 * time/mktime.c (guess_time_tm): Fix overflow detection.
8648 * time/Makefile (tests): Add bug-mktime1.
8649 * time/bug-mktime1.c: New file.
8652 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8655 2006-09-07 Jakub Jelinek <jakub@redhat.com>
8658 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8659 Ensure relocation doesn't clobber any bits outside of the
8660 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8661 R_SPARC_HI22 and R_SPARC_H44.
8664 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8665 (long) (MINSIZE + nb - old_size) is positive.
8667 * malloc/arena.c (grow_heap): When growing bail even if new_size
8671 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8674 2006-09-06 Jakub Jelinek <jakub@redhat.com>
8676 * posix/regex_internal.c (re_string_reconstruct): Handle
8677 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8678 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8679 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8680 re_string_context_at.
8681 * posix/Makefile: Add rules to build and run bug-regex26 test.
8682 * posix/bug-regex26.c: New test.
8684 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8685 rather than col_sym_free. Move seqp declaration earlier.
8687 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8689 2006-09-05 Jakub Jelinek <jakub@redhat.com>
8691 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8692 decl before first goto out.
8694 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8696 * Makerules (shlib.lds): If have-hash-style, put .hash section
8697 at the end of the RO segment.
8699 2006-09-04 Ulrich Drepper <drepper@redhat.com>
8701 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8702 style hash table format is used.
8704 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8706 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8707 randomization rather than before.
8708 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8710 2006-08-31 Jakub Jelinek <jakub@redhat.com>
8712 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8714 * malloc/malloc.c (_int_malloc): Use full list insert and not
8715 shortcut which assumes the list is empty for large requests
8718 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8720 2006-08-30 Jakub Jelinek <jakub@redhat.com>
8722 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8723 and offout arguments to the prototype.
8724 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8725 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8726 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8727 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8728 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8729 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8730 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8731 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8733 2006-08-28 Ulrich Drepper <drepper@redhat.com>
8735 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8737 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8740 2006-08-28 Jakub Jelinek <jakub@redhat.com>
8742 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8743 only if herrno is NETDB_INTERNAL. Handle errors other than
8744 ERANGE outside of the loops, handle TRY_AGAIN.
8746 * locale/programs/ld-ctype.c (translit_flatten): Issue error
8747 if other's ctype category was missing.
8748 * locale/programs/ld-collate.c (collate_read): Return if
8749 copy_locale's collate category is missing.
8751 2006-08-27 Ulrich Drepper <drepper@redhat.com>
8754 * malloc/malloc.c (public_rEALLOc): Try harder by using other
8755 arenas if allocation failed.
8756 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8758 2006-08-26 Ulrich Drepper <drepper@redhat.com>
8760 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8762 (malloc_state): Reduce bins size by 2.
8763 (_int_malloc): Fix test for large enough buffer for early termination.
8764 When no unsorted block matches perfectly and an exiting block has
8765 to be split, use full list insert and not shortcut which assumes
8768 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8771 2006-08-24 Ulrich Drepper <drepper@redhat.com>
8773 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8776 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8777 symbol require exact match (these are PLTs).
8778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8779 (_dl_ppc64_addr_sym_match): Likewise.
8782 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8783 If symbol has a value use it.
8784 * elf/tst-dladdr1.c: New file.
8785 * elf/Makefile: Add rules to build and run tst-addr1.
8787 2006-08-24 Jakub Jelinek <jakub@redhat.com>
8789 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8790 keeps failing and heap growth or new heap creation isn't
8792 * malloc/tst-malloc.c (main): Add new tests.
8794 2006-08-24 Ulrich Drepper <drepper@redhat.com>
8797 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8798 as in the x86-64 code to use bswap.
8800 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
8803 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8805 * posix/bits/unistd.h: Likewise.
8807 2006-05-15 Mike Frysinger <vapier@gentoo.org>
8810 * string/strchr.c: Add cast to avoid warning.
8812 2006-08-21 Ulrich Drepper <drepper@redhat.com>
8814 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
8815 platforms define as 512K. For 64-bit platforms as 32MB. The lower
8816 limit is needed to avoid the exploding of the address space
8817 requirement for secondary heaps.
8818 * malloc/arena.c (HEAP_MAX_SIZE): Define using
8819 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8821 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
8824 * Makerules (depfiles): Handle extra-test-objs the same as
8826 (common-mostlyclean): Likewise.
8827 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8829 * elf/Makefile (extra-objs): Likewise.
8830 * stdlib/Makefile (extra-objs): Likewise.
8832 2006-08-14 Eric Blake <ebb9@byu.net>
8835 * misc/error.h: Assume C89 or better.
8836 * misc/error.c: Likewise.
8838 2006-08-21 Ulrich Drepper <drepper@redhat.com>
8841 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8842 __ASSUME_ATFCTS is defined.
8844 2006-08-19 Ulrich Drepper <drepper@redhat.com>
8846 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8847 to sort in each call.
8849 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8850 is empty simply return and use next service.
8851 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8853 * locale/programs/charmap.c (charmap_read): Add new parameter. It
8854 tells us when not finding a charmap file is an error.
8855 * locale/programs/charmap.h: Adjust charmap_read prototype.
8856 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
8857 cannot find a charmap.
8858 * locale/programs/localedef.c (main): Adjust charmap_read call.
8860 2006-08-15 Jakub Jelinek <jakub@redhat.com>
8862 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
8863 sysdeps/posix/pause.c implementation instead.
8865 2006-08-09 Jakub Jelinek <jakub@redhat.com>
8867 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
8870 2006-08-13 Andreas Schwab <schwab@suse.de>
8872 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
8873 Don't clobber caller's LRSAVE.
8874 (_dl_prof_resolve): Likewise.
8876 2006-08-14 Ulrich Drepper <drepper@redhat.com>
8879 * libio/memstream.c (open_memstream): Allocate initial buffer with
8881 * libio/wmemstream.c (open_wmemstream): Likewise.
8882 * libio/strops.c: Pretty printing.
8883 (_IO_str_overflow): Clear uninitialized part of the new buffer.
8884 (enlarge_userbuf): New function.
8885 (_IO_str_seekoff): Call it if seek position is larger than current
8887 * libio/wstrops.c: Likewise.
8888 * libio/vasprintf.c: Add comment as to why we do not have to use
8889 calloc instead of malloc to allocate initial buffer.
8890 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
8891 * libio/bug-memstream1.c: New file.
8892 * libio/bug-wmemstream1.c: New file.
8894 2006-08-13 Ulrich Drepper <drepper@redhat.com>
8896 * libio/wstrops.c: Remove dead macro definitions and comments.
8897 * libio/strops.c: Likewise.
8900 * login/utmpname.c (__utmpname): Remove unnecessary test.
8902 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
8905 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
8908 2006-08-13 Ulrich Drepper <drepper@redhat.com>
8911 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
8913 * sysdeps/unix/clock_settime.c: Add support for platform-specific
8914 setting of CPU clocks.
8916 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
8919 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
8920 since C99 requires the result to promote to 'int' when uint_least8_t
8921 and uint_least16_t promote to 'int'.
8923 2006-08-12 Ulrich Drepper <drepper@redhat.com>
8926 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
8927 lenght of one output field, correct bitmask creation.
8928 * locale/programs/ld-time.c: Add alignment.
8931 * misc/error.c: Add space between program name and message if file
8934 2006-08-03 Eric Blake <ebb9@byu.net>
8937 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
8939 2006-08-09 Ulrich Drepper <drepper@redhat.com>
8941 * malloc/memusagestat.c: Silence warnings.
8943 * malloc/malloc.c: Dynamically size mmap treshold if the program
8944 frees mmaped blocks.
8945 Patch by Valerie Henson and Arjan van de Ven.
8947 2006-08-08 Jakub Jelinek <jakub@redhat.com>
8949 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
8952 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
8953 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
8954 (DEF): Don't put the var into .gnu.linkonce.r.* section.
8955 Only provide var definitions in strtol_l (or for *ull*
8958 * stdio-common/bug16.c (tests): New array.
8959 (do_tests): Allow the first hexadecimal digit
8960 to be 1, 2, 4 or 8. Do 3 additional tests.
8962 * sysdeps/s390/fpu/libm-test-ulps: Update.
8964 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
8965 fchownat syscall if available.
8966 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8967 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
8968 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8970 2006-08-07 Ulrich Drepper <drepper@redhat.com>
8972 * nis/nis_xdr.c: Avoid some function calls.
8974 2006-08-07 Jakub Jelinek <jakub@redhat.com>
8975 Ulrich Drepper <drepper@redhat.com>
8977 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
8978 short cut if only one name component is stripped away.
8980 2006-08-07 Ulrich Drepper <drepper@redhat.com>
8982 * nis/nis_call.c: Minor cleanups throughout.
8983 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
8984 (first_shoot): Add search_parent_first parameter. Only if it is set
8985 search parent server first.
8986 If directory for table found through cold start cache is not the same
8987 as referenced in the cache, don't use it.
8988 (__nisfind_server): Take additional parameter. Pass it on to
8990 (__prepare_niscall): Adjust __nisfind_server call.
8991 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
8992 * nis/nis_table.c: Adjust __nisfind_server call.
8993 * nis/nis_lookup.c: Likewise.
8994 (nis_lookup): Don't loop endlessly if name is reduced to ".".
8996 2006-08-03 Ulrich Drepper <drepper@redhat.com>
8999 * math/s_cacosh.c: Return values from positive branch.
9000 * math/s_cacoshf.c: Likewise.
9001 * math/s_cacoshl.c: Likewise.
9004 * sysvipc/sys/msg.h: Change return value to ssize_t.
9005 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9006 * sysvipc/msgrcv.c: Likewise.
9007 * include/sys/msg.h: Likewise.
9009 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9010 test introduced in patch for bz #661.
9011 (getgrouplist): Simplify code a bit. Don't allocate one additional
9012 element for NEWGROUPS.
9015 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9016 'f', use '1' as leading digit not '\1'.
9017 * stdio-common/Makefile (tests): Add bug16.
9018 * stdio-common/bug16.c: New file.
9021 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9022 and don't try to open it. The patch introducing the macro
9023 contained a bug and used the same file name as the new file
9024 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9025 this out completely.
9028 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9029 Patch by Jerry James <Jerry.James@usu.edu>.
9031 * rt/Makefile (tests): Add tst-clock2.
9032 * rt/tst-clock2.c: New file.
9035 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9036 function and its parameters and pass it to new thread.
9037 (__gai_notify): Add support for alternative waiting for completion.
9038 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9039 waiting for completion.
9040 * resolv/getaddrinfo_a.c: Likewise.
9041 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9042 waiting for completion is used.
9043 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9044 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9045 * resolv/gai_error.c: Likewise.
9046 * resolv/gai_sigqueue.c: Likewise.
9048 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9050 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9051 errno to EBADF and return MACH_PORT_NULL.
9053 2006-06-23 Joseph Myers <joseph@codesourcery.com>
9056 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9058 2006-08-02 Ulrich Drepper <drepper@redhat.com>
9060 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9061 walk them instead of the symbol table.
9063 2006-08-01 Ulrich Drepper <drepper@redhat.com>
9066 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9067 status of NSS calls, not the number of returned entries.
9069 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9070 request_key, keyctl.
9072 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9074 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9076 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9078 * elf/tst-auditmod1.c: Fix typo in #error.
9080 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9082 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9084 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9086 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9088 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9089 that the directory is empty even on non-POSIX filesystems.
9091 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9093 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9095 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9096 the backend NSS module. If backend setgrent call failed, don't have
9097 internal_setgrent fail. Just remember this until it is needed.
9098 * nis/nss_compat/compat-pwd.c: Likewise.
9099 * nis/nss_compat/compat-spwd.c: Likewise.
9101 2006-07-30 Roland McGrath <roland@redhat.com>
9103 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9104 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9105 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9106 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9108 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9109 (nanosleep_not_cancel): New macro.
9110 (sigsuspend_not_cancel): new macro.
9111 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9112 (do_sigsuspend): Define as inline.
9113 (__sigsuspend): Always use do_sigsuspend.
9114 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9115 * include/signal.h: Declare __sigsuspend_nocancel.
9116 * sysdeps/posix/pause.c
9117 [! NO_CANCELLATION] (__pause_nocancel): New function.
9119 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9120 * include/time.h (__nanosleep_nocancel): Likewise.
9122 2006-07-30 Ulrich Drepper <drepper@redhat.com>
9124 * locale/programs/localedef.c (add_to_readlist): Rename local
9125 variables to avoid confusion.
9127 * locale/programs/charmap.c (charmap_read): Emit error message if
9128 charmap couldn't be found or read.
9130 2006-07-28 Ulrich Drepper <drepper@redhat.com>
9132 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9133 __ASSUME_FUTEX_LOCK_PI.
9134 * include/time.h: Declare __nanosleep_nocancel.
9135 * include/unistd.h: Declare __pause_nocancel.
9137 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9138 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9139 get the __stack_chk_fail_local definition when it's needed.
9141 2006-07-26 Ulrich Drepper <drepper@redhat.com>
9143 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9144 * dlfcn/bug-atexit3.c: New file.
9145 * dlfcn/bug-atexit3-lib.cc: New file.
9147 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9148 used when the namespace is not the base namespace.
9150 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
9152 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9153 (__new_exitfn): Bump it in every successful call.
9154 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9155 more exit handlers, call them right away.
9156 * stdlib/exit.h: Declare __new_exitfn_called.
9158 2006-07-25 Ulrich Drepper <drepper@redhat.com>
9160 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9161 calling registered handler.
9163 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9164 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9165 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9166 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9167 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9168 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9169 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9170 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9172 2006-07-10 Ulrich Drepper <drepper@redhat.com>
9174 * elf/dl-lookup.c (dl_new_hash): New functions.
9175 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9176 value here. Compute new-style hash value. Pass new hash value
9177 and reference to variable with the old value to do_lookup_x.
9178 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9179 old-style hash table.
9180 (_dl_debug_bindings): Pass new hash value and reference to variable
9181 with the old value to do_lookup_x.
9182 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9183 new-style hash value and change old-style hash value parameter to
9184 be a reference. Reoganize functions to determine whether
9185 new-style hash table is available. Only fall back on old-style
9186 table. If old-style hash value is needed, compute it here.
9187 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9189 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9190 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
9191 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9192 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9193 * Makeconfig: If linker supports --hash-style option add it to all
9194 linker command lines to build DSOs.
9195 * config.make.in: Define have-hash-style.
9196 * configure.in: Test whether linker supports --hash-style option.
9198 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9199 * sysdeps/generic/ldsodefs.h: Adjust prototype.
9201 2006-06-27 Ulrich Drepper <drepper@redhat.com>
9203 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9206 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9207 RPATH of main map twice.
9209 2006-06-22 Ulrich Drepper <drepper@redhat.com>
9211 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9212 look further, return original strings.
9213 (_nl_find_msg): Do not return found translation if the conversion
9214 failed. Either signal the string is unusable or that something went
9215 wrong and the original should be used.
9217 2006-06-21 Ulrich Drepper <drepper@redhat.com>
9219 * string/_strerror.c (__strerror_r): Add __builtin_expect.
9221 2006-06-14 Jakub Jelinek <jakub@redhat.com>
9224 * misc/insremque.c (insque): Handle prev == NULL.
9225 * misc/Makefile (tests): Add tst-insremque.
9226 * misc/tst-insremque.c: New test.
9228 2006-06-17 Ulrich Drepper <drepper@redhat.com>
9231 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9232 conflict with DL_DST_REQUIRED.
9234 2006-06-16 Ulrich Drepper <drepper@redhat.com>
9236 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9237 match what Solaris does.
9239 2006-06-04 Ulrich Drepper <drepper@redhat.com>
9241 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9242 local_setegid instead of seteuid and setegid.
9243 * sysdeps/generic/local-setxid.h: New file.
9244 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9246 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9248 * string/Makefile (tests): Add bug-envz1.
9249 * string/bug-envz1.c: New file.
9251 2006-06-02 Jakub Jelinek <jakub@redhat.com>
9253 * posix/regex_internal.c (re_string_skip_chars): If no character has
9254 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
9255 to the byte which couldn't be converted.
9256 (re_string_reconstruct): Don't clear valid_raw_len before calling
9257 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9258 tip_context using re_string_context_at.
9259 * posix/Makefile: Add rules to build and run bug-regex25 test.
9260 * posix/bug-regex25.c: New test.
9262 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
9265 * string/envz.c (envz_strip): Correct erroneously reversed src
9266 and dest parameters to memmove() invocation.
9268 2006-05-30 Jakub Jelinek <jakub@redhat.com>
9270 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9271 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9272 to make sure the database has been already invalidated.
9273 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
9274 after the cache has been invalidated. Use pthread_mutex_lock rather
9275 than pthread_mutex_trylock if fd != -1.
9276 * nscd/connections.c (invalidate_cache): Add fd argument, write
9277 response to fd if not calling prune_cache, pass fd to prune_cache.
9278 (handle_request): Adjust invalidate_cache caller.
9279 (nscd_run): Pass -1 as fd to prune_cache.
9281 2006-05-30 Ulrich Drepper <drepper@redhat.com>
9283 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9286 2006-05-29 Ulrich Drepper <drepper@redhat.com>
9288 * nscd/nscd.h (struct database_dyn): Add prunelock field.
9289 * nscd/cache.c (prune_cache): Take prunelock before starting the
9290 work. Just return in case it is already taken.
9291 * nscd/connections.c (dbs): Initialize .prunelock.
9293 2006-05-25 Ulrich Drepper <drepper@redhat.com>
9295 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9296 copying. No need to allocate new array for group members. Just
9297 move the pointers and update the size.
9299 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9300 Avoid memory leak in case realloc fails. Simplification for
9301 better code generation.
9303 Avoid deprecation warning because of libc_hidden_proto for
9305 * inet/inet6_option.c (option_alloc): Renamed from
9306 inet6_option_alloc. Made static.
9307 (inet6_option_alloc): Now a simple wrapper around option_alloc.
9308 (inet6_option_append): Call option_alloc.
9309 * include/netinet/in.h: Remove libc_hidden_proto for
9312 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9313 for cleanup when cb!=NULL [Coverity CID 233].
9315 2006-05-24 Ulrich Drepper <drepper@redhat.com>
9318 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9319 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9320 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9321 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9322 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9323 and inet6_rth_getaddr.
9324 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9326 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9327 Mark inet6_option_* interfaces as deprecated.
9328 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9329 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9330 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9331 inet6_rth_segments, and inet6_rth_getaddr.
9332 * inet/inet6_opt.c: New file.
9333 * inet/inet6_rth.c: New file.
9335 * inet/netinet/icmp6.h: Pretty printing.
9338 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9340 2006-05-23 Ulrich Drepper <drepper@redhat.com>
9342 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9343 doing it all here. When server does not know the answer do not
9344 fail immediate, try parent first.
9346 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9349 2006-05-20 Ulrich Drepper <drepper@redhat.com>
9351 * nis/nis_call.c (__prepare_niscall): New function. Split out
9353 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9355 (__follow_path): New function. Split out from nis_list.
9356 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9358 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9360 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9362 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9363 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9364 from libnsl for version GLIBC_PRIVATE.
9365 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9366 Remove entry parameter from _nss_nisplus_parse_pwent and
9367 _nss_nisplus_parse_grent.
9368 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9369 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9370 again. Rewrite getpwent handling to not use nis_first_entry and
9371 nis_next_entry. Roll out own niscall handling.
9372 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9374 * sunrpc/xdr_rec.c: Fix typo in comment.
9376 2006-05-19 Ulrich Drepper <drepper@redhat.com>
9378 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9381 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9382 to allocate memory for my_pollfd. Better initialization of
9383 cb_is_running. Use TEMP_FAILURE_RETRY.
9385 * malloc/memusage.sh (memusageso): Add quotes.
9386 (memusagestat): Likewise.
9387 * debug/xtrace.sh (pcprofileso): Likewise.
9388 (pcprofiledump): Likewise.
9389 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9391 * malloc/Makefile ($(objpfx)memusage): Likewise.
9393 * nis/nis_callback.c (__nis_create_callback): Calls to
9394 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9395 asprintf call fails.
9397 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9398 no uninitialized memory is passed to sendto.
9400 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9402 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9403 of snprintf+strdup. Handle OOM.
9404 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9405 cb->serv together. Remove now obsolete free calls.
9406 (__nis_destroy_callback): Remove now obsolete free call.
9408 2006-05-18 David Woodhouse <dwmw2@redhat.com>
9410 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9411 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9412 and ULA respectively). Set precedence for IPv4 address to 10 as
9413 defined in RFC3484 for preferring IPv6.
9414 * posix/gai.conf: Update to match the new default tables.
9416 2006-05-18 Jakub Jelinek <jakub@redhat.com>
9418 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9419 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9420 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9421 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9423 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9425 (init_nss_interface): Remove initialization of these variables.
9427 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9429 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9430 nis_free_directory forward to avoid duplication.
9432 2006-05-17 Ulrich Drepper <drepper@redhat.com>
9434 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9435 rec_dirsearch returning NULL.
9436 (first_shoot): Handle __nis_finddirectory returning NULL.
9437 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9439 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9440 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9442 2006-05-17 Jakub Jelinek <jakub@redhat.com>
9444 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9447 2006-05-15 Ulrich Drepper <drepper@redhat.com>
9449 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9451 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9452 * nscd/nscd_getgr_r.c: Likewise.
9454 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9456 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9457 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9459 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9461 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9463 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9465 * include/rpc/auth.h: Mark xdr_des_block_internal and
9466 xdr_opaque_auth_internal as hidden.
9468 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9471 * include/rpc/xdr.h: Mark all _internal functions as hidden.
9473 * misc/getusershell.c (okshells): Don't use static initializers,
9476 * stdlib/fmtmsg.c (keywords): Change type of len element to
9477 uint32_t to not waste space on 64bit machines.
9479 * locale/setlocale.c: Change _nl_category_names into a string.
9480 Add new _nl_category_name_idxs. Change all users.
9481 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9482 Declare _nl_category_name_idxs.
9483 * locale/findlocale.c: Adjust for _nl_category_names change.
9484 * locale/loadlocale.c: Likewise.
9485 * locale/newlocale.c: Likewise.
9486 * intl/dcigettext.c: Likewise.
9488 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9489 (add_alias2): ...here. New function.
9490 (__gconv_read_conf): Simplify builtin alias handling.
9491 (builtin_aliases): Convert to string to avoid relocations.
9492 * iconv/gconv_builtin.h: Add comment about correct formatting.
9494 2006-05-15 Jakub Jelinek <jakub@redhat.com>
9496 * resolv/res_debug.c (loc_ntoa): Make error const.
9498 2006-05-14 Andreas Schwab <schwab@suse.de>
9500 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9502 2006-05-12 Jakub Jelinek <jakub@redhat.com>
9504 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9505 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9508 2006-05-11 Ulrich Drepper <drepper@redhat.com>
9510 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9512 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9514 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9515 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9517 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9518 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9520 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9521 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9524 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9525 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9528 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9529 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9531 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9532 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9534 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9535 * include/rpcsvc/nis_callback.h: New file.
9537 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9538 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9540 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9541 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9543 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9544 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9546 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9547 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9549 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9550 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9553 * nis/nis_xdr.h: Mark all functions as hidden. Remove
9554 __BEGIN_DECLS and __END_DECLS, the header is not installed.
9556 * nis/nis_error.c: Remove table of strings. Use position
9557 independent mechanism.
9558 * nis/nis_error.h: New file.
9560 2006-05-11 Jakub Jelinek <jakub@redhat.com>
9562 * locale/programs/ld-time.c (time_finish): If wide era name or
9563 format aren't provided, set both wname and wformat to L"".
9565 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9567 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9568 results if the call was succesful.
9570 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9572 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9575 2006-05-10 Jakub Jelinek <jakub@redhat.com>
9577 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9579 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9581 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9582 caller makes sure this is not the case.
9583 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
9585 2006-05-09 Ulrich Drepper <drepper@redhat.com>
9587 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9590 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9591 [Coverity CID 229, 230]
9593 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9595 (hol_help): Likewise. [Coverity CID 226, 227]
9597 * string/argz-replace.c (__argz_replace): Unconditionally call
9598 free on SRC. [Coverity CID 225]
9600 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9601 the return value of __nis_default_owner and __nis_default_group,
9602 it has been especially allocated. [Coverity CID 224]
9604 * nis/nis_defaults.c (searchXYX): New functions. Used by both
9605 searchgroup and searchowner. Significantly simplified.
9606 (__nis_default_owner): Remove duplication. Do not locally copy the
9607 string before duplicating it.
9608 (__nis_default_group): Likewise.
9610 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9611 we must clear the variable before calling __nisfind_server.
9613 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9614 nis_getnames. [Coverity CID 223]
9616 * locale/programs/locfile.c (locfile_read): Use alloca instead of
9617 xmalloc to allocate local repertoire name. [Coverity CID 222]
9619 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9620 allocate memory for the input to add_bytes. [Coverity CID 221]
9622 * posix/wordexp.c (w_addword): Free word if realloc fails and it
9623 was allocated here. [Coverity CID 219, 220]
9625 * posix/getconf.c (print_all): Free confstr data after printing.
9628 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9629 list allocation fails. [Coverity CID 215]
9631 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9634 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9635 string is NULL. [Coverity CID 212]
9636 * argp/Makefile: Add rules to build and run bug-argp1.
9637 * argp/bug-argp1.c: New file.
9639 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9641 * stdlib/canonicalize.c (__realpath): Likewise.
9643 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9644 pointer. [Coverity CID 206]
9646 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9647 in statically linked code.
9648 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9649 statically built code, be prepared to have no link map.
9652 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9653 dgettext calls. [Coverity CID 204]
9655 * argp/argp-help.c (struct uparams): Remove valid member. Change
9657 (uparam_names): Reduce size. Avoid relative relocations.
9658 Moved to read-only segment.
9659 (fill_in_uparams): Update for new layout.
9661 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9662 assumed to always be != NULL. [Coverity CID 202]
9664 * argp/argp-help.c (hol_entry_help): Remove some dead code
9667 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9668 away a few more unconditional yperr2nss calls.
9669 (_nss_nis_getservbyname_r): Likewise.
9671 2006-05-06 Ulrich Drepper <drepper@redhat.com>
9673 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9676 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9677 that unused memory passed to sendto is nevertheless initialized.
9680 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9681 possibly unaligned memory accesses.
9683 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9684 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9685 and __putlong respectively. Correct buffer overflow check for
9688 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9690 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9691 (send_dg): Rewrite error handling to be more compact and avoid
9692 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9694 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9696 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9697 instead of ns_get16.
9698 (res_queriesmatch): Likewise. Minor optimization.
9701 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9702 __libc_res_nsend might reallocate the buffer for the answer. In
9703 this case we have to reload the HP pointer.
9705 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9707 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9708 some branch prediction hints.
9710 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9711 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9712 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9713 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9714 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9715 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9716 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9717 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9719 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9721 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9722 by a GOT relocation to make Scrt1.o position independent.
9723 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9725 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9726 six system call parameters.
9727 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9729 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9731 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9734 * sunrpc/svc_udp.c (BZERO): Remove definition.
9736 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9738 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
9739 (des_SPtrans): Use uint32_t type.
9740 (des_skb): Likewise.
9742 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9744 2006-05-05 Jakub Jelinek <jakub@redhat.com>
9747 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9750 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9752 * locale/programs/ld-address.c (address_finish): Fix one more
9753 place where the iso639 array might be accessed beyond the limits.
9755 2006-05-04 Ulrich Drepper <drepper@redhat.com>
9757 * nis/nis_table.c (nis_list): Avoid clearing res twice before
9758 filling it for the first time.
9760 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9762 Free res object content before returning.
9764 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9766 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9769 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9770 cleanup for initial thread, just the free call on TVP.
9772 * nscd/gai.c (__getline): Define.
9775 See ChangeLog.16 for earlier changes.