1 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
5 2009-01-03 Ulrich Drepper <drepper@redhat.com>
7 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
10 2009-01-02 Ulrich Drepper <drepper@redhat.com>
12 * sysdeps/unix/sysv/linux/kernel-features.h
13 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
15 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
16 if no output is written.
18 * version.h: Bump to 2.10 development.
20 * posix/getconf.c: Update copyright year.
21 * nss/getent.c: Likewise.
22 * iconv/iconvconfig.c: Likewise.
23 * iconv/iconv_prog.c: Likewise.
24 * elf/ldconfig.c: Likewise.
25 * catgets/gencat.c: Likewise.
26 * csu/version.c: Likewise.
27 * elf/ldd.bash.in: Likewise.
28 * elf/sprof.c (print_version): Likewise.
29 * locale/programs/locale.c: Likewise.
30 * locale/programs/localedef.c: Likewise.
31 * nscd/nscd.c (print_version): Likewise.
32 * debug/xtrace.sh: Likewise.
33 * malloc/memusage.sh: Likewise.
34 * malloc/mtrace.pl: Likewise.
35 * debug/catchsegv.sh: Likewise.
37 2008-12-29 Mike Frysinger <vapier@gentoo.org>
39 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
42 2008-12-29 Ulrich Drepper <drepper@redhat.com>
44 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
45 gethostbyname4_r function call succeeded, just leave the loop.
48 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
50 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
51 * wctype/Makefile (tests): Add bug-wctypeh.
52 * wctype/bug-wctypeh.c: New file.
54 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
55 LOCALDOMAIN is defined.
56 * nscd/nscd_getai.c (__nscd_getai): Likewise.
58 * sysdeps/x86_64/bits/select.h: New file.
60 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
62 2008-12-21 Bruno Haible <bruno@clisp.org>
65 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
66 if no output is written.
68 2008-12-13 Klaus Dittrich <kladit@arcor.de>
70 * login/utmp_file.c (pututline_file): Replace call to dup2 with
71 libc internal symbol __dup2 to avoid access through the PLT.
73 2008-12-08 Ulrich Drepper <drepper@redhat.com>
76 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
77 available only for __USE_GNU.
79 * inet/Makefile (tests): Add tst-getni2.
80 * inet/tst-getni2.c: New file.
83 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
84 NULL when NI_NAMEREQD is set.
85 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
86 * inet/Makefile (tests): Add tst-getni1.
87 * inet/tst-getni1.c: New file.
89 2008-12-03 Petr Baudis <pasky@suse.cz>
92 * nscd/connections.c (invalidate_cache): Use prune_run_lock
93 instead of prune_lock.
94 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
95 * nscd/nscd.h (database_dyn): Add prune_run_cache.
97 2008-12-07 Ulrich Drepper <drepper@redhat.com>
99 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
102 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
105 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
106 after reading name server list.
109 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
110 handling for host name aliases.
112 2008-11-24 Arkadiusz MiĆkiewicz <arekm@maven.pl>
114 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
115 instead of doing things manually.
117 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
119 * posix/regex_internal.h (build_wcs_upper_buffer):
120 Return type is reg_error_t.
122 2008-12-05 Ulrich Drepper <drepper@redhat.com>
124 * posix/globtest.sh: Use mktemp to create temporary file and
127 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
129 (__CPU_CLR_S): Likewise.
130 (__CPU_ISSET_S): Likewise.
132 2008-12-05 Joseph Myers <joseph@codesourcery.com>
133 Ulrich Drepper <drepper@redhat.com>
135 * scripts/firstversion.awk: Use custom comparison function to compare
137 * scripts/versions.awk: Use sort invocation which can handle
138 multi-digit sub-version numbers.
140 2008-12-04 Ulrich Drepper <drepper@redhat.com>
142 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
143 * locale/iso-639.def: Add Chhattisgarhi entry.
145 2008-12-02 Ulrich Drepper <drepper@redhat.com>
147 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
149 (_nss_dns_gethostbyname4_r): Likewise.
150 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
151 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
152 gethostbyname4_r, we don't have a separate IPv6 status, so copy
153 the no_data variable.
155 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
156 information at the correct index.
158 * socket/sys/socket.h: Declare accept4.
159 * socket/accept4.c: New file.
160 * sysdeps/unix/sysv/linux/accept4.c: New file.
161 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
162 * socket/Makefile (routines): Add accept4.
163 * socket/Versions: Export accept4 with version GLIBC_2.10.
164 * socket/paccept.c: Removed.
165 * sysdeps/unix/sysv/linux/paccept.c: Removed.
166 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
167 * Versions.def: Define GLIBC_2.10 for libc.
168 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
170 * nscd/connections.c: Use accept4.
172 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
174 2008-12-01 Ulrich Drepper <drepper@redhat.com>
176 * resolv/res_send.c (send_dg): Create sockets with non-blocking
179 * stdlib/setenv.c (unsetenv): Don't search environment if it does
181 * stdlib/Makefile (tests): Add tst-unsetenv1.
182 * stdlib/tst-unsetenv1.c: New file.
184 2008-11-29 Ulrich Drepper <drepper@redhat.com>
186 * login/utmp_file.c (file_writable): New variable.
187 (setutent_file): Don't try to open file for writing.
188 (pututline_file): Before writing, make descriptor writable if
191 2008-11-26 Ulrich Drepper <drepper@redhat.com>
193 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
194 to IPv4 or IPv6 if an interface has been found.
196 2008-11-26 Roland McGrath <roland@redhat.com>
198 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
199 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
201 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
202 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
203 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
205 * elf/elf.h (NT_386_IOPERM): New macro.
206 (NT_PPC_VSX): New macro.
208 2008-11-25 Roland McGrath <roland@redhat.com>
210 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
211 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
212 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
213 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
214 Subdirectories moved to ports repository.
215 * configure.in (base_machine): Remove alpha case.
217 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
219 * sysdeps/mach/strerror_l.c: New file.
221 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
224 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
225 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
227 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
228 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
229 (relax_fenv_state): Same as above.
230 (FPSCR_29): Reserve bit in ISA 2.05.
231 (FPSCR_NI): Provide define for compat.
232 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
234 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
236 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
237 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
238 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
239 access to hwcap to account for hwcap size increase to uint64_t.
240 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
243 (*setcontext): Likewise.
244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
248 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
249 (*setcontext): dynamically select mtfsf insn based on
250 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
251 increase to uint64_t.
252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
253 (*swapcontext): dynamically select mtfsf insn based on
254 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
255 increase to uint64_t.
256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
261 (*setcontext): dynamically select mtfsf insn based on
263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
264 (*swapcontext): dynamically select mtfsf insn based on
267 2008-11-13 Ulrich Drepper <drepper@redhat.com>
269 * version.h: Bump for 2.9 release.
270 * include/features.h (__GLIBC_MINOR__): Bump to 9.
273 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
274 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
277 2008-11-11 Ulrich Drepper <drepper@redhat.com>
280 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
281 unknown request types for now.
283 2008-11-11 Roland McGrath <roland@redhat.com>
285 * sysdeps/x86_64/configure: New file.
287 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
288 * configure: Regenerated.
290 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
292 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
293 correct instruction to remove the stack frame.
295 2008-11-03 Michael Matz <matz@suse.de>
297 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
298 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
300 2008-11-07 Jakub Jelinek <jakub@redhat.com>
302 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
305 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
306 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
307 of the thread variable instead of void *.
308 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
309 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
310 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
311 __libc_tsd_define arguments.
312 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
313 __libc_tsd_address arguments. Remove union hack.
314 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
315 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
316 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
317 Adjust __libc_tsd_{set,get} arguments.
318 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
319 __libc_tsd_define arguments.
320 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
322 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
323 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
324 (LOCALE): Adjust __libc_tsd_define arguments.
325 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
327 (LOCALE): Adjust __libc_tsd_define arguments.
328 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
330 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
333 2008-11-02 Ulrich Drepper <drepper@redhat.com>
335 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
336 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
338 2008-11-01 Ulrich Drepper <drepper@redhat.com>
341 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
343 2008-10-24 Joseph Myers <joseph@codesourcery.com>
344 Ulrich Drepper <drepper@redhat.com>
346 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
347 definition for GCC 3.1 and later.
349 2008-10-31 Jakub Jelinek <jakub@redhat.com>
351 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
352 refetch dtv, as it might have changed.
353 * elf/Makefile: Add rules to build and run tst-tls18.
354 * elf/tst-tls18.c: New test.
355 * elf/tst-tlsmod18a.c: New file.
357 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
360 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
362 2008-10-31 Ulrich Drepper <drepper@redhat.com>
365 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
368 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
369 Fix length of copy operation.
371 2008-10-02 Pierre Habouzit <madcoder@debian.org>
373 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
374 and fix its calling convention.
376 2008-10-07 Andreas Schwab <schwab@suse.de>
379 * resolv/res_send.c (send_vc): Fix last change.
380 (send_dg): Align here as well.
382 2008-10-31 Ulrich Drepper <drepper@redhat.com>
384 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
385 return value in case rlimit is RLIM_INFINITY.
388 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
390 * resource/Makefile (tests): Add bug-ulimit1.
391 * resource/bug-ulimit1.c: New file.
394 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
395 without dot. Properly terminate the string with a null byte.
396 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
399 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
401 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
405 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
407 2008-10-30 Ulrich Drepper <drepper@redhat.com>
409 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
410 abort if there is no initgroups_dyn function.
412 * resolv/res_send.c (send_dg): On timeout, only return nonzero
413 result if any of the queries really provided an answer.
415 2008-10-28 Ulrich Drepper <drepper@redhat.com>
417 * po/lt.po: Update from translation team.
419 2008-10-26 Ulrich Drepper <drepper@redhat.com>
421 * po/id.po: Update from translation team.
423 2008-10-24 Ulrich Drepper <drepper@redhat.com>
425 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
426 Fix tests for existence of second reply.
428 2008-10-23 Ulrich Drepper <drepper@redhat.com>
430 * po/id.po: New file.
431 Contributed by the Indonesian translation team.
433 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
435 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
438 2008-10-17 Jakub Jelinek <jakub@redhat.com>
440 * elf/Makefile: Add rules to build and run tst-tls17.
441 * elf/tst-tls17.c: New test.
442 * elf/tst-tlsmod17a.c: New file.
443 * elf/tst-tlsmod17b.c: Likewise.
445 2008-10-17 Ulrich Drepper <drepper@redhat.com>
447 * stdlib/divmod_1.c: Use correct type for dummy variable.
448 * stdlib/mod_1.c: Likewise.
450 2008-10-16 Ulrich Drepper <drepper@redhat.com>
452 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
454 2008-10-16 Jakub Jelinek <jakub@redhat.com>
456 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
457 __nonnull order for C++.
458 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
459 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
461 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
463 * stdlib/longlong.h: Update from GCC.
465 2008-10-09 Jakub Jelinek <jakub@redhat.com>
466 David S. Miller <davem@davemloft.net>
468 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
469 make sure any registers used with 64-bit 'branch-on-register'
470 instructions have their top 32-bits clear.
471 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
472 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
474 2008-09-18 Andreas Schwab <schwab@suse.de>
477 * resolv/res_send.c (send_vc): Fix use of unaligned address.
478 Properly handle partial reads.
480 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
482 * elf/elf.h (STO_MIPS_PLT): New.
484 (R_MIPS_JUMP_SLOT): New.
485 (R_MIPS_NUM): Redefine to 128.
486 (DT_MIPS_PLTGOT): New.
487 (DT_MIPS_RWPLT): New.
488 (DT_MIPS_NUM): Redefine to 0x35.
490 2008-10-01 Ulrich Drepper <drepper@redhat.com>
492 * timezone/africa: Update from tzdata2008f.
493 * timezone/asia: Likewise.
494 * timezone/australasia: Likewise.
495 * timezone/europe: Likewise.
496 * timezone/leapseconds: Likewise.
497 * timezone/northamerica: Likewise.
498 * timezone/southamerica: Likewise.
499 * timezone/zone.tab: Likewise.
501 2008-09-30 Ulrich Drepper <drepper@redhat.com>
503 * nscd/connections.c: Disable use of paccept for now.
505 2008-09-29 Ulrich Drepper <drepper@redhat.com>
507 * socket/Versions: Remove paccept export for GLIBC_2.9.
508 * socket/Makefile (routines): Remove paccept.
509 * socket/sys/socket.h: Remove paccept declaration.
511 * po/sv.po: Update from translation team.
513 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
515 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
516 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
518 2008-09-16 Ulrich Drepper <drepper@redhat.com>
520 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
521 Patch by Olivier Fourdan <ofourdan@redhat.com>.
523 2008-09-15 Ulrich Drepper <drepper@redhat.com>
525 * sunrpc/rpc/svc.h: Declare svcfd_create.
526 Patch by Michael Solberg <msolberg@redhat.com>.
528 2008-09-12 Flavio Leitner <fleitner@redhat.com>
529 Ulrich Drepper <drepper@redhat.com>
531 * malloc/malloc.c (public_vALLOc): Try other arenas in case
533 (public_pVALLOc): Likewise.
535 2008-09-02 Andreas Jaeger <aj@suse.de>
537 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
540 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
543 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
545 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
547 * Makefile (check-data): Check data directory in add-ons.
548 * elf/Makefile (check-data): Likewise.
550 2008-08-18 Roland McGrath <roland@redhat.com>
552 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
553 * configure: Regenerated.
554 * config.make.in (cflags-cpu): New substituted variable.
555 (with-cpu): Variable removed.
556 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
558 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
561 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
562 __signbitl definition and __LONG_DOUBLE_128__ guard from:
563 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
564 redundant. Functions which call floating point assembler operations
565 should go into a sysdeps powerpc/fpu directory.
567 2008-08-15 Ulrich Drepper <drepper@redhat.com>
569 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
570 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
572 2008-08-14 Ulrich Drepper <drepper@redhat.com>
574 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
576 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
577 change related to AT_EXECFN. We cannot use that string.
578 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
580 * elf/dl-support.c: Remove _dl_execfn variable.
581 (_dl_aux_init): Remove handling of AT_EXECFN.
582 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
583 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
585 2008-08-13 Ulrich Drepper <drepper@redhat.com>
588 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
589 byte gets added to writes and seeks from the end use the length of
590 the buffer and not the currently terminating NUL byte.
593 * login/utmp_file.c (getutent_r_file): Take additional parameter.
594 Set to true if locking failed.
595 (getutid_r_file): Adjust caller.
596 (pututline_file): Likewise. Return NULL in this case.
597 Patch mostly by halesh.s@gmail.com.
599 2008-08-12 Ulrich Drepper <drepper@redhat.com>
602 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
604 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
606 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
609 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
610 macro since it is now available in elf/dynamic-link.h.
612 2008-08-12 Roland McGrath <roland@frob.com>
614 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
615 in case used outside of libc.
616 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
618 2008-08-11 Ulrich Drepper <drepper@redhat.com>
620 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
621 directly instead of going through dn_comp.
623 2008-08-11 Aurelien Jarno <aurel32@debian.org>
625 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
628 2008-08-07 Ulrich Drepper <drepper@redhat.com>
631 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
632 (IPV6_PMTUDISC_PROBE): Likewise.
634 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
637 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
639 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
640 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
643 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
644 Added the members 'vsx' and 'arch_2_06'.
645 (_dl_powerpc_platforms): Add the member 'power7'.
646 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
647 to reflect the changes required by VSX and ISA 2.06.
648 Modify _DL_PLATFORMS_COUNT to reflect the addition of
650 Defined PPC_PLATFORM_POWER7.
651 (_dl_string_platform): Add support for POWER7.
652 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
653 capability and ISA 2.06.
655 2008-08-07 Ulrich Drepper <drepper@redhat.com>
658 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
659 macro to detect use of 128 bit long double.
660 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
662 2008-08-05 Ulrich Drepper <drepper@redhat.com>
664 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
667 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
669 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
670 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
672 2008-08-03 Ulrich Drepper <drepper@redhat.com>
674 * nscd/connections.c (main_loop_poll): Pass a buffer which is
675 guaranteed to be large enough to read inotify event. Ignore
676 EAGAIN error. Better error message. Add branch predicition.
677 (main_loop_epoll): Likewise.
679 2008-08-02 Roland McGrath <roland@frob.com>
681 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
684 2008-08-02 Ulrich Drepper <drepper@redhat.com>
686 * manual/arith.texi: Avoid @strong{Note:}.
687 * manual/creature.texi: Likewise.
688 * manual/filesys.texi: Likewise.
689 * manual/math.texi: Likewise.
690 * manual/memory.texi: Likewise.
691 * manual/resource.texi: Likewise.
692 * manual/syslog.texi: Likewise.
693 * manual/time.texi: Likewise.
695 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
698 2008-08-01 Ulrich Drepper <drepper@redhat.com>
700 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
701 new epoll_create1 interface.
702 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
703 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
704 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
706 * include/arpa/nameser.h (NS_GET16): Use const pointer.
707 (NS_GET32): Likewise.
709 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
712 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
713 use the AT_EXECFN value if it is no absolute path.
714 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
717 * Versions.def: Add GLIBC_2.9 to libresolv.
718 * include/resolv.h: Remove hidden proto declarations for __ns_*
719 functions. Add them for __dn_count_labels and __p_secstodate.
720 * include/arpa/nameser.h: Add a number of hidden proto declarations.
721 Define ns_msg_getflags macro here.
722 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
724 * resolv/Versions: Export functions from <arpa/nameser.h> from
725 libresolv in version GLIBC_2.9.
726 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
728 * resolv/ns_netint.c: Likewise.
729 * resolv/ns_parse.c: Likewise.
730 * resolv/ns_print.c: Likewise.
731 * resolv/ns_samedomain.c: Likewise.
732 * resolv/ns_ttl.c: Likewise.
733 * resolv/arpa/nameser_compat.h: Likewise.
734 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
736 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
738 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
739 __ns_get32 instead of ns_get16 and ns_get32 respectively.
740 (gaih_getanswer_slice): Likewise.
741 * resolv/Makefile (libresolv-routines): Add ns_date.
742 * resolv/ns_date.c: New file.
744 * elf/Makefile (check-localplt.out): Also check libresolv and
747 2008-07-31 Ulrich Drepper <drepper@redhat.com>
749 * sysdeps/unix/sysv/linux/kernel-features.h: Define
752 2008-07-30 Ulrich Drepper <drepper@redhat.com>
754 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
755 buffer passed to NSS functions.
757 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
759 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
762 * misc/syslog.c (openlog_internal): Fix compile problem.
764 2008-07-28 Roland McGrath <roland@redhat.com>
766 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
768 2008-07-28 Ulrich Drepper <drepper@redhat.com>
770 * io/ftw.c (add_object): Remove inline to avoid warning.
772 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
774 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
775 Use it instead of locally defined resplen2 variable.
776 (res_nsend): Adjust for __libc_res_nsend interface change.
777 (send_vc): Initialize *resplen2 if necessary. Read length of
778 package into an appropriately aligned variable. Store converted length
779 in new variable and use it appropriately.
780 Add branch prediction help.
781 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
782 and pass it on to __libc_res_nsend. Adjust all callers.
783 (__libc_res_nsearch): Likewise.
784 (__libc_res_nqeurydomain): Likewise.
785 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
787 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
788 Define resplen2 variable and pass it to __libc_res_nsearch and then
790 (getanswer_r): In case of incorrect DNS data don't overread buffer.
791 Add branch prediction.
792 (gaih_getanswer_slice): Likewise. Check for invalid data types.
793 (gaih_getanswer): Don't decode second slice if first one failed due
794 to a too small buffer. Don't let not found status of second
795 decoder shadow results of the first.
796 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
797 and __libc_res_nquery interface changes
798 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
799 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
800 __libc_res_nsearch, and __libc_res_nsend.
801 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
803 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
804 __libc_res_nsearch interface changes.
806 2008-07-27 Ulrich Drepper <drepper@redhat.com>
808 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
810 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
811 file descriptors with close-on-exec set.
812 (exec_comm_child): Fix the case where the write end of the pipe is
813 STDOUT_FILENO already. In case it is, clear close-on-exec.
815 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
816 * io/pipe2.c: Likewise.
817 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
818 instead of __ASSUME_PACCEPT.
819 * include/unistd.h: Declare __have_pipe2.
820 * libio/iopopen.c: Implement "e" flag.
821 * libio/Makefile (tests): Add tst-popen1.
822 * libio/tst-popen1.c: New file.
824 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
825 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
827 2008-07-26 Ulrich Drepper <drepper@redhat.com>
830 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
831 success call of _IO_SEEKOFF or calls which failed because the
832 descriptor is for a pipe.
834 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
837 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
839 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
840 F_SETFD use if we know fopen set the flag.
842 * login/utmp_file.c (setutent_file): Minor optimization in case
843 O_CLOEXEC is available.
845 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
847 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
848 * elf/Makefile: Use pie-ccflag variable.
849 * nscd/Makefile: Likewise.
850 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
852 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
855 * Versions.def: Add GLIBC_2.9 version tag for libutil.
856 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
857 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
858 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
859 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
860 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
861 utmp32, utmpx32 and login32.
862 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
863 versions of struct utmp functions to libc and libutil.
864 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
865 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
866 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
867 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
868 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
869 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
870 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
871 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
872 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
873 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
874 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
875 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
876 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
877 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
878 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
879 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
880 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
881 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
882 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
883 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
884 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
885 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
887 2008-07-26 Ulrich Drepper <drepper@redhat.com>
889 * scripts/gen-as-const.awk: Generate more widely usable code by
890 using 64-bit arithmetic.
892 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
893 the same treatment as narrow output code in last patch.
895 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
898 * elf/dl-load.c (local_strdup): Remove inline.
899 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
900 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
903 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
905 2008-07-25 Ulrich Drepper <drepper@redhat.com>
907 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
908 the new syscalls, too.
910 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
911 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
914 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
915 parameter for end of buffer. If temporary copy is too large use
917 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
919 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
920 string rewrite when allocating buffer.
922 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
925 * nscd/connections.c (nscd_init): Clean up fcntl call.
927 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
928 SOCK_NONBLOCK if possible.
930 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
931 SOCK_CLOEXEC if available.
933 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
934 __libc_clntudp_bufcreate_internal.
935 * include/sys/socket.h: Declare __have_sock_cloexec.
936 * socket/Makefile (aux): Add have_sock_cloexec.
937 * socket/have_sock_cloexec.c: New file.
938 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
939 __libc_clntudp_bufcreate.
940 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
941 which takes an additional parameter. Create socket with non-blocking
942 mode and close-on-exec flag set, if wanted.
943 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
944 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
945 instead of clntudp_create. The socket has already the close-on-exec
946 flag set if SOCK_CLOEXEC is defined.
948 2008-07-24 Ulrich Drepper <drepper@redhat.com>
950 * sysdeps/unix/sysv/linux/kernel-features.h: Define
951 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
953 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
954 non-blocking mode by using socket, paccept, and inotify_init1.
956 * Versions.def (glibc): Add GLIBC_2.9.
957 * io/Makefile (routines): Add dup3 and pipe2.
958 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
959 * io/dup3.c: New file.
960 * io/pipe2.c: New file.
961 * posix/unistd.h: Declare dup3 and pipe2.
962 * socket/Makefile (routines): Add paccept.
963 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
964 * socket/paccept.c: New file.
965 * socket/sys/socket.h: Declare paccept.
966 * sysdeps/unix/syscalls.list: Add entry for dup3.
967 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
968 epoll_create2 and inotify_init1.
969 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
970 * sysdeps/unix/sysv/linux/paccept.c: New file.
971 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
973 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
974 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
975 inotify_init1, and pipe2 entries.
976 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
977 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
978 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
979 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
980 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
981 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
983 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
984 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
985 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
986 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
987 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
988 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
989 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
990 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
991 EPOLL_NONBLOCK. Declare epoll_create2.
992 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
994 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
995 IN_NONBLOCK. Declare inotify_init1.
996 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
998 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1001 * elf/elf.h: Define AT_EXECFN.
1002 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1004 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1005 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
1006 if __ASSUME_AT_EXECFN is defined.
1007 (_dl_aux_init): Handle AT_EXECFN.
1008 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1010 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1011 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1012 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1013 _dl_execfn if available and avoid compatibility code if
1014 __ASSUME_AT_EXECFN is defined.
1016 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1017 _dl_discover_osversion only for older kernels.
1019 2008-07-22 Roland McGrath <roland@frob.com>
1021 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1023 2008-07-21 Roland McGrath <roland@frob.com>
1025 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1026 returned too much data out of line.
1028 2008-07-20 Ulrich Drepper <drepper@redhat.com>
1030 * locale/setlocale.c (setname): Remove inline to avoid compiler
1034 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1036 2008-07-15 Ulrich Drepper <drepper@redhat.com>
1038 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1039 doesn't manage to write anything, fail.
1041 * malloc/hooks.c (__malloc_check_init): Remove printf.
1043 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1045 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1047 2008-07-12 Ulrich Drepper <drepper@redhat.com>
1049 * nscd/connections.c (main_loop_poll): Fix handling of read errors
1051 (main_loop_epoll): Likewise.
1053 2008-07-09 Ulrich Drepper <drepper@redhat.com>
1055 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1057 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1058 if DEBUG is defined.
1060 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1061 query. Adjust buffer size computation for padding.
1063 2008-07-08 Ulrich Drepper <drepper@redhat.com>
1065 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1066 * stdio-common/tst-setvbuf1.c: New file.
1067 * stdio-common/tst-setvbuf1.expect: New file.
1070 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1071 when selecting fully-buffered stream.
1072 Patch by Wang Xin <wxinee@gmail.com>.
1074 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
1076 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1077 (__open_2): New function.
1078 (__open64_2): New alias to __open_2.
1079 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1080 (__openat_2): New function.
1081 (__openat64_2): New alias to __openat_2.
1083 2008-07-06 Ulrich Drepper <drepper@redhat.com>
1086 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1088 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1090 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1091 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1092 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1094 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1095 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1096 * sysdeps/mach/hurd/send.c (__send): Likewise.
1097 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1098 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1100 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1102 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1103 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1104 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1105 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1106 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1107 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1109 2008-06-27 Ulrich Drepper <drepper@redhat.com>
1112 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1114 Patch by Petr Baudis.
1116 2008-06-26 Ulrich Drepper <drepper@redhat.com>
1118 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1119 Patch by Peter Jones <pjones@redhat.com>.
1121 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1124 * stdlib/canonicalize.c (__realpath): readlink can write too much
1125 into the buffer on platforms without PATH_MAX.
1127 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1130 * posix/tst-regex.c (main): Rename to...
1131 (do_test): ... this. Remove cmdline option processing.
1133 (TEST_FUNCTION): Define.
1134 (CMDLINE_OPTIONS): Define.
1136 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1139 * configure.in: Add -Werror to -fstack-protector test to catch
1140 unsupported architectures.
1141 Patch by Gilles Esponasse <g.esp@free.fr>.
1143 2008-06-17 Joseph Myers <joseph@codesourcery.com>
1145 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1146 getcontext returns ENOSYS.
1148 2008-06-18 Ulrich Drepper <drepper@redhat.com>
1150 * nscd/connections.c (main_loop_poll): Fix test for read error.
1151 (main_loop_epoll): Likewise.
1153 2008-06-13 Ulrich Drepper <drepper@redhat.com>
1155 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1156 better place so it is not called when nscd is used.
1158 * nscd/connections.c: Also recognize and handle changes to the
1159 resolver configuration file.
1161 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1163 * time/strftime.c: Pass reference to tzset_called around to handle
1167 * time/strftime.c (__strftime_internal): Call tzset() only
1168 when printing timezone-dependent values.
1169 Based on a patch by Petr Baudis <pasky@suse.cz>.
1171 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1172 unconditionally use second gaih_getanswer_slice result.
1174 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1175 (getaddrinfo): RES must always be non-NULL.
1177 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1179 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1181 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1182 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1184 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1187 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1189 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1191 * nscd/connections.c (inotify_fd): New variable.
1192 (nscd_init): Try to open an inotify descriptor.
1193 If successful, watch files for databases using inotify instead of
1194 having prune threads stat the files.
1195 (nscd_run_prune): Recognize clear_cache flag being set and call
1196 prune_cache appropriately.
1197 (main_loop_poll): Add inotify descriptor to wait set and handle the
1199 (main_loop_epoll): Likewise.
1200 * nscd/cache.c (prune_cache): Don't stat files for databases if
1202 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1203 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1205 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1206 fixed-size portion of the record.
1207 * nscd/servicescache.c (cache_addserv): Likewise.
1208 * nscd/pwdcache.c (cache_addpw): Likewise.
1209 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1211 2008-06-11 Ulrich Drepper <drepper@redhat.com>
1213 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1214 out we don't use uninitialized memory.
1216 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1219 2008-06-10 Ulrich Drepper <drepper@redhat.com>
1221 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1222 ignore T_DNAME messages.
1223 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1225 2008-06-05 Jakub Jelinek <jakub@redhat.com>
1227 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1228 Avoid segfault if first GETC returns eof/'\0'/'\n'.
1230 2008-06-03 Jakub Jelinek <jakub@redhat.com>
1232 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1233 instead of portstr to nscd_getserv_r. Patch by
1234 Roman Kagan <rkagan@mail.ru>.
1236 2008-05-26 Jim Meyering <meyering@redhat.com>
1238 Remove more useless "if" tests before "free".
1239 * include/inline-hashtab.h (htab_delete): Likewise.
1240 * libio/freopen.c (freopen): Likewise.
1241 * libio/freopen64.c (freopen64): Likewise.
1242 * locale/programs/ld-collate.c (collate_read): Likewise.
1243 * misc/fstab.c (libc_freeres_fn): Likewise.
1244 * posix/glob.c (globfree): Likewise.
1246 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1248 * string/Makefile (strop-tests): Add memmem.
1249 * string/test-memmem.c: New file.
1250 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1251 (test_init): Size buf1 according to BUF1PAGES.
1253 2008-05-24 Jakub Jelinek <jakub@redhat.com>
1255 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1256 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1257 (CFLAGS-scanf17.c): New.
1258 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1259 * stdio-common/scanf15.c (main): Likewise.
1260 * stdio-common/scanf16.c: New file.
1261 * stdio-common/scanf17.c: New file.
1263 2008-05-24 Ulrich Drepper <drepper@redhat.com>
1265 * resolv/res_send.c (send_dg): If we already have one of two
1266 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1267 use the one answer insted of failing.
1269 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
1271 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1272 being executed on PowerPC as the expected result exceeds IBM
1273 long double 128 __LDBL_MAX__.
1275 2008-05-21 Roland McGrath <roland@redhat.com>
1277 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1279 * Makefile (check-data): Use $(abi-name) before other guesses.
1280 Look in $(add-ons) dirs before scripts/data/.
1281 * elf/Makefile (check-data): Likewise.
1283 * scripts/soversions.awk: Grok ABI line.
1284 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1285 Emit definition for abi-name variable.
1287 2008-05-21 Ulrich Drepper <drepper@redhat.com>
1289 * string/endian.h: Define new fixed-size hto* and *toh macros only
1292 * iconvdata/Depend: Add localedata.
1294 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1296 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1298 2008-05-08 David S. Miller <davem@davemloft.net>
1300 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1302 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1303 (__SYSCALL_CLOBBERS): Remove %g* registers.
1304 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1305 (__SYSCALL_CLOBBERS): Likewise.
1306 * scripts/data/localplt-sparc-linux-gnu.data: New file.
1307 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1309 2008-05-21 Jakub Jelinek <jakub@redhat.com>
1311 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1312 (CALL_ERRNO_LOCATION): Define.
1313 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1314 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1315 (CALL_ERRNO_LOCATION): Define.
1316 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1317 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1318 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1320 2008-05-20 Ulrich Drepper <drepper@redhat.com>
1322 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1325 2008-05-20 Jakub Jelinek <jakub@redhat.com>
1327 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1328 (FIRST_FRAME_POINTER): Define.
1330 2008-05-09 David S. Miller <davem@davemloft.net>
1332 * sysdeps/sparc/sparc64/backtrace.c: New file.
1334 2008-05-14 David S. Miller <davem@davemloft.net>
1336 * sysdeps/sparc/machine-gmon.h: New file.
1337 * sysdeps/sparc/sparc-mcount.S: Likewise.
1338 * sysdeps/sparc/Makefile: Add sparc-mcount target to
1339 sysdep_routines in gmon directory.
1341 2008-05-19 Jakub Jelinek <jakub@redhat.com>
1343 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1345 2008-05-19 Ulrich Drepper <drepper@redhat.com>
1347 * resolv/res_query.c (__libc_res_nquery): In case one of two
1348 answer was too short don't try to read that answer's header.
1350 * resolv/res_send.c (send_dg): In case of timeout and there are
1351 two queries and one has been answered, return value indicating
1354 2008-05-18 Ulrich Drepper <drepper@redhat.com>
1356 * nscd/cache.c (cache_add): Take additional parameter specifying
1357 whether this is in response of a cache refill. Check alignment
1358 of package data. Revamp waking of pruning thread.
1359 (prune_cache): Small optimization.
1360 * nscd/nscd.h: Adjust cache_add prototypes.
1361 * nscd/aicache.c: Adjust cache_add calls.
1362 * nscd/grpcache.c: Likewise.
1363 * nscd/hstcache.c: Likewise.
1364 * nscd/initgrcache.c: Likewise.
1365 * nscd/pwdcache.c: Likewise.
1366 * nscd/servicescache.c: Likewise.
1367 * nscd/connections.c (restart): Really disable cache use before
1368 exec attempt. If it fails, reenable cache.
1369 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
1370 time to max to be able to notice concurrent cache additions. Unlock
1371 prune_lock while performing gc. Afterwards compute wakeup time with
1372 current wakeup_time value in mind.
1374 2008-05-17 Ulrich Drepper <drepper@redhat.com>
1376 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1378 * nscd/mem.c (gc): Correctly determine highest used array element
1381 * nscd/mem.c (markrange): Add assert to check entries are all
1382 aligned. Small cleanup in bitmap use.
1384 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1385 blockoff of type nscd_ssize_t.
1386 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1387 (mempoll_alloc): Record block offset and not address.
1389 * nscd/mem.c (gc): Fix test for stack overuse.
1391 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1394 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1395 entry is available, believe it.
1397 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1398 no answers return NSS_STATUS_NOTFOUND.
1399 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1400 buffer does not have any content.
1402 2008-05-16 Ulrich Drepper <drepper@redhat.com>
1404 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1406 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1407 lookup, don't assign canon unconditionally.
1409 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1411 * string/Makefile (distribute): Add str-two-way.h.
1413 2008-03-29 Eric Blake <ebb9@byu.net>
1415 Rewrite string searches to O(n) rather than O(n^2).
1416 * string/str-two-way.h: New file. For linear fixed-allocation
1418 * string/memmem.c: New implementation.
1419 * string/strstr.c: New implementation.
1420 * string/strcasestr.c: New implementation.
1422 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
1424 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1426 (calc_first): Initialize constraint field.
1427 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1428 Use search_duplicated_node to avoid loops. Fix grammar.
1429 (duplicate_node): Merge constraint field for all node types.
1430 (calc_eclosure_iter): Look at constraint field for all node types.
1431 * posix/regex_internal.c (create_cd_newstate): Don't look at
1434 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1437 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1440 * string/endian.h: Add macros for fixed-size endian conversion.
1441 * bits/byteswap.h: Allow inclusion from <endian.h>.
1442 * sysdeps/i386/bits/byteswap.h: Likewise.
1443 * sysdeps/ia64/bits/byteswap.h: Likewise.
1444 * sysdeps/s390/bits/byteswap.h: Likewise.
1445 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1446 * string/Makefile (tests): Add tst-endian.
1447 * string/tst-endian.c: New file.
1449 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1450 Patch by Reuben Thomas.
1452 2008-05-14 Joseph Myers <joseph@codesourcery.com>
1454 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1456 2008-05-14 Ulrich Drepper <drepper@redhat.com>
1458 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1461 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1463 (BODY for __gconv_transform_internal_ascii): Likewise.
1466 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1467 to be treated like link-local addresses.
1468 (match_prefix): Don't treat IPv4 loopback address special when
1469 converting to v4 mapped addressed.
1471 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1473 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1474 * posix/tst-rfc3484-2.c: Likewise.
1475 * posix/tst-rfc3484-3.c: Likewise.
1477 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1480 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1482 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1484 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1486 2008-05-13 Ulrich Drepper <drepper@redhat.com>
1488 * po/lt.po: New file. From Lituanian translation team.
1490 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
1492 Introduce TLS descriptors for i386 and x86_64.
1493 * include/inline-hashtab.h: New file, copied from 2005's
1494 libiberty, with fix for memory leak imported afterwards by
1495 Glauber de Oliveira Costa.
1496 * elf/tlsdeschtab.h: New file.
1497 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1498 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1499 (CHECK_STATIC_TLS): Move to...
1500 * elf/dynamic-link.h: ... this file.
1501 (TRY_STATIC_TLS): New macro.
1502 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1503 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1504 R_386_TLS_DESC): Define.
1505 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1507 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1508 R_X86_64_TLSDESC): Define.
1509 (R_386_NUM, R_X86_64_NUM): Adjust.
1510 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1511 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1512 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1513 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1514 release tlsdesc_table.
1515 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1516 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1517 (elf_machine_rel): Handle R_386_TLS_DESC.
1518 (elf_machine_rela): Likewise.
1519 (elf_machine_lazy_rel): Likewise.
1520 (elf_machine_lazy_rela): Likewise.
1521 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1522 * sysdeps/i386/dl-tlsdesc.S: New file.
1523 * sysdeps/i386/dl-tlsdesc.h: New file.
1524 * sysdeps/i386/tlsdesc.c: New file.
1525 * sysdeps/i386/tlsdesc.sym: New file.
1526 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1528 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1529 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1530 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1531 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1532 release tlsdesc_table.
1533 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1534 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1535 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1536 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1537 (elf_machine_rela): Likewise.
1538 (elf_machine_lazy_rel): Likewise.
1539 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1540 (__tls_get_addr): Do not declare for non-shared compiles.
1541 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1542 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1543 * sysdeps/x86_64/tlsdesc.c: New file.
1544 * sysdeps/x86_64/tlsdesc.sym: New file.
1545 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1546 tlsdesc_table for both 32- and 64-bit structs.
1548 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1550 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1551 its own function. This reduces the frame setup costs and more.
1553 2008-02-11 Joseph Myers <joseph@codesourcery.com>
1556 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1557 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1559 2008-05-11 Ulrich Drepper <drepper@redhat.com>
1561 * io/openat.c (__openat_2): Also pass fd to __openat.
1562 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1563 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1565 * string/tester.c (test_memcmp): Add a few more tests.
1566 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1568 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1570 * nscd/cache.c (cache_add): Before returning with failure and this
1571 is the first use of the record, mark it as unusable.
1572 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1573 reporting a failure.
1574 * nscd/grpcache.c: Likewise
1575 * nscd/hstcache.c: Likewise.
1576 * nscd/initgrcache.c: Likewise.
1577 * nscd/pwdcache.c: Likewise.
1578 * nscd/servicescache.c: Likewise.
1580 2008-05-10 Roland McGrath <roland@redhat.com>
1583 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1585 2008-05-08 David S. Miller <davem@davemloft.net>
1587 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1589 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1590 (__ieee754_y0l): Likewise.
1591 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1592 (__ieee754_y1l): Likewise.
1593 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1594 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1595 frexpl and ldexpl. math_private.h provides them and the latter
1597 (__log1pl): Use __frexpl.
1599 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1601 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1603 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1604 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1605 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1606 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1608 (_nss_nis_gethostbyname4_r): New function.
1609 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1610 Change to also handle af==AF_UNSPEC.
1611 (get_tablename): New function. Use it to avoid duplication.
1612 (_nss_nisplus_gethostbyname4_r): New function.
1613 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1615 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1616 * nss/nss.h: Define struct gaih_addrtuple.
1617 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1619 (_nss_files_gethostbyname4_r): New function.
1620 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1621 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1623 * resolv/res_query.c (__libc_res_nquery): Take two additional
1624 parameters for second answer buffer. Handle type=T_UNSPEC to mean
1625 look up IPv4 and IPv6.
1627 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1628 for an additional query and answer buffer. Pass to send_vc and
1630 (send_vc): Send possibly two requests and receive two answers.
1631 (send_dg): Likewise.
1632 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1634 (_nss_dns_gethostbyname4_r): New function.
1635 (gaih_getanswer_slice): Likewise.
1636 (gaih_getanswer): Likewise.
1637 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1638 __libc_res_nquery call.
1639 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1640 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1641 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1644 2008-05-05 David S. Miller <davem@davemloft.net>
1646 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1647 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1649 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1651 Fix termios bit macros.
1652 Move *DLY definitions where they belong, in termios.h.
1653 Add *[0-3] definitions.
1654 Fixes confusion between VT and FF.
1655 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1656 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1657 are already defined to avoid collision with termios.h.
1658 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1659 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1660 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1661 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1662 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1663 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1664 VTDLY, VT0, VT1): New macros.
1665 [__USE_GNU] (OLCUC): Change value of macro.
1666 [__USE_XOPEN] (OFILL): New macro.
1667 [__USE_BSD] (CRTSCTS): Change value.
1668 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1669 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1670 (B7200, B14400, B28800, B76800): New macros.
1672 2008-05-01 David S. Miller <davem@davemloft.net>
1674 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1675 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1676 (gen-as-const-headers): Add it.
1677 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1678 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1679 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1680 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1682 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1683 six system call parameters.
1684 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1686 2008-04-30 Ulrich Drepper <drepper@redhat.com>
1688 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1690 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1691 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1693 2008-04-30 Jakub Jelinek <jakub@redhat.com>
1695 * stdlib/tst-setcontext.c: Include unistd.h.
1697 2008-04-25 David S. Miller <davem@davemloft.net>
1699 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1700 Pass "union semun" properly in to sys_ipc, it must be passed
1701 by value, not by reference.
1703 2008-04-22 Jakub Jelinek <jakub@redhat.com>
1705 * nscd/Makefile (nscd-cflags): Set back to -fpie.
1706 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1707 * nscd/connections.c (mem_in_flight): Likewise.
1709 * nscd/nscd.h (dbs): Make hidden.
1711 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1712 Avoid returning -1, return 0 instead.
1714 2008-04-19 Ulrich Drepper <drepper@redhat.com>
1716 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1718 2008-04-15 Ulrich Drepper <drepper@redhat.com>
1721 * sysdeps/unix/sysv/linux/times.c: New file.
1724 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1725 mem_in_flight_list variables. Add new parameter to mempool_alloc
1727 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1728 appropriate mem_in_flight element.
1729 (gc): Take allocations which have not yet been committed to the
1730 database into account.
1731 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1732 Reset mem_in_flight before returning.
1733 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1734 cue it up in mem_in_flight_list.
1735 * nscd/aicache.c: Adjust mempool_alloc call.
1736 * nscd/grpcache.c: Likewise.
1737 * nscd/hstcache.c: Likewise.
1738 * nscd/initgrcache.c: Likewise.
1739 * nscd/pwdcache.c: Likewise.
1740 * nscd/servicescache.c: Likewise.
1741 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1744 * nscd/connections.c (handle_request): Provide better error message
1745 in case SELinux forbids the service.
1747 * version.h (VERSION): Bump to 2.8.90.
1749 2008-04-17 Jakub Jelinek <jakub@redhat.com>
1751 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1753 2008-04-11 Ulrich Drepper <drepper@redhat.com>
1755 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1756 Also use for 32-bit.
1757 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1758 __nextafter instead of nextafter to avoid local PLT.
1759 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1760 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1762 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1764 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1766 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1767 <fenv_libc.h> instead of <fenv.h>.
1768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1771 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1773 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1774 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1775 function from fegetexcept and make old name weak alias.
1776 * include/fenv.h: Declare __fegetexcept.
1777 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1779 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1780 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1782 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1783 instead of frexpl to avoid local PLT.
1784 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1785 ilogbl to avoid local PLT.
1786 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1787 instead of ldexpl to avoid local PLT.
1788 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1789 __roundl not roundl to avoid local PLT.
1790 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1791 local PLTs. Use __sincosl instead of separate sinl and cosl
1793 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1795 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1796 version for ppc64 to 2.4.21 since without it makecontext will fail.
1798 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1800 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1802 [__powerpc64__] (TLS_GD): Likewise.
1804 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1807 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1808 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1810 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1811 Likewise. Also account for when x is an odd number between 2^52
1813 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1814 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1815 * math/libm-test.inc (lround_test, llround_test): Added test cases to
1816 detect aforementioned erroneous conditions.
1818 2008-04-11 Jakub Jelinek <jakub@redhat.com>
1820 * configure.in: Check for -fno-section-anchors in addition to
1821 -fno-toplevel-reorder.
1823 2008-04-11 Ulrich Drepper <drepper@redhat.com>
1825 * include/features.h (__GLIBC_MINOR__): Bump to 8.
1827 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1828 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1829 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1830 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1831 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1832 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1834 2008-04-11 Jakub Jelinek <jakub@redhat.com>
1837 * time/era.c: Transform __libc_setlocale_lock into rwlock.
1838 * time/alt_digit.c: Likewise.
1839 * wcsmbs/wcsmbsload.c: Likewise.
1841 2008-04-10 Ulrich Drepper <drepper@redhat.com>
1843 * version.h (VERSION): Bump to 2.8.
1845 * timzeone/asia: Update from tzdata2008b.
1846 * timezone/backward: Likewise.
1847 * timezone/europe: Likewise.
1848 * timezone/northamerica: Likewise.
1849 * timezone/southamerica: Likewise.
1850 * timezone/iso3166.tab: Likewise.
1851 * timezone/leapseconds: Likewise.
1852 * timezone/zone.tab: Likewise.
1853 * timezone/private.h: Update from tzcode2008a.
1854 * timezone/zdump.c: Likewise.
1855 * timezone/zic.c: Likewise.
1857 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1860 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1861 Define additonal Data Cache Block instruction macros.
1862 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1863 Replace dcbst with dcbf and sync with sync/isync.
1865 2008-02-21 Alan Modra <amodra@bigpond.net.au>
1867 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1868 Always set ELF_RTYPE_CLASS_PLT.
1869 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1871 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
1873 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1874 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1875 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1876 For ISA 2.01 and later replace mftb with mfspr 268.
1878 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1881 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1882 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1884 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
1887 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1888 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1889 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1890 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1892 2008-04-10 Jakub Jelinek <jakub@redhat.com>
1894 * stdlib/tst-makecontext.c (othervar): New variable.
1895 (cf): Test sign extending the argument to long.
1897 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
1899 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1900 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1901 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1902 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1903 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1904 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1905 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1907 2008-02-22 Alan Modra <amodra@bigpond.net.au>
1909 * elf/Makefile (tests): Substitute tests-vis-yes here.
1910 (tests-vis-yes): Delete.
1911 (modules-name, modules-vis-yes): Similarly.
1913 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
1916 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1917 Preserve sign in signgamp when x is zero.
1919 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
1921 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1922 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1923 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1924 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1925 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1926 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1928 2008-04-09 Ulrich Drepper <drepper@redhat.com>
1931 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
1935 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
1936 a reserved error value.
1938 * stdlib/tst-makecontext.c: Change parameter to cf to negative
1939 value to check for correct sign extension.
1942 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1943 Copy 64-bit parameter values even though this is not required in
1946 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
1949 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
1951 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
1954 2008-04-09 Jakub Jelinek <jakub@redhat.com>
1956 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
1958 2008-04-09 Ulrich Drepper <drepper@redhat.com>
1961 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
1962 in line-buffered stream failed.
1963 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1965 2008-04-08 Ulrich Drepper <drepper@redhat.com>
1968 * scripts/abi-versions.awk: If the version specified by
1969 --enable-oldest-abi is older than the first version for this
1970 architecture, use the default version.
1972 * locale/programs/ld-collate.c (collate_read): Ignore script lines
1973 as well when ignoring the whole category.
1975 2008-04-07 Ulrich Drepper <drepper@redhat.com>
1978 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
1979 ETHERTYPE_* definitions.
1980 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
1982 2008-04-07 Jakub Jelinek <jakub@redhat.com>
1984 * stdlib/mbtowc.c (__no_r_state): Remove.
1985 (mbtowc): New static state variable. Use it instead of
1987 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
1988 (__wctomb_state): New hidden variable.
1989 (wctomb): Use __wctomb_state instead of __no_r_state.
1990 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
1991 (__wctomb_state): New extern decl.
1992 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
1994 2008-04-07 Ulrich Drepper <drepper@redhat.com>
1997 * resolv/res_init.c: Handle scope IDs in resolv.conf.
1999 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2001 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2003 2008-04-06 Ulrich Drepper <drepper@redhat.com>
2005 * po/nl.po: Update from translation team.
2007 2008-03-31 Ulrich Drepper <drepper@redhat.com>
2010 * string/strfry.c: Handle empty strings again.
2012 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2015 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2016 before looking for translation.
2017 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2018 * locale/freelocale.c: Likewise.
2019 * locale/newlocale.c: Likewise.
2020 * locale/setlocale.c: Likewise.
2021 Based partially on a patch by ryo@np.css.fujitsu.com.
2023 2008-03-30 Jakub Jelinek <jakub@redhat.com>
2025 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2026 acquiring wrlock. Do conv_tab allocation while holding lock.
2027 * intl/Makefile: Add rules to build and run tst-gettext6.
2028 * intl/tst-gettext6.c: New test.
2029 * intl/tst-gettext6.sh: New file.
2031 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2033 * po/nl.po: Update from translation team.
2035 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2036 provided through st_blksize, try the default size before giving up.
2038 2008-03-29 Ulrich Drepper <drepper@redhat.com>
2040 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2043 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2045 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2046 error message. POSIX today does not require the messages to be in
2047 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
2050 * sunrpc/auth_unix.c: Unify printed strings.
2051 * sunrpc/clnt_tcp.c: Likewise.
2052 * sunrpc/clnt_udp.c: Likewise.
2053 * sunrpc/clnt_unix.c: Likewise.
2054 * sunrpc/svc_tcp.c: Likewise.
2055 * sunrpc/svc_udp.c: Likewise.
2056 * sunrpc/svc_unix.c: Likewise.
2057 * sunrpc/xdr.c: Likewise.
2058 * sunrpc/xdr_array.c: Likewise.
2059 * sunrpc/xdr_rec.c: Likewise.
2060 * sunrpc/xdr_ref.c: Likewise.
2061 * locale/programs/ld-time.c (time_finish): Unify messages.
2062 * locale/programs/locfile.c (handle_copy): Fix typo.
2063 * nscd/nscd.c (options): Fix typo.
2066 * stdlib/strtod_l.c: Use correct sign for result in one more
2068 Patch by Eric Blake <ebb9@byu.net>.
2070 2008-03-27 Jakub Jelinek <jakub@redhat.com>
2072 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2073 and creat system calls.
2074 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2076 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2079 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2080 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2082 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2084 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2085 <linux/limits.h> has defined it.
2086 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2087 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2089 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2090 it instead of ARG_MAX.
2092 2008-03-25 Jakub Jelinek <jakub@redhat.com>
2094 * posix/gai.conf: Fix comment for scope nullbits.
2095 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2096 default to 128 bits for v4 mapped addresses.
2098 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2100 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2101 ptrace call to get the ieee_instruction_pointer from the kernel.
2102 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2103 ptrace call to set the ieee_instructtion_pointer.
2104 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2105 Add comment that ieee_instruction_pointer is always 0.
2107 2008-03-09 Andreas Jaeger <aj@suse.de>
2110 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2111 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2112 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2114 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2115 (rint_test): Likewise.
2117 2008-03-24 Ulrich Drepper <drepper@redhat.com>
2119 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2121 (__nisfind_server): Similar for open readColdStartFile call.
2122 Patch partially by Jim Meyering.
2123 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2124 around internal_setent call.
2126 * po/vi.po: New Vietnamese translation.
2128 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2131 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2132 remove CLONE_STOPPED.
2134 2008-02-10 Jim Meyering <meyering@redhat.com>
2136 Remove useless "if" before "free":
2137 * elf/ldconfig.c (parse_conf_include): Likewise.
2138 * gmon/gmon.c (weak_alias): Likewise.
2139 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2140 * inet/rcmd.c (__validuser2_sa): Likewise.
2141 * intl/bindtextdom.c (set_binding_values): Likewise.
2142 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2143 * libio/genops.c (save_for_backup): Likewise.
2144 * libio/wgenops.c (save_for_wbackup): Likewise.
2145 * locale/programs/ld-collate.c (collate_read): Likewise.
2146 * locale/programs/linereader.c (get_string): Likewise.
2147 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2148 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2149 * resolv/res_debug.c (do_section): Likewise.
2150 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2151 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2152 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2153 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2154 * time/tzset.c (tzset_internal): Likewise.
2156 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2158 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2161 2008-03-11 Ulrich Drepper <drepper@redhat.com>
2164 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2165 not stream for output file. Open output file here.
2166 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2167 and output file name.
2168 (process_fd): Likewise.
2169 (process_file): Likewise.
2170 (main): Adjust callers of changed functions.
2171 * iconv/iconv_prog.h: Adjust prototype.
2173 2008-03-09 Andreas Jaeger <aj@suse.de>
2176 * sysdeps/ia64/ieee754.h: Use protected namespace
2177 __BIG_ENDIAN/__LITTLE_ENDIAN.
2178 * sysdeps/ieee754/ieee754.h: Likewise.
2179 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2181 2008-03-08 Roland McGrath <roland@frob.com>
2183 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2184 ignore a signal that came from a machine exception, treat it as a
2185 fatal core-dump signal instead.
2186 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2188 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2189 Clear DF bit in thread state's eflags.
2190 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2192 2008-03-08 Ulrich Drepper <drepper@redhat.com>
2195 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2196 of NAN(...) sequence.
2197 * stdlib/Makefile (tests): Add tst-strtod6.
2198 * stdlib/tst-strtod6.c: New file.
2200 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2203 * posix/getopt.c (_getopt_internal_r): Clarify error message by
2204 putting offending option character in quotes. Clean up error
2206 * po/be.po: Adjust msgstr in translation file.
2207 * po/bg.po: Likewise.
2208 * po/ca.po: Likewise.
2209 * po/cs.po: Likewise.
2210 * po/da.po: Likewise.
2211 * po/de.po: Likewise.
2212 * po/es.po: Likewise.
2213 * po/fr.po: Likewise.
2214 * po/hr.po: Likewise.
2215 * po/ko.po: Likewise.
2216 * po/nl.po: Likewise.
2217 * po/rw.po: Likewise.
2218 * po/sk.po: Likewise.
2219 * po/sv.po: Likewise.
2220 * po/tr.po: Likewise.
2221 * po/zh_CN.po: Likewise.
2222 * po/zh_TW.po: Likewise.
2225 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2226 Patch by Roland Bless <roland@bless.de>.
2228 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2230 * elf/Makefile (routines): Add dl-sysdep.
2231 (elide-routines.os): Likewise.
2233 2008-03-07 Ulrich Drepper <drepper@redhat.com>
2236 * elf/dl-sysdep.c: Undefine ROUND after use.
2237 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2238 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2239 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2240 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2242 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2243 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2245 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2247 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2248 _dl_tls_get_addr_soft element.
2249 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2250 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2251 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2253 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2254 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2255 of internal_function.
2257 * stdlib/Makefile (aux): Add tens_in_limb.
2258 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2259 * stdlib/tens_in_limb.c: ...here. New file.
2262 * sysdeps/unix/sysv/linux/pathconf.h: Declare
2263 __statfs_chown_restricted.
2264 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2265 for _PC_CHOWN_RESTRICTED.
2266 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2267 Implement __statfs_chown_restricted.
2268 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2269 _POSIX_CHOWN_RESTRICTED value to zero.
2270 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2273 * sysdeps/x86_64/rtld-memset.c: New file.
2275 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
2277 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2279 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2280 Barcelona machine. Make default fall through branch of
2281 __x86_64_preferred_memory_instruction check as the integer code path.
2283 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2285 * sysdeps/x86_64/cacheinfo.c
2286 (__x86_64_preferred_memory_instruction): New variable.
2287 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2289 * sysdeps/x86_64/memset.S: Rewrite.
2291 2008-03-04 Jakub Jelinek <jakub@redhat.com>
2293 * include/stdio.h (__asprintf_chk, __dprintf_chk,
2294 __obstack_printf_chk): New prototypes.
2295 (__vasprintf_chk, __vdprintf_chk,
2296 __obstack_vprintf_chk): Likewise.
2297 Add libc_hidden_proto.
2299 (_IO_obstack_jumps): No longer static, add attribute_hidden.
2300 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2301 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2302 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2303 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2304 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2305 __obstack_vprintf_chk): New prototypes.
2306 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2307 obstack_vprintf): New inlines.
2308 * debug/dprintf_chk.c: New file.
2309 * debug/vdprintf_chk.c: New file.
2310 * debug/asprintf_chk.c: New file.
2311 * debug/vasprintf_chk.c: New file.
2312 * debug/obprintf_chk.c: New file.
2313 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2314 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2315 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2317 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2318 vdprintf_chk and obprintf_chk, set CFLAGS for them.
2319 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2320 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2322 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2323 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2324 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2325 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2326 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2328 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2329 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2330 obstack_vprintf_chk.
2331 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2332 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2333 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2334 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2335 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2336 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2338 2008-03-04 Ulrich Drepper <drepper@redhat.com>
2341 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2342 Patch by Roy Marples <roy@marples.name>.
2345 * malloc/malloc.c: Fix typo in comment.
2348 * locale/iso-639.def: Add Shuswap.
2350 2008-02-25 Jakub Jelinek <jakub@redhat.com>
2353 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2354 overwrite *h_errnop/*errnop values from getanswer_r in case of
2357 2008-03-03 Ulrich Drepper <drepper@redhat.com>
2360 * nscd/connections.c (dbs): Add initializers for .suggested_module.
2361 (verify_persistent_db): Remove one unnecessary test and add a new one
2362 for bad configuration.
2363 (nscd_init): Improve error reported when persistent database cannot
2365 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2366 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2367 .suggested_module and .max_db_size and case config file says the
2369 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2372 * nis/ypclnt.c (yp_order): Fix handling of return value of
2374 Patch by Jeff Moyer <jmoyer@redhat.com>.
2376 * po/fr.po: Update from translation team.
2378 2008-02-22 Andreas Jaeger <aj@suse.de>,
2379 Carlos O'Donell <carlos@systemhalted.org>
2382 * FAQ.in: Describe why glibc needs to be compiled with
2385 2008-02-19 Roland McGrath <roland@redhat.com>
2387 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2389 2008-02-15 Ulrich Drepper <drepper@redhat.com>
2392 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2393 __USE_MISC is defined.
2395 2008-02-10 Ulrich Drepper <drepper@redhat.com>
2397 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2398 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2400 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2401 timerfd_gettime, timerfd_settime.
2402 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2403 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2405 2008-02-08 Roland McGrath <roland@redhat.com>
2407 * elf/elf.h (NT_PPC_SPE): New macro.
2409 2008-02-06 Roland McGrath <roland@redhat.com>
2411 * Makerules ($(common-objpfx)sysd-rules):
2412 Depend on $(sysdep-makeconfigs).
2414 2008-01-31 Roland McGrath <roland@redhat.com>
2417 * configure.in: Use -print-file-name if it yields a directory,
2418 for each of include and include-fixed.
2419 * configure: Regenerated.
2421 * Makeconfig (sysd-rules-targets): New variable.
2422 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2423 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2425 2008-01-30 Roland McGrath <roland@redhat.com>
2427 * manual/libc.texinfo: Update back-cover text.
2429 * elf/elf.h (NT_386_TLS): New macro.
2431 2008-01-29 Roland McGrath <roland@redhat.com>
2433 * Makeconfig (sysd-rules-patterns): New variable.
2434 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2435 (check-inhibit-asm): New canned sequence, replaces ...
2436 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2437 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2438 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2439 (CFLAGS-rtld): Variable removed.
2441 2008-01-24 Roland McGrath <roland@redhat.com>
2443 * configure.in: Let configure fragments set base_os.
2444 * configure: Regenerated.
2446 2008-01-22 Ulrich Drepper <drepper@redhat.com>
2448 * po/ko.po: Update from translation team.
2450 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2452 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2454 2008-01-12 Andreas Jaeger <aj@suse.de>
2457 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2460 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2462 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2463 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2464 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2466 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
2468 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2469 * elf/dl-close.c (_dl_close): Check for it.
2470 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2471 (_dl_allocate_static_tls): Likewise.
2472 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2473 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2475 * elf/tst-tls16.c: New file.
2476 * elf/tst-tlsmod16a.c: New file.
2477 * elf/tst-tlsmod16b.c: New file.
2478 * elf/Makefile: Add rules to build and run tst-tls16.
2480 2008-01-16 Ulrich Drepper <drepper@redhat.com>
2483 * bits/shm.h: Fix comment describing shmid_ds.
2484 * sysdeps/gnu/bits/shm.h: Likewise.
2485 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2486 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2487 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2488 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2489 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2490 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2491 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2492 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2493 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2496 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2498 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2499 additional suffixes.
2500 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2501 Add optional functions mq_timedreceive and mq_timedsend.
2502 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2503 * conform/data/pthread.h-data: Fix prototype of
2504 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2505 * conform/data/semaphore.h-data: Allow time.h definitions.
2506 * conform/data/signal.h-data: Likewise.
2507 * conform/data/stdio.h-data: getw and putw are not required in v6.
2508 * conform/data/stdlib.h-data: Change setstate prototype.
2509 * conform/data/string.h-data: Fix strerror_r prototype.
2510 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2511 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2512 Fix readlink prototype.
2513 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2515 * inet/netinet/in.h: Cleanup namespace.
2516 * posix/regex.h: Likewise.
2517 * resolv/netdb.h: Likewise.
2518 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2519 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2520 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2521 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2522 of names of in in6_addr.
2523 (default_precedence): Likewise.
2524 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2527 2008-01-15 Ulrich Drepper <drepper@redhat.com>
2529 * conform/data/fmtmsg.h-data: Add missing allows.
2530 * conform/data/ftw.h-data: Likewise.
2531 * conform/data/inttypes.h-data: Likewise.
2532 * conform/data/math.h-data: Likewise.
2533 * conform/data/signal.h-data: Likewise.
2534 * conform/data/net/if.h-data: Likewise.
2535 * conform/data/netinet/in.h-data: Likewise.
2536 * conform/data/sys/socket.h-data: Likewise.
2539 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2540 (__strtok_r): Simplify.
2541 * string/tester.c (test_strtok_r): Add test case for futile search
2542 with single-character seach string.
2544 2008-01-12 Ulrich Drepper <drepper@redhat.com>
2546 * po/ko.po: Update from translation team.
2548 2008-01-11 Andreas Jaeger <aj@suse.de>
2551 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2552 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2555 2008-01-10 Ulrich Drepper <drepper@redhat.com>
2557 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2558 native interface lookup in all the relevant places.
2560 2008-01-10 Jakub Jelinek <jakub@redhat.com>
2561 Ulrich Drepper <drepper@redhat.com>
2563 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2564 field. Use sockaddr_in6 for source_addr.
2565 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2566 (match_prefix): Likewise.
2567 (get_label): Likewise.
2568 (get_precedence): Likewise.
2569 (rfc3484_sort): Change to use indirect access to results array.
2570 Adjust to use of sockaddr_in6. Replace service_order test with
2571 simple index comparison.
2572 (getaddrinfo): Define order array. Initialize it. Don't initialize
2573 service_order field. Adjust qsort_t calls. Access sorted result
2574 array indirectly through order array.
2575 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2576 * posix/tst-rfc3484-2.c: Likewise.
2577 * posix/tst-rfc3484-3.c: Likewise.
2579 2008-01-09 Ulrich Drepper <drepper@redhat.com>
2582 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2584 Patch by André Cruz.
2587 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2588 (clnt_spcreateerror): Likewise.
2591 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2592 (public_mEMALIGn): Likewise.
2593 Patch mostly by Daniel Jacobowitz.
2595 2008-01-09 Jakub Jelinek <jakub@redhat.com>
2597 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2598 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2599 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2600 * stdlib/tst-makecontext2.c: New test.
2602 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2604 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2606 (REINIT_PARAMS): Likewise. Undefine before end of file.
2607 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2608 transliteration hooks and REINIT_PARAMS afterwards.
2609 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2611 (REINIT_PARAMS): Define.
2612 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2613 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2614 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2615 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2616 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2617 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2618 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2619 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2620 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2621 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2622 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2623 * iconvdata/tst-iconv7.c: New test.
2625 2008-01-07 Ulrich Drepper <drepper@redhat.com>
2627 * libio/stdio.h (vscanf): Fix definition for loser compilers.
2629 2008-01-05 Jakub Jelinek <jakub@redhat.com>
2632 * nscd/connections.c (restart): Fix condition.
2634 2008-01-03 Jakub Jelinek <jakub@redhat.com>
2636 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2637 __ctype_toupper_loc): Add __THROW.
2639 2008-01-02 Ulrich Drepper <drepper@redhat.com>
2641 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2642 recognition of interface family.
2644 * posix/getconf.c: Update copyright year.
2645 * nss/getent.c: Likewise.
2646 * iconv/iconvconfig.c: Likewise.
2647 * iconv/iconv_prog.c: Likewise.
2648 * elf/ldconfig.c: Likewise.
2649 * catgets/gencat.c: Likewise.
2650 * csu/version.c: Likewise.
2651 * elf/ldd.bash.in: Likewise.
2652 * elf/sprof.c (print_version): Likewise.
2653 * locale/programs/locale.c: Likewise.
2654 * locale/programs/localedef.c: Likewise.
2655 * nscd/nscd.c (print_version): Likewise.
2656 * debug/xtrace.sh: Likewise.
2657 * malloc/memusage.sh: Likewise.
2658 * malloc/mtrace.pl: Likewise.
2659 * debug/catchsegv.sh: Likewise.
2661 2007-12-26 Ulrich Drepper <drepper@redhat.com>
2663 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2666 2007-12-23 Ulrich Drepper <drepper@redhat.com>
2668 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2669 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2671 2007-12-17 Roland McGrath <roland@redhat.com>
2673 * inet/ether_line.c (ether_line): Remove unused variable.
2675 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2677 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2679 * login/openpty.c (openpty): Likewise.
2680 * login/pty.h (openpty, forkpty): Likewise.
2681 * manual/terminal.texi (openpty, forkpty): Likewise.
2683 2007-12-17 Ulrich Drepper <drepper@redhat.com>
2685 * malloc/malloc.c (public_cALLOc): For arenas other than
2686 main_arena, count all bytes inside the mprotect_size range of the
2687 heap as uninitialized.
2689 2007-12-16 Ulrich Drepper <drepper@redhat.com>
2691 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2694 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2695 mTRIm for all of them.
2696 (mTRIm): Additionally iterate over all free blocks and use madvise
2697 to free memory for all those blocks which contain at least one
2699 * malloc/tst-trim1.c: New file.
2700 * malloc/Makefile (tests): Add tst-trim1.
2702 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2704 2007-12-14 Ulrich Drepper <drepper@redhat.com>
2706 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2707 First cast argument to long
2708 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2710 (__vdso_clock_gettime): Likewise.
2711 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2714 2007-12-13 Ulrich Drepper <drepper@redhat.com>
2716 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2717 * locale/nl_langinfo_l.c: Real implementation, copied from
2719 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2721 2007-12-01 Jim Meyering <meyering@redhat.com>
2723 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2724 that would inhibit utf8-optimization of a regexp containing line-
2725 or buffer-anchors, e.g., `^', `$'.
2727 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2729 * time/bug-getdate1.c (do_test): Don't use century values which
2730 aren't valid on 32-bit systems.
2732 2007-12-12 Jakub Jelinek <jakub@redhat.com>
2734 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2735 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2736 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2737 __strcat_g, __strncat_g): Add __asm__.
2739 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2742 * io/fchmodat.c: Fix typo in stub_warning use.
2743 Patch by Petr Salinger.
2745 2007-12-11 Ulrich Drepper <drepper@redhat.com>
2747 * iconvdata/hp-thai8.c: New file.
2748 * iconvdata/Makefile: Add rules for hp-thai8.c.
2749 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2750 * iconvdata/gconv-modules: Likewise.
2753 * iconvdata/hp-greek8.c: New file.
2754 * iconvdata/Makefile: Add rules for hp-greek8.c.
2755 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2756 * iconvdata/gconv-modules: Likewise.
2759 * iconvdata/hp-turkish8.c: New file.
2760 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2761 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2762 * iconvdata/gconv-modules: Likewise.
2764 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2765 (shrink_heap): ... this new function.
2766 (heap_trim): Call shrink_heap instead of grow_heap.
2768 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2769 case don't call alloc_perturb.
2771 2007-12-10 Ulrich Drepper <drepper@redhat.com>
2773 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2775 * sysdeps/unix/sysv/linux/kernel-features.h
2776 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2777 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2779 2007-12-08 Ulrich Drepper <drepper@redhat.com>
2782 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2783 * stdio-common/Makefile (tests): Add bug22.
2784 * stdio-common/bug22.c: New file.
2787 * time/getdate.c: Fix filling in default values.
2788 * time/bug-getdate1.c: New file.
2789 * time/Makefile: Add rules to build and run bug-getdate1.
2791 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2792 * iconvdata/ebcdic-es.c: Likewise.
2793 * iconvdata/ebcdic-es-a.c: Likewise.
2794 * iconvdata/ebcdic-uk.c: Likewise.
2795 * iconvdata/iso8859-16.c: Likewise.
2796 * iconvdata/viscii.c: Likewise.
2797 * iconvdata/iso8859-9e.c: Likewise.
2798 * iconvdata/Makefile: Adjust appropriately.
2801 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2804 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2807 * iconvdata/hp-roman9.c: New file.
2808 * iconvdata/Makefile: Add rules for hp-roman9.c.
2809 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2810 * iconvdata/gconv-modules: Likewise.
2812 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2813 * iconvdata/Makefile: Adjust appropriately.
2816 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2817 structure, it's allocated with alloca.
2818 * stdio-common/Makefile (tests): Add bug21.
2819 * stdio-common/bug21.c: New file.
2821 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
2824 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2825 keyword for gcc's braced-groups.
2827 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2830 * inet/ether_line.c: Strip hostname of whitespaces.
2831 * inet/Makefile (tests): Add tst-ether_line.
2832 * inet/tst-ether_line.c: New file.
2834 2007-12-03 Ulrich Drepper <drepper@redhat.com>
2837 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2840 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2842 * stdlib/tst-setcontext.c: Catch the case where the links gets
2843 messed up and we do not reach main again.
2845 * po/ca.po: Update from translation team.
2847 2007-11-26 Ulrich Drepper <drepper@redhat.com>
2849 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2850 * posix/regex.h (REG_ENOSYS): Likewise.
2851 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2853 2007-11-25 Ulrich Drepper <drepper@redhat.com>
2855 * nscd/nscd.h (MAX_STACK_USE): Define.
2856 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2857 (gc): Initialize stack_used based on allocation in prune_cache.
2858 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2859 Clear array before use.
2861 * nscd/aicache.c (addhstaiX): Update statistics counter in case
2862 memory allocation failed.
2863 * nscd/hstcache.c (cache_addhst): Likewise.
2864 * nscd/grpcache.c (cache_addgr): Likewise.
2865 * nscd/servicescache.c (cache_addserv): Likewise.
2866 * nscd/pwdcache.c (cache_addpw): Likewise.
2867 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2869 2007-11-23 Ulrich Drepper <drepper@redhat.com>
2871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2872 and creat system calls.
2874 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2876 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
2878 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2880 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2881 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2883 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2884 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2885 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2887 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
2889 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2890 strncat): Define as macros to avoid compile errors.
2892 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
2895 2007-11-22 Ulrich Drepper <drepper@redhat.com>
2898 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2899 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
2900 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
2902 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2904 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
2905 Return zero in case the thread library is not NPTL.
2908 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2909 initializing interface list.
2912 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2913 use result of nss_getgrgid_r if nothing was found. For other
2914 error return with a failure.
2915 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2917 * locale/programs/ld-collate.c (collate_read): Fix loop to match
2920 2007-11-19 Ulrich Drepper <drepper@redhat.com>
2922 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2923 (get_scope): For IPv4 scope, use scopes table.
2924 (fini): Free scopes table if necessary.
2925 (free_scopelist): New function.
2926 (scopecmp): New function.
2927 (gaiconf_init): Also handle scopev4 entries.
2928 * posix/tst-rfc3484.c (do_test): Initialize scopes.
2929 * posix/tst-rfc3484-2.c (do_test): Likewise.
2930 * posix/gai.conf: Document scopev4 defaults.
2931 * posix/Makefile (tests): Add tst-rfc3484-3.
2932 * posix/tst-rfc3484-3.c: New file.
2934 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
2936 * posix/gai.conf: Update for current default tables.
2938 2007-11-19 Ulrich Drepper <drepper@redhat.com>
2940 * po/tr.po: Update from translation team.
2942 2007-11-18 Roland McGrath <roland@frob.com>
2944 * manual/arith.texi (Remainder Functions): Spelling fix.
2945 From Shaun Silk <genix@mysoul.com.au>.
2947 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2949 2007-11-17 Ulrich Drepper <drepper@redhat.com>
2951 * po/zh_CN.po: Update from translation team.
2953 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2954 Add sys/signalfd.h and sys/eventfd.h.
2956 2007-11-15 Bruno Haible <bruno@clisp.org>
2959 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
2961 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
2962 (DCIGETTEXT): Change the allocation of the 'search' variable so that
2963 it needs only fixed stack space. Delay the initialization of
2964 msgid_len until it is needed.
2966 2007-11-15 Andreas Jaeger <aj@suse.de>
2968 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
2969 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
2971 2007-11-15 Ulrich Drepper <drepper@redhat.com>
2973 * po/ko.po: Update from translation team.
2975 2007-11-14 Ulrich Drepper <drepper@redhat.com>
2977 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
2978 significantly. The device type is also part of the ifinfomsg data.
2980 * po/sv.po: Update from translation team.
2981 * po/nl.po: Likewise.
2983 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
2984 to wake up in 24 hours.
2986 * nscd/gai.c (__ioctl): Define. Include check_native.c.
2988 2007-11-13 Ulrich Drepper <drepper@redhat.com>
2990 * po/cs.po: Update from translation team.
2991 * po/pl.po: Likewise.
2993 * include/ifaddrs.h: Remove in6ai_temporary.
2994 (struct in6addrinfo): Add index element.
2995 Declare __check_native.
2996 * inet/Makefile (aux): Add check_native.
2997 * sysdeps/unix/sysv/linux/check_native.c: New file.
2998 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
2999 IFA_F_TEMPORARY. Pass back ifa_index.
3000 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3001 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
3002 call __check_native if necessary.
3003 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
3004 to sort addresses. Pass information about the results.
3005 * posix/tst-rfc3484.c: Adjust for addition of index field and change
3006 of rfc3484_sort interface.
3007 * posix/tst-rfc3484-2.c: Likewise.
3009 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
3010 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3012 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3013 (qsort_r): Renamed from qsort. Take additional parameter and pass it
3014 on as third parameter to compare function and _quicksort.
3015 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3016 to the compare function.
3017 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3018 * Versions.def: Add GLIBC_2.8 for libc.
3020 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3021 * posix/tst-rfc3484-2.c: Likewise.
3023 * include/kernel-features.h: Moved to...
3024 * sysdeps/mach/hurd/kernel-features.h: ...here.
3026 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3028 * sysdeps/i386/i586/memcpy_chk.S: New file.
3029 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3030 * sysdeps/i386/i586/memset_chk.S: Likewise.
3032 2007-11-12 Ulrich Drepper <drepper@redhat.com>
3034 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3035 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3036 list of interfaces. Also store prefix length.
3037 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3038 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3039 prefix if source and destination address are in the same subnet.
3040 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
3041 Always look for matching record in in6ai list.
3042 Correct source_addr_len value for IPv6->IPv4 converted records.
3044 2007-11-11 Roland McGrath <roland@frob.com>
3046 * include/kernel-features.h: New file.
3048 2007-11-10 Ulrich Drepper <drepper@redhat.com>
3050 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3051 complications for 64-bit platforms.
3053 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3054 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
3055 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3057 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3059 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3060 * sysdeps/wordsize-64/alphasort.c: New file.
3061 * sysdeps/wordsize-64/alphasort64.c: New file.
3062 * sysdeps/wordsize-64/fseeko.c: New file.
3063 * sysdeps/wordsize-64/fseeko64.c: New file.
3064 * sysdeps/wordsize-64/ftello.c: New file.
3065 * sysdeps/wordsize-64/ftello64.c: New file.
3066 * sysdeps/wordsize-64/ftw.c: New file.
3067 * sysdeps/wordsize-64/ftw64.c: New file.
3068 * sysdeps/wordsize-64/iofgetpos.c: New file.
3069 * sysdeps/wordsize-64/iofgetpos64.c: New file.
3070 * sysdeps/wordsize-64/iofopen.c: New file.
3071 * sysdeps/wordsize-64/iofopen64.c: New file.
3072 * sysdeps/wordsize-64/iofsetpos.c: New file.
3073 * sysdeps/wordsize-64/iofsetpos64.c: New file.
3074 * sysdeps/wordsize-64/lockf.c: New file.
3075 * sysdeps/wordsize-64/lockf64.c: New file.
3076 * sysdeps/wordsize-64/mkostemp.c: New file.
3077 * sysdeps/wordsize-64/mkostemp64.c: New file.
3078 * sysdeps/wordsize-64/mkstemp.c: New file.
3079 * sysdeps/wordsize-64/mkstemp64.c: New file.
3080 * sysdeps/wordsize-64/scandir.c: New file.
3081 * sysdeps/wordsize-64/scandir64.c: New file.
3082 * sysdeps/wordsize-64/tmpfile.c: New file.
3083 * sysdeps/wordsize-64/tmpfile64.c: New file.
3084 * sysdeps/wordsize-64/versionsort.c: New file.
3085 * sysdeps/wordsize-64/versionsort64.c: New file.
3086 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3087 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3088 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3089 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3090 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3091 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3092 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3093 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3094 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3095 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3096 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3097 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3099 * crypt/sha256-crypt.c: Fix a comment.
3100 * crypt/sha512-crypt.c: Likewise.
3102 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3104 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3106 2007-11-07 Ulrich Drepper <drepper@redhat.com>
3109 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3110 because output buffer is too small break, don't loop.
3111 * iconvdata/Makefile (tests): Add bug-iconv6.
3112 * iconvdata/bug-iconv6.c: New file.
3114 2007-11-06 Ulrich Drepper <drepper@redhat.com>
3116 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3118 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3119 size_t. Add casts where needed.
3121 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3122 old headers, don't call avc_has_perm if we don't have the
3123 permission information.
3125 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3127 * elf/rtld.c (dl_main): Use the page size to find the map start.
3129 2007-11-05 Ulrich Drepper <drepper@redhat.com>
3131 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3132 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3134 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3135 when the lookup call failed.
3137 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3138 Add prune_cond and wakeup_time.
3139 (CACHE_PRUNE_INTERNAL): Define.
3140 Update declarations of prune_cache and setup_thread.
3141 * nscd/connections.c (dbs): Update initializers.
3142 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3143 (nscd_init): Default number of threads is now 4.
3144 (invalidate_cache): Take lock before calling prune_cache.
3145 (handle_request): If SELinux forbids the request, say so.
3146 (readylist_cond): Use static initializer.
3147 (nscd_run_prune): New function. Used only by pruning threads.
3148 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3150 (fd_ready): Update nscd_run reference.
3151 (start_threads): No need to initialize readylist_cond.
3152 Start pruning threads separately.
3153 * nscd/nscd_setup_thread.c: Change return value type to int and always
3155 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3156 to int and return nonzero value if we can use the TID address hack.
3157 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3158 the database is later than the new entry's timeout, update the
3159 wakeup time and wake the cleanup thread.
3160 (prune_cache): Return seconds the next entry in the database is still
3161 valid. Remove locking for pruning here.
3162 * nscd/nscd.conf: Document default number of threads.
3164 2007-10-31 Ulrich Drepper <drepper@redhat.com>
3166 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3167 stack is properly aligned for the target function.
3168 Correct unwind info.
3170 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3171 when using auditing libraries.
3173 2007-10-29 Ulrich Drepper <drepper@redhat.com>
3175 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3176 _nss_dns_getnetbyaddr2_r.
3177 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3178 extra parameter to getanswer_r.
3179 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3180 _nss_dns_getnetbyaddr2_r.
3182 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3184 * nscd/gethstbynm2_r.c: Remove.
3185 * nscd/gethstbynm3_r.c: New file.
3186 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3188 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
3189 __gethostbyaddr_r compatibility wrapper.
3190 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
3191 determining timeout of entry.
3192 (lookup): Take new parameter and pass it to __gethostbyname3_r and
3194 (addhstbyX): Pass reference to variable for TTL to lookup and
3196 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3197 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3198 and __nss_next2. Remove __nss_services_lookup.
3199 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
3201 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3203 * nss/getXXent_r.c: Likewise.
3204 * nss/getnssent_r.c: Likewise.
3205 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3206 does not exist in module, try the optional second name.
3207 (__nss_next2): New function.
3208 (__nss_next): Now wrapper around __nss_next2.
3209 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3210 Declare __nss_next2.
3211 Adjust definition of db_lookup_function type.
3212 * nss/service-lookup.c: Define NO_COMPAT.
3213 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3214 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3215 * inet/ether_ntoh.c: Likewise.
3216 * sunrpc/netname.c: Likewise.
3217 * sunrpc/publickey.c: Likewise.
3218 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3219 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3220 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3221 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3222 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3224 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3226 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3228 2007-10-28 Ulrich Drepper <drepper@redhat.com>
3231 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3232 * crypt/sha512c-test.c: Likewise.
3235 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3236 to keep track of end of %[ format string element.
3237 * stdio-common/Makefile (tests): Add bug20.
3238 * stdio-common/bug20.c: New file.
3241 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3242 path elements in counting mode.
3244 2007-10-27 Andreas Jaeger <aj@suse.de>
3247 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3250 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3251 (__cleanup): Free shared library when exiting.
3252 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3253 (__cleanup): Free shared library when exiting.
3255 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
3258 * math/libm-test.inc (check_float_internal): Support
3259 denormalized return.
3261 2007-10-23 Andreas Jaeger <aj@suse.de>
3264 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3265 __LONG_LONG_PAIR to handle little endian byte order.
3266 Suggested by abhishekrai@google.com
3268 2007-10-27 Ulrich Drepper <drepper@redhat.com>
3270 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3272 2007-10-26 Ulrich Drepper <drepper@redhat.com>
3274 * nscd/cache.c (prune_cache): Move test for modified file outside
3277 2007-10-21 Andreas Jaeger <aj@suse.de>
3279 * manual/texinfo.tex: Update to latest version.
3281 * manual/sysinfo.texi (System Parameters): Fix Formatting.
3283 * manual/arith.texi (Status bit operations): Fix formatting.
3285 * manual/errno.texi (Error Messages): Fix formatting.
3287 * manual/sysinfo.texi (System Parameters): Fix formatting.
3289 * manual/libc.texinfo: Update VERSION and UPDATED.
3291 2007-10-19 Roland McGrath <roland@redhat.com>
3293 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3295 2007-10-06 David S. Miller <davem@davemloft.net>
3297 * configure.in: Add sparcv9v2 and sparc64v2.
3298 * scripts/config.sub: Likewise.
3299 * configure: Regenerate.
3300 * elf/elf.h (HWCAP_SPARC_N2): New.
3301 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3302 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3303 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3304 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3305 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3306 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3307 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3309 2007-10-18 Ulrich Drepper <drepper@redhat.com>
3311 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3312 even if the poll result indicates there is data to read.
3313 Patch by Jeff Moyer <jmoyer@redhat.com>.
3315 2007-10-18 Roland McGrath <roland@redhat.com>
3317 * elf/elf.h (NT_PPC_VMX): New macro.
3319 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3321 * version.h (VERSION): Set to 2.7.90.
3323 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3325 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
3328 2007-10-17 Roland McGrath <roland@frob.com>
3330 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3331 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3333 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3335 * version.h (VERSION): Bump to 2.7.
3336 * include/features.h (__GLIBC_MINOR__): Bump to 7.
3339 * time/tzset.c (__tz_convert): Don't force testing for a change of
3340 TZ if not called from localtime. But then also see whether the
3341 file changed, in case __use_tzfile is set.
3343 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3344 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3345 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3346 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3347 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3348 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3349 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3350 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3352 2007-10-17 Jakub Jelinek <jakub@redhat.com>
3354 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3355 and admin selects to be able to replace the gai.conf file, lock
3356 data structures around the qsort call.
3358 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3360 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3362 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
3363 too high for the improvements. Implement bzero unconditionally for
3366 2007-10-17 Ulrich Drepper <drepper@redhat.com>
3367 Jakub Jelinek <jakub@redhat.com>
3369 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3370 even when time_t is 32-bit.
3371 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3372 timezone data read by __tzfile_default. Ensure __tzname[0] is
3373 always set after the search.
3375 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3377 * time/tzfile.c (__tzfile_read): Help the compiler recognize
3378 unreachable code on 32-bit machines.
3380 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3383 * time/strftime_l.c: Include stdbool.h.
3384 (my_strftime): New wrapper, old function renamed to...
3385 (__strftime_internal): ... new function. Add tzset_called
3386 argument, pass it down to recursive calls, don't call tzset ()
3387 if already true, set to true after call to tzset ().
3389 2007-10-16 Ulrich Drepper <drepper@redhat.com>
3391 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3392 into account when copying TZ string.
3394 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3396 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3397 num_transition rather than num_transitions - 1.
3399 2007-10-16 Jakub Jelinek <jakub@redhat.com>
3401 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3404 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3405 a local label rather than HIDDEN_JUMPTARGET.
3407 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3409 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3410 (init_cacheinfo): Initialize it.
3411 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3412 Always define bzero.
3413 Remove non-glibc code.
3414 * sysdeps/x86_64/bzero.S: Make an empty file.
3416 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3418 * sysdeps/x86_64/cacheinfo.c
3419 (__x86_64_preferred_memory_instruction): New.
3420 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3422 * sysdeps/x86_64/memset.S: Rewrite.
3424 2007-10-15 Roland McGrath <roland@redhat.com>
3426 * po/libc.pot: Regenerated.
3428 2007-10-15 Ulrich Drepper <drepper@redhat.com>
3430 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3434 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3435 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3436 address record to T_A/T_AAAA requests.
3438 2007-10-14 Ulrich Drepper <drepper@redhat.com>
3440 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3442 * posix/glob.c: Add some branch prediction throughout.
3444 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3447 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3449 (rfc3484_sort): Make sure that even if qsort doesn't support
3450 stable sorting out sorting here is stable by comparing service_order.
3451 (getaddrinfo): Initialize service_order.
3452 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3453 service_order field to sorting structure.
3454 * posix/tst-rfc3484-2.c (do_test): Likewise.
3456 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3457 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3458 __tzset_parse_tz and updating of daylight, timezone, tzname into
3460 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3461 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3462 happens in __tz_compute.
3463 * time/tzfile.c (__tzfile_read): Also read TZ string.
3464 (find_transition): Fold into __tzfile_compute.
3465 (__tzfile_compute): For times beyond the last transition try to
3467 * timezone/tst-timezone.c: Information in daylight and tzname does
3468 change for Asia/Tokyo timezone with more concrete information.
3471 * include/stdio.h: Add libc_hidden_proto for ftello.
3472 * libio/ftello.c: Add libc_hidden_def.
3475 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3476 on the specified time and not the last entries in the file. Move
3477 code to determine tzname[] to...
3478 (find_transition): ...here. Add ugly guess for times before the
3481 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3484 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3486 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3487 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3488 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3489 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3491 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3492 read mechanism when there are no group members and avoid no-op
3493 read syscall in this case.
3496 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3497 (__readall): If reading failed due to EAGAIN error wait a bit
3498 and possibly try again.
3499 (__readvall): Likewise.
3501 2007-10-13 Bruno Haible <bruno@clisp.org>
3503 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3504 when we cannot recode the message.
3506 2007-10-13 Ulrich Drepper <drepper@redhat.com>
3509 * libio/__freading.c (__freading): Don't return true for
3510 write-only streams. For read/write streams, check whether we
3511 performed a read operation already.
3512 * libio/Makefile (tests): Add tst-ext2.
3513 * libio/tst-ext2.c: New file.
3515 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3517 * locale/programs/repertoire.c (repertoire_read): Always free
3518 memory for repertoire file name [Coverity CID 270].
3520 * elf/cache.c (save_aux_cache): Free memory allocated for
3521 temporary file name [Coverity CID 267].
3523 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3525 * misc/Makefile (headers): Add bits/error.h.
3527 2007-10-12 Ulrich Drepper <drepper@redhat.com>
3529 * posix/fnmatch_loop.c: Take rule index returned as part of
3530 findidx return value into account when accessing weights.
3531 * posix/regcomp.c: Likewise.
3532 * posix/regexec.c: Likewise.
3534 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3535 (skip_to): Fix problems with parameter of elifdef/elifndef.
3537 2007-10-11 Ulrich Drepper <drepper@redhat.com>
3539 * iconv/gconv_simple.c: Add some branch prediction.
3541 2007-10-12 Jakub Jelinek <jakub@redhat.com>
3543 * locale/programs/ld-collate.c (collate_read): If ignore_content
3544 and nowtok is tok_define, eat any tok_eol tokens.
3546 2007-10-11 Jakub Jelinek <jakub@redhat.com>
3548 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3549 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3551 * inet/netinet/in.h: Don't include bits/socket.h.
3552 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3554 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3556 2007-10-10 Ulrich Drepper <drepper@redhat.com>
3558 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3560 * locale/programs/locfile-kw.gperf: Likewise.
3561 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3563 2007-10-10 Jakub Jelinek <jakub@redhat.com>
3565 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3566 (__find_specwc): Change into __extern_always_inline function.
3567 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3568 (__parse_one_specmb): Remove ps argument.
3569 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3570 Adjust __find_specmb and __parse_one_specmb callers.
3571 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3572 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3574 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3577 2007-10-09 Ulrich Drepper <drepper@redhat.com>
3579 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3580 with some Pentium Ds.
3582 2007-10-08 Ulrich Drepper <drepper@redhat.com>
3584 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3586 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3589 2007-10-07 Ulrich Drepper <drepper@redhat.com>
3592 * locale/C-time.c: Set week_1stday data to 19971201.
3593 * locale/programs/ld-time.c (time_finish): Default for
3594 first_workday is Monday.
3597 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3600 * posix/glob.c (glob): Recognize patterns starting \/.
3601 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3602 (main): Add test for pattern starting \/.
3604 * misc/error.h: Use __const instead of const.
3605 * misc/bits/error.h: Likewise.
3607 2007-10-07 Andreas Jaeger <aj@suse.de>
3609 * include/bits/error.h: New file.
3611 * misc/bits/error.h (error_at_line): Fix prototype.
3613 2007-10-06 Ulrich Drepper <drepper@redhat.com>
3616 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3617 more little bugs in creating the stack frame when pltexit has to
3620 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3621 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3624 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3625 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3626 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3627 * math/libm-test.inc: Add test for this case.
3630 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3631 (svc_register): Initialize sc_mapped. Set to TRUE if call to
3632 map service succeeded.
3633 (svc_is_mapped): New function.
3634 (svc_unregister): Use it before trying to unmap service.
3636 2007-10-05 Ulrich Drepper <drepper@redhat.com>
3638 * timezone/zic.c: Update from tzcode2007h.
3641 * timezone/africa: Update from tzdata2007h.
3642 * timezone/antarctica: Likewise.
3643 * timezone/asia: Likewise.
3644 * timezone/australasia: Likewise.
3645 * timezone/europe: Likewise.
3646 * timezone/leapseconds: Likewise.
3647 * timezone/northamerica: Likewise.
3648 * timezone/southamerica: Likewise.
3649 * timzeone/zone.tab: Likewise.
3652 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3655 * string/bits/string2.h (__strdup): Cast parameters to calloc to
3656 avoid warning with -Wconversion.
3657 (__strndup): Likewise.
3658 Half the patch by Christian Iseli <christian.iseli@licr.org>.
3661 * nscd/connections.c (restart): Don't resync if database is
3662 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3664 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3665 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
3667 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3668 evetnfd_read, eventfd_write.
3669 * sysdeps/unix/sysv/linux/eventfd.c: New file.
3670 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3671 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3672 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3673 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3674 eventfd_write for GLIBC_2.7.
3676 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3677 * sysdeps/unix/sysv/linux/signalfd.c: New file.
3678 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3679 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3681 2007-10-04 Jakub Jelinek <jakub@redhat.com>
3683 * stdlib/msort.c: Include stdint.h.
3684 (struct msort_param): New type.
3685 (msort_with_tmp): Use struct msort_param pointer for unchanging
3686 parameters. Add optimized handling for several common sizes
3687 and indirect sorting mode.
3688 (qsort): Adjust msort_with_tmp callers. For big S use indirect
3690 Suggested by Belazougui Djamel .
3692 * stdlib/Makefile (tests): Add tst-qsort2.
3693 * stdlib/tst-qsort2.c: New test.
3695 2007-10-04 Ulrich Drepper <drepper@redhat.com>
3697 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3698 for dup2 in case another thread races with the current one. Retry
3701 * misc/error.h: Remove support for use outside of libc. We have to
3702 include <features.h> now. Include <bits/error.h> if possible.
3703 * misc/bits/error.h: New file.
3705 2007-10-03 Jakub Jelinek <jakub@redhat.com>
3707 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3708 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3709 __extern_always_inline functions unconditionally, drop macros.
3711 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3712 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3713 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3715 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3716 add __artificial__ attribute.
3718 2007-10-02 Ulrich Drepper <drepper@redhat.com>
3720 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3721 backward to forward direction.
3723 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3726 * locale/programs/ld-collate.c (collate_finish): Compare against last
3727 used section which is known to have rules defined.
3728 (collate_read): After order_start, correctly record order of sections
3729 and queue sections up.
3731 2007-10-01 Ulrich Drepper <drepper@redhat.com>
3734 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3735 the same number of pages.
3736 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3738 * locale/programs/ld-collate.c (collate_read): After initial copy
3739 statement, continue in state 0.
3741 * include/stdio_ext.h (__fsetlocking): Define as macro.
3743 2007-09-30 Ulrich Drepper <drepper@redhat.com>
3745 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3748 * po/pt_BR.po: Fix typo.
3750 2007-09-29 Ulrich Drepper <drepper@redhat.com>
3752 * iconvdata/Makefile (modules): Add ISO8859-9E.
3753 (distribute): Add iso8859-9e.c.
3754 (gen-8bit-gap-modules): Add iso8859-9e.
3755 * iconvdata/iso8859-9e.c: New file.
3756 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3757 * iconvdata/TESTS: Likewise.
3758 * iconvdata/tst-tables.sh: Likewise.
3760 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3762 * locale/iso-639.def: Add several new entries.
3764 2007-09-24 Jakub Jelinek <jakub@redhat.com>
3766 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3767 void * pointers instead of struct link_map **.
3768 (_dl_scope_free): Change argument type to void *.
3769 * include/link.h (struct link_map): Change type of l_reldeps
3770 to struct link_map_reldeps, move l_reldepsact into that
3772 * elf/dl-deps.c: Include atomic.h.
3773 (_dl_map_object_deps): Only change l->l_initfini when it is
3774 fully populated, use _dl_scope_free for freeing it. Optimize
3775 removal of libs from reldeps by using l_reserved flag, when
3776 some removal is needed, allocate a new list instead of
3777 reallocating and free the old with _dl_scope_free. Adjust
3778 for l_reldeps and l_reldepsact changes.
3779 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3780 searching in l_initfini and l_reldeps without holding dl_load_lock.
3781 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3782 l_reldepsact changes.
3783 * elf/dl-close.c (_dl_close_worker): Likewise.
3784 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3786 2007-09-28 Ulrich Drepper <drepper@redhat.com>
3788 * iconvdata/Makefile (modules): Add KOI8-RU.
3789 (distribute): Add koi8-ru.c.
3790 (gen-8bit-gap-modules): Add koi8-ru.
3791 * iconvdata/koi8-ru.c: New file.
3792 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3793 * iconvdata/TESTS: Likewise.
3794 * iconvdata/tst-tables.sh: Likewise.
3796 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3798 2007-09-26 Jakub Jelinek <jakub@redhat.com>
3800 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3801 with __warning__/__error__ attributes.
3802 (__warnattr): Define.
3803 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3804 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3806 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3807 of __*_chk if compile time detectable overflow is found.
3808 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3809 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3811 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3812 instead of __*_chk if compile time detectable overflow is found.
3813 (__gets_alias): Rename to...
3814 (__gets_warn): ... this. Add __warnattr.
3815 (gets): Call __gets_warn instead of __gets_alias.
3816 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3817 aliases with __warnattr.
3818 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3819 time detectable overflow is found.
3820 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3821 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3822 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3823 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3824 __getdomainname_chk_warn): New aliases with __warnattr.
3825 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3826 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3827 __*_chk_warn instead of __*_chk if compile time detectable overflow
3829 (__getgroups_chk): Rename argument to __listlen from listlen.
3830 (__getwd_alias): Rename to...
3831 (__getwd_warn): ... this. Add __warnattr.
3832 (getwd): Call __getwd_warn instead of __getwd_alias.
3833 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3834 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3835 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3836 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3837 __wcsnrtombs_chk_warn): New aliases with __warnattr.
3838 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3839 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3840 compile time detectable overflow is found.
3841 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
3842 to use __*_chk or not.
3843 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3844 in comparisons which function should be called and in __*_chk*
3845 arguments. Call __*_chk_warn instead of __*_chk if compile time
3846 detectable overflow is found.
3847 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3849 * debug/tst-chk1.c (do_test): Add a few more tests.
3851 2007-09-24 Ulrich Drepper <drepper@redhat.com>
3854 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3855 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3856 (_nl_unload_domain): Finalize conversions_lock.
3857 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3858 handling table of known conversions.
3860 2007-09-24 Jakub Jelinek <jakub@redhat.com>
3862 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3863 close_not_cancel_no_status instead of close.
3865 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
3868 * posix/regcomp.c (lookup_collation_sequence_value): Check that
3869 nrules != 0 for multibyte chars.
3871 2007-09-23 Ulrich Drepper <drepper@redhat.com>
3873 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3874 Provide better error message in case the type is unknown.
3877 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3878 * string/stratcliff.c: Make usable to test wide char functions.
3879 * wcsmbs/wcsatcliff.c: New file.
3880 * wcsmbs/Makefiel (tests): Add wcsatcliff.
3883 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3884 (distribute): Add mac-centraleurope.c.
3885 (gen-8bit-gap-modules): Add mac-centraleurope.
3886 * iconvdata/mac-centraleurope.c: New file.
3887 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3888 * iconvdata/TESTS: Likewise.
3889 * iconvdata/tst-tables.sh: Likewise.
3892 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3894 2007-09-21 Ulrich Drepper <drepper@redhat.com>
3896 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3897 from __x86_64_core_cache_size_half.
3898 (init_cacheinfo): Compute shared cache size for AMD processors with
3899 shared L3 correctly.
3900 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3902 Patch in large parts by Evandro Menezes.
3904 2007-09-19 Ulrich Drepper <drepper@redhat.com>
3906 * elf/dl-lookup.c (add_dependency): Handle failing memory
3907 allocation for dependency list. Remove unnecessary check.
3909 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3910 open/close when determining source addresses.
3912 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3913 sha512-crypt, and sha512.
3914 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3915 (distribute): Add sha256.h and sha512.h.
3916 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3917 and call the appropriate code.
3918 * crypt/sha256-crypt.c: New file.
3919 * crypt/sha256.c: New file.
3920 * crypt/sha256.h: New file.
3921 * crypt/sha256c-test.c: New file.
3922 * crypt/sha256test.c: New file.
3923 * crypt/sha512-crypt.c: New file.
3924 * crypt/sha512.c: New file.
3925 * crypt/sha512.h: New file.
3926 * crypt/sha512c-test.c: New file.
3927 * crypt/sha512test.c: New file.
3929 2007-09-19 Jakub Jelinek <jakub@redhat.com>
3931 * misc/bits/syslog.h (syslog): Remove extraneous argument from
3932 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
3935 2007-09-18 Jakub Jelinek <jakub@redhat.com>
3937 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
3938 %as in fscanf format strings.
3940 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
3941 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3942 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
3944 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
3947 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
3948 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
3949 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
3950 * elf/dl-sym.c (do_sym): Likewise.
3951 * include/link.h (struct link_map): Add l_serial field.
3952 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
3953 * elf/dl-lookup.c (add_dependency): Add flags argument.
3954 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
3955 flags, use THREAD_GSCOPE_RESET_FLAG before and
3956 THREAD_GSCOPE_SET_FLAG after
3957 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
3958 Don't dereference map until it has been found on some list.
3959 If map->l_serial changed, return -1.
3961 2007-09-17 Jakub Jelinek <jakub@redhat.com>
3963 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
3964 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
3965 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
3967 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
3968 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
3969 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
3970 add libc_hidden_proto.
3971 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3972 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3973 conformance requested.
3974 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
3975 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3976 conformance requested.
3977 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3978 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
3979 conformance requested.
3980 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
3981 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
3982 ISO C99 or POSIX conformance requested.
3983 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
3984 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
3985 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
3986 and __isoc99_vsscanf@@GLIBC_2.7.
3987 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
3988 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
3989 (tests): Add scanf14.
3990 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
3991 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
3992 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
3993 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
3994 CFLAGS-isoc99_scanf.c): Add $(exceptions).
3995 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
3996 from using internal headers.
3997 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
3998 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
3999 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4000 and __isoc99_vswscanf@@GLIBC_2.7.
4001 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4002 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4003 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4004 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4005 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4006 * stdio-common/isoc99_scanf.c: New file.
4007 * stdio-common/isoc99_vsscanf.c: New file.
4008 * stdio-common/isoc99_vscanf.c: New file.
4009 * stdio-common/isoc99_vfscanf.c: New file.
4010 * stdio-common/isoc99_fscanf.c: New file.
4011 * stdio-common/isoc99_sscanf.c: New file.
4012 * wcsmbs/isoc99_fwscanf.c: New file.
4013 * wcsmbs/isoc99_vswscanf.c: New file.
4014 * wcsmbs/isoc99_swscanf.c: New file.
4015 * wcsmbs/isoc99_wscanf.c: New file.
4016 * wcsmbs/isoc99_vwscanf.c: New file.
4017 * wcsmbs/isoc99_vfwscanf.c: New file.
4018 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4019 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4020 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4021 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4022 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4023 * stdio-common/scanf14.c: New test.
4024 * stdio-common/scanf15.c: New test.
4025 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4026 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4027 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4028 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4029 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4030 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4031 __nldbl___isoc99_scanf@@GLIBC_2.7,
4032 __nldbl___isoc99_fscanf@@GLIBC_2.7,
4033 __nldbl___isoc99_sscanf@@GLIBC_2.7,
4034 __nldbl___isoc99_vscanf@@GLIBC_2.7,
4035 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4036 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4037 __nldbl___isoc99_wscanf@@GLIBC_2.7,
4038 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4039 __nldbl___isoc99_swscanf@@GLIBC_2.7,
4040 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4041 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4042 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4043 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4044 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4045 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4046 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4047 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4048 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4049 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4050 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4051 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4052 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4053 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4054 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4056 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4057 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4058 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4059 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4060 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4061 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4062 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4063 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4064 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4065 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4066 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4067 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4069 * stdio-common/Makefile (tests): Add scanf13.
4071 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4072 m modifier followed by l.
4073 (STRING_ARG): Add width argument.
4074 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4075 <case L_('C')>: Handle %mlc and %mC.
4076 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4078 * stdio-common/scanf13.c: New test.
4080 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4081 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4083 2007-09-18 Ulrich Drepper <drepper@redhat.com>
4085 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4086 type and __THROW marker of splice, vmsplice, and tee.
4087 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4088 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4089 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4090 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4091 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4092 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4093 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4094 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4095 as cancellation points.
4097 2003-11-01 Daniel Jacobowitz <dan@debian.org>
4099 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4100 parse more than three parts of the version number.
4102 2007-09-15 Ulrich Drepper <drepper@redhat.com>
4104 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4105 modifier. Patch by Jakub Jelinek.
4107 2007-08-26 Jakub Jelinek <jakub@redhat.com>
4109 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4110 call_fallocate in misc subdir.
4111 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4112 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4113 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4114 instead of __fallocate64.
4115 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4117 2007-09-15 Jakub Jelinek <jakub@redhat.com>
4119 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4120 * rt/Makefile (headers): Add bits/mqueue2.h.
4121 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4122 optimizing with GCC and __va_arg_pack_len is defined.
4123 * rt/bits/mqueue2.h: New file.
4124 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4125 (mq_open): New strong_alias.
4126 (__mq_open_2): New function.
4127 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4128 (mq_open): New strong_alias.
4129 (__mq_open_2): New function.
4130 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4131 * Versions.def (librt): Add GLIBC_2.7 version.
4132 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4133 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4135 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4136 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4137 is defined rather than when not C++.
4138 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4139 __openat64_alias): New redirects.
4140 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4141 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4142 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4143 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4144 functions instead of function-like macros.
4146 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4148 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4149 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4150 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4152 2007-09-15 Mike Frysinger <vapier@gentoo.org>
4154 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4155 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4157 2007-09-14 Mike Frysinger <vapier@gentoo.org>
4159 * inet/tst-network.c: Increment ERRORS for failing tests.
4161 2007-09-07 Jakub Jelinek <jakub@redhat.com>
4163 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4164 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4165 implement as __extern_always_inline function.
4166 (vsyslog): Define as __extern_always_inline function unconditionally.
4167 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4168 When __va_arg_pack is defined, implement as __extern_always_inline
4170 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4171 __extern_always_inline functions unconditionally.
4172 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4173 bits/stdio2.h will be included.
4174 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4175 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4176 implement as __extern_always_inline functions.
4177 (vswprintf, vwprintf, vfwprintf): Define as
4178 __extern_always_inline functions unconditionally.
4179 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4181 2007-09-03 Jakub Jelinek <jakub@redhat.com>
4183 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4184 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4186 * include/features.h (__USE_EXTERN_INLINES): Define only when
4187 __extern_inline is defined.
4188 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4189 is defined instead of when not __cplusplus.
4190 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4191 is defined instead of when not __cplusplus.
4192 * socket/sys/socket.h: Include bits/socket2.h when
4193 __extern_always_inline is defined instead of when not __cplusplus.
4194 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4195 is defined instead of when not __cplusplus.
4196 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4197 is defined instead of when not __cplusplus.
4198 * string/string.h: Include bits/string3.h when __extern_always_inline
4199 is defined instead of when not __cplusplus.
4200 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4201 is defined instead of when not __cplusplus.
4202 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4203 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4205 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4206 defined __extern_always_inline instead of !defined __cplusplus.
4207 * libio/bits/stdio-ldbl.h: Likewise.
4208 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4209 * misc/bits/syslog.h (syslog): Don't define for C++.
4210 (vsyslog): Use __extern_always_inline function for C++ instead of
4212 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4213 whenever that macro is defined.
4214 (vprintf): Don't provide the inline for C++.
4215 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4216 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4217 define the macros for C++.
4218 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4219 __extern_always_inline functions for C++.
4220 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4221 stat64, lstat64, fstat64, fstatat64): Don't define if not
4222 __USE_EXTERN_INLINES.
4223 * wcsmbs/bits/wchar2.h: Fix #error message.
4224 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4225 (vswprintf, vwprintf, vfwprintf): Define using
4226 __extern_always_inline functions for C++.
4227 * string/bits/string3.h: Don't #undef macros if __cplusplus.
4228 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4229 strncpy, strcat, strncat): Define as __extern_always_inline
4230 functions instead of macros for C++.
4231 * math/bits/cmathcalls.h: Guard __extern_inline routines with
4232 defined __extern_inline.
4233 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4234 to __extern_inline whenever that macro is defined.
4235 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4236 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4237 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4238 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4239 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4240 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4241 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4242 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4243 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4244 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4245 prototypes. Only provide __extern_inline routines if
4246 __USE_EXTERN_INLINES.
4247 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4249 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4250 For now avoid some *printf tests in C++. Skip all testing
4251 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4253 * debug/tst-chk4.cc: New file.
4254 * debug/tst-chk5.cc: New file.
4255 * debug/tst-chk6.cc: New file.
4256 * debug/tst-lfschk4.cc: New file.
4257 * debug/tst-lfschk5.cc: New file.
4258 * debug/tst-lfschk6.cc: New file.
4259 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4261 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4262 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4263 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4265 2007-09-13 Ulrich Drepper <drepper@redhat.com>
4267 * po/cs.po: Update from translation team.
4269 2007-09-11 Roland McGrath <roland@redhat.com>
4271 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4274 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4276 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4278 2007-09-05 Roland McGrath <roland@redhat.com>
4280 * manual/signal.texi (Signaling Another Process): Typo fix.
4281 From Karl Berry <karl@freefriends.org>.
4283 2007-08-29 Ulrich Drepper <drepper@redhat.com>
4285 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4286 zero if not defined.
4287 (make_request): Recognize optimistic addresses and treat them like
4288 deprecated addresses.
4289 Reported by Neil Horman <nhorman@redhat.com>.
4291 2007-08-28 Ulrich Drepper <drepper@redhat.com>
4293 * nscd/connections.c (send_ro_fd): Also transfer file size.
4294 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4295 file size don't call fstat.
4297 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4298 ahead and map the file. This should always be correct and we can
4299 catch problems later.
4301 2007-08-28 Jakub Jelinek <jakub@redhat.com>
4303 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4305 (__fread_alias, __fread_unlocked_alias): New aliases.
4306 (fread): New extern inline.
4307 (fread_unlocked): Likewise. Undef macro before definition of
4308 the inline function.
4309 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4310 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4311 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4312 and __fread_unlocked_chk@@GLIBC_2.7.
4313 * debug/fread_chk.c: New file.
4314 * debug/fread_u_chk.c: New file.
4315 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4317 2007-08-27 Jakub Jelinek <jakub@redhat.com>
4319 * sysdeps/unix/sysv/linux/syscalls.list
4320 (personality): Change caller to EXTRA.
4322 2007-08-25 Ulrich Drepper <drepper@redhat.com>
4324 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4326 * iconvdata/iso-2022-cn.c (BODY): Likewise.
4328 * locale/programs/ld-collate.c (collate_output): Avoid warning if
4331 * Makerules: Use -p option with mkdir.
4333 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4334 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4335 (_xdr_directory_obj): Likewise.
4336 (xdr_entry_obj): Likewise.
4337 (xdr_group_obj): Likewise.
4338 (xdr_link_obj): Likewise.
4339 (xdr_table_obj): Likewise.
4340 (_xdr_nis_result): Likewise.
4341 (_xdr_ns_request): Likewise.
4342 (_xdr_ib_request): Likewise.
4343 (_xdr_nis_taglist): Likewise.
4344 (xdr_cback_data): Likewise.
4345 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4346 (xdr_ypresp_maplist): Likewise.
4348 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4350 * posix/regex_internal.h: Prevent some declarations and definitions
4351 to be seen when used in tests.
4353 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4354 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4356 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4358 * config.make.in (datarootdir): Add to shut up configure.
4360 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4361 associativity for fully-associative caches.
4363 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4364 requests. Fill on more associativity values for L2.
4365 Patch mostly by Evandro Menezes.
4367 2007-08-24 Ulrich Drepper <drepper@redhat.com>
4369 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4370 (_libc_vdso_platform_setup): Avoid using exported variable by using
4373 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4375 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4376 fallocate64 as EXTRA. It is not referenced if the symbol isn't
4379 2007-08-23 Ulrich Drepper <drepper@redhat.com>
4381 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4382 align stack for call if pltexit is to be used.
4385 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4386 align for function call in case pltexit has to be called later.
4388 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4389 implicit atomic operation when storing function pointer.
4390 (_dl_runtime_profile): Likewise.
4392 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4394 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4397 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4400 * string/strtok.c: Fix typo in comment.
4403 * debug/segfault.c: Fix typos in comments.
4406 * stdio-common/tempnam.c: Fix comment, it is not checked that
4407 TMPDIR points to a writable directory.
4410 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4411 memory allocated for the name server address.
4414 * nscd/connections.c (handle_request): Using sendfile always
4415 requires that mmap is used for the database.
4416 Patch by Petr Baudis <pasky@suse.cz>.
4419 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4420 suddenly has two or more addresses, ignore it and remove the old
4424 * resolv/res_hconf.c: Prepare for compiling outside libc.
4425 * nscd/res_hconf.c: New file.
4426 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4428 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4429 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4431 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4434 * debug/pcprofiledump.c: Turn on internationalization by calling
4435 setlocale. Patch mostly by Benno Schulenberg.
4438 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4440 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4441 * iconvdata/bug-iconv5.c: New file.
4443 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4446 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4447 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4448 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4449 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4450 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4451 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4452 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4453 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4455 2007-08-21 Ulrich Drepper <drepper@redhat.com>
4458 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4459 lookup loop. Suggested by John Reiser.
4461 2007-08-21 Jakub Jelinek <jakub@redhat.com>
4463 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4465 2007-08-20 Ulrich Drepper <drepper@redhat.com>
4467 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4468 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4469 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4470 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4471 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4473 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4475 2007-08-18 Ulrich Drepper <drepper@redhat.com>
4477 * po/nl.po: Update from translation team.
4479 2007-08-16 Andreas Jaeger <aj@suse.de>
4481 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4482 Reported by Peter Festner <peter.festner@ewetel.net>.
4484 2007-08-17 Jakub Jelinek <jakub@redhat.com>
4486 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4488 2007-08-16 Jakub Jelinek <jakub@redhat.com>
4490 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4491 to check for undefined symbols.
4493 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4494 If the syscall fails, set errno to the actual returned error number
4496 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4497 arguments are incorrect, set errno to EINVAL, if the syscall
4498 fails, set errno to the actual returned error number.
4500 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4501 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4503 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4504 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4506 (ASI_PNF, ASI_BLK_P): Don't define.
4507 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4508 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4510 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4511 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4514 2007-08-15 Jakub Jelinek <jakub@redhat.com>
4516 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4517 FE_UNDERFLOW on Niagara CPUs.
4519 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4522 2007-08-14 Jakub Jelinek <jakub@redhat.com>
4524 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4525 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4526 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4527 flush should be used or not inside of the function.
4528 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4530 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4531 __thread_start): Use HIDDEN_JUMPTARGET.
4532 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4533 __thread_start): Likewise.
4534 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4536 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4537 Add libc_hidden_proto.
4538 (STRTOF): Add libc_hidden_proto.
4539 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4540 (strtold_l, wcstold_l): Use them as second argument for
4543 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4545 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4547 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4549 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4551 2007-08-14 Ulrich Drepper <drepper@redhat.com>
4553 * po/bg.po: New file. From the translation team.
4555 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4557 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4558 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4559 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4560 when each feature was introduced.
4562 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4563 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4564 (CHECK_HASH): New macro.
4565 (PREPARE_VERSION): Use it.
4567 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4568 prototype if not __ASSUME_PSELECT.
4569 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4570 prototype if not __ASSUME_PPOLL.
4572 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4574 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4575 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4578 2007-08-13 Ulrich Drepper <drepper@redhat.com>
4580 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4581 (_libc_vdso_platform_setup): If vDSO is not available point
4582 __vdso_gettimeofday to the vsyscall.
4583 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4584 __vdso_gettimeofday instead of vsyscall.
4586 2007-08-13 Jakub Jelinek <jakub@redhat.com>
4588 * nscd/servicescache.c: Include kernel-features.h.
4589 * nscd/gai.c: Likewise.
4590 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4591 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4592 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4593 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4594 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4595 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4596 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4597 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4598 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4600 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4602 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4603 and _dl_get_origin defines anymore.
4605 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4606 Build fix for systems which might lack POSIX timer support.
4608 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4609 (_libc_vdso_platform_setup): Mangle function pointers before storing
4611 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4612 Demangle vdso pointer before use.
4613 (INTERNAL_VSYSCALL): Likewise.
4615 * elf/cache.c (primes): Mark as const.
4616 Noted by Roland McGrath.
4618 2007-08-01 Andreas Jaeger <aj@suse.de>
4619 Jakub Jelinek <jakub@redhat.com>
4621 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4622 (options): Add option.
4623 (parse_opt): Handle option.
4624 (manual_link): Adjust process_file caller. Call implicit_soname.
4625 (search_dir): Formatting. Use and populate auxiliary cache.
4626 (main): Load and save auxiliary cache.
4627 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
4628 stat64 from fstat64 to caller.
4629 (implicit_soname): New function.
4630 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4631 leave *soname as NULL.
4632 * elf/cache.c: Include libgen.h.
4633 (print_entry, print_cache, compare, save_cache, add_to_cache):
4634 Formatting and cleanups.
4635 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4636 aux_cache_file): New structures.
4637 (AUX_CACHEMAGIC): Define.
4638 (primes): New array.
4639 (aux_hash_size, aux_hash): New variables.
4640 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4641 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4642 load_aux_cache, save_aux_cache): New functions.
4643 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4644 (init_aux_cache, search_aux_cache, add_to_aux_cache,
4645 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4646 (process_file): Adjust prototype.
4648 2007-08-12 Jakub Jelinek <jakub@redhat.com>
4650 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4653 2007-08-12 Ulrich Drepper <drepper@redhat.com>
4655 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4656 r_found_version structure as second parameter.
4657 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4658 (_dl_vdso_vsym): Change type of second parameter accordingly.
4659 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4660 (_libc_vdso_platform_setup): Adjust.
4661 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4662 (_libc_vdso_platform_setup): Likewise.
4664 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4665 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4666 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4667 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4668 * csu/libc-start.c: Pretty printing.
4669 Use VDSO_SETUP if defined.
4670 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4671 and let generic code call into _libc_vdso_platform_setup.
4672 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4673 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4674 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4675 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4676 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4678 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4679 (sysdep_rountines): Add dl-vdso.
4681 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4684 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4685 attribute_hidden to __vdso_gettimeofday prototype.
4687 2007-08-12 Roland McGrath <roland@redhat.com>
4689 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4690 From: Karl Berry <karl@freefriends.org>.
4692 2007-08-11 Ulrich Drepper <drepper@redhat.com>
4694 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4695 an atime update for the files we read.
4697 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4699 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4701 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
4704 * misc/Makefile (routines): Add mkostemp and mkostemp64.
4705 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4706 * misc/mkostemp.c: New file.
4707 * misc/mkostemp64.c: New file.
4708 * stdlib/stdlib.h: Declare the new functions.
4709 * sysdeps/posix/tempname.c: Add new parameter which is added to
4710 the flags for open. Remove __GT_BIGFILE handling.
4711 * stdio-common/tempname.c: Likewise.
4712 * include/stdio.h: Adjust __gen_tempname prototype.
4713 Renumber __GT_* constants.
4714 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4715 * misc/mkdtemp.c: Likewise.
4716 * misc/mkstemp.c: Likewise.
4717 * misc/mkstemp64.c: Likewise.
4718 * misc/mktemp.c: Likewise.
4719 * stdio-common/tempnam.c: Likewise.
4720 * stdio-common/tmpfile.c: Likewise.
4721 * stdio-common/tmpfile64.c: Likewise.
4722 * stdio-common/tmpnam.c: Likewise.
4723 * stdio-common/tmpnam_r.c: Likewise.
4725 2007-08-10 Roland McGrath <roland@frob.com>
4727 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4729 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4730 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4732 2007-08-10 Ulrich Drepper <drepper@redhat.com>
4734 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4736 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4737 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4738 * nss/nss_files/files-have_o_cloexec.c: New file.
4740 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4743 2007-08-10 Jakub Jelinek <jakub@redhat.com>
4745 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4746 ___new_wcstold_l): New weak aliases.
4747 (strtold_l, wcstold_l): Use them as second argument for
4750 2007-08-09 Ulrich Drepper <drepper@redhat.com>
4752 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4753 register in test for error.
4755 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4756 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4758 * po/sv.po: Update from translation team.
4760 2007-08-06 Roland McGrath <roland@redhat.com>
4762 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4763 Remove __strto*_l inlines.
4764 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4765 * stdlib/strtod.c: Add libc_hidden_def.
4766 * stdlib/strtod_l.c: Likewise.
4767 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4768 for __new_strtold and __new_wcstold.
4769 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4771 * stdlib/strtol.c: Add libc_hidden_def.
4772 * stdlib/strtol_l.c: Likewise.
4773 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4776 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4778 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4779 * scripts/data/localplt-generic.data: ... here.
4780 * elf/Makefile (check-data): Get generic file if no other.
4781 ($(objpfx)check-localplt.out): Make target unconditional.
4783 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4786 2007-08-05 Ulrich Drepper <drepper@redhat.com>
4788 * po/zh_CN.po: Updated translation from translation team.
4790 2007-08-05 Jakub Jelinek <jakub@redhat.com>
4792 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4793 Don't use CGOTSETUP and CGOTRESTORE macros.
4795 2007-08-04 Roland McGrath <roland@redhat.com>
4797 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4799 2007-08-04 Jakub Jelinek <jakub@redhat.com>
4801 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4802 __extension__ around the whole statement expression.
4804 2007-08-04 Ulrich Drepper <drepper@redhat.com>
4806 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4807 elements during initialization.
4809 * po/pl.po: Updated translation from translation team.
4810 * po/tr.po: Likewise.
4811 * po/nl.po: Likewise.
4813 2007-08-03 Ulrich Drepper <drepper@redhat.com>
4815 * rt/aio.h: Add __nonnull attributes.
4817 2007-08-03 Jakub Jelinek <jakub@redhat.com>
4819 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4820 * stdlib/Makefile (tests): Add tst-strtod5.
4821 (tst-strtod5-ENV): New.
4822 * stdlib/tst-strtod5.c: New file.
4824 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4826 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4829 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4832 2007-08-03 Jakub Jelinek <jakub@redhat.com>
4834 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4837 2007-08-02 Ulrich Drepper <drepper@redhat.com>
4839 * io/Makefile (aux): Add have_o_cloexec.
4840 * include/fcntl.h: Declare __have_o_cloexec.
4841 * io/have_o_cloexec.c: New file.
4842 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4843 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4844 fcntl call if not necessary.
4845 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4848 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4849 Avoid memset, add explicit initialization.
4850 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4851 to the end and change into zero-sized array.
4852 Move lock member to fill a hole on 64-bit platforms.
4854 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4856 * include/stdlib.h: Add __strto*_internal prototypes here.
4857 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4859 * include/wchar.h: Add __wcsto*_internal prototypes.
4860 * sysdeps/generic/inttypes.h: No need to protect the declaration
4861 of the __strto*_internal and __wcsto*_internal members here.
4863 * rt/mqueue.h: Change const to __const and add nonnull attributes.
4865 2007-08-02 Roland McGrath <roland@redhat.com>
4867 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4868 $(inst_bindir)/getconf if possible.
4870 * posix/Makefile ($(objpfx)getconf.speclist): New target.
4871 (generated): Add it.
4872 ($(inst_libexecdir)/getconf): Use it.
4874 2007-08-01 Ulrich Drepper <drepper@redhat.com>
4876 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4877 /proc is faster and sufficient. /sys is still needed for
4880 2007-08-01 Jakub Jelinek <jakub@redhat.com>
4882 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4883 syscall as __fallocate64.
4884 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4885 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4887 2007-07-30 Jakub Jelinek <jakub@redhat.com>
4889 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4892 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4893 if off_t is different rank from size_t.
4895 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4896 uw_frame_state_for): Avoid type punning warnings.
4897 * sysdeps/generic/unwind-dw2-fde-glibc.c
4898 (_Unwind_IteratePhdrCallback): Likewise.
4899 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4900 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4901 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4904 2007-07-31 Ulrich Drepper <drepper@redhat.com>
4906 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4907 total processors using sysfs.
4908 (__get_nprocs): Use sysfs to determine which processors are online.
4910 2007-07-31 Jakub Jelinek <jakub@redhat.com>
4912 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4913 syscall arguments count.
4915 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4917 2007-07-30 Roland McGrath <roland@redhat.com>
4919 * manual/libc.texinfo: Update copyrights, formatting magic, and
4920 @dircategory. From Karl Berry <karl@freefriends.org>.
4922 2007-07-29 Ulrich Drepper <drepper@redhat.com>
4925 * io/Makefile (headers): Add bits/fcntl2.h.
4927 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4929 (__CPU_EQUAL_S): Likewise.
4931 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
4932 (tests): Add tst-cpuset.
4933 * posix/sched_cpualloc.c: New file.
4934 * posix/sched_cpufree.c: New file.
4935 * posix/tst-cpuset.c: New file.
4936 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
4938 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
4939 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
4940 macros. Define CPU_*_S macros.
4942 2007-07-28 Ulrich Drepper <drepper@redhat.com>
4944 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
4948 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
4949 #.0g and value rounded to 1.0.
4950 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
4952 2007-07-26 Jakub Jelinek <jakub@redhat.com>
4954 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
4955 for int_frac_digits and frac_digits.
4957 * login/logout.c (logout): Avoid aliasing violation.
4958 * login/logwtmp.c (logwtmp): Likewise.
4960 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
4962 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
4964 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
4966 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
4968 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
4971 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
4973 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
4975 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
4976 char * to avoid warning.
4977 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
4979 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
4981 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
4982 allocate_arrays): Cast second argument to charmap_find_symbol
4983 to char * to avoid warnings.
4985 * locale/programs/repertoire.c (repertoire_new_char): Change
4986 from_nr, to_nr and cnt to unsigned long, adjust printf format
4989 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
4990 Cast second argument to new_element to char * to avoid warnings.
4992 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
4994 * intl/gettextP.h (struct loaded_domain): Change plural to const
4995 struct expression *.
4996 * intl/plural-eval.c (plural_eval): Change first argument to
4997 const struct expression *.
4998 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
4999 argument to const struct expression **.
5000 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5002 * intl/loadmsgcat (_nl_unload_domain): Cast away const
5003 in call to __gettext_free_exp.
5005 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5006 unitialized wstring/wpattern var warnings.
5008 * posix/runtests.c (struct a_test): Make data field const char *.
5010 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5011 vars if not LDBL_MANT_DIG >= 106.
5013 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5015 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5016 __find_specmb to avoid warning.
5018 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5020 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5023 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5026 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5027 tv var when it will be actually used.
5029 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5032 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5033 char array resp. pointer.
5034 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5036 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5037 to const unsigned char **.
5038 (ucs4_to_cns11643): Change second argument to unsigned char *.
5039 * iconvdata/euc-tw.c (BODY): Change endp type to
5040 const unsigned char *.
5041 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5043 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5044 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5045 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5046 types to unsigned char pointers/arrays instead of char.
5047 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5049 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5050 * iconvdata/jis0212.h: Include assert.h.
5051 (ucs4_to_jisx0212): Change second argument to unsigned char *.
5052 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5053 of trying to handle that.
5054 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5056 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5057 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5058 two dimensional const unsigned char arrays.
5059 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5060 Initialize endp to inptr to shut up a warning.
5062 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5065 * time/strptime_l.c (__strptime_internal): Silently ignore
5066 strftime modifiers and field width in recursive calls.
5068 * include/time.h (enum ptime_locale_status): Remove.
5069 (__strptime_internal): Remove decided and era_cnt arguments,
5070 add statep argument.
5071 * time/strptime_l.c (__strptime_internal): Remove decided
5072 and era_cnt arguments, add statep argument. Don't recompute
5073 any fields in recursive calls, only update caller's tm
5074 and state, if recursive call fails, don't change tm nor
5076 (get_alt_number): Adjust.
5077 (recursive): Adjust caller.
5078 (strptime): Likewise.
5079 * time/strptime.c (strptime): Likewise.
5081 2007-07-19 Jakub Jelinek <jakub@redhat.com>
5083 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5084 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5085 if from and to charsets are the same.
5086 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5087 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5088 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5090 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5092 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5093 Don't define wint_t when __need_mbstate_t unless it
5095 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5096 in the typedef if possible.
5097 * wctype/wctype.h (wint_t): Define by including
5098 wchar.h with __need_wint_t instead of including stddef.h
5099 with __need_wint_t and as fallback definining it ourselves.
5100 * iconv/gconv.h (__need_wint_t): Define before including
5102 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5103 or _GLIBCPP_USE_WCHAR_T.
5104 (__need_wchar_t): Don't define
5105 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5106 (__need_wint_t): Don't define before including stddef.h,
5107 define before including wchar.h only if _LIBC or
5108 _GLIBCPP_USE_WCHAR_T.
5109 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5110 * sysdeps/mach/hurd/_G_config.h: Likewise.
5111 * sysdeps/generic/_G_config.h: Likewise.
5112 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5113 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5114 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5115 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5117 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5119 * sysdeps/posix/posix_fallocate64.c: Undefine
5120 __posix_fallocate64_l64 before alias handling.
5121 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5122 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5123 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5124 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5126 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5128 2007-07-23 Jakub Jelinek <jakub@redhat.com>
5130 * locale/programs/ld-collate.c (atwc): New variable.
5131 (add_to_tablewc): New toplevel function, moved from collate_output.
5132 (collate_output): Remove add_to_tablewc nested function.
5134 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5135 (name_insert): New function.
5136 (write_output): Remove hash_table and hash_size vars and name_insert
5139 2007-07-24 Roland McGrath <roland@redhat.com>
5141 * Makerules (install-others-programs-nosubdir): New target.
5142 (install-no-libc.a-nosubdir): Depend on it.
5144 * iconv/Makefile (install-others-programs): Set this instead of
5146 * login/Makefile (install-others-programs): Likewise.
5147 * posix/Makefile (install-others-programs): Likewise.
5149 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5152 2007-07-23 Ulrich Drepper <drepper@redhat.com>
5154 * io/Makefile (tests): Add tst-posix_fallocate.
5155 * io/tst-posix_fallocate.c: New file.
5157 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5160 2007-07-22 Roland McGrath <roland@frob.com>
5162 * hurd/getdport.c: Add missing copyright year update.
5164 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5165 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5167 2007-07-22 Ulrich Drepper <drepper@redhat.com>
5169 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5171 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5172 O_CLOEXEC is needed.
5173 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5174 Avoid additional fcntl to set O_CLOEXEC if not needed.
5175 * nis/nss_compat/compat-initgroups.c: Likewise.
5176 * nis/nss_compat/compat-pwd.c: Likewise.
5177 * nis/nss_compat/compat-spwd.c: Likewise.
5179 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5182 * manual/errno.texi: Change ECANCELED value to 119.
5185 * mach/lock-intern.h: Include <sys/cdefs.h>.
5188 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5192 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5195 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5197 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
5199 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5201 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5203 2007-07-21 Ulrich Drepper <drepper@redhat.com>
5205 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5206 descriptor received from nscd.
5208 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5210 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5211 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5212 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5213 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5214 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5215 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5217 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5220 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5223 * login/forkpty.c (forkpty): Close master and slave fds on
5224 fork failure. Patch by
5225 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5227 2007-07-18 Jakub Jelinek <jakub@redhat.com>
5229 * include/features.h (__USE_ISOC95): New define.
5230 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5231 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5232 for -std=iso9899:199409.
5233 * CONFORMANCE: Remove comments about unsupported AMD1.
5235 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5237 * sysdeps/ia64/sched_cpucount.c: New file.
5238 * sysdeps/powerpc/sched_cpucount.c: New file.
5240 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5241 __BEGIN_DECLS/__END_DECLS around the prototype.
5242 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
5243 pointer to const cpu_set_t.
5245 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5246 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5247 __need_size_t and include stddef.h.
5248 * sysvipc/sys/msg.h: Likewise.
5249 * posix/sched.h: Likewise.
5250 * hurd/hurd/signal.h (__need_size_t): Define.
5252 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5253 neither does signal.h in pedantic ISO C namespaces. stdio.h
5254 no longer defines wint_t or wchar_t.
5256 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5257 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5258 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5259 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5260 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5261 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5262 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5263 * debug/printf_chk.c (__printf_chk): Likewise.
5264 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5265 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5267 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5270 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5271 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5273 2007-07-16 Jakub Jelinek <jakub@redhat.com>
5276 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5277 * malloc/malloc.h (realloc): Likewise.
5279 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5280 if one of proc_file_chain streams has that fileno.
5281 * stdio-common/Makefile (tests): Add tst-popen2.
5282 * stdio-common/tst-popen2.c: New test.
5284 2007-07-14 Jakub Jelinek <jakub@redhat.com>
5286 * elf/ldconfig.c: Allow GPLv2 or any later version.
5287 * elf/readlib.c: Likewise.
5288 * elf/chroot_canon.c: Likewise.
5289 * elf/cache.c: Likewise.
5290 * nscd/mem.c: Likewise.
5291 * nscd/getpwuid_r.c: Likewise.
5292 * nscd/grpcache.c: Likewise.
5293 * nscd/aicache.c: Likewise.
5294 * nscd/getsrvbynm_r.c: Likewise.
5295 * nscd/nscd.c: Likewise.
5296 * nscd/servicescache.c: Likewise.
5297 * nscd/getsrvbypt_r.c: Likewise.
5298 * nscd/initgrcache.c: Likewise.
5299 * nscd/gethstbyad_r.c: Likewise.
5300 * nscd/gethstbynm2_r.c: Likewise.
5301 * nscd/getgrnam_r.c: Likewise.
5302 * nscd/nscd_setup_thread.c: Likewise.
5303 * nscd/getpwnam_r.c: Likewise.
5304 * nscd/gai.c: Likewise.
5305 * nscd/connections.c: Likewise.
5306 * nscd/dbg_log.c: Likewise.
5307 * nscd/cache.c: Likewise.
5308 * nscd/hstcache.c: Likewise.
5309 * nscd/nscd_conf.c: Likewise.
5310 * nscd/getgrgid_r.c: Likewise.
5311 * nscd/pwdcache.c: Likewise.
5312 * catgets/gencat.c: Likewise.
5313 * locale/programs/linereader.h: Likewise.
5314 * locale/programs/locarchive.c: Likewise.
5315 * locale/programs/ld-paper.c: Likewise.
5316 * locale/programs/locfile-kw.h: Likewise.
5317 * locale/programs/ld-address.c: Likewise.
5318 * locale/programs/xmalloc.c: Likewise.
5319 * locale/programs/ld-time.c: Likewise.
5320 * locale/programs/localedef.c: Likewise.
5321 * locale/programs/simple-hash.c: Likewise.
5322 * locale/programs/xstrdup.c: Likewise.
5323 * locale/programs/ld-numeric.c: Likewise.
5324 * locale/programs/locfile-kw.gperf: Likewise.
5325 * locale/programs/ld-collate.c: Likewise.
5326 * locale/programs/charmap-kw.gperf: Likewise.
5327 * locale/programs/charmap.h: Likewise.
5328 * locale/programs/charmap-kw.h: Likewise.
5329 * locale/programs/config.h: Likewise.
5330 * locale/programs/locfile.c: Likewise.
5331 * locale/programs/ld-ctype.c: Likewise.
5332 * locale/programs/charmap.c: Likewise.
5333 * locale/programs/ld-messages.c: Likewise.
5334 * locale/programs/repertoire.h: Likewise.
5335 * locale/programs/locale.c: Likewise.
5336 * locale/programs/ld-name.c: Likewise.
5337 * locale/programs/linereader.c: Likewise.
5338 * locale/programs/locfile.h: Likewise.
5339 * locale/programs/3level.h: Likewise.
5340 * locale/programs/ld-monetary.c: Likewise.
5341 * locale/programs/ld-measurement.c: Likewise.
5342 * locale/programs/charmap-dir.c: Likewise.
5343 * locale/programs/ld-identification.c: Likewise.
5344 * locale/programs/localedef.h: Likewise.
5345 * locale/programs/charmap-dir.h: Likewise.
5346 * locale/programs/repertoire.c: Likewise.
5347 * locale/programs/simple-hash.h: Likewise.
5348 * locale/programs/ld-telephone.c: Likewise.
5349 * locale/programs/locale-spec.c: Likewise.
5350 * locale/programs/locfile-token.h: Likewise.
5351 * posix/getconf.c: Likewise.
5352 * iconv/dummy-repertoire.c: Likewise.
5353 * iconv/iconv_charmap.c: Likewise.
5354 * iconv/iconvconfig.c: Likewise.
5355 * iconv/iconv_prog.c: Likewise.
5356 * malloc/memusagestat.c: Likewise.
5357 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5359 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5361 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5362 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5363 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5364 check for the first argument.
5366 2007-07-12 Jakub Jelinek <jakub@redhat.com>
5369 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5370 (__tgmath_real_type): Fix if expr is const int or other const
5371 qualified integral type.
5372 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5373 expressions and handle const qualified arguments.
5374 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5375 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5376 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5377 statement expressions.
5378 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5379 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5380 (__TGMATH_UNARY_IMAG): Define.
5381 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5382 * math/Makefile (tests): Add test-tgmath2.
5383 (CFLAGS-test-tgmath2.c): Add.
5384 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5385 count_cfloat, count_cldouble): New variables.
5387 (main): Check number of complex calls as well.
5388 (F(compile_test)): Add complex tests and tests with const qualified
5390 (y, z, ccount): Define.
5391 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5392 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5393 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5394 F(cproj)): New functions.
5395 * math/test-tgmath2.c: New test.
5397 2007-07-11 Jakub Jelinek <jakub@redhat.com>
5400 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5401 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5403 * dlfcn/Makefile (distribute): Add glreflib3.c.
5404 (module-names): Add glreflib3.
5405 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5407 (LDFLAGS_glreflib3.so): New.
5408 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5410 * dlfcn/glreflib3.c: New file.
5412 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5413 returned -1, return NULL.
5414 * intl/explodename.c (_nl_explode_name): Return -1 if
5415 _nl_normalize_codeset failed.
5417 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5419 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5420 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5421 and avoid branch misspredicts for > 31 bytes memset case.
5422 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5423 Remove toc ref to __cache_line_size.
5425 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5426 to get ISA-V2.0 branch hints.
5427 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5428 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5429 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5430 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5431 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5432 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5433 Remove toc ref to __cache_line_size.
5435 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5436 Include math_ldbl_opt.h.
5438 2007-07-10 Ulrich Drepper <drepper@redhat.com>
5441 * time/strptime_l.c (__strptime_internal): Implement greedy
5442 matching of weekday and month names.
5444 2007-07-09 Roland McGrath <roland@redhat.com>
5446 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5447 (ELF_NOTE_ABI): Use it.
5448 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5450 2007-07-09 Ulrich Drepper <drepper@redhat.com>
5452 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5453 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5455 2007-07-07 Ulrich Drepper <drepper@redhat.com>
5458 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5459 in loop to look for conversion specifier to avoid testing of
5461 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5462 * stdio-common/bug18.c: New file.
5463 * stdio-common/bug18a.c: New file.
5464 * stdio-common/bug19.c: New file.
5465 * stdio-common/bug19a.c: New file.
5467 2007-07-05 Mike Frysinger <vapier@gentoo.org>
5469 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5472 2007-07-01 Jakub Jelinek <jakub@redhat.com>
5474 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5475 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5476 Return NULL if mmap failed instead of asserting it does not.
5477 (calloc): Check for integer overflow.
5479 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5482 2007-07-03 Jakub Jelinek <jakub@redhat.com>
5485 * nis/nss-default.c: Include errno.h.
5486 (init): Preserve errno.
5488 2007-07-02 Ulrich Drepper <drepper@redhat.com>
5490 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5492 2007-06-30 Ulrich Drepper <drepper@redhat.com>
5494 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5496 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5498 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5500 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5502 * sysdeps/s390/dl-procinfo.c: New file.
5503 * sysdeps/s390/dl-procinfo.h: New file.
5504 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5506 2007-06-29 Jakub Jelinek <jakub@redhat.com>
5508 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5509 in PT_NOTE segments with multiple notes.
5510 * elf/readelflib.c (process_elf_file): Likewise.
5512 2007-06-22 Ulrich Drepper <drepper@redhat.com>
5514 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5517 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5519 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5521 2007-06-13 Jakub Jelinek <jakub@redhat.com>
5523 * include/link.h: Don't include rtld-lowlevel.h.
5524 (struct link_map): Remove l_scope_lock.
5525 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5526 (_dl_scope_free_list): New field (variable) in _rtld_global.
5527 (DL_LOOKUP_SCOPE_LOCK): Remove.
5528 (_dl_scope_free): New prototype.
5529 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5530 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5531 (_dl_profile_fixup): Likewise.
5532 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5533 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5534 THREAD_GSCOPE_RESET_FLAG around it.
5535 * elf/dl-close.c (_dl_close_worker): Don't use
5536 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5537 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5538 scopes were queued or if l_scope_mem has been abandoned.
5539 * elf/dl-open.c (_dl_scope_free): New function.
5540 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5541 * elf/dl-support.c (_dl_scope_free_list): New variable.
5542 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5543 Remove DL_LOOKUP_SCOPE_LOCK handling.
5544 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5546 * elf/dl-object.c (_dl_new_object): Don't use
5547 __rtld_mrlock_initialize.
5549 2007-06-19 Ulrich Drepper <drepper@redhat.com>
5551 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5553 (rtld_global_ro): Likewise.
5555 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5557 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5558 Move PT_LOAD checking to...
5559 (_dl_addr_inside_object): ... here, new function.
5560 * elf/dl-sym.c (do_sym): If not l_contiguous,
5561 call _dl_addr_inside_object.
5562 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5563 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5564 * elf/dl-open.c (dl_open_worker): Likewise.
5565 (_dl_addr_inside_object): New function if IS_IN_rtld.
5566 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5567 holes are present or are PROT_NONE protected.
5568 * include/link.h (struct link_map): Add l_contiguous field.
5569 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5571 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5572 Tomas Janousek <tjanouse@redhat.com>
5573 Ulrich Drepper <drepper@redhat.com>
5576 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5577 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5579 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5580 unused member a bitmap.
5581 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5582 servers are configured.
5584 2007-06-18 Jakub Jelinek <jakub@redhat.com>
5586 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5588 2007-06-17 Andreas Schwab <schwab@suse.de>
5590 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5592 2007-06-16 Andreas Jaeger <aj@suse.de>
5595 * sysdeps/unix/sysv/linux/sys/ptrace.h
5596 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5597 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5598 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5599 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5600 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5602 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5603 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5604 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5605 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5607 2007-06-16 Ulrich Drepper <drepper@redhat.com>
5610 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5611 determining whether there are IPv4/IPv6 addresses, ignore loopback
5614 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5616 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5617 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5618 as the return type. Change type of "r" variable to CMPtype.
5619 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5620 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5621 * soft-fp/gedf2.c (__gedf2): Likewise.
5622 * soft-fp/gesf2.c (__gesf2): Likewise.
5623 * soft-fp/getf2.c (__getf2): Likewise.
5624 * soft-fp/ledf2.c (__ledf2): Likewise.
5625 * soft-fp/lesf2.c (__lesf2): Likewise.
5626 * soft-fp/letf2.c (__letf2): Likewise.
5627 * soft-fp/unorddf2 (__unorddf2): Likewise.
5628 * soft-fp/unordsf2 (__unordsf2): Likewise.
5629 * soft-fp/unordtf2 (__unordtf2): Likewise.
5631 2007-06-09 Ulrich Drepper <drepper@redhat.com>
5633 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5634 make sure gcc doesn't mess around with this.
5636 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5638 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5640 2007-06-08 Jakub Jelinek <jakub@redhat.com>
5642 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5643 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5644 at most once per _dl_close_worker.
5646 2007-06-08 Ulrich Drepper <drepper@redhat.com>
5648 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5649 __sched_cpucount as const.
5650 * posix/sched_cpucount.c: Adjust.
5652 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5653 instruction for counting bits.
5654 * sysdeps/x86_64/sched_cpucount.c: New file.
5656 2007-06-07 Ulrich Drepper <drepper@redhat.com>
5658 * configure.in: Avoid variable named BASH.
5659 * config.make.in: Likewise.
5660 Patch in part by Mike Frysinger.
5662 2007-06-06 Jakub Jelinek <jakub@redhat.com>
5665 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5666 pseudo-zeros as zero.
5667 * sysdeps/x86_64/ldbl2mpn.c: New file.
5668 * sysdeps/ia64/ldbl2mpn.c: New file.
5670 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5672 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5673 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5674 Remove unreachable code at the end.
5676 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5678 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5679 ldbl-128ibm in comment.
5680 (fpclassifyl): Correct classification of denormals.
5681 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5682 return value for MIN denormal. Rewrite using long double math too
5683 correctly handle denormals and canonicalize the results.
5685 2007-06-05 Jakub Jelinek <jakub@redhat.com>
5687 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5688 (__mpn_construct_long_double): Fix conversion where result ought
5689 to be smaller than __LDBL_MIN__, or the low double should be
5690 denormal. Fix decision where to negate low double - honor round
5692 * stdio-common/tst-sprintf2.c: Include string.h.
5693 (COMPARE_LDBL): Define.
5694 (TEST): Also test whether a string hexadecimal float representation
5695 can be parsed back to the number.
5696 (main): Add a couple of further tests.
5698 2007-06-04 Jakub Jelinek <jakub@redhat.com>
5700 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5701 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5702 is non-zero, but smaller than 2 * __DBL_MIN__.
5703 * stdio-common/tst-sprintf2.c: New test.
5704 * stdio-common/Makefile (tests): Add tst-sprintf2.
5706 * math/test-misc.c (main): Don't run last batch of tests with
5707 IBM long double format.
5709 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5711 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5712 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5713 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5714 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5715 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5716 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5717 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5718 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5719 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5720 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5726 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5728 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5744 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5746 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5747 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5748 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5749 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5750 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5751 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5752 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5753 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5755 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5757 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5758 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5759 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5760 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5761 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5762 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5763 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5764 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5766 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5768 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5769 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5770 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5771 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5773 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5775 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5776 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5778 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5780 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5781 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5782 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5783 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5785 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5787 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5788 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5790 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5792 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5793 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5795 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5796 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5797 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5798 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5800 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5802 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5803 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5804 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5805 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5807 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5809 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5810 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5811 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5812 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5813 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5814 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5816 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5818 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5819 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5820 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5821 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5823 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5825 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5826 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5827 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5828 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5829 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5830 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5831 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5832 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5833 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5834 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5835 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5836 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5837 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5838 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5839 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5840 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5842 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5844 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5845 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5847 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5849 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5850 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5852 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5854 * sysdeps/powerpc/powerpc32/970/Implies: New file.
5855 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5856 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5857 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5858 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5859 * sysdeps/powerpc/powerpc64/970/Implies: New file.
5860 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5861 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5862 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5863 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5865 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5867 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5869 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
5871 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5872 branch miss-predicts. Ensure that cache line crossing does not impact
5875 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
5877 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5878 "../../powerpc32/power4/memcopy.h".
5879 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5880 "../../powerpc32/power4/wordcopy.c".
5882 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5884 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5885 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5886 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5887 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5888 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5889 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5891 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
5893 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5895 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5897 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5898 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5899 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5900 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5901 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5902 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5903 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5904 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5906 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
5908 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5910 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5912 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5913 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5914 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5915 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5916 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5917 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5918 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5920 2007-05-29 Roland McGrath <roland@redhat.com>
5922 * po/Makefile (po-sed-cmd): New variable.
5923 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5925 2007-05-29 Ulrich Drepper <drepper@redhat.com>
5927 * crypt/md5-crypt.c: Fix comment.
5929 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5930 of crashing. When this is the case or if the reply is malformed,
5931 don't try to close the new file descriptor since it does not
5933 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
5935 2007-05-28 Jakub Jelinek <jakub@redhat.com>
5937 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
5938 if __NR_utimensat is not defined.
5940 2007-05-26 Ulrich Drepper <drepper@redhat.com>
5942 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
5944 2007-05-25 Jakub Jelinek <jakub@redhat.com>
5946 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
5947 (open): Fix comment typos. Don't call __open_2 if flags
5948 is a compile time constant without O_CREAT.
5949 (__open64_2): Add nonnull attribute.
5950 (open64): Fix comment typos. Don't call __open64_2 if flags
5951 is a compile time constant without O_CREAT.
5952 (__openat_2): Add nonnull attribute, fix nonnull attribute
5954 (openat): Fix comment typos. Don't call __openat_2 if flags
5955 is a compile time constant without O_CREAT.
5956 (__openat64_2): Add nonnull attribute, fix nonnull attribute
5958 (openat64): Fix comment typos. Don't call __openat64_2 if flags
5959 is a compile time constant without O_CREAT.
5961 2007-05-24 Ulrich Drepper <drepper@redhat.com>
5963 * Makerules (sysd-rules): Define PTW for ptw-* files.
5964 * Versions: Define GLIBC_2.7 for libc.
5965 * include/stdio.h: Declare __fortify_fail.
5966 * debug/fortify_fail.c: New file.
5967 * debug/Makefile (routines): Add fortify_fail.
5968 * debug/chk_fail.c: Use __fortify_fail.
5969 * debug/stack_chk_fail.c: Likewise.
5970 * io/Versions: Export __open_2, __open64_2, __openat_2, and
5971 __openat64_2 for GLIBC_2.7.
5972 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
5973 * io/open.c: Define *_2 variant of function which checks for O_CREAT
5974 and fails if necessary.
5975 * io/open64.c: Likewise.
5976 * io/openat.c: Likewise.
5977 * io/openat64.c: Likewise.
5978 * sysdeps/unix/sysv/linux/open64.c: Likewise.
5979 * sysdeps/unix/sysv/linux/openat.c: Likewise.
5980 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
5981 * io/bits/fcntl2.h: New file.
5982 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
5984 * include/bits/fcntl2.h: New file.
5985 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5987 * sysdeps/unix/sysv/linux/open_2.c: New file.
5989 2007-05-21 Ulrich Drepper <drepper@redhat.com>
5991 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
5992 as second parameter to handle_intel.
5994 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
5997 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
5999 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
6000 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6002 * sysdeps/x86_64/memcpy.S: Complete rewrite.
6003 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6004 Patch by Evandro Menezes <evandro.menezes@amd.com>.
6006 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6008 2007-05-21 Jakub Jelinek <jakub@redhat.com>
6011 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6012 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6013 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6015 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6018 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6019 reinitialize workend at the start of each do_positional format spec
6020 loop, free workstart before do_positional loops.
6021 (printf_unknown): Fix size of work_buffer.
6022 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6024 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6025 (public_sET_STATe): If ms->version < 3, put all chunks into
6026 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6029 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6030 * malloc/hooks.c: Likewise.
6031 * malloc/arena.c: Likewise.
6032 * malloc/malloc.c (do_check_malloc_state): Don't assert
6033 n_mmaps is not greater than n_mmaps_max. This removes the need
6034 for the previous change.
6036 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6039 2007-05-19 Ulrich Drepper <drepper@redhat.com>
6041 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6042 Define for kernel >= 2.6.22.
6044 2007-05-18 Ulrich Drepper <drepper@redhat.com>
6046 * elf/dl-close.c (_dl_close_worker): When removing object from
6047 global scope, wait for all lookups to finish afterwards.
6048 * elf/dl-open.c (add_to_global): When global scope array must
6049 grow, allocate a new one and free old array only after all
6051 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6052 (_dl_lookup_symbol_x): Likewise.
6053 * elf/dl-support.c: Define _dl_wait_lookup_done.
6054 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6055 _dl_wait_lookup_done.
6057 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6058 not overlapping with arena.
6060 * malloc/mcheck.c (reallochook): If size==0, free the block.
6062 * rt/tst-shm.c: Use fstat64 instead of fstat.
6064 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6065 __NR_sync_file_range is not defined.
6067 2007-05-17 Ulrich Drepper <drepper@redhat.com>
6069 Dummy files to prevent stub versions from being used.
6070 * sysdeps/x86_64/fpu/k_cosl.c: New file.
6071 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6072 * sysdeps/x86_64/fpu/k_sinl.c: New file.
6073 * sysdeps/x86_64/fpu/k_tanl.c: New file.
6075 * version.h (VERSION): Set to 2.6.90.
6077 2007-05-14 Ulrich Drepper <drepper@redhat.com>
6079 * version.h (VERSION): Define to 2.6.
6080 * include/features.h (__GLIBC_MINOR__): Define to 6.
6082 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6084 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6087 2007-05-13 Ulrich Drepper <drepper@redhat.com>
6089 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6090 number of mmaps. n_mmaps_max is the target.
6091 * malloc/hooks.c: Likewise.
6092 * malloc/arena.c: Likewise.
6094 2007-05-12 Andreas Jaeger <aj@suse.de>
6096 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6099 2007-05-11 Ulrich Drepper <drepper@redhat.com>
6101 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6102 adding new variables.
6104 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6105 optimize. Completely extend global scope array before making the
6106 new entries visible.
6108 2007-05-10 Ulrich Drepper <drepper@redhat.com>
6110 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6111 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6114 * include/link.h: Move l_version and l_nversion members around to
6117 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6119 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6120 (__sched_setaffinity_new): If syscall was successful and
6121 RESET_VGETCPU_CACHE is defined, use it before returning.
6122 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6124 * io/sys/stat.h: Make sure struct timespec is defined for
6127 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6129 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6130 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6131 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6132 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6133 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6134 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6135 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6136 * io/sys/stat.h: Declare utimensat, futimens.
6137 * io/utimensat.c: New file.
6138 * io/futimens.c: New file.
6139 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6140 * sysdeps/unix/sysv/linux/futimens.c: New file.
6141 * io/Makefile (routines): Add utimensat, futimens.
6142 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6143 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6144 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6147 * include/sys/cdefs.h: Redefine __nonnull so that test for
6148 incorrect parameters in the libc code itself are not omitted.
6150 2007-05-09 Jakub Jelinek <jakub@redhat.com>
6152 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6153 exception in addition to inexact when asked to raise only FE_INEXACT.
6156 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6159 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6162 * string/strfry.c (strfry): Make result more random.
6164 2007-05-07 Richard Henderson <rth@redhat.com>
6166 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6167 if __NO_LONG_DOUBLE_MATH.
6168 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6169 available in the compiler, add .arch directive to the assembly.
6171 2007-05-07 Jakub Jelinek <jakub@redhat.com>
6173 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6174 compat_symbol to GLIBC_2_1.
6175 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6176 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6177 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6178 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6179 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6180 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6181 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6183 (__isnanl): New compat_symbol.
6185 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6186 Jakub Jelinek <jakub@redhat.com>
6188 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6189 (new_heap): Initialize mprotect_size.
6190 (grow_heap): When growing, only mprotect from mprotect_size till
6191 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
6192 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6194 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
6195 Peter Bergner <bergner@us.ibm.com>
6197 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6198 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
6199 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6200 * sysdeps/powerpc/fpu/fe_mask.c: New file.
6201 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6202 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6203 Call __fe_mask_env() if all FP exceptions disabled.
6204 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6205 from old FPSCR to new fenv to propagate DFP rounding modes.
6206 Call __fe_mask_env() if FP exceptions previously enabled.
6207 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6208 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6209 transitioning from all exceptions disabled to any exception enabled
6211 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6212 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6213 when transitioning from all exceptions disabled to any exception
6214 enabled or visa versa.
6215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6222 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6225 * posix/unistd.h: Remove __THROW from fdatasync.
6227 2007-05-06 Mike Frysinger <vapier@gentoo.org>
6230 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6232 2007-05-06 Ulrich Drepper <drepper@redhat.com>
6234 * stdio-common/vfprintf.c (process_string_arg): Optimize
6235 ridiculous precision in wide char code printing multi-byte string.
6236 Reported by Jim Meyering <jim@meyering.net>.
6239 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6240 boundaries to work around systems with overlapping binary loading.
6241 Based on a patch by Suzuki <suzuki@in.ibm.com>.
6243 2007-05-04 Ulrich Drepper <drepper@redhat.com>
6245 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6246 __mbsnrtowcs after last change.
6248 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6249 (get_ident): Likewise.
6251 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6253 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6254 with setting the sticky bit.
6255 * math/test-misc.c (main): Add more truncation tests.
6257 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
6259 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6260 double in the function declaration.
6261 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6262 double in the function declaration.
6263 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6264 float in the function declaration.
6265 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6266 float in the function declaration.
6268 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6269 denormal operands. Do not generate FP_EX_DENORM exception.
6270 (FP_UNPACK_RAW_EP): Ditto.
6271 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6272 undefined _FP_UNPACK_RAW_E.
6273 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6274 undefined _FP_UNPACK_RAW_EP.
6275 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6276 undefined _FP_PACK_RAW_E.
6277 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6278 undefined _FP_PACK_RAW_EP.
6280 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6282 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6285 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
6286 Jakub Jelinek <jakub@redhat.com>
6288 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6289 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
6291 * soft-fp/op-common.h (FP_TRUNC): Ditto.
6293 2007-05-03 Jakub Jelinek <jakub@redhat.com>
6295 * math/test-misc.c (main): Add tests for rounding long double
6296 values close to smallest double denormalized value to double.
6298 2007-04-30 Joseph Myers <joseph@codesourcery.com>
6300 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6301 condition for truncating to 0. Set sticky bit for such
6304 2007-05-02 Jakub Jelinek <jakub@redhat.com>
6306 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6307 fixed length array for ignore.
6309 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6312 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6313 stack for large precisions.
6314 * stdio-common/test-vfprintf.c (main): Add test for large
6317 2007-04-30 Jakub Jelinek <jakub@redhat.com>
6319 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6321 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6324 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6325 account in the size check.
6326 * resolv/tst-inet_ntop.c: New test.
6327 * resolv/Makefile (tests): Add tst-inet_ntop.
6329 2007-04-30 Ulrich Drepper <drepper@redhat.com>
6330 Jakub Jelinek <jakub@redhat.com>
6333 * malloc/malloc.c: Keep separate list for first blocks on the bin
6334 lists with a given size. This helps skipping over list elements
6335 we know won't fit in two places.
6336 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6338 2007-04-28 Ulrich Drepper <drepper@redhat.com>
6341 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6342 label to Teredo tunnel addresses 2001://32.
6344 2007-04-27 Ulrich Drepper <drepper@redhat.com>
6346 * locale/programs/ld-collate.c (collate_read): Allow order_start
6349 * locale/programs/ld-collate.c (collate_read): Fix printing of
6353 * locale/C-translit.h.in: Add entry for U2044.
6356 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6357 hexa-decimal floats without exponent.
6358 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6360 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6362 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6363 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6364 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6365 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6367 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6370 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6372 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6373 of 0 after the out_fail label.
6375 2007-04-25 Ulrich Drepper <drepper@redhat.com>
6378 * iconv/gconv_charset.h (strip): Allow ':'.
6379 * iconv/iconv_open.c (iconv_open): Adjust comment.
6381 2007-04-25 Jakub Jelinek <jakub@redhat.com>
6383 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6386 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6389 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6390 alignment of buffer and tmp_buffer.
6391 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6392 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6393 alignment of buffer.
6394 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6395 bigger than INT_MAX.
6396 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6397 h_errnop arguments. Fail if buflen is too small.
6398 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6400 2007-04-23 Jakub Jelinek <jakub@redhat.com>
6403 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6404 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6406 2007-04-22 Roland McGrath <roland@redhat.com>
6408 * elf/elf.h (NT_PRXFPREG): New macro.
6410 2007-04-19 Andreas Jaeger <aj@suse.de>
6413 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6414 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6417 2007-04-19 Ulrich Drepper <drepper@redhat.com>
6419 * include/sys/mman.h: Mark madvise hidden.
6420 * misc/madvise.c: Add libc_hidden_def.
6422 2007-04-06 Jakub Jelinek <jakub@redhat.com>
6424 * nis/nis_domain_of.c (__nis_domain_of): New function.
6425 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6426 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6427 * nis/nis_call.c (rec_dirsearch): Likewise.
6428 (first_shoot): Likewise. Remove search_parent_first argument.
6429 (struct nis_server_cache): Rename search_parent_first field
6431 (nis_server_cache_search, nis_server_cache_add): Rename
6432 search_parent_first argument to search_parent.
6433 (__nisfind_server): Likewise. If search_parent, call
6436 2007-04-18 Ulrich Drepper <drepper@redhat.com>
6438 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6440 2007-04-17 Ulrich Drepper <drepper@redhat.com>
6443 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6445 2007-04-16 Ulrich Drepper <drepper@redhat.com>
6448 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6450 2007-04-15 Jakub Jelinek <jakub@redhat.com>
6452 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6453 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6454 current number of locales in SUPPORTED.
6455 (create_archive): Initialize serial.
6456 (enlarge_archive): Preserve aliases rather than duplicating
6459 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6461 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6462 after _IO_un_link, not before it.
6464 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6465 special case handling when wcp == wstartp + 1. Fix a comment typo.
6466 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6468 2007-03-30 Jakub Jelinek <jakub@redhat.com>
6470 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6471 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6472 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6474 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6475 _IO_file_xsgetn_maybe_mmap): Likewise.
6476 * libio/oldfileops.c (old_do_write): Likewise.
6477 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6478 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6479 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6480 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6481 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6482 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6483 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6484 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6485 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6486 _IO_file_underflow, _IO_file_underflow_mmap,
6487 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6488 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6489 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6490 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6491 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6492 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6493 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6494 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6495 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6496 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6497 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6498 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6499 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6500 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6501 _IO_adjust_column_internal, _IO_default_uflow_internal,
6502 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6503 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6504 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6505 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6506 _IO_file_close_it_internal, _IO_file_underflow_internal,
6507 _IO_file_overflow_internal, _IO_file_attach_internal,
6508 _IO_file_fopen_internal, _IO_file_sync_internal,
6509 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6510 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6511 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6512 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6513 _IO_seekpos_unlocked): Likewise.
6514 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6515 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6517 2007-04-16 Jakub Jelinek <jakub@redhat.com>
6519 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6520 argument in xmalloc size computation.
6522 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6524 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6525 math_opt_barrier and math_force_eval macros.
6527 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6530 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6531 * sysdeps/i386/fpu/math_private.h: New file.
6532 * sysdeps/x86_64/fpu/math_private.h: New file.
6533 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6534 math_force_eval macros. Use "+m" constraint on asm rather than
6536 * math/s_nextafter.c (__nextafter): Likewise.
6537 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6539 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6540 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6541 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6542 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6543 math_opt_barrier and math_force_eval macros.
6544 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6545 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6546 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6547 (__nexttoward): Use math_opt_barrier and
6548 math_force_eval macros. Use "+m" constraint on asm rather than
6549 "=m" and "m". Only use asm to force double result if
6550 FLT_EVAL_METHOD is 2.
6551 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6552 (__nexttowardf): Use math_opt_barrier and
6553 math_force_eval macros. Use "+m" constraint on asm rather than
6554 "=m" and "m". Only use asm to force double result if
6555 FLT_EVAL_METHOD is not 0.
6556 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6557 (__nexttowardf): Use math_opt_barrier and
6558 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6559 x to float using asm.
6560 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6561 (__nldbl_nexttowardf): Use math_opt_barrier and
6562 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6563 x to float using asm.
6564 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6565 (__nexttowardf): Use math_opt_barrier and math_force_eval
6566 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6567 * math/bug-nextafter.c (zero, inf): New variables.
6568 (main): Add new tests.
6569 * math/bug-nexttoward.c (zero, inf): New variables.
6570 (main): Add new tests.
6572 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6575 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6576 exceptions both in SW and MXCSR.
6577 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6578 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6579 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6580 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6581 in MXCSR if SSE is available.
6582 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6584 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6586 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6587 Return 0 rather than 1.
6588 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6589 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6590 * math/test-fenv.c (feholdexcept_tests): New function.
6593 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6596 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6599 2007-04-13 Jakub Jelinek <jakub@redhat.com>
6602 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6603 Reported by David Anderson <davea42@earthlink.net>.
6605 2007-04-07 Ulrich Drepper <drepper@redhat.com>
6607 * posix/sys/wait.h: Remove unnecessary forward declaration.
6609 2007-04-05 Jakub Jelinek <jakub@redhat.com>
6611 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6612 with obj->do_servers after first_shoot.
6614 2007-04-03 Ulrich Drepper <drepper@redhat.com>
6616 * posix/Makefile (routines): Add sched_cpucount.
6617 (tests): Add tst-cpucount.
6618 * posix/sched_cpucount.c: New file.
6619 * posix/tst-cpucount.c: New file.
6620 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6621 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6622 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6623 * posix/sched.h: Define CPU_COUNT.
6625 2007-03-27 Jakub Jelinek <jakub@redhat.com>
6627 * posix/fnmatch.c (STRUCT): Define.
6628 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6629 * posix/fnmatch_loop.c (struct STRUCT): New type.
6630 (FCT): Add ends argument. If ends != NULL and normal * is
6631 seen in the pattern, store current pattern and string pointers
6632 and return. Adjust recursive calls.
6633 (EXT): Adjust FCT callers.
6634 (STRUCT): Undef at the end of the file.
6635 * posix/Makefile (tests): Add tst-fnmatch2.
6636 * posix/tst-fnmatch2.c: New test.
6638 2007-04-01 Jakub Jelinek <jakub@redhat.com>
6640 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6643 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6644 Change last argument to unsigned int.
6646 2007-03-23 Jakub Jelinek <jakub@redhat.com>
6648 * scripts/check-local-headers.sh: Filter out sys/capability.h.
6650 2007-03-22 Jakub Jelinek <jakub@redhat.com>
6652 * config.h.in (HAVE_LIBCAP): Add.
6653 * nscd/selinux.h: Include sys/capability.h rather than non-existent
6655 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6656 free_caps. Cast away const from 4th cap_set_flag argument.
6658 2007-03-26 Ulrich Drepper <drepper@redhat.com>
6660 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6662 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6663 Add sync_file_range.
6664 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6666 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
6668 * sysdeps/powerpc/bits/atomic.h
6669 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6670 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6671 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6672 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6673 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6674 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6675 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6676 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6677 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6678 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6679 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6680 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6681 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6682 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6683 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6684 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6685 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6686 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6687 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6688 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6690 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6692 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6693 (__cache_line_size): Define the variable here. Add
6694 attribute_hidden, remove weak_extern.
6695 (__libc_start_main): Set __cache_line_size
6697 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6698 (__cache_line_size): Define the variable here. Add
6699 attribute_hidden, remove weak_extern.
6700 (DL_PLATFORM_AUXV): Set __cache_line_size
6702 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6703 weak_extern, add attribute_hidden.
6704 (__elf_machine_runtime_setup): Assume __cache_line_size is always
6706 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6708 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6710 2007-03-26 Jakub Jelinek <jakub@redhat.com>
6713 * timezone/africa: Update from tzdata2007d.
6714 * timezone/asia: Likewise.
6715 * timezone/australasia: Likewise.
6716 * timezone/backward: Likewise.
6717 * timezone/europe: Likewise.
6718 * timezone/iso3166.tab: Likewise.
6719 * timezone/leapseconds: Likewise.
6720 * timezone/northamerica: Likewise.
6721 * timezone/southamerica: Likewise.
6722 * timezone/zone.tab: Likewise.
6724 * timezone/private.h: Update from tzcode2007d.
6725 * timezone/zdump.c: Likewise.
6726 * timezone/zic.c: Likewise.
6728 2007-03-21 Jakub Jelinek <jakub@redhat.com>
6730 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6731 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6733 (nis_server_cache_search, nis_server_cache_add): New functions.
6734 (__nisfind_server): Use them. Add dbp and flags argument, if
6735 call __nisbind_create.
6736 (__nisbind_create): Add server_used and current_ep arguments,
6737 only call __nis_findfastest if server_used is ~0.
6738 (__do_niscall2, __prepare_niscall): Adjust callers.
6739 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6740 ckey_cache_euid, ckey_cache_lock): New variables.
6741 (get_ckey): New function.
6742 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6743 __pmap_getnisport. Save __pmap_getnisport result in
6744 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6746 * nis/nis_lookup.c (nis_lookup): Likewise.
6747 * nis/nis_table.c (nis_list): Likewise.
6748 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6751 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6752 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6753 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6754 _nss_nisplus_getservbyport_r): Likewise.
6755 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6756 _nss_nisplus_getnetbyaddr_r): Likewise.
6757 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6758 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6759 _nss_nisplus_getntohost_r): Likewise.
6760 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6761 _nss_nisplus_getrpcbynumber_r): Likewise.
6763 2007-03-20 Jakub Jelinek <jakub@redhat.com>
6765 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6766 * configure: Rebuilt.
6768 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6770 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6772 2006-06-07 Joseph Myers <joseph@codesourcery.com>
6775 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6778 2007-03-18 Jakub Jelinek <jakub@redhat.com>
6780 * nscd/gai.c: Include alloca.h.
6781 (__libc_use_alloca): Define.
6783 2007-03-16 Jakub Jelinek <jakub@redhat.com>
6785 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6787 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6788 (DL_DST_REQUIRED): Adjust user.
6790 * include/dlfcn.h (struct link_map): New forward decl.
6792 * inet/getnameinfo.c: Include stddef.h.
6793 (getnameinfo): Use offsetof.
6795 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6797 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6799 * string/strerror_l.c: Include stdlib.h.
6801 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6802 * config.make.in (gnu89-inline-CFLAGS): New variable.
6803 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6805 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6806 * argp/argp.h: Use it.
6807 * bits/mathinline.h: Likewise.
6808 * bits/sigset.h: Likewise.
6809 * bits/string.h: Likewise.
6810 * ctype/ctype.h: Likewise.
6811 * hurd/hurd.h: Likewise.
6812 * hurd/hurd/fd.h: Likewise.
6813 * hurd/hurd/port.h: Likewise.
6814 * hurd/hurd/signal.h: Likewise.
6815 * hurd/hurd/threadvar.h: Likewise.
6816 * hurd/hurd/userlink.h: Likewise.
6817 * io/sys/stat.h: Likewise.
6818 * libio/bits/stdio.h: Likewise.
6819 * libio/bits/stdio2.h: Likewise.
6820 * mach/lock-intern.h: Likewise.
6821 * mach/mach/mig_support.h: Likewise.
6822 * math/bits/cmathcalls.h: Likewise.
6823 * posix/bits/unistd.h: Likewise.
6824 * socket/bits/socket2.h: Likewise.
6825 * stdlib/bits/stdlib.h: Likewise.
6826 * stdlib/stdlib.h: Likewise.
6827 * string/argz.h: Likewise.
6828 * string/bits/string2.h: Likewise.
6829 * string/bits/string3.h: Likewise.
6830 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6831 * sysdeps/generic/inttypes.h: Likewise.
6832 * sysdeps/generic/machine-lock.h: Likewise.
6833 * sysdeps/generic/machine-sp.h: Likewise.
6834 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6835 * sysdeps/i386/i486/bits/string.h: Likewise.
6836 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6837 * sysdeps/mach/alpha/machine-lock.h: Likewise.
6838 * sysdeps/mach/alpha/machine-sp.h: Likewise.
6839 * sysdeps/mach/i386/machine-lock.h: Likewise.
6840 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6841 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6842 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6843 * sysdeps/s390/bits/string.h: Likewise.
6844 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6845 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6846 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6847 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6848 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6849 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6850 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6851 * wcsmbs/bits/wchar2.h: Likewise.
6852 * wcsmbs/wchar.h: Likewise.
6853 * stdlib/gmp.h: Likewise. Include <features.h> to get
6854 __extern_inline definition.
6856 2007-03-15 Jakub Jelinek <jakub@redhat.com>
6858 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6862 * math/libm-test.inc (log_test): Test -Inf and NaN.
6863 (log10_test, log1p_test, log2_test): Test -Inf.
6864 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6865 FE_INVALID when argument is qNaN.
6866 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6867 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6868 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6869 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6870 andb $1, %ah with testb $1, %ah, don't test for parity, instead
6871 testb $4, %ah and jump if non-zero.
6872 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6873 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6876 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6877 ancestors with the same depths.
6878 Patch by Niels Moeller <nisse@lysator.liu.se>.
6879 (filter_doc): Don't crash if argp is NULL.
6880 * argp/Makefile (tests): Add tst-argp2.
6881 * argp/tst-argp2.c: New test.
6884 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6886 (updwtmp_file): Likewise.
6889 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6890 (inet6_opt_append): Don't check extlen is big enough if extbuf
6892 (inet6_opt_finish): Likewise.
6893 * inet/Makefile (tests): Add test-inet6_opt.
6894 * inet/test-inet6_opt.c: New test.
6896 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6897 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6898 NLMSG_ERR. Instead use a page sized buffer.
6899 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6902 2007-03-14 Richard Henderson <rth@redhat.com>
6904 * sysdeps/alpha/fpu/s_llround.c: New file.
6905 * sysdeps/alpha/fpu/s_llroundf.c: New file.
6906 * sysdeps/alpha/fpu/s_lround.c: New file.
6907 * sysdeps/alpha/fpu/s_lroundf.c: New file.
6908 * sysdeps/alpha/fpu/s_round.c: New file.
6909 * sysdeps/alpha/fpu/s_roundf.c: New file.
6910 * sysdeps/alpha/fpu/s_trunc.c: New file.
6911 * sysdeps/alpha/fpu/s_truncf.c: New file.
6913 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6914 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6915 * sysdeps/alpha/fpu/s_floor.c: Likewise.
6916 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6917 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6918 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6920 * sysdeps/alpha/fpu/s_fmax.S: New file.
6921 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6922 * sysdeps/alpha/fpu/s_fmin.S: New file.
6923 * sysdeps/alpha/fpu/s_fminf.S: New file.
6924 * sysdeps/alpha/fpu/s_isnan.c: New file.
6925 * sysdeps/alpha/fpu/s_isnanf.c: New file.
6926 * sysdeps/alpha/fpu/s_llrint.c: New file.
6927 * sysdeps/alpha/fpu/s_llrintf.c: New file.
6928 * sysdeps/alpha/fpu/s_lrint.c: New file.
6929 * sysdeps/alpha/fpu/s_lrintf.c: New file.
6930 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6931 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
6933 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
6934 (__fdimf, fdimf, __fdim, fdim): Remove.
6935 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
6936 (__isnanf, __isnan, __isnanl): New.
6938 2007-03-13 Richard Henderson <rth@redhat.com>
6940 * sysdeps/ieee754/ldbl-128/Makefile: New file.
6942 2007-03-13 Richard Henderson <rth@redhat.com>
6944 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
6945 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
6946 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
6947 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
6948 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
6949 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
6951 2007-03-13 Richard Henderson <rth@redhat.com>
6953 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
6954 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
6955 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
6956 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
6957 Move to dl-auxv.h; initialize instead of extern weak.
6958 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
6960 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
6961 Extern instead of initialized.
6963 2007-03-13 Richard Henderson <rth@redhat.com>
6965 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
6966 __sigsuspend_nocancel.
6968 2007-03-06 Ulrich Drepper <drepper@redhat.com>
6970 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
6971 172.16/12 address range.
6973 2007-03-02 Jakub Jelinek <jakub@redhat.com>
6975 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
6976 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
6979 2007-03-01 Jakub Jelinek <jakub@redhat.com>
6982 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
6984 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
6986 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
6987 for x qNaN and y either +-inf or non-integer value.
6988 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
6989 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6990 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6992 2007-02-10 Mike Frysinger <vapier@gentoo.org>
6994 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
6995 from sysdep_headers.
6997 2007-02-28 Jakub Jelinek <jakub@redhat.com>
6999 * time/tzfile.c (find_transition): Instead of a linear search try to
7000 guess the transition index, use a linear search if the result is at
7001 most 10 transitions away from the guess or binary search otherwise.
7003 2007-02-27 Jakub Jelinek <jakub@redhat.com>
7005 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7006 memory reallocation.
7008 2007-02-21 Ulrich Drepper <drepper@redhat.com>
7010 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7012 Optimize use of TOLOWER.
7015 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7016 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7017 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7020 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7021 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7024 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7025 (open_dir_stream): Likewise.
7026 * io/Makefile (tests): Add bug-ftw5.
7027 * io/bug-ftw5.c: New file.
7029 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7030 * nscd/servicescache.c (cache_addserv): Likewise.
7032 * nscd/grpcache.c (cache_addgr): In case a record changed on
7033 refresh, adjust key_copy.
7036 * nscd/pwdcache.c (cache_addpw): In case a record changed on
7037 refresh, adjust key_copy.
7040 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7042 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7044 2007-02-19 Ulrich Drepper <drepper@redhat.com>
7046 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7049 * stdio-common/vfscanf.c: Small cleanups throughout.
7051 2007-02-18 Ulrich Drepper <drepper@redhat.com>
7054 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7055 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7056 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7057 Patch by Jared Casper <jaredcasper@gmail.com>.
7059 * sysdeps/unix/closedir.c: Outside libc don't use locking.
7060 * sysdeps/unix/opendir.c: Likewise.
7061 * sysdeps/unix/readdir.c: Likewise.
7064 * stdio-common/vfscanf.c: Handle localized digits etc for floating
7066 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7068 * stdio-common/vfscanf.c: Fix problems in width accounting.
7069 * stdio-common/tst-sscanf.c (double_tests): New tests.
7070 (main): Hook them up.
7072 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7073 More simplifications of floating-point reader.
7075 * stdio-common/Makefile (tests): Add tst-swscanf.
7076 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7078 * stdio-common/tst-swscanf.c: New file.
7080 2007-02-17 Ulrich Drepper <drepper@redhat.com>
7083 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7084 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7085 Remove using for __jmp_buf_tag.
7086 * locale/locale.h (struct lconv): Also define in std namespace.
7087 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7090 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7091 using __libc_enable_secure.
7094 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7097 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7098 of names for ellipsises.
7101 * malloc/memusage.sh: Cleanups.
7102 * debug/xtrace.sh: Quoting and trap changes.
7104 2007-02-16 Ulrich Drepper <drepper@redhat.com>
7106 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7108 * locale/iso-3166.def: Update entry for Serbia.
7109 * locale/iso-4217.def: Define RSD, remove CSD.
7111 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7112 and 64-bit operations.
7115 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7118 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7121 2007-02-15 Ulrich Drepper <drepper@redhat.com>
7124 * assert/assert.h (assert): Simplify.
7125 (assert_perror): Likewise.
7126 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7128 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7131 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7132 change: don't pass NULL in place of an integer.
7134 2007-02-02 Bruno Haible <bruno@clisp.org>
7137 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7138 Add mapping for U+327E.
7139 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7140 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7141 mapping of 0xD9 0xE8.
7142 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7144 Reported by Jungshik Shin <jungshik@google.com>.
7147 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7148 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7149 Reported by Jungshik Shin <jungshik@google.com>.
7151 2007-02-14 Ulrich Drepper <drepper@redhat.com>
7153 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7157 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7158 byte variants. Patch mostly be tom@tommay.net.
7160 2007-02-14 Jakub Jelinek <jakub@redhat.com>
7163 * posix/glob.c (attribute_hidden): Define if not defined.
7164 (glob): Unescape dirname, filename or username when needed and not
7165 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7166 is NULL. Handle unescaped [ in pattern without closing ].
7167 Don't pass GLOB_CHECK down to recursive glob for directories.
7168 (__glob_pattern_type): New function.
7169 (__glob_pattern_p): Implement using __glob_pattern_type.
7170 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7171 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7172 Remove unreachable code.
7173 * posix/globtest.sh: Add a couple of new tests.
7175 2007-02-13 Ulrich Drepper <drepper@redhat.com>
7177 * po/ru.po: Update from translation team.
7179 2007-02-12 Jakub Jelinek <jakub@redhat.com>
7181 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7182 to the list of i486+ CPUs.
7183 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7185 2007-02-12 Ulrich Drepper <drepper@redhat.com>
7187 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7188 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7191 2007-02-09 Ulrich Drepper <drepper@redhat.com>
7193 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7195 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7196 * resolv/res_mkquery.c: Define __res_nopt.
7197 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7198 try adding EDNS0 record.
7199 * resolv/res_send.c (send_dg): If request failed with FORMERR and
7200 EDNS0 record was send make sure we don't try it again.
7201 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7202 * include/resolv.h: Declare __res_nopt.
7204 2007-02-08 Jakub Jelinek <jakub@redhat.com>
7207 * time/strptime_l.c (__strptime_internal): Set have_mon for
7208 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7209 have been computed from tm_yday and tm_year. Don't crash
7210 in day_of_the_week or day_of_the_year if not have_mon
7211 and tm_mon contains bogus value.
7212 * time/Makefile (tests): Add tst-strptime3.
7213 * time/tst-strptime3.c: New test.
7215 2007-02-05 Jakub Jelinek <jakub@redhat.com>
7218 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7219 bit for RE_HAT_LISTS_NOT_NEWLINE.
7220 (build_charclass_op): Remove bogus comment.
7221 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7222 * posix/bug-regex27.c: New test.
7223 * posix/bug-regex28.c: New test.
7225 2007-02-03 Ulrich Drepper <drepper@redhat.com>
7227 * po/sv.po: Update from translation team.
7229 2007-02-02 Ulrich Drepper <drepper@redhat.com>
7231 * nscd/nscd_helper.c (open_socket): Minor size optimization.
7233 2007-02-02 Jakub Jelinek <jakub@redhat.com>
7235 * include/locale.h (__uselocale): Add libc_hidden_proto.
7236 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7238 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7241 2007-02-01 Ulrich Drepper <drepper@redhat.com>
7243 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7245 (PTR_DEMANGLE): Real definition now that it's not the same as
7247 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7249 * string/strerror_l.c: New file.
7250 * string/Makefile (routines): Add strerror_l.
7251 * string/string.h: Declare strerror_l.
7252 * string/Versions: Export strerror_l for GLIBC_2.6.
7254 2007-01-31 Ulrich Drepper <drepper@redhat.com>
7256 * nscd/nscd_helper.c (open_socket): Now takes request type and key
7257 as parameter. Construct request record. Try sending request
7258 before the first poll use, it usually succeeds. Adjust all
7260 * nscd/nscd-client.h: Define MAXKEYLEN.
7261 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7263 2007-01-31 Jakub Jelinek <jakub@redhat.com>
7265 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7267 * nscd/nscd_helper.c: Include string.h.
7268 (__nscd_cache_search): Remove const qualifier from return value.
7269 On strict alignment architectures check hash entry and data head
7271 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7272 mmapped data during GC cycle contains garbage. If
7273 __nscd_drop_map_ref fails, decrement mapped->counter when returning
7274 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7276 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7277 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7278 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7279 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7280 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7282 2007-01-30 Ulrich Drepper <drepper@redhat.com>
7284 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7286 2007-01-26 Ulrich Drepper <drepper@redhat.com>
7288 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7289 names not numbers in cfi_*.
7291 2007-01-26 Andreas Jaeger <aj@suse.de>
7293 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7294 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7295 Correct values of PER_HPUX and PER_OSF4.
7297 2007-01-24 Ulrich Drepper <drepper@redhat.com>
7299 * elf/dl-minimal.c: Undefine _itoa first.
7300 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7301 * malloc/mtrace.c: Revert last change.
7302 * posix/wordexp.c: Likewise.
7304 2007-01-24 Jakub Jelinek <jakub@redhat.com>
7306 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7307 and __geode__ to the list of i486+ CPUs.
7308 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7310 2007-01-23 Ulrich Drepper <drepper@redhat.com>
7312 * stdio-common/_itoa.c: Include <limits.h>.
7313 * stdio-common/_itowa.c: Likewise.
7315 2007-01-22 Ulrich Drepper <drepper@redhat.com>
7317 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7319 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7321 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7323 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7327 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7328 * stdio-common/Makefile (tests): Add bug17.
7329 * stdio-common/bug17.c: New file.
7331 2007-01-19 Ulrich Drepper <drepper@redhat.com>
7333 * iconvdata/brf.c: New file.
7334 * iconvdata/testdata/BRF: New file.
7335 * iconvdata/testdata/BRF..UTF8: New file.
7336 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7337 * iconvdata/Makefile: Add rules to build BRF.
7338 * iconvdata/TESTS: Add BRF entry.
7339 * iconvdata/gconv-modules: Likewise.
7340 * iconvdata/tst-tables.sh: Likewise.
7342 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
7344 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7345 type `long long int', not `long int'.
7348 2007-01-18 Ulrich Drepper <drepper@redhat.com>
7350 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7351 of values on 64-bit platforms which are too large.
7353 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
7354 Joe Kerian <jkerian@us.us.ibm.com>
7357 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7358 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7359 (__copysignl): Use signbit() for comparison.
7360 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7361 SET_LDOUBLE_WORDS64.
7364 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7365 (__ceill): Remove calls to fegetround(), fesetround().
7366 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7367 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7368 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7370 2007-01-17 Jakub Jelinek <jakub@redhat.com>
7372 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7374 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7376 2007-01-17 Ulrich Drepper <drepper@redhat.com>
7378 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7380 * csu/libc-start.c: Likewise.
7382 2007-01-16 Ulrich Drepper <drepper@redhat.com>
7384 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7387 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7389 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
7391 (handle_request): Remove unnecessary tests.
7393 * nscd/cache.c (cache_add): Record the failure to add to the cache.
7395 2007-01-15 Jakub Jelinek <jakub@redhat.com>
7397 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7398 workbits in semi-raw fraction.
7400 * math/test-misc.c: Add new tests.
7402 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7404 * math/basic-test.c: Include test-skeleton.c.
7405 (TEST_TRUNC): Define.
7406 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7407 (main): Rename to ...
7408 (do_test): ...this. Run new tests.
7409 (TEST_FUNCTION): Define.
7411 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7412 Joe Kerian <jkerian@us.us.ibm.com>
7415 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7416 handling for high words.
7417 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7418 and overflow for infinity.
7420 2007-01-15 Ulrich Drepper <drepper@redhat.com>
7422 * nscd/connections.c (handle_request): Add a __builtin_expect.
7424 * nscd/connections.c (serv2db): Change type into structure which
7425 also says whether this is a request for data. Renamed to
7426 servinfo. All users changed.
7427 (handle_request): Much simpler test whether we should search the cache.
7429 * nscd/connections.c (handle_request): Fix thinko in selinux test
7432 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7433 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7434 it before getting dl_load_lock and then relock.
7435 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7436 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7437 case we unlocked the scope.
7438 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7439 _dl_lookup_symbol_x in case we locked the scope.
7440 (_dl_profile_fixup): Likewise.
7441 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7442 set DL_LOOKUP_SCOPE_LOCK.
7444 2007-01-13 Ulrich Drepper <drepper@redhat.com>
7446 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7447 CFLAGS-getsrvbynpt_r.c.
7448 * nscd/getsrvbynm_r.c: New file.
7449 * nscd/getsrvbypt_r.c: New file.
7450 * nscd/nscd_getserv_r.c: New file.
7451 * nscd/servicescache.c: New file.
7452 * nscd/Makefile (routines): Add nscd_getserv_r.
7453 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7454 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7455 CFLAGS-getsrvbypt_r.c.
7456 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7457 table. Add entries for services database.
7458 * nscd/connections.c (serv2str): Mark as const. Add entries for
7460 (dbs): Add .reset_res and servdb initialization.
7461 (serv2db): Add entries for services database.
7462 (verify_persistent_db): Accept dbnr == servdb.
7463 (invalidate_cache): Rewrite database name recognition to use a table.
7464 Call res_init() if .reset_res is set for database.
7465 (handle_request): Add code to handle services database.
7466 * nscd/gai.c: Don't define __getservbyname_r.
7467 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7468 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7469 (serv_response_header): Define.
7470 (struct datahead): Add serv_response_header member.
7471 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7473 * nscd/nscd.conf: Add entries for services database.
7474 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7475 Declare serv_iov_disabled.
7476 Declare addservbyname, readdservbyname, addservbyport, and
7478 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7479 (find_db): Fix error message.
7480 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7481 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7482 * nscd/selinux.c (perms): Add entries for services database.
7483 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7484 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7486 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7487 * nscd/hstcache.c: Likewise.
7488 * nscd/pwdcache.c: Likewise.
7490 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7491 computation of keylen.
7493 * include/string.h: Only redefine strndupa if this is really for
7496 2007-01-12 Ulrich Drepper <drepper@redhat.com>
7498 * nscd/nscd_gethst_r.c: Minor cleanups.
7500 * nscd/connections.c (handle_request): Check selinux permissions
7501 for all non-admin commands.
7503 * sysdeps/i386/i486/bits/atomic.h: Define
7504 atomic_compare_and_exchange_val_acq,
7505 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7506 using __sync_* built-ins for gcc >= 4.1.
7507 * sysdeps/x86_64/bits/atomic.h: Likewise.
7510 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7513 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7515 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7516 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7517 (do_test): Check errno and exit(0) if ENOSYS.
7519 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7521 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7522 thousands separators.
7523 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7524 * stdlib/tst-strtod4.c: New test.
7527 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7528 hexadecimal digit should accept just the initial 0.
7529 * stdlib/tst-strtod2.c (tests): New variable.
7530 (do_test): Run several tests rather than just one.
7532 2007-01-11 Jakub Jelinek <jakub@redhat.com>
7534 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7535 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7537 2007-01-10 Ulrich Drepper <drepper@redhat.com>
7539 * io/fts.c: Make sure fts_cur is always valid after return from
7541 Patch by Miloslav Trmac <mitr@redhat.com>.
7543 2006-10-27 Richard Sandiford <richard@codesourcery.com>
7545 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7546 (R_MIPS_NUM): Bump by 1.
7548 2007-01-03 Jakub Jelinek <jakub@redhat.com>
7550 * posix/execvp.c: Include alloca.h.
7551 (allocate_scripts_argv): Renamed to...
7552 (scripts_argv): ... this. Don't allocate buffer here nor count
7554 (execvp): Use alloca if possible.
7555 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7556 * posix/tst-vfork3.c: New test.
7558 2007-01-03 Ulrich Drepper <drepper@redhat.com>
7560 * string/Makefile (tst-strxfrm2-ENV): Define.
7561 * stdlib/Makefile (tst-strtod3-ENV): Define.
7563 2007-01-02 Ulrich Drepper <drepper@redhat.com>
7565 * posix/getconf.c: Update copyright year.
7566 * nss/getent.c: Likewise.
7567 * iconv/iconvconfig.c: Likewise.
7568 * iconv/iconv_prog.c: Likewise.
7569 * elf/ldconfig.c: Likewise.
7570 * catgets/gencat.c: Likewise.
7571 * csu/version.c: Likewise.
7572 * elf/ldd.bash.in: Likewise.
7573 * elf/sprof.c (print_version): Likewise.
7574 * locale/programs/locale.c: Likewise.
7575 * locale/programs/localedef.c: Likewise.
7576 * nscd/nscd.c (print_version): Likewise.
7577 * debug/xtrace.sh: Likewise.
7578 * malloc/memusage.sh: Likewise.
7579 * malloc/mtrace.pl: Likewise.
7580 * debug/catchsegv.sh: Likewise.
7582 2006-12-24 Ulrich Drepper <drepper@redhat.com>
7584 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7587 2006-12-23 Ulrich Drepper <drepper@redhat.com>
7589 * posix/wordexp.c: Remove some unnecessary tests.
7591 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7593 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7594 blacklist the group till after we look it up.
7596 2006-12-21 Ulrich Drepper <drepper@redhat.com>
7598 * include/atomic.h (atomic_forced_read): New macro.
7600 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7602 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7604 2006-12-19 Jakub Jelinek <jakub@redhat.com>
7606 * nss/getXXbyYY_r.c: Include atomic.h.
7607 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7608 add atomic_write_barrier () in between.
7610 * stdlib/Makefile (tests): Add tst-makecontext.
7611 * stdlib/tst-makecontext.c: New test.
7613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7614 (__makecontext): Don't realign uc_mcontext.uc_regs.
7616 2006-11-28 Jakub Jelinek <jakub@redhat.com>
7618 * elf/dl-support.c: Include dl-procinfo.h.
7619 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7620 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7621 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7623 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7624 hardcoded constants.
7625 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7626 PPC_PLATFORM_* macros for array designators.
7628 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
7630 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7631 names to the beginning.
7632 (_dl_powerpc_platforms): Add "power6x".
7633 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7634 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7635 (_DL_PLATFORMS_COUNT): Increase.
7636 (_dl_string_platform): Handle power6x case.
7637 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7638 PPC_FEATURE_POWER6_EXT): Define.
7639 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7641 2006-12-18 Jakub Jelinek <jakub@redhat.com>
7644 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7645 [-2^31 .. 2^31) range.
7646 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7648 * stdlib/tst-rand48-2.c: New test.
7649 * stdlib/Makefile (tests): Add tst-rand48-2.
7651 2006-12-14 Jakub Jelinek <jakub@redhat.com>
7653 * misc/tst-pselect.c (do_test): Fix sigblock argument.
7655 2006-12-14 Ulrich Drepper <drepper@redhat.com>
7657 * misc/tst-pselect.c (do_test): Make sure the helper process is
7658 terminating when the test is aborted.
7660 2006-12-13 Ulrich Drepper <drepper@redhat.com>
7662 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7663 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7664 Handle relatime mount option.
7667 * libio/Makefile (tests): Add tst-setvbuf1.
7668 * libio/tst-setvbuf1.c: New file.
7670 2006-12-08 Jakub Jelinek <jakub@redhat.com>
7673 * libio/genops.c (__uflow): Fix a typo.
7674 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7675 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
7676 the narrow buffer size.
7678 2006-11-24 Jakub Jelinek <jakub@redhat.com>
7681 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7682 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7683 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7685 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7686 _IO_wstr_finish): Likewise.
7687 * libio/wmemstream.c (open_wmemstream): Likewise.
7688 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7689 even for wide streams.
7691 2006-12-13 Jakub Jelinek <jakub@redhat.com>
7693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7696 2006-12-11 Ulrich Drepper <drepper@redhat.com>
7698 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7699 separators also if no non-zero digits found.
7700 * stdlib/Makefile (tests): Add tst-strtod3.
7702 2006-12-09 Ulrich Drepper <drepper@redhat.com>
7705 * include/features.h: Fix comment about default value for
7709 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7710 empty parsed strings.
7711 * stdlib/Makefile (tests): Add tst-strtod2.
7712 * stdlib/tst-strtod2.c: New file.
7715 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7717 * stdlib/Makefile (tests): Add tst-atof2.
7718 * stdlib/tst-atof2.c: New file.
7721 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7722 correctly if removing trailing zero of hex-float.
7723 * stdlib/Makefile (tests): Add tst-atof1.
7724 * stdlib/tst-atof1.c: New file.
7726 2006-12-09 Jakub Jelinek <jakub@redhat.com>
7728 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7729 Start searching for next comma at p rather than rest.
7730 * misc/Makefile (tests): Add tst-mntent2.
7731 * misc/tst-mntent2.c: New test.
7733 * misc/getusershell.c (initshells): Check for integer overflows.
7734 Make strings buffer one bigger as fgets always succeeds when second
7735 argument is 1. Don't use calloc for shells array. Disallow
7738 2006-12-08 Ulrich Drepper <drepper@redhat.com>
7740 * malloc/memusage.c: Handle realloc with new size of zero and
7741 non-NULL pointer correctly.
7742 (me): Really write first record twice.
7743 (struct entry): Make format bi-arch safe.
7744 (dest): Write out more realloc statistics.
7745 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7747 2006-12-05 Jakub Jelinek <jakub@redhat.com>
7749 * nis/nis_subr.c (nis_getnames): Revert last change.
7751 2006-12-04 Jakub Jelinek <jakub@redhat.com>
7753 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7754 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7755 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7756 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7758 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7759 * io/tst-ttyname_r.c: New test.
7761 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7763 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7765 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
7767 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7770 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7772 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7773 `clone' function to ensure proper unwinding stop of gdb.
7774 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7776 2006-12-01 Ulrich Drepper <drepper@redhat.com>
7778 * nscd/nscd.init: Remove obsolete and commented-out -S option
7781 2006-11-23 Jakub Jelinek <jakub@redhat.com>
7784 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7787 * manual/string.texi (strtok): Remove duplicate paragraph.
7789 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7791 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7792 libgcc not supporting `rflags' unwinding (register # >= 17).
7794 2006-11-30 Jakub Jelinek <jakub@redhat.com>
7796 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7799 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7800 Jakub Jelinek <jakub@redhat.com>
7801 Jan Kratochvil <jan.kratochvil@redhat.com>
7803 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7805 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7806 'restore_rt' even in the 'signal' directory.
7807 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7809 2006-11-27 Jakub Jelinek <jakub@redhat.com>
7812 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7813 malloc crashed. Don't allocate memory unnecessarily in each
7816 2006-10-21 Jakub Jelinek <jakub@redhat.com>
7818 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7820 2006-11-20 Ulrich Drepper <drepper@redhat.com>
7822 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7824 2006-11-18 Bruno Haible <bruno@clisp.org>
7826 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7827 __sysconf only after having tried to call getgroups32.
7829 2006-11-19 Ulrich Drepper <drepper@redhat.com>
7831 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7832 addresses for IPv4 queries if they can be mapped.
7834 2006-11-16 Jakub Jelinek <jakub@redhat.com>
7836 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7837 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7838 (signmask): Add .size directive.
7839 (othermask): Add .type directive.
7841 2006-11-14 Ulrich Drepper <drepper@redhat.com>
7843 * po/nl.po: Update from translation team.
7845 * timezone/zdump.c: Redo fix for BZ #3137.
7847 2006-11-14 Jakub Jelinek <jakub@redhat.com>
7849 * nss/nss_files/files-alias.c (get_next_alias): Set line back
7850 to first_unused after parsing :include: file.
7852 2006-11-10 Ulrich Drepper <drepper@redhat.com>
7854 * timezone/africa: Update from tzdata2006o.
7855 * timezone/antarctica: Likewise.
7856 * timezone/asia: Likewise.
7857 * timezone/australasia: Likewise.
7858 * timezone/backward: Likewise.
7859 * timezone/europe: Likewise.
7860 * timezone/iso3166.tab: Likewise.
7861 * timezone/northamerica: Likewise.
7862 * timezone/southamerica: Likewise.
7863 * timezone/zone.tab: Likewise.
7865 * time/tzfile.c (__tzfile_read): Extend to handle new file format
7866 on machines with 64-bit time_t.
7868 * timezone/checktab.awk: Update from tzcode2006o.
7869 * timezone/ialloc.c: Likewise.
7870 * timezone/private.h: Likewise.
7871 * timezone/scheck.c: Likewise.
7872 * timezone/tzfile.h: Likewise.
7873 * timezone/tzselect.ksh: Likewise.
7874 * timezone/zdump.c: Likewise.
7875 * timezone/zic.c: Likewise.
7878 * elf/ldconfig.c (main): Call setlocale and textdomain.
7879 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7882 * manual/argp.texi: Fix typos.
7883 * manual/charset.texi: Likewise.
7884 * manual/errno.texi: Likewise.
7885 * manual/filesys.texi: Likewise.
7886 * manual/lang.texi: Likewise.
7887 * manual/maint.texi: Likewise.
7888 * manual/memory.texi: Likewise.
7889 * manual/message.texi: Likewise.
7890 * manual/resource.texi: Likewise.
7891 * manual/search.texi: Likewise.
7892 * manual/signal.texi: Likewise.
7893 * manual/startup.texi: Likewise.
7894 * manual/stdio.texi: Likewise.
7895 * manual/sysinfo.texi: Likewise.
7896 * manual/syslog.texi: Likewise.
7897 * manual/time.texi: Likewise.
7898 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7901 * sunrpc/clnt_raw.c: Minimal message improvements.
7902 * sunrpc/pm_getmaps.c: Likewise.
7903 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7904 * nis/nis_print_group_entry.c: Likewise.
7905 * locale/programs/repertoire.c: Likewise.
7906 * locale/programs/charmap.c: Likewise.
7907 * malloc/memusage.sh: Likewise.
7908 * elf/dl-deps.c: Likewise.
7909 * locale/programs/ld-collate.c: Likewise.
7910 * libio/vswprintf.c: Likewise.
7911 * malloc/memusagestat.c: Likewise.
7912 * sunrpc/auth_unix.c: Likewise.
7913 * sunrpc/rpc_main.c: Likewise.
7914 * nscd/cache.c: Likewise.
7915 * locale/programs/repertoire.c: Unify output messages.
7916 * locale/programs/charmap.c: Likewise.
7917 * locale/programs/ld-ctype.c: Likewise.
7918 * locale/programs/ld-monetary.c: Likewise.
7919 * locale/programs/ld-numeric.c: Likewise.
7920 * locale/programs/ld-time.c: Likewise.
7921 * elf/ldconfig.c: Likewise.
7922 * nscd/selinux.c: Likewise.
7923 * elf/cache.c: Likewise.
7924 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7927 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7931 2006-11-10 Jakub Jelinek <jakub@redhat.com>
7933 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
7934 if N is one bigger than return value.
7935 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
7936 and l1 last arguments, if buf is defined, verify the return value
7937 equals to strlen (buf) and verify no byte beyond passed length
7940 2006-11-10 Ulrich Drepper <drepper@redhat.com>
7942 * po/sv.po: Update from translation team.
7944 2006-11-09 Ulrich Drepper <drepper@redhat.com>
7946 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
7949 2006-11-10 Jakub Jelinek <jakub@redhat.com>
7951 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
7954 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
7955 Use __new_sys_siglist instead of _sys_siglist_internal as
7956 second macro argument.
7957 (_old_sys_siglist): Use declare_symbol_alias macro instead of
7960 2006-11-09 Ulrich Drepper <drepper@redhat.com>
7963 * posix/unistd.h (sysconf): Remove const attribute.
7965 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
7966 temporary or deprecated addresses.
7967 Patch by Sridhar Samudrala <sri@us.ibm.com>.
7969 * string/Makefile (tests): Add tst-strxfrm2.
7970 * string/tst-strxfrm2.c: New file.
7972 2006-10-09 Jakub Jelinek <jakub@redhat.com>
7974 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
7975 rather than r->r_brk.
7977 2006-11-08 Jakub Jelinek <jakub@redhat.com>
7979 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
7980 optimization even if needed > n.
7982 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
7983 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
7984 return false, otherwise return true.
7985 (cache_rpath): Return decompose_rpath return value.
7987 2006-11-07 Jakub Jelinek <jakub@redhat.com>
7989 * include/libc-symbols.h (declare_symbol): Rename to...
7990 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
7991 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
7993 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
7995 * sysdeps/gnu/siglist.c: Likewise.
7997 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
7999 * sysdeps/powerpc/fpu/bits/mathinline.h
8000 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8001 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
8003 2006-11-05 Ulrich Drepper <drepper@redhat.com>
8005 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8006 Update handling of cache descriptor 0x49 for new models.
8007 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8010 2006-11-02 Jakub Jelinek <jakub@redhat.com>
8012 * malloc/memusage.c (dest): Reset not_me back to false after
8013 printing statistics.
8015 2006-11-02 Ulrich Drepper <drepper@redhat.com>
8017 * configure.in: Work around ld --help change and avoid -z relro
8018 test completely if the architecture doesn't care about security.
8020 2006-11-01 Ulrich Drepper <drepper@redhat.com>
8022 * po/sv.po: Update from translation team.
8024 2006-10-31 Ulrich Drepper <drepper@redhat.com>
8026 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8027 generate compatibility version.
8029 2006-10-29 Ulrich Drepper <drepper@redhat.com>
8031 * configure.in: Relax -z relro requirement a bit.
8033 * po/sv.po: Update from translation team.
8035 2006-10-29 Jakub Jelinek <jakub@redhat.com>
8037 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8038 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8039 * elf/dl-close.c (_dl_close_worker): Likewise.
8040 * elf/dl-open.c (_dl_open_worker): Likewise.
8041 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8043 2006-10-27 Ulrich Drepper <drepper@redhat.com>
8045 * configure.in: Require assembler support for visibility, compiler
8046 support for visibility and aliases, linker support for various -z
8048 * Makeconfig: Remove conditional code which now is unnecessary.
8049 * config.h.in: Likewise.
8050 * config.make.in: Likewise.
8051 * dlfcn/Makefile: Likewise.
8052 * elf/Makefile: Likewise.
8053 * elf/dl-load.c: Likewise.
8054 * elf/rtld.c: Likewise.
8055 * include/libc-symbols.h: Likewise.
8056 * include/stdio.h: Likewise.
8057 * io/Makefile: Likewise.
8058 * io/fstat.c: Likewise.
8059 * io/fstat64.c: Likewise.
8060 * io/fstatat.c: Likewise.
8061 * io/fstatat64.c: Likewise.
8062 * io/lstat.c: Likewise.
8063 * io/lstat64.c: Likewise.
8064 * io/mknod.c: Likewise.
8065 * io/mknodat.c: Likewise.
8066 * io/stat.c: Likewise.
8067 * io/stat64.c: Likewise.
8068 * libio/stdio.c: Likewise.
8069 * nscd/Makefile: Likewise.
8070 * stdlib/Makefile: Likewise.
8071 * stdlib/atexit.c: Likewise.
8072 * sysdeps/generic/ldsodefs.h: Likewise.
8073 * sysdeps/i386/dl-machine.h: Likewise.
8074 * sysdeps/i386/sysdep.h: Likewise.
8075 * sysdeps/i386/i686/memcmp.S: Likewise.
8076 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8077 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8078 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8080 * Makerules: USE_TLS support is now default.
8081 * tls.make.c: Likewise.
8082 * csu/Versions: Likewise.
8083 * csu/libc-start.c: Likewise.
8084 * csu/libc-tls.c: Likewise.
8085 * csu/version.c: Likewise.
8086 * dlfcn/dlinfo.c: Likewise.
8087 * elf/dl-addr.c: Likewise.
8088 * elf/dl-cache.c: Likewise.
8089 * elf/dl-close.c: Likewise.
8090 * elf/dl-iteratephdr.c: Likewise.
8091 * elf/dl-load.c: Likewise.
8092 * elf/dl-lookup.c: Likewise.
8093 * elf/dl-object.c: Likewise.
8094 * elf/dl-open.c: Likewise.
8095 * elf/dl-reloc.c: Likewise.
8096 * elf/dl-support.c: Likewise.
8097 * elf/dl-sym.c: Likewise.
8098 * elf/dl-sysdep.c: Likewise.
8099 * elf/dl-tls.c: Likewise.
8100 * elf/ldconfig.c: Likewise.
8101 * elf/rtld.c: Likewise.
8102 * elf/tst-tls-dlinfo.c: Likewise.
8103 * elf/tst-tls1.c: Likewise.
8104 * elf/tst-tls10.h: Likewise.
8105 * elf/tst-tls14.c: Likewise.
8106 * elf/tst-tls2.c: Likewise.
8107 * elf/tst-tls3.c: Likewise.
8108 * elf/tst-tls4.c: Likewise.
8109 * elf/tst-tls5.c: Likewise.
8110 * elf/tst-tls6.c: Likewise.
8111 * elf/tst-tls7.c: Likewise.
8112 * elf/tst-tls8.c: Likewise.
8113 * elf/tst-tls9.c: Likewise.
8114 * elf/tst-tlsmod1.c: Likewise.
8115 * elf/tst-tlsmod13.c: Likewise.
8116 * elf/tst-tlsmod13a.c: Likewise.
8117 * elf/tst-tlsmod14a.c: Likewise.
8118 * elf/tst-tlsmod2.c: Likewise.
8119 * elf/tst-tlsmod3.c: Likewise.
8120 * elf/tst-tlsmod4.c: Likewise.
8121 * elf/tst-tlsmod5.c: Likewise.
8122 * elf/tst-tlsmod6.c: Likewise.
8123 * include/errno.h: Likewise.
8124 * include/link.h: Likewise.
8125 * include/tls.h: Likewise.
8126 * locale/global-locale.c: Likewise.
8127 * locale/localeinfo.h: Likewise.
8128 * malloc/arena.c: Likewise.
8129 * malloc/hooks.c: Likewise.
8130 * malloc/malloc.c: Likewise.
8131 * resolv/Versions: Likewise.
8132 * sysdeps/alpha/dl-machine.h: Likewise.
8133 * sysdeps/alpha/libc-tls.c: Likewise.
8134 * sysdeps/generic/ldsodefs.h: Likewise.
8135 * sysdeps/generic/tls.h: Likewise.
8136 * sysdeps/i386/dl-machine.h: Likewise.
8137 * sysdeps/ia64/dl-machine.h: Likewise.
8138 * sysdeps/ia64/libc-tls.c: Likewise.
8139 * sysdeps/mach/hurd/fork.c: Likewise.
8140 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8141 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8142 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8143 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8144 * sysdeps/s390/libc-tls.c: Likewise.
8145 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8146 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8147 * sysdeps/sh/dl-machine.h: Likewise.
8148 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8149 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8150 * sysdeps/x86_64/dl-machine.h: Likewise.
8152 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8153 split out locking and parameter checking.
8154 (_dl_close): Call _dl_close_worker after locking and checking.
8155 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8157 * elf/Makefile: Add rules to build and run tst-thrlock.
8158 * elf/tst-thrlock.c: New file.
8161 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8165 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8166 we are sure we do not need it anymore for _dl_close. Also move
8167 the asserts inside the lock region.
8168 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8170 2006-10-27 Jakub Jelinek <jakub@redhat.com>
8172 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8174 (_dl_lookup_symbol_x): Adjust caller.
8176 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8178 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8180 * elf/dl-libc.c: Revert l_scope name changes.
8181 * elf/dl-load.c: Likewise.
8182 * elf/dl-object.c: Likewise.
8183 * elf/rtld.c: Likewise.
8184 * elf/dl-close.c (_dl_close): Likewise.
8185 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8186 always use __rtld_mrlock_{change,done}. Always free old scope list
8187 here if not l_scope_mem.
8188 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8189 change. Never free scope list here. Just __rtld_mrlock_lock before
8190 the lookup and __rtld_mrlock_unlock it after the lookup.
8191 * elf/dl-sym.c: Likewise.
8192 * include/link.h (struct r_scoperec): Remove.
8193 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8194 with l_scope_mem and l_scoperec_lock with l_scope_lock.
8196 2006-10-25 Ulrich Drepper <drepper@redhat.com>
8198 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8200 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8202 * configure.in: Disable building profile libraries by default.
8204 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8206 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8207 as signed longs, check for x_base + pos overflow.
8208 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8209 * sunrpc/tst-xdrmem2.c: New test.
8211 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8213 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8214 _dl_lookup_symbol_x code.
8216 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8218 * elf/dl-runtime.c: Include sysdep-cancel.h.
8219 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8220 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
8221 instead of catomic_* macros.
8222 * elf/dl-sym.c: Include sysdep-cancel.h.
8223 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8224 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8225 * elf/dl-close.c: Include sysdep-cancel.h.
8226 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8227 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8228 * elf/dl-open.c: Include sysdep-cancel.h.
8229 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8230 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8232 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8235 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8236 fastbin rather than end of fastbin array.
8238 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8240 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8242 * sysdeps/x86_64/bits/atomic.h
8243 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8244 (catomic_decrement): Use correct body macro.
8246 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8248 * include/atomic.h: Add a unique prefix to all local variables
8250 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8252 2006-10-16 Ulrich Drepper <drepper@redhat.com>
8255 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8258 2006-10-14 Ulrich Drepper <drepper@redhat.com>
8260 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8262 2006-10-13 Ulrich Drepper <drepper@redhat.com>
8265 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8266 determine highest fast bin to consolidate, always look into all of
8268 (do_check_malloc_state): Only require for empty bins for large
8269 sizes in main arena.
8271 * libio/stdio.h: Add more __wur attributes.
8273 * elf/dl-minimal.c (realloc): Optimize last patch.
8275 2006-10-12 Richard Sandiford <richard@codesourcery.com>
8278 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8279 and use memcpy() if it does.
8281 2006-11-12 Andreas Jaeger <aj@suse.de>
8284 * manual/search.texi (Hash Search Function): Clarify.
8285 (Array Search Function): Clarify.
8287 2006-11-12 Joseph Myers <joseph@codesourcery.com>
8290 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8292 * math/atest-exp2.c (read_mpn_hex): Likewise.
8293 * math/atest-sincos.c (main): Likewise.
8295 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8297 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8298 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8299 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8301 * Versions.def: Add GLIBC_2.6 for libc.
8303 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8305 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8307 2006-10-11 Jakub Jelinek <jakub@redhat.com>
8309 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8311 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8313 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8314 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8316 2006-10-11 Ulrich Drepper <drepper@redhat.com>
8318 * include/atomic.c: Define catomic_* operations.
8319 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
8320 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8321 * malloc/memusage.c: Likewise.
8322 * gmon/mcount.c: Likewise.
8323 * elf/dl-close.c: Likewise.
8324 * elf/dl-open.c: Likewise.
8325 * elf/dl-profile.c: Likewise.
8326 * elf/dl-sym.c: Likewise.
8327 * elf/dl-runtime.c: Likewise.
8328 * elf/dl-fptr.c: Likewise.
8329 * resolv/res_libc.c: Likewise.
8331 2006-10-10 Ulrich Drepper <drepper@redhat.com>
8333 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8334 components which lack them.
8336 * nis/nis_subr.c (nis_getnames): Make sure that we always return
8337 at least one entry consisting of the parameter concatenated with
8340 2006-10-10 Roland McGrath <roland@frob.com>
8342 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8343 * sysdeps/mach/hurd/futimes.c: Likewise.
8344 * sysdeps/mach/hurd/lutimes.c: Likewise.
8346 2006-10-09 Ulrich Drepper <drepper@redhat.com>
8347 Jakub Jelinek <jakub@redhat.com>
8349 Implement reference counting of scope records.
8350 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8351 from the list in objects which remain. Always allocate new scope
8353 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8354 don't resize, allocate a new one.
8355 * elf/dl-runtime.c: Update reference counters before using a scope
8357 * elf/dl-sym.c: Likewise.
8358 * elf/dl-libc.c: Adjust for l_scope name change.
8359 * elf/dl-load.c: Likewise.
8360 * elf/dl-object.c: Likewise.
8361 * elf/rtld.c: Likewise.
8362 * include/link.h: Include <rtld-lowlevel.h>. Define struct
8363 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
8364 Add l_scoperec_lock.
8365 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8366 * sysdeps/generic/rtld-lowlevel.h: New file.
8368 * include/atomic.h: Rename atomic_and to atomic_and_val and
8369 atomic_or to atomic_or_val. Define new macros atomic_and and
8370 atomic_or which do not return values.
8371 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8373 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8375 * po/sv.po: Update from translation team.
8377 2006-10-07 Ulrich Drepper <drepper@redhat.com>
8379 * Versions.def: Add GLIBC_2.6 to libpthread.
8381 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8382 (versioned_symbol): Likewise.
8383 (compat_symbol): Likewise.
8385 * po/tr.po: Update from translation team.
8387 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8389 * nis/Banner: Removed. It's been integral part forever and the
8390 author info is incomplete anyway.
8391 * libio/Banner: Likewise.
8393 * nis/nis_table.c (nis_list): If __follow_path fails in the new
8394 code, make sure the nis_freeresult call doesn't crash and that the
8395 result is reported correctly.
8397 2006-09-27 Jakub Jelinek <jakub@redhat.com>
8399 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8400 when callback is NULL.
8402 * nis/Versions (libnss_nisplus): Add
8403 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8404 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8405 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8406 _nss_create_tablename): Rename to...
8407 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8408 ... these. No longer static.
8409 (internal_setgrent): Adjust users.
8410 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8411 Don't use locking around _nss_grp_create_tablename call.
8412 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8414 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8416 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8418 2006-10-06 Andreas Jaeger <aj@suse.de>
8420 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8422 2006-10-06 Ulrich Drepper <drepper@redhat.com>
8424 * po/pl.po: Update from translation team.
8426 * nscd/nscd.c (main): Fix typo in message.
8427 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8429 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8432 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8433 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8434 (__sigprocmask): Define.
8436 2006-10-02 Ulrich Drepper <drepper@redhat.com>
8438 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8441 2006-10-02 Jakub Jelinek <jakub@redhat.com>
8443 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8444 in oldtotal and newtotal calculation.
8445 * nscd/nscd-client.h (struct mapped_database): Add datasize
8447 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8448 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8450 (__nscd_cache_search): Add checks to make sure we never reference
8451 data beyond the current mapping.
8453 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8455 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8456 variables const to avoid compiler warnings.
8458 * io/fts.c (fts_close): Remove redundant checks.
8459 (fts_build): Likewise.
8460 (fts_palloc): Likewise.
8462 * manual/message.texi (Advanced gettext functions,
8463 Using gettextized software): Fix typos.
8465 2006-09-30 Ulrich Drepper <drepper@redhat.com>
8467 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8468 explain why there are no leaks.
8470 2006-09-29 Ulrich Drepper <drepper@redhat.com>
8472 * libio/wmemstream.c: Include <wchar.h>.
8473 * libio/bug-wmemstream1.c: Likewise.
8474 * libio/tst-wmemstream1.c: Likewise.
8475 * libio/tst-wmemstream2.c: Likewise.
8477 * version.h (RELEASE): Bump to 2.5.
8478 * README: Regenerated.
8480 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8483 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8484 found no group members.
8485 Patch by Petr Baudis.
8487 2006-09-29 Jakub Jelinek <jakub@redhat.com>
8489 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8490 assert bootstrap_map.l_tls_modid is zero.
8491 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8494 2006-09-27 Ulrich Drepper <drepper@redhat.com>
8496 * libio/stdio.h: Move open_wmemstream prototype to ...
8497 * wcsmbs/wchar.h: ... here.
8499 2006-09-25 Jakub Jelinek <jakub@redhat.com>
8502 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8503 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8504 __{,l}chown to handle the rest.
8505 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8506 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8507 __{,l}chown to handle the rest.
8508 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8510 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8511 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8514 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8515 time, rather allocate increasingly bigger arrays of pointers, if
8516 possible with alloca, if too large with malloc.
8518 2006-09-24 Jakub Jelinek <jakub@redhat.com>
8520 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8522 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8524 2006-09-24 Ulrich Drepper <drepper@redhat.com>
8526 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8528 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8529 IFA_F_HOMEADDRESS flag for interfaces.
8530 * include/ifaddrs.h (struct in6addrinfo): Define
8533 2006-09-21 Jakub Jelinek <jakub@redhat.com>
8536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8537 PTR_DEMANGLE3): Define.
8538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8539 PTR_DEMANGLE3): Likewise.
8540 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8541 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8543 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8545 2006-09-20 Jakub Jelinek <jakub@redhat.com>
8547 * po/libc.pot: Regenerated.
8548 * po/be.po: Updated.
8549 * po/ca.po: Likewise.
8550 * po/cs.po: Likewise.
8551 * po/da.po: Likewise.
8552 * po/de.po: Likewise.
8553 * po/el.po: Likewise.
8554 * po/en_GB.po: Likewise.
8555 * po/es.po: Likewise.
8556 * po/fi.po: Likewise.
8557 * po/fr.po: Likewise.
8558 * po/gl.po: Likewise.
8559 * po/hr.po: Likewise.
8560 * po/hu.po: Likewise.
8561 * po/ja.po: Likewise.
8562 * po/ko.po: Likewise.
8563 * po/nb.po: Likewise.
8564 * po/nl.po: Likewise.
8565 * po/pl.po: Likewise.
8566 * po/pt_BR.po: Likewise.
8567 * po/ru.po: Likewise.
8568 * po/rw.po: Likewise.
8569 * po/sk.po: Likewise.
8570 * po/sv.po: Likewise.
8571 * po/tr.po: Likewise.
8572 * po/zh_CN.po: Likewise.
8573 * po/zh_TW.po: Likewise.
8576 * iconv/iconv_prog.c (main): Fix spelling in error message.
8577 * iconv/iconvconfig.c (main): Likewise.
8578 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8579 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8580 * locale/programs/localedef.c (main): Likewise.
8581 * locale/programs/repertoire.c (repertoire_read): Likewise.
8582 * timezone/zdump.c (main): Likewise.
8583 * nscd/connections.c (handle_request): Fix spelling in log message.
8584 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8586 2006-09-20 Ulrich Drepper <drepper@redhat.com>
8588 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8591 2006-09-20 Andreas Jaeger <aj@suse.de>
8593 * math/libm-test.inc (lrint_test_upward): Fix typo.
8595 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8598 * math/libm-test.inc (lrint_test_tonearest): New function.
8599 (lrint_test_towardzero): New function.
8600 (lrint_test_downward): New function.
8601 (lrint_test_upward): New function.
8602 (main): Run these new tests.
8603 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8604 of values near to 0.
8605 (two52): Use double not long double.
8606 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8607 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8608 (two23): Use float not double.
8609 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8610 (two23): Use float not double.
8611 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8612 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8613 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8614 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8616 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8618 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8619 Cast sp to unsigned long to avoid compiler warning.
8620 Use __makecontext_ret function instead of a trampoline on the stack.
8621 (__makecontext_ret): New function.
8622 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8624 2006-09-19 Jakub Jelinek <jakub@redhat.com>
8626 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8627 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8630 2006-09-19 Ulrich Drepper <drepper@redhat.com>
8632 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8633 sure no reference to the unloaded map's search list remains in the
8636 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8638 * elf/Makefile: Add rules to build and run unload7 test.
8639 * elf/unload7.c: New test.
8640 * elf/unload7mod1.c: New file.
8641 * elf/unload7mod2.c: New file.
8643 2006-09-18 Jakub Jelinek <jakub@redhat.com>
8645 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8646 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8647 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8648 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8649 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8650 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8651 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8652 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8653 PTRACE_GETEVENTMSG): Likewise.
8654 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8657 2006-09-17 Mike Frysinger <vapier@gentoo.org>
8659 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8660 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8661 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8662 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8664 2006-09-16 Jakub Jelinek <jakub@redhat.com>
8666 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8667 write '\0' to the fd.
8668 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8669 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8670 Change regs to unsigned long pointer from unsigned int, fix fscr
8673 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8675 * io/Makefile (CFLAGS-fstatat.c): Set.
8676 (CFLAGS-fstatat64.c): Likewise.
8677 (CFLAGS-mknodat.c): Likewise.
8679 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8680 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8681 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8682 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8684 2006-09-14 Jakub Jelinek <jakub@redhat.com>
8685 Steven Munroe <sjmunroe@us.ibm.com>
8687 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8688 names to the beginning. Rename "cell" to "cellbe".
8689 (_dl_powerpc_platforms): New.
8690 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8691 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8692 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8693 (_DL_HWCAP_PLATFORM): Define to new mask.
8694 (_dl_platform_string, _dl_string_platform): New functions.
8695 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8696 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8698 2006-09-12 Jakub Jelinek <jakub@redhat.com>
8701 * README.libm: Fix a thinko in sqrt algorithm description.
8704 * manual/string.texi (argz_delete): Fix prototype.
8705 Patch by <alpt@freaknet.org>.
8707 2006-08-26 Joseph Myers <joseph@codesourcery.com>
8710 * io/test-lfs.c (do_prepare): Give name_len type size_t.
8711 * io/tst-fcntl.c (do_prepare): Likewise.
8712 * posix/tst-exec.c (do_prepare): Likewise.
8713 * posix/tst-preadwrite.c (do_prepare): Likewise.
8714 * posix/tst-spawn.c (do_prepare): Likewise.
8715 * posix/tst-truncate.c (do_prepare): Likewise.
8716 * rt/tst-aio.c (do_prepare): Likewise.
8717 * rt/tst-aio64.c (do_prepare): Likewise.
8718 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8721 2006-09-09 Ulrich Drepper <drepper@redhat.com>
8724 * time/mktime.c (guess_time_tm): Fix overflow detection.
8725 * time/Makefile (tests): Add bug-mktime1.
8726 * time/bug-mktime1.c: New file.
8729 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8732 2006-09-07 Jakub Jelinek <jakub@redhat.com>
8735 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8736 Ensure relocation doesn't clobber any bits outside of the
8737 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8738 R_SPARC_HI22 and R_SPARC_H44.
8741 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8742 (long) (MINSIZE + nb - old_size) is positive.
8744 * malloc/arena.c (grow_heap): When growing bail even if new_size
8748 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8751 2006-09-06 Jakub Jelinek <jakub@redhat.com>
8753 * posix/regex_internal.c (re_string_reconstruct): Handle
8754 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8755 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8756 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8757 re_string_context_at.
8758 * posix/Makefile: Add rules to build and run bug-regex26 test.
8759 * posix/bug-regex26.c: New test.
8761 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8762 rather than col_sym_free. Move seqp declaration earlier.
8764 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8766 2006-09-05 Jakub Jelinek <jakub@redhat.com>
8768 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8769 decl before first goto out.
8771 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8773 * Makerules (shlib.lds): If have-hash-style, put .hash section
8774 at the end of the RO segment.
8776 2006-09-04 Ulrich Drepper <drepper@redhat.com>
8778 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8779 style hash table format is used.
8781 2006-09-04 Jakub Jelinek <jakub@redhat.com>
8783 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8784 randomization rather than before.
8785 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8787 2006-08-31 Jakub Jelinek <jakub@redhat.com>
8789 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8791 * malloc/malloc.c (_int_malloc): Use full list insert and not
8792 shortcut which assumes the list is empty for large requests
8795 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8797 2006-08-30 Jakub Jelinek <jakub@redhat.com>
8799 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8800 and offout arguments to the prototype.
8801 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8802 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8803 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8804 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8805 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8806 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8807 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8808 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8810 2006-08-28 Ulrich Drepper <drepper@redhat.com>
8812 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8814 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8817 2006-08-28 Jakub Jelinek <jakub@redhat.com>
8819 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8820 only if herrno is NETDB_INTERNAL. Handle errors other than
8821 ERANGE outside of the loops, handle TRY_AGAIN.
8823 * locale/programs/ld-ctype.c (translit_flatten): Issue error
8824 if other's ctype category was missing.
8825 * locale/programs/ld-collate.c (collate_read): Return if
8826 copy_locale's collate category is missing.
8828 2006-08-27 Ulrich Drepper <drepper@redhat.com>
8831 * malloc/malloc.c (public_rEALLOc): Try harder by using other
8832 arenas if allocation failed.
8833 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8835 2006-08-26 Ulrich Drepper <drepper@redhat.com>
8837 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8839 (malloc_state): Reduce bins size by 2.
8840 (_int_malloc): Fix test for large enough buffer for early termination.
8841 When no unsorted block matches perfectly and an exiting block has
8842 to be split, use full list insert and not shortcut which assumes
8845 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8848 2006-08-24 Ulrich Drepper <drepper@redhat.com>
8850 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8853 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8854 symbol require exact match (these are PLTs).
8855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8856 (_dl_ppc64_addr_sym_match): Likewise.
8859 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8860 If symbol has a value use it.
8861 * elf/tst-dladdr1.c: New file.
8862 * elf/Makefile: Add rules to build and run tst-addr1.
8864 2006-08-24 Jakub Jelinek <jakub@redhat.com>
8866 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8867 keeps failing and heap growth or new heap creation isn't
8869 * malloc/tst-malloc.c (main): Add new tests.
8871 2006-08-24 Ulrich Drepper <drepper@redhat.com>
8874 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8875 as in the x86-64 code to use bswap.
8877 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
8880 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8882 * posix/bits/unistd.h: Likewise.
8884 2006-05-15 Mike Frysinger <vapier@gentoo.org>
8887 * string/strchr.c: Add cast to avoid warning.
8889 2006-08-21 Ulrich Drepper <drepper@redhat.com>
8891 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
8892 platforms define as 512K. For 64-bit platforms as 32MB. The lower
8893 limit is needed to avoid the exploding of the address space
8894 requirement for secondary heaps.
8895 * malloc/arena.c (HEAP_MAX_SIZE): Define using
8896 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8898 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
8901 * Makerules (depfiles): Handle extra-test-objs the same as
8903 (common-mostlyclean): Likewise.
8904 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8906 * elf/Makefile (extra-objs): Likewise.
8907 * stdlib/Makefile (extra-objs): Likewise.
8909 2006-08-14 Eric Blake <ebb9@byu.net>
8912 * misc/error.h: Assume C89 or better.
8913 * misc/error.c: Likewise.
8915 2006-08-21 Ulrich Drepper <drepper@redhat.com>
8918 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8919 __ASSUME_ATFCTS is defined.
8921 2006-08-19 Ulrich Drepper <drepper@redhat.com>
8923 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8924 to sort in each call.
8926 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8927 is empty simply return and use next service.
8928 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8930 * locale/programs/charmap.c (charmap_read): Add new parameter. It
8931 tells us when not finding a charmap file is an error.
8932 * locale/programs/charmap.h: Adjust charmap_read prototype.
8933 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
8934 cannot find a charmap.
8935 * locale/programs/localedef.c (main): Adjust charmap_read call.
8937 2006-08-15 Jakub Jelinek <jakub@redhat.com>
8939 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
8940 sysdeps/posix/pause.c implementation instead.
8942 2006-08-09 Jakub Jelinek <jakub@redhat.com>
8944 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
8947 2006-08-13 Andreas Schwab <schwab@suse.de>
8949 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
8950 Don't clobber caller's LRSAVE.
8951 (_dl_prof_resolve): Likewise.
8953 2006-08-14 Ulrich Drepper <drepper@redhat.com>
8956 * libio/memstream.c (open_memstream): Allocate initial buffer with
8958 * libio/wmemstream.c (open_wmemstream): Likewise.
8959 * libio/strops.c: Pretty printing.
8960 (_IO_str_overflow): Clear uninitialized part of the new buffer.
8961 (enlarge_userbuf): New function.
8962 (_IO_str_seekoff): Call it if seek position is larger than current
8964 * libio/wstrops.c: Likewise.
8965 * libio/vasprintf.c: Add comment as to why we do not have to use
8966 calloc instead of malloc to allocate initial buffer.
8967 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
8968 * libio/bug-memstream1.c: New file.
8969 * libio/bug-wmemstream1.c: New file.
8971 2006-08-13 Ulrich Drepper <drepper@redhat.com>
8973 * libio/wstrops.c: Remove dead macro definitions and comments.
8974 * libio/strops.c: Likewise.
8977 * login/utmpname.c (__utmpname): Remove unnecessary test.
8979 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
8982 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
8985 2006-08-13 Ulrich Drepper <drepper@redhat.com>
8988 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
8990 * sysdeps/unix/clock_settime.c: Add support for platform-specific
8991 setting of CPU clocks.
8993 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
8996 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
8997 since C99 requires the result to promote to 'int' when uint_least8_t
8998 and uint_least16_t promote to 'int'.
9000 2006-08-12 Ulrich Drepper <drepper@redhat.com>
9003 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9004 lenght of one output field, correct bitmask creation.
9005 * locale/programs/ld-time.c: Add alignment.
9008 * misc/error.c: Add space between program name and message if file
9011 2006-08-03 Eric Blake <ebb9@byu.net>
9014 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9016 2006-08-09 Ulrich Drepper <drepper@redhat.com>
9018 * malloc/memusagestat.c: Silence warnings.
9020 * malloc/malloc.c: Dynamically size mmap treshold if the program
9021 frees mmaped blocks.
9022 Patch by Valerie Henson and Arjan van de Ven.
9024 2006-08-08 Jakub Jelinek <jakub@redhat.com>
9026 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9029 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9030 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9031 (DEF): Don't put the var into .gnu.linkonce.r.* section.
9032 Only provide var definitions in strtol_l (or for *ull*
9035 * stdio-common/bug16.c (tests): New array.
9036 (do_tests): Allow the first hexadecimal digit
9037 to be 1, 2, 4 or 8. Do 3 additional tests.
9039 * sysdeps/s390/fpu/libm-test-ulps: Update.
9041 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9042 fchownat syscall if available.
9043 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9044 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9045 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9047 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9049 * nis/nis_xdr.c: Avoid some function calls.
9051 2006-08-07 Jakub Jelinek <jakub@redhat.com>
9052 Ulrich Drepper <drepper@redhat.com>
9054 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9055 short cut if only one name component is stripped away.
9057 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9059 * nis/nis_call.c: Minor cleanups throughout.
9060 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9061 (first_shoot): Add search_parent_first parameter. Only if it is set
9062 search parent server first.
9063 If directory for table found through cold start cache is not the same
9064 as referenced in the cache, don't use it.
9065 (__nisfind_server): Take additional parameter. Pass it on to
9067 (__prepare_niscall): Adjust __nisfind_server call.
9068 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9069 * nis/nis_table.c: Adjust __nisfind_server call.
9070 * nis/nis_lookup.c: Likewise.
9071 (nis_lookup): Don't loop endlessly if name is reduced to ".".
9073 2006-08-03 Ulrich Drepper <drepper@redhat.com>
9076 * math/s_cacosh.c: Return values from positive branch.
9077 * math/s_cacoshf.c: Likewise.
9078 * math/s_cacoshl.c: Likewise.
9081 * sysvipc/sys/msg.h: Change return value to ssize_t.
9082 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9083 * sysvipc/msgrcv.c: Likewise.
9084 * include/sys/msg.h: Likewise.
9086 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9087 test introduced in patch for bz #661.
9088 (getgrouplist): Simplify code a bit. Don't allocate one additional
9089 element for NEWGROUPS.
9092 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9093 'f', use '1' as leading digit not '\1'.
9094 * stdio-common/Makefile (tests): Add bug16.
9095 * stdio-common/bug16.c: New file.
9098 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9099 and don't try to open it. The patch introducing the macro
9100 contained a bug and used the same file name as the new file
9101 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9102 this out completely.
9105 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9106 Patch by Jerry James <Jerry.James@usu.edu>.
9108 * rt/Makefile (tests): Add tst-clock2.
9109 * rt/tst-clock2.c: New file.
9112 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9113 function and its parameters and pass it to new thread.
9114 (__gai_notify): Add support for alternative waiting for completion.
9115 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9116 waiting for completion.
9117 * resolv/getaddrinfo_a.c: Likewise.
9118 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9119 waiting for completion is used.
9120 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9121 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9122 * resolv/gai_error.c: Likewise.
9123 * resolv/gai_sigqueue.c: Likewise.
9125 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9127 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9128 errno to EBADF and return MACH_PORT_NULL.
9130 2006-06-23 Joseph Myers <joseph@codesourcery.com>
9133 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9135 2006-08-02 Ulrich Drepper <drepper@redhat.com>
9137 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9138 walk them instead of the symbol table.
9140 2006-08-01 Ulrich Drepper <drepper@redhat.com>
9143 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9144 status of NSS calls, not the number of returned entries.
9146 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9147 request_key, keyctl.
9149 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9151 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9153 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9155 * elf/tst-auditmod1.c: Fix typo in #error.
9157 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9159 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9161 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9163 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9165 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9166 that the directory is empty even on non-POSIX filesystems.
9168 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9170 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9172 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9173 the backend NSS module. If backend setgrent call failed, don't have
9174 internal_setgrent fail. Just remember this until it is needed.
9175 * nis/nss_compat/compat-pwd.c: Likewise.
9176 * nis/nss_compat/compat-spwd.c: Likewise.
9178 2006-07-30 Roland McGrath <roland@redhat.com>
9180 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9181 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9182 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9183 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9185 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9186 (nanosleep_not_cancel): New macro.
9187 (sigsuspend_not_cancel): new macro.
9188 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9189 (do_sigsuspend): Define as inline.
9190 (__sigsuspend): Always use do_sigsuspend.
9191 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9192 * include/signal.h: Declare __sigsuspend_nocancel.
9193 * sysdeps/posix/pause.c
9194 [! NO_CANCELLATION] (__pause_nocancel): New function.
9196 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9197 * include/time.h (__nanosleep_nocancel): Likewise.
9199 2006-07-30 Ulrich Drepper <drepper@redhat.com>
9201 * locale/programs/localedef.c (add_to_readlist): Rename local
9202 variables to avoid confusion.
9204 * locale/programs/charmap.c (charmap_read): Emit error message if
9205 charmap couldn't be found or read.
9207 2006-07-28 Ulrich Drepper <drepper@redhat.com>
9209 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9210 __ASSUME_FUTEX_LOCK_PI.
9211 * include/time.h: Declare __nanosleep_nocancel.
9212 * include/unistd.h: Declare __pause_nocancel.
9214 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9215 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9216 get the __stack_chk_fail_local definition when it's needed.
9218 2006-07-26 Ulrich Drepper <drepper@redhat.com>
9220 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9221 * dlfcn/bug-atexit3.c: New file.
9222 * dlfcn/bug-atexit3-lib.cc: New file.
9224 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9225 used when the namespace is not the base namespace.
9227 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
9229 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9230 (__new_exitfn): Bump it in every successful call.
9231 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9232 more exit handlers, call them right away.
9233 * stdlib/exit.h: Declare __new_exitfn_called.
9235 2006-07-25 Ulrich Drepper <drepper@redhat.com>
9237 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9238 calling registered handler.
9240 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9241 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9242 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9243 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9244 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9245 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9246 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9247 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9249 2006-07-10 Ulrich Drepper <drepper@redhat.com>
9251 * elf/dl-lookup.c (dl_new_hash): New functions.
9252 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9253 value here. Compute new-style hash value. Pass new hash value
9254 and reference to variable with the old value to do_lookup_x.
9255 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9256 old-style hash table.
9257 (_dl_debug_bindings): Pass new hash value and reference to variable
9258 with the old value to do_lookup_x.
9259 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9260 new-style hash value and change old-style hash value parameter to
9261 be a reference. Reoganize functions to determine whether
9262 new-style hash table is available. Only fall back on old-style
9263 table. If old-style hash value is needed, compute it here.
9264 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9266 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9267 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
9268 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9269 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9270 * Makeconfig: If linker supports --hash-style option add it to all
9271 linker command lines to build DSOs.
9272 * config.make.in: Define have-hash-style.
9273 * configure.in: Test whether linker supports --hash-style option.
9275 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9276 * sysdeps/generic/ldsodefs.h: Adjust prototype.
9278 2006-06-27 Ulrich Drepper <drepper@redhat.com>
9280 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9283 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9284 RPATH of main map twice.
9286 2006-06-22 Ulrich Drepper <drepper@redhat.com>
9288 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9289 look further, return original strings.
9290 (_nl_find_msg): Do not return found translation if the conversion
9291 failed. Either signal the string is unusable or that something went
9292 wrong and the original should be used.
9294 2006-06-21 Ulrich Drepper <drepper@redhat.com>
9296 * string/_strerror.c (__strerror_r): Add __builtin_expect.
9298 2006-06-14 Jakub Jelinek <jakub@redhat.com>
9301 * misc/insremque.c (insque): Handle prev == NULL.
9302 * misc/Makefile (tests): Add tst-insremque.
9303 * misc/tst-insremque.c: New test.
9305 2006-06-17 Ulrich Drepper <drepper@redhat.com>
9308 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9309 conflict with DL_DST_REQUIRED.
9311 2006-06-16 Ulrich Drepper <drepper@redhat.com>
9313 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9314 match what Solaris does.
9316 2006-06-04 Ulrich Drepper <drepper@redhat.com>
9318 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9319 local_setegid instead of seteuid and setegid.
9320 * sysdeps/generic/local-setxid.h: New file.
9321 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9323 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9325 * string/Makefile (tests): Add bug-envz1.
9326 * string/bug-envz1.c: New file.
9328 2006-06-02 Jakub Jelinek <jakub@redhat.com>
9330 * posix/regex_internal.c (re_string_skip_chars): If no character has
9331 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
9332 to the byte which couldn't be converted.
9333 (re_string_reconstruct): Don't clear valid_raw_len before calling
9334 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9335 tip_context using re_string_context_at.
9336 * posix/Makefile: Add rules to build and run bug-regex25 test.
9337 * posix/bug-regex25.c: New test.
9339 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
9342 * string/envz.c (envz_strip): Correct erroneously reversed src
9343 and dest parameters to memmove() invocation.
9345 2006-05-30 Jakub Jelinek <jakub@redhat.com>
9347 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9348 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9349 to make sure the database has been already invalidated.
9350 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
9351 after the cache has been invalidated. Use pthread_mutex_lock rather
9352 than pthread_mutex_trylock if fd != -1.
9353 * nscd/connections.c (invalidate_cache): Add fd argument, write
9354 response to fd if not calling prune_cache, pass fd to prune_cache.
9355 (handle_request): Adjust invalidate_cache caller.
9356 (nscd_run): Pass -1 as fd to prune_cache.
9358 2006-05-30 Ulrich Drepper <drepper@redhat.com>
9360 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9363 2006-05-29 Ulrich Drepper <drepper@redhat.com>
9365 * nscd/nscd.h (struct database_dyn): Add prunelock field.
9366 * nscd/cache.c (prune_cache): Take prunelock before starting the
9367 work. Just return in case it is already taken.
9368 * nscd/connections.c (dbs): Initialize .prunelock.
9370 2006-05-25 Ulrich Drepper <drepper@redhat.com>
9372 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9373 copying. No need to allocate new array for group members. Just
9374 move the pointers and update the size.
9376 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9377 Avoid memory leak in case realloc fails. Simplification for
9378 better code generation.
9380 Avoid deprecation warning because of libc_hidden_proto for
9382 * inet/inet6_option.c (option_alloc): Renamed from
9383 inet6_option_alloc. Made static.
9384 (inet6_option_alloc): Now a simple wrapper around option_alloc.
9385 (inet6_option_append): Call option_alloc.
9386 * include/netinet/in.h: Remove libc_hidden_proto for
9389 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9390 for cleanup when cb!=NULL [Coverity CID 233].
9392 2006-05-24 Ulrich Drepper <drepper@redhat.com>
9395 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9396 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9397 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9398 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9399 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9400 and inet6_rth_getaddr.
9401 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9403 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9404 Mark inet6_option_* interfaces as deprecated.
9405 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9406 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9407 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9408 inet6_rth_segments, and inet6_rth_getaddr.
9409 * inet/inet6_opt.c: New file.
9410 * inet/inet6_rth.c: New file.
9412 * inet/netinet/icmp6.h: Pretty printing.
9415 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9417 2006-05-23 Ulrich Drepper <drepper@redhat.com>
9419 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9420 doing it all here. When server does not know the answer do not
9421 fail immediate, try parent first.
9423 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9426 2006-05-20 Ulrich Drepper <drepper@redhat.com>
9428 * nis/nis_call.c (__prepare_niscall): New function. Split out
9430 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9432 (__follow_path): New function. Split out from nis_list.
9433 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9435 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9437 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9439 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9440 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9441 from libnsl for version GLIBC_PRIVATE.
9442 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9443 Remove entry parameter from _nss_nisplus_parse_pwent and
9444 _nss_nisplus_parse_grent.
9445 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9446 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9447 again. Rewrite getpwent handling to not use nis_first_entry and
9448 nis_next_entry. Roll out own niscall handling.
9449 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9451 * sunrpc/xdr_rec.c: Fix typo in comment.
9453 2006-05-19 Ulrich Drepper <drepper@redhat.com>
9455 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9458 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9459 to allocate memory for my_pollfd. Better initialization of
9460 cb_is_running. Use TEMP_FAILURE_RETRY.
9462 * malloc/memusage.sh (memusageso): Add quotes.
9463 (memusagestat): Likewise.
9464 * debug/xtrace.sh (pcprofileso): Likewise.
9465 (pcprofiledump): Likewise.
9466 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9468 * malloc/Makefile ($(objpfx)memusage): Likewise.
9470 * nis/nis_callback.c (__nis_create_callback): Calls to
9471 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9472 asprintf call fails.
9474 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9475 no uninitialized memory is passed to sendto.
9477 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9479 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9480 of snprintf+strdup. Handle OOM.
9481 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9482 cb->serv together. Remove now obsolete free calls.
9483 (__nis_destroy_callback): Remove now obsolete free call.
9485 2006-05-18 David Woodhouse <dwmw2@redhat.com>
9487 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9488 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9489 and ULA respectively). Set precedence for IPv4 address to 10 as
9490 defined in RFC3484 for preferring IPv6.
9491 * posix/gai.conf: Update to match the new default tables.
9493 2006-05-18 Jakub Jelinek <jakub@redhat.com>
9495 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9496 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9497 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9498 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9500 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9502 (init_nss_interface): Remove initialization of these variables.
9504 2006-05-18 Ulrich Drepper <drepper@redhat.com>
9506 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9507 nis_free_directory forward to avoid duplication.
9509 2006-05-17 Ulrich Drepper <drepper@redhat.com>
9511 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9512 rec_dirsearch returning NULL.
9513 (first_shoot): Handle __nis_finddirectory returning NULL.
9514 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9516 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9517 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9519 2006-05-17 Jakub Jelinek <jakub@redhat.com>
9521 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9524 2006-05-15 Ulrich Drepper <drepper@redhat.com>
9526 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9528 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9529 * nscd/nscd_getgr_r.c: Likewise.
9531 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9533 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9534 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9536 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9538 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9540 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9542 * include/rpc/auth.h: Mark xdr_des_block_internal and
9543 xdr_opaque_auth_internal as hidden.
9545 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9548 * include/rpc/xdr.h: Mark all _internal functions as hidden.
9550 * misc/getusershell.c (okshells): Don't use static initializers,
9553 * stdlib/fmtmsg.c (keywords): Change type of len element to
9554 uint32_t to not waste space on 64bit machines.
9556 * locale/setlocale.c: Change _nl_category_names into a string.
9557 Add new _nl_category_name_idxs. Change all users.
9558 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9559 Declare _nl_category_name_idxs.
9560 * locale/findlocale.c: Adjust for _nl_category_names change.
9561 * locale/loadlocale.c: Likewise.
9562 * locale/newlocale.c: Likewise.
9563 * intl/dcigettext.c: Likewise.
9565 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9566 (add_alias2): ...here. New function.
9567 (__gconv_read_conf): Simplify builtin alias handling.
9568 (builtin_aliases): Convert to string to avoid relocations.
9569 * iconv/gconv_builtin.h: Add comment about correct formatting.
9571 2006-05-15 Jakub Jelinek <jakub@redhat.com>
9573 * resolv/res_debug.c (loc_ntoa): Make error const.
9575 2006-05-14 Andreas Schwab <schwab@suse.de>
9577 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9579 2006-05-12 Jakub Jelinek <jakub@redhat.com>
9581 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9582 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9585 2006-05-11 Ulrich Drepper <drepper@redhat.com>
9587 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9589 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9591 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9592 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9594 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9595 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9597 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9598 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9601 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9602 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9605 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9606 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9608 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9609 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9611 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9612 * include/rpcsvc/nis_callback.h: New file.
9614 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9615 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9617 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9618 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9620 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9621 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9623 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9624 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9626 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9627 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9630 * nis/nis_xdr.h: Mark all functions as hidden. Remove
9631 __BEGIN_DECLS and __END_DECLS, the header is not installed.
9633 * nis/nis_error.c: Remove table of strings. Use position
9634 independent mechanism.
9635 * nis/nis_error.h: New file.
9637 2006-05-11 Jakub Jelinek <jakub@redhat.com>
9639 * locale/programs/ld-time.c (time_finish): If wide era name or
9640 format aren't provided, set both wname and wformat to L"".
9642 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9644 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9645 results if the call was succesful.
9647 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9649 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9652 2006-05-10 Jakub Jelinek <jakub@redhat.com>
9654 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9656 2006-05-10 Ulrich Drepper <drepper@redhat.com>
9658 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9659 caller makes sure this is not the case.
9660 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
9662 2006-05-09 Ulrich Drepper <drepper@redhat.com>
9664 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9667 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9668 [Coverity CID 229, 230]
9670 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9672 (hol_help): Likewise. [Coverity CID 226, 227]
9674 * string/argz-replace.c (__argz_replace): Unconditionally call
9675 free on SRC. [Coverity CID 225]
9677 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9678 the return value of __nis_default_owner and __nis_default_group,
9679 it has been especially allocated. [Coverity CID 224]
9681 * nis/nis_defaults.c (searchXYX): New functions. Used by both
9682 searchgroup and searchowner. Significantly simplified.
9683 (__nis_default_owner): Remove duplication. Do not locally copy the
9684 string before duplicating it.
9685 (__nis_default_group): Likewise.
9687 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9688 we must clear the variable before calling __nisfind_server.
9690 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9691 nis_getnames. [Coverity CID 223]
9693 * locale/programs/locfile.c (locfile_read): Use alloca instead of
9694 xmalloc to allocate local repertoire name. [Coverity CID 222]
9696 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9697 allocate memory for the input to add_bytes. [Coverity CID 221]
9699 * posix/wordexp.c (w_addword): Free word if realloc fails and it
9700 was allocated here. [Coverity CID 219, 220]
9702 * posix/getconf.c (print_all): Free confstr data after printing.
9705 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9706 list allocation fails. [Coverity CID 215]
9708 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9711 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9712 string is NULL. [Coverity CID 212]
9713 * argp/Makefile: Add rules to build and run bug-argp1.
9714 * argp/bug-argp1.c: New file.
9716 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9718 * stdlib/canonicalize.c (__realpath): Likewise.
9720 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9721 pointer. [Coverity CID 206]
9723 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9724 in statically linked code.
9725 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9726 statically built code, be prepared to have no link map.
9729 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9730 dgettext calls. [Coverity CID 204]
9732 * argp/argp-help.c (struct uparams): Remove valid member. Change
9734 (uparam_names): Reduce size. Avoid relative relocations.
9735 Moved to read-only segment.
9736 (fill_in_uparams): Update for new layout.
9738 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9739 assumed to always be != NULL. [Coverity CID 202]
9741 * argp/argp-help.c (hol_entry_help): Remove some dead code
9744 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9745 away a few more unconditional yperr2nss calls.
9746 (_nss_nis_getservbyname_r): Likewise.
9748 2006-05-06 Ulrich Drepper <drepper@redhat.com>
9750 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9753 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9754 that unused memory passed to sendto is nevertheless initialized.
9757 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9758 possibly unaligned memory accesses.
9760 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9761 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9762 and __putlong respectively. Correct buffer overflow check for
9765 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9767 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9768 (send_dg): Rewrite error handling to be more compact and avoid
9769 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9771 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9773 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9774 instead of ns_get16.
9775 (res_queriesmatch): Likewise. Minor optimization.
9778 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9779 __libc_res_nsend might reallocate the buffer for the answer. In
9780 this case we have to reload the HP pointer.
9782 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9784 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9785 some branch prediction hints.
9787 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9788 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9789 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9790 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9791 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9792 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9793 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9794 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9796 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9798 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9799 by a GOT relocation to make Scrt1.o position independent.
9800 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9802 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9803 six system call parameters.
9804 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9806 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9808 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9811 * sunrpc/svc_udp.c (BZERO): Remove definition.
9813 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9815 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
9816 (des_SPtrans): Use uint32_t type.
9817 (des_skb): Likewise.
9819 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9821 2006-05-05 Jakub Jelinek <jakub@redhat.com>
9824 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9827 2006-05-05 Ulrich Drepper <drepper@redhat.com>
9829 * locale/programs/ld-address.c (address_finish): Fix one more
9830 place where the iso639 array might be accessed beyond the limits.
9832 2006-05-04 Ulrich Drepper <drepper@redhat.com>
9834 * nis/nis_table.c (nis_list): Avoid clearing res twice before
9835 filling it for the first time.
9837 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9839 Free res object content before returning.
9841 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9843 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9846 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9847 cleanup for initial thread, just the free call on TVP.
9849 * nscd/gai.c (__getline): Define.
9852 See ChangeLog.16 for earlier changes.