1 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
4 * posix/bug-regex17.c: Add testcases.
5 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
8 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
10 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
11 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
12 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
13 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
15 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
16 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
17 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
18 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
19 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
20 * sysdeps/unix/sysv/linux/s390/Versions: New file.
22 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
24 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
25 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
26 re_string_skip_chars, re_string_reconstruct): Likewise.
27 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
29 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
31 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
32 adjust the buffer alignment.
34 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
36 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
37 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
40 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
41 flavor to description only when flavor is not NULL.
43 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
44 mutex after SIGIO/SIGURG lookup loop.
46 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
48 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
50 2009-01-03 Ulrich Drepper <drepper@redhat.com>
52 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
55 2009-01-02 Ulrich Drepper <drepper@redhat.com>
57 * sysdeps/unix/sysv/linux/kernel-features.h
58 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
60 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
61 if no output is written.
63 * version.h: Bump to 2.10 development.
65 * posix/getconf.c: Update copyright year.
66 * nss/getent.c: Likewise.
67 * iconv/iconvconfig.c: Likewise.
68 * iconv/iconv_prog.c: Likewise.
69 * elf/ldconfig.c: Likewise.
70 * catgets/gencat.c: Likewise.
71 * csu/version.c: Likewise.
72 * elf/ldd.bash.in: Likewise.
73 * elf/sprof.c (print_version): Likewise.
74 * locale/programs/locale.c: Likewise.
75 * locale/programs/localedef.c: Likewise.
76 * nscd/nscd.c (print_version): Likewise.
77 * debug/xtrace.sh: Likewise.
78 * malloc/memusage.sh: Likewise.
79 * malloc/mtrace.pl: Likewise.
80 * debug/catchsegv.sh: Likewise.
82 2008-12-29 Mike Frysinger <vapier@gentoo.org>
84 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
87 2008-12-29 Ulrich Drepper <drepper@redhat.com>
89 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
90 gethostbyname4_r function call succeeded, just leave the loop.
93 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
95 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
96 * wctype/Makefile (tests): Add bug-wctypeh.
97 * wctype/bug-wctypeh.c: New file.
99 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
100 LOCALDOMAIN is defined.
101 * nscd/nscd_getai.c (__nscd_getai): Likewise.
103 * sysdeps/x86_64/bits/select.h: New file.
105 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
107 2008-12-21 Bruno Haible <bruno@clisp.org>
110 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
111 if no output is written.
113 2008-12-13 Klaus Dittrich <kladit@arcor.de>
115 * login/utmp_file.c (pututline_file): Replace call to dup2 with
116 libc internal symbol __dup2 to avoid access through the PLT.
118 2008-12-08 Ulrich Drepper <drepper@redhat.com>
121 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
122 available only for __USE_GNU.
124 * inet/Makefile (tests): Add tst-getni2.
125 * inet/tst-getni2.c: New file.
128 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
129 NULL when NI_NAMEREQD is set.
130 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
131 * inet/Makefile (tests): Add tst-getni1.
132 * inet/tst-getni1.c: New file.
134 2008-12-03 Petr Baudis <pasky@suse.cz>
137 * nscd/connections.c (invalidate_cache): Use prune_run_lock
138 instead of prune_lock.
139 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
140 * nscd/nscd.h (database_dyn): Add prune_run_cache.
142 2008-12-07 Ulrich Drepper <drepper@redhat.com>
144 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
147 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
150 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
151 after reading name server list.
154 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
155 handling for host name aliases.
157 2008-11-24 Arkadiusz MiĆkiewicz <arekm@maven.pl>
159 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
160 instead of doing things manually.
162 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
164 * posix/regex_internal.h (build_wcs_upper_buffer):
165 Return type is reg_error_t.
167 2008-12-05 Ulrich Drepper <drepper@redhat.com>
169 * posix/globtest.sh: Use mktemp to create temporary file and
172 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
174 (__CPU_CLR_S): Likewise.
175 (__CPU_ISSET_S): Likewise.
177 2008-12-05 Joseph Myers <joseph@codesourcery.com>
178 Ulrich Drepper <drepper@redhat.com>
180 * scripts/firstversion.awk: Use custom comparison function to compare
182 * scripts/versions.awk: Use sort invocation which can handle
183 multi-digit sub-version numbers.
185 2008-12-04 Ulrich Drepper <drepper@redhat.com>
187 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
188 * locale/iso-639.def: Add Chhattisgarhi entry.
190 2008-12-02 Ulrich Drepper <drepper@redhat.com>
192 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
194 (_nss_dns_gethostbyname4_r): Likewise.
195 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
196 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
197 gethostbyname4_r, we don't have a separate IPv6 status, so copy
198 the no_data variable.
200 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
201 information at the correct index.
203 * socket/sys/socket.h: Declare accept4.
204 * socket/accept4.c: New file.
205 * sysdeps/unix/sysv/linux/accept4.c: New file.
206 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
207 * socket/Makefile (routines): Add accept4.
208 * socket/Versions: Export accept4 with version GLIBC_2.10.
209 * socket/paccept.c: Removed.
210 * sysdeps/unix/sysv/linux/paccept.c: Removed.
211 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
212 * Versions.def: Define GLIBC_2.10 for libc.
213 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
215 * nscd/connections.c: Use accept4.
217 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
219 2008-12-01 Ulrich Drepper <drepper@redhat.com>
221 * resolv/res_send.c (send_dg): Create sockets with non-blocking
224 * stdlib/setenv.c (unsetenv): Don't search environment if it does
226 * stdlib/Makefile (tests): Add tst-unsetenv1.
227 * stdlib/tst-unsetenv1.c: New file.
229 2008-11-29 Ulrich Drepper <drepper@redhat.com>
231 * login/utmp_file.c (file_writable): New variable.
232 (setutent_file): Don't try to open file for writing.
233 (pututline_file): Before writing, make descriptor writable if
236 2008-11-26 Ulrich Drepper <drepper@redhat.com>
238 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
239 to IPv4 or IPv6 if an interface has been found.
241 2008-11-26 Roland McGrath <roland@redhat.com>
243 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
244 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
246 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
247 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
248 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
250 * elf/elf.h (NT_386_IOPERM): New macro.
251 (NT_PPC_VSX): New macro.
253 2008-11-25 Roland McGrath <roland@redhat.com>
255 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
256 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
257 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
258 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
259 Subdirectories moved to ports repository.
260 * configure.in (base_machine): Remove alpha case.
262 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
264 * sysdeps/mach/strerror_l.c: New file.
266 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
269 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
270 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
272 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
273 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
274 (relax_fenv_state): Same as above.
275 (FPSCR_29): Reserve bit in ISA 2.05.
276 (FPSCR_NI): Provide define for compat.
277 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
279 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
281 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
282 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
283 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
284 access to hwcap to account for hwcap size increase to uint64_t.
285 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
288 (*setcontext): Likewise.
289 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
291 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
293 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
294 (*setcontext): dynamically select mtfsf insn based on
295 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
296 increase to uint64_t.
297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
298 (*swapcontext): dynamically select mtfsf insn based on
299 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
300 increase to uint64_t.
301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
306 (*setcontext): dynamically select mtfsf insn based on
308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
309 (*swapcontext): dynamically select mtfsf insn based on
312 2008-11-13 Ulrich Drepper <drepper@redhat.com>
314 * version.h: Bump for 2.9 release.
315 * include/features.h (__GLIBC_MINOR__): Bump to 9.
318 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
319 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
322 2008-11-11 Ulrich Drepper <drepper@redhat.com>
325 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
326 unknown request types for now.
328 2008-11-11 Roland McGrath <roland@redhat.com>
330 * sysdeps/x86_64/configure: New file.
332 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
333 * configure: Regenerated.
335 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
337 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
338 correct instruction to remove the stack frame.
340 2008-11-03 Michael Matz <matz@suse.de>
342 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
343 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
345 2008-11-07 Jakub Jelinek <jakub@redhat.com>
347 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
350 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
351 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
352 of the thread variable instead of void *.
353 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
354 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
355 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
356 __libc_tsd_define arguments.
357 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
358 __libc_tsd_address arguments. Remove union hack.
359 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
360 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
361 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
362 Adjust __libc_tsd_{set,get} arguments.
363 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
364 __libc_tsd_define arguments.
365 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
367 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
368 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
369 (LOCALE): Adjust __libc_tsd_define arguments.
370 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
372 (LOCALE): Adjust __libc_tsd_define arguments.
373 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
375 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
378 2008-11-02 Ulrich Drepper <drepper@redhat.com>
380 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
381 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
383 2008-11-01 Ulrich Drepper <drepper@redhat.com>
386 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
388 2008-10-24 Joseph Myers <joseph@codesourcery.com>
389 Ulrich Drepper <drepper@redhat.com>
391 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
392 definition for GCC 3.1 and later.
394 2008-10-31 Jakub Jelinek <jakub@redhat.com>
396 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
397 refetch dtv, as it might have changed.
398 * elf/Makefile: Add rules to build and run tst-tls18.
399 * elf/tst-tls18.c: New test.
400 * elf/tst-tlsmod18a.c: New file.
402 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
405 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
407 2008-10-31 Ulrich Drepper <drepper@redhat.com>
410 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
413 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
414 Fix length of copy operation.
416 2008-10-02 Pierre Habouzit <madcoder@debian.org>
418 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
419 and fix its calling convention.
421 2008-10-07 Andreas Schwab <schwab@suse.de>
424 * resolv/res_send.c (send_vc): Fix last change.
425 (send_dg): Align here as well.
427 2008-10-31 Ulrich Drepper <drepper@redhat.com>
429 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
430 return value in case rlimit is RLIM_INFINITY.
433 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
435 * resource/Makefile (tests): Add bug-ulimit1.
436 * resource/bug-ulimit1.c: New file.
439 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
440 without dot. Properly terminate the string with a null byte.
441 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
444 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
446 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
450 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
452 2008-10-30 Ulrich Drepper <drepper@redhat.com>
454 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
455 abort if there is no initgroups_dyn function.
457 * resolv/res_send.c (send_dg): On timeout, only return nonzero
458 result if any of the queries really provided an answer.
460 2008-10-28 Ulrich Drepper <drepper@redhat.com>
462 * po/lt.po: Update from translation team.
464 2008-10-26 Ulrich Drepper <drepper@redhat.com>
466 * po/id.po: Update from translation team.
468 2008-10-24 Ulrich Drepper <drepper@redhat.com>
470 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
471 Fix tests for existence of second reply.
473 2008-10-23 Ulrich Drepper <drepper@redhat.com>
475 * po/id.po: New file.
476 Contributed by the Indonesian translation team.
478 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
480 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
483 2008-10-17 Jakub Jelinek <jakub@redhat.com>
485 * elf/Makefile: Add rules to build and run tst-tls17.
486 * elf/tst-tls17.c: New test.
487 * elf/tst-tlsmod17a.c: New file.
488 * elf/tst-tlsmod17b.c: Likewise.
490 2008-10-17 Ulrich Drepper <drepper@redhat.com>
492 * stdlib/divmod_1.c: Use correct type for dummy variable.
493 * stdlib/mod_1.c: Likewise.
495 2008-10-16 Ulrich Drepper <drepper@redhat.com>
497 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
499 2008-10-16 Jakub Jelinek <jakub@redhat.com>
501 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
502 __nonnull order for C++.
503 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
504 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
506 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
508 * stdlib/longlong.h: Update from GCC.
510 2008-10-09 Jakub Jelinek <jakub@redhat.com>
511 David S. Miller <davem@davemloft.net>
513 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
514 make sure any registers used with 64-bit 'branch-on-register'
515 instructions have their top 32-bits clear.
516 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
517 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
519 2008-09-18 Andreas Schwab <schwab@suse.de>
522 * resolv/res_send.c (send_vc): Fix use of unaligned address.
523 Properly handle partial reads.
525 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
527 * elf/elf.h (STO_MIPS_PLT): New.
529 (R_MIPS_JUMP_SLOT): New.
530 (R_MIPS_NUM): Redefine to 128.
531 (DT_MIPS_PLTGOT): New.
532 (DT_MIPS_RWPLT): New.
533 (DT_MIPS_NUM): Redefine to 0x35.
535 2008-10-01 Ulrich Drepper <drepper@redhat.com>
537 * timezone/africa: Update from tzdata2008f.
538 * timezone/asia: Likewise.
539 * timezone/australasia: Likewise.
540 * timezone/europe: Likewise.
541 * timezone/leapseconds: Likewise.
542 * timezone/northamerica: Likewise.
543 * timezone/southamerica: Likewise.
544 * timezone/zone.tab: Likewise.
546 2008-09-30 Ulrich Drepper <drepper@redhat.com>
548 * nscd/connections.c: Disable use of paccept for now.
550 2008-09-29 Ulrich Drepper <drepper@redhat.com>
552 * socket/Versions: Remove paccept export for GLIBC_2.9.
553 * socket/Makefile (routines): Remove paccept.
554 * socket/sys/socket.h: Remove paccept declaration.
556 * po/sv.po: Update from translation team.
558 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
560 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
561 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
563 2008-09-16 Ulrich Drepper <drepper@redhat.com>
565 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
566 Patch by Olivier Fourdan <ofourdan@redhat.com>.
568 2008-09-15 Ulrich Drepper <drepper@redhat.com>
570 * sunrpc/rpc/svc.h: Declare svcfd_create.
571 Patch by Michael Solberg <msolberg@redhat.com>.
573 2008-09-12 Flavio Leitner <fleitner@redhat.com>
574 Ulrich Drepper <drepper@redhat.com>
576 * malloc/malloc.c (public_vALLOc): Try other arenas in case
578 (public_pVALLOc): Likewise.
580 2008-09-02 Andreas Jaeger <aj@suse.de>
582 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
585 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
588 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
590 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
592 * Makefile (check-data): Check data directory in add-ons.
593 * elf/Makefile (check-data): Likewise.
595 2008-08-18 Roland McGrath <roland@redhat.com>
597 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
598 * configure: Regenerated.
599 * config.make.in (cflags-cpu): New substituted variable.
600 (with-cpu): Variable removed.
601 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
603 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
606 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
607 __signbitl definition and __LONG_DOUBLE_128__ guard from:
608 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
609 redundant. Functions which call floating point assembler operations
610 should go into a sysdeps powerpc/fpu directory.
612 2008-08-15 Ulrich Drepper <drepper@redhat.com>
614 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
615 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
617 2008-08-14 Ulrich Drepper <drepper@redhat.com>
619 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
621 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
622 change related to AT_EXECFN. We cannot use that string.
623 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
625 * elf/dl-support.c: Remove _dl_execfn variable.
626 (_dl_aux_init): Remove handling of AT_EXECFN.
627 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
628 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
630 2008-08-13 Ulrich Drepper <drepper@redhat.com>
633 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
634 byte gets added to writes and seeks from the end use the length of
635 the buffer and not the currently terminating NUL byte.
638 * login/utmp_file.c (getutent_r_file): Take additional parameter.
639 Set to true if locking failed.
640 (getutid_r_file): Adjust caller.
641 (pututline_file): Likewise. Return NULL in this case.
642 Patch mostly by halesh.s@gmail.com.
644 2008-08-12 Ulrich Drepper <drepper@redhat.com>
647 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
649 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
651 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
654 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
655 macro since it is now available in elf/dynamic-link.h.
657 2008-08-12 Roland McGrath <roland@frob.com>
659 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
660 in case used outside of libc.
661 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
663 2008-08-11 Ulrich Drepper <drepper@redhat.com>
665 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
666 directly instead of going through dn_comp.
668 2008-08-11 Aurelien Jarno <aurel32@debian.org>
670 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
673 2008-08-07 Ulrich Drepper <drepper@redhat.com>
676 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
677 (IPV6_PMTUDISC_PROBE): Likewise.
679 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
682 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
684 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
685 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
688 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
689 Added the members 'vsx' and 'arch_2_06'.
690 (_dl_powerpc_platforms): Add the member 'power7'.
691 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
692 to reflect the changes required by VSX and ISA 2.06.
693 Modify _DL_PLATFORMS_COUNT to reflect the addition of
695 Defined PPC_PLATFORM_POWER7.
696 (_dl_string_platform): Add support for POWER7.
697 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
698 capability and ISA 2.06.
700 2008-08-07 Ulrich Drepper <drepper@redhat.com>
703 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
704 macro to detect use of 128 bit long double.
705 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
707 2008-08-05 Ulrich Drepper <drepper@redhat.com>
709 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
712 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
714 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
715 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
717 2008-08-03 Ulrich Drepper <drepper@redhat.com>
719 * nscd/connections.c (main_loop_poll): Pass a buffer which is
720 guaranteed to be large enough to read inotify event. Ignore
721 EAGAIN error. Better error message. Add branch predicition.
722 (main_loop_epoll): Likewise.
724 2008-08-02 Roland McGrath <roland@frob.com>
726 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
729 2008-08-02 Ulrich Drepper <drepper@redhat.com>
731 * manual/arith.texi: Avoid @strong{Note:}.
732 * manual/creature.texi: Likewise.
733 * manual/filesys.texi: Likewise.
734 * manual/math.texi: Likewise.
735 * manual/memory.texi: Likewise.
736 * manual/resource.texi: Likewise.
737 * manual/syslog.texi: Likewise.
738 * manual/time.texi: Likewise.
740 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
743 2008-08-01 Ulrich Drepper <drepper@redhat.com>
745 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
746 new epoll_create1 interface.
747 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
748 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
749 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
751 * include/arpa/nameser.h (NS_GET16): Use const pointer.
752 (NS_GET32): Likewise.
754 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
757 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
758 use the AT_EXECFN value if it is no absolute path.
759 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
762 * Versions.def: Add GLIBC_2.9 to libresolv.
763 * include/resolv.h: Remove hidden proto declarations for __ns_*
764 functions. Add them for __dn_count_labels and __p_secstodate.
765 * include/arpa/nameser.h: Add a number of hidden proto declarations.
766 Define ns_msg_getflags macro here.
767 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
769 * resolv/Versions: Export functions from <arpa/nameser.h> from
770 libresolv in version GLIBC_2.9.
771 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
773 * resolv/ns_netint.c: Likewise.
774 * resolv/ns_parse.c: Likewise.
775 * resolv/ns_print.c: Likewise.
776 * resolv/ns_samedomain.c: Likewise.
777 * resolv/ns_ttl.c: Likewise.
778 * resolv/arpa/nameser_compat.h: Likewise.
779 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
781 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
783 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
784 __ns_get32 instead of ns_get16 and ns_get32 respectively.
785 (gaih_getanswer_slice): Likewise.
786 * resolv/Makefile (libresolv-routines): Add ns_date.
787 * resolv/ns_date.c: New file.
789 * elf/Makefile (check-localplt.out): Also check libresolv and
792 2008-07-31 Ulrich Drepper <drepper@redhat.com>
794 * sysdeps/unix/sysv/linux/kernel-features.h: Define
797 2008-07-30 Ulrich Drepper <drepper@redhat.com>
799 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
800 buffer passed to NSS functions.
802 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
804 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
807 * misc/syslog.c (openlog_internal): Fix compile problem.
809 2008-07-28 Roland McGrath <roland@redhat.com>
811 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
813 2008-07-28 Ulrich Drepper <drepper@redhat.com>
815 * io/ftw.c (add_object): Remove inline to avoid warning.
817 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
819 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
820 Use it instead of locally defined resplen2 variable.
821 (res_nsend): Adjust for __libc_res_nsend interface change.
822 (send_vc): Initialize *resplen2 if necessary. Read length of
823 package into an appropriately aligned variable. Store converted length
824 in new variable and use it appropriately.
825 Add branch prediction help.
826 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
827 and pass it on to __libc_res_nsend. Adjust all callers.
828 (__libc_res_nsearch): Likewise.
829 (__libc_res_nqeurydomain): Likewise.
830 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
832 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
833 Define resplen2 variable and pass it to __libc_res_nsearch and then
835 (getanswer_r): In case of incorrect DNS data don't overread buffer.
836 Add branch prediction.
837 (gaih_getanswer_slice): Likewise. Check for invalid data types.
838 (gaih_getanswer): Don't decode second slice if first one failed due
839 to a too small buffer. Don't let not found status of second
840 decoder shadow results of the first.
841 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
842 and __libc_res_nquery interface changes
843 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
844 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
845 __libc_res_nsearch, and __libc_res_nsend.
846 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
848 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
849 __libc_res_nsearch interface changes.
851 2008-07-27 Ulrich Drepper <drepper@redhat.com>
853 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
855 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
856 file descriptors with close-on-exec set.
857 (exec_comm_child): Fix the case where the write end of the pipe is
858 STDOUT_FILENO already. In case it is, clear close-on-exec.
860 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
861 * io/pipe2.c: Likewise.
862 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
863 instead of __ASSUME_PACCEPT.
864 * include/unistd.h: Declare __have_pipe2.
865 * libio/iopopen.c: Implement "e" flag.
866 * libio/Makefile (tests): Add tst-popen1.
867 * libio/tst-popen1.c: New file.
869 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
870 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
872 2008-07-26 Ulrich Drepper <drepper@redhat.com>
875 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
876 success call of _IO_SEEKOFF or calls which failed because the
877 descriptor is for a pipe.
879 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
882 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
884 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
885 F_SETFD use if we know fopen set the flag.
887 * login/utmp_file.c (setutent_file): Minor optimization in case
888 O_CLOEXEC is available.
890 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
892 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
893 * elf/Makefile: Use pie-ccflag variable.
894 * nscd/Makefile: Likewise.
895 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
897 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
900 * Versions.def: Add GLIBC_2.9 version tag for libutil.
901 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
902 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
903 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
904 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
905 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
906 utmp32, utmpx32 and login32.
907 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
908 versions of struct utmp functions to libc and libutil.
909 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
910 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
911 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
912 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
913 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
914 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
915 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
916 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
917 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
918 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
919 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
920 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
921 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
922 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
923 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
924 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
925 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
926 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
927 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
928 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
929 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
930 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
932 2008-07-26 Ulrich Drepper <drepper@redhat.com>
934 * scripts/gen-as-const.awk: Generate more widely usable code by
935 using 64-bit arithmetic.
937 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
938 the same treatment as narrow output code in last patch.
940 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
943 * elf/dl-load.c (local_strdup): Remove inline.
944 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
945 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
948 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
950 2008-07-25 Ulrich Drepper <drepper@redhat.com>
952 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
953 the new syscalls, too.
955 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
956 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
959 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
960 parameter for end of buffer. If temporary copy is too large use
962 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
964 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
965 string rewrite when allocating buffer.
967 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
970 * nscd/connections.c (nscd_init): Clean up fcntl call.
972 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
973 SOCK_NONBLOCK if possible.
975 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
976 SOCK_CLOEXEC if available.
978 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
979 __libc_clntudp_bufcreate_internal.
980 * include/sys/socket.h: Declare __have_sock_cloexec.
981 * socket/Makefile (aux): Add have_sock_cloexec.
982 * socket/have_sock_cloexec.c: New file.
983 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
984 __libc_clntudp_bufcreate.
985 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
986 which takes an additional parameter. Create socket with non-blocking
987 mode and close-on-exec flag set, if wanted.
988 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
989 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
990 instead of clntudp_create. The socket has already the close-on-exec
991 flag set if SOCK_CLOEXEC is defined.
993 2008-07-24 Ulrich Drepper <drepper@redhat.com>
995 * sysdeps/unix/sysv/linux/kernel-features.h: Define
996 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
998 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
999 non-blocking mode by using socket, paccept, and inotify_init1.
1001 * Versions.def (glibc): Add GLIBC_2.9.
1002 * io/Makefile (routines): Add dup3 and pipe2.
1003 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1004 * io/dup3.c: New file.
1005 * io/pipe2.c: New file.
1006 * posix/unistd.h: Declare dup3 and pipe2.
1007 * socket/Makefile (routines): Add paccept.
1008 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1009 * socket/paccept.c: New file.
1010 * socket/sys/socket.h: Declare paccept.
1011 * sysdeps/unix/syscalls.list: Add entry for dup3.
1012 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1013 epoll_create2 and inotify_init1.
1014 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1015 * sysdeps/unix/sysv/linux/paccept.c: New file.
1016 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1018 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1019 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1020 inotify_init1, and pipe2 entries.
1021 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1022 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1023 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1024 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1025 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1026 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1028 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1029 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1030 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1031 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1032 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1033 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1034 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1035 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1036 EPOLL_NONBLOCK. Declare epoll_create2.
1037 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1039 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1040 IN_NONBLOCK. Declare inotify_init1.
1041 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1043 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1046 * elf/elf.h: Define AT_EXECFN.
1047 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1049 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1050 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
1051 if __ASSUME_AT_EXECFN is defined.
1052 (_dl_aux_init): Handle AT_EXECFN.
1053 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1055 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1056 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1057 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1058 _dl_execfn if available and avoid compatibility code if
1059 __ASSUME_AT_EXECFN is defined.
1061 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1062 _dl_discover_osversion only for older kernels.
1064 2008-07-22 Roland McGrath <roland@frob.com>
1066 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1068 2008-07-21 Roland McGrath <roland@frob.com>
1070 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1071 returned too much data out of line.
1073 2008-07-20 Ulrich Drepper <drepper@redhat.com>
1075 * locale/setlocale.c (setname): Remove inline to avoid compiler
1079 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1081 2008-07-15 Ulrich Drepper <drepper@redhat.com>
1083 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1084 doesn't manage to write anything, fail.
1086 * malloc/hooks.c (__malloc_check_init): Remove printf.
1088 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1090 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1092 2008-07-12 Ulrich Drepper <drepper@redhat.com>
1094 * nscd/connections.c (main_loop_poll): Fix handling of read errors
1096 (main_loop_epoll): Likewise.
1098 2008-07-09 Ulrich Drepper <drepper@redhat.com>
1100 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1102 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1103 if DEBUG is defined.
1105 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1106 query. Adjust buffer size computation for padding.
1108 2008-07-08 Ulrich Drepper <drepper@redhat.com>
1110 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1111 * stdio-common/tst-setvbuf1.c: New file.
1112 * stdio-common/tst-setvbuf1.expect: New file.
1115 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1116 when selecting fully-buffered stream.
1117 Patch by Wang Xin <wxinee@gmail.com>.
1119 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
1121 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1122 (__open_2): New function.
1123 (__open64_2): New alias to __open_2.
1124 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1125 (__openat_2): New function.
1126 (__openat64_2): New alias to __openat_2.
1128 2008-07-06 Ulrich Drepper <drepper@redhat.com>
1131 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1133 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1135 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1136 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1137 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1139 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1140 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1141 * sysdeps/mach/hurd/send.c (__send): Likewise.
1142 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1143 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1145 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1147 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1148 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1149 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1150 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1151 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1152 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1154 2008-06-27 Ulrich Drepper <drepper@redhat.com>
1157 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1159 Patch by Petr Baudis.
1161 2008-06-26 Ulrich Drepper <drepper@redhat.com>
1163 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1164 Patch by Peter Jones <pjones@redhat.com>.
1166 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1169 * stdlib/canonicalize.c (__realpath): readlink can write too much
1170 into the buffer on platforms without PATH_MAX.
1172 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1175 * posix/tst-regex.c (main): Rename to...
1176 (do_test): ... this. Remove cmdline option processing.
1178 (TEST_FUNCTION): Define.
1179 (CMDLINE_OPTIONS): Define.
1181 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1184 * configure.in: Add -Werror to -fstack-protector test to catch
1185 unsupported architectures.
1186 Patch by Gilles Esponasse <g.esp@free.fr>.
1188 2008-06-17 Joseph Myers <joseph@codesourcery.com>
1190 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1191 getcontext returns ENOSYS.
1193 2008-06-18 Ulrich Drepper <drepper@redhat.com>
1195 * nscd/connections.c (main_loop_poll): Fix test for read error.
1196 (main_loop_epoll): Likewise.
1198 2008-06-13 Ulrich Drepper <drepper@redhat.com>
1200 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1201 better place so it is not called when nscd is used.
1203 * nscd/connections.c: Also recognize and handle changes to the
1204 resolver configuration file.
1206 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1208 * time/strftime.c: Pass reference to tzset_called around to handle
1212 * time/strftime.c (__strftime_internal): Call tzset() only
1213 when printing timezone-dependent values.
1214 Based on a patch by Petr Baudis <pasky@suse.cz>.
1216 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1217 unconditionally use second gaih_getanswer_slice result.
1219 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1220 (getaddrinfo): RES must always be non-NULL.
1222 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1224 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1226 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1227 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1229 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1232 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1234 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1236 * nscd/connections.c (inotify_fd): New variable.
1237 (nscd_init): Try to open an inotify descriptor.
1238 If successful, watch files for databases using inotify instead of
1239 having prune threads stat the files.
1240 (nscd_run_prune): Recognize clear_cache flag being set and call
1241 prune_cache appropriately.
1242 (main_loop_poll): Add inotify descriptor to wait set and handle the
1244 (main_loop_epoll): Likewise.
1245 * nscd/cache.c (prune_cache): Don't stat files for databases if
1247 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1248 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1250 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1251 fixed-size portion of the record.
1252 * nscd/servicescache.c (cache_addserv): Likewise.
1253 * nscd/pwdcache.c (cache_addpw): Likewise.
1254 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1256 2008-06-11 Ulrich Drepper <drepper@redhat.com>
1258 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1259 out we don't use uninitialized memory.
1261 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1264 2008-06-10 Ulrich Drepper <drepper@redhat.com>
1266 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1267 ignore T_DNAME messages.
1268 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1270 2008-06-05 Jakub Jelinek <jakub@redhat.com>
1272 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1273 Avoid segfault if first GETC returns eof/'\0'/'\n'.
1275 2008-06-03 Jakub Jelinek <jakub@redhat.com>
1277 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1278 instead of portstr to nscd_getserv_r. Patch by
1279 Roman Kagan <rkagan@mail.ru>.
1281 2008-05-26 Jim Meyering <meyering@redhat.com>
1283 Remove more useless "if" tests before "free".
1284 * include/inline-hashtab.h (htab_delete): Likewise.
1285 * libio/freopen.c (freopen): Likewise.
1286 * libio/freopen64.c (freopen64): Likewise.
1287 * locale/programs/ld-collate.c (collate_read): Likewise.
1288 * misc/fstab.c (libc_freeres_fn): Likewise.
1289 * posix/glob.c (globfree): Likewise.
1291 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1293 * string/Makefile (strop-tests): Add memmem.
1294 * string/test-memmem.c: New file.
1295 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1296 (test_init): Size buf1 according to BUF1PAGES.
1298 2008-05-24 Jakub Jelinek <jakub@redhat.com>
1300 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1301 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1302 (CFLAGS-scanf17.c): New.
1303 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1304 * stdio-common/scanf15.c (main): Likewise.
1305 * stdio-common/scanf16.c: New file.
1306 * stdio-common/scanf17.c: New file.
1308 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1310 * resolv/res_send.c (send_dg): If we already have one of two
1311 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1312 use the one answer insted of failing.
1314 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
1316 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1317 being executed on PowerPC as the expected result exceeds IBM
1318 long double 128 __LDBL_MAX__.
1320 2008-05-21 Roland McGrath <roland@redhat.com>
1322 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1324 * Makefile (check-data): Use $(abi-name) before other guesses.
1325 Look in $(add-ons) dirs before scripts/data/.
1326 * elf/Makefile (check-data): Likewise.
1328 * scripts/soversions.awk: Grok ABI line.
1329 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1330 Emit definition for abi-name variable.
1332 2008-05-21 Ulrich Drepper <drepper@redhat.com>
1334 * string/endian.h: Define new fixed-size hto* and *toh macros only
1337 * iconvdata/Depend: Add localedata.
1339 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1341 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1343 2008-05-08 David S. Miller <davem@davemloft.net>
1345 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1347 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1348 (__SYSCALL_CLOBBERS): Remove %g* registers.
1349 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1350 (__SYSCALL_CLOBBERS): Likewise.
1351 * scripts/data/localplt-sparc-linux-gnu.data: New file.
1352 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1354 2008-05-21 Jakub Jelinek <jakub@redhat.com>
1356 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1357 (CALL_ERRNO_LOCATION): Define.
1358 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1359 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1360 (CALL_ERRNO_LOCATION): Define.
1361 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1362 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1363 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1365 2008-05-20 Ulrich Drepper <drepper@redhat.com>
1367 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1370 2008-05-20 Jakub Jelinek <jakub@redhat.com>
1372 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1373 (FIRST_FRAME_POINTER): Define.
1375 2008-05-09 David S. Miller <davem@davemloft.net>
1377 * sysdeps/sparc/sparc64/backtrace.c: New file.
1379 2008-05-14 David S. Miller <davem@davemloft.net>
1381 * sysdeps/sparc/machine-gmon.h: New file.
1382 * sysdeps/sparc/sparc-mcount.S: Likewise.
1383 * sysdeps/sparc/Makefile: Add sparc-mcount target to
1384 sysdep_routines in gmon directory.
1386 2008-05-19 Jakub Jelinek <jakub@redhat.com>
1388 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1390 2008-05-19 Ulrich Drepper <drepper@redhat.com>
1392 * resolv/res_query.c (__libc_res_nquery): In case one of two
1393 answer was too short don't try to read that answer's header.
1395 * resolv/res_send.c (send_dg): In case of timeout and there are
1396 two queries and one has been answered, return value indicating
1399 2008-05-18 Ulrich Drepper <drepper@redhat.com>
1401 * nscd/cache.c (cache_add): Take additional parameter specifying
1402 whether this is in response of a cache refill. Check alignment
1403 of package data. Revamp waking of pruning thread.
1404 (prune_cache): Small optimization.
1405 * nscd/nscd.h: Adjust cache_add prototypes.
1406 * nscd/aicache.c: Adjust cache_add calls.
1407 * nscd/grpcache.c: Likewise.
1408 * nscd/hstcache.c: Likewise.
1409 * nscd/initgrcache.c: Likewise.
1410 * nscd/pwdcache.c: Likewise.
1411 * nscd/servicescache.c: Likewise.
1412 * nscd/connections.c (restart): Really disable cache use before
1413 exec attempt. If it fails, reenable cache.
1414 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
1415 time to max to be able to notice concurrent cache additions. Unlock
1416 prune_lock while performing gc. Afterwards compute wakeup time with
1417 current wakeup_time value in mind.
1419 2008-05-17 Ulrich Drepper <drepper@redhat.com>
1421 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1423 * nscd/mem.c (gc): Correctly determine highest used array element
1426 * nscd/mem.c (markrange): Add assert to check entries are all
1427 aligned. Small cleanup in bitmap use.
1429 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1430 blockoff of type nscd_ssize_t.
1431 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1432 (mempoll_alloc): Record block offset and not address.
1434 * nscd/mem.c (gc): Fix test for stack overuse.
1436 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1439 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1440 entry is available, believe it.
1442 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1443 no answers return NSS_STATUS_NOTFOUND.
1444 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1445 buffer does not have any content.
1447 2008-05-16 Ulrich Drepper <drepper@redhat.com>
1449 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1451 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1452 lookup, don't assign canon unconditionally.
1454 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1456 * string/Makefile (distribute): Add str-two-way.h.
1458 2008-03-29 Eric Blake <ebb9@byu.net>
1460 Rewrite string searches to O(n) rather than O(n^2).
1461 * string/str-two-way.h: New file. For linear fixed-allocation
1463 * string/memmem.c: New implementation.
1464 * string/strstr.c: New implementation.
1465 * string/strcasestr.c: New implementation.
1467 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
1469 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1471 (calc_first): Initialize constraint field.
1472 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1473 Use search_duplicated_node to avoid loops. Fix grammar.
1474 (duplicate_node): Merge constraint field for all node types.
1475 (calc_eclosure_iter): Look at constraint field for all node types.
1476 * posix/regex_internal.c (create_cd_newstate): Don't look at
1479 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1482 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1485 * string/endian.h: Add macros for fixed-size endian conversion.
1486 * bits/byteswap.h: Allow inclusion from <endian.h>.
1487 * sysdeps/i386/bits/byteswap.h: Likewise.
1488 * sysdeps/ia64/bits/byteswap.h: Likewise.
1489 * sysdeps/s390/bits/byteswap.h: Likewise.
1490 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1491 * string/Makefile (tests): Add tst-endian.
1492 * string/tst-endian.c: New file.
1494 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1495 Patch by Reuben Thomas.
1497 2008-05-14 Joseph Myers <joseph@codesourcery.com>
1499 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1501 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1503 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1506 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1508 (BODY for __gconv_transform_internal_ascii): Likewise.
1511 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1512 to be treated like link-local addresses.
1513 (match_prefix): Don't treat IPv4 loopback address special when
1514 converting to v4 mapped addressed.
1516 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1518 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1519 * posix/tst-rfc3484-2.c: Likewise.
1520 * posix/tst-rfc3484-3.c: Likewise.
1522 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1525 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1527 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1529 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1531 2008-05-13 Ulrich Drepper <drepper@redhat.com>
1533 * po/lt.po: New file. From Lituanian translation team.
1535 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
1537 Introduce TLS descriptors for i386 and x86_64.
1538 * include/inline-hashtab.h: New file, copied from 2005's
1539 libiberty, with fix for memory leak imported afterwards by
1540 Glauber de Oliveira Costa.
1541 * elf/tlsdeschtab.h: New file.
1542 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1543 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1544 (CHECK_STATIC_TLS): Move to...
1545 * elf/dynamic-link.h: ... this file.
1546 (TRY_STATIC_TLS): New macro.
1547 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1548 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1549 R_386_TLS_DESC): Define.
1550 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1552 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1553 R_X86_64_TLSDESC): Define.
1554 (R_386_NUM, R_X86_64_NUM): Adjust.
1555 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1556 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1557 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1558 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1559 release tlsdesc_table.
1560 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1561 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1562 (elf_machine_rel): Handle R_386_TLS_DESC.
1563 (elf_machine_rela): Likewise.
1564 (elf_machine_lazy_rel): Likewise.
1565 (elf_machine_lazy_rela): Likewise.
1566 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1567 * sysdeps/i386/dl-tlsdesc.S: New file.
1568 * sysdeps/i386/dl-tlsdesc.h: New file.
1569 * sysdeps/i386/tlsdesc.c: New file.
1570 * sysdeps/i386/tlsdesc.sym: New file.
1571 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1573 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1574 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1575 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1576 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1577 release tlsdesc_table.
1578 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1579 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1580 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1581 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1582 (elf_machine_rela): Likewise.
1583 (elf_machine_lazy_rel): Likewise.
1584 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1585 (__tls_get_addr): Do not declare for non-shared compiles.
1586 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1587 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1588 * sysdeps/x86_64/tlsdesc.c: New file.
1589 * sysdeps/x86_64/tlsdesc.sym: New file.
1590 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1591 tlsdesc_table for both 32- and 64-bit structs.
1593 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1595 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1596 its own function. This reduces the frame setup costs and more.
1598 2008-02-11 Joseph Myers <joseph@codesourcery.com>
1601 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1602 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1604 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1606 * io/openat.c (__openat_2): Also pass fd to __openat.
1607 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1608 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1610 * string/tester.c (test_memcmp): Add a few more tests.
1611 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1613 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1615 * nscd/cache.c (cache_add): Before returning with failure and this
1616 is the first use of the record, mark it as unusable.
1617 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1618 reporting a failure.
1619 * nscd/grpcache.c: Likewise
1620 * nscd/hstcache.c: Likewise.
1621 * nscd/initgrcache.c: Likewise.
1622 * nscd/pwdcache.c: Likewise.
1623 * nscd/servicescache.c: Likewise.
1625 2008-05-10 Roland McGrath <roland@redhat.com>
1628 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1630 2008-05-08 David S. Miller <davem@davemloft.net>
1632 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1634 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1635 (__ieee754_y0l): Likewise.
1636 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1637 (__ieee754_y1l): Likewise.
1638 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1639 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1640 frexpl and ldexpl. math_private.h provides them and the latter
1642 (__log1pl): Use __frexpl.
1644 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1646 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1648 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1649 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1650 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1651 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1653 (_nss_nis_gethostbyname4_r): New function.
1654 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1655 Change to also handle af==AF_UNSPEC.
1656 (get_tablename): New function. Use it to avoid duplication.
1657 (_nss_nisplus_gethostbyname4_r): New function.
1658 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1660 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1661 * nss/nss.h: Define struct gaih_addrtuple.
1662 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1664 (_nss_files_gethostbyname4_r): New function.
1665 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1666 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1668 * resolv/res_query.c (__libc_res_nquery): Take two additional
1669 parameters for second answer buffer. Handle type=T_UNSPEC to mean
1670 look up IPv4 and IPv6.
1672 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1673 for an additional query and answer buffer. Pass to send_vc and
1675 (send_vc): Send possibly two requests and receive two answers.
1676 (send_dg): Likewise.
1677 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1679 (_nss_dns_gethostbyname4_r): New function.
1680 (gaih_getanswer_slice): Likewise.
1681 (gaih_getanswer): Likewise.
1682 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1683 __libc_res_nquery call.
1684 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1685 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1686 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1689 2008-05-05 David S. Miller <davem@davemloft.net>
1691 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1692 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1694 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1696 Fix termios bit macros.
1697 Move *DLY definitions where they belong, in termios.h.
1698 Add *[0-3] definitions.
1699 Fixes confusion between VT and FF.
1700 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1701 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1702 are already defined to avoid collision with termios.h.
1703 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1704 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1705 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1706 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1707 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1708 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1709 VTDLY, VT0, VT1): New macros.
1710 [__USE_GNU] (OLCUC): Change value of macro.
1711 [__USE_XOPEN] (OFILL): New macro.
1712 [__USE_BSD] (CRTSCTS): Change value.
1713 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1714 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1715 (B7200, B14400, B28800, B76800): New macros.
1717 2008-05-01 David S. Miller <davem@davemloft.net>
1719 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1720 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1721 (gen-as-const-headers): Add it.
1722 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1723 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1724 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1725 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1727 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1728 six system call parameters.
1729 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1731 2008-04-30 Ulrich Drepper <drepper@redhat.com>
1733 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1735 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1736 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1738 2008-04-30 Jakub Jelinek <jakub@redhat.com>
1740 * stdlib/tst-setcontext.c: Include unistd.h.
1742 2008-04-25 David S. Miller <davem@davemloft.net>
1744 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1745 Pass "union semun" properly in to sys_ipc, it must be passed
1746 by value, not by reference.
1748 2008-04-22 Jakub Jelinek <jakub@redhat.com>
1750 * nscd/Makefile (nscd-cflags): Set back to -fpie.
1751 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1752 * nscd/connections.c (mem_in_flight): Likewise.
1754 * nscd/nscd.h (dbs): Make hidden.
1756 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1757 Avoid returning -1, return 0 instead.
1759 2008-04-19 Ulrich Drepper <drepper@redhat.com>
1761 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1763 2008-04-15 Ulrich Drepper <drepper@redhat.com>
1766 * sysdeps/unix/sysv/linux/times.c: New file.
1769 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1770 mem_in_flight_list variables. Add new parameter to mempool_alloc
1772 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1773 appropriate mem_in_flight element.
1774 (gc): Take allocations which have not yet been committed to the
1775 database into account.
1776 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1777 Reset mem_in_flight before returning.
1778 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1779 cue it up in mem_in_flight_list.
1780 * nscd/aicache.c: Adjust mempool_alloc call.
1781 * nscd/grpcache.c: Likewise.
1782 * nscd/hstcache.c: Likewise.
1783 * nscd/initgrcache.c: Likewise.
1784 * nscd/pwdcache.c: Likewise.
1785 * nscd/servicescache.c: Likewise.
1786 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1789 * nscd/connections.c (handle_request): Provide better error message
1790 in case SELinux forbids the service.
1792 * version.h (VERSION): Bump to 2.8.90.
1794 2008-04-17 Jakub Jelinek <jakub@redhat.com>
1796 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1798 2008-04-11 Ulrich Drepper <drepper@redhat.com>
1800 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1801 Also use for 32-bit.
1802 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1803 __nextafter instead of nextafter to avoid local PLT.
1804 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1805 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1807 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1809 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1811 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1812 <fenv_libc.h> instead of <fenv.h>.
1813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1816 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1818 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1819 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1820 function from fegetexcept and make old name weak alias.
1821 * include/fenv.h: Declare __fegetexcept.
1822 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1824 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1825 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1827 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1828 instead of frexpl to avoid local PLT.
1829 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1830 ilogbl to avoid local PLT.
1831 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1832 instead of ldexpl to avoid local PLT.
1833 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1834 __roundl not roundl to avoid local PLT.
1835 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1836 local PLTs. Use __sincosl instead of separate sinl and cosl
1838 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1840 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1841 version for ppc64 to 2.4.21 since without it makecontext will fail.
1843 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1845 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1847 [__powerpc64__] (TLS_GD): Likewise.
1849 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1852 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1853 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1855 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1856 Likewise. Also account for when x is an odd number between 2^52
1858 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1859 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1860 * math/libm-test.inc (lround_test, llround_test): Added test cases to
1861 detect aforementioned erroneous conditions.
1863 2008-04-11 Jakub Jelinek <jakub@redhat.com>
1865 * configure.in: Check for -fno-section-anchors in addition to
1866 -fno-toplevel-reorder.
1868 2008-04-11 Ulrich Drepper <drepper@redhat.com>
1870 * include/features.h (__GLIBC_MINOR__): Bump to 8.
1872 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1873 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1874 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1875 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1876 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1877 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1879 2008-04-11 Jakub Jelinek <jakub@redhat.com>
1882 * time/era.c: Transform __libc_setlocale_lock into rwlock.
1883 * time/alt_digit.c: Likewise.
1884 * wcsmbs/wcsmbsload.c: Likewise.
1886 2008-04-10 Ulrich Drepper <drepper@redhat.com>
1888 * version.h (VERSION): Bump to 2.8.
1890 * timzeone/asia: Update from tzdata2008b.
1891 * timezone/backward: Likewise.
1892 * timezone/europe: Likewise.
1893 * timezone/northamerica: Likewise.
1894 * timezone/southamerica: Likewise.
1895 * timezone/iso3166.tab: Likewise.
1896 * timezone/leapseconds: Likewise.
1897 * timezone/zone.tab: Likewise.
1898 * timezone/private.h: Update from tzcode2008a.
1899 * timezone/zdump.c: Likewise.
1900 * timezone/zic.c: Likewise.
1902 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1905 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1906 Define additonal Data Cache Block instruction macros.
1907 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1908 Replace dcbst with dcbf and sync with sync/isync.
1910 2008-02-21 Alan Modra <amodra@bigpond.net.au>
1912 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1913 Always set ELF_RTYPE_CLASS_PLT.
1914 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1916 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
1918 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1919 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1920 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1921 For ISA 2.01 and later replace mftb with mfspr 268.
1923 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1926 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1927 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1929 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
1932 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1933 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1934 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1935 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1937 2008-04-10 Jakub Jelinek <jakub@redhat.com>
1939 * stdlib/tst-makecontext.c (othervar): New variable.
1940 (cf): Test sign extending the argument to long.
1942 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
1944 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1945 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1946 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1947 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1948 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1949 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1950 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1952 2008-02-22 Alan Modra <amodra@bigpond.net.au>
1954 * elf/Makefile (tests): Substitute tests-vis-yes here.
1955 (tests-vis-yes): Delete.
1956 (modules-name, modules-vis-yes): Similarly.
1958 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
1961 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1962 Preserve sign in signgamp when x is zero.
1964 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
1966 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1967 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1968 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1969 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1970 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1971 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1973 2008-04-09 Ulrich Drepper <drepper@redhat.com>
1976 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
1980 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
1981 a reserved error value.
1983 * stdlib/tst-makecontext.c: Change parameter to cf to negative
1984 value to check for correct sign extension.
1987 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1988 Copy 64-bit parameter values even though this is not required in
1991 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
1994 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
1996 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
1999 2008-04-09 Jakub Jelinek <jakub@redhat.com>
2001 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2003 2008-04-09 Ulrich Drepper <drepper@redhat.com>
2006 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2007 in line-buffered stream failed.
2008 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2010 2008-04-08 Ulrich Drepper <drepper@redhat.com>
2013 * scripts/abi-versions.awk: If the version specified by
2014 --enable-oldest-abi is older than the first version for this
2015 architecture, use the default version.
2017 * locale/programs/ld-collate.c (collate_read): Ignore script lines
2018 as well when ignoring the whole category.
2020 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2023 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2024 ETHERTYPE_* definitions.
2025 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2027 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2029 * stdlib/mbtowc.c (__no_r_state): Remove.
2030 (mbtowc): New static state variable. Use it instead of
2032 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2033 (__wctomb_state): New hidden variable.
2034 (wctomb): Use __wctomb_state instead of __no_r_state.
2035 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2036 (__wctomb_state): New extern decl.
2037 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2039 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2042 * resolv/res_init.c: Handle scope IDs in resolv.conf.
2044 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2046 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2048 2008-04-06 Ulrich Drepper <drepper@redhat.com>
2050 * po/nl.po: Update from translation team.
2052 2008-03-31 Ulrich Drepper <drepper@redhat.com>
2055 * string/strfry.c: Handle empty strings again.
2057 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2060 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2061 before looking for translation.
2062 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2063 * locale/freelocale.c: Likewise.
2064 * locale/newlocale.c: Likewise.
2065 * locale/setlocale.c: Likewise.
2066 Based partially on a patch by ryo@np.css.fujitsu.com.
2068 2008-03-30 Jakub Jelinek <jakub@redhat.com>
2070 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2071 acquiring wrlock. Do conv_tab allocation while holding lock.
2072 * intl/Makefile: Add rules to build and run tst-gettext6.
2073 * intl/tst-gettext6.c: New test.
2074 * intl/tst-gettext6.sh: New file.
2076 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2078 * po/nl.po: Update from translation team.
2080 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2081 provided through st_blksize, try the default size before giving up.
2083 2008-03-29 Ulrich Drepper <drepper@redhat.com>
2085 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2088 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2090 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2091 error message. POSIX today does not require the messages to be in
2092 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
2095 * sunrpc/auth_unix.c: Unify printed strings.
2096 * sunrpc/clnt_tcp.c: Likewise.
2097 * sunrpc/clnt_udp.c: Likewise.
2098 * sunrpc/clnt_unix.c: Likewise.
2099 * sunrpc/svc_tcp.c: Likewise.
2100 * sunrpc/svc_udp.c: Likewise.
2101 * sunrpc/svc_unix.c: Likewise.
2102 * sunrpc/xdr.c: Likewise.
2103 * sunrpc/xdr_array.c: Likewise.
2104 * sunrpc/xdr_rec.c: Likewise.
2105 * sunrpc/xdr_ref.c: Likewise.
2106 * locale/programs/ld-time.c (time_finish): Unify messages.
2107 * locale/programs/locfile.c (handle_copy): Fix typo.
2108 * nscd/nscd.c (options): Fix typo.
2111 * stdlib/strtod_l.c: Use correct sign for result in one more
2113 Patch by Eric Blake <ebb9@byu.net>.
2115 2008-03-27 Jakub Jelinek <jakub@redhat.com>
2117 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2118 and creat system calls.
2119 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2121 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2123 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2124 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2125 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2127 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2129 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2130 <linux/limits.h> has defined it.
2131 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2132 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2134 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2135 it instead of ARG_MAX.
2137 2008-03-25 Jakub Jelinek <jakub@redhat.com>
2139 * posix/gai.conf: Fix comment for scope nullbits.
2140 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2141 default to 128 bits for v4 mapped addresses.
2143 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2145 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2146 ptrace call to get the ieee_instruction_pointer from the kernel.
2147 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2148 ptrace call to set the ieee_instructtion_pointer.
2149 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2150 Add comment that ieee_instruction_pointer is always 0.
2152 2008-03-09 Andreas Jaeger <aj@suse.de>
2155 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2156 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2157 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2159 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2160 (rint_test): Likewise.
2162 2008-03-24 Ulrich Drepper <drepper@redhat.com>
2164 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2166 (__nisfind_server): Similar for open readColdStartFile call.
2167 Patch partially by Jim Meyering.
2168 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2169 around internal_setent call.
2171 * po/vi.po: New Vietnamese translation.
2173 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2176 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2177 remove CLONE_STOPPED.
2179 2008-02-10 Jim Meyering <meyering@redhat.com>
2181 Remove useless "if" before "free":
2182 * elf/ldconfig.c (parse_conf_include): Likewise.
2183 * gmon/gmon.c (weak_alias): Likewise.
2184 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2185 * inet/rcmd.c (__validuser2_sa): Likewise.
2186 * intl/bindtextdom.c (set_binding_values): Likewise.
2187 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2188 * libio/genops.c (save_for_backup): Likewise.
2189 * libio/wgenops.c (save_for_wbackup): Likewise.
2190 * locale/programs/ld-collate.c (collate_read): Likewise.
2191 * locale/programs/linereader.c (get_string): Likewise.
2192 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2193 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2194 * resolv/res_debug.c (do_section): Likewise.
2195 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2196 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2197 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2198 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2199 * time/tzset.c (tzset_internal): Likewise.
2201 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2203 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2206 2008-03-11 Ulrich Drepper <drepper@redhat.com>
2209 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2210 not stream for output file. Open output file here.
2211 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2212 and output file name.
2213 (process_fd): Likewise.
2214 (process_file): Likewise.
2215 (main): Adjust callers of changed functions.
2216 * iconv/iconv_prog.h: Adjust prototype.
2218 2008-03-09 Andreas Jaeger <aj@suse.de>
2221 * sysdeps/ia64/ieee754.h: Use protected namespace
2222 __BIG_ENDIAN/__LITTLE_ENDIAN.
2223 * sysdeps/ieee754/ieee754.h: Likewise.
2224 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2226 2008-03-08 Roland McGrath <roland@frob.com>
2228 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2229 ignore a signal that came from a machine exception, treat it as a
2230 fatal core-dump signal instead.
2231 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2233 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2234 Clear DF bit in thread state's eflags.
2235 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2237 2008-03-08 Ulrich Drepper <drepper@redhat.com>
2240 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2241 of NAN(...) sequence.
2242 * stdlib/Makefile (tests): Add tst-strtod6.
2243 * stdlib/tst-strtod6.c: New file.
2245 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2248 * posix/getopt.c (_getopt_internal_r): Clarify error message by
2249 putting offending option character in quotes. Clean up error
2251 * po/be.po: Adjust msgstr in translation file.
2252 * po/bg.po: Likewise.
2253 * po/ca.po: Likewise.
2254 * po/cs.po: Likewise.
2255 * po/da.po: Likewise.
2256 * po/de.po: Likewise.
2257 * po/es.po: Likewise.
2258 * po/fr.po: Likewise.
2259 * po/hr.po: Likewise.
2260 * po/ko.po: Likewise.
2261 * po/nl.po: Likewise.
2262 * po/rw.po: Likewise.
2263 * po/sk.po: Likewise.
2264 * po/sv.po: Likewise.
2265 * po/tr.po: Likewise.
2266 * po/zh_CN.po: Likewise.
2267 * po/zh_TW.po: Likewise.
2270 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2271 Patch by Roland Bless <roland@bless.de>.
2273 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2275 * elf/Makefile (routines): Add dl-sysdep.
2276 (elide-routines.os): Likewise.
2278 2008-03-07 Ulrich Drepper <drepper@redhat.com>
2281 * elf/dl-sysdep.c: Undefine ROUND after use.
2282 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2283 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2284 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2285 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2287 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2288 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2290 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2292 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2293 _dl_tls_get_addr_soft element.
2294 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2295 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2296 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2298 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2299 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2300 of internal_function.
2302 * stdlib/Makefile (aux): Add tens_in_limb.
2303 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2304 * stdlib/tens_in_limb.c: ...here. New file.
2307 * sysdeps/unix/sysv/linux/pathconf.h: Declare
2308 __statfs_chown_restricted.
2309 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2310 for _PC_CHOWN_RESTRICTED.
2311 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2312 Implement __statfs_chown_restricted.
2313 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2314 _POSIX_CHOWN_RESTRICTED value to zero.
2315 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2318 * sysdeps/x86_64/rtld-memset.c: New file.
2320 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
2322 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2324 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2325 Barcelona machine. Make default fall through branch of
2326 __x86_64_preferred_memory_instruction check as the integer code path.
2328 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2330 * sysdeps/x86_64/cacheinfo.c
2331 (__x86_64_preferred_memory_instruction): New variable.
2332 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2334 * sysdeps/x86_64/memset.S: Rewrite.
2336 2008-03-04 Jakub Jelinek <jakub@redhat.com>
2338 * include/stdio.h (__asprintf_chk, __dprintf_chk,
2339 __obstack_printf_chk): New prototypes.
2340 (__vasprintf_chk, __vdprintf_chk,
2341 __obstack_vprintf_chk): Likewise.
2342 Add libc_hidden_proto.
2344 (_IO_obstack_jumps): No longer static, add attribute_hidden.
2345 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2346 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2347 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2348 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2349 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2350 __obstack_vprintf_chk): New prototypes.
2351 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2352 obstack_vprintf): New inlines.
2353 * debug/dprintf_chk.c: New file.
2354 * debug/vdprintf_chk.c: New file.
2355 * debug/asprintf_chk.c: New file.
2356 * debug/vasprintf_chk.c: New file.
2357 * debug/obprintf_chk.c: New file.
2358 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2359 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2360 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2362 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2363 vdprintf_chk and obprintf_chk, set CFLAGS for them.
2364 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2365 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2367 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2368 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2369 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2370 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2371 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2373 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2374 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2375 obstack_vprintf_chk.
2376 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2377 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2378 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2379 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2380 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2381 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2383 2008-03-04 Ulrich Drepper <drepper@redhat.com>
2386 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2387 Patch by Roy Marples <roy@marples.name>.
2390 * malloc/malloc.c: Fix typo in comment.
2393 * locale/iso-639.def: Add Shuswap.
2395 2008-02-25 Jakub Jelinek <jakub@redhat.com>
2398 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2399 overwrite *h_errnop/*errnop values from getanswer_r in case of
2402 2008-03-03 Ulrich Drepper <drepper@redhat.com>
2405 * nscd/connections.c (dbs): Add initializers for .suggested_module.
2406 (verify_persistent_db): Remove one unnecessary test and add a new one
2407 for bad configuration.
2408 (nscd_init): Improve error reported when persistent database cannot
2410 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2411 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2412 .suggested_module and .max_db_size and case config file says the
2414 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2417 * nis/ypclnt.c (yp_order): Fix handling of return value of
2419 Patch by Jeff Moyer <jmoyer@redhat.com>.
2421 * po/fr.po: Update from translation team.
2423 2008-02-22 Andreas Jaeger <aj@suse.de>,
2424 Carlos O'Donell <carlos@systemhalted.org>
2427 * FAQ.in: Describe why glibc needs to be compiled with
2430 2008-02-19 Roland McGrath <roland@redhat.com>
2432 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2434 2008-02-15 Ulrich Drepper <drepper@redhat.com>
2437 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2438 __USE_MISC is defined.
2440 2008-02-10 Ulrich Drepper <drepper@redhat.com>
2442 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2443 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2445 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2446 timerfd_gettime, timerfd_settime.
2447 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2448 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2450 2008-02-08 Roland McGrath <roland@redhat.com>
2452 * elf/elf.h (NT_PPC_SPE): New macro.
2454 2008-02-06 Roland McGrath <roland@redhat.com>
2456 * Makerules ($(common-objpfx)sysd-rules):
2457 Depend on $(sysdep-makeconfigs).
2459 2008-01-31 Roland McGrath <roland@redhat.com>
2462 * configure.in: Use -print-file-name if it yields a directory,
2463 for each of include and include-fixed.
2464 * configure: Regenerated.
2466 * Makeconfig (sysd-rules-targets): New variable.
2467 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2468 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2470 2008-01-30 Roland McGrath <roland@redhat.com>
2472 * manual/libc.texinfo: Update back-cover text.
2474 * elf/elf.h (NT_386_TLS): New macro.
2476 2008-01-29 Roland McGrath <roland@redhat.com>
2478 * Makeconfig (sysd-rules-patterns): New variable.
2479 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2480 (check-inhibit-asm): New canned sequence, replaces ...
2481 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2482 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2483 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2484 (CFLAGS-rtld): Variable removed.
2486 2008-01-24 Roland McGrath <roland@redhat.com>
2488 * configure.in: Let configure fragments set base_os.
2489 * configure: Regenerated.
2491 2008-01-22 Ulrich Drepper <drepper@redhat.com>
2493 * po/ko.po: Update from translation team.
2495 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2497 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2499 2008-01-12 Andreas Jaeger <aj@suse.de>
2502 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2505 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2507 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2508 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2509 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2511 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
2513 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2514 * elf/dl-close.c (_dl_close): Check for it.
2515 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2516 (_dl_allocate_static_tls): Likewise.
2517 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2518 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2520 * elf/tst-tls16.c: New file.
2521 * elf/tst-tlsmod16a.c: New file.
2522 * elf/tst-tlsmod16b.c: New file.
2523 * elf/Makefile: Add rules to build and run tst-tls16.
2525 2008-01-16 Ulrich Drepper <drepper@redhat.com>
2528 * bits/shm.h: Fix comment describing shmid_ds.
2529 * sysdeps/gnu/bits/shm.h: Likewise.
2530 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2531 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2532 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2533 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2534 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2535 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2536 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2537 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2538 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2541 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2543 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2544 additional suffixes.
2545 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2546 Add optional functions mq_timedreceive and mq_timedsend.
2547 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2548 * conform/data/pthread.h-data: Fix prototype of
2549 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2550 * conform/data/semaphore.h-data: Allow time.h definitions.
2551 * conform/data/signal.h-data: Likewise.
2552 * conform/data/stdio.h-data: getw and putw are not required in v6.
2553 * conform/data/stdlib.h-data: Change setstate prototype.
2554 * conform/data/string.h-data: Fix strerror_r prototype.
2555 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2556 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2557 Fix readlink prototype.
2558 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2560 * inet/netinet/in.h: Cleanup namespace.
2561 * posix/regex.h: Likewise.
2562 * resolv/netdb.h: Likewise.
2563 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2564 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2565 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2566 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2567 of names of in in6_addr.
2568 (default_precedence): Likewise.
2569 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2572 2008-01-15 Ulrich Drepper <drepper@redhat.com>
2574 * conform/data/fmtmsg.h-data: Add missing allows.
2575 * conform/data/ftw.h-data: Likewise.
2576 * conform/data/inttypes.h-data: Likewise.
2577 * conform/data/math.h-data: Likewise.
2578 * conform/data/signal.h-data: Likewise.
2579 * conform/data/net/if.h-data: Likewise.
2580 * conform/data/netinet/in.h-data: Likewise.
2581 * conform/data/sys/socket.h-data: Likewise.
2584 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2585 (__strtok_r): Simplify.
2586 * string/tester.c (test_strtok_r): Add test case for futile search
2587 with single-character seach string.
2589 2008-01-12 Ulrich Drepper <drepper@redhat.com>
2591 * po/ko.po: Update from translation team.
2593 2008-01-11 Andreas Jaeger <aj@suse.de>
2596 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2597 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2600 2008-01-10 Ulrich Drepper <drepper@redhat.com>
2602 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2603 native interface lookup in all the relevant places.
2605 2008-01-10 Jakub Jelinek <jakub@redhat.com>
2606 Ulrich Drepper <drepper@redhat.com>
2608 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2609 field. Use sockaddr_in6 for source_addr.
2610 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2611 (match_prefix): Likewise.
2612 (get_label): Likewise.
2613 (get_precedence): Likewise.
2614 (rfc3484_sort): Change to use indirect access to results array.
2615 Adjust to use of sockaddr_in6. Replace service_order test with
2616 simple index comparison.
2617 (getaddrinfo): Define order array. Initialize it. Don't initialize
2618 service_order field. Adjust qsort_t calls. Access sorted result
2619 array indirectly through order array.
2620 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2621 * posix/tst-rfc3484-2.c: Likewise.
2622 * posix/tst-rfc3484-3.c: Likewise.
2624 2008-01-09 Ulrich Drepper <drepper@redhat.com>
2627 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2629 Patch by André Cruz.
2632 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2633 (clnt_spcreateerror): Likewise.
2636 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2637 (public_mEMALIGn): Likewise.
2638 Patch mostly by Daniel Jacobowitz.
2640 2008-01-09 Jakub Jelinek <jakub@redhat.com>
2642 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2643 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2644 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2645 * stdlib/tst-makecontext2.c: New test.
2647 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2649 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2651 (REINIT_PARAMS): Likewise. Undefine before end of file.
2652 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2653 transliteration hooks and REINIT_PARAMS afterwards.
2654 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2656 (REINIT_PARAMS): Define.
2657 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2658 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2659 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2660 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2661 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2662 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2663 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2664 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2665 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2666 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2667 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2668 * iconvdata/tst-iconv7.c: New test.
2670 2008-01-07 Ulrich Drepper <drepper@redhat.com>
2672 * libio/stdio.h (vscanf): Fix definition for loser compilers.
2674 2008-01-05 Jakub Jelinek <jakub@redhat.com>
2677 * nscd/connections.c (restart): Fix condition.
2679 2008-01-03 Jakub Jelinek <jakub@redhat.com>
2681 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2682 __ctype_toupper_loc): Add __THROW.
2684 2008-01-02 Ulrich Drepper <drepper@redhat.com>
2686 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2687 recognition of interface family.
2689 * posix/getconf.c: Update copyright year.
2690 * nss/getent.c: Likewise.
2691 * iconv/iconvconfig.c: Likewise.
2692 * iconv/iconv_prog.c: Likewise.
2693 * elf/ldconfig.c: Likewise.
2694 * catgets/gencat.c: Likewise.
2695 * csu/version.c: Likewise.
2696 * elf/ldd.bash.in: Likewise.
2697 * elf/sprof.c (print_version): Likewise.
2698 * locale/programs/locale.c: Likewise.
2699 * locale/programs/localedef.c: Likewise.
2700 * nscd/nscd.c (print_version): Likewise.
2701 * debug/xtrace.sh: Likewise.
2702 * malloc/memusage.sh: Likewise.
2703 * malloc/mtrace.pl: Likewise.
2704 * debug/catchsegv.sh: Likewise.
2706 2007-12-26 Ulrich Drepper <drepper@redhat.com>
2708 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2711 2007-12-23 Ulrich Drepper <drepper@redhat.com>
2713 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2714 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2716 2007-12-17 Roland McGrath <roland@redhat.com>
2718 * inet/ether_line.c (ether_line): Remove unused variable.
2720 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2722 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2724 * login/openpty.c (openpty): Likewise.
2725 * login/pty.h (openpty, forkpty): Likewise.
2726 * manual/terminal.texi (openpty, forkpty): Likewise.
2728 2007-12-17 Ulrich Drepper <drepper@redhat.com>
2730 * malloc/malloc.c (public_cALLOc): For arenas other than
2731 main_arena, count all bytes inside the mprotect_size range of the
2732 heap as uninitialized.
2734 2007-12-16 Ulrich Drepper <drepper@redhat.com>
2736 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2739 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2740 mTRIm for all of them.
2741 (mTRIm): Additionally iterate over all free blocks and use madvise
2742 to free memory for all those blocks which contain at least one
2744 * malloc/tst-trim1.c: New file.
2745 * malloc/Makefile (tests): Add tst-trim1.
2747 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2749 2007-12-14 Ulrich Drepper <drepper@redhat.com>
2751 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2752 First cast argument to long
2753 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2755 (__vdso_clock_gettime): Likewise.
2756 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2759 2007-12-13 Ulrich Drepper <drepper@redhat.com>
2761 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2762 * locale/nl_langinfo_l.c: Real implementation, copied from
2764 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2766 2007-12-01 Jim Meyering <meyering@redhat.com>
2768 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2769 that would inhibit utf8-optimization of a regexp containing line-
2770 or buffer-anchors, e.g., `^', `$'.
2772 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2774 * time/bug-getdate1.c (do_test): Don't use century values which
2775 aren't valid on 32-bit systems.
2777 2007-12-12 Jakub Jelinek <jakub@redhat.com>
2779 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2780 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2781 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2782 __strcat_g, __strncat_g): Add __asm__.
2784 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2787 * io/fchmodat.c: Fix typo in stub_warning use.
2788 Patch by Petr Salinger.
2790 2007-12-11 Ulrich Drepper <drepper@redhat.com>
2792 * iconvdata/hp-thai8.c: New file.
2793 * iconvdata/Makefile: Add rules for hp-thai8.c.
2794 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2795 * iconvdata/gconv-modules: Likewise.
2798 * iconvdata/hp-greek8.c: New file.
2799 * iconvdata/Makefile: Add rules for hp-greek8.c.
2800 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2801 * iconvdata/gconv-modules: Likewise.
2804 * iconvdata/hp-turkish8.c: New file.
2805 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2806 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2807 * iconvdata/gconv-modules: Likewise.
2809 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2810 (shrink_heap): ... this new function.
2811 (heap_trim): Call shrink_heap instead of grow_heap.
2813 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2814 case don't call alloc_perturb.
2816 2007-12-10 Ulrich Drepper <drepper@redhat.com>
2818 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2820 * sysdeps/unix/sysv/linux/kernel-features.h
2821 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2822 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2824 2007-12-08 Ulrich Drepper <drepper@redhat.com>
2827 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2828 * stdio-common/Makefile (tests): Add bug22.
2829 * stdio-common/bug22.c: New file.
2832 * time/getdate.c: Fix filling in default values.
2833 * time/bug-getdate1.c: New file.
2834 * time/Makefile: Add rules to build and run bug-getdate1.
2836 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2837 * iconvdata/ebcdic-es.c: Likewise.
2838 * iconvdata/ebcdic-es-a.c: Likewise.
2839 * iconvdata/ebcdic-uk.c: Likewise.
2840 * iconvdata/iso8859-16.c: Likewise.
2841 * iconvdata/viscii.c: Likewise.
2842 * iconvdata/iso8859-9e.c: Likewise.
2843 * iconvdata/Makefile: Adjust appropriately.
2846 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2849 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2852 * iconvdata/hp-roman9.c: New file.
2853 * iconvdata/Makefile: Add rules for hp-roman9.c.
2854 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2855 * iconvdata/gconv-modules: Likewise.
2857 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2858 * iconvdata/Makefile: Adjust appropriately.
2861 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2862 structure, it's allocated with alloca.
2863 * stdio-common/Makefile (tests): Add bug21.
2864 * stdio-common/bug21.c: New file.
2866 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
2869 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2870 keyword for gcc's braced-groups.
2872 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2875 * inet/ether_line.c: Strip hostname of whitespaces.
2876 * inet/Makefile (tests): Add tst-ether_line.
2877 * inet/tst-ether_line.c: New file.
2879 2007-12-03 Ulrich Drepper <drepper@redhat.com>
2882 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2885 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2887 * stdlib/tst-setcontext.c: Catch the case where the links gets
2888 messed up and we do not reach main again.
2890 * po/ca.po: Update from translation team.
2892 2007-11-26 Ulrich Drepper <drepper@redhat.com>
2894 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2895 * posix/regex.h (REG_ENOSYS): Likewise.
2896 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2898 2007-11-25 Ulrich Drepper <drepper@redhat.com>
2900 * nscd/nscd.h (MAX_STACK_USE): Define.
2901 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2902 (gc): Initialize stack_used based on allocation in prune_cache.
2903 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2904 Clear array before use.
2906 * nscd/aicache.c (addhstaiX): Update statistics counter in case
2907 memory allocation failed.
2908 * nscd/hstcache.c (cache_addhst): Likewise.
2909 * nscd/grpcache.c (cache_addgr): Likewise.
2910 * nscd/servicescache.c (cache_addserv): Likewise.
2911 * nscd/pwdcache.c (cache_addpw): Likewise.
2912 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2914 2007-11-23 Ulrich Drepper <drepper@redhat.com>
2916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2917 and creat system calls.
2919 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2921 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
2923 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2925 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2926 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2928 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2929 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2930 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2932 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
2934 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2935 strncat): Define as macros to avoid compile errors.
2937 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
2940 2007-11-22 Ulrich Drepper <drepper@redhat.com>
2943 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2944 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
2945 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
2947 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2949 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
2950 Return zero in case the thread library is not NPTL.
2953 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2954 initializing interface list.
2957 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2958 use result of nss_getgrgid_r if nothing was found. For other
2959 error return with a failure.
2960 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2962 * locale/programs/ld-collate.c (collate_read): Fix loop to match
2965 2007-11-19 Ulrich Drepper <drepper@redhat.com>
2967 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2968 (get_scope): For IPv4 scope, use scopes table.
2969 (fini): Free scopes table if necessary.
2970 (free_scopelist): New function.
2971 (scopecmp): New function.
2972 (gaiconf_init): Also handle scopev4 entries.
2973 * posix/tst-rfc3484.c (do_test): Initialize scopes.
2974 * posix/tst-rfc3484-2.c (do_test): Likewise.
2975 * posix/gai.conf: Document scopev4 defaults.
2976 * posix/Makefile (tests): Add tst-rfc3484-3.
2977 * posix/tst-rfc3484-3.c: New file.
2979 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
2981 * posix/gai.conf: Update for current default tables.
2983 2007-11-19 Ulrich Drepper <drepper@redhat.com>
2985 * po/tr.po: Update from translation team.
2987 2007-11-18 Roland McGrath <roland@frob.com>
2989 * manual/arith.texi (Remainder Functions): Spelling fix.
2990 From Shaun Silk <genix@mysoul.com.au>.
2992 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2994 2007-11-17 Ulrich Drepper <drepper@redhat.com>
2996 * po/zh_CN.po: Update from translation team.
2998 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2999 Add sys/signalfd.h and sys/eventfd.h.
3001 2007-11-15 Bruno Haible <bruno@clisp.org>
3004 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3006 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3007 (DCIGETTEXT): Change the allocation of the 'search' variable so that
3008 it needs only fixed stack space. Delay the initialization of
3009 msgid_len until it is needed.
3011 2007-11-15 Andreas Jaeger <aj@suse.de>
3013 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3014 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3016 2007-11-15 Ulrich Drepper <drepper@redhat.com>
3018 * po/ko.po: Update from translation team.
3020 2007-11-14 Ulrich Drepper <drepper@redhat.com>
3022 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3023 significantly. The device type is also part of the ifinfomsg data.
3025 * po/sv.po: Update from translation team.
3026 * po/nl.po: Likewise.
3028 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3029 to wake up in 24 hours.
3031 * nscd/gai.c (__ioctl): Define. Include check_native.c.
3033 2007-11-13 Ulrich Drepper <drepper@redhat.com>
3035 * po/cs.po: Update from translation team.
3036 * po/pl.po: Likewise.
3038 * include/ifaddrs.h: Remove in6ai_temporary.
3039 (struct in6addrinfo): Add index element.
3040 Declare __check_native.
3041 * inet/Makefile (aux): Add check_native.
3042 * sysdeps/unix/sysv/linux/check_native.c: New file.
3043 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3044 IFA_F_TEMPORARY. Pass back ifa_index.
3045 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3046 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
3047 call __check_native if necessary.
3048 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
3049 to sort addresses. Pass information about the results.
3050 * posix/tst-rfc3484.c: Adjust for addition of index field and change
3051 of rfc3484_sort interface.
3052 * posix/tst-rfc3484-2.c: Likewise.
3054 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
3055 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3057 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3058 (qsort_r): Renamed from qsort. Take additional parameter and pass it
3059 on as third parameter to compare function and _quicksort.
3060 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3061 to the compare function.
3062 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3063 * Versions.def: Add GLIBC_2.8 for libc.
3065 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3066 * posix/tst-rfc3484-2.c: Likewise.
3068 * include/kernel-features.h: Moved to...
3069 * sysdeps/mach/hurd/kernel-features.h: ...here.
3071 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3073 * sysdeps/i386/i586/memcpy_chk.S: New file.
3074 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3075 * sysdeps/i386/i586/memset_chk.S: Likewise.
3077 2007-11-12 Ulrich Drepper <drepper@redhat.com>
3079 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3080 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3081 list of interfaces. Also store prefix length.
3082 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3083 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3084 prefix if source and destination address are in the same subnet.
3085 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
3086 Always look for matching record in in6ai list.
3087 Correct source_addr_len value for IPv6->IPv4 converted records.
3089 2007-11-11 Roland McGrath <roland@frob.com>
3091 * include/kernel-features.h: New file.
3093 2007-11-10 Ulrich Drepper <drepper@redhat.com>
3095 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3096 complications for 64-bit platforms.
3098 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3099 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
3100 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3102 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3104 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3105 * sysdeps/wordsize-64/alphasort.c: New file.
3106 * sysdeps/wordsize-64/alphasort64.c: New file.
3107 * sysdeps/wordsize-64/fseeko.c: New file.
3108 * sysdeps/wordsize-64/fseeko64.c: New file.
3109 * sysdeps/wordsize-64/ftello.c: New file.
3110 * sysdeps/wordsize-64/ftello64.c: New file.
3111 * sysdeps/wordsize-64/ftw.c: New file.
3112 * sysdeps/wordsize-64/ftw64.c: New file.
3113 * sysdeps/wordsize-64/iofgetpos.c: New file.
3114 * sysdeps/wordsize-64/iofgetpos64.c: New file.
3115 * sysdeps/wordsize-64/iofopen.c: New file.
3116 * sysdeps/wordsize-64/iofopen64.c: New file.
3117 * sysdeps/wordsize-64/iofsetpos.c: New file.
3118 * sysdeps/wordsize-64/iofsetpos64.c: New file.
3119 * sysdeps/wordsize-64/lockf.c: New file.
3120 * sysdeps/wordsize-64/lockf64.c: New file.
3121 * sysdeps/wordsize-64/mkostemp.c: New file.
3122 * sysdeps/wordsize-64/mkostemp64.c: New file.
3123 * sysdeps/wordsize-64/mkstemp.c: New file.
3124 * sysdeps/wordsize-64/mkstemp64.c: New file.
3125 * sysdeps/wordsize-64/scandir.c: New file.
3126 * sysdeps/wordsize-64/scandir64.c: New file.
3127 * sysdeps/wordsize-64/tmpfile.c: New file.
3128 * sysdeps/wordsize-64/tmpfile64.c: New file.
3129 * sysdeps/wordsize-64/versionsort.c: New file.
3130 * sysdeps/wordsize-64/versionsort64.c: New file.
3131 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3132 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3133 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3134 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3135 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3136 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3137 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3138 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3139 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3140 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3141 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3142 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3144 * crypt/sha256-crypt.c: Fix a comment.
3145 * crypt/sha512-crypt.c: Likewise.
3147 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3149 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3151 2007-11-07 Ulrich Drepper <drepper@redhat.com>
3154 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3155 because output buffer is too small break, don't loop.
3156 * iconvdata/Makefile (tests): Add bug-iconv6.
3157 * iconvdata/bug-iconv6.c: New file.
3159 2007-11-06 Ulrich Drepper <drepper@redhat.com>
3161 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3163 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3164 size_t. Add casts where needed.
3166 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3167 old headers, don't call avc_has_perm if we don't have the
3168 permission information.
3170 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3172 * elf/rtld.c (dl_main): Use the page size to find the map start.
3174 2007-11-05 Ulrich Drepper <drepper@redhat.com>
3176 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3177 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3179 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3180 when the lookup call failed.
3182 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3183 Add prune_cond and wakeup_time.
3184 (CACHE_PRUNE_INTERNAL): Define.
3185 Update declarations of prune_cache and setup_thread.
3186 * nscd/connections.c (dbs): Update initializers.
3187 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3188 (nscd_init): Default number of threads is now 4.
3189 (invalidate_cache): Take lock before calling prune_cache.
3190 (handle_request): If SELinux forbids the request, say so.
3191 (readylist_cond): Use static initializer.
3192 (nscd_run_prune): New function. Used only by pruning threads.
3193 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3195 (fd_ready): Update nscd_run reference.
3196 (start_threads): No need to initialize readylist_cond.
3197 Start pruning threads separately.
3198 * nscd/nscd_setup_thread.c: Change return value type to int and always
3200 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3201 to int and return nonzero value if we can use the TID address hack.
3202 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3203 the database is later than the new entry's timeout, update the
3204 wakeup time and wake the cleanup thread.
3205 (prune_cache): Return seconds the next entry in the database is still
3206 valid. Remove locking for pruning here.
3207 * nscd/nscd.conf: Document default number of threads.
3209 2007-10-31 Ulrich Drepper <drepper@redhat.com>
3211 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3212 stack is properly aligned for the target function.
3213 Correct unwind info.
3215 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3216 when using auditing libraries.
3218 2007-10-29 Ulrich Drepper <drepper@redhat.com>
3220 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3221 _nss_dns_getnetbyaddr2_r.
3222 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3223 extra parameter to getanswer_r.
3224 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3225 _nss_dns_getnetbyaddr2_r.
3227 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3229 * nscd/gethstbynm2_r.c: Remove.
3230 * nscd/gethstbynm3_r.c: New file.
3231 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3233 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
3234 __gethostbyaddr_r compatibility wrapper.
3235 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
3236 determining timeout of entry.
3237 (lookup): Take new parameter and pass it to __gethostbyname3_r and
3239 (addhstbyX): Pass reference to variable for TTL to lookup and
3241 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3242 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3243 and __nss_next2. Remove __nss_services_lookup.
3244 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
3246 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3248 * nss/getXXent_r.c: Likewise.
3249 * nss/getnssent_r.c: Likewise.
3250 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3251 does not exist in module, try the optional second name.
3252 (__nss_next2): New function.
3253 (__nss_next): Now wrapper around __nss_next2.
3254 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3255 Declare __nss_next2.
3256 Adjust definition of db_lookup_function type.
3257 * nss/service-lookup.c: Define NO_COMPAT.
3258 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3259 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3260 * inet/ether_ntoh.c: Likewise.
3261 * sunrpc/netname.c: Likewise.
3262 * sunrpc/publickey.c: Likewise.
3263 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3264 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3265 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3266 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3267 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3269 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3271 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3273 2007-10-28 Ulrich Drepper <drepper@redhat.com>
3276 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3277 * crypt/sha512c-test.c: Likewise.
3280 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3281 to keep track of end of %[ format string element.
3282 * stdio-common/Makefile (tests): Add bug20.
3283 * stdio-common/bug20.c: New file.
3286 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3287 path elements in counting mode.
3289 2007-10-27 Andreas Jaeger <aj@suse.de>
3292 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3295 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3296 (__cleanup): Free shared library when exiting.
3297 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3298 (__cleanup): Free shared library when exiting.
3300 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
3303 * math/libm-test.inc (check_float_internal): Support
3304 denormalized return.
3306 2007-10-23 Andreas Jaeger <aj@suse.de>
3309 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3310 __LONG_LONG_PAIR to handle little endian byte order.
3311 Suggested by abhishekrai@google.com
3313 2007-10-27 Ulrich Drepper <drepper@redhat.com>
3315 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3317 2007-10-26 Ulrich Drepper <drepper@redhat.com>
3319 * nscd/cache.c (prune_cache): Move test for modified file outside
3322 2007-10-21 Andreas Jaeger <aj@suse.de>
3324 * manual/texinfo.tex: Update to latest version.
3326 * manual/sysinfo.texi (System Parameters): Fix Formatting.
3328 * manual/arith.texi (Status bit operations): Fix formatting.
3330 * manual/errno.texi (Error Messages): Fix formatting.
3332 * manual/sysinfo.texi (System Parameters): Fix formatting.
3334 * manual/libc.texinfo: Update VERSION and UPDATED.
3336 2007-10-19 Roland McGrath <roland@redhat.com>
3338 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3340 2007-10-06 David S. Miller <davem@davemloft.net>
3342 * configure.in: Add sparcv9v2 and sparc64v2.
3343 * scripts/config.sub: Likewise.
3344 * configure: Regenerate.
3345 * elf/elf.h (HWCAP_SPARC_N2): New.
3346 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3347 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3348 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3349 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3350 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3351 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3352 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3354 2007-10-18 Ulrich Drepper <drepper@redhat.com>
3356 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3357 even if the poll result indicates there is data to read.
3358 Patch by Jeff Moyer <jmoyer@redhat.com>.
3360 2007-10-18 Roland McGrath <roland@redhat.com>
3362 * elf/elf.h (NT_PPC_VMX): New macro.
3364 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3366 * version.h (VERSION): Set to 2.7.90.
3368 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3370 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
3373 2007-10-17 Roland McGrath <roland@frob.com>
3375 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3376 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3378 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3380 * version.h (VERSION): Bump to 2.7.
3381 * include/features.h (__GLIBC_MINOR__): Bump to 7.
3384 * time/tzset.c (__tz_convert): Don't force testing for a change of
3385 TZ if not called from localtime. But then also see whether the
3386 file changed, in case __use_tzfile is set.
3388 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3389 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3390 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3391 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3392 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3393 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3394 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3395 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3397 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3399 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3400 and admin selects to be able to replace the gai.conf file, lock
3401 data structures around the qsort call.
3403 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3405 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3407 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
3408 too high for the improvements. Implement bzero unconditionally for
3411 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3412 Jakub Jelinek <jakub@redhat.com>
3414 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3415 even when time_t is 32-bit.
3416 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3417 timezone data read by __tzfile_default. Ensure __tzname[0] is
3418 always set after the search.
3420 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3422 * time/tzfile.c (__tzfile_read): Help the compiler recognize
3423 unreachable code on 32-bit machines.
3425 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3428 * time/strftime_l.c: Include stdbool.h.
3429 (my_strftime): New wrapper, old function renamed to...
3430 (__strftime_internal): ... new function. Add tzset_called
3431 argument, pass it down to recursive calls, don't call tzset ()
3432 if already true, set to true after call to tzset ().
3434 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3436 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3437 into account when copying TZ string.
3439 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3441 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3442 num_transition rather than num_transitions - 1.
3444 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3446 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3449 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3450 a local label rather than HIDDEN_JUMPTARGET.
3452 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3454 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3455 (init_cacheinfo): Initialize it.
3456 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3457 Always define bzero.
3458 Remove non-glibc code.
3459 * sysdeps/x86_64/bzero.S: Make an empty file.
3461 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3463 * sysdeps/x86_64/cacheinfo.c
3464 (__x86_64_preferred_memory_instruction): New.
3465 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3467 * sysdeps/x86_64/memset.S: Rewrite.
3469 2007-10-15 Roland McGrath <roland@redhat.com>
3471 * po/libc.pot: Regenerated.
3473 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3475 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3479 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3480 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3481 address record to T_A/T_AAAA requests.
3483 2007-10-14 Ulrich Drepper <drepper@redhat.com>
3485 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3487 * posix/glob.c: Add some branch prediction throughout.
3489 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3492 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3494 (rfc3484_sort): Make sure that even if qsort doesn't support
3495 stable sorting out sorting here is stable by comparing service_order.
3496 (getaddrinfo): Initialize service_order.
3497 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3498 service_order field to sorting structure.
3499 * posix/tst-rfc3484-2.c (do_test): Likewise.
3501 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3502 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3503 __tzset_parse_tz and updating of daylight, timezone, tzname into
3505 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3506 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3507 happens in __tz_compute.
3508 * time/tzfile.c (__tzfile_read): Also read TZ string.
3509 (find_transition): Fold into __tzfile_compute.
3510 (__tzfile_compute): For times beyond the last transition try to
3512 * timezone/tst-timezone.c: Information in daylight and tzname does
3513 change for Asia/Tokyo timezone with more concrete information.
3516 * include/stdio.h: Add libc_hidden_proto for ftello.
3517 * libio/ftello.c: Add libc_hidden_def.
3520 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3521 on the specified time and not the last entries in the file. Move
3522 code to determine tzname[] to...
3523 (find_transition): ...here. Add ugly guess for times before the
3526 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3529 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3531 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3532 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3533 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3534 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3536 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3537 read mechanism when there are no group members and avoid no-op
3538 read syscall in this case.
3541 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3542 (__readall): If reading failed due to EAGAIN error wait a bit
3543 and possibly try again.
3544 (__readvall): Likewise.
3546 2007-10-13 Bruno Haible <bruno@clisp.org>
3548 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3549 when we cannot recode the message.
3551 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3554 * libio/__freading.c (__freading): Don't return true for
3555 write-only streams. For read/write streams, check whether we
3556 performed a read operation already.
3557 * libio/Makefile (tests): Add tst-ext2.
3558 * libio/tst-ext2.c: New file.
3560 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3562 * locale/programs/repertoire.c (repertoire_read): Always free
3563 memory for repertoire file name [Coverity CID 270].
3565 * elf/cache.c (save_aux_cache): Free memory allocated for
3566 temporary file name [Coverity CID 267].
3568 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3570 * misc/Makefile (headers): Add bits/error.h.
3572 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3574 * posix/fnmatch_loop.c: Take rule index returned as part of
3575 findidx return value into account when accessing weights.
3576 * posix/regcomp.c: Likewise.
3577 * posix/regexec.c: Likewise.
3579 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3580 (skip_to): Fix problems with parameter of elifdef/elifndef.
3582 2007-10-11 Ulrich Drepper <drepper@redhat.com>
3584 * iconv/gconv_simple.c: Add some branch prediction.
3586 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3588 * locale/programs/ld-collate.c (collate_read): If ignore_content
3589 and nowtok is tok_define, eat any tok_eol tokens.
3591 2007-10-11 Jakub Jelinek <jakub@redhat.com>
3593 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3594 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3596 * inet/netinet/in.h: Don't include bits/socket.h.
3597 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3599 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3601 2007-10-10 Ulrich Drepper <drepper@redhat.com>
3603 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3605 * locale/programs/locfile-kw.gperf: Likewise.
3606 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3608 2007-10-10 Jakub Jelinek <jakub@redhat.com>
3610 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3611 (__find_specwc): Change into __extern_always_inline function.
3612 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3613 (__parse_one_specmb): Remove ps argument.
3614 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3615 Adjust __find_specmb and __parse_one_specmb callers.
3616 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3617 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3619 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3622 2007-10-09 Ulrich Drepper <drepper@redhat.com>
3624 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3625 with some Pentium Ds.
3627 2007-10-08 Ulrich Drepper <drepper@redhat.com>
3629 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3631 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3634 2007-10-07 Ulrich Drepper <drepper@redhat.com>
3637 * locale/C-time.c: Set week_1stday data to 19971201.
3638 * locale/programs/ld-time.c (time_finish): Default for
3639 first_workday is Monday.
3642 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3645 * posix/glob.c (glob): Recognize patterns starting \/.
3646 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3647 (main): Add test for pattern starting \/.
3649 * misc/error.h: Use __const instead of const.
3650 * misc/bits/error.h: Likewise.
3652 2007-10-07 Andreas Jaeger <aj@suse.de>
3654 * include/bits/error.h: New file.
3656 * misc/bits/error.h (error_at_line): Fix prototype.
3658 2007-10-06 Ulrich Drepper <drepper@redhat.com>
3661 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3662 more little bugs in creating the stack frame when pltexit has to
3665 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3666 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3669 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3670 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3671 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3672 * math/libm-test.inc: Add test for this case.
3675 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3676 (svc_register): Initialize sc_mapped. Set to TRUE if call to
3677 map service succeeded.
3678 (svc_is_mapped): New function.
3679 (svc_unregister): Use it before trying to unmap service.
3681 2007-10-05 Ulrich Drepper <drepper@redhat.com>
3683 * timezone/zic.c: Update from tzcode2007h.
3686 * timezone/africa: Update from tzdata2007h.
3687 * timezone/antarctica: Likewise.
3688 * timezone/asia: Likewise.
3689 * timezone/australasia: Likewise.
3690 * timezone/europe: Likewise.
3691 * timezone/leapseconds: Likewise.
3692 * timezone/northamerica: Likewise.
3693 * timezone/southamerica: Likewise.
3694 * timzeone/zone.tab: Likewise.
3697 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3700 * string/bits/string2.h (__strdup): Cast parameters to calloc to
3701 avoid warning with -Wconversion.
3702 (__strndup): Likewise.
3703 Half the patch by Christian Iseli <christian.iseli@licr.org>.
3706 * nscd/connections.c (restart): Don't resync if database is
3707 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3709 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3710 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
3712 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3713 evetnfd_read, eventfd_write.
3714 * sysdeps/unix/sysv/linux/eventfd.c: New file.
3715 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3716 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3717 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3718 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3719 eventfd_write for GLIBC_2.7.
3721 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3722 * sysdeps/unix/sysv/linux/signalfd.c: New file.
3723 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3724 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3726 2007-10-04 Jakub Jelinek <jakub@redhat.com>
3728 * stdlib/msort.c: Include stdint.h.
3729 (struct msort_param): New type.
3730 (msort_with_tmp): Use struct msort_param pointer for unchanging
3731 parameters. Add optimized handling for several common sizes
3732 and indirect sorting mode.
3733 (qsort): Adjust msort_with_tmp callers. For big S use indirect
3735 Suggested by Belazougui Djamel .
3737 * stdlib/Makefile (tests): Add tst-qsort2.
3738 * stdlib/tst-qsort2.c: New test.
3740 2007-10-04 Ulrich Drepper <drepper@redhat.com>
3742 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3743 for dup2 in case another thread races with the current one. Retry
3746 * misc/error.h: Remove support for use outside of libc. We have to
3747 include <features.h> now. Include <bits/error.h> if possible.
3748 * misc/bits/error.h: New file.
3750 2007-10-03 Jakub Jelinek <jakub@redhat.com>
3752 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3753 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3754 __extern_always_inline functions unconditionally, drop macros.
3756 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3757 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3758 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3760 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3761 add __artificial__ attribute.
3763 2007-10-02 Ulrich Drepper <drepper@redhat.com>
3765 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3766 backward to forward direction.
3768 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3771 * locale/programs/ld-collate.c (collate_finish): Compare against last
3772 used section which is known to have rules defined.
3773 (collate_read): After order_start, correctly record order of sections
3774 and queue sections up.
3776 2007-10-01 Ulrich Drepper <drepper@redhat.com>
3779 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3780 the same number of pages.
3781 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3783 * locale/programs/ld-collate.c (collate_read): After initial copy
3784 statement, continue in state 0.
3786 * include/stdio_ext.h (__fsetlocking): Define as macro.
3788 2007-09-30 Ulrich Drepper <drepper@redhat.com>
3790 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3793 * po/pt_BR.po: Fix typo.
3795 2007-09-29 Ulrich Drepper <drepper@redhat.com>
3797 * iconvdata/Makefile (modules): Add ISO8859-9E.
3798 (distribute): Add iso8859-9e.c.
3799 (gen-8bit-gap-modules): Add iso8859-9e.
3800 * iconvdata/iso8859-9e.c: New file.
3801 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3802 * iconvdata/TESTS: Likewise.
3803 * iconvdata/tst-tables.sh: Likewise.
3805 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3807 * locale/iso-639.def: Add several new entries.
3809 2007-09-24 Jakub Jelinek <jakub@redhat.com>
3811 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3812 void * pointers instead of struct link_map **.
3813 (_dl_scope_free): Change argument type to void *.
3814 * include/link.h (struct link_map): Change type of l_reldeps
3815 to struct link_map_reldeps, move l_reldepsact into that
3817 * elf/dl-deps.c: Include atomic.h.
3818 (_dl_map_object_deps): Only change l->l_initfini when it is
3819 fully populated, use _dl_scope_free for freeing it. Optimize
3820 removal of libs from reldeps by using l_reserved flag, when
3821 some removal is needed, allocate a new list instead of
3822 reallocating and free the old with _dl_scope_free. Adjust
3823 for l_reldeps and l_reldepsact changes.
3824 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3825 searching in l_initfini and l_reldeps without holding dl_load_lock.
3826 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3827 l_reldepsact changes.
3828 * elf/dl-close.c (_dl_close_worker): Likewise.
3829 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3831 2007-09-28 Ulrich Drepper <drepper@redhat.com>
3833 * iconvdata/Makefile (modules): Add KOI8-RU.
3834 (distribute): Add koi8-ru.c.
3835 (gen-8bit-gap-modules): Add koi8-ru.
3836 * iconvdata/koi8-ru.c: New file.
3837 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3838 * iconvdata/TESTS: Likewise.
3839 * iconvdata/tst-tables.sh: Likewise.
3841 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3843 2007-09-26 Jakub Jelinek <jakub@redhat.com>
3845 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3846 with __warning__/__error__ attributes.
3847 (__warnattr): Define.
3848 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3849 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3851 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3852 of __*_chk if compile time detectable overflow is found.
3853 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3854 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3856 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3857 instead of __*_chk if compile time detectable overflow is found.
3858 (__gets_alias): Rename to...
3859 (__gets_warn): ... this. Add __warnattr.
3860 (gets): Call __gets_warn instead of __gets_alias.
3861 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3862 aliases with __warnattr.
3863 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3864 time detectable overflow is found.
3865 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3866 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3867 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3868 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3869 __getdomainname_chk_warn): New aliases with __warnattr.
3870 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3871 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3872 __*_chk_warn instead of __*_chk if compile time detectable overflow
3874 (__getgroups_chk): Rename argument to __listlen from listlen.
3875 (__getwd_alias): Rename to...
3876 (__getwd_warn): ... this. Add __warnattr.
3877 (getwd): Call __getwd_warn instead of __getwd_alias.
3878 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3879 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3880 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3881 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3882 __wcsnrtombs_chk_warn): New aliases with __warnattr.
3883 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3884 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3885 compile time detectable overflow is found.
3886 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
3887 to use __*_chk or not.
3888 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3889 in comparisons which function should be called and in __*_chk*
3890 arguments. Call __*_chk_warn instead of __*_chk if compile time
3891 detectable overflow is found.
3892 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3894 * debug/tst-chk1.c (do_test): Add a few more tests.
3896 2007-09-24 Ulrich Drepper <drepper@redhat.com>
3899 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3900 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3901 (_nl_unload_domain): Finalize conversions_lock.
3902 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3903 handling table of known conversions.
3905 2007-09-24 Jakub Jelinek <jakub@redhat.com>
3907 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3908 close_not_cancel_no_status instead of close.
3910 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
3913 * posix/regcomp.c (lookup_collation_sequence_value): Check that
3914 nrules != 0 for multibyte chars.
3916 2007-09-23 Ulrich Drepper <drepper@redhat.com>
3918 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3919 Provide better error message in case the type is unknown.
3922 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3923 * string/stratcliff.c: Make usable to test wide char functions.
3924 * wcsmbs/wcsatcliff.c: New file.
3925 * wcsmbs/Makefiel (tests): Add wcsatcliff.
3928 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3929 (distribute): Add mac-centraleurope.c.
3930 (gen-8bit-gap-modules): Add mac-centraleurope.
3931 * iconvdata/mac-centraleurope.c: New file.
3932 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3933 * iconvdata/TESTS: Likewise.
3934 * iconvdata/tst-tables.sh: Likewise.
3937 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3939 2007-09-21 Ulrich Drepper <drepper@redhat.com>
3941 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3942 from __x86_64_core_cache_size_half.
3943 (init_cacheinfo): Compute shared cache size for AMD processors with
3944 shared L3 correctly.
3945 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3947 Patch in large parts by Evandro Menezes.
3949 2007-09-19 Ulrich Drepper <drepper@redhat.com>
3951 * elf/dl-lookup.c (add_dependency): Handle failing memory
3952 allocation for dependency list. Remove unnecessary check.
3954 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3955 open/close when determining source addresses.
3957 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3958 sha512-crypt, and sha512.
3959 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3960 (distribute): Add sha256.h and sha512.h.
3961 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3962 and call the appropriate code.
3963 * crypt/sha256-crypt.c: New file.
3964 * crypt/sha256.c: New file.
3965 * crypt/sha256.h: New file.
3966 * crypt/sha256c-test.c: New file.
3967 * crypt/sha256test.c: New file.
3968 * crypt/sha512-crypt.c: New file.
3969 * crypt/sha512.c: New file.
3970 * crypt/sha512.h: New file.
3971 * crypt/sha512c-test.c: New file.
3972 * crypt/sha512test.c: New file.
3974 2007-09-19 Jakub Jelinek <jakub@redhat.com>
3976 * misc/bits/syslog.h (syslog): Remove extraneous argument from
3977 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
3980 2007-09-18 Jakub Jelinek <jakub@redhat.com>
3982 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
3983 %as in fscanf format strings.
3985 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
3986 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3987 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
3989 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
3992 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
3993 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
3994 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
3995 * elf/dl-sym.c (do_sym): Likewise.
3996 * include/link.h (struct link_map): Add l_serial field.
3997 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
3998 * elf/dl-lookup.c (add_dependency): Add flags argument.
3999 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4000 flags, use THREAD_GSCOPE_RESET_FLAG before and
4001 THREAD_GSCOPE_SET_FLAG after
4002 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4003 Don't dereference map until it has been found on some list.
4004 If map->l_serial changed, return -1.
4006 2007-09-17 Jakub Jelinek <jakub@redhat.com>
4008 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4009 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4010 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4012 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4013 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4014 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4015 add libc_hidden_proto.
4016 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4017 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4018 conformance requested.
4019 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4020 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4021 conformance requested.
4022 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4023 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4024 conformance requested.
4025 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4026 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4027 ISO C99 or POSIX conformance requested.
4028 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4029 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4030 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4031 and __isoc99_vsscanf@@GLIBC_2.7.
4032 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4033 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4034 (tests): Add scanf14.
4035 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4036 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4037 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4038 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4039 CFLAGS-isoc99_scanf.c): Add $(exceptions).
4040 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4041 from using internal headers.
4042 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4043 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4044 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4045 and __isoc99_vswscanf@@GLIBC_2.7.
4046 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4047 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4048 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4049 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4050 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4051 * stdio-common/isoc99_scanf.c: New file.
4052 * stdio-common/isoc99_vsscanf.c: New file.
4053 * stdio-common/isoc99_vscanf.c: New file.
4054 * stdio-common/isoc99_vfscanf.c: New file.
4055 * stdio-common/isoc99_fscanf.c: New file.
4056 * stdio-common/isoc99_sscanf.c: New file.
4057 * wcsmbs/isoc99_fwscanf.c: New file.
4058 * wcsmbs/isoc99_vswscanf.c: New file.
4059 * wcsmbs/isoc99_swscanf.c: New file.
4060 * wcsmbs/isoc99_wscanf.c: New file.
4061 * wcsmbs/isoc99_vwscanf.c: New file.
4062 * wcsmbs/isoc99_vfwscanf.c: New file.
4063 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4064 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4065 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4066 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4067 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4068 * stdio-common/scanf14.c: New test.
4069 * stdio-common/scanf15.c: New test.
4070 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4071 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4072 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4073 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4074 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4075 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4076 __nldbl___isoc99_scanf@@GLIBC_2.7,
4077 __nldbl___isoc99_fscanf@@GLIBC_2.7,
4078 __nldbl___isoc99_sscanf@@GLIBC_2.7,
4079 __nldbl___isoc99_vscanf@@GLIBC_2.7,
4080 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4081 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4082 __nldbl___isoc99_wscanf@@GLIBC_2.7,
4083 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4084 __nldbl___isoc99_swscanf@@GLIBC_2.7,
4085 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4086 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4087 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4088 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4089 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4090 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4091 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4092 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4093 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4094 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4095 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4096 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4097 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4098 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4099 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4101 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4102 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4103 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4104 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4105 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4106 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4107 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4108 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4109 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4110 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4111 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4112 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4114 * stdio-common/Makefile (tests): Add scanf13.
4116 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4117 m modifier followed by l.
4118 (STRING_ARG): Add width argument.
4119 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4120 <case L_('C')>: Handle %mlc and %mC.
4121 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4123 * stdio-common/scanf13.c: New test.
4125 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4126 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4128 2007-09-18 Ulrich Drepper <drepper@redhat.com>
4130 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4131 type and __THROW marker of splice, vmsplice, and tee.
4132 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4133 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4134 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4135 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4136 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4137 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4138 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4139 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4140 as cancellation points.
4142 2003-11-01 Daniel Jacobowitz <dan@debian.org>
4144 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4145 parse more than three parts of the version number.
4147 2007-09-15 Ulrich Drepper <drepper@redhat.com>
4149 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4150 modifier. Patch by Jakub Jelinek.
4152 2007-08-26 Jakub Jelinek <jakub@redhat.com>
4154 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4155 call_fallocate in misc subdir.
4156 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4157 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4158 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4159 instead of __fallocate64.
4160 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4162 2007-09-15 Jakub Jelinek <jakub@redhat.com>
4164 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4165 * rt/Makefile (headers): Add bits/mqueue2.h.
4166 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4167 optimizing with GCC and __va_arg_pack_len is defined.
4168 * rt/bits/mqueue2.h: New file.
4169 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4170 (mq_open): New strong_alias.
4171 (__mq_open_2): New function.
4172 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4173 (mq_open): New strong_alias.
4174 (__mq_open_2): New function.
4175 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4176 * Versions.def (librt): Add GLIBC_2.7 version.
4177 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4178 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4180 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4181 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4182 is defined rather than when not C++.
4183 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4184 __openat64_alias): New redirects.
4185 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4186 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4187 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4188 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4189 functions instead of function-like macros.
4191 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4193 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4194 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4195 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4197 2007-09-15 Mike Frysinger <vapier@gentoo.org>
4199 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4200 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4202 2007-09-14 Mike Frysinger <vapier@gentoo.org>
4204 * inet/tst-network.c: Increment ERRORS for failing tests.
4206 2007-09-07 Jakub Jelinek <jakub@redhat.com>
4208 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4209 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4210 implement as __extern_always_inline function.
4211 (vsyslog): Define as __extern_always_inline function unconditionally.
4212 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4213 When __va_arg_pack is defined, implement as __extern_always_inline
4215 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4216 __extern_always_inline functions unconditionally.
4217 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4218 bits/stdio2.h will be included.
4219 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4220 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4221 implement as __extern_always_inline functions.
4222 (vswprintf, vwprintf, vfwprintf): Define as
4223 __extern_always_inline functions unconditionally.
4224 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4226 2007-09-03 Jakub Jelinek <jakub@redhat.com>
4228 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4229 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4231 * include/features.h (__USE_EXTERN_INLINES): Define only when
4232 __extern_inline is defined.
4233 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4234 is defined instead of when not __cplusplus.
4235 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4236 is defined instead of when not __cplusplus.
4237 * socket/sys/socket.h: Include bits/socket2.h when
4238 __extern_always_inline is defined instead of when not __cplusplus.
4239 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4240 is defined instead of when not __cplusplus.
4241 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4242 is defined instead of when not __cplusplus.
4243 * string/string.h: Include bits/string3.h when __extern_always_inline
4244 is defined instead of when not __cplusplus.
4245 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4246 is defined instead of when not __cplusplus.
4247 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4248 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4250 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4251 defined __extern_always_inline instead of !defined __cplusplus.
4252 * libio/bits/stdio-ldbl.h: Likewise.
4253 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4254 * misc/bits/syslog.h (syslog): Don't define for C++.
4255 (vsyslog): Use __extern_always_inline function for C++ instead of
4257 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4258 whenever that macro is defined.
4259 (vprintf): Don't provide the inline for C++.
4260 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4261 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4262 define the macros for C++.
4263 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4264 __extern_always_inline functions for C++.
4265 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4266 stat64, lstat64, fstat64, fstatat64): Don't define if not
4267 __USE_EXTERN_INLINES.
4268 * wcsmbs/bits/wchar2.h: Fix #error message.
4269 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4270 (vswprintf, vwprintf, vfwprintf): Define using
4271 __extern_always_inline functions for C++.
4272 * string/bits/string3.h: Don't #undef macros if __cplusplus.
4273 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4274 strncpy, strcat, strncat): Define as __extern_always_inline
4275 functions instead of macros for C++.
4276 * math/bits/cmathcalls.h: Guard __extern_inline routines with
4277 defined __extern_inline.
4278 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4279 to __extern_inline whenever that macro is defined.
4280 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4281 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4282 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4283 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4284 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4285 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4286 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4287 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4288 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4289 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4290 prototypes. Only provide __extern_inline routines if
4291 __USE_EXTERN_INLINES.
4292 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4294 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4295 For now avoid some *printf tests in C++. Skip all testing
4296 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4298 * debug/tst-chk4.cc: New file.
4299 * debug/tst-chk5.cc: New file.
4300 * debug/tst-chk6.cc: New file.
4301 * debug/tst-lfschk4.cc: New file.
4302 * debug/tst-lfschk5.cc: New file.
4303 * debug/tst-lfschk6.cc: New file.
4304 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4306 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4307 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4308 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4310 2007-09-13 Ulrich Drepper <drepper@redhat.com>
4312 * po/cs.po: Update from translation team.
4314 2007-09-11 Roland McGrath <roland@redhat.com>
4316 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4319 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4321 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4323 2007-09-05 Roland McGrath <roland@redhat.com>
4325 * manual/signal.texi (Signaling Another Process): Typo fix.
4326 From Karl Berry <karl@freefriends.org>.
4328 2007-08-29 Ulrich Drepper <drepper@redhat.com>
4330 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4331 zero if not defined.
4332 (make_request): Recognize optimistic addresses and treat them like
4333 deprecated addresses.
4334 Reported by Neil Horman <nhorman@redhat.com>.
4336 2007-08-28 Ulrich Drepper <drepper@redhat.com>
4338 * nscd/connections.c (send_ro_fd): Also transfer file size.
4339 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4340 file size don't call fstat.
4342 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4343 ahead and map the file. This should always be correct and we can
4344 catch problems later.
4346 2007-08-28 Jakub Jelinek <jakub@redhat.com>
4348 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4350 (__fread_alias, __fread_unlocked_alias): New aliases.
4351 (fread): New extern inline.
4352 (fread_unlocked): Likewise. Undef macro before definition of
4353 the inline function.
4354 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4355 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4356 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4357 and __fread_unlocked_chk@@GLIBC_2.7.
4358 * debug/fread_chk.c: New file.
4359 * debug/fread_u_chk.c: New file.
4360 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4362 2007-08-27 Jakub Jelinek <jakub@redhat.com>
4364 * sysdeps/unix/sysv/linux/syscalls.list
4365 (personality): Change caller to EXTRA.
4367 2007-08-25 Ulrich Drepper <drepper@redhat.com>
4369 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4371 * iconvdata/iso-2022-cn.c (BODY): Likewise.
4373 * locale/programs/ld-collate.c (collate_output): Avoid warning if
4376 * Makerules: Use -p option with mkdir.
4378 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4379 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4380 (_xdr_directory_obj): Likewise.
4381 (xdr_entry_obj): Likewise.
4382 (xdr_group_obj): Likewise.
4383 (xdr_link_obj): Likewise.
4384 (xdr_table_obj): Likewise.
4385 (_xdr_nis_result): Likewise.
4386 (_xdr_ns_request): Likewise.
4387 (_xdr_ib_request): Likewise.
4388 (_xdr_nis_taglist): Likewise.
4389 (xdr_cback_data): Likewise.
4390 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4391 (xdr_ypresp_maplist): Likewise.
4393 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4395 * posix/regex_internal.h: Prevent some declarations and definitions
4396 to be seen when used in tests.
4398 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4399 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4401 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4403 * config.make.in (datarootdir): Add to shut up configure.
4405 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4406 associativity for fully-associative caches.
4408 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4409 requests. Fill on more associativity values for L2.
4410 Patch mostly by Evandro Menezes.
4412 2007-08-24 Ulrich Drepper <drepper@redhat.com>
4414 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4415 (_libc_vdso_platform_setup): Avoid using exported variable by using
4418 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4420 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4421 fallocate64 as EXTRA. It is not referenced if the symbol isn't
4424 2007-08-23 Ulrich Drepper <drepper@redhat.com>
4426 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4427 align stack for call if pltexit is to be used.
4430 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4431 align for function call in case pltexit has to be called later.
4433 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4434 implicit atomic operation when storing function pointer.
4435 (_dl_runtime_profile): Likewise.
4437 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4439 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4442 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4445 * string/strtok.c: Fix typo in comment.
4448 * debug/segfault.c: Fix typos in comments.
4451 * stdio-common/tempnam.c: Fix comment, it is not checked that
4452 TMPDIR points to a writable directory.
4455 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4456 memory allocated for the name server address.
4459 * nscd/connections.c (handle_request): Using sendfile always
4460 requires that mmap is used for the database.
4461 Patch by Petr Baudis <pasky@suse.cz>.
4464 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4465 suddenly has two or more addresses, ignore it and remove the old
4469 * resolv/res_hconf.c: Prepare for compiling outside libc.
4470 * nscd/res_hconf.c: New file.
4471 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4473 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4474 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4476 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4479 * debug/pcprofiledump.c: Turn on internationalization by calling
4480 setlocale. Patch mostly by Benno Schulenberg.
4483 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4485 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4486 * iconvdata/bug-iconv5.c: New file.
4488 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4491 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4492 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4493 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4494 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4495 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4496 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4497 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4498 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4500 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4503 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4504 lookup loop. Suggested by John Reiser.
4506 2007-08-21 Jakub Jelinek <jakub@redhat.com>
4508 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4510 2007-08-20 Ulrich Drepper <drepper@redhat.com>
4512 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4513 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4514 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4515 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4516 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4518 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4520 2007-08-18 Ulrich Drepper <drepper@redhat.com>
4522 * po/nl.po: Update from translation team.
4524 2007-08-16 Andreas Jaeger <aj@suse.de>
4526 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4527 Reported by Peter Festner <peter.festner@ewetel.net>.
4529 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4531 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4533 2007-08-16 Jakub Jelinek <jakub@redhat.com>
4535 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4536 to check for undefined symbols.
4538 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4539 If the syscall fails, set errno to the actual returned error number
4541 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4542 arguments are incorrect, set errno to EINVAL, if the syscall
4543 fails, set errno to the actual returned error number.
4545 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4546 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4548 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4549 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4551 (ASI_PNF, ASI_BLK_P): Don't define.
4552 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4553 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4555 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4556 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4559 2007-08-15 Jakub Jelinek <jakub@redhat.com>
4561 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4562 FE_UNDERFLOW on Niagara CPUs.
4564 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4567 2007-08-14 Jakub Jelinek <jakub@redhat.com>
4569 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4570 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4571 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4572 flush should be used or not inside of the function.
4573 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4575 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4576 __thread_start): Use HIDDEN_JUMPTARGET.
4577 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4578 __thread_start): Likewise.
4579 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4581 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4582 Add libc_hidden_proto.
4583 (STRTOF): Add libc_hidden_proto.
4584 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4585 (strtold_l, wcstold_l): Use them as second argument for
4588 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4590 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4592 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4594 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4596 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4598 * po/bg.po: New file. From the translation team.
4600 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4602 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4603 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4604 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4605 when each feature was introduced.
4607 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4608 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4609 (CHECK_HASH): New macro.
4610 (PREPARE_VERSION): Use it.
4612 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4613 prototype if not __ASSUME_PSELECT.
4614 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4615 prototype if not __ASSUME_PPOLL.
4617 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4619 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4620 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4623 2007-08-13 Ulrich Drepper <drepper@redhat.com>
4625 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4626 (_libc_vdso_platform_setup): If vDSO is not available point
4627 __vdso_gettimeofday to the vsyscall.
4628 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4629 __vdso_gettimeofday instead of vsyscall.
4631 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4633 * nscd/servicescache.c: Include kernel-features.h.
4634 * nscd/gai.c: Likewise.
4635 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4636 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4637 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4638 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4639 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4640 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4641 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4642 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4643 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4645 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4647 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4648 and _dl_get_origin defines anymore.
4650 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4651 Build fix for systems which might lack POSIX timer support.
4653 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4654 (_libc_vdso_platform_setup): Mangle function pointers before storing
4656 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4657 Demangle vdso pointer before use.
4658 (INTERNAL_VSYSCALL): Likewise.
4660 * elf/cache.c (primes): Mark as const.
4661 Noted by Roland McGrath.
4663 2007-08-01 Andreas Jaeger <aj@suse.de>
4664 Jakub Jelinek <jakub@redhat.com>
4666 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4667 (options): Add option.
4668 (parse_opt): Handle option.
4669 (manual_link): Adjust process_file caller. Call implicit_soname.
4670 (search_dir): Formatting. Use and populate auxiliary cache.
4671 (main): Load and save auxiliary cache.
4672 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
4673 stat64 from fstat64 to caller.
4674 (implicit_soname): New function.
4675 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4676 leave *soname as NULL.
4677 * elf/cache.c: Include libgen.h.
4678 (print_entry, print_cache, compare, save_cache, add_to_cache):
4679 Formatting and cleanups.
4680 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4681 aux_cache_file): New structures.
4682 (AUX_CACHEMAGIC): Define.
4683 (primes): New array.
4684 (aux_hash_size, aux_hash): New variables.
4685 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4686 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4687 load_aux_cache, save_aux_cache): New functions.
4688 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4689 (init_aux_cache, search_aux_cache, add_to_aux_cache,
4690 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4691 (process_file): Adjust prototype.
4693 2007-08-12 Jakub Jelinek <jakub@redhat.com>
4695 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4698 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4700 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4701 r_found_version structure as second parameter.
4702 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4703 (_dl_vdso_vsym): Change type of second parameter accordingly.
4704 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4705 (_libc_vdso_platform_setup): Adjust.
4706 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4707 (_libc_vdso_platform_setup): Likewise.
4709 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4710 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4711 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4712 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4713 * csu/libc-start.c: Pretty printing.
4714 Use VDSO_SETUP if defined.
4715 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4716 and let generic code call into _libc_vdso_platform_setup.
4717 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4718 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4719 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4720 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4721 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4723 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4724 (sysdep_rountines): Add dl-vdso.
4726 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4729 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4730 attribute_hidden to __vdso_gettimeofday prototype.
4732 2007-08-12 Roland McGrath <roland@redhat.com>
4734 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4735 From: Karl Berry <karl@freefriends.org>.
4737 2007-08-11 Ulrich Drepper <drepper@redhat.com>
4739 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4740 an atime update for the files we read.
4742 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4744 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4746 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
4749 * misc/Makefile (routines): Add mkostemp and mkostemp64.
4750 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4751 * misc/mkostemp.c: New file.
4752 * misc/mkostemp64.c: New file.
4753 * stdlib/stdlib.h: Declare the new functions.
4754 * sysdeps/posix/tempname.c: Add new parameter which is added to
4755 the flags for open. Remove __GT_BIGFILE handling.
4756 * stdio-common/tempname.c: Likewise.
4757 * include/stdio.h: Adjust __gen_tempname prototype.
4758 Renumber __GT_* constants.
4759 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4760 * misc/mkdtemp.c: Likewise.
4761 * misc/mkstemp.c: Likewise.
4762 * misc/mkstemp64.c: Likewise.
4763 * misc/mktemp.c: Likewise.
4764 * stdio-common/tempnam.c: Likewise.
4765 * stdio-common/tmpfile.c: Likewise.
4766 * stdio-common/tmpfile64.c: Likewise.
4767 * stdio-common/tmpnam.c: Likewise.
4768 * stdio-common/tmpnam_r.c: Likewise.
4770 2007-08-10 Roland McGrath <roland@frob.com>
4772 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4774 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4775 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4777 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4779 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4781 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4782 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4783 * nss/nss_files/files-have_o_cloexec.c: New file.
4785 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4788 2007-08-10 Jakub Jelinek <jakub@redhat.com>
4790 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4791 ___new_wcstold_l): New weak aliases.
4792 (strtold_l, wcstold_l): Use them as second argument for
4795 2007-08-09 Ulrich Drepper <drepper@redhat.com>
4797 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4798 register in test for error.
4800 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4801 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4803 * po/sv.po: Update from translation team.
4805 2007-08-06 Roland McGrath <roland@redhat.com>
4807 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4808 Remove __strto*_l inlines.
4809 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4810 * stdlib/strtod.c: Add libc_hidden_def.
4811 * stdlib/strtod_l.c: Likewise.
4812 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4813 for __new_strtold and __new_wcstold.
4814 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4816 * stdlib/strtol.c: Add libc_hidden_def.
4817 * stdlib/strtol_l.c: Likewise.
4818 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4821 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4823 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4824 * scripts/data/localplt-generic.data: ... here.
4825 * elf/Makefile (check-data): Get generic file if no other.
4826 ($(objpfx)check-localplt.out): Make target unconditional.
4828 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4831 2007-08-05 Ulrich Drepper <drepper@redhat.com>
4833 * po/zh_CN.po: Updated translation from translation team.
4835 2007-08-05 Jakub Jelinek <jakub@redhat.com>
4837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4838 Don't use CGOTSETUP and CGOTRESTORE macros.
4840 2007-08-04 Roland McGrath <roland@redhat.com>
4842 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4844 2007-08-04 Jakub Jelinek <jakub@redhat.com>
4846 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4847 __extension__ around the whole statement expression.
4849 2007-08-04 Ulrich Drepper <drepper@redhat.com>
4851 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4852 elements during initialization.
4854 * po/pl.po: Updated translation from translation team.
4855 * po/tr.po: Likewise.
4856 * po/nl.po: Likewise.
4858 2007-08-03 Ulrich Drepper <drepper@redhat.com>
4860 * rt/aio.h: Add __nonnull attributes.
4862 2007-08-03 Jakub Jelinek <jakub@redhat.com>
4864 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4865 * stdlib/Makefile (tests): Add tst-strtod5.
4866 (tst-strtod5-ENV): New.
4867 * stdlib/tst-strtod5.c: New file.
4869 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4871 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4874 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4877 2007-08-03 Jakub Jelinek <jakub@redhat.com>
4879 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4882 2007-08-02 Ulrich Drepper <drepper@redhat.com>
4884 * io/Makefile (aux): Add have_o_cloexec.
4885 * include/fcntl.h: Declare __have_o_cloexec.
4886 * io/have_o_cloexec.c: New file.
4887 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4888 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4889 fcntl call if not necessary.
4890 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4893 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4894 Avoid memset, add explicit initialization.
4895 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4896 to the end and change into zero-sized array.
4897 Move lock member to fill a hole on 64-bit platforms.
4899 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4901 * include/stdlib.h: Add __strto*_internal prototypes here.
4902 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4904 * include/wchar.h: Add __wcsto*_internal prototypes.
4905 * sysdeps/generic/inttypes.h: No need to protect the declaration
4906 of the __strto*_internal and __wcsto*_internal members here.
4908 * rt/mqueue.h: Change const to __const and add nonnull attributes.
4910 2007-08-02 Roland McGrath <roland@redhat.com>
4912 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4913 $(inst_bindir)/getconf if possible.
4915 * posix/Makefile ($(objpfx)getconf.speclist): New target.
4916 (generated): Add it.
4917 ($(inst_libexecdir)/getconf): Use it.
4919 2007-08-01 Ulrich Drepper <drepper@redhat.com>
4921 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4922 /proc is faster and sufficient. /sys is still needed for
4925 2007-08-01 Jakub Jelinek <jakub@redhat.com>
4927 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4928 syscall as __fallocate64.
4929 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4930 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4932 2007-07-30 Jakub Jelinek <jakub@redhat.com>
4934 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4937 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4938 if off_t is different rank from size_t.
4940 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4941 uw_frame_state_for): Avoid type punning warnings.
4942 * sysdeps/generic/unwind-dw2-fde-glibc.c
4943 (_Unwind_IteratePhdrCallback): Likewise.
4944 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4945 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4946 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4949 2007-07-31 Ulrich Drepper <drepper@redhat.com>
4951 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4952 total processors using sysfs.
4953 (__get_nprocs): Use sysfs to determine which processors are online.
4955 2007-07-31 Jakub Jelinek <jakub@redhat.com>
4957 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4958 syscall arguments count.
4960 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4962 2007-07-30 Roland McGrath <roland@redhat.com>
4964 * manual/libc.texinfo: Update copyrights, formatting magic, and
4965 @dircategory. From Karl Berry <karl@freefriends.org>.
4967 2007-07-29 Ulrich Drepper <drepper@redhat.com>
4970 * io/Makefile (headers): Add bits/fcntl2.h.
4972 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4974 (__CPU_EQUAL_S): Likewise.
4976 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
4977 (tests): Add tst-cpuset.
4978 * posix/sched_cpualloc.c: New file.
4979 * posix/sched_cpufree.c: New file.
4980 * posix/tst-cpuset.c: New file.
4981 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
4983 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
4984 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
4985 macros. Define CPU_*_S macros.
4987 2007-07-28 Ulrich Drepper <drepper@redhat.com>
4989 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
4993 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
4994 #.0g and value rounded to 1.0.
4995 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
4997 2007-07-26 Jakub Jelinek <jakub@redhat.com>
4999 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5000 for int_frac_digits and frac_digits.
5002 * login/logout.c (logout): Avoid aliasing violation.
5003 * login/logwtmp.c (logwtmp): Likewise.
5005 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5007 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5009 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5011 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5013 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5016 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5018 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5020 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5021 char * to avoid warning.
5022 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5024 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5026 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5027 allocate_arrays): Cast second argument to charmap_find_symbol
5028 to char * to avoid warnings.
5030 * locale/programs/repertoire.c (repertoire_new_char): Change
5031 from_nr, to_nr and cnt to unsigned long, adjust printf format
5034 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5035 Cast second argument to new_element to char * to avoid warnings.
5037 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5039 * intl/gettextP.h (struct loaded_domain): Change plural to const
5040 struct expression *.
5041 * intl/plural-eval.c (plural_eval): Change first argument to
5042 const struct expression *.
5043 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5044 argument to const struct expression **.
5045 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5047 * intl/loadmsgcat (_nl_unload_domain): Cast away const
5048 in call to __gettext_free_exp.
5050 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5051 unitialized wstring/wpattern var warnings.
5053 * posix/runtests.c (struct a_test): Make data field const char *.
5055 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5056 vars if not LDBL_MANT_DIG >= 106.
5058 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5060 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5061 __find_specmb to avoid warning.
5063 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5065 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5068 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5071 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5072 tv var when it will be actually used.
5074 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5077 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5078 char array resp. pointer.
5079 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5081 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5082 to const unsigned char **.
5083 (ucs4_to_cns11643): Change second argument to unsigned char *.
5084 * iconvdata/euc-tw.c (BODY): Change endp type to
5085 const unsigned char *.
5086 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5088 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5089 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5090 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5091 types to unsigned char pointers/arrays instead of char.
5092 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5094 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5095 * iconvdata/jis0212.h: Include assert.h.
5096 (ucs4_to_jisx0212): Change second argument to unsigned char *.
5097 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5098 of trying to handle that.
5099 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5101 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5102 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5103 two dimensional const unsigned char arrays.
5104 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5105 Initialize endp to inptr to shut up a warning.
5107 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5110 * time/strptime_l.c (__strptime_internal): Silently ignore
5111 strftime modifiers and field width in recursive calls.
5113 * include/time.h (enum ptime_locale_status): Remove.
5114 (__strptime_internal): Remove decided and era_cnt arguments,
5115 add statep argument.
5116 * time/strptime_l.c (__strptime_internal): Remove decided
5117 and era_cnt arguments, add statep argument. Don't recompute
5118 any fields in recursive calls, only update caller's tm
5119 and state, if recursive call fails, don't change tm nor
5121 (get_alt_number): Adjust.
5122 (recursive): Adjust caller.
5123 (strptime): Likewise.
5124 * time/strptime.c (strptime): Likewise.
5126 2007-07-19 Jakub Jelinek <jakub@redhat.com>
5128 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5129 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5130 if from and to charsets are the same.
5131 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5132 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5133 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5135 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5137 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5138 Don't define wint_t when __need_mbstate_t unless it
5140 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5141 in the typedef if possible.
5142 * wctype/wctype.h (wint_t): Define by including
5143 wchar.h with __need_wint_t instead of including stddef.h
5144 with __need_wint_t and as fallback definining it ourselves.
5145 * iconv/gconv.h (__need_wint_t): Define before including
5147 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5148 or _GLIBCPP_USE_WCHAR_T.
5149 (__need_wchar_t): Don't define
5150 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5151 (__need_wint_t): Don't define before including stddef.h,
5152 define before including wchar.h only if _LIBC or
5153 _GLIBCPP_USE_WCHAR_T.
5154 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5155 * sysdeps/mach/hurd/_G_config.h: Likewise.
5156 * sysdeps/generic/_G_config.h: Likewise.
5157 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5158 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5159 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5160 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5162 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5164 * sysdeps/posix/posix_fallocate64.c: Undefine
5165 __posix_fallocate64_l64 before alias handling.
5166 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5167 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5168 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5169 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5171 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5173 2007-07-23 Jakub Jelinek <jakub@redhat.com>
5175 * locale/programs/ld-collate.c (atwc): New variable.
5176 (add_to_tablewc): New toplevel function, moved from collate_output.
5177 (collate_output): Remove add_to_tablewc nested function.
5179 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5180 (name_insert): New function.
5181 (write_output): Remove hash_table and hash_size vars and name_insert
5184 2007-07-24 Roland McGrath <roland@redhat.com>
5186 * Makerules (install-others-programs-nosubdir): New target.
5187 (install-no-libc.a-nosubdir): Depend on it.
5189 * iconv/Makefile (install-others-programs): Set this instead of
5191 * login/Makefile (install-others-programs): Likewise.
5192 * posix/Makefile (install-others-programs): Likewise.
5194 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5197 2007-07-23 Ulrich Drepper <drepper@redhat.com>
5199 * io/Makefile (tests): Add tst-posix_fallocate.
5200 * io/tst-posix_fallocate.c: New file.
5202 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5205 2007-07-22 Roland McGrath <roland@frob.com>
5207 * hurd/getdport.c: Add missing copyright year update.
5209 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5210 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5212 2007-07-22 Ulrich Drepper <drepper@redhat.com>
5214 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5216 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5217 O_CLOEXEC is needed.
5218 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5219 Avoid additional fcntl to set O_CLOEXEC if not needed.
5220 * nis/nss_compat/compat-initgroups.c: Likewise.
5221 * nis/nss_compat/compat-pwd.c: Likewise.
5222 * nis/nss_compat/compat-spwd.c: Likewise.
5224 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5227 * manual/errno.texi: Change ECANCELED value to 119.
5230 * mach/lock-intern.h: Include <sys/cdefs.h>.
5233 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5237 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5240 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5242 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
5244 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5246 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5248 2007-07-21 Ulrich Drepper <drepper@redhat.com>
5250 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5251 descriptor received from nscd.
5253 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5255 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5256 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5257 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5258 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5259 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5260 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5262 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5265 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5268 * login/forkpty.c (forkpty): Close master and slave fds on
5269 fork failure. Patch by
5270 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5272 2007-07-18 Jakub Jelinek <jakub@redhat.com>
5274 * include/features.h (__USE_ISOC95): New define.
5275 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5276 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5277 for -std=iso9899:199409.
5278 * CONFORMANCE: Remove comments about unsupported AMD1.
5280 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5282 * sysdeps/ia64/sched_cpucount.c: New file.
5283 * sysdeps/powerpc/sched_cpucount.c: New file.
5285 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5286 __BEGIN_DECLS/__END_DECLS around the prototype.
5287 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
5288 pointer to const cpu_set_t.
5290 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5291 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5292 __need_size_t and include stddef.h.
5293 * sysvipc/sys/msg.h: Likewise.
5294 * posix/sched.h: Likewise.
5295 * hurd/hurd/signal.h (__need_size_t): Define.
5297 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5298 neither does signal.h in pedantic ISO C namespaces. stdio.h
5299 no longer defines wint_t or wchar_t.
5301 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5302 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5303 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5304 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5305 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5306 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5307 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5308 * debug/printf_chk.c (__printf_chk): Likewise.
5309 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5310 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5312 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5315 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5316 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5318 2007-07-16 Jakub Jelinek <jakub@redhat.com>
5321 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5322 * malloc/malloc.h (realloc): Likewise.
5324 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5325 if one of proc_file_chain streams has that fileno.
5326 * stdio-common/Makefile (tests): Add tst-popen2.
5327 * stdio-common/tst-popen2.c: New test.
5329 2007-07-14 Jakub Jelinek <jakub@redhat.com>
5331 * elf/ldconfig.c: Allow GPLv2 or any later version.
5332 * elf/readlib.c: Likewise.
5333 * elf/chroot_canon.c: Likewise.
5334 * elf/cache.c: Likewise.
5335 * nscd/mem.c: Likewise.
5336 * nscd/getpwuid_r.c: Likewise.
5337 * nscd/grpcache.c: Likewise.
5338 * nscd/aicache.c: Likewise.
5339 * nscd/getsrvbynm_r.c: Likewise.
5340 * nscd/nscd.c: Likewise.
5341 * nscd/servicescache.c: Likewise.
5342 * nscd/getsrvbypt_r.c: Likewise.
5343 * nscd/initgrcache.c: Likewise.
5344 * nscd/gethstbyad_r.c: Likewise.
5345 * nscd/gethstbynm2_r.c: Likewise.
5346 * nscd/getgrnam_r.c: Likewise.
5347 * nscd/nscd_setup_thread.c: Likewise.
5348 * nscd/getpwnam_r.c: Likewise.
5349 * nscd/gai.c: Likewise.
5350 * nscd/connections.c: Likewise.
5351 * nscd/dbg_log.c: Likewise.
5352 * nscd/cache.c: Likewise.
5353 * nscd/hstcache.c: Likewise.
5354 * nscd/nscd_conf.c: Likewise.
5355 * nscd/getgrgid_r.c: Likewise.
5356 * nscd/pwdcache.c: Likewise.
5357 * catgets/gencat.c: Likewise.
5358 * locale/programs/linereader.h: Likewise.
5359 * locale/programs/locarchive.c: Likewise.
5360 * locale/programs/ld-paper.c: Likewise.
5361 * locale/programs/locfile-kw.h: Likewise.
5362 * locale/programs/ld-address.c: Likewise.
5363 * locale/programs/xmalloc.c: Likewise.
5364 * locale/programs/ld-time.c: Likewise.
5365 * locale/programs/localedef.c: Likewise.
5366 * locale/programs/simple-hash.c: Likewise.
5367 * locale/programs/xstrdup.c: Likewise.
5368 * locale/programs/ld-numeric.c: Likewise.
5369 * locale/programs/locfile-kw.gperf: Likewise.
5370 * locale/programs/ld-collate.c: Likewise.
5371 * locale/programs/charmap-kw.gperf: Likewise.
5372 * locale/programs/charmap.h: Likewise.
5373 * locale/programs/charmap-kw.h: Likewise.
5374 * locale/programs/config.h: Likewise.
5375 * locale/programs/locfile.c: Likewise.
5376 * locale/programs/ld-ctype.c: Likewise.
5377 * locale/programs/charmap.c: Likewise.
5378 * locale/programs/ld-messages.c: Likewise.
5379 * locale/programs/repertoire.h: Likewise.
5380 * locale/programs/locale.c: Likewise.
5381 * locale/programs/ld-name.c: Likewise.
5382 * locale/programs/linereader.c: Likewise.
5383 * locale/programs/locfile.h: Likewise.
5384 * locale/programs/3level.h: Likewise.
5385 * locale/programs/ld-monetary.c: Likewise.
5386 * locale/programs/ld-measurement.c: Likewise.
5387 * locale/programs/charmap-dir.c: Likewise.
5388 * locale/programs/ld-identification.c: Likewise.
5389 * locale/programs/localedef.h: Likewise.
5390 * locale/programs/charmap-dir.h: Likewise.
5391 * locale/programs/repertoire.c: Likewise.
5392 * locale/programs/simple-hash.h: Likewise.
5393 * locale/programs/ld-telephone.c: Likewise.
5394 * locale/programs/locale-spec.c: Likewise.
5395 * locale/programs/locfile-token.h: Likewise.
5396 * posix/getconf.c: Likewise.
5397 * iconv/dummy-repertoire.c: Likewise.
5398 * iconv/iconv_charmap.c: Likewise.
5399 * iconv/iconvconfig.c: Likewise.
5400 * iconv/iconv_prog.c: Likewise.
5401 * malloc/memusagestat.c: Likewise.
5402 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5404 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5406 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5407 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5408 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5409 check for the first argument.
5411 2007-07-12 Jakub Jelinek <jakub@redhat.com>
5414 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5415 (__tgmath_real_type): Fix if expr is const int or other const
5416 qualified integral type.
5417 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5418 expressions and handle const qualified arguments.
5419 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5420 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5421 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5422 statement expressions.
5423 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5424 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5425 (__TGMATH_UNARY_IMAG): Define.
5426 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5427 * math/Makefile (tests): Add test-tgmath2.
5428 (CFLAGS-test-tgmath2.c): Add.
5429 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5430 count_cfloat, count_cldouble): New variables.
5432 (main): Check number of complex calls as well.
5433 (F(compile_test)): Add complex tests and tests with const qualified
5435 (y, z, ccount): Define.
5436 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5437 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5438 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5439 F(cproj)): New functions.
5440 * math/test-tgmath2.c: New test.
5442 2007-07-11 Jakub Jelinek <jakub@redhat.com>
5445 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5446 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5448 * dlfcn/Makefile (distribute): Add glreflib3.c.
5449 (module-names): Add glreflib3.
5450 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5452 (LDFLAGS_glreflib3.so): New.
5453 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5455 * dlfcn/glreflib3.c: New file.
5457 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5458 returned -1, return NULL.
5459 * intl/explodename.c (_nl_explode_name): Return -1 if
5460 _nl_normalize_codeset failed.
5462 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5464 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5465 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5466 and avoid branch misspredicts for > 31 bytes memset case.
5467 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5468 Remove toc ref to __cache_line_size.
5470 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5471 to get ISA-V2.0 branch hints.
5472 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5473 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5474 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5475 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5476 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5477 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5478 Remove toc ref to __cache_line_size.
5480 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5481 Include math_ldbl_opt.h.
5483 2007-07-10 Ulrich Drepper <drepper@redhat.com>
5486 * time/strptime_l.c (__strptime_internal): Implement greedy
5487 matching of weekday and month names.
5489 2007-07-09 Roland McGrath <roland@redhat.com>
5491 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5492 (ELF_NOTE_ABI): Use it.
5493 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5495 2007-07-09 Ulrich Drepper <drepper@redhat.com>
5497 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5498 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5500 2007-07-07 Ulrich Drepper <drepper@redhat.com>
5503 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5504 in loop to look for conversion specifier to avoid testing of
5506 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5507 * stdio-common/bug18.c: New file.
5508 * stdio-common/bug18a.c: New file.
5509 * stdio-common/bug19.c: New file.
5510 * stdio-common/bug19a.c: New file.
5512 2007-07-05 Mike Frysinger <vapier@gentoo.org>
5514 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5517 2007-07-01 Jakub Jelinek <jakub@redhat.com>
5519 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5520 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5521 Return NULL if mmap failed instead of asserting it does not.
5522 (calloc): Check for integer overflow.
5524 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5527 2007-07-03 Jakub Jelinek <jakub@redhat.com>
5530 * nis/nss-default.c: Include errno.h.
5531 (init): Preserve errno.
5533 2007-07-02 Ulrich Drepper <drepper@redhat.com>
5535 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5537 2007-06-30 Ulrich Drepper <drepper@redhat.com>
5539 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5541 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5543 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5545 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5547 * sysdeps/s390/dl-procinfo.c: New file.
5548 * sysdeps/s390/dl-procinfo.h: New file.
5549 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5551 2007-06-29 Jakub Jelinek <jakub@redhat.com>
5553 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5554 in PT_NOTE segments with multiple notes.
5555 * elf/readelflib.c (process_elf_file): Likewise.
5557 2007-06-22 Ulrich Drepper <drepper@redhat.com>
5559 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5562 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5564 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5566 2007-06-13 Jakub Jelinek <jakub@redhat.com>
5568 * include/link.h: Don't include rtld-lowlevel.h.
5569 (struct link_map): Remove l_scope_lock.
5570 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5571 (_dl_scope_free_list): New field (variable) in _rtld_global.
5572 (DL_LOOKUP_SCOPE_LOCK): Remove.
5573 (_dl_scope_free): New prototype.
5574 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5575 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5576 (_dl_profile_fixup): Likewise.
5577 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5578 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5579 THREAD_GSCOPE_RESET_FLAG around it.
5580 * elf/dl-close.c (_dl_close_worker): Don't use
5581 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5582 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5583 scopes were queued or if l_scope_mem has been abandoned.
5584 * elf/dl-open.c (_dl_scope_free): New function.
5585 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5586 * elf/dl-support.c (_dl_scope_free_list): New variable.
5587 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5588 Remove DL_LOOKUP_SCOPE_LOCK handling.
5589 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5591 * elf/dl-object.c (_dl_new_object): Don't use
5592 __rtld_mrlock_initialize.
5594 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5596 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5598 (rtld_global_ro): Likewise.
5600 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5602 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5603 Move PT_LOAD checking to...
5604 (_dl_addr_inside_object): ... here, new function.
5605 * elf/dl-sym.c (do_sym): If not l_contiguous,
5606 call _dl_addr_inside_object.
5607 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5608 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5609 * elf/dl-open.c (dl_open_worker): Likewise.
5610 (_dl_addr_inside_object): New function if IS_IN_rtld.
5611 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5612 holes are present or are PROT_NONE protected.
5613 * include/link.h (struct link_map): Add l_contiguous field.
5614 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5616 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5617 Tomas Janousek <tjanouse@redhat.com>
5618 Ulrich Drepper <drepper@redhat.com>
5621 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5622 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5624 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5625 unused member a bitmap.
5626 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5627 servers are configured.
5629 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5631 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5633 2007-06-17 Andreas Schwab <schwab@suse.de>
5635 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5637 2007-06-16 Andreas Jaeger <aj@suse.de>
5640 * sysdeps/unix/sysv/linux/sys/ptrace.h
5641 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5642 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5643 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5644 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5645 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5647 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5648 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5649 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5650 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5652 2007-06-16 Ulrich Drepper <drepper@redhat.com>
5655 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5656 determining whether there are IPv4/IPv6 addresses, ignore loopback
5659 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5661 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5662 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5663 as the return type. Change type of "r" variable to CMPtype.
5664 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5665 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5666 * soft-fp/gedf2.c (__gedf2): Likewise.
5667 * soft-fp/gesf2.c (__gesf2): Likewise.
5668 * soft-fp/getf2.c (__getf2): Likewise.
5669 * soft-fp/ledf2.c (__ledf2): Likewise.
5670 * soft-fp/lesf2.c (__lesf2): Likewise.
5671 * soft-fp/letf2.c (__letf2): Likewise.
5672 * soft-fp/unorddf2 (__unorddf2): Likewise.
5673 * soft-fp/unordsf2 (__unordsf2): Likewise.
5674 * soft-fp/unordtf2 (__unordtf2): Likewise.
5676 2007-06-09 Ulrich Drepper <drepper@redhat.com>
5678 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5679 make sure gcc doesn't mess around with this.
5681 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5683 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5685 2007-06-08 Jakub Jelinek <jakub@redhat.com>
5687 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5688 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5689 at most once per _dl_close_worker.
5691 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5693 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5694 __sched_cpucount as const.
5695 * posix/sched_cpucount.c: Adjust.
5697 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5698 instruction for counting bits.
5699 * sysdeps/x86_64/sched_cpucount.c: New file.
5701 2007-06-07 Ulrich Drepper <drepper@redhat.com>
5703 * configure.in: Avoid variable named BASH.
5704 * config.make.in: Likewise.
5705 Patch in part by Mike Frysinger.
5707 2007-06-06 Jakub Jelinek <jakub@redhat.com>
5710 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5711 pseudo-zeros as zero.
5712 * sysdeps/x86_64/ldbl2mpn.c: New file.
5713 * sysdeps/ia64/ldbl2mpn.c: New file.
5715 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5717 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5718 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5719 Remove unreachable code at the end.
5721 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5723 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5724 ldbl-128ibm in comment.
5725 (fpclassifyl): Correct classification of denormals.
5726 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5727 return value for MIN denormal. Rewrite using long double math too
5728 correctly handle denormals and canonicalize the results.
5730 2007-06-05 Jakub Jelinek <jakub@redhat.com>
5732 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5733 (__mpn_construct_long_double): Fix conversion where result ought
5734 to be smaller than __LDBL_MIN__, or the low double should be
5735 denormal. Fix decision where to negate low double - honor round
5737 * stdio-common/tst-sprintf2.c: Include string.h.
5738 (COMPARE_LDBL): Define.
5739 (TEST): Also test whether a string hexadecimal float representation
5740 can be parsed back to the number.
5741 (main): Add a couple of further tests.
5743 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5745 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5746 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5747 is non-zero, but smaller than 2 * __DBL_MIN__.
5748 * stdio-common/tst-sprintf2.c: New test.
5749 * stdio-common/Makefile (tests): Add tst-sprintf2.
5751 * math/test-misc.c (main): Don't run last batch of tests with
5752 IBM long double format.
5754 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5756 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5757 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5758 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5759 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5760 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5761 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5762 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5763 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5764 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5765 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5767 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5769 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5782 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5789 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5791 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5792 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5793 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5794 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5795 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5796 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5797 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5798 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5800 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5802 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5803 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5804 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5805 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5806 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5807 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5808 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5809 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5811 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5813 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5814 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5815 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5816 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5818 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5820 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5821 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5823 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5825 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5826 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5827 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5828 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5830 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5832 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5833 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5835 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5837 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5838 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5840 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5841 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5842 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5843 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5845 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5847 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5848 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5849 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5850 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5852 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5854 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5855 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5856 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5857 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5858 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5859 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5861 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5863 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5864 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5865 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5866 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5868 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5870 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5871 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5872 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5873 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5874 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5875 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5876 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5877 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5878 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5879 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5880 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5881 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5882 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5883 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5884 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5885 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5887 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5889 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5890 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5892 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5894 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5895 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5897 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5899 * sysdeps/powerpc/powerpc32/970/Implies: New file.
5900 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5901 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5902 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5903 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5904 * sysdeps/powerpc/powerpc64/970/Implies: New file.
5905 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5906 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5907 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5908 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5910 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5912 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5914 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
5916 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5917 branch miss-predicts. Ensure that cache line crossing does not impact
5920 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
5922 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5923 "../../powerpc32/power4/memcopy.h".
5924 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5925 "../../powerpc32/power4/wordcopy.c".
5927 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5929 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5930 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5931 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5932 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5933 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5934 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5936 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
5938 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5940 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5942 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5943 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5944 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5945 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5946 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5947 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5948 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5949 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5951 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
5953 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5955 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5957 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5958 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5959 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5960 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5961 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5962 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5963 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5965 2007-05-29 Roland McGrath <roland@redhat.com>
5967 * po/Makefile (po-sed-cmd): New variable.
5968 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5970 2007-05-29 Ulrich Drepper <drepper@redhat.com>
5972 * crypt/md5-crypt.c: Fix comment.
5974 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5975 of crashing. When this is the case or if the reply is malformed,
5976 don't try to close the new file descriptor since it does not
5978 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
5980 2007-05-28 Jakub Jelinek <jakub@redhat.com>
5982 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
5983 if __NR_utimensat is not defined.
5985 2007-05-26 Ulrich Drepper <drepper@redhat.com>
5987 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
5989 2007-05-25 Jakub Jelinek <jakub@redhat.com>
5991 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
5992 (open): Fix comment typos. Don't call __open_2 if flags
5993 is a compile time constant without O_CREAT.
5994 (__open64_2): Add nonnull attribute.
5995 (open64): Fix comment typos. Don't call __open64_2 if flags
5996 is a compile time constant without O_CREAT.
5997 (__openat_2): Add nonnull attribute, fix nonnull attribute
5999 (openat): Fix comment typos. Don't call __openat_2 if flags
6000 is a compile time constant without O_CREAT.
6001 (__openat64_2): Add nonnull attribute, fix nonnull attribute
6003 (openat64): Fix comment typos. Don't call __openat64_2 if flags
6004 is a compile time constant without O_CREAT.
6006 2007-05-24 Ulrich Drepper <drepper@redhat.com>
6008 * Makerules (sysd-rules): Define PTW for ptw-* files.
6009 * Versions: Define GLIBC_2.7 for libc.
6010 * include/stdio.h: Declare __fortify_fail.
6011 * debug/fortify_fail.c: New file.
6012 * debug/Makefile (routines): Add fortify_fail.
6013 * debug/chk_fail.c: Use __fortify_fail.
6014 * debug/stack_chk_fail.c: Likewise.
6015 * io/Versions: Export __open_2, __open64_2, __openat_2, and
6016 __openat64_2 for GLIBC_2.7.
6017 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6018 * io/open.c: Define *_2 variant of function which checks for O_CREAT
6019 and fails if necessary.
6020 * io/open64.c: Likewise.
6021 * io/openat.c: Likewise.
6022 * io/openat64.c: Likewise.
6023 * sysdeps/unix/sysv/linux/open64.c: Likewise.
6024 * sysdeps/unix/sysv/linux/openat.c: Likewise.
6025 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6026 * io/bits/fcntl2.h: New file.
6027 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6029 * include/bits/fcntl2.h: New file.
6030 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6032 * sysdeps/unix/sysv/linux/open_2.c: New file.
6034 2007-05-21 Ulrich Drepper <drepper@redhat.com>
6036 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6037 as second parameter to handle_intel.
6039 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6042 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6044 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
6045 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6047 * sysdeps/x86_64/memcpy.S: Complete rewrite.
6048 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6049 Patch by Evandro Menezes <evandro.menezes@amd.com>.
6051 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6053 2007-05-21 Jakub Jelinek <jakub@redhat.com>
6056 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6057 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6058 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6060 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6063 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6064 reinitialize workend at the start of each do_positional format spec
6065 loop, free workstart before do_positional loops.
6066 (printf_unknown): Fix size of work_buffer.
6067 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6069 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6070 (public_sET_STATe): If ms->version < 3, put all chunks into
6071 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6074 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6075 * malloc/hooks.c: Likewise.
6076 * malloc/arena.c: Likewise.
6077 * malloc/malloc.c (do_check_malloc_state): Don't assert
6078 n_mmaps is not greater than n_mmaps_max. This removes the need
6079 for the previous change.
6081 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6084 2007-05-19 Ulrich Drepper <drepper@redhat.com>
6086 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6087 Define for kernel >= 2.6.22.
6089 2007-05-18 Ulrich Drepper <drepper@redhat.com>
6091 * elf/dl-close.c (_dl_close_worker): When removing object from
6092 global scope, wait for all lookups to finish afterwards.
6093 * elf/dl-open.c (add_to_global): When global scope array must
6094 grow, allocate a new one and free old array only after all
6096 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6097 (_dl_lookup_symbol_x): Likewise.
6098 * elf/dl-support.c: Define _dl_wait_lookup_done.
6099 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6100 _dl_wait_lookup_done.
6102 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6103 not overlapping with arena.
6105 * malloc/mcheck.c (reallochook): If size==0, free the block.
6107 * rt/tst-shm.c: Use fstat64 instead of fstat.
6109 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6110 __NR_sync_file_range is not defined.
6112 2007-05-17 Ulrich Drepper <drepper@redhat.com>
6114 Dummy files to prevent stub versions from being used.
6115 * sysdeps/x86_64/fpu/k_cosl.c: New file.
6116 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6117 * sysdeps/x86_64/fpu/k_sinl.c: New file.
6118 * sysdeps/x86_64/fpu/k_tanl.c: New file.
6120 * version.h (VERSION): Set to 2.6.90.
6122 2007-05-14 Ulrich Drepper <drepper@redhat.com>
6124 * version.h (VERSION): Define to 2.6.
6125 * include/features.h (__GLIBC_MINOR__): Define to 6.
6127 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6129 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6132 2007-05-13 Ulrich Drepper <drepper@redhat.com>
6134 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6135 number of mmaps. n_mmaps_max is the target.
6136 * malloc/hooks.c: Likewise.
6137 * malloc/arena.c: Likewise.
6139 2007-05-12 Andreas Jaeger <aj@suse.de>
6141 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6144 2007-05-11 Ulrich Drepper <drepper@redhat.com>
6146 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6147 adding new variables.
6149 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6150 optimize. Completely extend global scope array before making the
6151 new entries visible.
6153 2007-05-10 Ulrich Drepper <drepper@redhat.com>
6155 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6156 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6159 * include/link.h: Move l_version and l_nversion members around to
6162 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6164 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6165 (__sched_setaffinity_new): If syscall was successful and
6166 RESET_VGETCPU_CACHE is defined, use it before returning.
6167 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6169 * io/sys/stat.h: Make sure struct timespec is defined for
6172 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6174 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6175 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6176 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6177 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6178 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6179 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6180 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6181 * io/sys/stat.h: Declare utimensat, futimens.
6182 * io/utimensat.c: New file.
6183 * io/futimens.c: New file.
6184 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6185 * sysdeps/unix/sysv/linux/futimens.c: New file.
6186 * io/Makefile (routines): Add utimensat, futimens.
6187 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6188 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6189 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6192 * include/sys/cdefs.h: Redefine __nonnull so that test for
6193 incorrect parameters in the libc code itself are not omitted.
6195 2007-05-09 Jakub Jelinek <jakub@redhat.com>
6197 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6198 exception in addition to inexact when asked to raise only FE_INEXACT.
6201 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6204 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6207 * string/strfry.c (strfry): Make result more random.
6209 2007-05-07 Richard Henderson <rth@redhat.com>
6211 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6212 if __NO_LONG_DOUBLE_MATH.
6213 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6214 available in the compiler, add .arch directive to the assembly.
6216 2007-05-07 Jakub Jelinek <jakub@redhat.com>
6218 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6219 compat_symbol to GLIBC_2_1.
6220 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6221 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6222 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6223 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6224 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6225 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6226 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6228 (__isnanl): New compat_symbol.
6230 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6231 Jakub Jelinek <jakub@redhat.com>
6233 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6234 (new_heap): Initialize mprotect_size.
6235 (grow_heap): When growing, only mprotect from mprotect_size till
6236 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
6237 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6239 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
6240 Peter Bergner <bergner@us.ibm.com>
6242 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6243 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
6244 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6245 * sysdeps/powerpc/fpu/fe_mask.c: New file.
6246 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6247 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6248 Call __fe_mask_env() if all FP exceptions disabled.
6249 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6250 from old FPSCR to new fenv to propagate DFP rounding modes.
6251 Call __fe_mask_env() if FP exceptions previously enabled.
6252 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6253 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6254 transitioning from all exceptions disabled to any exception enabled
6256 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6257 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6258 when transitioning from all exceptions disabled to any exception
6259 enabled or visa versa.
6260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6264 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6267 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6270 * posix/unistd.h: Remove __THROW from fdatasync.
6272 2007-05-06 Mike Frysinger <vapier@gentoo.org>
6275 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6277 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6279 * stdio-common/vfprintf.c (process_string_arg): Optimize
6280 ridiculous precision in wide char code printing multi-byte string.
6281 Reported by Jim Meyering <jim@meyering.net>.
6284 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6285 boundaries to work around systems with overlapping binary loading.
6286 Based on a patch by Suzuki <suzuki@in.ibm.com>.
6288 2007-05-04 Ulrich Drepper <drepper@redhat.com>
6290 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6291 __mbsnrtowcs after last change.
6293 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6294 (get_ident): Likewise.
6296 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6298 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6299 with setting the sticky bit.
6300 * math/test-misc.c (main): Add more truncation tests.
6302 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
6304 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6305 double in the function declaration.
6306 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6307 double in the function declaration.
6308 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6309 float in the function declaration.
6310 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6311 float in the function declaration.
6313 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6314 denormal operands. Do not generate FP_EX_DENORM exception.
6315 (FP_UNPACK_RAW_EP): Ditto.
6316 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6317 undefined _FP_UNPACK_RAW_E.
6318 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6319 undefined _FP_UNPACK_RAW_EP.
6320 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6321 undefined _FP_PACK_RAW_E.
6322 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6323 undefined _FP_PACK_RAW_EP.
6325 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6327 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6330 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
6331 Jakub Jelinek <jakub@redhat.com>
6333 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6334 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
6336 * soft-fp/op-common.h (FP_TRUNC): Ditto.
6338 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6340 * math/test-misc.c (main): Add tests for rounding long double
6341 values close to smallest double denormalized value to double.
6343 2007-04-30 Joseph Myers <joseph@codesourcery.com>
6345 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6346 condition for truncating to 0. Set sticky bit for such
6349 2007-05-02 Jakub Jelinek <jakub@redhat.com>
6351 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6352 fixed length array for ignore.
6354 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6357 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6358 stack for large precisions.
6359 * stdio-common/test-vfprintf.c (main): Add test for large
6362 2007-04-30 Jakub Jelinek <jakub@redhat.com>
6364 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6366 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6369 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6370 account in the size check.
6371 * resolv/tst-inet_ntop.c: New test.
6372 * resolv/Makefile (tests): Add tst-inet_ntop.
6374 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6375 Jakub Jelinek <jakub@redhat.com>
6378 * malloc/malloc.c: Keep separate list for first blocks on the bin
6379 lists with a given size. This helps skipping over list elements
6380 we know won't fit in two places.
6381 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6383 2007-04-28 Ulrich Drepper <drepper@redhat.com>
6386 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6387 label to Teredo tunnel addresses 2001://32.
6389 2007-04-27 Ulrich Drepper <drepper@redhat.com>
6391 * locale/programs/ld-collate.c (collate_read): Allow order_start
6394 * locale/programs/ld-collate.c (collate_read): Fix printing of
6398 * locale/C-translit.h.in: Add entry for U2044.
6401 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6402 hexa-decimal floats without exponent.
6403 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6405 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6407 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6408 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6409 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6410 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6412 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6415 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6417 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6418 of 0 after the out_fail label.
6420 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6423 * iconv/gconv_charset.h (strip): Allow ':'.
6424 * iconv/iconv_open.c (iconv_open): Adjust comment.
6426 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6428 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6431 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6434 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6435 alignment of buffer and tmp_buffer.
6436 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6437 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6438 alignment of buffer.
6439 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6440 bigger than INT_MAX.
6441 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6442 h_errnop arguments. Fail if buflen is too small.
6443 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6445 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6448 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6449 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6451 2007-04-22 Roland McGrath <roland@redhat.com>
6453 * elf/elf.h (NT_PRXFPREG): New macro.
6455 2007-04-19 Andreas Jaeger <aj@suse.de>
6458 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6459 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6462 2007-04-19 Ulrich Drepper <drepper@redhat.com>
6464 * include/sys/mman.h: Mark madvise hidden.
6465 * misc/madvise.c: Add libc_hidden_def.
6467 2007-04-06 Jakub Jelinek <jakub@redhat.com>
6469 * nis/nis_domain_of.c (__nis_domain_of): New function.
6470 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6471 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6472 * nis/nis_call.c (rec_dirsearch): Likewise.
6473 (first_shoot): Likewise. Remove search_parent_first argument.
6474 (struct nis_server_cache): Rename search_parent_first field
6476 (nis_server_cache_search, nis_server_cache_add): Rename
6477 search_parent_first argument to search_parent.
6478 (__nisfind_server): Likewise. If search_parent, call
6481 2007-04-18 Ulrich Drepper <drepper@redhat.com>
6483 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6485 2007-04-17 Ulrich Drepper <drepper@redhat.com>
6488 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6490 2007-04-16 Ulrich Drepper <drepper@redhat.com>
6493 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6495 2007-04-15 Jakub Jelinek <jakub@redhat.com>
6497 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6498 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6499 current number of locales in SUPPORTED.
6500 (create_archive): Initialize serial.
6501 (enlarge_archive): Preserve aliases rather than duplicating
6504 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6506 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6507 after _IO_un_link, not before it.
6509 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6510 special case handling when wcp == wstartp + 1. Fix a comment typo.
6511 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6513 2007-03-30 Jakub Jelinek <jakub@redhat.com>
6515 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6516 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6517 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6519 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6520 _IO_file_xsgetn_maybe_mmap): Likewise.
6521 * libio/oldfileops.c (old_do_write): Likewise.
6522 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6523 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6524 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6525 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6526 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6527 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6528 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6529 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6530 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6531 _IO_file_underflow, _IO_file_underflow_mmap,
6532 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6533 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6534 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6535 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6536 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6537 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6538 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6539 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6540 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6541 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6542 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6543 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6544 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6545 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6546 _IO_adjust_column_internal, _IO_default_uflow_internal,
6547 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6548 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6549 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6550 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6551 _IO_file_close_it_internal, _IO_file_underflow_internal,
6552 _IO_file_overflow_internal, _IO_file_attach_internal,
6553 _IO_file_fopen_internal, _IO_file_sync_internal,
6554 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6555 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6556 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6557 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6558 _IO_seekpos_unlocked): Likewise.
6559 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6560 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6562 2007-04-16 Jakub Jelinek <jakub@redhat.com>
6564 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6565 argument in xmalloc size computation.
6567 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6569 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6570 math_opt_barrier and math_force_eval macros.
6572 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6575 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6576 * sysdeps/i386/fpu/math_private.h: New file.
6577 * sysdeps/x86_64/fpu/math_private.h: New file.
6578 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6579 math_force_eval macros. Use "+m" constraint on asm rather than
6581 * math/s_nextafter.c (__nextafter): Likewise.
6582 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6584 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6585 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6586 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6587 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6588 math_opt_barrier and math_force_eval macros.
6589 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6590 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6591 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6592 (__nexttoward): Use math_opt_barrier and
6593 math_force_eval macros. Use "+m" constraint on asm rather than
6594 "=m" and "m". Only use asm to force double result if
6595 FLT_EVAL_METHOD is 2.
6596 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6597 (__nexttowardf): Use math_opt_barrier and
6598 math_force_eval macros. Use "+m" constraint on asm rather than
6599 "=m" and "m". Only use asm to force double result if
6600 FLT_EVAL_METHOD is not 0.
6601 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6602 (__nexttowardf): Use math_opt_barrier and
6603 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6604 x to float using asm.
6605 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6606 (__nldbl_nexttowardf): Use math_opt_barrier and
6607 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6608 x to float using asm.
6609 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6610 (__nexttowardf): Use math_opt_barrier and math_force_eval
6611 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6612 * math/bug-nextafter.c (zero, inf): New variables.
6613 (main): Add new tests.
6614 * math/bug-nexttoward.c (zero, inf): New variables.
6615 (main): Add new tests.
6617 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6620 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6621 exceptions both in SW and MXCSR.
6622 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6623 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6624 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6625 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6626 in MXCSR if SSE is available.
6627 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6629 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6631 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6632 Return 0 rather than 1.
6633 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6634 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6635 * math/test-fenv.c (feholdexcept_tests): New function.
6638 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6641 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6644 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6647 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6648 Reported by David Anderson <davea42@earthlink.net>.
6650 2007-04-07 Ulrich Drepper <drepper@redhat.com>
6652 * posix/sys/wait.h: Remove unnecessary forward declaration.
6654 2007-04-05 Jakub Jelinek <jakub@redhat.com>
6656 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6657 with obj->do_servers after first_shoot.
6659 2007-04-03 Ulrich Drepper <drepper@redhat.com>
6661 * posix/Makefile (routines): Add sched_cpucount.
6662 (tests): Add tst-cpucount.
6663 * posix/sched_cpucount.c: New file.
6664 * posix/tst-cpucount.c: New file.
6665 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6666 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6667 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6668 * posix/sched.h: Define CPU_COUNT.
6670 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6672 * posix/fnmatch.c (STRUCT): Define.
6673 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6674 * posix/fnmatch_loop.c (struct STRUCT): New type.
6675 (FCT): Add ends argument. If ends != NULL and normal * is
6676 seen in the pattern, store current pattern and string pointers
6677 and return. Adjust recursive calls.
6678 (EXT): Adjust FCT callers.
6679 (STRUCT): Undef at the end of the file.
6680 * posix/Makefile (tests): Add tst-fnmatch2.
6681 * posix/tst-fnmatch2.c: New test.
6683 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6685 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6688 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6689 Change last argument to unsigned int.
6691 2007-03-23 Jakub Jelinek <jakub@redhat.com>
6693 * scripts/check-local-headers.sh: Filter out sys/capability.h.
6695 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6697 * config.h.in (HAVE_LIBCAP): Add.
6698 * nscd/selinux.h: Include sys/capability.h rather than non-existent
6700 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6701 free_caps. Cast away const from 4th cap_set_flag argument.
6703 2007-03-26 Ulrich Drepper <drepper@redhat.com>
6705 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6707 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6708 Add sync_file_range.
6709 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6711 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
6713 * sysdeps/powerpc/bits/atomic.h
6714 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6715 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6716 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6717 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6718 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6719 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6720 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6721 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6722 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6723 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6724 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6725 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6726 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6727 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6728 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6729 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6730 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6731 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6732 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6733 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6735 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6737 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6738 (__cache_line_size): Define the variable here. Add
6739 attribute_hidden, remove weak_extern.
6740 (__libc_start_main): Set __cache_line_size
6742 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6743 (__cache_line_size): Define the variable here. Add
6744 attribute_hidden, remove weak_extern.
6745 (DL_PLATFORM_AUXV): Set __cache_line_size
6747 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6748 weak_extern, add attribute_hidden.
6749 (__elf_machine_runtime_setup): Assume __cache_line_size is always
6751 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6753 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6755 2007-03-26 Jakub Jelinek <jakub@redhat.com>
6758 * timezone/africa: Update from tzdata2007d.
6759 * timezone/asia: Likewise.
6760 * timezone/australasia: Likewise.
6761 * timezone/backward: Likewise.
6762 * timezone/europe: Likewise.
6763 * timezone/iso3166.tab: Likewise.
6764 * timezone/leapseconds: Likewise.
6765 * timezone/northamerica: Likewise.
6766 * timezone/southamerica: Likewise.
6767 * timezone/zone.tab: Likewise.
6769 * timezone/private.h: Update from tzcode2007d.
6770 * timezone/zdump.c: Likewise.
6771 * timezone/zic.c: Likewise.
6773 2007-03-21 Jakub Jelinek <jakub@redhat.com>
6775 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6776 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6778 (nis_server_cache_search, nis_server_cache_add): New functions.
6779 (__nisfind_server): Use them. Add dbp and flags argument, if
6780 call __nisbind_create.
6781 (__nisbind_create): Add server_used and current_ep arguments,
6782 only call __nis_findfastest if server_used is ~0.
6783 (__do_niscall2, __prepare_niscall): Adjust callers.
6784 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6785 ckey_cache_euid, ckey_cache_lock): New variables.
6786 (get_ckey): New function.
6787 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6788 __pmap_getnisport. Save __pmap_getnisport result in
6789 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6791 * nis/nis_lookup.c (nis_lookup): Likewise.
6792 * nis/nis_table.c (nis_list): Likewise.
6793 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6796 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6797 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6798 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6799 _nss_nisplus_getservbyport_r): Likewise.
6800 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6801 _nss_nisplus_getnetbyaddr_r): Likewise.
6802 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6803 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6804 _nss_nisplus_getntohost_r): Likewise.
6805 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6806 _nss_nisplus_getrpcbynumber_r): Likewise.
6808 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6810 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6811 * configure: Rebuilt.
6813 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6815 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6817 2006-06-07 Joseph Myers <joseph@codesourcery.com>
6820 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6823 2007-03-18 Jakub Jelinek <jakub@redhat.com>
6825 * nscd/gai.c: Include alloca.h.
6826 (__libc_use_alloca): Define.
6828 2007-03-16 Jakub Jelinek <jakub@redhat.com>
6830 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6832 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6833 (DL_DST_REQUIRED): Adjust user.
6835 * include/dlfcn.h (struct link_map): New forward decl.
6837 * inet/getnameinfo.c: Include stddef.h.
6838 (getnameinfo): Use offsetof.
6840 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6842 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6844 * string/strerror_l.c: Include stdlib.h.
6846 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6847 * config.make.in (gnu89-inline-CFLAGS): New variable.
6848 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6850 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6851 * argp/argp.h: Use it.
6852 * bits/mathinline.h: Likewise.
6853 * bits/sigset.h: Likewise.
6854 * bits/string.h: Likewise.
6855 * ctype/ctype.h: Likewise.
6856 * hurd/hurd.h: Likewise.
6857 * hurd/hurd/fd.h: Likewise.
6858 * hurd/hurd/port.h: Likewise.
6859 * hurd/hurd/signal.h: Likewise.
6860 * hurd/hurd/threadvar.h: Likewise.
6861 * hurd/hurd/userlink.h: Likewise.
6862 * io/sys/stat.h: Likewise.
6863 * libio/bits/stdio.h: Likewise.
6864 * libio/bits/stdio2.h: Likewise.
6865 * mach/lock-intern.h: Likewise.
6866 * mach/mach/mig_support.h: Likewise.
6867 * math/bits/cmathcalls.h: Likewise.
6868 * posix/bits/unistd.h: Likewise.
6869 * socket/bits/socket2.h: Likewise.
6870 * stdlib/bits/stdlib.h: Likewise.
6871 * stdlib/stdlib.h: Likewise.
6872 * string/argz.h: Likewise.
6873 * string/bits/string2.h: Likewise.
6874 * string/bits/string3.h: Likewise.
6875 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6876 * sysdeps/generic/inttypes.h: Likewise.
6877 * sysdeps/generic/machine-lock.h: Likewise.
6878 * sysdeps/generic/machine-sp.h: Likewise.
6879 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6880 * sysdeps/i386/i486/bits/string.h: Likewise.
6881 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6882 * sysdeps/mach/alpha/machine-lock.h: Likewise.
6883 * sysdeps/mach/alpha/machine-sp.h: Likewise.
6884 * sysdeps/mach/i386/machine-lock.h: Likewise.
6885 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6886 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6887 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6888 * sysdeps/s390/bits/string.h: Likewise.
6889 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6890 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6891 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6892 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6893 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6894 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6895 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6896 * wcsmbs/bits/wchar2.h: Likewise.
6897 * wcsmbs/wchar.h: Likewise.
6898 * stdlib/gmp.h: Likewise. Include <features.h> to get
6899 __extern_inline definition.
6901 2007-03-15 Jakub Jelinek <jakub@redhat.com>
6903 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6907 * math/libm-test.inc (log_test): Test -Inf and NaN.
6908 (log10_test, log1p_test, log2_test): Test -Inf.
6909 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6910 FE_INVALID when argument is qNaN.
6911 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6912 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6913 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6914 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6915 andb $1, %ah with testb $1, %ah, don't test for parity, instead
6916 testb $4, %ah and jump if non-zero.
6917 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6918 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6921 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6922 ancestors with the same depths.
6923 Patch by Niels Moeller <nisse@lysator.liu.se>.
6924 (filter_doc): Don't crash if argp is NULL.
6925 * argp/Makefile (tests): Add tst-argp2.
6926 * argp/tst-argp2.c: New test.
6929 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6931 (updwtmp_file): Likewise.
6934 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6935 (inet6_opt_append): Don't check extlen is big enough if extbuf
6937 (inet6_opt_finish): Likewise.
6938 * inet/Makefile (tests): Add test-inet6_opt.
6939 * inet/test-inet6_opt.c: New test.
6941 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6942 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6943 NLMSG_ERR. Instead use a page sized buffer.
6944 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6947 2007-03-14 Richard Henderson <rth@redhat.com>
6949 * sysdeps/alpha/fpu/s_llround.c: New file.
6950 * sysdeps/alpha/fpu/s_llroundf.c: New file.
6951 * sysdeps/alpha/fpu/s_lround.c: New file.
6952 * sysdeps/alpha/fpu/s_lroundf.c: New file.
6953 * sysdeps/alpha/fpu/s_round.c: New file.
6954 * sysdeps/alpha/fpu/s_roundf.c: New file.
6955 * sysdeps/alpha/fpu/s_trunc.c: New file.
6956 * sysdeps/alpha/fpu/s_truncf.c: New file.
6958 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6959 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6960 * sysdeps/alpha/fpu/s_floor.c: Likewise.
6961 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6962 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6963 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6965 * sysdeps/alpha/fpu/s_fmax.S: New file.
6966 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6967 * sysdeps/alpha/fpu/s_fmin.S: New file.
6968 * sysdeps/alpha/fpu/s_fminf.S: New file.
6969 * sysdeps/alpha/fpu/s_isnan.c: New file.
6970 * sysdeps/alpha/fpu/s_isnanf.c: New file.
6971 * sysdeps/alpha/fpu/s_llrint.c: New file.
6972 * sysdeps/alpha/fpu/s_llrintf.c: New file.
6973 * sysdeps/alpha/fpu/s_lrint.c: New file.
6974 * sysdeps/alpha/fpu/s_lrintf.c: New file.
6975 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6976 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
6978 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
6979 (__fdimf, fdimf, __fdim, fdim): Remove.
6980 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
6981 (__isnanf, __isnan, __isnanl): New.
6983 2007-03-13 Richard Henderson <rth@redhat.com>
6985 * sysdeps/ieee754/ldbl-128/Makefile: New file.
6987 2007-03-13 Richard Henderson <rth@redhat.com>
6989 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
6990 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
6991 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
6992 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
6993 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
6994 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
6996 2007-03-13 Richard Henderson <rth@redhat.com>
6998 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
6999 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7000 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7001 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7002 Move to dl-auxv.h; initialize instead of extern weak.
7003 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7005 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7006 Extern instead of initialized.
7008 2007-03-13 Richard Henderson <rth@redhat.com>
7010 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7011 __sigsuspend_nocancel.
7013 2007-03-06 Ulrich Drepper <drepper@redhat.com>
7015 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7016 172.16/12 address range.
7018 2007-03-02 Jakub Jelinek <jakub@redhat.com>
7020 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7021 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7024 2007-03-01 Jakub Jelinek <jakub@redhat.com>
7027 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7029 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7031 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7032 for x qNaN and y either +-inf or non-integer value.
7033 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7034 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7035 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7037 2007-02-10 Mike Frysinger <vapier@gentoo.org>
7039 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7040 from sysdep_headers.
7042 2007-02-28 Jakub Jelinek <jakub@redhat.com>
7044 * time/tzfile.c (find_transition): Instead of a linear search try to
7045 guess the transition index, use a linear search if the result is at
7046 most 10 transitions away from the guess or binary search otherwise.
7048 2007-02-27 Jakub Jelinek <jakub@redhat.com>
7050 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7051 memory reallocation.
7053 2007-02-21 Ulrich Drepper <drepper@redhat.com>
7055 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7057 Optimize use of TOLOWER.
7060 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7061 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7062 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7065 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7066 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7069 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7070 (open_dir_stream): Likewise.
7071 * io/Makefile (tests): Add bug-ftw5.
7072 * io/bug-ftw5.c: New file.
7074 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7075 * nscd/servicescache.c (cache_addserv): Likewise.
7077 * nscd/grpcache.c (cache_addgr): In case a record changed on
7078 refresh, adjust key_copy.
7081 * nscd/pwdcache.c (cache_addpw): In case a record changed on
7082 refresh, adjust key_copy.
7085 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7087 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7089 2007-02-19 Ulrich Drepper <drepper@redhat.com>
7091 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7094 * stdio-common/vfscanf.c: Small cleanups throughout.
7096 2007-02-18 Ulrich Drepper <drepper@redhat.com>
7099 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7100 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7101 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7102 Patch by Jared Casper <jaredcasper@gmail.com>.
7104 * sysdeps/unix/closedir.c: Outside libc don't use locking.
7105 * sysdeps/unix/opendir.c: Likewise.
7106 * sysdeps/unix/readdir.c: Likewise.
7109 * stdio-common/vfscanf.c: Handle localized digits etc for floating
7111 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7113 * stdio-common/vfscanf.c: Fix problems in width accounting.
7114 * stdio-common/tst-sscanf.c (double_tests): New tests.
7115 (main): Hook them up.
7117 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7118 More simplifications of floating-point reader.
7120 * stdio-common/Makefile (tests): Add tst-swscanf.
7121 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7123 * stdio-common/tst-swscanf.c: New file.
7125 2007-02-17 Ulrich Drepper <drepper@redhat.com>
7128 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7129 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7130 Remove using for __jmp_buf_tag.
7131 * locale/locale.h (struct lconv): Also define in std namespace.
7132 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7135 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7136 using __libc_enable_secure.
7139 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7142 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7143 of names for ellipsises.
7146 * malloc/memusage.sh: Cleanups.
7147 * debug/xtrace.sh: Quoting and trap changes.
7149 2007-02-16 Ulrich Drepper <drepper@redhat.com>
7151 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7153 * locale/iso-3166.def: Update entry for Serbia.
7154 * locale/iso-4217.def: Define RSD, remove CSD.
7156 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7157 and 64-bit operations.
7160 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7163 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7166 2007-02-15 Ulrich Drepper <drepper@redhat.com>
7169 * assert/assert.h (assert): Simplify.
7170 (assert_perror): Likewise.
7171 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7173 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7176 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7177 change: don't pass NULL in place of an integer.
7179 2007-02-02 Bruno Haible <bruno@clisp.org>
7182 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7183 Add mapping for U+327E.
7184 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7185 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7186 mapping of 0xD9 0xE8.
7187 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7189 Reported by Jungshik Shin <jungshik@google.com>.
7192 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7193 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7194 Reported by Jungshik Shin <jungshik@google.com>.
7196 2007-02-14 Ulrich Drepper <drepper@redhat.com>
7198 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7202 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7203 byte variants. Patch mostly be tom@tommay.net.
7205 2007-02-14 Jakub Jelinek <jakub@redhat.com>
7208 * posix/glob.c (attribute_hidden): Define if not defined.
7209 (glob): Unescape dirname, filename or username when needed and not
7210 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7211 is NULL. Handle unescaped [ in pattern without closing ].
7212 Don't pass GLOB_CHECK down to recursive glob for directories.
7213 (__glob_pattern_type): New function.
7214 (__glob_pattern_p): Implement using __glob_pattern_type.
7215 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7216 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7217 Remove unreachable code.
7218 * posix/globtest.sh: Add a couple of new tests.
7220 2007-02-13 Ulrich Drepper <drepper@redhat.com>
7222 * po/ru.po: Update from translation team.
7224 2007-02-12 Jakub Jelinek <jakub@redhat.com>
7226 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7227 to the list of i486+ CPUs.
7228 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7230 2007-02-12 Ulrich Drepper <drepper@redhat.com>
7232 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7233 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7236 2007-02-09 Ulrich Drepper <drepper@redhat.com>
7238 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7240 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7241 * resolv/res_mkquery.c: Define __res_nopt.
7242 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7243 try adding EDNS0 record.
7244 * resolv/res_send.c (send_dg): If request failed with FORMERR and
7245 EDNS0 record was send make sure we don't try it again.
7246 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7247 * include/resolv.h: Declare __res_nopt.
7249 2007-02-08 Jakub Jelinek <jakub@redhat.com>
7252 * time/strptime_l.c (__strptime_internal): Set have_mon for
7253 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7254 have been computed from tm_yday and tm_year. Don't crash
7255 in day_of_the_week or day_of_the_year if not have_mon
7256 and tm_mon contains bogus value.
7257 * time/Makefile (tests): Add tst-strptime3.
7258 * time/tst-strptime3.c: New test.
7260 2007-02-05 Jakub Jelinek <jakub@redhat.com>
7263 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7264 bit for RE_HAT_LISTS_NOT_NEWLINE.
7265 (build_charclass_op): Remove bogus comment.
7266 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7267 * posix/bug-regex27.c: New test.
7268 * posix/bug-regex28.c: New test.
7270 2007-02-03 Ulrich Drepper <drepper@redhat.com>
7272 * po/sv.po: Update from translation team.
7274 2007-02-02 Ulrich Drepper <drepper@redhat.com>
7276 * nscd/nscd_helper.c (open_socket): Minor size optimization.
7278 2007-02-02 Jakub Jelinek <jakub@redhat.com>
7280 * include/locale.h (__uselocale): Add libc_hidden_proto.
7281 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7283 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7286 2007-02-01 Ulrich Drepper <drepper@redhat.com>
7288 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7290 (PTR_DEMANGLE): Real definition now that it's not the same as
7292 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7294 * string/strerror_l.c: New file.
7295 * string/Makefile (routines): Add strerror_l.
7296 * string/string.h: Declare strerror_l.
7297 * string/Versions: Export strerror_l for GLIBC_2.6.
7299 2007-01-31 Ulrich Drepper <drepper@redhat.com>
7301 * nscd/nscd_helper.c (open_socket): Now takes request type and key
7302 as parameter. Construct request record. Try sending request
7303 before the first poll use, it usually succeeds. Adjust all
7305 * nscd/nscd-client.h: Define MAXKEYLEN.
7306 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7308 2007-01-31 Jakub Jelinek <jakub@redhat.com>
7310 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7312 * nscd/nscd_helper.c: Include string.h.
7313 (__nscd_cache_search): Remove const qualifier from return value.
7314 On strict alignment architectures check hash entry and data head
7316 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7317 mmapped data during GC cycle contains garbage. If
7318 __nscd_drop_map_ref fails, decrement mapped->counter when returning
7319 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7321 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7322 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7323 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7324 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7325 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7327 2007-01-30 Ulrich Drepper <drepper@redhat.com>
7329 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7331 2007-01-26 Ulrich Drepper <drepper@redhat.com>
7333 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7334 names not numbers in cfi_*.
7336 2007-01-26 Andreas Jaeger <aj@suse.de>
7338 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7339 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7340 Correct values of PER_HPUX and PER_OSF4.
7342 2007-01-24 Ulrich Drepper <drepper@redhat.com>
7344 * elf/dl-minimal.c: Undefine _itoa first.
7345 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7346 * malloc/mtrace.c: Revert last change.
7347 * posix/wordexp.c: Likewise.
7349 2007-01-24 Jakub Jelinek <jakub@redhat.com>
7351 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7352 and __geode__ to the list of i486+ CPUs.
7353 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7355 2007-01-23 Ulrich Drepper <drepper@redhat.com>
7357 * stdio-common/_itoa.c: Include <limits.h>.
7358 * stdio-common/_itowa.c: Likewise.
7360 2007-01-22 Ulrich Drepper <drepper@redhat.com>
7362 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7364 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7366 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7368 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7372 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7373 * stdio-common/Makefile (tests): Add bug17.
7374 * stdio-common/bug17.c: New file.
7376 2007-01-19 Ulrich Drepper <drepper@redhat.com>
7378 * iconvdata/brf.c: New file.
7379 * iconvdata/testdata/BRF: New file.
7380 * iconvdata/testdata/BRF..UTF8: New file.
7381 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7382 * iconvdata/Makefile: Add rules to build BRF.
7383 * iconvdata/TESTS: Add BRF entry.
7384 * iconvdata/gconv-modules: Likewise.
7385 * iconvdata/tst-tables.sh: Likewise.
7387 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
7389 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7390 type `long long int', not `long int'.
7393 2007-01-18 Ulrich Drepper <drepper@redhat.com>
7395 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7396 of values on 64-bit platforms which are too large.
7398 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
7399 Joe Kerian <jkerian@us.us.ibm.com>
7402 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7403 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7404 (__copysignl): Use signbit() for comparison.
7405 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7406 SET_LDOUBLE_WORDS64.
7409 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7410 (__ceill): Remove calls to fegetround(), fesetround().
7411 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7412 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7413 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7415 2007-01-17 Jakub Jelinek <jakub@redhat.com>
7417 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7419 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7421 2007-01-17 Ulrich Drepper <drepper@redhat.com>
7423 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7425 * csu/libc-start.c: Likewise.
7427 2007-01-16 Ulrich Drepper <drepper@redhat.com>
7429 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7432 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7434 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
7436 (handle_request): Remove unnecessary tests.
7438 * nscd/cache.c (cache_add): Record the failure to add to the cache.
7440 2007-01-15 Jakub Jelinek <jakub@redhat.com>
7442 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7443 workbits in semi-raw fraction.
7445 * math/test-misc.c: Add new tests.
7447 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7449 * math/basic-test.c: Include test-skeleton.c.
7450 (TEST_TRUNC): Define.
7451 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7452 (main): Rename to ...
7453 (do_test): ...this. Run new tests.
7454 (TEST_FUNCTION): Define.
7456 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7457 Joe Kerian <jkerian@us.us.ibm.com>
7460 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7461 handling for high words.
7462 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7463 and overflow for infinity.
7465 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7467 * nscd/connections.c (handle_request): Add a __builtin_expect.
7469 * nscd/connections.c (serv2db): Change type into structure which
7470 also says whether this is a request for data. Renamed to
7471 servinfo. All users changed.
7472 (handle_request): Much simpler test whether we should search the cache.
7474 * nscd/connections.c (handle_request): Fix thinko in selinux test
7477 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7478 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7479 it before getting dl_load_lock and then relock.
7480 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7481 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7482 case we unlocked the scope.
7483 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7484 _dl_lookup_symbol_x in case we locked the scope.
7485 (_dl_profile_fixup): Likewise.
7486 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7487 set DL_LOOKUP_SCOPE_LOCK.
7489 2007-01-13 Ulrich Drepper <drepper@redhat.com>
7491 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7492 CFLAGS-getsrvbynpt_r.c.
7493 * nscd/getsrvbynm_r.c: New file.
7494 * nscd/getsrvbypt_r.c: New file.
7495 * nscd/nscd_getserv_r.c: New file.
7496 * nscd/servicescache.c: New file.
7497 * nscd/Makefile (routines): Add nscd_getserv_r.
7498 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7499 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7500 CFLAGS-getsrvbypt_r.c.
7501 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7502 table. Add entries for services database.
7503 * nscd/connections.c (serv2str): Mark as const. Add entries for
7505 (dbs): Add .reset_res and servdb initialization.
7506 (serv2db): Add entries for services database.
7507 (verify_persistent_db): Accept dbnr == servdb.
7508 (invalidate_cache): Rewrite database name recognition to use a table.
7509 Call res_init() if .reset_res is set for database.
7510 (handle_request): Add code to handle services database.
7511 * nscd/gai.c: Don't define __getservbyname_r.
7512 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7513 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7514 (serv_response_header): Define.
7515 (struct datahead): Add serv_response_header member.
7516 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7518 * nscd/nscd.conf: Add entries for services database.
7519 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7520 Declare serv_iov_disabled.
7521 Declare addservbyname, readdservbyname, addservbyport, and
7523 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7524 (find_db): Fix error message.
7525 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7526 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7527 * nscd/selinux.c (perms): Add entries for services database.
7528 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7529 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7531 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7532 * nscd/hstcache.c: Likewise.
7533 * nscd/pwdcache.c: Likewise.
7535 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7536 computation of keylen.
7538 * include/string.h: Only redefine strndupa if this is really for
7541 2007-01-12 Ulrich Drepper <drepper@redhat.com>
7543 * nscd/nscd_gethst_r.c: Minor cleanups.
7545 * nscd/connections.c (handle_request): Check selinux permissions
7546 for all non-admin commands.
7548 * sysdeps/i386/i486/bits/atomic.h: Define
7549 atomic_compare_and_exchange_val_acq,
7550 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7551 using __sync_* built-ins for gcc >= 4.1.
7552 * sysdeps/x86_64/bits/atomic.h: Likewise.
7555 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7558 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7560 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7561 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7562 (do_test): Check errno and exit(0) if ENOSYS.
7564 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7566 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7567 thousands separators.
7568 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7569 * stdlib/tst-strtod4.c: New test.
7572 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7573 hexadecimal digit should accept just the initial 0.
7574 * stdlib/tst-strtod2.c (tests): New variable.
7575 (do_test): Run several tests rather than just one.
7577 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7579 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7580 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7582 2007-01-10 Ulrich Drepper <drepper@redhat.com>
7584 * io/fts.c: Make sure fts_cur is always valid after return from
7586 Patch by Miloslav Trmac <mitr@redhat.com>.
7588 2006-10-27 Richard Sandiford <richard@codesourcery.com>
7590 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7591 (R_MIPS_NUM): Bump by 1.
7593 2007-01-03 Jakub Jelinek <jakub@redhat.com>
7595 * posix/execvp.c: Include alloca.h.
7596 (allocate_scripts_argv): Renamed to...
7597 (scripts_argv): ... this. Don't allocate buffer here nor count
7599 (execvp): Use alloca if possible.
7600 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7601 * posix/tst-vfork3.c: New test.
7603 2007-01-03 Ulrich Drepper <drepper@redhat.com>
7605 * string/Makefile (tst-strxfrm2-ENV): Define.
7606 * stdlib/Makefile (tst-strtod3-ENV): Define.
7608 2007-01-02 Ulrich Drepper <drepper@redhat.com>
7610 * posix/getconf.c: Update copyright year.
7611 * nss/getent.c: Likewise.
7612 * iconv/iconvconfig.c: Likewise.
7613 * iconv/iconv_prog.c: Likewise.
7614 * elf/ldconfig.c: Likewise.
7615 * catgets/gencat.c: Likewise.
7616 * csu/version.c: Likewise.
7617 * elf/ldd.bash.in: Likewise.
7618 * elf/sprof.c (print_version): Likewise.
7619 * locale/programs/locale.c: Likewise.
7620 * locale/programs/localedef.c: Likewise.
7621 * nscd/nscd.c (print_version): Likewise.
7622 * debug/xtrace.sh: Likewise.
7623 * malloc/memusage.sh: Likewise.
7624 * malloc/mtrace.pl: Likewise.
7625 * debug/catchsegv.sh: Likewise.
7627 2006-12-24 Ulrich Drepper <drepper@redhat.com>
7629 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7632 2006-12-23 Ulrich Drepper <drepper@redhat.com>
7634 * posix/wordexp.c: Remove some unnecessary tests.
7636 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7638 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7639 blacklist the group till after we look it up.
7641 2006-12-21 Ulrich Drepper <drepper@redhat.com>
7643 * include/atomic.h (atomic_forced_read): New macro.
7645 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7647 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7649 2006-12-19 Jakub Jelinek <jakub@redhat.com>
7651 * nss/getXXbyYY_r.c: Include atomic.h.
7652 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7653 add atomic_write_barrier () in between.
7655 * stdlib/Makefile (tests): Add tst-makecontext.
7656 * stdlib/tst-makecontext.c: New test.
7658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7659 (__makecontext): Don't realign uc_mcontext.uc_regs.
7661 2006-11-28 Jakub Jelinek <jakub@redhat.com>
7663 * elf/dl-support.c: Include dl-procinfo.h.
7664 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7665 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7666 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7668 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7669 hardcoded constants.
7670 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7671 PPC_PLATFORM_* macros for array designators.
7673 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
7675 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7676 names to the beginning.
7677 (_dl_powerpc_platforms): Add "power6x".
7678 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7679 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7680 (_DL_PLATFORMS_COUNT): Increase.
7681 (_dl_string_platform): Handle power6x case.
7682 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7683 PPC_FEATURE_POWER6_EXT): Define.
7684 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7686 2006-12-18 Jakub Jelinek <jakub@redhat.com>
7689 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7690 [-2^31 .. 2^31) range.
7691 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7693 * stdlib/tst-rand48-2.c: New test.
7694 * stdlib/Makefile (tests): Add tst-rand48-2.
7696 2006-12-14 Jakub Jelinek <jakub@redhat.com>
7698 * misc/tst-pselect.c (do_test): Fix sigblock argument.
7700 2006-12-14 Ulrich Drepper <drepper@redhat.com>
7702 * misc/tst-pselect.c (do_test): Make sure the helper process is
7703 terminating when the test is aborted.
7705 2006-12-13 Ulrich Drepper <drepper@redhat.com>
7707 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7708 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7709 Handle relatime mount option.
7712 * libio/Makefile (tests): Add tst-setvbuf1.
7713 * libio/tst-setvbuf1.c: New file.
7715 2006-12-08 Jakub Jelinek <jakub@redhat.com>
7718 * libio/genops.c (__uflow): Fix a typo.
7719 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7720 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
7721 the narrow buffer size.
7723 2006-11-24 Jakub Jelinek <jakub@redhat.com>
7726 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7727 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7728 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7730 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7731 _IO_wstr_finish): Likewise.
7732 * libio/wmemstream.c (open_wmemstream): Likewise.
7733 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7734 even for wide streams.
7736 2006-12-13 Jakub Jelinek <jakub@redhat.com>
7738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7741 2006-12-11 Ulrich Drepper <drepper@redhat.com>
7743 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7744 separators also if no non-zero digits found.
7745 * stdlib/Makefile (tests): Add tst-strtod3.
7747 2006-12-09 Ulrich Drepper <drepper@redhat.com>
7750 * include/features.h: Fix comment about default value for
7754 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7755 empty parsed strings.
7756 * stdlib/Makefile (tests): Add tst-strtod2.
7757 * stdlib/tst-strtod2.c: New file.
7760 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7762 * stdlib/Makefile (tests): Add tst-atof2.
7763 * stdlib/tst-atof2.c: New file.
7766 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7767 correctly if removing trailing zero of hex-float.
7768 * stdlib/Makefile (tests): Add tst-atof1.
7769 * stdlib/tst-atof1.c: New file.
7771 2006-12-09 Jakub Jelinek <jakub@redhat.com>
7773 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7774 Start searching for next comma at p rather than rest.
7775 * misc/Makefile (tests): Add tst-mntent2.
7776 * misc/tst-mntent2.c: New test.
7778 * misc/getusershell.c (initshells): Check for integer overflows.
7779 Make strings buffer one bigger as fgets always succeeds when second
7780 argument is 1. Don't use calloc for shells array. Disallow
7783 2006-12-08 Ulrich Drepper <drepper@redhat.com>
7785 * malloc/memusage.c: Handle realloc with new size of zero and
7786 non-NULL pointer correctly.
7787 (me): Really write first record twice.
7788 (struct entry): Make format bi-arch safe.
7789 (dest): Write out more realloc statistics.
7790 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7792 2006-12-05 Jakub Jelinek <jakub@redhat.com>
7794 * nis/nis_subr.c (nis_getnames): Revert last change.
7796 2006-12-04 Jakub Jelinek <jakub@redhat.com>
7798 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7799 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7800 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7801 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7803 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7804 * io/tst-ttyname_r.c: New test.
7806 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7808 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7810 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
7812 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7815 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7817 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7818 `clone' function to ensure proper unwinding stop of gdb.
7819 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7821 2006-12-01 Ulrich Drepper <drepper@redhat.com>
7823 * nscd/nscd.init: Remove obsolete and commented-out -S option
7826 2006-11-23 Jakub Jelinek <jakub@redhat.com>
7829 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7832 * manual/string.texi (strtok): Remove duplicate paragraph.
7834 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7836 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7837 libgcc not supporting `rflags' unwinding (register # >= 17).
7839 2006-11-30 Jakub Jelinek <jakub@redhat.com>
7841 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7844 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7845 Jakub Jelinek <jakub@redhat.com>
7846 Jan Kratochvil <jan.kratochvil@redhat.com>
7848 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7850 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7851 'restore_rt' even in the 'signal' directory.
7852 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7854 2006-11-27 Jakub Jelinek <jakub@redhat.com>
7857 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7858 malloc crashed. Don't allocate memory unnecessarily in each
7861 2006-10-21 Jakub Jelinek <jakub@redhat.com>
7863 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7865 2006-11-20 Ulrich Drepper <drepper@redhat.com>
7867 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7869 2006-11-18 Bruno Haible <bruno@clisp.org>
7871 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7872 __sysconf only after having tried to call getgroups32.
7874 2006-11-19 Ulrich Drepper <drepper@redhat.com>
7876 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7877 addresses for IPv4 queries if they can be mapped.
7879 2006-11-16 Jakub Jelinek <jakub@redhat.com>
7881 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7882 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7883 (signmask): Add .size directive.
7884 (othermask): Add .type directive.
7886 2006-11-14 Ulrich Drepper <drepper@redhat.com>
7888 * po/nl.po: Update from translation team.
7890 * timezone/zdump.c: Redo fix for BZ #3137.
7892 2006-11-14 Jakub Jelinek <jakub@redhat.com>
7894 * nss/nss_files/files-alias.c (get_next_alias): Set line back
7895 to first_unused after parsing :include: file.
7897 2006-11-10 Ulrich Drepper <drepper@redhat.com>
7899 * timezone/africa: Update from tzdata2006o.
7900 * timezone/antarctica: Likewise.
7901 * timezone/asia: Likewise.
7902 * timezone/australasia: Likewise.
7903 * timezone/backward: Likewise.
7904 * timezone/europe: Likewise.
7905 * timezone/iso3166.tab: Likewise.
7906 * timezone/northamerica: Likewise.
7907 * timezone/southamerica: Likewise.
7908 * timezone/zone.tab: Likewise.
7910 * time/tzfile.c (__tzfile_read): Extend to handle new file format
7911 on machines with 64-bit time_t.
7913 * timezone/checktab.awk: Update from tzcode2006o.
7914 * timezone/ialloc.c: Likewise.
7915 * timezone/private.h: Likewise.
7916 * timezone/scheck.c: Likewise.
7917 * timezone/tzfile.h: Likewise.
7918 * timezone/tzselect.ksh: Likewise.
7919 * timezone/zdump.c: Likewise.
7920 * timezone/zic.c: Likewise.
7923 * elf/ldconfig.c (main): Call setlocale and textdomain.
7924 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7927 * manual/argp.texi: Fix typos.
7928 * manual/charset.texi: Likewise.
7929 * manual/errno.texi: Likewise.
7930 * manual/filesys.texi: Likewise.
7931 * manual/lang.texi: Likewise.
7932 * manual/maint.texi: Likewise.
7933 * manual/memory.texi: Likewise.
7934 * manual/message.texi: Likewise.
7935 * manual/resource.texi: Likewise.
7936 * manual/search.texi: Likewise.
7937 * manual/signal.texi: Likewise.
7938 * manual/startup.texi: Likewise.
7939 * manual/stdio.texi: Likewise.
7940 * manual/sysinfo.texi: Likewise.
7941 * manual/syslog.texi: Likewise.
7942 * manual/time.texi: Likewise.
7943 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7946 * sunrpc/clnt_raw.c: Minimal message improvements.
7947 * sunrpc/pm_getmaps.c: Likewise.
7948 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7949 * nis/nis_print_group_entry.c: Likewise.
7950 * locale/programs/repertoire.c: Likewise.
7951 * locale/programs/charmap.c: Likewise.
7952 * malloc/memusage.sh: Likewise.
7953 * elf/dl-deps.c: Likewise.
7954 * locale/programs/ld-collate.c: Likewise.
7955 * libio/vswprintf.c: Likewise.
7956 * malloc/memusagestat.c: Likewise.
7957 * sunrpc/auth_unix.c: Likewise.
7958 * sunrpc/rpc_main.c: Likewise.
7959 * nscd/cache.c: Likewise.
7960 * locale/programs/repertoire.c: Unify output messages.
7961 * locale/programs/charmap.c: Likewise.
7962 * locale/programs/ld-ctype.c: Likewise.
7963 * locale/programs/ld-monetary.c: Likewise.
7964 * locale/programs/ld-numeric.c: Likewise.
7965 * locale/programs/ld-time.c: Likewise.
7966 * elf/ldconfig.c: Likewise.
7967 * nscd/selinux.c: Likewise.
7968 * elf/cache.c: Likewise.
7969 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7972 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7976 2006-11-10 Jakub Jelinek <jakub@redhat.com>
7978 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
7979 if N is one bigger than return value.
7980 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
7981 and l1 last arguments, if buf is defined, verify the return value
7982 equals to strlen (buf) and verify no byte beyond passed length
7985 2006-11-10 Ulrich Drepper <drepper@redhat.com>
7987 * po/sv.po: Update from translation team.
7989 2006-11-09 Ulrich Drepper <drepper@redhat.com>
7991 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
7994 2006-11-10 Jakub Jelinek <jakub@redhat.com>
7996 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
7999 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8000 Use __new_sys_siglist instead of _sys_siglist_internal as
8001 second macro argument.
8002 (_old_sys_siglist): Use declare_symbol_alias macro instead of
8005 2006-11-09 Ulrich Drepper <drepper@redhat.com>
8008 * posix/unistd.h (sysconf): Remove const attribute.
8010 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8011 temporary or deprecated addresses.
8012 Patch by Sridhar Samudrala <sri@us.ibm.com>.
8014 * string/Makefile (tests): Add tst-strxfrm2.
8015 * string/tst-strxfrm2.c: New file.
8017 2006-10-09 Jakub Jelinek <jakub@redhat.com>
8019 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8020 rather than r->r_brk.
8022 2006-11-08 Jakub Jelinek <jakub@redhat.com>
8024 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8025 optimization even if needed > n.
8027 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8028 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8029 return false, otherwise return true.
8030 (cache_rpath): Return decompose_rpath return value.
8032 2006-11-07 Jakub Jelinek <jakub@redhat.com>
8034 * include/libc-symbols.h (declare_symbol): Rename to...
8035 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
8036 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8038 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8040 * sysdeps/gnu/siglist.c: Likewise.
8042 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
8044 * sysdeps/powerpc/fpu/bits/mathinline.h
8045 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8046 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
8048 2006-11-05 Ulrich Drepper <drepper@redhat.com>
8050 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8051 Update handling of cache descriptor 0x49 for new models.
8052 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8055 2006-11-02 Jakub Jelinek <jakub@redhat.com>
8057 * malloc/memusage.c (dest): Reset not_me back to false after
8058 printing statistics.
8060 2006-11-02 Ulrich Drepper <drepper@redhat.com>
8062 * configure.in: Work around ld --help change and avoid -z relro
8063 test completely if the architecture doesn't care about security.
8065 2006-11-01 Ulrich Drepper <drepper@redhat.com>
8067 * po/sv.po: Update from translation team.
8069 2006-10-31 Ulrich Drepper <drepper@redhat.com>
8071 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8072 generate compatibility version.
8074 2006-10-29 Ulrich Drepper <drepper@redhat.com>
8076 * configure.in: Relax -z relro requirement a bit.
8078 * po/sv.po: Update from translation team.
8080 2006-10-29 Jakub Jelinek <jakub@redhat.com>
8082 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8083 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8084 * elf/dl-close.c (_dl_close_worker): Likewise.
8085 * elf/dl-open.c (_dl_open_worker): Likewise.
8086 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8088 2006-10-27 Ulrich Drepper <drepper@redhat.com>
8090 * configure.in: Require assembler support for visibility, compiler
8091 support for visibility and aliases, linker support for various -z
8093 * Makeconfig: Remove conditional code which now is unnecessary.
8094 * config.h.in: Likewise.
8095 * config.make.in: Likewise.
8096 * dlfcn/Makefile: Likewise.
8097 * elf/Makefile: Likewise.
8098 * elf/dl-load.c: Likewise.
8099 * elf/rtld.c: Likewise.
8100 * include/libc-symbols.h: Likewise.
8101 * include/stdio.h: Likewise.
8102 * io/Makefile: Likewise.
8103 * io/fstat.c: Likewise.
8104 * io/fstat64.c: Likewise.
8105 * io/fstatat.c: Likewise.
8106 * io/fstatat64.c: Likewise.
8107 * io/lstat.c: Likewise.
8108 * io/lstat64.c: Likewise.
8109 * io/mknod.c: Likewise.
8110 * io/mknodat.c: Likewise.
8111 * io/stat.c: Likewise.
8112 * io/stat64.c: Likewise.
8113 * libio/stdio.c: Likewise.
8114 * nscd/Makefile: Likewise.
8115 * stdlib/Makefile: Likewise.
8116 * stdlib/atexit.c: Likewise.
8117 * sysdeps/generic/ldsodefs.h: Likewise.
8118 * sysdeps/i386/dl-machine.h: Likewise.
8119 * sysdeps/i386/sysdep.h: Likewise.
8120 * sysdeps/i386/i686/memcmp.S: Likewise.
8121 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8122 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8123 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8125 * Makerules: USE_TLS support is now default.
8126 * tls.make.c: Likewise.
8127 * csu/Versions: Likewise.
8128 * csu/libc-start.c: Likewise.
8129 * csu/libc-tls.c: Likewise.
8130 * csu/version.c: Likewise.
8131 * dlfcn/dlinfo.c: Likewise.
8132 * elf/dl-addr.c: Likewise.
8133 * elf/dl-cache.c: Likewise.
8134 * elf/dl-close.c: Likewise.
8135 * elf/dl-iteratephdr.c: Likewise.
8136 * elf/dl-load.c: Likewise.
8137 * elf/dl-lookup.c: Likewise.
8138 * elf/dl-object.c: Likewise.
8139 * elf/dl-open.c: Likewise.
8140 * elf/dl-reloc.c: Likewise.
8141 * elf/dl-support.c: Likewise.
8142 * elf/dl-sym.c: Likewise.
8143 * elf/dl-sysdep.c: Likewise.
8144 * elf/dl-tls.c: Likewise.
8145 * elf/ldconfig.c: Likewise.
8146 * elf/rtld.c: Likewise.
8147 * elf/tst-tls-dlinfo.c: Likewise.
8148 * elf/tst-tls1.c: Likewise.
8149 * elf/tst-tls10.h: Likewise.
8150 * elf/tst-tls14.c: Likewise.
8151 * elf/tst-tls2.c: Likewise.
8152 * elf/tst-tls3.c: Likewise.
8153 * elf/tst-tls4.c: Likewise.
8154 * elf/tst-tls5.c: Likewise.
8155 * elf/tst-tls6.c: Likewise.
8156 * elf/tst-tls7.c: Likewise.
8157 * elf/tst-tls8.c: Likewise.
8158 * elf/tst-tls9.c: Likewise.
8159 * elf/tst-tlsmod1.c: Likewise.
8160 * elf/tst-tlsmod13.c: Likewise.
8161 * elf/tst-tlsmod13a.c: Likewise.
8162 * elf/tst-tlsmod14a.c: Likewise.
8163 * elf/tst-tlsmod2.c: Likewise.
8164 * elf/tst-tlsmod3.c: Likewise.
8165 * elf/tst-tlsmod4.c: Likewise.
8166 * elf/tst-tlsmod5.c: Likewise.
8167 * elf/tst-tlsmod6.c: Likewise.
8168 * include/errno.h: Likewise.
8169 * include/link.h: Likewise.
8170 * include/tls.h: Likewise.
8171 * locale/global-locale.c: Likewise.
8172 * locale/localeinfo.h: Likewise.
8173 * malloc/arena.c: Likewise.
8174 * malloc/hooks.c: Likewise.
8175 * malloc/malloc.c: Likewise.
8176 * resolv/Versions: Likewise.
8177 * sysdeps/alpha/dl-machine.h: Likewise.
8178 * sysdeps/alpha/libc-tls.c: Likewise.
8179 * sysdeps/generic/ldsodefs.h: Likewise.
8180 * sysdeps/generic/tls.h: Likewise.
8181 * sysdeps/i386/dl-machine.h: Likewise.
8182 * sysdeps/ia64/dl-machine.h: Likewise.
8183 * sysdeps/ia64/libc-tls.c: Likewise.
8184 * sysdeps/mach/hurd/fork.c: Likewise.
8185 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8186 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8187 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8188 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8189 * sysdeps/s390/libc-tls.c: Likewise.
8190 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8191 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8192 * sysdeps/sh/dl-machine.h: Likewise.
8193 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8194 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8195 * sysdeps/x86_64/dl-machine.h: Likewise.
8197 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8198 split out locking and parameter checking.
8199 (_dl_close): Call _dl_close_worker after locking and checking.
8200 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8202 * elf/Makefile: Add rules to build and run tst-thrlock.
8203 * elf/tst-thrlock.c: New file.
8206 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8210 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8211 we are sure we do not need it anymore for _dl_close. Also move
8212 the asserts inside the lock region.
8213 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8215 2006-10-27 Jakub Jelinek <jakub@redhat.com>
8217 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8219 (_dl_lookup_symbol_x): Adjust caller.
8221 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8223 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8225 * elf/dl-libc.c: Revert l_scope name changes.
8226 * elf/dl-load.c: Likewise.
8227 * elf/dl-object.c: Likewise.
8228 * elf/rtld.c: Likewise.
8229 * elf/dl-close.c (_dl_close): Likewise.
8230 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8231 always use __rtld_mrlock_{change,done}. Always free old scope list
8232 here if not l_scope_mem.
8233 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8234 change. Never free scope list here. Just __rtld_mrlock_lock before
8235 the lookup and __rtld_mrlock_unlock it after the lookup.
8236 * elf/dl-sym.c: Likewise.
8237 * include/link.h (struct r_scoperec): Remove.
8238 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8239 with l_scope_mem and l_scoperec_lock with l_scope_lock.
8241 2006-10-25 Ulrich Drepper <drepper@redhat.com>
8243 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8245 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8247 * configure.in: Disable building profile libraries by default.
8249 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8251 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8252 as signed longs, check for x_base + pos overflow.
8253 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8254 * sunrpc/tst-xdrmem2.c: New test.
8256 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8258 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8259 _dl_lookup_symbol_x code.
8261 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8263 * elf/dl-runtime.c: Include sysdep-cancel.h.
8264 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8265 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
8266 instead of catomic_* macros.
8267 * elf/dl-sym.c: Include sysdep-cancel.h.
8268 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8269 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8270 * elf/dl-close.c: Include sysdep-cancel.h.
8271 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8272 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8273 * elf/dl-open.c: Include sysdep-cancel.h.
8274 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8275 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8277 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8280 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8281 fastbin rather than end of fastbin array.
8283 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8285 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8287 * sysdeps/x86_64/bits/atomic.h
8288 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8289 (catomic_decrement): Use correct body macro.
8291 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8293 * include/atomic.h: Add a unique prefix to all local variables
8295 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8297 2006-10-16 Ulrich Drepper <drepper@redhat.com>
8300 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8303 2006-10-14 Ulrich Drepper <drepper@redhat.com>
8305 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8307 2006-10-13 Ulrich Drepper <drepper@redhat.com>
8310 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8311 determine highest fast bin to consolidate, always look into all of
8313 (do_check_malloc_state): Only require for empty bins for large
8314 sizes in main arena.
8316 * libio/stdio.h: Add more __wur attributes.
8318 * elf/dl-minimal.c (realloc): Optimize last patch.
8320 2006-10-12 Richard Sandiford <richard@codesourcery.com>
8323 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8324 and use memcpy() if it does.
8326 2006-11-12 Andreas Jaeger <aj@suse.de>
8329 * manual/search.texi (Hash Search Function): Clarify.
8330 (Array Search Function): Clarify.
8332 2006-11-12 Joseph Myers <joseph@codesourcery.com>
8335 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8337 * math/atest-exp2.c (read_mpn_hex): Likewise.
8338 * math/atest-sincos.c (main): Likewise.
8340 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8342 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8343 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8344 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8346 * Versions.def: Add GLIBC_2.6 for libc.
8348 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8350 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8352 2006-10-11 Jakub Jelinek <jakub@redhat.com>
8354 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8356 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8358 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8359 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8361 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8363 * include/atomic.c: Define catomic_* operations.
8364 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
8365 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8366 * malloc/memusage.c: Likewise.
8367 * gmon/mcount.c: Likewise.
8368 * elf/dl-close.c: Likewise.
8369 * elf/dl-open.c: Likewise.
8370 * elf/dl-profile.c: Likewise.
8371 * elf/dl-sym.c: Likewise.
8372 * elf/dl-runtime.c: Likewise.
8373 * elf/dl-fptr.c: Likewise.
8374 * resolv/res_libc.c: Likewise.
8376 2006-10-10 Ulrich Drepper <drepper@redhat.com>
8378 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8379 components which lack them.
8381 * nis/nis_subr.c (nis_getnames): Make sure that we always return
8382 at least one entry consisting of the parameter concatenated with
8385 2006-10-10 Roland McGrath <roland@frob.com>
8387 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8388 * sysdeps/mach/hurd/futimes.c: Likewise.
8389 * sysdeps/mach/hurd/lutimes.c: Likewise.
8391 2006-10-09 Ulrich Drepper <drepper@redhat.com>
8392 Jakub Jelinek <jakub@redhat.com>
8394 Implement reference counting of scope records.
8395 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8396 from the list in objects which remain. Always allocate new scope
8398 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8399 don't resize, allocate a new one.
8400 * elf/dl-runtime.c: Update reference counters before using a scope
8402 * elf/dl-sym.c: Likewise.
8403 * elf/dl-libc.c: Adjust for l_scope name change.
8404 * elf/dl-load.c: Likewise.
8405 * elf/dl-object.c: Likewise.
8406 * elf/rtld.c: Likewise.
8407 * include/link.h: Include <rtld-lowlevel.h>. Define struct
8408 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
8409 Add l_scoperec_lock.
8410 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8411 * sysdeps/generic/rtld-lowlevel.h: New file.
8413 * include/atomic.h: Rename atomic_and to atomic_and_val and
8414 atomic_or to atomic_or_val. Define new macros atomic_and and
8415 atomic_or which do not return values.
8416 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8418 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8420 * po/sv.po: Update from translation team.
8422 2006-10-07 Ulrich Drepper <drepper@redhat.com>
8424 * Versions.def: Add GLIBC_2.6 to libpthread.
8426 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8427 (versioned_symbol): Likewise.
8428 (compat_symbol): Likewise.
8430 * po/tr.po: Update from translation team.
8432 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8434 * nis/Banner: Removed. It's been integral part forever and the
8435 author info is incomplete anyway.
8436 * libio/Banner: Likewise.
8438 * nis/nis_table.c (nis_list): If __follow_path fails in the new
8439 code, make sure the nis_freeresult call doesn't crash and that the
8440 result is reported correctly.
8442 2006-09-27 Jakub Jelinek <jakub@redhat.com>
8444 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8445 when callback is NULL.
8447 * nis/Versions (libnss_nisplus): Add
8448 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8449 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8450 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8451 _nss_create_tablename): Rename to...
8452 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8453 ... these. No longer static.
8454 (internal_setgrent): Adjust users.
8455 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8456 Don't use locking around _nss_grp_create_tablename call.
8457 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8459 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8461 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8463 2006-10-06 Andreas Jaeger <aj@suse.de>
8465 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8467 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8469 * po/pl.po: Update from translation team.
8471 * nscd/nscd.c (main): Fix typo in message.
8472 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8474 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8477 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8478 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8479 (__sigprocmask): Define.
8481 2006-10-02 Ulrich Drepper <drepper@redhat.com>
8483 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8486 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8488 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8489 in oldtotal and newtotal calculation.
8490 * nscd/nscd-client.h (struct mapped_database): Add datasize
8492 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8493 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8495 (__nscd_cache_search): Add checks to make sure we never reference
8496 data beyond the current mapping.
8498 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8500 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8501 variables const to avoid compiler warnings.
8503 * io/fts.c (fts_close): Remove redundant checks.
8504 (fts_build): Likewise.
8505 (fts_palloc): Likewise.
8507 * manual/message.texi (Advanced gettext functions,
8508 Using gettextized software): Fix typos.
8510 2006-09-30 Ulrich Drepper <drepper@redhat.com>
8512 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8513 explain why there are no leaks.
8515 2006-09-29 Ulrich Drepper <drepper@redhat.com>
8517 * libio/wmemstream.c: Include <wchar.h>.
8518 * libio/bug-wmemstream1.c: Likewise.
8519 * libio/tst-wmemstream1.c: Likewise.
8520 * libio/tst-wmemstream2.c: Likewise.
8522 * version.h (RELEASE): Bump to 2.5.
8523 * README: Regenerated.
8525 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8528 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8529 found no group members.
8530 Patch by Petr Baudis.
8532 2006-09-29 Jakub Jelinek <jakub@redhat.com>
8534 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8535 assert bootstrap_map.l_tls_modid is zero.
8536 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8539 2006-09-27 Ulrich Drepper <drepper@redhat.com>
8541 * libio/stdio.h: Move open_wmemstream prototype to ...
8542 * wcsmbs/wchar.h: ... here.
8544 2006-09-25 Jakub Jelinek <jakub@redhat.com>
8547 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8548 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8549 __{,l}chown to handle the rest.
8550 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8551 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8552 __{,l}chown to handle the rest.
8553 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8555 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8556 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8559 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8560 time, rather allocate increasingly bigger arrays of pointers, if
8561 possible with alloca, if too large with malloc.
8563 2006-09-24 Jakub Jelinek <jakub@redhat.com>
8565 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8567 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8569 2006-09-24 Ulrich Drepper <drepper@redhat.com>
8571 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8573 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8574 IFA_F_HOMEADDRESS flag for interfaces.
8575 * include/ifaddrs.h (struct in6addrinfo): Define
8578 2006-09-21 Jakub Jelinek <jakub@redhat.com>
8581 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8582 PTR_DEMANGLE3): Define.
8583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8584 PTR_DEMANGLE3): Likewise.
8585 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8586 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8588 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8590 2006-09-20 Jakub Jelinek <jakub@redhat.com>
8592 * po/libc.pot: Regenerated.
8593 * po/be.po: Updated.
8594 * po/ca.po: Likewise.
8595 * po/cs.po: Likewise.
8596 * po/da.po: Likewise.
8597 * po/de.po: Likewise.
8598 * po/el.po: Likewise.
8599 * po/en_GB.po: Likewise.
8600 * po/es.po: Likewise.
8601 * po/fi.po: Likewise.
8602 * po/fr.po: Likewise.
8603 * po/gl.po: Likewise.
8604 * po/hr.po: Likewise.
8605 * po/hu.po: Likewise.
8606 * po/ja.po: Likewise.
8607 * po/ko.po: Likewise.
8608 * po/nb.po: Likewise.
8609 * po/nl.po: Likewise.
8610 * po/pl.po: Likewise.
8611 * po/pt_BR.po: Likewise.
8612 * po/ru.po: Likewise.
8613 * po/rw.po: Likewise.
8614 * po/sk.po: Likewise.
8615 * po/sv.po: Likewise.
8616 * po/tr.po: Likewise.
8617 * po/zh_CN.po: Likewise.
8618 * po/zh_TW.po: Likewise.
8621 * iconv/iconv_prog.c (main): Fix spelling in error message.
8622 * iconv/iconvconfig.c (main): Likewise.
8623 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8624 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8625 * locale/programs/localedef.c (main): Likewise.
8626 * locale/programs/repertoire.c (repertoire_read): Likewise.
8627 * timezone/zdump.c (main): Likewise.
8628 * nscd/connections.c (handle_request): Fix spelling in log message.
8629 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8631 2006-09-20 Ulrich Drepper <drepper@redhat.com>
8633 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8636 2006-09-20 Andreas Jaeger <aj@suse.de>
8638 * math/libm-test.inc (lrint_test_upward): Fix typo.
8640 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8643 * math/libm-test.inc (lrint_test_tonearest): New function.
8644 (lrint_test_towardzero): New function.
8645 (lrint_test_downward): New function.
8646 (lrint_test_upward): New function.
8647 (main): Run these new tests.
8648 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8649 of values near to 0.
8650 (two52): Use double not long double.
8651 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8652 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8653 (two23): Use float not double.
8654 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8655 (two23): Use float not double.
8656 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8657 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8658 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8659 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8661 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8663 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8664 Cast sp to unsigned long to avoid compiler warning.
8665 Use __makecontext_ret function instead of a trampoline on the stack.
8666 (__makecontext_ret): New function.
8667 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8669 2006-09-19 Jakub Jelinek <jakub@redhat.com>
8671 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8672 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8675 2006-09-19 Ulrich Drepper <drepper@redhat.com>
8677 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8678 sure no reference to the unloaded map's search list remains in the
8681 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8683 * elf/Makefile: Add rules to build and run unload7 test.
8684 * elf/unload7.c: New test.
8685 * elf/unload7mod1.c: New file.
8686 * elf/unload7mod2.c: New file.
8688 2006-09-18 Jakub Jelinek <jakub@redhat.com>
8690 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8691 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8692 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8693 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8694 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8695 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8696 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8697 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8698 PTRACE_GETEVENTMSG): Likewise.
8699 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8702 2006-09-17 Mike Frysinger <vapier@gentoo.org>
8704 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8705 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8706 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8707 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8709 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8711 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8712 write '\0' to the fd.
8713 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8714 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8715 Change regs to unsigned long pointer from unsigned int, fix fscr
8718 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8720 * io/Makefile (CFLAGS-fstatat.c): Set.
8721 (CFLAGS-fstatat64.c): Likewise.
8722 (CFLAGS-mknodat.c): Likewise.
8724 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8725 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8726 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8727 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8729 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8730 Steven Munroe <sjmunroe@us.ibm.com>
8732 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8733 names to the beginning. Rename "cell" to "cellbe".
8734 (_dl_powerpc_platforms): New.
8735 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8736 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8737 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8738 (_DL_HWCAP_PLATFORM): Define to new mask.
8739 (_dl_platform_string, _dl_string_platform): New functions.
8740 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8741 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8743 2006-09-12 Jakub Jelinek <jakub@redhat.com>
8746 * README.libm: Fix a thinko in sqrt algorithm description.
8749 * manual/string.texi (argz_delete): Fix prototype.
8750 Patch by <alpt@freaknet.org>.
8752 2006-08-26 Joseph Myers <joseph@codesourcery.com>
8755 * io/test-lfs.c (do_prepare): Give name_len type size_t.
8756 * io/tst-fcntl.c (do_prepare): Likewise.
8757 * posix/tst-exec.c (do_prepare): Likewise.
8758 * posix/tst-preadwrite.c (do_prepare): Likewise.
8759 * posix/tst-spawn.c (do_prepare): Likewise.
8760 * posix/tst-truncate.c (do_prepare): Likewise.
8761 * rt/tst-aio.c (do_prepare): Likewise.
8762 * rt/tst-aio64.c (do_prepare): Likewise.
8763 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8766 2006-09-09 Ulrich Drepper <drepper@redhat.com>
8769 * time/mktime.c (guess_time_tm): Fix overflow detection.
8770 * time/Makefile (tests): Add bug-mktime1.
8771 * time/bug-mktime1.c: New file.
8774 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8777 2006-09-07 Jakub Jelinek <jakub@redhat.com>
8780 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8781 Ensure relocation doesn't clobber any bits outside of the
8782 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8783 R_SPARC_HI22 and R_SPARC_H44.
8786 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8787 (long) (MINSIZE + nb - old_size) is positive.
8789 * malloc/arena.c (grow_heap): When growing bail even if new_size
8793 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8796 2006-09-06 Jakub Jelinek <jakub@redhat.com>
8798 * posix/regex_internal.c (re_string_reconstruct): Handle
8799 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8800 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8801 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8802 re_string_context_at.
8803 * posix/Makefile: Add rules to build and run bug-regex26 test.
8804 * posix/bug-regex26.c: New test.
8806 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8807 rather than col_sym_free. Move seqp declaration earlier.
8809 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8811 2006-09-05 Jakub Jelinek <jakub@redhat.com>
8813 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8814 decl before first goto out.
8816 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8818 * Makerules (shlib.lds): If have-hash-style, put .hash section
8819 at the end of the RO segment.
8821 2006-09-04 Ulrich Drepper <drepper@redhat.com>
8823 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8824 style hash table format is used.
8826 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8828 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8829 randomization rather than before.
8830 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8832 2006-08-31 Jakub Jelinek <jakub@redhat.com>
8834 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8836 * malloc/malloc.c (_int_malloc): Use full list insert and not
8837 shortcut which assumes the list is empty for large requests
8840 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8842 2006-08-30 Jakub Jelinek <jakub@redhat.com>
8844 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8845 and offout arguments to the prototype.
8846 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8847 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8848 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8849 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8850 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8851 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8852 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8853 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8855 2006-08-28 Ulrich Drepper <drepper@redhat.com>
8857 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8859 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8862 2006-08-28 Jakub Jelinek <jakub@redhat.com>
8864 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8865 only if herrno is NETDB_INTERNAL. Handle errors other than
8866 ERANGE outside of the loops, handle TRY_AGAIN.
8868 * locale/programs/ld-ctype.c (translit_flatten): Issue error
8869 if other's ctype category was missing.
8870 * locale/programs/ld-collate.c (collate_read): Return if
8871 copy_locale's collate category is missing.
8873 2006-08-27 Ulrich Drepper <drepper@redhat.com>
8876 * malloc/malloc.c (public_rEALLOc): Try harder by using other
8877 arenas if allocation failed.
8878 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8880 2006-08-26 Ulrich Drepper <drepper@redhat.com>
8882 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8884 (malloc_state): Reduce bins size by 2.
8885 (_int_malloc): Fix test for large enough buffer for early termination.
8886 When no unsorted block matches perfectly and an exiting block has
8887 to be split, use full list insert and not shortcut which assumes
8890 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8893 2006-08-24 Ulrich Drepper <drepper@redhat.com>
8895 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8898 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8899 symbol require exact match (these are PLTs).
8900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8901 (_dl_ppc64_addr_sym_match): Likewise.
8904 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8905 If symbol has a value use it.
8906 * elf/tst-dladdr1.c: New file.
8907 * elf/Makefile: Add rules to build and run tst-addr1.
8909 2006-08-24 Jakub Jelinek <jakub@redhat.com>
8911 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8912 keeps failing and heap growth or new heap creation isn't
8914 * malloc/tst-malloc.c (main): Add new tests.
8916 2006-08-24 Ulrich Drepper <drepper@redhat.com>
8919 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8920 as in the x86-64 code to use bswap.
8922 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
8925 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8927 * posix/bits/unistd.h: Likewise.
8929 2006-05-15 Mike Frysinger <vapier@gentoo.org>
8932 * string/strchr.c: Add cast to avoid warning.
8934 2006-08-21 Ulrich Drepper <drepper@redhat.com>
8936 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
8937 platforms define as 512K. For 64-bit platforms as 32MB. The lower
8938 limit is needed to avoid the exploding of the address space
8939 requirement for secondary heaps.
8940 * malloc/arena.c (HEAP_MAX_SIZE): Define using
8941 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8943 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
8946 * Makerules (depfiles): Handle extra-test-objs the same as
8948 (common-mostlyclean): Likewise.
8949 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8951 * elf/Makefile (extra-objs): Likewise.
8952 * stdlib/Makefile (extra-objs): Likewise.
8954 2006-08-14 Eric Blake <ebb9@byu.net>
8957 * misc/error.h: Assume C89 or better.
8958 * misc/error.c: Likewise.
8960 2006-08-21 Ulrich Drepper <drepper@redhat.com>
8963 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8964 __ASSUME_ATFCTS is defined.
8966 2006-08-19 Ulrich Drepper <drepper@redhat.com>
8968 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8969 to sort in each call.
8971 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8972 is empty simply return and use next service.
8973 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8975 * locale/programs/charmap.c (charmap_read): Add new parameter. It
8976 tells us when not finding a charmap file is an error.
8977 * locale/programs/charmap.h: Adjust charmap_read prototype.
8978 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
8979 cannot find a charmap.
8980 * locale/programs/localedef.c (main): Adjust charmap_read call.
8982 2006-08-15 Jakub Jelinek <jakub@redhat.com>
8984 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
8985 sysdeps/posix/pause.c implementation instead.
8987 2006-08-09 Jakub Jelinek <jakub@redhat.com>
8989 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
8992 2006-08-13 Andreas Schwab <schwab@suse.de>
8994 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
8995 Don't clobber caller's LRSAVE.
8996 (_dl_prof_resolve): Likewise.
8998 2006-08-14 Ulrich Drepper <drepper@redhat.com>
9001 * libio/memstream.c (open_memstream): Allocate initial buffer with
9003 * libio/wmemstream.c (open_wmemstream): Likewise.
9004 * libio/strops.c: Pretty printing.
9005 (_IO_str_overflow): Clear uninitialized part of the new buffer.
9006 (enlarge_userbuf): New function.
9007 (_IO_str_seekoff): Call it if seek position is larger than current
9009 * libio/wstrops.c: Likewise.
9010 * libio/vasprintf.c: Add comment as to why we do not have to use
9011 calloc instead of malloc to allocate initial buffer.
9012 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9013 * libio/bug-memstream1.c: New file.
9014 * libio/bug-wmemstream1.c: New file.
9016 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9018 * libio/wstrops.c: Remove dead macro definitions and comments.
9019 * libio/strops.c: Likewise.
9022 * login/utmpname.c (__utmpname): Remove unnecessary test.
9024 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
9027 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9030 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9033 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9035 * sysdeps/unix/clock_settime.c: Add support for platform-specific
9036 setting of CPU clocks.
9038 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
9041 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9042 since C99 requires the result to promote to 'int' when uint_least8_t
9043 and uint_least16_t promote to 'int'.
9045 2006-08-12 Ulrich Drepper <drepper@redhat.com>
9048 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9049 lenght of one output field, correct bitmask creation.
9050 * locale/programs/ld-time.c: Add alignment.
9053 * misc/error.c: Add space between program name and message if file
9056 2006-08-03 Eric Blake <ebb9@byu.net>
9059 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9061 2006-08-09 Ulrich Drepper <drepper@redhat.com>
9063 * malloc/memusagestat.c: Silence warnings.
9065 * malloc/malloc.c: Dynamically size mmap treshold if the program
9066 frees mmaped blocks.
9067 Patch by Valerie Henson and Arjan van de Ven.
9069 2006-08-08 Jakub Jelinek <jakub@redhat.com>
9071 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9074 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9075 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9076 (DEF): Don't put the var into .gnu.linkonce.r.* section.
9077 Only provide var definitions in strtol_l (or for *ull*
9080 * stdio-common/bug16.c (tests): New array.
9081 (do_tests): Allow the first hexadecimal digit
9082 to be 1, 2, 4 or 8. Do 3 additional tests.
9084 * sysdeps/s390/fpu/libm-test-ulps: Update.
9086 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9087 fchownat syscall if available.
9088 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9089 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9090 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9092 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9094 * nis/nis_xdr.c: Avoid some function calls.
9096 2006-08-07 Jakub Jelinek <jakub@redhat.com>
9097 Ulrich Drepper <drepper@redhat.com>
9099 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9100 short cut if only one name component is stripped away.
9102 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9104 * nis/nis_call.c: Minor cleanups throughout.
9105 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9106 (first_shoot): Add search_parent_first parameter. Only if it is set
9107 search parent server first.
9108 If directory for table found through cold start cache is not the same
9109 as referenced in the cache, don't use it.
9110 (__nisfind_server): Take additional parameter. Pass it on to
9112 (__prepare_niscall): Adjust __nisfind_server call.
9113 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9114 * nis/nis_table.c: Adjust __nisfind_server call.
9115 * nis/nis_lookup.c: Likewise.
9116 (nis_lookup): Don't loop endlessly if name is reduced to ".".
9118 2006-08-03 Ulrich Drepper <drepper@redhat.com>
9121 * math/s_cacosh.c: Return values from positive branch.
9122 * math/s_cacoshf.c: Likewise.
9123 * math/s_cacoshl.c: Likewise.
9126 * sysvipc/sys/msg.h: Change return value to ssize_t.
9127 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9128 * sysvipc/msgrcv.c: Likewise.
9129 * include/sys/msg.h: Likewise.
9131 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9132 test introduced in patch for bz #661.
9133 (getgrouplist): Simplify code a bit. Don't allocate one additional
9134 element for NEWGROUPS.
9137 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9138 'f', use '1' as leading digit not '\1'.
9139 * stdio-common/Makefile (tests): Add bug16.
9140 * stdio-common/bug16.c: New file.
9143 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9144 and don't try to open it. The patch introducing the macro
9145 contained a bug and used the same file name as the new file
9146 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9147 this out completely.
9150 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9151 Patch by Jerry James <Jerry.James@usu.edu>.
9153 * rt/Makefile (tests): Add tst-clock2.
9154 * rt/tst-clock2.c: New file.
9157 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9158 function and its parameters and pass it to new thread.
9159 (__gai_notify): Add support for alternative waiting for completion.
9160 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9161 waiting for completion.
9162 * resolv/getaddrinfo_a.c: Likewise.
9163 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9164 waiting for completion is used.
9165 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9166 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9167 * resolv/gai_error.c: Likewise.
9168 * resolv/gai_sigqueue.c: Likewise.
9170 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9172 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9173 errno to EBADF and return MACH_PORT_NULL.
9175 2006-06-23 Joseph Myers <joseph@codesourcery.com>
9178 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9180 2006-08-02 Ulrich Drepper <drepper@redhat.com>
9182 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9183 walk them instead of the symbol table.
9185 2006-08-01 Ulrich Drepper <drepper@redhat.com>
9188 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9189 status of NSS calls, not the number of returned entries.
9191 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9192 request_key, keyctl.
9194 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9196 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9198 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9200 * elf/tst-auditmod1.c: Fix typo in #error.
9202 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9204 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9206 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9208 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9210 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9211 that the directory is empty even on non-POSIX filesystems.
9213 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9215 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9217 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9218 the backend NSS module. If backend setgrent call failed, don't have
9219 internal_setgrent fail. Just remember this until it is needed.
9220 * nis/nss_compat/compat-pwd.c: Likewise.
9221 * nis/nss_compat/compat-spwd.c: Likewise.
9223 2006-07-30 Roland McGrath <roland@redhat.com>
9225 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9226 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9227 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9228 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9230 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9231 (nanosleep_not_cancel): New macro.
9232 (sigsuspend_not_cancel): new macro.
9233 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9234 (do_sigsuspend): Define as inline.
9235 (__sigsuspend): Always use do_sigsuspend.
9236 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9237 * include/signal.h: Declare __sigsuspend_nocancel.
9238 * sysdeps/posix/pause.c
9239 [! NO_CANCELLATION] (__pause_nocancel): New function.
9241 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9242 * include/time.h (__nanosleep_nocancel): Likewise.
9244 2006-07-30 Ulrich Drepper <drepper@redhat.com>
9246 * locale/programs/localedef.c (add_to_readlist): Rename local
9247 variables to avoid confusion.
9249 * locale/programs/charmap.c (charmap_read): Emit error message if
9250 charmap couldn't be found or read.
9252 2006-07-28 Ulrich Drepper <drepper@redhat.com>
9254 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9255 __ASSUME_FUTEX_LOCK_PI.
9256 * include/time.h: Declare __nanosleep_nocancel.
9257 * include/unistd.h: Declare __pause_nocancel.
9259 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9260 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9261 get the __stack_chk_fail_local definition when it's needed.
9263 2006-07-26 Ulrich Drepper <drepper@redhat.com>
9265 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9266 * dlfcn/bug-atexit3.c: New file.
9267 * dlfcn/bug-atexit3-lib.cc: New file.
9269 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9270 used when the namespace is not the base namespace.
9272 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
9274 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9275 (__new_exitfn): Bump it in every successful call.
9276 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9277 more exit handlers, call them right away.
9278 * stdlib/exit.h: Declare __new_exitfn_called.
9280 2006-07-25 Ulrich Drepper <drepper@redhat.com>
9282 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9283 calling registered handler.
9285 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9286 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9287 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9288 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9289 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9290 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9291 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9292 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9294 2006-07-10 Ulrich Drepper <drepper@redhat.com>
9296 * elf/dl-lookup.c (dl_new_hash): New functions.
9297 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9298 value here. Compute new-style hash value. Pass new hash value
9299 and reference to variable with the old value to do_lookup_x.
9300 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9301 old-style hash table.
9302 (_dl_debug_bindings): Pass new hash value and reference to variable
9303 with the old value to do_lookup_x.
9304 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9305 new-style hash value and change old-style hash value parameter to
9306 be a reference. Reoganize functions to determine whether
9307 new-style hash table is available. Only fall back on old-style
9308 table. If old-style hash value is needed, compute it here.
9309 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9311 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9312 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
9313 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9314 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9315 * Makeconfig: If linker supports --hash-style option add it to all
9316 linker command lines to build DSOs.
9317 * config.make.in: Define have-hash-style.
9318 * configure.in: Test whether linker supports --hash-style option.
9320 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9321 * sysdeps/generic/ldsodefs.h: Adjust prototype.
9323 2006-06-27 Ulrich Drepper <drepper@redhat.com>
9325 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9328 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9329 RPATH of main map twice.
9331 2006-06-22 Ulrich Drepper <drepper@redhat.com>
9333 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9334 look further, return original strings.
9335 (_nl_find_msg): Do not return found translation if the conversion
9336 failed. Either signal the string is unusable or that something went
9337 wrong and the original should be used.
9339 2006-06-21 Ulrich Drepper <drepper@redhat.com>
9341 * string/_strerror.c (__strerror_r): Add __builtin_expect.
9343 2006-06-14 Jakub Jelinek <jakub@redhat.com>
9346 * misc/insremque.c (insque): Handle prev == NULL.
9347 * misc/Makefile (tests): Add tst-insremque.
9348 * misc/tst-insremque.c: New test.
9350 2006-06-17 Ulrich Drepper <drepper@redhat.com>
9353 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9354 conflict with DL_DST_REQUIRED.
9356 2006-06-16 Ulrich Drepper <drepper@redhat.com>
9358 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9359 match what Solaris does.
9361 2006-06-04 Ulrich Drepper <drepper@redhat.com>
9363 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9364 local_setegid instead of seteuid and setegid.
9365 * sysdeps/generic/local-setxid.h: New file.
9366 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9368 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9370 * string/Makefile (tests): Add bug-envz1.
9371 * string/bug-envz1.c: New file.
9373 2006-06-02 Jakub Jelinek <jakub@redhat.com>
9375 * posix/regex_internal.c (re_string_skip_chars): If no character has
9376 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
9377 to the byte which couldn't be converted.
9378 (re_string_reconstruct): Don't clear valid_raw_len before calling
9379 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9380 tip_context using re_string_context_at.
9381 * posix/Makefile: Add rules to build and run bug-regex25 test.
9382 * posix/bug-regex25.c: New test.
9384 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
9387 * string/envz.c (envz_strip): Correct erroneously reversed src
9388 and dest parameters to memmove() invocation.
9390 2006-05-30 Jakub Jelinek <jakub@redhat.com>
9392 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9393 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9394 to make sure the database has been already invalidated.
9395 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
9396 after the cache has been invalidated. Use pthread_mutex_lock rather
9397 than pthread_mutex_trylock if fd != -1.
9398 * nscd/connections.c (invalidate_cache): Add fd argument, write
9399 response to fd if not calling prune_cache, pass fd to prune_cache.
9400 (handle_request): Adjust invalidate_cache caller.
9401 (nscd_run): Pass -1 as fd to prune_cache.
9403 2006-05-30 Ulrich Drepper <drepper@redhat.com>
9405 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9408 2006-05-29 Ulrich Drepper <drepper@redhat.com>
9410 * nscd/nscd.h (struct database_dyn): Add prunelock field.
9411 * nscd/cache.c (prune_cache): Take prunelock before starting the
9412 work. Just return in case it is already taken.
9413 * nscd/connections.c (dbs): Initialize .prunelock.
9415 2006-05-25 Ulrich Drepper <drepper@redhat.com>
9417 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9418 copying. No need to allocate new array for group members. Just
9419 move the pointers and update the size.
9421 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9422 Avoid memory leak in case realloc fails. Simplification for
9423 better code generation.
9425 Avoid deprecation warning because of libc_hidden_proto for
9427 * inet/inet6_option.c (option_alloc): Renamed from
9428 inet6_option_alloc. Made static.
9429 (inet6_option_alloc): Now a simple wrapper around option_alloc.
9430 (inet6_option_append): Call option_alloc.
9431 * include/netinet/in.h: Remove libc_hidden_proto for
9434 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9435 for cleanup when cb!=NULL [Coverity CID 233].
9437 2006-05-24 Ulrich Drepper <drepper@redhat.com>
9440 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9441 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9442 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9443 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9444 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9445 and inet6_rth_getaddr.
9446 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9448 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9449 Mark inet6_option_* interfaces as deprecated.
9450 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9451 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9452 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9453 inet6_rth_segments, and inet6_rth_getaddr.
9454 * inet/inet6_opt.c: New file.
9455 * inet/inet6_rth.c: New file.
9457 * inet/netinet/icmp6.h: Pretty printing.
9460 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9462 2006-05-23 Ulrich Drepper <drepper@redhat.com>
9464 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9465 doing it all here. When server does not know the answer do not
9466 fail immediate, try parent first.
9468 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9471 2006-05-20 Ulrich Drepper <drepper@redhat.com>
9473 * nis/nis_call.c (__prepare_niscall): New function. Split out
9475 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9477 (__follow_path): New function. Split out from nis_list.
9478 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9480 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9482 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9484 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9485 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9486 from libnsl for version GLIBC_PRIVATE.
9487 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9488 Remove entry parameter from _nss_nisplus_parse_pwent and
9489 _nss_nisplus_parse_grent.
9490 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9491 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9492 again. Rewrite getpwent handling to not use nis_first_entry and
9493 nis_next_entry. Roll out own niscall handling.
9494 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9496 * sunrpc/xdr_rec.c: Fix typo in comment.
9498 2006-05-19 Ulrich Drepper <drepper@redhat.com>
9500 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9503 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9504 to allocate memory for my_pollfd. Better initialization of
9505 cb_is_running. Use TEMP_FAILURE_RETRY.
9507 * malloc/memusage.sh (memusageso): Add quotes.
9508 (memusagestat): Likewise.
9509 * debug/xtrace.sh (pcprofileso): Likewise.
9510 (pcprofiledump): Likewise.
9511 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9513 * malloc/Makefile ($(objpfx)memusage): Likewise.
9515 * nis/nis_callback.c (__nis_create_callback): Calls to
9516 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9517 asprintf call fails.
9519 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9520 no uninitialized memory is passed to sendto.
9522 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9524 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9525 of snprintf+strdup. Handle OOM.
9526 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9527 cb->serv together. Remove now obsolete free calls.
9528 (__nis_destroy_callback): Remove now obsolete free call.
9530 2006-05-18 David Woodhouse <dwmw2@redhat.com>
9532 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9533 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9534 and ULA respectively). Set precedence for IPv4 address to 10 as
9535 defined in RFC3484 for preferring IPv6.
9536 * posix/gai.conf: Update to match the new default tables.
9538 2006-05-18 Jakub Jelinek <jakub@redhat.com>
9540 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9541 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9542 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9543 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9545 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9547 (init_nss_interface): Remove initialization of these variables.
9549 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9551 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9552 nis_free_directory forward to avoid duplication.
9554 2006-05-17 Ulrich Drepper <drepper@redhat.com>
9556 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9557 rec_dirsearch returning NULL.
9558 (first_shoot): Handle __nis_finddirectory returning NULL.
9559 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9561 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9562 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9564 2006-05-17 Jakub Jelinek <jakub@redhat.com>
9566 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9569 2006-05-15 Ulrich Drepper <drepper@redhat.com>
9571 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9573 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9574 * nscd/nscd_getgr_r.c: Likewise.
9576 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9578 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9579 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9581 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9583 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9585 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9587 * include/rpc/auth.h: Mark xdr_des_block_internal and
9588 xdr_opaque_auth_internal as hidden.
9590 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9593 * include/rpc/xdr.h: Mark all _internal functions as hidden.
9595 * misc/getusershell.c (okshells): Don't use static initializers,
9598 * stdlib/fmtmsg.c (keywords): Change type of len element to
9599 uint32_t to not waste space on 64bit machines.
9601 * locale/setlocale.c: Change _nl_category_names into a string.
9602 Add new _nl_category_name_idxs. Change all users.
9603 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9604 Declare _nl_category_name_idxs.
9605 * locale/findlocale.c: Adjust for _nl_category_names change.
9606 * locale/loadlocale.c: Likewise.
9607 * locale/newlocale.c: Likewise.
9608 * intl/dcigettext.c: Likewise.
9610 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9611 (add_alias2): ...here. New function.
9612 (__gconv_read_conf): Simplify builtin alias handling.
9613 (builtin_aliases): Convert to string to avoid relocations.
9614 * iconv/gconv_builtin.h: Add comment about correct formatting.
9616 2006-05-15 Jakub Jelinek <jakub@redhat.com>
9618 * resolv/res_debug.c (loc_ntoa): Make error const.
9620 2006-05-14 Andreas Schwab <schwab@suse.de>
9622 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9624 2006-05-12 Jakub Jelinek <jakub@redhat.com>
9626 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9627 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9630 2006-05-11 Ulrich Drepper <drepper@redhat.com>
9632 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9634 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9636 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9637 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9639 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9640 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9642 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9643 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9646 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9647 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9650 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9651 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9653 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9654 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9656 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9657 * include/rpcsvc/nis_callback.h: New file.
9659 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9660 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9662 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9663 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9665 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9666 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9668 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9669 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9671 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9672 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9675 * nis/nis_xdr.h: Mark all functions as hidden. Remove
9676 __BEGIN_DECLS and __END_DECLS, the header is not installed.
9678 * nis/nis_error.c: Remove table of strings. Use position
9679 independent mechanism.
9680 * nis/nis_error.h: New file.
9682 2006-05-11 Jakub Jelinek <jakub@redhat.com>
9684 * locale/programs/ld-time.c (time_finish): If wide era name or
9685 format aren't provided, set both wname and wformat to L"".
9687 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9689 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9690 results if the call was succesful.
9692 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9694 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9697 2006-05-10 Jakub Jelinek <jakub@redhat.com>
9699 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9701 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9703 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9704 caller makes sure this is not the case.
9705 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
9707 2006-05-09 Ulrich Drepper <drepper@redhat.com>
9709 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9712 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9713 [Coverity CID 229, 230]
9715 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9717 (hol_help): Likewise. [Coverity CID 226, 227]
9719 * string/argz-replace.c (__argz_replace): Unconditionally call
9720 free on SRC. [Coverity CID 225]
9722 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9723 the return value of __nis_default_owner and __nis_default_group,
9724 it has been especially allocated. [Coverity CID 224]
9726 * nis/nis_defaults.c (searchXYX): New functions. Used by both
9727 searchgroup and searchowner. Significantly simplified.
9728 (__nis_default_owner): Remove duplication. Do not locally copy the
9729 string before duplicating it.
9730 (__nis_default_group): Likewise.
9732 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9733 we must clear the variable before calling __nisfind_server.
9735 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9736 nis_getnames. [Coverity CID 223]
9738 * locale/programs/locfile.c (locfile_read): Use alloca instead of
9739 xmalloc to allocate local repertoire name. [Coverity CID 222]
9741 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9742 allocate memory for the input to add_bytes. [Coverity CID 221]
9744 * posix/wordexp.c (w_addword): Free word if realloc fails and it
9745 was allocated here. [Coverity CID 219, 220]
9747 * posix/getconf.c (print_all): Free confstr data after printing.
9750 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9751 list allocation fails. [Coverity CID 215]
9753 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9756 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9757 string is NULL. [Coverity CID 212]
9758 * argp/Makefile: Add rules to build and run bug-argp1.
9759 * argp/bug-argp1.c: New file.
9761 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9763 * stdlib/canonicalize.c (__realpath): Likewise.
9765 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9766 pointer. [Coverity CID 206]
9768 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9769 in statically linked code.
9770 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9771 statically built code, be prepared to have no link map.
9774 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9775 dgettext calls. [Coverity CID 204]
9777 * argp/argp-help.c (struct uparams): Remove valid member. Change
9779 (uparam_names): Reduce size. Avoid relative relocations.
9780 Moved to read-only segment.
9781 (fill_in_uparams): Update for new layout.
9783 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9784 assumed to always be != NULL. [Coverity CID 202]
9786 * argp/argp-help.c (hol_entry_help): Remove some dead code
9789 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9790 away a few more unconditional yperr2nss calls.
9791 (_nss_nis_getservbyname_r): Likewise.
9793 2006-05-06 Ulrich Drepper <drepper@redhat.com>
9795 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9798 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9799 that unused memory passed to sendto is nevertheless initialized.
9802 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9803 possibly unaligned memory accesses.
9805 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9806 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9807 and __putlong respectively. Correct buffer overflow check for
9810 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9812 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9813 (send_dg): Rewrite error handling to be more compact and avoid
9814 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9816 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9818 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9819 instead of ns_get16.
9820 (res_queriesmatch): Likewise. Minor optimization.
9823 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9824 __libc_res_nsend might reallocate the buffer for the answer. In
9825 this case we have to reload the HP pointer.
9827 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9829 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9830 some branch prediction hints.
9832 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9833 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9834 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9835 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9836 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9837 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9838 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9839 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9841 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9843 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9844 by a GOT relocation to make Scrt1.o position independent.
9845 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9847 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9848 six system call parameters.
9849 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9851 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9853 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9856 * sunrpc/svc_udp.c (BZERO): Remove definition.
9858 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9860 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
9861 (des_SPtrans): Use uint32_t type.
9862 (des_skb): Likewise.
9864 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9866 2006-05-05 Jakub Jelinek <jakub@redhat.com>
9869 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9872 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9874 * locale/programs/ld-address.c (address_finish): Fix one more
9875 place where the iso639 array might be accessed beyond the limits.
9877 2006-05-04 Ulrich Drepper <drepper@redhat.com>
9879 * nis/nis_table.c (nis_list): Avoid clearing res twice before
9880 filling it for the first time.
9882 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9884 Free res object content before returning.
9886 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9888 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9891 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9892 cleanup for initial thread, just the free call on TVP.
9894 * nscd/gai.c (__getline): Define.
9897 See ChangeLog.16 for earlier changes.