1 2011-04-10 Ulrich Drepper <drepper@gmail.com>
4 * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
5 * sysdeps/ia64/dl-tls.h: Likewise.
6 * sysdeps/powerpc/dl-tls.h: Likewise.
7 * sysdeps/s390/dl-tls.h: Likewise.
8 * sysdeps/sh/dl-tls.h: Likewise.
9 * sysdeps/sparc/dl-tls.h: Likewise.
10 * sysdeps/x86_64/dl-tls.h: Likewise.
11 * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
13 2011-03-14 Andreas Schwab <schwab@redhat.com>
15 * elf/dl-load.c (_dl_dst_substitute): When skipping the first
16 rpath element also skip the following colon.
17 (expand_dynamic_string_token): Add is_path parameter and pass
18 down to DL_DST_REQUIRED and _dl_dst_substitute.
19 (decompose_rpath): Call expand_dynamic_string_token with
20 non-zero is_path. Ignore empty rpaths.
21 (_dl_map_object_from_fd): Call expand_dynamic_string_token
24 2011-04-07 Andreas Schwab <schwab@redhat.com>
26 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
27 Maintain aligned stack.
28 (CHECK_RSP): Remove unused macro.
30 2011-04-01 Andreas Schwab <schwab@redhat.com>
32 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
35 2011-03-18 Ulrich Drepper <drepper@gmail.com>
38 * posix/fnmatch.c (fnmatch): Check size of pattern in wide
39 character representation.
40 Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
42 2011-03-16 Ryan S. Arnold <rsa@us.ibm.com>
44 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
45 END(__isnan) to END(__isnanf) to match function entry point/label
48 2011-03-10 Jakub Jelinek <jakub@redhat.com>
50 * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
52 2011-03-10 Ulrich Drepper <drepper@gmail.com>
55 * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
56 copy from the symbol referenced in the relocation to initialize the
58 Patch by Piotr Bury <pbury@goahead.com>.
60 2011-03-06 Ulrich Drepper <drepper@gmail.com>
62 * elf/dl-load.c (_dl_map_object): If we are looking for the first
63 to-be-loaded object along a path to loader is ld.so.
65 2011-03-03 Andreas Schwab <schwab@redhat.com>
67 * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
69 2011-02-23 Andreas Schwab <schwab@redhat.com>
70 Ulrich Drepper <drepper@gmail.com>
73 * include/link.h (struct link_map): Add l_orig_initfini.
74 * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75 returning unsuccessfully.
76 * elf/dl-close.c (_dl_close_worker): If this is the last explicit
77 close of a file loaded at startup, restore the original l_initfini
79 * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
80 list, store the pointer.
81 * elf/Makefile ($(objpfx)noload-mem): New rule.
83 (tests): Add $(objpfx)noload-mem.
84 * elf/noload.c: Include <memcheck.h>.
85 (main): Call mtrace. Close all opened handles.
87 2011-02-17 Andreas Schwab <schwab@redhat.com>
90 * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
91 dependencies are missing.
93 2011-02-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
95 Fix __if_freereq crash: Unlike the generic version which uses free,
97 * sysdeps/mach/hurd/ifreq.h: New file.
99 2011-01-27 Petr Baudis <pasky@suse.cz>
100 Ulrich Drepper <drepper@gmail.com>
103 * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
105 * stdio-common/bug23.c: New file.
106 * stdio-common/Makefile (tests): Add bug23.
108 2011-02-16 Ryan S. Arnold <rsa@us.ibm.com>
110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
111 (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
113 * sysdeps/wordsize-64/Makefile: New file. Add tst-writev to
115 * sysdeps/wordsize-64/tst-writev.c: New file.
117 2011-02-15 Ryan S. Arnold <rsa@us.ibm.com>
119 * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
120 -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
121 insns in _dl_start to prevent a TOC reference before relocs are
124 2011-02-11 Jakub Jelinek <jakub@redhat.com>
126 * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
127 arginfo fn returning -1.
129 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
130 and thousands string is zero terminated.
132 2011-02-02 Ulrich Drepper <drepper@gmail.com>
134 * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
135 function to the callback.
136 Patch partly by Jiri Olsa <jolsa@redhat.com>.
138 2011-02-02 Andreas Schwab <schwab@redhat.com>
140 * shadow/sgetspent.c: Check return value of __sgetspent_r instead
143 2010-10-01 Andreas Schwab <schwab@redhat.com>
145 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
146 decoding ACE if AI_CANONIDN.
148 2011-01-17 Ulrich Drepper <drepper@gmail.com>
150 * io/fcntl.h: Define AT_NO_AUTOMOUNT.
152 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
154 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
155 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
156 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
157 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
158 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
159 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
161 * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
163 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
165 2011-01-15 Ulrich Drepper <drepper@gmail.com>
168 * nscd/hstcache.c (tryagain): Define.
169 (cache_addhst): Return tryagain not notfound for temporary errors.
170 (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
173 2011-01-13 Ulrich Drepper <drepper@gmail.com>
176 * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
180 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
181 temporary buffer used to handle multi lookups locally.
182 * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
184 2011-01-12 Ulrich Drepper <drepper@gmail.com>
186 * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
189 2010-03-12 Andreas Schwab <schwab@redhat.com>
191 * elf/dl-dst.h: Include "trusted-dirs.h".
192 (DL_DST_REQUIRED): Take $LIB into account.
194 2011-01-10 Paul Pluzhnikov <ppluzhnikov@google.com>
196 * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
199 2011-01-12 Ulrich Drepper <drepper@gmail.com>
202 * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
203 characters. When rounding increased number of integer digits recompute
205 * stdio-common/tst-grouping.c: New file.
206 * stdio-common/Makefile: Add rules to build and run tst-grouping.
208 2011-01-04 David S. Miller <davem@sunset.davemloft.net>
211 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
212 implementation just like for lxstat, fxstatat, et al.
214 2010-12-27 Jim Meyering <meyering@redhat.com>
217 * posix/regexec.c (build_trtable): Return failure indication upon
218 calloc failure. Otherwise, re_search_internal could infloop on OOM.
220 2010-12-25 Ulrich Drepper <drepper@gmail.com>
223 * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
225 2010-12-19 Ulrich Drepper <drepper@gmail.com>
227 * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
229 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
230 GETDENTS_64BIT_ALIGNED.
232 2010-12-10 Andreas Schwab <schwab@redhat.com>
234 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
235 * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
237 (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
238 (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
240 2010-12-09 Ulrich Drepper <drepper@gmail.com>
243 * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
246 2010-12-09 Jakub Jelinek <jakub@redhat.com>
248 * string/bits/string3.h (memmove, bcopy): Remove __restrict.
250 2010-11-30 Ulrich Drepper <drepper@gmail.com>
252 * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
254 2010-11-24 Andreas Schwab <schwab@redhat.com>
256 * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
258 (gaih_getanswer_slice): Likewise.
260 2010-05-31 Petr Baudis <pasky@suse.cz>
263 * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
264 silently even in the chroot mode.
266 2010-05-31 Petr Baudis <pasky@suse.cz>
269 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
270 initialization of skip_initgroups_dyn.
272 2010-09-27 Andreas Schwab <schwab@redhat.com>
275 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
276 Mask out sign-bit copies when constructing f_fsid.
278 2010-11-19 Ulrich Drepper <drepper@gmail.com>
280 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
281 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
283 2010-11-16 Ulrich Drepper <drepper@gmail.com>
285 * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
287 2010-11-11 Andreas Schwab <schwab@redhat.com>
289 * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
290 * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
291 (tst-fnmatch-ENV): Set MALLOC_TRACE.
292 ($(objpfx)tst-fnmatch-mem): New rule.
293 (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
294 * posix/tst-fnmatch.c (main): Call mtrace.
296 2010-08-09 Ulrich Drepper <drepper@redhat.com>
299 * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
300 * posix/fnmatch_loop.c: Likewise.
302 2010-11-10 Luis Machado <luisgpm@br.ibm.com>
304 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
307 2010-11-08 Ulrich Drepper <drepper@gmail.com>
310 * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
311 * sysdeps/x86_64/bits/byteswap.h: Likewise.
313 2010-09-06 Andreas Schwab <schwab@redhat.com>
315 * manual/Makefile: Don't mix pattern rules with normal rules.
317 2010-08-12 Andreas Schwab <schwab@redhat.com>
320 * locale/programs/locale.c (print_assignment): New function.
321 (show_locale_vars): Use it.
323 2010-10-26 Ulrich Drepper <drepper@gmail.com>
325 * elf/rtld.c (dl_main): Move assertion after the point where rtld map
326 is added to the list.
328 2010-10-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
329 Ulrich Drepper <drepper@gmail.com>
331 * elf/dl-object.c (_dl_new_object): Don't append the new object to
332 the global list here. Move code to...
333 (_dl_add_to_namespace_list): ...here. New function.
334 * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
335 * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
336 * elf/dl-load.c (lose): Don't remove the element from the list.
337 (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
338 (_dl_map_object): Likewise.
340 2010-10-24 Ulrich Drepper <drepper@redhat.com>
343 * malloc/malloc.c (_int_free): Fill correct number of bytes when
346 2010-09-09 Andreas Schwab <schwab@redhat.com>
348 * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
349 (sysd-rules-targets): Remove duplicates.
350 * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
351 rtld-%.$o dependency.
353 2010-10-18 Andreas Schwab <schwab@redhat.com>
355 * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
356 _dl_map_object do it.
358 2010-10-15 Andreas Schwab <schwab@redhat.com>
360 * scripts/data/localplt-s390-linux-gnu.data: New file.
361 * scripts/data/localplt-s390x-linux-gnu.data: New file.
363 2010-10-12 Ulrich Drepper <drepper@redhat.com>
366 * posix/regcomp.c (parse_branch): One more memory leak plugged.
367 * posix/bug-regex31.input: Add test case.
369 2010-10-11 Ulrich Drepper <drepper@gmail.com>
371 * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
372 * posix/bug-regex31.input: New file.
375 * posix/regcomp.c (parse_branch): Free memory when allocation failed.
376 (parse_sub_exp): Fix last change, use postorder.
378 * posix/bug-regex31.c: New file.
379 * posix/Makefile: Add rules to build and run bug-regex31.
381 * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
384 * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
387 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
390 2010-09-15 Joseph Myers <joseph@codesourcery.com>
392 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
393 implementing getdents64 using getdents syscall, set d_type if
394 __ASSUME_GETDENTS32_D_TYPE.
396 2010-09-14 Andreas Schwab <schwab@redhat.com>
398 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
399 variables after CHECK_SP call.
400 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
402 2010-09-08 Chung-Lin Tang <cltang@codesourcery.com>
403 Ulrich Drepper <drepper@redhat.com>
406 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
407 (____longjmp_chk): Use %ebx for saving value across system call.
410 2010-08-31 Mike Frysinger <vapier@gentoo.org>
412 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
413 (epoll_create1): Declare.
415 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
417 2010-08-31 Andreas Schwab <schwab@redhat.com>
420 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
421 shifting retval into place.
423 2010-09-14 Ulrich Drepper <drepper@redhat.com>
425 * resolv/res_init.c (__res_vinit): Count the default server we added.
427 2010-08-25 Ulrich Drepper <drepper@redhat.com>
430 * resolv/res_init.c (__res_vinit): When no server address at all
431 is given default to loopback.
433 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
435 * sysdeps/i386/elf/Makefile: New file.
437 2010-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
439 * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
440 when converting to ms.
442 2010-07-29 Roland McGrath <roland@redhat.com>
445 * manual/locale.texi (Yes-or-No Questions): Fix example code.
447 2010-07-27 Andreas Schwab <schwab@redhat.com>
449 * manual/memory.texi (Malloc Tunable Parameters): Document
452 2010-07-26 Roland McGrath <roland@redhat.com>
455 * configure.in (-fgnu89-inline check): Set and substitute
456 gnu89_inline, not libc_cv_gnu89_inline.
457 * configure: Regenerated.
458 * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
460 2010-07-20 Roland McGrath <roland@redhat.com>
462 * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
463 dl_hwcap_mask as well as dl_hwcap. Without this, dsocaps matching in
464 ld.so.cache was broken. With it, there is no way to disable dsocaps
465 like LD_HWCAP_MASK can disable hwcaps.
467 2010-07-05 Roland McGrath <roland@redhat.com>
469 * manual/arith.texi (Rounding Functions): Fix rint description
470 implicit in round description.
472 2010-07-02 Ulrich Drepper <drepper@redhat.com>
474 * elf/Makefile: Fix linking for a few tests to make recent linker
477 2010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
479 * hurd/lookup-at.c (__file_name_lookup_at): Accept
480 AT_SYMLINK_FOLLOW in AT_FLAGS. Fail with EINVAL if both
481 AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
483 * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
484 * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
486 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
489 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Round
490 __x86_64_data_cache_size_half, __x86_64_data_cache_size
491 __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
492 to multiple of 256 bytes.
494 2010-11-03 Ulrich Drepper <drepper@gmail.com>
497 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
498 of inacessible symlinks. Verify result of symlink before returning it.
499 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
500 Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
502 2010-10-25 Ulrich Drepper <drepper@redhat.com>
505 * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
506 into all bytes of SSE register.
507 Patch by Richard Li <richardpku@gmail.com>.
509 2010-10-22 Andreas Schwab <schwab@redhat.com>
511 * include/dlfcn.h (__RTLD_SECURE): Define.
512 * elf/dl-load.c (_dl_map_object): Remove preloaded parameter. Use
513 mode & __RTLD_SECURE instead.
514 (open_path): Rename preloaded parameter to secure.
515 * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
516 * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
517 * elf/dl-deps.c (openaux): Likewise.
518 * elf/rtld.c (struct map_args): Remove is_preloaded.
519 (map_doit): Don't use it.
521 (do_preload): Use __RTLD_SECURE instead of is_preloaded.
522 (dlmopen_doit): Add __RTLD_SECURE to mode bits.
524 2010-10-06 Ulrich Drepper <drepper@gmail.com>
526 * string/bug-strstr1.c: New file.
527 * string/Makefile: Add rules to build and run bug-strstr1.
529 2010-10-05 Eric Blake <eblake@redhat.com>
532 * string/str-two-way.h (two_way_long_needle): Always clear memory
533 when skipping input due to the shift table.
535 2010-10-03 Ulrich Drepper <drepper@gmail.com>
538 * malloc/mcheck.c: Handle large requests.
541 * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
542 for strncmp and strncasecmp.
543 * string/stratcliff.c: Add tests for strcmp and strncmp.
544 * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
546 2010-06-02 Kirill A. Shutemov <kirill@shutemov.name>
548 * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
551 2010-06-02 Andreas Schwab <schwab@redhat.com>
553 * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
555 2010-06-07 Jakub Jelinek <jakub@redhat.com>
557 * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
558 __REDIRECT followed by __THROW.
559 * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
560 * posix/getopt.h (getopt): Likewise.
562 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
565 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
566 Properly check family and model.
568 2010-05-26 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
570 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
572 2010-05-21 Ulrich Drepper <drepper@redhat.com>
574 * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
577 2010-05-19 Andreas Schwab <schwab@redhat.com>
579 * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
582 2010-05-21 Andreas Schwab <schwab@redhat.com>
584 * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
585 * sunrpc/clnt_udp.c (clntudp_control): Likewise.
586 * sunrpc/clnt_unix.c (clntunix_control): Likewise.
588 2010-05-12 Andrew Stubbs <ams@codesourcery.com>
590 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
591 exceptions. Return 0.
593 2010-05-07 Roland McGrath <roland@redhat.com>
595 * elf/ldconfig.c (main): Add a const.
597 2010-05-04 Andreas Schwab <schwab@redhat.com>
599 * posix/regexec.c (find_collation_sequence_value): Fix skipping
600 the wide char sequence of the collating element.
602 2010-05-03 Ulrich Drepper <drepper@redhat.com>
605 * elf/ldconfig.c (search_dir): Fix handling of symlinks in chroot.
607 * elf/chroot_canon.c (chroot_canon): Use xmalloc and xrealloc.
609 * elf/ldconfig.c (parse_conf_include): Don't fall back to
610 directories named in config file outside the chroot.
612 2010-05-02 Ulrich Drepper <drepper@redhat.com>
614 * misc/mntent_r.c (encode_name): The slow loop handles newlines so we
615 should recognize them as an abort condition.
616 Patch by Jan Lieskovsky <jlieskov@redhat.com>.
618 2010-04-25 Bruno Haible <bruno@clisp.org>
621 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Use __ttyname_r's return
622 value instead of errno.
623 * sysdeps/unix/getlogin.c (getlogin): Likewise.
626 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Upon failure, return
629 2010-04-24 Emilio Pozuelo Monfort <pochu27@gmail.com>
631 * hurd/lookup-at.c (__file_name_lookup_at): Fix error return value.
633 2010-04-14 Andreas Schwab <schwab@redhat.com>
635 * elf/dl-version.c (_dl_check_map_versions): Avoid index overflow
636 when dependencies are missing.
638 2010-04-09 Ulrich Drepper <drepper@redhat.com>
640 * nscd/aicache.c (addhstaiX): Correct passing memory to address
641 list to gethostbyname4_r functions.
643 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Optimize
646 2010-04-07 Andreas Schwab <schwab@redhat.com>
648 * sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
649 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
651 2009-12-01 Eric Blake <ebb9@byu.net>
654 * posix/getopt.c (_getopt_internal_r): Skip optional - or + before
655 checking lead byte of optstring for :.
658 * posix/getopt.c (_getopt_internal_r): Reject '-;' as short
659 option, since it conflicts with "W;" optstring extension.
661 2009-12-02 Eric Blake <ebb9@byu.net>
664 * posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
665 to '--foo', with optional argument or non-ambiguous prefix.
667 2010-04-05 Ulrich Drepper <drepper@redhat.com>
670 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Handle
671 timeouts from servers.
674 * elf/ldconfig.c (main): Respect chroot setting when looking for
677 2010-04-04 Ulrich Drepper <drepper@redhat.com>
680 * posix/getopt.c (_getopt_internal_r): Fix arguments printed in error
684 * resolv/netdb.h: Declare iruserok and iruserok_af.
686 * argp/Makefile: Add rules to build and run bug-argp2.
687 * argp/bug-argp2.c: New file.
689 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
692 * argp/argp-parse.c (convert_options): Fix improper use of `|'
693 between character values.
695 2010-04-04 Ulrich Drepper <drepper@redhat.com>
698 * csu/Makefile ($(objpfx)version-info.h): Handle newer kernel headers
699 which don't define UTS_RELEASE.
701 2010-04-04 H.J. Lu <hongjiu.lu@intel.com>
702 Ulrich Drepper <drepper@redhat.com>
705 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Allow
706 concurrent initialization and use of __cpu_features.
708 2010-04-04 Ulrich Drepper <drepper@redhat.com>
710 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add tag to
713 2010-04-03 Ulrich Drepper <drepper@redhat.com>
716 * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
717 which include unnecessary padding in d_reclen.
718 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
722 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
723 unknown interface, return -1.
724 (getifaddrs_internal): Rename from getifaddrs. Handle errors in
725 map_newlink be returning -EAGAIN.
726 (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
729 2010-04-03 Ulrich Drepper <drepper@redhat.com>
732 * posix/gai.conf: Document problems with IPv4 site-local addresses and
736 * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
737 small_tables_initialized.
739 * malloc/malloc.c (set_max_fast): Fix computation of the value.
741 2010-03-25 Andreas Schwab <schwab@redhat.com>
743 * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
746 2010-03-25 Andreas Schwab <schwab@redhat.com>
748 * sysdeps/posix/cuserid.c: Fix typo.
750 2010-03-24 Ulrich Drepper <drepper@redhat.com>
753 * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
755 Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
757 2010-03-02 Richard Guenther <rguenther@suse.de>
759 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
762 2010-02-24 Ulrich Drepper <drepper@redhat.com>
765 * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
766 undoing the stream because _IO_FINISH doesn't report failures.
769 * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
770 (public_pVALLOc): Likewise.
771 Patch by Petr Baudis.
773 2010-02-22 Jim Meyering <meyering@redhat.com>
775 * manual/math.texi (BSD Random): Fix a typo: s/are/is/
777 * manual/charset.texi: Adjust grammar.
779 * manual/errno.texi (Error Messages): Fix doubled-words and typos.
780 * manual/charset.texi (Selecting the Conversion): Likewise.
781 * manual/getopt.texi (Getopt Long Options): Likewise.
782 * manual/memory.texi (Resizing the Data Segment): Likewise.
783 * manual/message.texi (GUI program problems): Likewise.
784 * manual/resource.texi (CPU Affinity): Likewise.
785 * manual/stdio.texi (Streams and Threads): Likewise.
786 * manual/time.texi (High Accuracy Clock): Likewise.
788 2010-02-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
790 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
791 instructions cu21 and cu24. Add well-formedness checking
792 parameter and adjust the software implementation.
793 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
795 2010-02-10 Ulrich Drepper <drepper@redhat.com>
798 * io/ftw.c (ftw_startup): Close descriptor for initial directory
799 after changing back to it.
801 2010-02-09 Ulrich Drepper <drepper@redhat.com>
803 * sysdeps/i386/lshift.S: Fix unwind information.
805 2010-02-03 Ulrich Drepper <drepper@redhat.com>
808 * misc/getusershell.c (initshells): Allocate one more byte in input
809 buffer so that fgets doesn't loop undefinitely.
811 2010-01-25 Andreas Schwab <schwab@redhat.com>
813 * iconv/iconv_prog.c (write_output): Fix check for open failure.
815 2010-01-22 Ulrich Drepper <drepper@redhat.com>
818 * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
819 mmap resource problem. Patch by Joe Landers <jlanders@vmware.com>.
821 2010-01-22 Jim Meyering <jim@meyering.net>
824 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
825 detection test. Patch by Paul Eggert.
828 * posix/regex_internal.c (re_string_realloc_buffers):
829 Detect and handle internal overflow. Patch by Paul Eggert
831 2010-01-20 Andreas Schwab <schwab@redhat.com>
833 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
834 (CHECK_SP): Fix check for alternate stack.
835 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
836 (CHECK_SP): Likewise.
838 2010-01-19 Ulrich Drepper <drepper@redhat.com>
841 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
843 2010-01-18 Andreas Schwab <schwab@redhat.com>
845 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
848 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
851 2010-01-14 Ulrich Drepper <drepper@redhat.com>
853 * bits/confname.h: Make pre-C99-safe.
855 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
858 * sysdeps/ia64/memchr.S: Don't read beyond the last byte
861 2010-03-25 Ryan S. Arnold <rsa@us.ibm.com>
863 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
864 redundant and incorrect else block which overwrites current line
865 with the partial next line.
867 2010-01-14 Ulrich Drepper <drepper@redhat.com>
870 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
871 re_node_set_insert failure; return REG_ESPACE.
872 Patch by Paul Eggert.
874 2010-01-06 Ulrich Drepper <drepper@redhat.com>
876 * dirent/dirent.h: Fix typo in feature selection macro use.
878 2009-12-15 Ulrich Drepper <drepper@redhat.com>
880 * include/link.h (struct link_map): Move l_used into its own word.
881 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
883 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
886 2009-12-10 Ulrich Drepper <drepper@redhat.com>
889 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
890 *herrnop before returning.
891 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
893 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
894 TRYAGAIN errors separately.
895 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
896 *name4_r after functions.
898 2009-11-24 Ulrich Drepper <drepper@redhat.com>
900 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
902 * sysdeps/unix/sysv/linux/grantpt.c: New file.
903 * login/programs/pt_chown.c (main): Don't print message on errors
904 when doing real work.
906 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
907 irel relocations split out from...
908 (__libc_csu_init): ...here.
909 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
911 2009-11-22 Ulrich Drepper <drepper@redhat.com>
913 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
915 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
918 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
919 than software pipeline. Properly recover from shorter read.
921 2009-11-16 Jakub Jelinek <jakub@redhat.com>
923 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
924 Implement using sync_file_range2 syscall if __NR_sync_file_range2
926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
929 2009-11-19 Ulrich Drepper <drepper@redhat.com>
932 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
933 initialized before using it.
934 (_IO_putwc_unlocked): Likewise.
937 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
938 in cast to not throw away const-ness of parameters.
939 (__CPU_EQUAL_S): Likewise.
940 (__CPU_OP_S): Likewise.
942 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
944 * posix/bug-regex30.c: New file.
945 * posix/Makefile: Add rules to build and run bug-regex30.
946 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
947 character lead bytes when there is a range in a COMPLEX_BRACKET.
948 Reported by Oleg Bylatov.
950 2009-11-17 Ulrich Drepper <drepper@redhat.com>
953 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
954 * locale/tst-duplocale.c: New file.
955 * locale/Makefile (tests): Add tst-duplocale.
958 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
959 Patch by Bruno Haible <bruno@clisp.org>.
960 * locale/tst-locname.c: New file.
961 * locale/Makefile (tests): Add tst-locname.
964 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
965 constants from recent kernels.
966 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
967 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
968 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
969 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
970 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
971 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
973 2009-11-09 Mike Frysinger <vapier@gentoo.org>
975 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
976 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
977 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
979 2009-11-06 Mike Frysinger <vapier@gentoo.org>
981 * posix/bug-regex29.c: Include stdio.h.
983 2009-11-14 Ulrich Drepper <drepper@redhat.com>
985 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
986 F_GETOWN_EX definitions according to corrected kernel definitions.
987 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
988 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
989 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
990 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
991 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
992 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
994 2009-11-10 Andreas Schwab <schwab@redhat.com>
996 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
998 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
999 map_v4v6_hostent running out of space.
1001 2009-11-10 Ulrich Drepper <drepper@redhat.com>
1003 * string/bits/string3.h (memset): If the second parameter is constant
1004 and zero there is likely no transposition.
1005 Patch by Caolan McNamara <caolanm@redhat.com.
1007 2009-11-04 Philippe De Muyter <phdm@macqel.be>
1009 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1010 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1012 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
1014 * malloc/memusagestat.c (main): Fix spelling in an error message.
1016 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
1018 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1019 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1021 2009-11-03 Andreas Schwab <schwab@redhat.com>
1023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1026 2009-11-03 Jakub Jelinek <jakub@redhat.com>
1028 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1029 relocate opd entry when resolving prelink conflicts.
1031 2009-11-04 Jakub Jelinek <jakub@redhat.com>
1033 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1034 when -D_FILE_OFFSET_BITS=64.
1036 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1037 of last two arguments when -D_FILE_OFFSET_BITS=64.
1038 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1039 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1040 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1041 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1042 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1043 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1045 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
1048 * sysdeps/generic/libgcc_s.h: New file.
1049 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1051 2009-11-01 Ulrich Drepper <drepper@redhat.com>
1053 * malloc/hooks.c (free_check): Restore locking and call _int_free
1056 2009-10-30 Ulrich Drepper <drepper@redhat.com>
1058 * version.h (VERSION): Bump for 2.11 release.
1059 * include/features.h (__GLIBC_MINOR__): Bump to 11.
1061 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1063 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1065 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1067 * stdlib/tst-strtoll.c (tests): Likewise.
1070 * time/strftime_l.c (__strftime_internal): Allow %OC.
1072 * misc/mkostemps.c: New file.
1073 * misc/mkostemps64.c: New file.
1075 2009-10-30 Andreas Schwab <schwab@redhat.com>
1077 * locale/programs/locale-spec.c: Include <error.h> and
1080 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1082 2009-10-28 Roland McGrath <roland@redhat.com>
1084 * Makefile (dist-prepare): New target.
1085 (tag-for-dist): Target removed.
1086 (glibc-%.tar): Pattern rule removed.
1087 (%.tar): New pattern rule, does simple use of git archive.
1088 (dist-version): Remove variable definition.
1089 (dist): Just depend on that. Add .tar.xz dependency.
1090 If dist-version variable not set on command line, depend on
1091 dist-prepare, re-invoke with dist-version set via git describe.
1093 * Makerules (%.xz): New pattern rule.
1095 2009-10-28 Alan Modra <amodra@bigpond.net.au>
1097 * elf/ifuncdep2.c: Include ifunc-sel.h.
1099 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1100 * elf/ifuncmain1.c (global): Delete.
1101 * elf/ifuncmain1vis.c: Likewise.
1102 * elf/ifuncmain2.c: Likewise.
1103 * elf/ifuncmain5.c: Likewise.
1104 * elf/ifuncmod3.c: Likewise.
1105 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1106 (foo_ifunc): Use ifunc_one.
1107 * elf/ifuncmain7.c: Likewise.
1108 * elf/ifuncmod1.c: Include ifunc-sel.h.
1109 (global): Define protected var.
1110 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1111 * elf/ifuncmod5.c: Likewise.
1112 * sysdeps/generic/elf/ifunc-sel.h: New file.
1113 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1115 2009-07-30 Alan Modra <amodra@bigpond.net.au>
1117 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1118 (R_PPC_REL16*): Correct comments.
1119 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1120 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1121 R_PPC64_REL16_HA): Define.
1122 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1123 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1124 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1125 Delete unused "reloc" param.
1126 (__process_machine_rela): Handle R_PPC_IRELATIVE.
1127 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1128 Delete "reloc" param.
1129 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1131 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1132 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1135 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
1138 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1139 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1140 UDP_ENCAP_L2TPINUDP.
1143 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1144 parameter, specifying length of prefix.
1145 * stdio-common/tempname.c: Likewise.
1146 * include/stdio.h: Adjust prototypes.
1147 * libio/oldtmpfile.c: Adjust caller.
1148 * misc/mkdtemp.c: Likewise.
1149 * misc/mkostemp.c: Likewise.
1150 * misc/mkostemp64.c: Likewise.
1151 * misc/mkstemp.c: Likewise.
1152 * misc/mkstemp64.c: Likewise.
1153 * misc/mktemp.c: Likewise.
1154 * stdio-common/tempnam.c: Likewise.
1155 * stdio-common/tmpfile.c: Likewise.
1156 * stdio-common/tmpnam.c: Likewise.
1157 * stdio-common/tmpnam_r.c: Likewise.
1158 * misc/mkstemps.c: New file.
1159 * misc/mkstemps64.c: New file.
1160 * stdlib/stdlib.h: Add prototypes.
1161 * misc/Makefile (routines): Add mkstemps and mkstemps64.
1162 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1164 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1166 * locale/iso-639.def: Add sml entry.
1169 * resolv/res_send.c (send_dg): Initialize resplen.
1172 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1173 definition to the kernel's.
1174 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1176 2009-08-18 Anders Johansson <ajohansson@novell.com>
1178 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1179 offsets and record sizes in assert()s and response sending.
1180 * nscd/grpcache.c: Likewise.
1181 * nscd/hstcache.c: Likewise.
1182 * nscd/initgrcache.c: Likewise.
1183 * nscd/pwdcache.c: Likewise.
1185 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1188 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1189 /etc/hosts does not exist set errnop and herrnop appropriately.
1190 Patch by Steve Langasek <vorlon@debian.org>.
1193 * malloc/malloc.c (malloc_info): Fix typos in format strings.
1194 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1197 * login/utmp_file.c (TIMEOUT): Increase to 10.
1200 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1201 for file names in case the syscall is not available.
1202 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1203 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1204 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1205 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1206 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1207 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1208 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1209 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1210 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1211 * sysdeps/unix/sysv/linux/openat.c: Likewise.
1212 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1213 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1214 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1215 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1216 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1217 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1218 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1221 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1222 creation filed, remove the request from the 'requests' list and signal
1223 the caller that the request is finished.
1226 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1227 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
1230 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1231 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
1234 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1235 overflows the int return type.
1238 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
1239 have to compute maxsize_total, we have to update the variables, and
1240 the also_total handling must happen after the repair.
1243 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1244 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1246 2009-10-27 Andreas Schwab <schwab@redhat.com>
1248 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1249 errno is always set when returning unsuccessfully.
1251 2009-10-29 Andreas Schwab <schwab@redhat.com>
1253 * malloc/memusage.c (update_data): Fix index wraparound handling
1254 so that buffer_cnt is actually reset.
1256 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1259 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1260 of the directory we look at into the static buffer if there is one
1261 at the start of the loop.
1264 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1265 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1268 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1269 __ASSUME_F_GETOWN_EX.
1270 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1272 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1274 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1276 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1277 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1278 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1279 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1280 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1281 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1284 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1288 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1289 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
1291 2009-10-24 Joseph Myers <joseph@codesourcery.com>
1293 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1295 2009-10-27 Jakub Jelinek <jakub@redhat.com>
1298 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1299 Reported by Ray Chason.
1301 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
1303 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1305 * sysdeps/x86_64/multiarch/strchr.S: New file.
1306 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1307 * sysdeps/x86_64/multiarch/strrchr.S: New file.
1309 2009-10-21 Andreas Schwab <schwab@redhat.com>
1311 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1313 2009-10-19 Andreas Schwab <schwab@redhat.com>
1315 * include/math.h: Add hidden protos for __exp/__expf/__expl.
1316 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1317 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1318 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1319 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1320 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1321 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1322 __ieee751_expl to handle overflow.
1324 2009-10-14 David S. Miller <davem@davemloft.net>
1326 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1327 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1329 2009-10-13 Andreas Schwab <schwab@redhat.com>
1331 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1334 2009-10-08 Ulrich Drepper <drepper@redhat.com>
1337 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1338 Patch in part by Steve Ward <planet36@gmail.com>.
1341 * stdlib/rand_r.c: Fix typo.
1343 * po/cs.po: Update from translation team.
1345 2009-10-06 Andreas Schwab <schwab@redhat.com>
1347 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1348 returning if RTLD_NOLOAD.
1350 2009-10-06 Roland McGrath <roland@redhat.com>
1352 * sysdeps/x86_64/multiarch/strstr-c.c
1353 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1355 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1356 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1358 * sysdeps/x86_64/multiarch/init-arch.h
1359 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1360 (HAS_CPU_FEATURE): New macro.
1361 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1362 * sysdeps/x86_64/multiarch/init-arch.c
1363 (__get_cpu_features): #undef it before definition.
1365 2009-10-05 Andreas Schwab <schwab@redhat.com>
1367 * locale/C-time.c: Revert week-1stday back to 19971130 and set
1368 first_weekday to 1 and first_workday to 2.
1370 2009-10-01 Ulrich Drepper <drepper@redhat.com>
1372 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1374 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1375 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1376 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1377 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1378 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1379 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1381 2009-09-28 Andreas Schwab <schwab@redhat.com>
1383 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1384 * stdio-common/vfprintf.c: Likewise.
1386 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1388 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1389 (mkdirat): Call __directory_name_split_at instead of
1390 __directory_name_split.
1392 2009-09-28 Ulrich Drepper <drepper@redhat.com>
1394 * locale/programs/locale-spec.c (locale_special): If nothing matches
1395 fail with an appropriate message.
1397 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
1399 * configure.in: Exclude binutils 2.X. Support binutils 2.100
1402 2009-09-25 Andreas Schwab <schwab@redhat.com>
1404 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1405 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1407 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1409 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1411 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
1413 * iconvdata/iso646.c (gconv_init): Correctly initialize the
1414 character size elements in step data.
1416 2009-09-20 Ulrich Drepper <drepper@redhat.com>
1418 * po/hu.po: Update from translation team.
1419 * po/vi.po: Likewise.
1421 2009-09-19 Roland McGrath <roland@redhat.com>
1423 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1425 2009-09-15 Roland McGrath <roland@redhat.com>
1427 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1428 * nptl/sysdeps/pthread/configure: Regenerated.
1429 * nptl/sysdeps/x86_64/configure: Regenerated.
1430 * sysdeps/unix/sysv/linux/configure: Regenerated.
1431 * sysdeps/x86_64/elf/configure: Regenerated.
1433 * Makefile (autoconf-it): Set execute bit only on top-level configure.
1435 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1436 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1437 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1438 * configure: Regenerated.
1440 2009-09-09 Ulrich Drepper <drepper@redhat.com>
1442 * posix/getconf.c (main): Handle -- on command line.
1444 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
1446 * configure.in: Support binutils 2.100 and 3.0.
1448 2009-09-08 Jakub Jelinek <jakub@redhat.com>
1450 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1451 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1452 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1453 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1455 2009-09-07 Ulrich Drepper <drepper@redhat.com>
1457 * locale/programs/ld-collate.c (struct locale_collate_t): Add
1458 unnamed_section_defined field.
1459 (collate_read): Test and set unnamed_section_defined.
1461 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1464 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
1466 * configure.in: Support binutils 2.20.
1468 2009-09-03 Ulrich Drepper <drepper@redhat.com>
1470 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1471 __strstr_ia32): Add attribute_hidden.
1473 2009-09-01 Andreas Schwab <schwab@redhat.com>
1475 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1476 parsing of group entry.
1478 2009-09-02 Andreas Schwab <schwab@redhat.com>
1480 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1481 external buffer. Always discard readahead in internal buffer.
1482 * libio/Makefile (tests): Add bug-wsetpos.
1483 * libio/bug-wsetpos.c: New file.
1485 2009-09-02 Jakub Jelinek <jakub@redhat.com>
1487 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1488 Add attribute_hidden.
1489 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1490 __strcasestr_sse2): Likewise.
1491 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1492 (__fma_fma): Make static.
1493 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1494 (__fmaf_fma): Make static.
1496 2009-08-31 Andreas Schwab <schwab@redhat.com>
1498 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1499 reformulate in-buffer optimisation check to match code in
1500 _IO_new_file_seekoff.
1502 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
1504 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1505 to srwi in 32-bit memcpy for power6.
1507 2009-09-01 Andreas Schwab <schwab@redhat.com>
1509 * include/stdio.h: Declare hidden proto for fflush.
1510 * libio/iofflush.c: Add hidden weak alias for fflush.
1512 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1514 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1515 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1517 2009-08-31 Andreas Schwab <schwab@redhat.com>
1519 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1521 2009-08-31 Ulrich Drepper <drepper@redhat.com>
1524 * malloc/malloc.c: Add local assert definition to avoid problems with
1525 memory allocation in the real one.
1527 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
1529 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1531 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1532 turn off SSSE3 on Atom.
1534 2009-08-28 Ulrich Drepper <drepper@redhat.com>
1536 * stdlib/tst-strtol.c (tests): More tests.
1537 * stdlib/tst-strtoll.c (tests): Likewise.
1539 2009-08-26 Ulrich Drepper <drepper@redhat.com>
1541 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1543 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1545 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1547 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1548 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1550 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1552 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1554 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1556 2009-08-25 Joseph Myers <joseph@codesourcery.com>
1558 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1560 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1562 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1563 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1565 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1567 * sysdeps/x86_64/fpu/s_signbit.S: New file.
1568 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1570 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1571 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1573 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1574 leftover YMM_SIZE definition.
1576 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1578 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1580 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1581 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1583 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1585 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1586 and SET_FLOAT_WORD definitions.
1588 2009-08-24 Roland McGrath <roland@redhat.com>
1590 * sysdeps/unix/syscall-template.S: New file.
1591 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1592 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1593 (compile-syscall): Pass mkdep and -g options as normal.
1594 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1595 (common-generated): Don't add them here.
1597 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1599 * math/s_fdim.c: In case of overflows set errno.
1600 * math/s_fdimf.c: Likewise.
1601 * math/s_fdiml.c: Likewise.
1603 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1604 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1605 are using the inline optimizations.
1607 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1608 (__signbitf): Likewise.
1610 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1612 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1614 * posix/Makefile (tests): Add bug-regex29.
1615 * posix/bug-regex29.c: New file.
1617 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1618 older POSIX versions are selected.
1620 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1622 * stdio-common/printf_fphex.c: Likewise.
1623 * stdio-common/tstdiomisc.c: Add more tests.
1625 * locale/locale.h: Include xlocale.h and the thread-local locale
1626 declarations for XPG7, not XPG6.
1628 2009-08-21 Andreas Schwab <schwab@redhat.com>
1630 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1631 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1634 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1635 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1637 2009-08-20 Roland McGrath <roland@redhat.com>
1639 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1640 Use l_addr instead of l_map_start (dli_fbase).
1641 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1642 address when there is no proximate symbol.
1643 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1646 2009-08-16 Ulrich Drepper <drepper@redhat.com>
1648 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1650 2009-08-14 Ulrich Drepper <drepper@redhat.com>
1652 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1653 Also handle SIGINT. In that case only do the cleanup and then
1654 re-raise the signal.
1655 (main): Install handler for SIGINT.
1657 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1659 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1662 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1664 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1665 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1667 (tests): Add tst-audit6 tst-audit7.
1668 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1669 tst-auditmod7a tst-auditmod7b.
1670 ($(objpfx)tst-audit6): New.
1671 ($(objpfx)tst-audit6.out): Likewise.
1672 ($(objpfx)tst-audit7): Likewise.
1673 ($(objpfx)tst-audit7.out): Likewise.
1674 (tst-audit6-ENV): Likewise.
1675 (tst-audit7-ENV): Likewise.
1676 (CFLAGS-tst-auditmod6b.c): Likewise.
1677 (CFLAGS-tst-auditmod6c.c): Likewise.
1678 (CFLAGS-tst-auditmod7b.c): Likewise.
1679 * elf/tst-audit6.c: New file.
1680 * elf/tst-audit7.c: New file.
1681 * elf/tst-auditmod6a.c: New file.
1682 * elf/tst-auditmod6b.c: New file.
1683 * elf/tst-auditmod6c.c: New file.
1684 * elf/tst-auditmod7a.c: New file.
1685 * elf/tst-auditmod7b.c: New file.
1686 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1687 saving and restoring SSE/AVX registers to ...
1688 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1690 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1692 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1693 only if SHARED is defined.
1694 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1696 2009-08-03 Jim Meyering <meyering@redhat.com>
1698 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1700 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1702 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1703 section as the other functions for this architecture.
1704 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1706 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1708 * sysdeps/x86_64/strcmp.S: Add support to compile with
1709 USE_SSSE3. In this case palignr is used.
1710 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1711 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1712 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1713 Add strcmp-ssse3 and strncmp-ssse3.
1714 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1715 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1717 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1718 warning through fake initialization.
1720 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1722 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1724 2009-08-07 Andreas Schwab <schwab@redhat.com>
1726 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1729 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1731 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1732 EBX from EAX = 1. Handle EAX = 11.
1734 2009-08-07 Andreas Schwab <schwab@redhat.com>
1736 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1739 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1741 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1742 hidden IFUNC functions.
1743 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1745 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1747 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1748 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1750 (CFLAGS-strcspn-c.c): Define.
1751 (CFLAGS-strpbrk-c.c): Define.
1752 (CFLAGS-strspn-c.c): Define.
1753 (CFLAGS-strstr.c): Define.
1754 (CFLAGS-strcasestr.c): Define.
1755 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1756 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1757 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1758 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1759 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1760 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1761 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1762 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1763 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1764 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1765 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1766 -16L instead of 0xfffffffffffffff0L.
1767 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1769 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1771 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1773 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1775 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1776 another rewrite. Much smaller and faster.
1777 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1779 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1780 ss_flags from the correct location.
1782 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1784 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1785 * sysdeps/i386/i686/cacheinfo.c: New file.
1786 * sysdeps/i386/i686/multiarch/Makefile: New file.
1787 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1788 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1789 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1790 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1791 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1792 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1793 (__cpuid_count): New. Provide the default.
1794 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1795 (__x86_64_preferred_memory_instruction): Define only if
1796 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1797 (intel_check_word): Use __cpuid.
1798 (handle_intel): Likewise.
1799 (handle_amd): Likewise.
1800 (__cache_sysconf): Likewise.
1801 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1802 (__cache_sysconf): Likewise.
1803 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1804 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1805 (get_common_indeces): Use __cpuid.
1806 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1807 if ENABLE_SSSE3_ON_ATOM is not defined.
1808 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1809 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1810 popcnt instead of popcntq.
1812 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1814 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1816 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1818 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1819 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1820 which always causes a compile error.
1822 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1824 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1826 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1827 which always causes a compile error.
1829 * debug/Makefile (tests): Add tst-longjmp_chk2.
1830 * debug/tst-longjmp_chk2.c: New file.
1832 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1833 Remove incorrect use of BP_SYM.
1834 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1835 here now since it is more complex than just a simple check.
1837 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1838 we make no more progress.
1840 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1842 * math/s_fma.c: Don't define alias if __fma is a macro.
1843 * math/s_fmaf.c: Likewise.
1844 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1845 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1846 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1848 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1849 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1851 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1853 * include/libc-symbols.h (libm_ifunc): Define.
1854 * sysdeps/x86_64/multiarch/Versions: New file.
1856 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1858 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1860 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1862 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1864 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1865 call that registers used in calling conventions need to be preserved.
1866 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1867 to preserve register content if necessary.
1868 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1869 (_dl_x86_64_restore_sse): New function.
1870 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1871 is allowed to modify xmm/ymm registers.
1873 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1874 application's perspective.
1875 * stdio-common/scanf17.c: Likewise.
1877 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1879 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1881 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1883 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1884 two steps to catch bugs.
1886 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1888 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1889 determines which files are used in runtime lookups and only checks
1891 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1893 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1894 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1895 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1898 * elf/dl-open.c: Move _dl_scope_free to...
1899 * elf/dl-scope.c: ...here. New file.
1900 * elf/Makefile (dl-routines): Add scope.
1902 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1903 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1905 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1906 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1907 all the places we handled RES_USE_EDNS0 only before.
1908 Patch by Adam Tkac <atkac@redhat.com>.
1910 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1912 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1913 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1914 Update size when reallocating.
1916 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1918 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1919 functions used in ld.so modify xmm/ymm registers.
1920 * sysdeps/x86_64/Makefile: Hook new test up.
1921 * sysdeps/x86_64/rtld-memchr.c: New file.
1922 * sysdeps/x86_64/rtld-memcmp.c: New file.
1923 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1924 * sysdeps/x86_64/rtld-strchr.S: New file.
1925 * sysdeps/x86_64/rtld-strlen.S: New file.
1926 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1927 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1929 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1931 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1933 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1941 (next_8_bytes): Likewise.
1942 (Byte0): Remove commented out codes.
1943 (unaligned_table): Align jump table at 8 bytes.
1944 Add _sse4_2 to all labels. Always include "../strcmp.S".
1945 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1946 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1947 * sysdeps/x86_64/strncmp.S: New file.
1949 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1952 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1953 kernels, dropped when eventfd2 support was added.
1954 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1955 kernels, dropped when signalfd4 support was added.
1956 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1960 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1963 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1965 2009-07-25 Ulrich Drepper <drepper@redhat.com>
1967 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1968 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1971 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1972 callback we must touch the status to avoid using stale value.
1974 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1977 2009-07-24 Ulrich Drepper <drepper@redhat.com>
1979 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1980 /lib/modules/* headers anymore. We have sane headers in the standard
1983 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1985 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1986 "etf3enh" and "highgprs" added.
1987 (_dl_s390_platforms): "z10" added.
1988 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1989 Increased for the new entries.
1990 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1991 HWCAP_S390_HIGH_GPRS added.
1993 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1994 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1995 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1996 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1997 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1999 2009-07-23 Ulrich Drepper <drepper@redhat.com>
2001 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2002 avoid additional cpuid instructions. Most of the information is
2005 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2007 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2009 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2010 SSSE3 bit for Atoms.
2011 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2014 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2015 structure before copying it to avoid warning.
2016 * posix/tst-rfc3484-2.c (do_test): Likewise.
2017 * posix/tst-rfc3484-3.c (do_test): Likewise.
2020 * include/unistd.h: Make header file suitable for C++ test cases.
2021 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2023 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2024 stack alignment in the exit code.
2026 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2027 potentially be zero.
2029 * elf/tst-unique1.c: Extend test to check for unloading DSO with
2030 unique symbol definition.
2031 Patch by Jakub Jelinek.
2032 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2033 make sure the object with the definition cannot be unloaded. Adjust
2035 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2036 the unique symbol hash table should not be const.
2038 2009-07-21 Ulrich Drepper <drepper@redhat.com>
2040 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
2041 unnecesary variables. Comment fixes.
2043 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2045 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2046 Use NONASCII_CASE information provided by the locale to determine
2047 whether optimized string load function can be used. Minor cleanups.
2049 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
2051 * string/strcasestr.c (STRCASESTR): New macro.
2052 (__strcasestr): Renamed to ..
2053 (STRCASESTR): ...this.
2054 * string/strstr.c (STRSTR): New macro.
2055 (strstr): Renamed to ..
2057 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2058 strstr-c strcasestr-c
2059 (CFLAGS-strstr.c): New.
2060 (CFLAGS-strcasestr.c): Likewise.
2061 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2062 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2063 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2064 * sysdeps/x86_64/multiarch/strstr.c: New file.
2066 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2068 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2069 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2070 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2071 _NL_CTYPE_NONASCII_CASE.
2072 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2074 (ctype_finish): Check whether there are any 8-bit characters outside
2075 the range ASCII has or whether the mapping isn't the same as for
2076 ASCII (±0x20). Set nonascii_case appropriately.
2077 (ctype_output): Add output handler for nonascii_case.
2079 2009-07-17 Ulrich Drepper <drepper@redhat.com>
2081 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2082 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2084 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2087 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2088 0xffff in the EDNS0 record.
2090 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2092 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2093 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2094 is written before the list head update.
2095 Patch by Andreas Schwab <aschwab@redhat.com>.
2097 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2098 Jakub Jelinek <jakub@redhat.com>
2100 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2101 corruption thread-safe.
2103 2009-07-13 Jakub Jelinek <jakub@redhat.com>
2105 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2106 overrides atomic_compare_and_exchange_val_rel, define to
2107 atomic_compare_and_exchange_val_rel by default, otherwise default
2108 to catomic_compare_and_exchange_val_acq.
2109 (catomic_compare_and_exchange_bool_rel): If arch overrides
2110 atomic_compare_and_exchange_bool_rel, define to
2111 atomic_compare_and_exchange_bool_rel by default.
2112 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2113 Use catomic_compare_and_exchange_val_rel instead of
2114 catomic_compare_and_exchange_val_acq.
2116 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2118 * sysdeps/generic/ldsodefs.h: Add prototype for
2119 _dl_higher_prime_number.
2120 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2122 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2123 restoring of ymm registers a bit.
2125 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
2127 * sysdeps/x86_64/memcmp.S: New file.
2129 2009-07-15 Ulrich Drepper <drepper@redhat.com>
2131 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2132 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
2133 pointers in writable memory.
2135 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
2137 * config.h.in: Add HAVE_AVX_SUPPORT entry.
2138 * config.make.in: Add config-cflags-avx entry.
2139 * configure.in: Substitute libc_cv_cc_avx.
2140 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2141 * elf/tst-audit4.c: New file.
2142 * elf/tst-audit5.c: New file.
2143 * elf/tst-auditmod4a.c: New file.
2144 * elf/tst-auditmod4b.c: New file.
2145 * elf/tst-auditmod5a.c: New file.
2146 * elf/tst-auditmod5b.c: New file.
2147 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2149 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2150 (La_x86_64_vector): Likewise.
2151 (La_x86_64_regs): Append lr_vector.
2152 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2153 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2154 saving and restoring SSE registers to ...
2155 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2156 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2158 (_dl_runtime_profile): Use LR_SIZE to allocate space for
2159 La_x86_64_regs. Allocate extra space and jump to memory at
2160 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2161 (save_and_restore_vector_sse): New.
2162 (save_and_restore_vector_avx): Likewise.
2163 (check_avx): Likewise.
2164 (save_and_restore_vector): Likewise.
2165 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2167 * sysdeps/x86_64/link-defines.sym: New file.
2169 2009-07-10 Ulrich Drepper <drepper@redhat.com>
2171 * elf/do-lookup.h: Removed after folding content into...
2172 * elf/dl-lookup.c: ...here.
2174 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2176 2009-07-09 Ulrich Drepper <drepper@redhat.com>
2178 * configure.in: Check for gnu_unique_symbol symbol type.
2179 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2180 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2181 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
2182 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2184 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2185 unique symbol table.
2186 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2187 for first namespace.
2188 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2189 unique symbol hash table.
2190 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2191 * elf/tst-unique1.c: New file.
2192 * elf/tst-unique1mod1.c: New file.
2193 * elf/tst-unique1mod2.c: New file.
2194 * elf/tst-unique2.c: New file.
2195 * elf/tst-unique2mod1.c: New file.
2196 * elf/tst-unique2mod2.c: New file.
2198 2009-07-07 Ulrich Drepper <drepper@redhat.com>
2200 * elf/elf.h (STB_GNU_UNIQUE): Define.
2202 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
2204 * include/inline-hashtab.h: ...here.
2205 (htab_expand): Adjust for renamed function. Correct memory handling.
2207 2009-07-06 Ulrich Drepper <drepper@redhat.com>
2209 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2211 2009-07-03 Andreas Schwab <aschwab@redhat.com>
2213 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2214 (PPC_FEATURE_HAS_VSX): Likewise.
2216 2009-07-03 Ulrich Drepper <drepper@redhat.com>
2218 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2219 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2221 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2222 aligned to 16 byte boundaries.
2223 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2224 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2225 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2227 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
2229 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2230 * config.make.in (config-cflags-sse4): New variable.
2231 * configure.in: Substitute libc_cv_cc_sse4.
2232 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2234 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2235 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2236 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2237 * sysdeps/x86_64/multiarch/strcspn.S: New file.
2238 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2239 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2240 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2241 * sysdeps/x86_64/multiarch/strspn.S: New file.
2243 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
2245 * elf/Makefile (distribute): Remove tst-audit.sh. Add
2246 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2247 (tests): Add tst-audit3 for x86_64.
2248 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2249 ($(objpfx)tst-audit3): Define.
2250 ($(objpfx)tst-audit3.out): Define.
2251 (tst-audit3-ENV): Define.
2252 * elf/tst-audit3.c: New file.
2253 * elf/tst-auditmod3a.c: New file.
2254 * elf/tst-auditmod3b.c: New file.
2255 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2258 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
2259 (__stpncpy): Renamed to ...
2261 (stpncpy): Create alias only if STPNCPY is not defined.
2262 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
2264 (strncpy): Renamed to ...
2266 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2267 stpncpy-c strncpy-c for string.
2268 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2269 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2270 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2271 * sysdeps/x86_64/multiarch/strcpy.S: New file.
2272 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2273 * sysdeps/x86_64/multiarch/strncpy.S: New file.
2275 2009-07-02 Ulrich Drepper <drepper@redhat.com>
2277 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2278 adding to fast bin list.
2280 2009-07-01 Ulrich Drepper <drepper@redhat.com>
2282 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2283 inet_makeaddr. This worked only with class-based networks.
2284 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2287 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2288 recognize all types.
2289 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2290 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
2291 be in host byte order.
2293 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
2295 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2296 (MODEL_OFFSET): Define.
2297 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2299 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2300 out common code into new function get_common_indeces. Determine
2301 extended family and model for Intel processors.
2303 2009-06-26 Ulrich Drepper <drepper@redhat.com>
2305 * resolv/resolv.h: Define RES_SNGLKUPREOP.
2306 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2308 * resolv/res_send.c (reopen): New function. Broken out of...
2309 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
2310 fallback mechanism. If single-request fails switch to
2311 single-request-reopen mode which opens a new socket for the second
2314 2009-06-25 Andreas Schwab <aschwab@redhat.com>
2316 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2319 2009-06-24 Andreas Schwab <aschwab@redhat.com>
2321 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2322 for saved registers.
2323 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2324 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2325 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2327 2009-06-23 Andreas Schwab <aschwab@redhat.com>
2329 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2331 2009-06-22 Ulrich Drepper <drepper@redhat.com>
2333 * po/id.po: Update from translation team.
2335 * po/bg.po: Update from translation team.
2337 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
2339 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
2341 (strncmp): Renamed to STRNCMP.
2342 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2343 strncmp-c for string.
2344 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2345 * sysdeps/x86_64/multiarch/strcmp.S: New file.
2346 * sysdeps/x86_64/multiarch/strncmp.S: New file.
2347 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2349 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
2351 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2352 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2353 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2354 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2355 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2357 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2358 ifuncmain7static, and ifuncmain7picstatic.
2359 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2360 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2361 $(objpfx)ifuncmain7pie.out.
2362 (modules-names): Add ifuncmod5 ifuncmod6
2363 (ifuncmod5.so-no-z-defs): Define.
2364 (ifuncmod6.so-no-z-defs): Define.
2365 (CFLAGS-ifuncmain5pic.c): Define.
2366 (CFLAGS-ifuncmain5picstatic.c): Define.
2367 (CFLAGS-ifuncmain5staticpic.c): Define.
2368 (CFLAGS-ifuncdep5pic.c): Define.
2369 (CFLAGS-ifuncmain7pic.c): Define.
2370 (CFLAGS-ifuncmain7picstatic.c): Define.
2371 (CFLAGS-ifuncmain1staticpie.c): Define.
2372 (CFLAGS-ifuncmain5pie.c): Define.
2373 (CFLAGS-ifuncmain6pie.c): Define.
2374 (CFLAGS-ifuncmain7pie.c): Define.
2375 ($(objpfx)ifuncmain1staticpie.out): Define.
2376 ($(objpfx)ifuncmain1staticpie): Define.
2377 ($(objpfx)ifuncmain5pie.out): Define.
2378 ($(objpfx)ifuncmain5pie): Define.
2379 ($(objpfx)ifuncmain6pie.out): Define.
2380 ($(objpfx)ifuncmain6pie): Define.
2381 ($(objpfx)ifuncmain5): Define.
2382 ($(objpfx)ifuncmain5pic): Define.
2383 ($(objpfx)ifuncmain5static): Define.
2384 ($(objpfx)ifuncmain5staticpic): Define.
2385 ($(objpfx)ifuncmain5picstatic): Define.
2386 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2387 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2389 * elf/b/elf/ifuncmain1staticpie.c: New file.
2390 * elf/ifuncdep5.c: New file.
2391 * elf/ifuncdep5pic.c: New file.
2392 * elf/ifuncmain5.c: New file.
2393 * elf/ifuncmain5pic.c: New file.
2394 * elf/ifuncmain5picstatic.c: New file.
2395 * elf/ifuncmain5pie.c: New file.
2396 * elf/ifuncmain5static.c: New file.
2397 * elf/ifuncmain5staticpic.c: New file.
2398 * elf/ifuncmain6pie.c: New file.
2399 * elf/ifuncmain7.c: New file.
2400 * elf/ifuncmain7pic.c: New file.
2401 * elf/ifuncmain7picstatic.c: New file.
2402 * elf/ifuncmain7pie.c: New file.
2403 * elf/ifuncmain7static.c: New file.
2404 * elf/ifuncmod5.c: New file.
2405 * elf/ifuncmod6.c: New file.
2407 2009-06-20 Ulrich Drepper <drepper@redhat.com>
2410 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2411 (nss_endgrent): New variable.
2412 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2413 fields. Change type of files to bool and adjust all users.
2414 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2415 (internal_endgrent): Call nss_endgrent if necessary.
2416 (add_group): New function. Broken out of...
2417 (check_and_add_group): ...here.
2418 (getgrent_next_nss): Remove test that any callback is available.
2419 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2420 callback. If there is no blacklist we can trust the results returned
2421 by the initgroups_dyn callback. In case there is a callback and we
2422 find a group entry for the group ID but it doesn't contain the
2423 correct member, switch to the slow mode and use getgrent_r.
2424 (internal_getgrent_r): When we see a +: entry, determine whether
2425 there is any callback and which we can use the initgroups_dyn
2428 2009-06-18 Ulrich Drepper <drepper@redhat.com>
2430 * malloc/malloc.c (_int_malloc): Add some consistency checks.
2431 (_int_free): Likewise.
2433 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2435 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2436 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2437 and ARPHRD_IEEE802154_PHY.
2439 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2440 relative to generic Linux version.
2442 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2444 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2445 ($(objpfx)ifuncmain1vispie): Likewise.
2447 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2449 * login/Makefile: Build pt_chown as PIE.
2451 2009-06-15 Andreas Schwab <aschwab@redhat.com>
2453 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2455 * elf/sln.c (usage): Likewise.
2456 * malloc/memusage.sh (do_help): Likewise.
2457 * nss/getent.c (more_help): Likewise.
2458 * posix/getconf.c (main): Likewise.
2459 * sunrpc/rpcinfo.c (usage): Likewise.
2460 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2462 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2464 * login/programs/pt_chown.c: Use libcap to drop privileges other than
2466 * login/Makefile: If necessary link pt_chown with -lcap.
2467 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2468 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2470 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2472 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2474 * string/test-memchr.c (do_random_tests): Test very large lengths
2477 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2479 * Makeconfig (+link-pie): Define.
2480 (+prectorS): Define.
2481 (+postctorS): Define.
2482 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2483 * nscd/Makefile ($(objpfx)nscd): Likewise.
2485 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
2488 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2490 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2492 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2494 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2496 * sysdeps/unix/grantpt.c: ...here.
2498 2009-06-15 Ulrich Drepper <drepper@redhat.com>
2500 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2501 chmod if it is necessary.
2504 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2505 when the slave device is in devpts or devfs.
2508 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2511 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2512 of nd_opt_home_agent_info_preference to uint16_t.
2513 Patch by Arnaud Ebalard <arno@natisbad.org>.
2516 * nss/getent.c: Add support for printing gshadow data.
2519 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2520 not just the currently used one and those which follow.
2521 Patch by Joe Landers <jlanders@vmware.com>.
2524 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2525 * libio/Makefile: Run tst-fgetwc with necessary envvar.
2526 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2529 * stdlib/abort.c: Define variable __abort_msg.
2530 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2531 * include/stdlib.h: Declare __abort_msg.
2532 * assert/assert-perr.c: Don't free buffer for message immediately.
2533 Store atomically in __abort_msg and free old buffer if necessary.
2534 * assert/assert.c: Likewise.
2535 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2536 store pointer in __abort_msg, and possibly free old string.
2537 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2539 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2542 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2543 handle leap seconds if they are available.
2544 Patch by Akinori Hattori <hattya@gentoo.org>.
2546 * timezone/tzselect.ksh: Update from tzcode2009i.
2547 * timezone/zdump.c: Likewise.
2548 * timezone/zic.c: Likewise.
2550 * timezone/africa: Update from tzdata2009i.
2551 * timezone/antarctica: Likewise.
2552 * timezone/asia: Likewise.
2553 * timezone/australasia: Likewise.
2554 * timezone/backward: Likewise.
2555 * timezone/etcetera: Likewise.
2556 * timezone/europe: Likewise.
2557 * timezone/factory: Likewise.
2558 * timezone/iso3166.tab: Likewise.
2559 * timezone/leapseconds: Likewise.
2560 * timezone/northamerica: Likewise.
2561 * timezone/pacificnew: Likewise.
2562 * timezone/solar87: Likewise.
2563 * timezone/solar88: Likewise.
2564 * timezone/solar89: Likewise.
2565 * timezone/southamerica: Likewise.
2566 * timezone/systemv: Likewise.
2567 * timezone/yearistype: Likewise.
2568 * timezone/zone.tab: Likewise.
2570 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2572 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2573 STT_GNU_IFUNC symbol or in 8 into type_class.
2575 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2576 instead of Elf64_Addr.
2578 2009-06-14 Ulrich Drepper <drepper@redhat.com>
2580 * po/sv.po: Update from translation team.
2583 * misc/sys/select.h (__NFDBITS): Expression should have type int.
2584 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2585 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
2588 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2590 * Versions.def: Add GLIBC_2.11 for libpthread.
2592 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2594 * resolv/res_send.c (send_dg): Remember we switched to
2595 single-request mode.
2597 2009-06-09 Ulrich Drepper <drepper@redhat.com>
2599 * dlfcn/dlfcn.h: Remove comma at end of enum.
2600 Patch by J.H.M. Dassen <rdassen@redhat.com>.
2602 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2603 parsing mode string.
2605 2009-06-05 Ulrich Drepper <drepper@redhat.com>
2607 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2609 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2611 * sysdeps/x86_64/multiarch/strlen.S: New file.
2612 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2613 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2614 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2617 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2620 2009-06-04 Ulrich Drepper <drepper@redhat.com>
2622 * sysdeps/x86_64/strlen.S: Minor optimizations.
2624 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2626 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2627 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2628 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2629 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2630 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2631 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2632 ifuncmain3.c, ifuncmod3.c,.
2633 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2634 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2635 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2636 ifuncmain4picstatic.
2637 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2638 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2639 ifuncmain3, ifuncmain4.
2640 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2641 $(objpfx)ifuncmain1vispie.out.
2642 (modules-names): Add ifuncmod1 ifuncmod3.
2643 (generated): Add ifuncmain1pie ifuncmain1pie.out
2644 ifuncmain1vispie ifuncmain1vispie.out.
2645 Define rules to build and run the tests.
2646 * elf/ifuncdep1.c: New file.
2647 * elf/ifuncdep1pic.c: New file.
2648 * elf/ifuncdep2.c: New file.
2649 * elf/ifuncdep2pic.c: New file.
2650 * elf/ifuncmain1.c: New file.
2651 * elf/ifuncmain1pic.c: New file.
2652 * elf/ifuncmain1picstatic.c: New file.
2653 * elf/ifuncmain1pie.c: New file.
2654 * elf/ifuncmain1static.c: New file.
2655 * elf/ifuncmain1staticpic.c: New file.
2656 * elf/ifuncmain1vis.c: New file..
2657 * elf/ifuncmain1vispic.c: New file..
2658 * elf/ifuncmain1vispie.c: New file.
2659 * elf/ifuncmain2.c: New file.
2660 * elf/ifuncmain2pic.c: New file.
2661 * elf/ifuncmain2picstatic.c: New file.
2662 * elf/ifuncmain2static.c: New file.
2663 * elf/ifuncmain3.c: New file.
2664 * elf/ifuncmain4.c: New file.
2665 * elf/ifuncmain4picstatic.c: New file.
2666 * elf/ifuncmain4static.c: New file.
2667 * elf/ifuncmod1.c: New file.
2668 * elf/ifuncmod3.c: New file.
2670 2009-06-03 Ulrich Drepper <drepper@redhat.com>
2672 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2674 2009-06-02 Ulrich Drepper <drepper@redhat.com>
2677 * posix/Makefile (routines): Add execvpe.
2678 * posix/Versions: Export execvpe for GLIBC_2.11.
2679 * posix/execvp.c: Now only a wrapper. Move code to...
2680 * posix/execvpe.c: ...here. New file.
2681 * posix/unistd.h: Declare execvpe.
2683 2009-06-01 Ulrich Drepper <drepper@redhat.com>
2685 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2686 for STT_GNU_IFUNC handling for efficiency.
2687 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2689 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2691 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2693 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2695 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2698 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2700 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2702 (__rela_iplt_start): New declaration.
2703 (__rela_iplt_end): Likewise.
2704 (__rel_iplt_start): Likewise.
2705 (__rel_iplt_end): Likewise.
2706 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2707 * elf/elf.h (R_386_IRELATIVE): New macro.
2708 (R_X86_64_IRELATIVE): New macro.
2709 (R_386_NUM): Updated.
2710 (R_X86_64_NUM): Likewise.
2711 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2712 (libc_ifunc_hidden_def): New macro.
2713 * sysdeps/generic/dl-irel.h: New file.
2714 * sysdeps/i386/dl-irel.h: New file.
2715 * sysdeps/x86_64/dl-irel.h: New file.
2716 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2717 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2718 Handle R_386_IRELATIVE.
2719 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2720 (elf_machine_lazy_rela): Likewise.
2721 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2723 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2725 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2727 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2728 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2729 are no differences. If an architecture has bits in CPUID index 1
2730 meaning different things the values for the COMMON_CPUID_INDEX_1
2731 index must not be set.
2732 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2733 (HAS_POPCOUNT): ...this. New macro.
2734 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2735 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2736 to set the value for Intel and AMD architectures.
2737 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2738 INTEL_CPUID_INDEX_1.
2739 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2742 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2744 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2747 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2749 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2750 (__expm1l): Set errno to ERANGE on overflow.
2751 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2752 (__tanl): Set errno to EDOM for ±Inf.
2753 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2754 (__cosl): Set errno to EDOM for ±Inf.
2755 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2756 (__sinl): Set errno to EDOM for ±Inf.
2758 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2760 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2761 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2762 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2764 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2766 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2768 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2770 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2772 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2773 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2774 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2775 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2777 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2778 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2779 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2781 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2782 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2784 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2786 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2787 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2788 is, either do nothing at all if __ASSUME_ACCEPT4, or
2789 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2790 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2791 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2793 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2794 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2795 internal_accept4 in socket directory.
2797 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2799 * sysdeps/ia64/configure.in: New file.
2801 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2804 * sysdeps/ia64/memchr.S: Use speculative load.
2806 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2807 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2810 * sysdeps/i386/__longjmp.S: Add .text.
2811 * sysdeps/x86_64/__longjmp.S: Likewise.
2813 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2815 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2816 __ASSUME_ACCEPT4 for IA-64.
2818 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2820 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2822 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2823 (SOCKOP_accept4): Define.
2825 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2827 Sun approved the change of the license.
2828 * sunrpc/auth_des.c: Replace license text.
2829 * sunrpc/auth_none.c: Likewise.
2830 * sunrpc/auth_unix.c: Likewise.
2831 * sunrpc/authdes_prot.c: Likewise.
2832 * sunrpc/authuxprot.c: Likewise.
2833 * sunrpc/bindrsvprt.c: Likewise.
2834 * sunrpc/clnt_gen.c: Likewise.
2835 * sunrpc/clnt_perr.c: Likewise.
2836 * sunrpc/clnt_raw.c: Likewise.
2837 * sunrpc/clnt_simp.c: Likewise.
2838 * sunrpc/clnt_tcp.c: Likewise.
2839 * sunrpc/clnt_udp.c: Likewise.
2840 * sunrpc/clnt_unix.c: Likewise.
2841 * sunrpc/des_crypt.c: Likewise.
2842 * sunrpc/des_soft.c: Likewise.
2843 * sunrpc/get_myaddr.c: Likewise.
2844 * sunrpc/getrpcport.c: Likewise.
2845 * sunrpc/key_call.c: Likewise.
2846 * sunrpc/key_prot.c: Likewise.
2847 * sunrpc/openchild.c: Likewise.
2848 * sunrpc/pm_getmaps.c: Likewise.
2849 * sunrpc/pm_getport.c: Likewise.
2850 * sunrpc/pmap_clnt.c: Likewise.
2851 * sunrpc/pmap_prot.c: Likewise.
2852 * sunrpc/pmap_prot2.c: Likewise.
2853 * sunrpc/pmap_rmt.c: Likewise.
2854 * sunrpc/rpc/auth.h: Likewise.
2855 * sunrpc/rpc/auth_unix.h: Likewise.
2856 * sunrpc/rpc/clnt.h: Likewise.
2857 * sunrpc/rpc/des_crypt.h: Likewise.
2858 * sunrpc/rpc/key_prot.h: Likewise.
2859 * sunrpc/rpc/netdb.h: Likewise.
2860 * sunrpc/rpc/pmap_clnt.h: Likewise.
2861 * sunrpc/rpc/pmap_prot.h: Likewise.
2862 * sunrpc/rpc/pmap_rmt.h: Likewise.
2863 * sunrpc/rpc/rpc.h: Likewise.
2864 * sunrpc/rpc/rpc_des.h: Likewise.
2865 * sunrpc/rpc/rpc_msg.h: Likewise.
2866 * sunrpc/rpc/svc.h: Likewise.
2867 * sunrpc/rpc/svc_auth.h: Likewise.
2868 * sunrpc/rpc/types.h: Likewise.
2869 * sunrpc/rpc/xdr.h: Likewise.
2870 * sunrpc/rpc_clntout.c: Likewise.
2871 * sunrpc/rpc_cmsg.c: Likewise.
2872 * sunrpc/rpc_common.c: Likewise.
2873 * sunrpc/rpc_cout.c: Likewise.
2874 * sunrpc/rpc_dtable.c: Likewise.
2875 * sunrpc/rpc_hout.c: Likewise.
2876 * sunrpc/rpc_main.c: Likewise.
2877 * sunrpc/rpc_parse.c: Likewise.
2878 * sunrpc/rpc_parse.h: Likewise.
2879 * sunrpc/rpc_prot.c: Likewise.
2880 * sunrpc/rpc_sample.c: Likewise.
2881 * sunrpc/rpc_scan.c: Likewise.
2882 * sunrpc/rpc_scan.h: Likewise.
2883 * sunrpc/rpc_svcout.c: Likewise.
2884 * sunrpc/rpc_tblout.c: Likewise.
2885 * sunrpc/rpc_util.c: Likewise.
2886 * sunrpc/rpc_util.h: Likewise.
2887 * sunrpc/rpcinfo.c: Likewise.
2888 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2889 * sunrpc/rpcsvc/key_prot.x: Likewise.
2890 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2891 * sunrpc/rpcsvc/mount.x: Likewise.
2892 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2893 * sunrpc/rpcsvc/rex.x: Likewise.
2894 * sunrpc/rpcsvc/rstat.x: Likewise.
2895 * sunrpc/rpcsvc/rusers.x: Likewise.
2896 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2897 * sunrpc/rpcsvc/spray.x: Likewise.
2898 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2899 * sunrpc/rtime.c: Likewise.
2900 * sunrpc/svc.c: Likewise.
2901 * sunrpc/svc_auth.c: Likewise.
2902 * sunrpc/svc_authux.c: Likewise.
2903 * sunrpc/svc_raw.c: Likewise.
2904 * sunrpc/svc_run.c: Likewise.
2905 * sunrpc/svc_simple.c: Likewise.
2906 * sunrpc/svc_tcp.c: Likewise.
2907 * sunrpc/svc_udp.c: Likewise.
2908 * sunrpc/svc_unix.c: Likewise.
2909 * sunrpc/svcauth_des.c: Likewise.
2910 * sunrpc/xcrypt.c: Likewise.
2911 * sunrpc/xdr.c: Likewise.
2912 * sunrpc/xdr_array.c: Likewise.
2913 * sunrpc/xdr_float.c: Likewise.
2914 * sunrpc/xdr_mem.c: Likewise.
2915 * sunrpc/xdr_rec.c: Likewise.
2916 * sunrpc/xdr_ref.c: Likewise.
2917 * sunrpc/xdr_sizeof.c: Likewise.
2918 * sunrpc/xdr_stdio.c: Likewise.
2920 * po/da.po: Update from translation team.
2922 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2924 * sysdeps/sh/____longjmp_chk.S: New file.
2925 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2926 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2928 2009-05-18 Jakub Jelinek <jakub@redhat.com>
2929 Ulrich Drepper <drepper@redhat.com>
2931 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2932 (__nscd_cache_search): Assume each entry in the
2933 hash chain needs one hashentry and half of datahead. Use
2934 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2936 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2938 * posix/sys/wait.h: Fix typos. Pretty printing.
2939 * stdlib/stdlib.h: Likewise. Correct comments.
2942 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2944 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2947 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2949 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2950 Use it if we absolutely cannot reach any more correct list elements
2951 because that many do not fit into the currently mapped database.
2953 2009-05-14 Jakub Jelinek <jakub@redhat.com>
2955 * nscd/nscd_helper.c: Include stddef.h.
2956 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2957 in a couple of places. Return NULL if trail is not less than
2958 datasize, don't consider dataheads with length smaller than
2959 offsetof (struct datahead, data) + datalen.
2960 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2961 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2962 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2963 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2964 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2965 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2966 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2968 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2970 (fallocate64): ... to this.
2971 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2973 (fallocate64): ... to this.
2974 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2975 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2976 fallocate64@@GLIBC_2.10.
2977 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2978 fallocate64@@GLIBC_2.11.
2979 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2981 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2982 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2984 * nscd/selinux.c (nscd_avc_destroy): Removed.
2985 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2986 * nscd/nscd.c (termination_handler): Don't call
2989 2009-05-12 Jakub Jelinek <jakub@redhat.com>
2991 * include/atomic.h: Formatting.
2992 (catomic_compare_and_exchange_val_acq): Don't define if already
2993 defined by bits/atomic.h.
2995 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2997 * math/libm-test.inc (expm1_test): Add test for range error.
2999 * Versions.def: Add GLIBC_2.11 for libc.
3000 * debug/Makefile (routines): Add longjmp_chk.
3001 Add rules to build and run tst-longjmp_chk.
3002 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3003 * debug/longjmp_chk.c: New file.
3004 * debug/tst-longjmp_chk.c: New file.
3005 * include/bits/setjmp2.: New file.
3006 * include/stdio.h: Mark __fortify_fail as internal_function.
3007 * setjmp/Makefile (headers): Add bits/setjmp2.h.
3008 * setjmp/bits/setjmp2.h: New file.
3009 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3011 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3013 * sysdeps/i386/____longjmp_chk.S: New file.
3014 * sysdeps/x86_64/____longjmp_chk.S: New file.
3015 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3016 * sysdeps/x86_64/__longjmp.S: Likewise.
3018 * version.h: Bump for 2.11 development.
3020 * elf/check-execstack.c: New file.
3021 * elf/Makefile: Add rules to build and run check-execstack.
3023 2009-05-10 Ulrich Drepper <drepper@redhat.com>
3025 * version.h (VERSION): Bump to 2.10.1.
3027 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3028 compatibility functions.
3029 * nss/getXXent_r.c: Likewise.
3030 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3031 * gshadow/getsgnam_r.c: Likewise.
3032 * gshadow/Version: Remove duplicate entries.
3034 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3035 for recent processor.
3036 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3039 2009-05-09 Ulrich Drepper <drepper@redhat.com>
3041 * version.h (VERSION): Bump for 2.10 release.
3042 * include/features.h (__GLIBC_MINOR__): Bump to 10.
3044 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
3045 same place we add ASFLAGS-config.
3047 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
3050 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3051 or FORMERR and the other NOERROR, don't raise an error.
3053 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
3056 * Makeconfig (+asflags): New variable based upon ASFLAG or
3058 (ASFLAGS): Add override to set ASFLAGS to +asflags.
3059 * config.make.in (asflags-cpu): Add variable based upon
3060 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3062 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3063 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3064 recognizes power6 instruction set due to passing -mcpu=power6 from
3065 --with-cpu=power6 when compiling .S files.
3066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3073 2009-05-09 Jakub Jelinek <jakub@redhat.com>
3075 * string/stratcliff.c (do_test): Test for zero length
3076 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3077 at the end of the page.
3079 2009-05-08 Ulrich Drepper <drepper@redhat.com>
3081 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3083 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3086 * po/da.po: Update from translation team.
3088 2009-05-05 Jakub Jelinek <jakub@redhat.com>
3090 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3091 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3093 2009-05-05 Ulrich Drepper <drepper@redhat.com>
3095 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3096 and READ_IMPLIES_EXEC.
3098 2009-05-04 Ulrich Drepper <drepper@redhat.com>
3100 * po/da.po: Update from translation team.
3102 2009-04-29 Jakub Jelinek <jakub@redhat.com>
3104 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3107 2009-04-27 Jakub Jelinek <jakub@redhat.com>
3109 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3110 to MAP_ANON in PROT_NONE mmap64 call.
3111 (open_archive): Likewise.
3112 (file_data_available_p): Use mmap64 instead of mremap.
3113 (enlarge_archive): Likewise. Update head if ah->addr changed.
3114 Attempt to reserve address space after mmap64 region.
3116 2009-04-26 Ulrich Drepper <drepper@redhat.com>
3118 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3119 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3120 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3122 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3123 atanh should set ERANGE.
3126 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3127 result of lookup to make call to implement STT_GNU_IFUNC.
3128 (_dl_profile_fixup): Likewise.
3129 Patch by H.J. Lu <hjl.tools@gmail.com>.
3131 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3134 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3137 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3138 label if it is not used.
3140 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3141 of gmon_hist_hdr and gmon_hdr structures and use them.
3142 * elf/sprof.c: Likewise.
3144 * elf/dl-load.c (open_verify): Add temporary variable to avoid
3147 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3149 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3152 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3153 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3155 (iruserok_af): Use ss_family instead of casts.
3157 * gmon/gmon.c (write_hist): Define real-type variant of
3158 gmon_hist_hdr structure and use it.
3159 (write_gmon): Likewise for gmon_hdr.
3161 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3162 function if we are not going to define it.
3163 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3165 * inet/inet6_option.c (option_alloc): Add temporary variable to
3168 * libio/strfile.h (struct _IO_streambuf): Use correct type and
3169 name of VTable element.
3170 * libio/iovsprintf.c: Avoid casts to avoid warnings.
3171 * libio/iovsscanf.c: Likewise.
3172 * libio/vasprintf.c: Likewise.
3173 * libio/vsnprintf.c: Likewise.
3174 * stdio-common/isoc99_vsscanf.c: Likewise.
3175 * stdlib/strfmon_l.c: Likewise.
3176 * debug/vasprintf_chk.c: Likewise.
3177 * debug/vsnprintf_chk.c: Likewise.
3178 * debug/vsprintf_chk.c: Likewise.
3180 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3183 2009-04-26 Jakub Jelinek <jakub@redhat.com>
3185 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3187 2009-04-25 Ulrich Drepper <drepper@redhat.com>
3189 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3191 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
3192 * sysdeps/i386/fpu/s_tanf.S: Likewise.
3193 * sysdeps/i386/fpu/s_tanl.S: Likewise.
3194 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3195 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3196 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3197 * math/libm-test.inc: Add tests for errno after tan calls with
3200 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3201 errno value vor pow(+-0,neg).
3202 * math/libm-test.inc (pow_test): Add tests for errno value for
3205 * math/w_fmod.c: Also handle x=±Inf as error.
3206 * math/w_fmodf.c: Likewise.
3207 * math/w_fmodl.c: Likewise.
3208 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3211 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
3212 * sysdeps/i386/fpu/s_cosf.S: Likewise.
3213 * sysdeps/i386/fpu/s_cosl.S: Likewise.
3214 * sysdeps/i386/fpu/s_sin.S: Likewise.
3215 * sysdeps/i386/fpu/s_sinf.S: Likewise.
3216 * sysdeps/i386/fpu/s_sinl.S: Likewise.
3217 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3218 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3219 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3220 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3221 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3222 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3223 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3224 * math/libm-test.inc: Add tests for errno after sin/cos calls with
3227 * stdlib/strtod_l.c (round_and_return): We have to set errno to
3228 ERANGE for underflows.
3229 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3231 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3234 * libio/tst-widetext.input: Remove surrogates.
3236 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3238 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3239 for lgamma should set errno to ERANGE, not EDOM.
3240 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3242 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3245 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3248 * locale/programs/locarchive.c (enlarge_archive): Conserve address
3249 space when temporarily mapping the whole content of the old file.
3252 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3255 2009-04-24 Jakub Jelinek <jakub@redhat.com>
3257 * iconvdata/sjis.c (BODY): Don't advance inptr before
3258 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3259 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3262 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3264 * locale/locarchive.h (struct locarhandle): Rename len field to
3265 mmaped and add new reserved field.
3266 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3267 (create_archive): Reserve address space and then map file into it.
3268 (open_archive): Likewise.
3269 (file_data_available_p): New function.
3270 (compare_from_file): New function.
3271 (close_archive): Adjust to member name changes.
3272 (add_locale): Before comparing locale data, check it is mapped.
3273 Otherwise fall back to reading from the file.
3275 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
3277 * stdio-common/psiginfo.c: Include <errno.h>.
3279 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3282 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3283 to get consistency between 32 and 64 bit architectures.
3286 * sysdeps/unix/make-syscalls.sh: Add rule to create target
3287 directory for dummy syscall rules.
3288 Patch by Chris Steinbroner <hesh@pobox.com>.
3290 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
3293 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3296 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3298 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
3299 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3301 2009-04-23 Jakub Jelinek <jakub@redhat.com>
3303 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
3304 data from vector to temporary buffer and call PWRITEV after it
3305 instead of vice versa.
3306 * sysdeps/posix/preadv.c: Fix up comment.
3307 * misc/preadv.c: Likewise.
3308 * misc/preadv64.c: Likewise.
3309 * misc/pwritev.c: Likewise.
3310 * misc/pwritev64.c: Likewise.
3311 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3313 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3315 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3317 * shadow/Makefile (tests): Add tst-shadow.
3318 * shadow/tst-shadow.c: New file.
3321 * gshadow/Makefile: New file.
3322 * gshadow/Versions: New file.
3323 * gshadow/fgetsgent.c: New file.
3324 * gshadow/fgetsgent_r.c: New file.
3325 * gshadow/getsgent.c: New file.
3326 * gshadow/getsgent_r.c: New file.
3327 * gshadow/getsgnam.c: New file.
3328 * gshadow/getsgnam_r.c: New file.
3329 * gshadow/gshadow.h: New file.
3330 * gshadow/putsgent.c: New file.
3331 * gshadow/sgetsgent.c: New file.
3332 * gshadow/sgetsgent_r.c: New file.
3333 * gshadow/tst-gshadow.c: New file.
3334 * include/gshadow.h: New file.
3335 * Makeconfig (all-subdirs): Add gshadow.
3336 * Makefile (installed-headers): Add gshadow/gshadow.h.
3337 * nss/Makefile (databases): Add sgrp.
3338 * nss/Versions: Add gshadow functions as private exports.
3339 * nss/nsswitch.conf: Add gshadow entry.
3340 * nss/sgrp-lookup.c: New file.
3341 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
3342 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3343 * nss/nss_files/files-sgrp.c: New file.
3344 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3345 * sysdeps/unix/sysv/linux/paths.h: Likewise.
3347 2009-04-22 Ulrich Drepper <drepper@redhat.com>
3349 * stdio-common/printf.h: Add missing const to register_printf_modifier.
3350 * stdio-common/reg-modifier.c: Likewise.
3352 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
3354 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3357 2009-04-20 Ulrich Drepper <drepper@redhat.com>
3360 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3361 headers up to 2.6.30.
3363 * po/ca.po: Update from translation team.
3365 2009-04-19 Ulrich Drepper <drepper@redhat.com>
3368 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3369 an object that uses static TLS if the TLS modid is higher than the
3370 reserve we always allocate. At least for multi-threaded code.
3372 2009-04-18 Ulrich Drepper <drepper@redhat.com>
3374 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3375 Numerically stable check for valid width.
3377 * locale/programs/locarchive.c (open_archive): Map the entire file
3378 and not just the administrative data.
3379 (add_locale): When we find a hash sum match compare the content
3382 * malloc/malloc.c (malloc_info): Output address space information.
3384 2009-04-17 Ulrich Drepper <drepper@redhat.com>
3386 * malloc/malloc.c (malloc_info): Also output system memory information.
3388 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3389 architectures have preadv/pwritev in 2.6.30.
3391 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3392 * sysdeps/posix/readv.c: Likewise.
3393 Reported by Markus Armbruster <armbru@redhat.com>.
3395 * malloc/hooks.c (top_check): Force hook value into register.
3397 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3399 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3400 calls to _dl_relocate_object.
3402 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3405 * malloc/malloc.c (force_reg): Define.
3406 (sYSMALLOc): Load hook variable into variable
3407 before test and force into register.
3408 (sYSTRIm): Likewise.
3409 (public_mALLOc): Force hook value into register.
3410 (public_fREe): Likewise.
3411 (public_rEALLOc): Likewise.
3412 (public_mEMALIGn): Likewise.
3413 (public_vALLOc): Likewise.
3414 (public_pVALLOc): Likewise.
3415 (public_cALLOc): Likewise.
3416 (__posix_memalign): Likewise.
3417 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3418 before test and force into register.
3419 * malloc/hooks.c (top_check): Likewise.
3420 (public_sET_STATe): Pretty printing.
3422 * resolv/res_send.c (send_dg): Don't just ignore the result we got
3423 in case we only receive one reply in single-request mode.
3425 2009-04-16 Jakub Jelinek <jakub@redhat.com>
3427 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3428 are dlopened in statically linked program even for __LM_ID_CALLER.
3430 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3432 * resolv/res_send.c (send_dg): Don't switch into single-request
3433 mode if we already are in it.
3435 2009-04-15 Ulrich Drepper <drepper@redhat.com>
3437 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3438 are always at least 4 bytes in the returned line.
3440 2009-04-15 Jakub Jelinek <jakub@redhat.com>
3442 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3443 __libc_use_alloca (8192), if the stack is too small use 512 bytes
3444 instead of 8K. Stop searching in /proc/stat after hitting first
3445 line not starting with cpu.
3446 (next_line): Truncate too long
3447 lines at buffer size * 3/4 instead of pretending there were line
3448 breaks inside of large lines.
3450 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3452 * sysdeps/x86_64/mp_clz_tab.c: New file.
3454 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
3455 Ulrich Drepper <drepper@redhat.com>
3457 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3458 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3459 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3461 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
3463 * sysdeps/sh/libc-tls.c: New file.
3465 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3467 2009-04-14 Roland McGrath <roland@redhat.com>
3469 * elf/elf.h: Add various missing ARM constants, to match binutils.
3471 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3473 Optimizations from GMP.
3474 * sysdeps/x86_64/add_n.S: New file.
3475 * sysdeps/x86_64/addmul_1.S: New file.
3476 * sysdeps/x86_64/lshift.S: New file.
3477 * sysdeps/x86_64/mul_1.S: New file.
3478 * sysdeps/x86_64/rshift.S: New file.
3479 * sysdeps/x86_64/sub_n.S: New file.
3480 * sysdeps/x86_64/submul_1.S: New file.
3482 2009-04-14 Jakub Jelinek <jakub@redhat.com>
3484 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3485 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3486 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3487 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3489 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3491 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3494 2009-04-13 Ulrich Drepper <drepper@redhat.com>
3496 * sysdeps/x86-64/strrchr.S: New file.
3498 2009-04-10 Ulrich Drepper <drepper@redhat.com>
3500 * stdio-common/printf.h (struct printf_info): Add user element.
3501 New types printf_arginfo_size_function, printf_va_arg_function.
3502 Declare register_printf_specifier, register_printf_modifier,
3503 register_printf_type.
3504 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3505 (union printf_arg): Add pa_user element.
3506 Adjust __printf_arginfo_table type.
3507 Add __printf_va_arg_table, __printf_modifier_table,
3508 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3510 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3511 If registered arginfo call failed try normal specifier.
3512 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3514 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3515 * stdio-common/Versions: Export register_printf_modifier,
3516 register_printf_type, and register_printf_specifier for GLIBC_2.10.
3517 * stdio-common/reg-modifier.c: New file.
3518 * stdio-common/reg-type.c: New file.
3519 * stdio-common/reg-printf.c (__register_printf_specifier): New
3520 function. Mostly the old __register_printf_function function but
3521 uses locking and type of third parameter changed.
3522 (__register_printf_function): Implement using
3523 __register_printf_specifier.
3524 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3525 calls to arginfo functions. Allocate enough memory for user-defined
3526 types. Call new va_arg functions to get user-defined types.
3527 Try installed handlers even for existing format specifiers first.
3529 2009-04-09 Ulrich Drepper <drepper@redhat.com>
3531 * sysdeps/x86_64/rawmemchr.S: New file.
3533 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3534 Simplified code and possible copy problem fixed.
3536 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3537 function if it is not defined. Add some necessary casts.
3538 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3540 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3541 have preadv/pwritev in 2.6.30.
3543 2009-04-08 Ulrich Drepper <drepper@redhat.com>
3545 * malloc/malloc.c (malloc_info): New function.
3546 * malloc/malloc.h: Declare it.
3547 * malloc/Versions: Export malloc_info for GLIBC_2.10.
3549 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3552 * malloc/malloc.c (_int_realloc): Add parameter with old block
3553 size. Remove duplicated test. Don't handle mmap'ed blocks here.
3555 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3557 2009-04-07 Ulrich Drepper <drepper@redhat.com>
3559 * sysdeps/x86_64/strchrnul.S: New file.
3561 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3562 depending libcrypt on -lfreebl3.
3564 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3565 preadv/pwritev in 2.6.30.
3567 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3568 instead of __strcasecmp.
3570 * string/stratcliff.c (do_test): Add memchr tests..
3571 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3572 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3573 first read quad word.
3575 2009-04-06 Ulrich Drepper <drepper@redhat.com>
3577 * string/strverscmp.c (__strverscmp): Fix last cleanups.
3578 * string/tst-svc.input: Add new test case.
3579 * string/tst-svc.expect: Adjust.
3580 * string/Makefile: Don't ignore tst-svc error.
3582 * sysdeps/x86_64/memchr.S: New file.
3584 * resolv/resolv.h (RES_SNGLKUP): Define.
3585 * resolv/res_init.c (res_setoptions): Recognize single-request option.
3586 * resolv/res_send.c (send_dg): If we sent two requests at once and
3587 only get one reply before timeout switch to mode where we send the
3588 second request only after the first answer has been received.
3590 2009-04-05 Ulrich Drepper <drepper@redhat.com>
3592 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3593 * sysdeps/x86_64/strchr.S: Likewise.
3595 2009-04-03 Ulrich Drepper <drepper@redhat.com>
3597 * configure.in: We need to test for the compiler earlier.
3599 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3600 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3602 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3603 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3605 * misc/preadv.c: New file.
3606 * misc/preadv64.c: New file.
3607 * misc/pwritev.c: New file.
3608 * misc/pwritev64.c: New file.
3609 * sysdeps/posx/preadv.c: New file.
3610 * sysdeps/posx/preadv64.c: New file.
3611 * sysdeps/posx/pwritev.c: New file.
3612 * sysdeps/posx/pwritev64.c: New file.
3613 * sysdeps/unix/sysv/linux/preadv.c: New file.
3614 * sysdeps/unix/sysv/linux/preadv64.c: New file.
3615 * sysdeps/unix/sysv/linux/pwritev.c: New file.
3616 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3617 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3618 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3620 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3622 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3624 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3625 __ASSUME_COMPLETE_READV_WRITEV.
3626 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3627 with modern kernels.
3628 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3630 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3631 to free a possible malloced buffer in case of cancellation.
3632 * sysdeps/posix/writev.c: Likewise for write.
3634 2009-04-02 Ulrich Drepper <drepper@redhat.com>
3636 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3638 * configure.in: Recognize --enable-nss-crypt.
3639 * config.make.in: Add nss-crypt entry.
3640 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3641 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3642 and include path for NSS directory to compiler for md5-crypt,
3643 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3644 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3645 function implementation, use NSS. Introduce wrappers around the
3646 hash function calls. Little code size optimization.
3647 * crypt/sha256-crypt.c: Likewise.
3648 * crypt/sha512-crypt.c: Likewise.
3649 * scripts/check-local-headers.sh: Ignore nss3 directory.
3651 * configure.in: Rename pic_default to libc_cv_pic_default.
3652 * config.make.in: Likewise.
3654 2009-04-01 Roland McGrath <roland@redhat.com>
3656 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3657 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3658 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3659 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3660 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3661 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3662 (R_SPARC_NUM): Update.
3663 From Dave Miller <davem@davemloft.net>.
3665 2009-04-01 Ulrich Drepper <drepper@redhat.com>
3667 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3669 2009-03-31 Ulrich Drepper <drepper@redhat.com>
3671 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3672 those which are used.
3673 * elf/dl-addr.c: Likewise.
3674 * elf/dl-caller.c: Likewise.
3675 * elf/dl-fini.c: Likewise.
3676 * elf/dl-iteratephdr.c: Likewise.
3677 * elf/dl-libc.c: Likewise.
3678 * elf/dl-load.c: Likewise.
3679 * elf/dl-support.c: Likewise.
3680 * elf/dl-sym.c: Likewise.
3681 * elf/rtld.c: Likewise.
3682 * sysdeps/generic/ldsodefs.h: Likewise.
3684 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3685 * elf/dl-minimal.c: Likewise.
3686 * elf/dl-misc.c: Likewise.
3687 * elf/rtld.c: Likewise.
3688 * sysdeps/generic/ldsodefs.h: Likewise.
3690 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3692 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3693 Avoid reuse of complex expression.
3695 * po/fr.po: Update from translation team.
3697 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3699 * include/dirent.h: Yet more changes to match sort function type
3701 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3702 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3703 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3705 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3707 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3709 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3711 * nscd/connections.c (restart): Try to preserve the process name
3712 by reading the /proc/self/exe symlink and using the return name.
3713 Patch by Jeff Bastian <jbastian@redhat.com>.
3715 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3718 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3719 if we are not loading a new audit library.
3720 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3721 Only use profiling trampoline for auditing if we are not relocating
3723 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3724 * elf/rtld.c: Likewise.
3725 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3727 * elf/rtld.c (dl_main): Extend help message for --audit option.
3730 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3731 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3732 * dirent/alphasort.c: Adjust implementation to type change.
3733 * dirent/alphasort64.c: Likewise.
3734 * dirent/scandir.c: Likewise.
3735 * dirent/versionsort.c: Likewise.
3736 * dirent/versionsort64.c: Likewise.
3737 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3739 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3743 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3744 correctly. Set segleft member in output as required.
3745 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3746 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3749 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3750 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3751 * inet/Makefile (tests): Add tst-inet6_rth.
3752 * inet/tst-inet6_rth.c: New file.
3755 * string/strlen.c (strlen): Fix omission in the expression to test
3758 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3760 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3762 * elf/dl-runtime.c (reloc_offset): Define.
3763 (reloc_index): Define.
3764 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3765 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3766 computing index from reloc_offset.
3767 (_dl_call_pltexit): Likewise.
3768 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3769 the relocation index to _dl_fixup.
3770 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3772 * sysdeps/x86_64/dl-runtime.c: New file.
3775 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3776 alignment of La_x86_64_regs. Store xmm parameters.
3777 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3780 * string/strverscmp.c (__strverscmp): Fix case of different digits
3781 in fractional part of string.
3782 Patch by Jingyu Liu <jyliu@fortinet.com>.
3783 * string/Makefile (tests): Add tst-svc2.
3784 * string/tst-svc2.c: New file.
3786 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3788 * locale/iso-639.def: Add Min Nan.
3790 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3793 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3795 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3797 * elf/dl-sysdep.c (auxvars): Compress data structure.
3799 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3800 STT_GNU_IFUNC handling.
3801 (elf_machine_rela): Likewise.
3803 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3805 * config.h.in (USE_MULTIARCH): Define.
3806 * configure.in: Handle --enable-multi-arch.
3807 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3808 (_dl_fixup_profile): Likewise.
3809 * elf/do-lookup.c (dl_lookup_x): Likewise.
3810 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3811 * elf/elf.h (STT_GNU_IFUNC): Define.
3812 * include/libc-symbols.h (libc_ifunc): Define.
3813 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3814 framework in init-arch.h to get CPUID values.
3815 * sysdeps/x86_64/multiarch/Makefile: New file.
3816 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3817 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3818 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3820 * config.make.in (experimental-malloc): Define.
3821 * configure.in: Handle --enable-experimental-malloc.
3822 * malloc/Makefile: Handle experimental-malloc flag.
3823 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3824 * malloc/arena.c: Likewise.
3825 * malloc/hooks.c: Likewise.
3826 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3828 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3830 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3831 prediction. A few size optimizations.
3833 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3835 * time/tzset.c: Optimize a bit for size.
3837 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3839 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3840 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3842 * elf/sprof.c: Avoid warning about multi-line comment.
3844 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3846 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3848 * time/tst-posixtz.c: Add tests for quoted timezone names.
3850 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3852 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3853 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3854 200809L instead of 200112L.
3855 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3856 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3858 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3859 instead of __quick_exit_funcs to __run_exit_handlers.
3860 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3861 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3862 (__cxa_at_quick_exit): Remove attribute_hidden.
3863 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3864 to __run_exit_handlers.
3865 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3868 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3870 * po/id.po: Update from translation team.
3872 2009-02-18 Jakub Jelinek <jakub@redhat.com>
3874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3875 .machine push; .machine "power6" and .machine pop around mtfsf
3876 insns outside of _ARCH_PWR6 define.
3877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3878 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3882 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3883 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3884 relax_fenv_state): Likewise.
3886 2009-03-08 Ulrich Drepper <drepper@redhat.com>
3888 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3890 (static-only-routines): Add at_quick_exit.
3891 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3893 * stdlib/quick_exit.c: New file.
3894 * stdlib/at_quick_exit.c: New file.
3895 * stdlib/cxa_at_quick_exit.c: New file.
3896 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3898 (__internal_atexit): New function.
3899 (__new_exitfn): Now takes parameter to point to the list to use.
3900 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3901 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3902 (exit): ...here. Just call __run_exit_handlers appropriately.
3903 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3904 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3905 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3906 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3908 * po/id.po: Update from translation team.
3910 2009-03-07 Ulrich Drepper <drepper@redhat.com>
3912 * po/ru.po: Update from translation team.
3914 2009-03-04 Ulrich Drepper <drepper@redhat.com>
3916 * po/nl.po: Update from translation team.
3918 2009-03-03 Ulrich Drepper <drepper@redhat.com>
3920 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3921 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3922 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3923 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3924 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3925 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3926 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3928 * po/pl.po: Update from translation team.
3930 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3933 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3934 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3935 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3936 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3937 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3938 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3939 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3941 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3942 Add fallocate and fallocate64.
3944 * io/fcntl.h: Pretty printing.
3946 2009-03-02 Richard Guenther <rguenther@suse.de>
3948 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3949 attribute also for non-C99 inline semantics variant.
3951 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3953 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3954 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3955 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3956 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3962 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3964 * po/cs.po: Update from translation team.
3966 2009-02-28 Ulrich Drepper <drepper@redhat.com>
3968 * po/bg.po: Update from translation team.
3969 * po/sv.po: Likewise.
3970 * po/fi.po: Likewise.
3971 * po/vi.po: Likewise.
3973 2009-02-27 Roland McGrath <roland@redhat.com>
3975 * Makeconfig (%.v.i): Depend on Makeconfig.
3976 Exclude % lines from initial #-comment removal.
3978 2009-02-27 Ulrich Drepper <drepper@redhat.com>
3980 * po/ko.po: Update from translation team.
3982 2009-02-26 Roland McGrath <roland@redhat.com>
3984 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3985 avoids unused warning.
3987 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
3988 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3990 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3991 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3992 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3993 and asm/user.h. Include asm/ptrace.h.
3994 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3995 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3996 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3998 (start_thread): Don't undefine.
3999 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4002 2009-02-26 Ulrich Drepper <drepper@redhat.com>
4004 * wctype/wctype.h: The *_l functions are in POSIX 2008.
4005 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4006 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4007 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4008 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4010 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4011 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4012 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4013 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4014 _SC_THREAD_ROBUST_PRIO_PROTECT.
4015 * posix/unistd.h: fexecve is in POSIX 2008.
4016 * time/time.h: strftime_l is in POSIX 2008.
4017 * io/sys/stat.h: futimens is in POSIX 2008.
4018 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4019 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4020 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4021 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4022 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4023 open_memstream, and vdprintf are in POSIX 2008.
4025 2009-02-25 Ulrich Drepper <drepper@redhat.com>
4027 * include/features.h: Define macros for XPG7/POSIX 2008.
4028 * ctype/ctype.h: The *_l functions are in POSIX 2008.
4029 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4031 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4032 * locale/xlocale.h: Define locale_t type.
4033 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4034 in POSIX 2008. Don't define locale_t here.
4035 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4036 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4037 UTIME_OMIT only with __USE_ATFILE.
4038 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4039 * stdio-common/psiginfo.c: New file.
4040 * stdio-common/psiginfo-data.h: New file.
4041 * stdio-common/psiginfo-define.h: New file.
4042 * stdio-common/Makefile (routines): Add psiginfo.
4043 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4044 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4045 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4046 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4047 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4048 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4049 * io/sys/stat.h: Move mknodat definition into same conditional as
4051 * time/sys/time.h: futimesat is not among the functions accepted
4052 into the POSIX standard.
4054 * include/features.h: If no feature selection given and we select
4055 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4056 * posix/Versions: Export __posix_getopt.
4057 * posix/getopt.c (_getopt_initialize): Take additional parameter.
4058 Use it to alternatively initialize __posixly_correct.
4059 (_getopt_internal_r): Take addition parameter. Pass on to
4061 (_getopt_internal): Take addition parameter. Pass on to
4063 (getopt): Pass additional zero to _getopt_internal.
4064 (__posix_getopt): New function.
4065 * posix/getopt.h: Add redirection for getopt.
4066 * posix/getopt1.c (getopt_long): Pass additional zero to
4068 (getopt_long_only): Likewise.
4069 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4070 (_getopt_long_only_r): Likewise.
4071 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4074 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4076 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4077 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4078 * sysdeps/posix/sysconf.c (__sysconf): Handle
4079 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4080 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4082 2009-02-24 Roland McGrath <roland@redhat.com>
4085 * README.template: Reworded not to use substituted version number.
4087 * README: ... here (no longer generated).
4088 * Makefile (README): Target removed.
4090 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4092 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4093 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4096 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4098 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4100 2009-02-22 Ulrich Drepper <drepper@redhat.com>
4102 * po/bg.po: Update from translation team.
4104 2009-02-16 Jakub Jelinek <jakub@redhat.com>
4106 * stdlib/monetary.h: Uglify function parameter names.
4107 * sunrpc/rpc/pmap_clnt.h: Likewise.
4108 * sunrpc/rpc/svc.h: Likewise.
4109 * sunrpc/rpc/xdr.h: Likewise.
4110 * sunrpc/rpc/clnt.h: Likewise.
4111 * resolv/netdb.h: Likewise.
4112 * resolv/arpa/nameser.h: Likewise.
4113 * resolv/resolv.h: Likewise.
4114 * argp/argp.h: Likewise.
4115 * locale/langinfo.h: Likewise.
4116 * io/sys/stat.h: Likewise.
4117 * posix/spawn.h: Likewise.
4118 * nis/rpcsvc/nislib.h: Likewise.
4119 * malloc/obstack.h: Likewise.
4120 * sysdeps/ia64/bits/link.h: Likewise.
4121 * sysdeps/i386/bits/link.h: Likewise.
4122 * sysdeps/s390/bits/link.h: Likewise.
4123 * sysdeps/powerpc/bits/link.h: Likewise.
4124 * sysdeps/x86_64/bits/link.h: Likewise.
4125 * sysdeps/sparc/bits/link.h: Likewise.
4126 * sysdeps/sh/bits/link.h: Likewise.
4127 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4128 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4129 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4130 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4132 2008-12-01 Fredrik Unger <fred@tree.se>
4134 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4135 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4136 _FP_UNPACK_RAW_2, fix up first argument.
4138 2009-02-15 Ulrich Drepper <drepper@redhat.com>
4140 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4141 (GET_NPROCS_PARSER): Change parameters and use next_line.
4142 (__get_nprocs): Rewrite to not use stdio routines.
4143 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4144 Change parameters and use next_line.
4146 2009-02-13 Ulrich Drepper <drepper@redhat.com>
4149 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4150 Change mempool_alloc prototype.
4151 * nscd/mem.c (gc): Don't handle mem_in_flight.
4152 (mempool_alloc): Third parameter now only indicates whether this is the
4153 first call (to allocate data) or not. If it is, get db rdlock.
4154 Release it on error. Don't handle mem_in_flight.
4155 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4156 Adjust third parameter of mempool_alloc calls.
4157 Nothing to do here in case mempool_alloc fails.
4158 Avoid local variable shadowing parameter. No need to get db rdlock
4159 before calling cache_add.
4160 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
4161 no mem_in_flight array anymore.
4162 * nscd/connections.c: Remove definition and handling of mem_in_flight.
4163 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4164 mempool_alloc calls. Mark he parameter as const. Nothing to do here
4165 in case mempool_alloc fails. No need to get db rdlock before calling
4167 * nscd/hstcache.c (cache_addhst): Likewise.
4168 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4169 * nscd/servicescache.c (cache_addserv): Likewise.
4170 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
4172 2009-02-11 Ulrich Drepper <drepper@redhat.com>
4174 * po/lt.po: Update from translation team.
4176 2009-02-10 Ulrich Drepper <drepper@redhat.com>
4178 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4179 defined, allow additional data to be added using the optional
4180 MORE_ELF_HEADER_DATA macro.
4181 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4182 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4184 2009-02-08 Ulrich Drepper <drepper@redhat.com>
4186 * include/atomic.h: Define catomic_and if not already defined.
4187 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4188 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4190 2009-02-07 Ulrich Drepper <drepper@redhat.com>
4192 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4194 (_int_realloc): Likewise. Third argument is now padded size
4195 All _int_* functions are now static.
4197 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4198 * malloc/arena.c: Likewise.
4199 * include/malloc.h: Remove now unnecessary declarations of the _int_*
4202 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4205 * malloc/malloc.c: Add branch prediction for use of the hooks.
4207 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4209 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4212 * bits/confname.h: Add SUSv7 macros for getconf environments.
4213 * bits/environments.h: Likewise.
4214 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4215 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4216 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4217 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4218 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4219 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4220 * posix/getconf.c: Likewise.
4221 * posix/sysconf.c: Likewise.
4222 * sysdeps/posix/sysconf.c: Likewise.
4223 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4226 2009-01-16 Petr Baudis <pasky@suse.cz>
4229 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4230 even if we currently have zero nscount.
4232 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4235 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4236 the input line is too long.
4238 * po/Makefile (libc.pot): Add f_print as function taking c-format
4241 * debug/xtrace.sh: Unify translatable messages.
4242 * elf/ldd.bash.in: Likewise.
4243 * elf/sprof.c: Likewise.
4244 * locale/programs/locale.c: Likewise.
4245 * malloc/memusage.sh: Likewise.
4246 * nss/getent.c: Likewise.
4248 2009-02-06 Joseph Myers <joseph@codesourcery.com>
4250 * debug/pcprofiledump.c (print_version,
4251 argp_program_version_hook): New function.
4252 * elf/ldconfig.c (more_help): New function.
4254 * elf/sln.c (usage): New function.
4255 (main): Support --help and --version.
4256 * malloc/memusagestat.c (print_version): New function.
4257 (argp_program_version_hook): New variable.
4258 * nscd/nscd.c (more_help): New function.
4260 * posix/getconf.c (main): Send --version output to stdout.
4262 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4263 arguments. All callers changed.
4264 (print_version): New function.
4265 (parseargs): Support --help and --version.
4266 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
4268 (print_version): New function.
4269 (main): Use getopt_long. Support --help and --version.
4270 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4273 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4275 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4276 (update_data): Fix handling of wrapping back
4277 to the beginning of the buffer.
4280 * stdio-common/psignal.c (psignal): Fix test for empty string.
4282 2009-02-05 Ulrich Drepper <drepper@redhat.com>
4284 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4285 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
4286 move _null_auth to .rodata.
4288 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4291 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4293 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4294 today than when the original code was written. Use larger
4295 buffers. This also makes it unnecessary to have stat information,
4296 if this causes extra efforts.
4297 (__opendir): In case O_DIRECTORY works, don't call fstat just for
4300 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
4302 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4304 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4305 * sysdeps/sh/sh4/__longjmp.S: Likewise.
4306 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4307 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4308 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4309 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4311 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4313 * po/ru.po: Update from translation team.
4315 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
4317 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4318 Add _tid slot to maintain consistency with kernel.
4320 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4322 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4323 incomplete characters at end of input buffer.
4324 * libio/Makefile (tests): Add tst-fgetwc.
4325 * libio/tst-fgetwc.c: New file.
4326 * libio/tst-fgetwc.input: New file.
4328 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
4330 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4332 2009-02-02 Ulrich Drepper <drepper@redhat.com>
4335 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4336 *OUTBUFSTART unless the whole output fit into the buffer.
4337 * iconv/Makefile (tests): Add tst-iconv4.
4338 * iconv/tst-iconv4.c: New file.
4340 2009-02-01 Ulrich Drepper <drepper@redhat.com>
4342 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4343 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4345 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
4347 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4348 newer linker scripts.
4350 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4353 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4354 inotify_rm_watch should have type int.
4356 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
4358 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4359 Make aligned_restore_vmx a local symbol.
4360 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4363 2009-01-30 Andreas Jaeger <aj@suse.de>
4365 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4366 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4367 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4368 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4369 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4370 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4371 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4373 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
4376 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4377 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4379 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
4382 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4383 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4385 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4387 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
4389 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4390 memcpy instead of memcmp.
4391 (_dl_setup_pointer_guard): Likewise.
4393 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4395 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4396 manipulated brk, use malloc_printerr.
4397 * misc/sbrk.c (__sbrk): Better error handling for nonsense
4400 2009-01-30 Jakub Jelinek <jakub@redhat.com>
4402 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4403 rindex): For C++ add inlines so that they can be recognized as
4405 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4407 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4408 Jakub Jelinek <jakub@redhat.com>
4410 * string/string.h: Define correct C++ prototypes for gcc 4.4.
4411 * wcsmbs/wchar.h: Likewise.
4413 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4415 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4416 (stackinfo_sub_sp): Define.
4418 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4421 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4422 * include/alloca.h (alloca_account): Define.
4423 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4424 (stackinfo_sub_sp): Define.
4426 * nscd/connections.c (nscd_init): If database file access fails
4427 check whether this is due to permission problems and bail in that
4431 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4432 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4434 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4436 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4437 Add "t" to clobber list.
4438 (INTERNAL_SYSCALL_NCS): Likewise.
4440 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4442 * nss/getent.c (print_networks): Don't print comma between aliases.
4444 2009-01-23 Ulrich Drepper <drepper@redhat.com>
4446 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4448 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4450 * misc/Makefile (tests): Add bug-hsearch1.
4451 * misc/bug-hsearch1.c: New file.
4453 2009-01-22 Roland McGrath <roland@redhat.com>
4455 * Makeconfig (%.v.i): Strip trailing # comments,
4456 not only whole-line comments.
4458 2009-01-10 Ulrich Drepper <drepper@redhat.com>
4460 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4461 one parameter. If non-NULL use it to initialize return value.
4462 (_dl_setup_pointer_guard): New function.
4463 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4464 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4465 * elf/rtld.c (security_init): Pass _dl_random to
4466 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
4468 * elf/dl-sysdep.c (_dl_random): New variable.
4469 (_dl_sysdep_start): Handle AT_RANDOM.
4470 (_dl_show_auxv): Likewise.
4471 * elf/dl-support.c (_dl_random): New variable.
4472 (_dl_aux_init): Handle AT_RANDOM.
4473 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4474 to _dl_setup_stack_chk_guard.
4476 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4478 2009-01-10 Roland McGrath <roland@redhat.com>
4480 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4482 2009-01-08 Ulrich Drepper <drepper@redhat.com>
4484 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4487 * nss/nss_files/files-parse.c (strtou32): New function.
4488 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4489 across 32-bit and 64-bit platforms.
4490 (INT_FIELD_MAYBE_NULL): Likewise.
4492 2009-01-08 Jakub Jelinek <jakub@redhat.com>
4495 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4496 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4497 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4500 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
4503 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4504 being NULL also if there are no backreferences.
4505 * posix/rxspencer/tests: Add testcases.
4507 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
4510 * posix/bug-regex17.c: Add testcases.
4511 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4514 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4516 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4517 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4518 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4519 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4521 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4522 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4523 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4524 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4525 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4526 * sysdeps/unix/sysv/linux/s390/Versions: New file.
4528 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
4530 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4531 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4532 re_string_skip_chars, re_string_reconstruct): Likewise.
4533 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4535 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
4537 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4538 adjust the buffer alignment.
4540 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4542 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4543 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4546 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4547 flavor to description only when flavor is not NULL.
4549 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4550 mutex after SIGIO/SIGURG lookup loop.
4552 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4554 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4556 2009-01-03 Ulrich Drepper <drepper@redhat.com>
4558 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4561 2009-01-02 Ulrich Drepper <drepper@redhat.com>
4563 * sysdeps/unix/sysv/linux/kernel-features.h
4564 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4566 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4567 if no output is written.
4569 * version.h: Bump to 2.10 development.
4571 * posix/getconf.c: Update copyright year.
4572 * nss/getent.c: Likewise.
4573 * iconv/iconvconfig.c: Likewise.
4574 * iconv/iconv_prog.c: Likewise.
4575 * elf/ldconfig.c: Likewise.
4576 * catgets/gencat.c: Likewise.
4577 * csu/version.c: Likewise.
4578 * elf/ldd.bash.in: Likewise.
4579 * elf/sprof.c (print_version): Likewise.
4580 * locale/programs/locale.c: Likewise.
4581 * locale/programs/localedef.c: Likewise.
4582 * nscd/nscd.c (print_version): Likewise.
4583 * debug/xtrace.sh: Likewise.
4584 * malloc/memusage.sh: Likewise.
4585 * malloc/mtrace.pl: Likewise.
4586 * debug/catchsegv.sh: Likewise.
4588 2008-12-29 Mike Frysinger <vapier@gentoo.org>
4590 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4593 2008-12-29 Ulrich Drepper <drepper@redhat.com>
4595 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4596 gethostbyname4_r function call succeeded, just leave the loop.
4599 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4601 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4602 * wctype/Makefile (tests): Add bug-wctypeh.
4603 * wctype/bug-wctypeh.c: New file.
4605 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4606 LOCALDOMAIN is defined.
4607 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4609 * sysdeps/x86_64/bits/select.h: New file.
4611 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4613 2008-12-21 Bruno Haible <bruno@clisp.org>
4616 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4617 if no output is written.
4619 2008-12-13 Klaus Dittrich <kladit@arcor.de>
4621 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4622 libc internal symbol __dup2 to avoid access through the PLT.
4624 2008-12-08 Ulrich Drepper <drepper@redhat.com>
4627 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4628 available only for __USE_GNU.
4630 * inet/Makefile (tests): Add tst-getni2.
4631 * inet/tst-getni2.c: New file.
4634 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4635 NULL when NI_NAMEREQD is set.
4636 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4637 * inet/Makefile (tests): Add tst-getni1.
4638 * inet/tst-getni1.c: New file.
4640 2008-12-03 Petr Baudis <pasky@suse.cz>
4643 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4644 instead of prune_lock.
4645 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4646 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4648 2008-12-07 Ulrich Drepper <drepper@redhat.com>
4650 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4653 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4656 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4657 after reading name server list.
4660 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4661 handling for host name aliases.
4663 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4665 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4666 instead of doing things manually.
4668 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4670 * posix/regex_internal.h (build_wcs_upper_buffer):
4671 Return type is reg_error_t.
4673 2008-12-05 Ulrich Drepper <drepper@redhat.com>
4675 * posix/globtest.sh: Use mktemp to create temporary file and
4678 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4680 (__CPU_CLR_S): Likewise.
4681 (__CPU_ISSET_S): Likewise.
4683 2008-12-05 Joseph Myers <joseph@codesourcery.com>
4684 Ulrich Drepper <drepper@redhat.com>
4686 * scripts/firstversion.awk: Use custom comparison function to compare
4688 * scripts/versions.awk: Use sort invocation which can handle
4689 multi-digit sub-version numbers.
4691 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4693 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4694 * locale/iso-639.def: Add Chhattisgarhi entry.
4696 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4698 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4700 (_nss_dns_gethostbyname4_r): Likewise.
4701 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4702 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4703 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4704 the no_data variable.
4706 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4707 information at the correct index.
4709 * socket/sys/socket.h: Declare accept4.
4710 * socket/accept4.c: New file.
4711 * sysdeps/unix/sysv/linux/accept4.c: New file.
4712 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4713 * socket/Makefile (routines): Add accept4.
4714 * socket/Versions: Export accept4 with version GLIBC_2.10.
4715 * socket/paccept.c: Removed.
4716 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4717 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4718 * Versions.def: Define GLIBC_2.10 for libc.
4719 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4721 * nscd/connections.c: Use accept4.
4723 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4725 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4727 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4730 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4732 * stdlib/Makefile (tests): Add tst-unsetenv1.
4733 * stdlib/tst-unsetenv1.c: New file.
4735 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4737 * login/utmp_file.c (file_writable): New variable.
4738 (setutent_file): Don't try to open file for writing.
4739 (pututline_file): Before writing, make descriptor writable if
4742 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4744 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4745 to IPv4 or IPv6 if an interface has been found.
4747 2008-11-26 Roland McGrath <roland@redhat.com>
4749 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4750 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4752 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4753 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4754 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4756 * elf/elf.h (NT_386_IOPERM): New macro.
4757 (NT_PPC_VSX): New macro.
4759 2008-11-25 Roland McGrath <roland@redhat.com>
4761 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4762 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4763 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4764 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4765 Subdirectories moved to ports repository.
4766 * configure.in (base_machine): Remove alpha case.
4768 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4770 * sysdeps/mach/strerror_l.c: New file.
4772 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4775 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4776 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4778 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4779 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4780 (relax_fenv_state): Same as above.
4781 (FPSCR_29): Reserve bit in ISA 2.05.
4782 (FPSCR_NI): Provide define for compat.
4783 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4785 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4787 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4788 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4789 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4790 access to hwcap to account for hwcap size increase to uint64_t.
4791 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4794 (*setcontext): Likewise.
4795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4800 (*setcontext): dynamically select mtfsf insn based on
4801 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4802 increase to uint64_t.
4803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4804 (*swapcontext): dynamically select mtfsf insn based on
4805 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4806 increase to uint64_t.
4807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4812 (*setcontext): dynamically select mtfsf insn based on
4813 PPC_FEATURE_HAS_DFP.
4814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4815 (*swapcontext): dynamically select mtfsf insn based on
4816 PPC_FEATURE_HAS_DFP.
4818 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4820 * version.h: Bump for 2.9 release.
4821 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4824 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4825 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4828 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4831 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4832 unknown request types for now.
4834 2008-11-11 Roland McGrath <roland@redhat.com>
4836 * sysdeps/x86_64/configure: New file.
4838 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4839 * configure: Regenerated.
4841 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4843 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4844 correct instruction to remove the stack frame.
4846 2008-11-03 Michael Matz <matz@suse.de>
4848 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4849 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4851 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4853 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4856 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4857 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4858 of the thread variable instead of void *.
4859 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4860 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4861 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4862 __libc_tsd_define arguments.
4863 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4864 __libc_tsd_address arguments. Remove union hack.
4865 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4866 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4867 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4868 Adjust __libc_tsd_{set,get} arguments.
4869 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4870 __libc_tsd_define arguments.
4871 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4873 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4874 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4875 (LOCALE): Adjust __libc_tsd_define arguments.
4876 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4878 (LOCALE): Adjust __libc_tsd_define arguments.
4879 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4881 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4884 2008-11-02 Ulrich Drepper <drepper@redhat.com>
4886 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4887 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4889 2008-11-01 Ulrich Drepper <drepper@redhat.com>
4892 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4894 2008-10-24 Joseph Myers <joseph@codesourcery.com>
4895 Ulrich Drepper <drepper@redhat.com>
4897 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4898 definition for GCC 3.1 and later.
4900 2008-10-31 Jakub Jelinek <jakub@redhat.com>
4902 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4903 refetch dtv, as it might have changed.
4904 * elf/Makefile: Add rules to build and run tst-tls18.
4905 * elf/tst-tls18.c: New test.
4906 * elf/tst-tlsmod18a.c: New file.
4908 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
4911 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4913 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4916 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4919 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4920 Fix length of copy operation.
4922 2008-10-02 Pierre Habouzit <madcoder@debian.org>
4924 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4925 and fix its calling convention.
4927 2008-10-07 Andreas Schwab <schwab@suse.de>
4930 * resolv/res_send.c (send_vc): Fix last change.
4931 (send_dg): Align here as well.
4933 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4935 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4936 return value in case rlimit is RLIM_INFINITY.
4939 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4941 * resource/Makefile (tests): Add bug-ulimit1.
4942 * resource/bug-ulimit1.c: New file.
4945 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4946 without dot. Properly terminate the string with a null byte.
4947 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4950 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4952 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4956 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4958 2008-10-30 Ulrich Drepper <drepper@redhat.com>
4960 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4961 abort if there is no initgroups_dyn function.
4963 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4964 result if any of the queries really provided an answer.
4966 2008-10-28 Ulrich Drepper <drepper@redhat.com>
4968 * po/lt.po: Update from translation team.
4970 2008-10-26 Ulrich Drepper <drepper@redhat.com>
4972 * po/id.po: Update from translation team.
4974 2008-10-24 Ulrich Drepper <drepper@redhat.com>
4976 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4977 Fix tests for existence of second reply.
4979 2008-10-23 Ulrich Drepper <drepper@redhat.com>
4981 * po/id.po: New file.
4982 Contributed by the Indonesian translation team.
4984 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4986 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4989 2008-10-17 Jakub Jelinek <jakub@redhat.com>
4991 * elf/Makefile: Add rules to build and run tst-tls17.
4992 * elf/tst-tls17.c: New test.
4993 * elf/tst-tlsmod17a.c: New file.
4994 * elf/tst-tlsmod17b.c: Likewise.
4996 2008-10-17 Ulrich Drepper <drepper@redhat.com>
4998 * stdlib/divmod_1.c: Use correct type for dummy variable.
4999 * stdlib/mod_1.c: Likewise.
5001 2008-10-16 Ulrich Drepper <drepper@redhat.com>
5003 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5005 2008-10-16 Jakub Jelinek <jakub@redhat.com>
5007 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5008 __nonnull order for C++.
5009 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5010 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5012 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
5014 * stdlib/longlong.h: Update from GCC.
5016 2008-10-09 Jakub Jelinek <jakub@redhat.com>
5017 David S. Miller <davem@davemloft.net>
5019 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5020 make sure any registers used with 64-bit 'branch-on-register'
5021 instructions have their top 32-bits clear.
5022 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5023 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5025 2008-09-18 Andreas Schwab <schwab@suse.de>
5028 * resolv/res_send.c (send_vc): Fix use of unaligned address.
5029 Properly handle partial reads.
5031 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
5033 * elf/elf.h (STO_MIPS_PLT): New.
5035 (R_MIPS_JUMP_SLOT): New.
5036 (R_MIPS_NUM): Redefine to 128.
5037 (DT_MIPS_PLTGOT): New.
5038 (DT_MIPS_RWPLT): New.
5039 (DT_MIPS_NUM): Redefine to 0x35.
5041 2008-10-01 Ulrich Drepper <drepper@redhat.com>
5043 * timezone/africa: Update from tzdata2008f.
5044 * timezone/asia: Likewise.
5045 * timezone/australasia: Likewise.
5046 * timezone/europe: Likewise.
5047 * timezone/leapseconds: Likewise.
5048 * timezone/northamerica: Likewise.
5049 * timezone/southamerica: Likewise.
5050 * timezone/zone.tab: Likewise.
5052 2008-09-30 Ulrich Drepper <drepper@redhat.com>
5054 * nscd/connections.c: Disable use of paccept for now.
5056 2008-09-29 Ulrich Drepper <drepper@redhat.com>
5058 * socket/Versions: Remove paccept export for GLIBC_2.9.
5059 * socket/Makefile (routines): Remove paccept.
5060 * socket/sys/socket.h: Remove paccept declaration.
5062 * po/sv.po: Update from translation team.
5064 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
5066 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5067 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5069 2008-09-16 Ulrich Drepper <drepper@redhat.com>
5071 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5072 Patch by Olivier Fourdan <ofourdan@redhat.com>.
5074 2008-09-15 Ulrich Drepper <drepper@redhat.com>
5076 * sunrpc/rpc/svc.h: Declare svcfd_create.
5077 Patch by Michael Solberg <msolberg@redhat.com>.
5079 2008-09-12 Flavio Leitner <fleitner@redhat.com>
5080 Ulrich Drepper <drepper@redhat.com>
5082 * malloc/malloc.c (public_vALLOc): Try other arenas in case
5084 (public_pVALLOc): Likewise.
5086 2008-09-02 Andreas Jaeger <aj@suse.de>
5088 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5091 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
5094 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5096 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
5098 * Makefile (check-data): Check data directory in add-ons.
5099 * elf/Makefile (check-data): Likewise.
5101 2008-08-18 Roland McGrath <roland@redhat.com>
5103 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5104 * configure: Regenerated.
5105 * config.make.in (cflags-cpu): New substituted variable.
5106 (with-cpu): Variable removed.
5107 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5109 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
5112 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5113 __signbitl definition and __LONG_DOUBLE_128__ guard from:
5114 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5115 redundant. Functions which call floating point assembler operations
5116 should go into a sysdeps powerpc/fpu directory.
5118 2008-08-15 Ulrich Drepper <drepper@redhat.com>
5120 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5121 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5123 2008-08-14 Ulrich Drepper <drepper@redhat.com>
5125 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5127 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5128 change related to AT_EXECFN. We cannot use that string.
5129 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5131 * elf/dl-support.c: Remove _dl_execfn variable.
5132 (_dl_aux_init): Remove handling of AT_EXECFN.
5133 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5134 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5136 2008-08-13 Ulrich Drepper <drepper@redhat.com>
5139 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
5140 byte gets added to writes and seeks from the end use the length of
5141 the buffer and not the currently terminating NUL byte.
5144 * login/utmp_file.c (getutent_r_file): Take additional parameter.
5145 Set to true if locking failed.
5146 (getutid_r_file): Adjust caller.
5147 (pututline_file): Likewise. Return NULL in this case.
5148 Patch mostly by halesh.s@gmail.com.
5150 2008-08-12 Ulrich Drepper <drepper@redhat.com>
5153 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5155 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5157 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
5160 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5161 macro since it is now available in elf/dynamic-link.h.
5163 2008-08-12 Roland McGrath <roland@frob.com>
5165 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5166 in case used outside of libc.
5167 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5169 2008-08-11 Ulrich Drepper <drepper@redhat.com>
5171 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5172 directly instead of going through dn_comp.
5174 2008-08-11 Aurelien Jarno <aurel32@debian.org>
5176 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5177 Fix asm constraints.
5179 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5182 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5183 (IPV6_PMTUDISC_PROBE): Likewise.
5185 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
5188 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5190 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
5191 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5194 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5195 Added the members 'vsx' and 'arch_2_06'.
5196 (_dl_powerpc_platforms): Add the member 'power7'.
5197 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5198 to reflect the changes required by VSX and ISA 2.06.
5199 Modify _DL_PLATFORMS_COUNT to reflect the addition of
5201 Defined PPC_PLATFORM_POWER7.
5202 (_dl_string_platform): Add support for POWER7.
5203 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5204 capability and ISA 2.06.
5206 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5209 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5210 macro to detect use of 128 bit long double.
5211 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5213 2008-08-05 Ulrich Drepper <drepper@redhat.com>
5215 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5218 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5220 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5221 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5223 2008-08-03 Ulrich Drepper <drepper@redhat.com>
5225 * nscd/connections.c (main_loop_poll): Pass a buffer which is
5226 guaranteed to be large enough to read inotify event. Ignore
5227 EAGAIN error. Better error message. Add branch predicition.
5228 (main_loop_epoll): Likewise.
5230 2008-08-02 Roland McGrath <roland@frob.com>
5232 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5233 Add memory clobbers.
5235 2008-08-02 Ulrich Drepper <drepper@redhat.com>
5237 * manual/arith.texi: Avoid @strong{Note:}.
5238 * manual/creature.texi: Likewise.
5239 * manual/filesys.texi: Likewise.
5240 * manual/math.texi: Likewise.
5241 * manual/memory.texi: Likewise.
5242 * manual/resource.texi: Likewise.
5243 * manual/syslog.texi: Likewise.
5244 * manual/time.texi: Likewise.
5246 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5249 2008-08-01 Ulrich Drepper <drepper@redhat.com>
5251 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5252 new epoll_create1 interface.
5253 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5254 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5255 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5257 * include/arpa/nameser.h (NS_GET16): Use const pointer.
5258 (NS_GET32): Likewise.
5260 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5263 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5264 use the AT_EXECFN value if it is no absolute path.
5265 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5268 * Versions.def: Add GLIBC_2.9 to libresolv.
5269 * include/resolv.h: Remove hidden proto declarations for __ns_*
5270 functions. Add them for __dn_count_labels and __p_secstodate.
5271 * include/arpa/nameser.h: Add a number of hidden proto declarations.
5272 Define ns_msg_getflags macro here.
5273 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5275 * resolv/Versions: Export functions from <arpa/nameser.h> from
5276 libresolv in version GLIBC_2.9.
5277 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
5279 * resolv/ns_netint.c: Likewise.
5280 * resolv/ns_parse.c: Likewise.
5281 * resolv/ns_print.c: Likewise.
5282 * resolv/ns_samedomain.c: Likewise.
5283 * resolv/ns_ttl.c: Likewise.
5284 * resolv/arpa/nameser_compat.h: Likewise.
5285 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
5287 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5288 instead of ns_get16.
5289 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5290 __ns_get32 instead of ns_get16 and ns_get32 respectively.
5291 (gaih_getanswer_slice): Likewise.
5292 * resolv/Makefile (libresolv-routines): Add ns_date.
5293 * resolv/ns_date.c: New file.
5295 * elf/Makefile (check-localplt.out): Also check libresolv and
5298 2008-07-31 Ulrich Drepper <drepper@redhat.com>
5300 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5303 2008-07-30 Ulrich Drepper <drepper@redhat.com>
5305 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5306 buffer passed to NSS functions.
5308 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5310 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5313 * misc/syslog.c (openlog_internal): Fix compile problem.
5315 2008-07-28 Roland McGrath <roland@redhat.com>
5317 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5319 2008-07-28 Ulrich Drepper <drepper@redhat.com>
5321 * io/ftw.c (add_object): Remove inline to avoid warning.
5323 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5325 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5326 Use it instead of locally defined resplen2 variable.
5327 (res_nsend): Adjust for __libc_res_nsend interface change.
5328 (send_vc): Initialize *resplen2 if necessary. Read length of
5329 package into an appropriately aligned variable. Store converted length
5330 in new variable and use it appropriately.
5331 Add branch prediction help.
5332 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5333 and pass it on to __libc_res_nsend. Adjust all callers.
5334 (__libc_res_nsearch): Likewise.
5335 (__libc_res_nqeurydomain): Likewise.
5336 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5338 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5339 Define resplen2 variable and pass it to __libc_res_nsearch and then
5341 (getanswer_r): In case of incorrect DNS data don't overread buffer.
5342 Add branch prediction.
5343 (gaih_getanswer_slice): Likewise. Check for invalid data types.
5344 (gaih_getanswer): Don't decode second slice if first one failed due
5345 to a too small buffer. Don't let not found status of second
5346 decoder shadow results of the first.
5347 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5348 and __libc_res_nquery interface changes
5349 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5350 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5351 __libc_res_nsearch, and __libc_res_nsend.
5352 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5354 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5355 __libc_res_nsearch interface changes.
5357 2008-07-27 Ulrich Drepper <drepper@redhat.com>
5359 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5361 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5362 file descriptors with close-on-exec set.
5363 (exec_comm_child): Fix the case where the write end of the pipe is
5364 STDOUT_FILENO already. In case it is, clear close-on-exec.
5366 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5367 * io/pipe2.c: Likewise.
5368 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5369 instead of __ASSUME_PACCEPT.
5370 * include/unistd.h: Declare __have_pipe2.
5371 * libio/iopopen.c: Implement "e" flag.
5372 * libio/Makefile (tests): Add tst-popen1.
5373 * libio/tst-popen1.c: New file.
5375 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5376 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5378 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5381 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5382 success call of _IO_SEEKOFF or calls which failed because the
5383 descriptor is for a pipe.
5385 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5388 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5390 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
5391 F_SETFD use if we know fopen set the flag.
5393 * login/utmp_file.c (setutent_file): Minor optimization in case
5394 O_CLOEXEC is available.
5396 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
5398 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5399 * elf/Makefile: Use pie-ccflag variable.
5400 * nscd/Makefile: Likewise.
5401 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5403 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
5406 * Versions.def: Add GLIBC_2.9 version tag for libutil.
5407 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5408 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
5409 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5410 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
5411 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5412 utmp32, utmpx32 and login32.
5413 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5414 versions of struct utmp functions to libc and libutil.
5415 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5416 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5417 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5418 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5419 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5420 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5421 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5422 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5423 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5424 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5425 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5426 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5427 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5428 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5429 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5430 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5431 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5432 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5433 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5434 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5435 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5436 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5438 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5440 * scripts/gen-as-const.awk: Generate more widely usable code by
5441 using 64-bit arithmetic.
5443 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5444 the same treatment as narrow output code in last patch.
5446 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5449 * elf/dl-load.c (local_strdup): Remove inline.
5450 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5451 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5454 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5456 2008-07-25 Ulrich Drepper <drepper@redhat.com>
5458 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5459 the new syscalls, too.
5461 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5462 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5465 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5466 parameter for end of buffer. If temporary copy is too large use
5468 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5470 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
5471 string rewrite when allocating buffer.
5473 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5476 * nscd/connections.c (nscd_init): Clean up fcntl call.
5478 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5479 SOCK_NONBLOCK if possible.
5481 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5482 SOCK_CLOEXEC if available.
5484 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5485 __libc_clntudp_bufcreate_internal.
5486 * include/sys/socket.h: Declare __have_sock_cloexec.
5487 * socket/Makefile (aux): Add have_sock_cloexec.
5488 * socket/have_sock_cloexec.c: New file.
5489 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5490 __libc_clntudp_bufcreate.
5491 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5492 which takes an additional parameter. Create socket with non-blocking
5493 mode and close-on-exec flag set, if wanted.
5494 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5495 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5496 instead of clntudp_create. The socket has already the close-on-exec
5497 flag set if SOCK_CLOEXEC is defined.
5499 2008-07-24 Ulrich Drepper <drepper@redhat.com>
5501 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5502 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5504 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5505 non-blocking mode by using socket, paccept, and inotify_init1.
5507 * Versions.def (glibc): Add GLIBC_2.9.
5508 * io/Makefile (routines): Add dup3 and pipe2.
5509 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5510 * io/dup3.c: New file.
5511 * io/pipe2.c: New file.
5512 * posix/unistd.h: Declare dup3 and pipe2.
5513 * socket/Makefile (routines): Add paccept.
5514 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5515 * socket/paccept.c: New file.
5516 * socket/sys/socket.h: Declare paccept.
5517 * sysdeps/unix/syscalls.list: Add entry for dup3.
5518 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5519 epoll_create2 and inotify_init1.
5520 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5521 * sysdeps/unix/sysv/linux/paccept.c: New file.
5522 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5524 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5525 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5526 inotify_init1, and pipe2 entries.
5527 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5528 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5529 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5530 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5531 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5532 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5534 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5535 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5536 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5537 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5538 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5539 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5540 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5541 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5542 EPOLL_NONBLOCK. Declare epoll_create2.
5543 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5545 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5546 IN_NONBLOCK. Declare inotify_init1.
5547 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5549 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5552 * elf/elf.h: Define AT_EXECFN.
5553 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5555 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5556 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
5557 if __ASSUME_AT_EXECFN is defined.
5558 (_dl_aux_init): Handle AT_EXECFN.
5559 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5561 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5562 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5563 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5564 _dl_execfn if available and avoid compatibility code if
5565 __ASSUME_AT_EXECFN is defined.
5567 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5568 _dl_discover_osversion only for older kernels.
5570 2008-07-22 Roland McGrath <roland@frob.com>
5572 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5574 2008-07-21 Roland McGrath <roland@frob.com>
5576 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5577 returned too much data out of line.
5579 2008-07-20 Ulrich Drepper <drepper@redhat.com>
5581 * locale/setlocale.c (setname): Remove inline to avoid compiler
5585 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5587 2008-07-15 Ulrich Drepper <drepper@redhat.com>
5589 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5590 doesn't manage to write anything, fail.
5592 * malloc/hooks.c (__malloc_check_init): Remove printf.
5594 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5596 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5598 2008-07-12 Ulrich Drepper <drepper@redhat.com>
5600 * nscd/connections.c (main_loop_poll): Fix handling of read errors
5602 (main_loop_epoll): Likewise.
5604 2008-07-09 Ulrich Drepper <drepper@redhat.com>
5606 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5608 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5609 if DEBUG is defined.
5611 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5612 query. Adjust buffer size computation for padding.
5614 2008-07-08 Ulrich Drepper <drepper@redhat.com>
5616 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5617 * stdio-common/tst-setvbuf1.c: New file.
5618 * stdio-common/tst-setvbuf1.expect: New file.
5621 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5622 when selecting fully-buffered stream.
5623 Patch by Wang Xin <wxinee@gmail.com>.
5625 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5627 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5628 (__open_2): New function.
5629 (__open64_2): New alias to __open_2.
5630 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5631 (__openat_2): New function.
5632 (__openat64_2): New alias to __openat_2.
5634 2008-07-06 Ulrich Drepper <drepper@redhat.com>
5637 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5639 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5641 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5642 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5643 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5645 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5646 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5647 * sysdeps/mach/hurd/send.c (__send): Likewise.
5648 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5649 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5651 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5653 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5654 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5655 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5656 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5657 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5658 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5660 2008-06-27 Ulrich Drepper <drepper@redhat.com>
5663 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5665 Patch by Petr Baudis.
5667 2008-06-26 Ulrich Drepper <drepper@redhat.com>
5669 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5670 Patch by Peter Jones <pjones@redhat.com>.
5672 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5675 * stdlib/canonicalize.c (__realpath): readlink can write too much
5676 into the buffer on platforms without PATH_MAX.
5678 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5681 * posix/tst-regex.c (main): Rename to...
5682 (do_test): ... this. Remove cmdline option processing.
5684 (TEST_FUNCTION): Define.
5685 (CMDLINE_OPTIONS): Define.
5687 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5690 * configure.in: Add -Werror to -fstack-protector test to catch
5691 unsupported architectures.
5692 Patch by Gilles Esponasse <g.esp@free.fr>.
5694 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5696 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5697 getcontext returns ENOSYS.
5699 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5701 * nscd/connections.c (main_loop_poll): Fix test for read error.
5702 (main_loop_epoll): Likewise.
5704 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5706 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5707 better place so it is not called when nscd is used.
5709 * nscd/connections.c: Also recognize and handle changes to the
5710 resolver configuration file.
5712 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5714 * time/strftime.c: Pass reference to tzset_called around to handle
5718 * time/strftime.c (__strftime_internal): Call tzset() only
5719 when printing timezone-dependent values.
5720 Based on a patch by Petr Baudis <pasky@suse.cz>.
5722 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5723 unconditionally use second gaih_getanswer_slice result.
5725 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5726 (getaddrinfo): RES must always be non-NULL.
5728 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5730 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5732 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5733 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5735 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5738 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5740 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5742 * nscd/connections.c (inotify_fd): New variable.
5743 (nscd_init): Try to open an inotify descriptor.
5744 If successful, watch files for databases using inotify instead of
5745 having prune threads stat the files.
5746 (nscd_run_prune): Recognize clear_cache flag being set and call
5747 prune_cache appropriately.
5748 (main_loop_poll): Add inotify descriptor to wait set and handle the
5750 (main_loop_epoll): Likewise.
5751 * nscd/cache.c (prune_cache): Don't stat files for databases if
5753 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5754 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5756 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5757 fixed-size portion of the record.
5758 * nscd/servicescache.c (cache_addserv): Likewise.
5759 * nscd/pwdcache.c (cache_addpw): Likewise.
5760 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5762 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5764 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5765 out we don't use uninitialized memory.
5767 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5770 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5772 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5773 ignore T_DNAME messages.
5774 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5776 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5778 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5779 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5781 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5783 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5784 instead of portstr to nscd_getserv_r. Patch by
5785 Roman Kagan <rkagan@mail.ru>.
5787 2008-05-26 Jim Meyering <meyering@redhat.com>
5789 Remove more useless "if" tests before "free".
5790 * include/inline-hashtab.h (htab_delete): Likewise.
5791 * libio/freopen.c (freopen): Likewise.
5792 * libio/freopen64.c (freopen64): Likewise.
5793 * locale/programs/ld-collate.c (collate_read): Likewise.
5794 * misc/fstab.c (libc_freeres_fn): Likewise.
5795 * posix/glob.c (globfree): Likewise.
5797 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5799 * string/Makefile (strop-tests): Add memmem.
5800 * string/test-memmem.c: New file.
5801 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5802 (test_init): Size buf1 according to BUF1PAGES.
5804 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5806 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5807 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5808 (CFLAGS-scanf17.c): New.
5809 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5810 * stdio-common/scanf15.c (main): Likewise.
5811 * stdio-common/scanf16.c: New file.
5812 * stdio-common/scanf17.c: New file.
5814 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5816 * resolv/res_send.c (send_dg): If we already have one of two
5817 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5818 use the one answer insted of failing.
5820 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5822 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5823 being executed on PowerPC as the expected result exceeds IBM
5824 long double 128 __LDBL_MAX__.
5826 2008-05-21 Roland McGrath <roland@redhat.com>
5828 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5830 * Makefile (check-data): Use $(abi-name) before other guesses.
5831 Look in $(add-ons) dirs before scripts/data/.
5832 * elf/Makefile (check-data): Likewise.
5834 * scripts/soversions.awk: Grok ABI line.
5835 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5836 Emit definition for abi-name variable.
5838 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5840 * string/endian.h: Define new fixed-size hto* and *toh macros only
5843 * iconvdata/Depend: Add localedata.
5845 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5847 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5849 2008-05-08 David S. Miller <davem@davemloft.net>
5851 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5853 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5854 (__SYSCALL_CLOBBERS): Remove %g* registers.
5855 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5856 (__SYSCALL_CLOBBERS): Likewise.
5857 * scripts/data/localplt-sparc-linux-gnu.data: New file.
5858 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5860 2008-05-21 Jakub Jelinek <jakub@redhat.com>
5862 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5863 (CALL_ERRNO_LOCATION): Define.
5864 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5865 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5866 (CALL_ERRNO_LOCATION): Define.
5867 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5868 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5869 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5871 2008-05-20 Ulrich Drepper <drepper@redhat.com>
5873 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5876 2008-05-20 Jakub Jelinek <jakub@redhat.com>
5878 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5879 (FIRST_FRAME_POINTER): Define.
5881 2008-05-09 David S. Miller <davem@davemloft.net>
5883 * sysdeps/sparc/sparc64/backtrace.c: New file.
5885 2008-05-14 David S. Miller <davem@davemloft.net>
5887 * sysdeps/sparc/machine-gmon.h: New file.
5888 * sysdeps/sparc/sparc-mcount.S: Likewise.
5889 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5890 sysdep_routines in gmon directory.
5892 2008-05-19 Jakub Jelinek <jakub@redhat.com>
5894 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5896 2008-05-19 Ulrich Drepper <drepper@redhat.com>
5898 * resolv/res_query.c (__libc_res_nquery): In case one of two
5899 answer was too short don't try to read that answer's header.
5901 * resolv/res_send.c (send_dg): In case of timeout and there are
5902 two queries and one has been answered, return value indicating
5905 2008-05-18 Ulrich Drepper <drepper@redhat.com>
5907 * nscd/cache.c (cache_add): Take additional parameter specifying
5908 whether this is in response of a cache refill. Check alignment
5909 of package data. Revamp waking of pruning thread.
5910 (prune_cache): Small optimization.
5911 * nscd/nscd.h: Adjust cache_add prototypes.
5912 * nscd/aicache.c: Adjust cache_add calls.
5913 * nscd/grpcache.c: Likewise.
5914 * nscd/hstcache.c: Likewise.
5915 * nscd/initgrcache.c: Likewise.
5916 * nscd/pwdcache.c: Likewise.
5917 * nscd/servicescache.c: Likewise.
5918 * nscd/connections.c (restart): Really disable cache use before
5919 exec attempt. If it fails, reenable cache.
5920 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5921 time to max to be able to notice concurrent cache additions. Unlock
5922 prune_lock while performing gc. Afterwards compute wakeup time with
5923 current wakeup_time value in mind.
5925 2008-05-17 Ulrich Drepper <drepper@redhat.com>
5927 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5929 * nscd/mem.c (gc): Correctly determine highest used array element
5932 * nscd/mem.c (markrange): Add assert to check entries are all
5933 aligned. Small cleanup in bitmap use.
5935 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5936 blockoff of type nscd_ssize_t.
5937 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5938 (mempoll_alloc): Record block offset and not address.
5940 * nscd/mem.c (gc): Fix test for stack overuse.
5942 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5945 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5946 entry is available, believe it.
5948 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5949 no answers return NSS_STATUS_NOTFOUND.
5950 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5951 buffer does not have any content.
5953 2008-05-16 Ulrich Drepper <drepper@redhat.com>
5955 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5957 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5958 lookup, don't assign canon unconditionally.
5960 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5962 * string/Makefile (distribute): Add str-two-way.h.
5964 2008-03-29 Eric Blake <ebb9@byu.net>
5966 Rewrite string searches to O(n) rather than O(n^2).
5967 * string/str-two-way.h: New file. For linear fixed-allocation
5969 * string/memmem.c: New implementation.
5970 * string/strstr.c: New implementation.
5971 * string/strcasestr.c: New implementation.
5973 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
5975 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5977 (calc_first): Initialize constraint field.
5978 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5979 Use search_duplicated_node to avoid loops. Fix grammar.
5980 (duplicate_node): Merge constraint field for all node types.
5981 (calc_eclosure_iter): Look at constraint field for all node types.
5982 * posix/regex_internal.c (create_cd_newstate): Don't look at
5985 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5988 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5991 * string/endian.h: Add macros for fixed-size endian conversion.
5992 * bits/byteswap.h: Allow inclusion from <endian.h>.
5993 * sysdeps/i386/bits/byteswap.h: Likewise.
5994 * sysdeps/ia64/bits/byteswap.h: Likewise.
5995 * sysdeps/s390/bits/byteswap.h: Likewise.
5996 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5997 * string/Makefile (tests): Add tst-endian.
5998 * string/tst-endian.c: New file.
6000 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6001 Patch by Reuben Thomas.
6003 2008-05-14 Joseph Myers <joseph@codesourcery.com>
6005 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6007 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6009 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6012 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6014 (BODY for __gconv_transform_internal_ascii): Likewise.
6017 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6018 to be treated like link-local addresses.
6019 (match_prefix): Don't treat IPv4 loopback address special when
6020 converting to v4 mapped addressed.
6022 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6024 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6025 * posix/tst-rfc3484-2.c: Likewise.
6026 * posix/tst-rfc3484-3.c: Likewise.
6028 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6031 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6033 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6035 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6037 2008-05-13 Ulrich Drepper <drepper@redhat.com>
6039 * po/lt.po: New file. From Lituanian translation team.
6041 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
6043 Introduce TLS descriptors for i386 and x86_64.
6044 * include/inline-hashtab.h: New file, copied from 2005's
6045 libiberty, with fix for memory leak imported afterwards by
6046 Glauber de Oliveira Costa.
6047 * elf/tlsdeschtab.h: New file.
6048 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6049 (_dl_allocate_static_tls): ... here. Rearrange failure path.
6050 (CHECK_STATIC_TLS): Move to...
6051 * elf/dynamic-link.h: ... this file.
6052 (TRY_STATIC_TLS): New macro.
6053 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6054 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6055 R_386_TLS_DESC): Define.
6056 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6058 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6059 R_X86_64_TLSDESC): Define.
6060 (R_386_NUM, R_X86_64_NUM): Adjust.
6061 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6062 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6063 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6064 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6065 release tlsdesc_table.
6066 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6067 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6068 (elf_machine_rel): Handle R_386_TLS_DESC.
6069 (elf_machine_rela): Likewise.
6070 (elf_machine_lazy_rel): Likewise.
6071 (elf_machine_lazy_rela): Likewise.
6072 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6073 * sysdeps/i386/dl-tlsdesc.S: New file.
6074 * sysdeps/i386/dl-tlsdesc.h: New file.
6075 * sysdeps/i386/tlsdesc.c: New file.
6076 * sysdeps/i386/tlsdesc.sym: New file.
6077 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6079 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6080 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6081 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6082 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6083 release tlsdesc_table.
6084 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6085 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6086 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6087 (elf_machine_rel): Handle R_X86_64_TLSDESC.
6088 (elf_machine_rela): Likewise.
6089 (elf_machine_lazy_rel): Likewise.
6090 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6091 (__tls_get_addr): Do not declare for non-shared compiles.
6092 * sysdeps/x86_64/dl-tlsdesc.S: New file.
6093 * sysdeps/x86_64/dl-tlsdesc.h: New file.
6094 * sysdeps/x86_64/tlsdesc.c: New file.
6095 * sysdeps/x86_64/tlsdesc.sym: New file.
6096 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6097 tlsdesc_table for both 32- and 64-bit structs.
6099 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6101 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6102 its own function. This reduces the frame setup costs and more.
6104 2008-02-11 Joseph Myers <joseph@codesourcery.com>
6107 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6108 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6110 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6112 * io/openat.c (__openat_2): Also pass fd to __openat.
6113 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6114 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6116 * string/tester.c (test_memcmp): Add a few more tests.
6117 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6119 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6121 * nscd/cache.c (cache_add): Before returning with failure and this
6122 is the first use of the record, mark it as unusable.
6123 * nscd/aicache.c: Don't touch the dataset after cache_add returns
6124 reporting a failure.
6125 * nscd/grpcache.c: Likewise
6126 * nscd/hstcache.c: Likewise.
6127 * nscd/initgrcache.c: Likewise.
6128 * nscd/pwdcache.c: Likewise.
6129 * nscd/servicescache.c: Likewise.
6131 2008-05-10 Roland McGrath <roland@redhat.com>
6134 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6136 2008-05-08 David S. Miller <davem@davemloft.net>
6138 * misc/truncate64.c (truncate64): Use __truncate not truncate.
6140 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6141 (__ieee754_y0l): Likewise.
6142 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6143 (__ieee754_y1l): Likewise.
6144 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6145 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6146 frexpl and ldexpl. math_private.h provides them and the latter
6148 (__log1pl): Use __frexpl.
6150 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6152 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6154 * include/arpa/nameser_compat.h: Define T_UNSPEC.
6155 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6156 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6157 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6159 (_nss_nis_gethostbyname4_r): New function.
6160 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6161 Change to also handle af==AF_UNSPEC.
6162 (get_tablename): New function. Use it to avoid duplication.
6163 (_nss_nisplus_gethostbyname4_r): New function.
6164 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6166 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6167 * nss/nss.h: Define struct gaih_addrtuple.
6168 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6170 (_nss_files_gethostbyname4_r): New function.
6171 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6172 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6174 * resolv/res_query.c (__libc_res_nquery): Take two additional
6175 parameters for second answer buffer. Handle type=T_UNSPEC to mean
6176 look up IPv4 and IPv6.
6178 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6179 for an additional query and answer buffer. Pass to send_vc and
6181 (send_vc): Send possibly two requests and receive two answers.
6182 (send_dg): Likewise.
6183 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6185 (_nss_dns_gethostbyname4_r): New function.
6186 (gaih_getanswer_slice): Likewise.
6187 (gaih_getanswer): Likewise.
6188 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6189 __libc_res_nquery call.
6190 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6191 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6192 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6195 2008-05-05 David S. Miller <davem@davemloft.net>
6197 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6198 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6200 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6202 Fix termios bit macros.
6203 Move *DLY definitions where they belong, in termios.h.
6204 Add *[0-3] definitions.
6205 Fixes confusion between VT and FF.
6206 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6207 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6208 are already defined to avoid collision with termios.h.
6209 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6210 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6211 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6212 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6213 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6214 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6215 VTDLY, VT0, VT1): New macros.
6216 [__USE_GNU] (OLCUC): Change value of macro.
6217 [__USE_XOPEN] (OFILL): New macro.
6218 [__USE_BSD] (CRTSCTS): Change value.
6219 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6220 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6221 (B7200, B14400, B28800, B76800): New macros.
6223 2008-05-01 David S. Miller <davem@davemloft.net>
6225 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6226 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6227 (gen-as-const-headers): Add it.
6228 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6229 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6230 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6231 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6233 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6234 six system call parameters.
6235 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6237 2008-04-30 Ulrich Drepper <drepper@redhat.com>
6239 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6241 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6242 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6244 2008-04-30 Jakub Jelinek <jakub@redhat.com>
6246 * stdlib/tst-setcontext.c: Include unistd.h.
6248 2008-04-25 David S. Miller <davem@davemloft.net>
6250 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6251 Pass "union semun" properly in to sys_ipc, it must be passed
6252 by value, not by reference.
6254 2008-04-22 Jakub Jelinek <jakub@redhat.com>
6256 * nscd/Makefile (nscd-cflags): Set back to -fpie.
6257 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6258 * nscd/connections.c (mem_in_flight): Likewise.
6260 * nscd/nscd.h (dbs): Make hidden.
6262 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6263 Avoid returning -1, return 0 instead.
6265 2008-04-19 Ulrich Drepper <drepper@redhat.com>
6267 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6269 2008-04-15 Ulrich Drepper <drepper@redhat.com>
6272 * sysdeps/unix/sysv/linux/times.c: New file.
6275 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6276 mem_in_flight_list variables. Add new parameter to mempool_alloc
6278 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
6279 appropriate mem_in_flight element.
6280 (gc): Take allocations which have not yet been committed to the
6281 database into account.
6282 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6283 Reset mem_in_flight before returning.
6284 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6285 cue it up in mem_in_flight_list.
6286 * nscd/aicache.c: Adjust mempool_alloc call.
6287 * nscd/grpcache.c: Likewise.
6288 * nscd/hstcache.c: Likewise.
6289 * nscd/initgrcache.c: Likewise.
6290 * nscd/pwdcache.c: Likewise.
6291 * nscd/servicescache.c: Likewise.
6292 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6295 * nscd/connections.c (handle_request): Provide better error message
6296 in case SELinux forbids the service.
6298 * version.h (VERSION): Bump to 2.8.90.
6300 2008-04-17 Jakub Jelinek <jakub@redhat.com>
6302 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6304 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6306 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6307 Also use for 32-bit.
6308 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6309 __nextafter instead of nextafter to avoid local PLT.
6310 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6311 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6313 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6315 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6317 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
6318 <fenv_libc.h> instead of <fenv.h>.
6319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6322 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6324 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6325 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6326 function from fegetexcept and make old name weak alias.
6327 * include/fenv.h: Declare __fegetexcept.
6328 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6330 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6331 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6333 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6334 instead of frexpl to avoid local PLT.
6335 * math/s_significandl.c (__significandl): Use __ilogbl instead of
6336 ilogbl to avoid local PLT.
6337 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6338 instead of ldexpl to avoid local PLT.
6339 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6340 __roundl not roundl to avoid local PLT.
6341 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6342 local PLTs. Use __sincosl instead of separate sinl and cosl
6344 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6346 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6347 version for ppc64 to 2.4.21 since without it makecontext will fail.
6349 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6351 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6353 [__powerpc64__] (TLS_GD): Likewise.
6355 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
6358 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6359 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6361 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6362 Likewise. Also account for when x is an odd number between 2^52
6364 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6365 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6366 * math/libm-test.inc (lround_test, llround_test): Added test cases to
6367 detect aforementioned erroneous conditions.
6369 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6371 * configure.in: Check for -fno-section-anchors in addition to
6372 -fno-toplevel-reorder.
6374 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6376 * include/features.h (__GLIBC_MINOR__): Bump to 8.
6378 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6379 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6380 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6381 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6382 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6383 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6385 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6388 * time/era.c: Transform __libc_setlocale_lock into rwlock.
6389 * time/alt_digit.c: Likewise.
6390 * wcsmbs/wcsmbsload.c: Likewise.
6392 2008-04-10 Ulrich Drepper <drepper@redhat.com>
6394 * version.h (VERSION): Bump to 2.8.
6396 * timzeone/asia: Update from tzdata2008b.
6397 * timezone/backward: Likewise.
6398 * timezone/europe: Likewise.
6399 * timezone/northamerica: Likewise.
6400 * timezone/southamerica: Likewise.
6401 * timezone/iso3166.tab: Likewise.
6402 * timezone/leapseconds: Likewise.
6403 * timezone/zone.tab: Likewise.
6404 * timezone/private.h: Update from tzcode2008a.
6405 * timezone/zdump.c: Likewise.
6406 * timezone/zic.c: Likewise.
6408 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6411 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6412 Define additonal Data Cache Block instruction macros.
6413 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6414 Replace dcbst with dcbf and sync with sync/isync.
6416 2008-02-21 Alan Modra <amodra@bigpond.net.au>
6418 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6419 Always set ELF_RTYPE_CLASS_PLT.
6420 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6422 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
6424 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6425 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6426 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6427 For ISA 2.01 and later replace mftb with mfspr 268.
6429 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
6432 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6433 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6435 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
6438 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6439 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6440 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6441 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6443 2008-04-10 Jakub Jelinek <jakub@redhat.com>
6445 * stdlib/tst-makecontext.c (othervar): New variable.
6446 (cf): Test sign extending the argument to long.
6448 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
6450 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6451 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6452 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6453 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6454 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6455 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6456 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6458 2008-02-22 Alan Modra <amodra@bigpond.net.au>
6460 * elf/Makefile (tests): Substitute tests-vis-yes here.
6461 (tests-vis-yes): Delete.
6462 (modules-name, modules-vis-yes): Similarly.
6464 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
6467 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6468 Preserve sign in signgamp when x is zero.
6470 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
6472 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6473 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6474 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6475 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6476 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6477 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6479 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6482 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6486 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6487 a reserved error value.
6489 * stdlib/tst-makecontext.c: Change parameter to cf to negative
6490 value to check for correct sign extension.
6493 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6494 Copy 64-bit parameter values even though this is not required in
6497 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6500 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
6502 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6505 2008-04-09 Jakub Jelinek <jakub@redhat.com>
6507 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6509 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6512 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6513 in line-buffered stream failed.
6514 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6516 2008-04-08 Ulrich Drepper <drepper@redhat.com>
6519 * scripts/abi-versions.awk: If the version specified by
6520 --enable-oldest-abi is older than the first version for this
6521 architecture, use the default version.
6523 * locale/programs/ld-collate.c (collate_read): Ignore script lines
6524 as well when ignoring the whole category.
6526 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6529 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6530 ETHERTYPE_* definitions.
6531 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6533 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6535 * stdlib/mbtowc.c (__no_r_state): Remove.
6536 (mbtowc): New static state variable. Use it instead of
6538 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6539 (__wctomb_state): New hidden variable.
6540 (wctomb): Use __wctomb_state instead of __no_r_state.
6541 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6542 (__wctomb_state): New extern decl.
6543 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6545 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6548 * resolv/res_init.c: Handle scope IDs in resolv.conf.
6550 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6552 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6554 2008-04-06 Ulrich Drepper <drepper@redhat.com>
6556 * po/nl.po: Update from translation team.
6558 2008-03-31 Ulrich Drepper <drepper@redhat.com>
6561 * string/strfry.c: Handle empty strings again.
6563 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6566 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6567 before looking for translation.
6568 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6569 * locale/freelocale.c: Likewise.
6570 * locale/newlocale.c: Likewise.
6571 * locale/setlocale.c: Likewise.
6572 Based partially on a patch by ryo@np.css.fujitsu.com.
6574 2008-03-30 Jakub Jelinek <jakub@redhat.com>
6576 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6577 acquiring wrlock. Do conv_tab allocation while holding lock.
6578 * intl/Makefile: Add rules to build and run tst-gettext6.
6579 * intl/tst-gettext6.c: New test.
6580 * intl/tst-gettext6.sh: New file.
6582 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6584 * po/nl.po: Update from translation team.
6586 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6587 provided through st_blksize, try the default size before giving up.
6589 2008-03-29 Ulrich Drepper <drepper@redhat.com>
6591 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6594 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6596 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6597 error message. POSIX today does not require the messages to be in
6598 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
6601 * sunrpc/auth_unix.c: Unify printed strings.
6602 * sunrpc/clnt_tcp.c: Likewise.
6603 * sunrpc/clnt_udp.c: Likewise.
6604 * sunrpc/clnt_unix.c: Likewise.
6605 * sunrpc/svc_tcp.c: Likewise.
6606 * sunrpc/svc_udp.c: Likewise.
6607 * sunrpc/svc_unix.c: Likewise.
6608 * sunrpc/xdr.c: Likewise.
6609 * sunrpc/xdr_array.c: Likewise.
6610 * sunrpc/xdr_rec.c: Likewise.
6611 * sunrpc/xdr_ref.c: Likewise.
6612 * locale/programs/ld-time.c (time_finish): Unify messages.
6613 * locale/programs/locfile.c (handle_copy): Fix typo.
6614 * nscd/nscd.c (options): Fix typo.
6617 * stdlib/strtod_l.c: Use correct sign for result in one more
6619 Patch by Eric Blake <ebb9@byu.net>.
6621 2008-03-27 Jakub Jelinek <jakub@redhat.com>
6623 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6624 and creat system calls.
6625 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6627 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6630 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6631 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6633 2008-03-27 Ulrich Drepper <drepper@redhat.com>
6635 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6636 <linux/limits.h> has defined it.
6637 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6638 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6640 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6641 it instead of ARG_MAX.
6643 2008-03-25 Jakub Jelinek <jakub@redhat.com>
6645 * posix/gai.conf: Fix comment for scope nullbits.
6646 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6647 default to 128 bits for v4 mapped addresses.
6649 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6651 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6652 ptrace call to get the ieee_instruction_pointer from the kernel.
6653 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6654 ptrace call to set the ieee_instructtion_pointer.
6655 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6656 Add comment that ieee_instruction_pointer is always 0.
6658 2008-03-09 Andreas Jaeger <aj@suse.de>
6661 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6662 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6663 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6665 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6666 (rint_test): Likewise.
6668 2008-03-24 Ulrich Drepper <drepper@redhat.com>
6670 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6672 (__nisfind_server): Similar for open readColdStartFile call.
6673 Patch partially by Jim Meyering.
6674 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6675 around internal_setent call.
6677 * po/vi.po: New Vietnamese translation.
6679 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6682 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6683 remove CLONE_STOPPED.
6685 2008-02-10 Jim Meyering <meyering@redhat.com>
6687 Remove useless "if" before "free":
6688 * elf/ldconfig.c (parse_conf_include): Likewise.
6689 * gmon/gmon.c (weak_alias): Likewise.
6690 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6691 * inet/rcmd.c (__validuser2_sa): Likewise.
6692 * intl/bindtextdom.c (set_binding_values): Likewise.
6693 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6694 * libio/genops.c (save_for_backup): Likewise.
6695 * libio/wgenops.c (save_for_wbackup): Likewise.
6696 * locale/programs/ld-collate.c (collate_read): Likewise.
6697 * locale/programs/linereader.c (get_string): Likewise.
6698 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6699 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6700 * resolv/res_debug.c (do_section): Likewise.
6701 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6702 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6703 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6704 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6705 * time/tzset.c (tzset_internal): Likewise.
6707 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6709 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6712 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6715 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6716 not stream for output file. Open output file here.
6717 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6718 and output file name.
6719 (process_fd): Likewise.
6720 (process_file): Likewise.
6721 (main): Adjust callers of changed functions.
6722 * iconv/iconv_prog.h: Adjust prototype.
6724 2008-03-09 Andreas Jaeger <aj@suse.de>
6727 * sysdeps/ia64/ieee754.h: Use protected namespace
6728 __BIG_ENDIAN/__LITTLE_ENDIAN.
6729 * sysdeps/ieee754/ieee754.h: Likewise.
6730 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6732 2008-03-08 Roland McGrath <roland@frob.com>
6734 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6735 ignore a signal that came from a machine exception, treat it as a
6736 fatal core-dump signal instead.
6737 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6739 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6740 Clear DF bit in thread state's eflags.
6741 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6743 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6746 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6747 of NAN(...) sequence.
6748 * stdlib/Makefile (tests): Add tst-strtod6.
6749 * stdlib/tst-strtod6.c: New file.
6751 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6754 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6755 putting offending option character in quotes. Clean up error
6757 * po/be.po: Adjust msgstr in translation file.
6758 * po/bg.po: Likewise.
6759 * po/ca.po: Likewise.
6760 * po/cs.po: Likewise.
6761 * po/da.po: Likewise.
6762 * po/de.po: Likewise.
6763 * po/es.po: Likewise.
6764 * po/fr.po: Likewise.
6765 * po/hr.po: Likewise.
6766 * po/ko.po: Likewise.
6767 * po/nl.po: Likewise.
6768 * po/rw.po: Likewise.
6769 * po/sk.po: Likewise.
6770 * po/sv.po: Likewise.
6771 * po/tr.po: Likewise.
6772 * po/zh_CN.po: Likewise.
6773 * po/zh_TW.po: Likewise.
6776 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6777 Patch by Roland Bless <roland@bless.de>.
6779 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6781 * elf/Makefile (routines): Add dl-sysdep.
6782 (elide-routines.os): Likewise.
6784 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6787 * elf/dl-sysdep.c: Undefine ROUND after use.
6788 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6789 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6790 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6791 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6793 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6794 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6796 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6798 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6799 _dl_tls_get_addr_soft element.
6800 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6801 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6802 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6804 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6805 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6806 of internal_function.
6808 * stdlib/Makefile (aux): Add tens_in_limb.
6809 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6810 * stdlib/tens_in_limb.c: ...here. New file.
6813 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6814 __statfs_chown_restricted.
6815 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6816 for _PC_CHOWN_RESTRICTED.
6817 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6818 Implement __statfs_chown_restricted.
6819 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6820 _POSIX_CHOWN_RESTRICTED value to zero.
6821 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6824 * sysdeps/x86_64/rtld-memset.c: New file.
6826 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6828 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6830 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6831 Barcelona machine. Make default fall through branch of
6832 __x86_64_preferred_memory_instruction check as the integer code path.
6834 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6836 * sysdeps/x86_64/cacheinfo.c
6837 (__x86_64_preferred_memory_instruction): New variable.
6838 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6840 * sysdeps/x86_64/memset.S: Rewrite.
6842 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6844 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6845 __obstack_printf_chk): New prototypes.
6846 (__vasprintf_chk, __vdprintf_chk,
6847 __obstack_vprintf_chk): Likewise.
6848 Add libc_hidden_proto.
6850 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6851 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6852 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6853 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6854 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6855 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6856 __obstack_vprintf_chk): New prototypes.
6857 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6858 obstack_vprintf): New inlines.
6859 * debug/dprintf_chk.c: New file.
6860 * debug/vdprintf_chk.c: New file.
6861 * debug/asprintf_chk.c: New file.
6862 * debug/vasprintf_chk.c: New file.
6863 * debug/obprintf_chk.c: New file.
6864 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6865 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6866 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6868 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6869 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6870 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6871 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6873 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6874 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6875 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6876 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6877 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6879 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6880 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6881 obstack_vprintf_chk.
6882 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6883 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6884 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6885 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6886 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6887 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6889 2008-03-04 Ulrich Drepper <drepper@redhat.com>
6892 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6893 Patch by Roy Marples <roy@marples.name>.
6896 * malloc/malloc.c: Fix typo in comment.
6899 * locale/iso-639.def: Add Shuswap.
6901 2008-02-25 Jakub Jelinek <jakub@redhat.com>
6904 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6905 overwrite *h_errnop/*errnop values from getanswer_r in case of
6908 2008-03-03 Ulrich Drepper <drepper@redhat.com>
6911 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6912 (verify_persistent_db): Remove one unnecessary test and add a new one
6913 for bad configuration.
6914 (nscd_init): Improve error reported when persistent database cannot
6916 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6917 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6918 .suggested_module and .max_db_size and case config file says the
6920 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6923 * nis/ypclnt.c (yp_order): Fix handling of return value of
6925 Patch by Jeff Moyer <jmoyer@redhat.com>.
6927 * po/fr.po: Update from translation team.
6929 2008-02-22 Andreas Jaeger <aj@suse.de>,
6930 Carlos O'Donell <carlos@systemhalted.org>
6933 * FAQ.in: Describe why glibc needs to be compiled with
6936 2008-02-19 Roland McGrath <roland@redhat.com>
6938 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6940 2008-02-15 Ulrich Drepper <drepper@redhat.com>
6943 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6944 __USE_MISC is defined.
6946 2008-02-10 Ulrich Drepper <drepper@redhat.com>
6948 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6949 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6951 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6952 timerfd_gettime, timerfd_settime.
6953 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6954 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6956 2008-02-08 Roland McGrath <roland@redhat.com>
6958 * elf/elf.h (NT_PPC_SPE): New macro.
6960 2008-02-06 Roland McGrath <roland@redhat.com>
6962 * Makerules ($(common-objpfx)sysd-rules):
6963 Depend on $(sysdep-makeconfigs).
6965 2008-01-31 Roland McGrath <roland@redhat.com>
6968 * configure.in: Use -print-file-name if it yields a directory,
6969 for each of include and include-fixed.
6970 * configure: Regenerated.
6972 * Makeconfig (sysd-rules-targets): New variable.
6973 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6974 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6976 2008-01-30 Roland McGrath <roland@redhat.com>
6978 * manual/libc.texinfo: Update back-cover text.
6980 * elf/elf.h (NT_386_TLS): New macro.
6982 2008-01-29 Roland McGrath <roland@redhat.com>
6984 * Makeconfig (sysd-rules-patterns): New variable.
6985 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6986 (check-inhibit-asm): New canned sequence, replaces ...
6987 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6988 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6989 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6990 (CFLAGS-rtld): Variable removed.
6992 2008-01-24 Roland McGrath <roland@redhat.com>
6994 * configure.in: Let configure fragments set base_os.
6995 * configure: Regenerated.
6997 2008-01-22 Ulrich Drepper <drepper@redhat.com>
6999 * po/ko.po: Update from translation team.
7001 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
7003 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7005 2008-01-12 Andreas Jaeger <aj@suse.de>
7008 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7011 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
7013 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7014 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7015 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7017 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
7019 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7020 * elf/dl-close.c (_dl_close): Check for it.
7021 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7022 (_dl_allocate_static_tls): Likewise.
7023 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7024 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7026 * elf/tst-tls16.c: New file.
7027 * elf/tst-tlsmod16a.c: New file.
7028 * elf/tst-tlsmod16b.c: New file.
7029 * elf/Makefile: Add rules to build and run tst-tls16.
7031 2008-01-16 Ulrich Drepper <drepper@redhat.com>
7034 * bits/shm.h: Fix comment describing shmid_ds.
7035 * sysdeps/gnu/bits/shm.h: Likewise.
7036 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7037 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7038 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7039 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7040 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7041 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7042 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7043 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7044 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7047 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7049 * conform/data/limits.h-data: Adjust limits changed in v6 and add
7050 additional suffixes.
7051 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7052 Add optional functions mq_timedreceive and mq_timedsend.
7053 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7054 * conform/data/pthread.h-data: Fix prototype of
7055 pthread_condattr_setclock. pthread_sigmask is not required in v6.
7056 * conform/data/semaphore.h-data: Allow time.h definitions.
7057 * conform/data/signal.h-data: Likewise.
7058 * conform/data/stdio.h-data: getw and putw are not required in v6.
7059 * conform/data/stdlib.h-data: Change setstate prototype.
7060 * conform/data/string.h-data: Fix strerror_r prototype.
7061 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7062 * conform/data/unistd.h-data: pthread_atfork not required in v6.
7063 Fix readlink prototype.
7064 * conform/data/netinet/in.h-data: Add const to in6addr_any and
7066 * inet/netinet/in.h: Cleanup namespace.
7067 * posix/regex.h: Likewise.
7068 * resolv/netdb.h: Likewise.
7069 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7070 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7071 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7072 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7073 of names of in in6_addr.
7074 (default_precedence): Likewise.
7075 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7078 2008-01-15 Ulrich Drepper <drepper@redhat.com>
7080 * conform/data/fmtmsg.h-data: Add missing allows.
7081 * conform/data/ftw.h-data: Likewise.
7082 * conform/data/inttypes.h-data: Likewise.
7083 * conform/data/math.h-data: Likewise.
7084 * conform/data/signal.h-data: Likewise.
7085 * conform/data/net/if.h-data: Likewise.
7086 * conform/data/netinet/in.h-data: Likewise.
7087 * conform/data/sys/socket.h-data: Likewise.
7090 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7091 (__strtok_r): Simplify.
7092 * string/tester.c (test_strtok_r): Add test case for futile search
7093 with single-character seach string.
7095 2008-01-12 Ulrich Drepper <drepper@redhat.com>
7097 * po/ko.po: Update from translation team.
7099 2008-01-11 Andreas Jaeger <aj@suse.de>
7102 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7103 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7106 2008-01-10 Ulrich Drepper <drepper@redhat.com>
7108 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7109 native interface lookup in all the relevant places.
7111 2008-01-10 Jakub Jelinek <jakub@redhat.com>
7112 Ulrich Drepper <drepper@redhat.com>
7114 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7115 field. Use sockaddr_in6 for source_addr.
7116 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
7117 (match_prefix): Likewise.
7118 (get_label): Likewise.
7119 (get_precedence): Likewise.
7120 (rfc3484_sort): Change to use indirect access to results array.
7121 Adjust to use of sockaddr_in6. Replace service_order test with
7122 simple index comparison.
7123 (getaddrinfo): Define order array. Initialize it. Don't initialize
7124 service_order field. Adjust qsort_t calls. Access sorted result
7125 array indirectly through order array.
7126 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7127 * posix/tst-rfc3484-2.c: Likewise.
7128 * posix/tst-rfc3484-3.c: Likewise.
7130 2008-01-09 Ulrich Drepper <drepper@redhat.com>
7133 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7135 Patch by André Cruz.
7138 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7139 (clnt_spcreateerror): Likewise.
7142 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7143 (public_mEMALIGn): Likewise.
7144 Patch mostly by Daniel Jacobowitz.
7146 2008-01-09 Jakub Jelinek <jakub@redhat.com>
7148 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7149 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7150 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7151 * stdlib/tst-makecontext2.c: New test.
7153 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7155 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7157 (REINIT_PARAMS): Likewise. Undefine before end of file.
7158 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7159 transliteration hooks and REINIT_PARAMS afterwards.
7160 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7162 (REINIT_PARAMS): Define.
7163 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7164 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7165 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7166 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7167 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7168 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7169 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7170 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7171 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7172 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7173 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7174 * iconvdata/tst-iconv7.c: New test.
7176 2008-01-07 Ulrich Drepper <drepper@redhat.com>
7178 * libio/stdio.h (vscanf): Fix definition for loser compilers.
7180 2008-01-05 Jakub Jelinek <jakub@redhat.com>
7183 * nscd/connections.c (restart): Fix condition.
7185 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7187 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7188 __ctype_toupper_loc): Add __THROW.
7190 2008-01-02 Ulrich Drepper <drepper@redhat.com>
7192 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7193 recognition of interface family.
7195 * posix/getconf.c: Update copyright year.
7196 * nss/getent.c: Likewise.
7197 * iconv/iconvconfig.c: Likewise.
7198 * iconv/iconv_prog.c: Likewise.
7199 * elf/ldconfig.c: Likewise.
7200 * catgets/gencat.c: Likewise.
7201 * csu/version.c: Likewise.
7202 * elf/ldd.bash.in: Likewise.
7203 * elf/sprof.c (print_version): Likewise.
7204 * locale/programs/locale.c: Likewise.
7205 * locale/programs/localedef.c: Likewise.
7206 * nscd/nscd.c (print_version): Likewise.
7207 * debug/xtrace.sh: Likewise.
7208 * malloc/memusage.sh: Likewise.
7209 * malloc/mtrace.pl: Likewise.
7210 * debug/catchsegv.sh: Likewise.
7212 2007-12-26 Ulrich Drepper <drepper@redhat.com>
7214 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7217 2007-12-23 Ulrich Drepper <drepper@redhat.com>
7219 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7220 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7222 2007-12-17 Roland McGrath <roland@redhat.com>
7224 * inet/ether_line.c (ether_line): Remove unused variable.
7226 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
7228 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7230 * login/openpty.c (openpty): Likewise.
7231 * login/pty.h (openpty, forkpty): Likewise.
7232 * manual/terminal.texi (openpty, forkpty): Likewise.
7234 2007-12-17 Ulrich Drepper <drepper@redhat.com>
7236 * malloc/malloc.c (public_cALLOc): For arenas other than
7237 main_arena, count all bytes inside the mprotect_size range of the
7238 heap as uninitialized.
7240 2007-12-16 Ulrich Drepper <drepper@redhat.com>
7242 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7245 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7246 mTRIm for all of them.
7247 (mTRIm): Additionally iterate over all free blocks and use madvise
7248 to free memory for all those blocks which contain at least one
7250 * malloc/tst-trim1.c: New file.
7251 * malloc/Makefile (tests): Add tst-trim1.
7253 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7255 2007-12-14 Ulrich Drepper <drepper@redhat.com>
7257 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7258 First cast argument to long
7259 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7261 (__vdso_clock_gettime): Likewise.
7262 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7265 2007-12-13 Ulrich Drepper <drepper@redhat.com>
7267 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7268 * locale/nl_langinfo_l.c: Real implementation, copied from
7270 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7272 2007-12-01 Jim Meyering <meyering@redhat.com>
7274 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7275 that would inhibit utf8-optimization of a regexp containing line-
7276 or buffer-anchors, e.g., `^', `$'.
7278 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7280 * time/bug-getdate1.c (do_test): Don't use century values which
7281 aren't valid on 32-bit systems.
7283 2007-12-12 Jakub Jelinek <jakub@redhat.com>
7285 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7286 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7287 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7288 __strcat_g, __strncat_g): Add __asm__.
7290 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7293 * io/fchmodat.c: Fix typo in stub_warning use.
7294 Patch by Petr Salinger.
7296 2007-12-11 Ulrich Drepper <drepper@redhat.com>
7298 * iconvdata/hp-thai8.c: New file.
7299 * iconvdata/Makefile: Add rules for hp-thai8.c.
7300 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7301 * iconvdata/gconv-modules: Likewise.
7304 * iconvdata/hp-greek8.c: New file.
7305 * iconvdata/Makefile: Add rules for hp-greek8.c.
7306 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7307 * iconvdata/gconv-modules: Likewise.
7310 * iconvdata/hp-turkish8.c: New file.
7311 * iconvdata/Makefile: Add rules for hp-turkish8.c.
7312 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7313 * iconvdata/gconv-modules: Likewise.
7315 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7316 (shrink_heap): ... this new function.
7317 (heap_trim): Call shrink_heap instead of grow_heap.
7319 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7320 case don't call alloc_perturb.
7322 2007-12-10 Ulrich Drepper <drepper@redhat.com>
7324 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7326 * sysdeps/unix/sysv/linux/kernel-features.h
7327 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7328 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7330 2007-12-08 Ulrich Drepper <drepper@redhat.com>
7333 * stdio-common/vfprintf.c: Do not overflow when adding to done.
7334 * stdio-common/Makefile (tests): Add bug22.
7335 * stdio-common/bug22.c: New file.
7338 * time/getdate.c: Fix filling in default values.
7339 * time/bug-getdate1.c: New file.
7340 * time/Makefile: Add rules to build and run bug-getdate1.
7342 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7343 * iconvdata/ebcdic-es.c: Likewise.
7344 * iconvdata/ebcdic-es-a.c: Likewise.
7345 * iconvdata/ebcdic-uk.c: Likewise.
7346 * iconvdata/iso8859-16.c: Likewise.
7347 * iconvdata/viscii.c: Likewise.
7348 * iconvdata/iso8859-9e.c: Likewise.
7349 * iconvdata/Makefile: Adjust appropriately.
7352 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7355 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7358 * iconvdata/hp-roman9.c: New file.
7359 * iconvdata/Makefile: Add rules for hp-roman9.c.
7360 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7361 * iconvdata/gconv-modules: Likewise.
7363 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7364 * iconvdata/Makefile: Adjust appropriately.
7367 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7368 structure, it's allocated with alloca.
7369 * stdio-common/Makefile (tests): Add bug21.
7370 * stdio-common/bug21.c: New file.
7372 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
7375 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7376 keyword for gcc's braced-groups.
7378 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7381 * inet/ether_line.c: Strip hostname of whitespaces.
7382 * inet/Makefile (tests): Add tst-ether_line.
7383 * inet/tst-ether_line.c: New file.
7385 2007-12-03 Ulrich Drepper <drepper@redhat.com>
7388 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7391 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7393 * stdlib/tst-setcontext.c: Catch the case where the links gets
7394 messed up and we do not reach main again.
7396 * po/ca.po: Update from translation team.
7398 2007-11-26 Ulrich Drepper <drepper@redhat.com>
7400 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7401 * posix/regex.h (REG_ENOSYS): Likewise.
7402 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7404 2007-11-25 Ulrich Drepper <drepper@redhat.com>
7406 * nscd/nscd.h (MAX_STACK_USE): Define.
7407 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7408 (gc): Initialize stack_used based on allocation in prune_cache.
7409 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7410 Clear array before use.
7412 * nscd/aicache.c (addhstaiX): Update statistics counter in case
7413 memory allocation failed.
7414 * nscd/hstcache.c (cache_addhst): Likewise.
7415 * nscd/grpcache.c (cache_addgr): Likewise.
7416 * nscd/servicescache.c (cache_addserv): Likewise.
7417 * nscd/pwdcache.c (cache_addpw): Likewise.
7418 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7420 2007-11-23 Ulrich Drepper <drepper@redhat.com>
7422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7423 and creat system calls.
7425 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7427 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
7429 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7431 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7432 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7434 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7435 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7436 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7438 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
7440 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7441 strncat): Define as macros to avoid compile errors.
7443 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
7446 2007-11-22 Ulrich Drepper <drepper@redhat.com>
7449 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7450 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7451 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7453 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7455 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7456 Return zero in case the thread library is not NPTL.
7459 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7460 initializing interface list.
7463 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7464 use result of nss_getgrgid_r if nothing was found. For other
7465 error return with a failure.
7466 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7468 * locale/programs/ld-collate.c (collate_read): Fix loop to match
7471 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7473 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7474 (get_scope): For IPv4 scope, use scopes table.
7475 (fini): Free scopes table if necessary.
7476 (free_scopelist): New function.
7477 (scopecmp): New function.
7478 (gaiconf_init): Also handle scopev4 entries.
7479 * posix/tst-rfc3484.c (do_test): Initialize scopes.
7480 * posix/tst-rfc3484-2.c (do_test): Likewise.
7481 * posix/gai.conf: Document scopev4 defaults.
7482 * posix/Makefile (tests): Add tst-rfc3484-3.
7483 * posix/tst-rfc3484-3.c: New file.
7485 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7487 * posix/gai.conf: Update for current default tables.
7489 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7491 * po/tr.po: Update from translation team.
7493 2007-11-18 Roland McGrath <roland@frob.com>
7495 * manual/arith.texi (Remainder Functions): Spelling fix.
7496 From Shaun Silk <genix@mysoul.com.au>.
7498 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7500 2007-11-17 Ulrich Drepper <drepper@redhat.com>
7502 * po/zh_CN.po: Update from translation team.
7504 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7505 Add sys/signalfd.h and sys/eventfd.h.
7507 2007-11-15 Bruno Haible <bruno@clisp.org>
7510 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7512 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7513 (DCIGETTEXT): Change the allocation of the 'search' variable so that
7514 it needs only fixed stack space. Delay the initialization of
7515 msgid_len until it is needed.
7517 2007-11-15 Andreas Jaeger <aj@suse.de>
7519 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7520 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7522 2007-11-15 Ulrich Drepper <drepper@redhat.com>
7524 * po/ko.po: Update from translation team.
7526 2007-11-14 Ulrich Drepper <drepper@redhat.com>
7528 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7529 significantly. The device type is also part of the ifinfomsg data.
7531 * po/sv.po: Update from translation team.
7532 * po/nl.po: Likewise.
7534 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7535 to wake up in 24 hours.
7537 * nscd/gai.c (__ioctl): Define. Include check_native.c.
7539 2007-11-13 Ulrich Drepper <drepper@redhat.com>
7541 * po/cs.po: Update from translation team.
7542 * po/pl.po: Likewise.
7544 * include/ifaddrs.h: Remove in6ai_temporary.
7545 (struct in6addrinfo): Add index element.
7546 Declare __check_native.
7547 * inet/Makefile (aux): Add check_native.
7548 * sysdeps/unix/sysv/linux/check_native.c: New file.
7549 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7550 IFA_F_TEMPORARY. Pass back ifa_index.
7551 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7552 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
7553 call __check_native if necessary.
7554 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
7555 to sort addresses. Pass information about the results.
7556 * posix/tst-rfc3484.c: Adjust for addition of index field and change
7557 of rfc3484_sort interface.
7558 * posix/tst-rfc3484-2.c: Likewise.
7560 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
7561 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7563 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7564 (qsort_r): Renamed from qsort. Take additional parameter and pass it
7565 on as third parameter to compare function and _quicksort.
7566 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7567 to the compare function.
7568 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7569 * Versions.def: Add GLIBC_2.8 for libc.
7571 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7572 * posix/tst-rfc3484-2.c: Likewise.
7574 * include/kernel-features.h: Moved to...
7575 * sysdeps/mach/hurd/kernel-features.h: ...here.
7577 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
7579 * sysdeps/i386/i586/memcpy_chk.S: New file.
7580 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7581 * sysdeps/i386/i586/memset_chk.S: Likewise.
7583 2007-11-12 Ulrich Drepper <drepper@redhat.com>
7585 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7586 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7587 list of interfaces. Also store prefix length.
7588 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7589 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7590 prefix if source and destination address are in the same subnet.
7591 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
7592 Always look for matching record in in6ai list.
7593 Correct source_addr_len value for IPv6->IPv4 converted records.
7595 2007-11-11 Roland McGrath <roland@frob.com>
7597 * include/kernel-features.h: New file.
7599 2007-11-10 Ulrich Drepper <drepper@redhat.com>
7601 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7602 complications for 64-bit platforms.
7604 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7605 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
7606 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7608 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7610 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7611 * sysdeps/wordsize-64/alphasort.c: New file.
7612 * sysdeps/wordsize-64/alphasort64.c: New file.
7613 * sysdeps/wordsize-64/fseeko.c: New file.
7614 * sysdeps/wordsize-64/fseeko64.c: New file.
7615 * sysdeps/wordsize-64/ftello.c: New file.
7616 * sysdeps/wordsize-64/ftello64.c: New file.
7617 * sysdeps/wordsize-64/ftw.c: New file.
7618 * sysdeps/wordsize-64/ftw64.c: New file.
7619 * sysdeps/wordsize-64/iofgetpos.c: New file.
7620 * sysdeps/wordsize-64/iofgetpos64.c: New file.
7621 * sysdeps/wordsize-64/iofopen.c: New file.
7622 * sysdeps/wordsize-64/iofopen64.c: New file.
7623 * sysdeps/wordsize-64/iofsetpos.c: New file.
7624 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7625 * sysdeps/wordsize-64/lockf.c: New file.
7626 * sysdeps/wordsize-64/lockf64.c: New file.
7627 * sysdeps/wordsize-64/mkostemp.c: New file.
7628 * sysdeps/wordsize-64/mkostemp64.c: New file.
7629 * sysdeps/wordsize-64/mkstemp.c: New file.
7630 * sysdeps/wordsize-64/mkstemp64.c: New file.
7631 * sysdeps/wordsize-64/scandir.c: New file.
7632 * sysdeps/wordsize-64/scandir64.c: New file.
7633 * sysdeps/wordsize-64/tmpfile.c: New file.
7634 * sysdeps/wordsize-64/tmpfile64.c: New file.
7635 * sysdeps/wordsize-64/versionsort.c: New file.
7636 * sysdeps/wordsize-64/versionsort64.c: New file.
7637 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7638 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7639 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7640 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7641 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7642 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7643 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7644 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7645 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7646 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7647 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7648 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7650 * crypt/sha256-crypt.c: Fix a comment.
7651 * crypt/sha512-crypt.c: Likewise.
7653 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7655 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7657 2007-11-07 Ulrich Drepper <drepper@redhat.com>
7660 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7661 because output buffer is too small break, don't loop.
7662 * iconvdata/Makefile (tests): Add bug-iconv6.
7663 * iconvdata/bug-iconv6.c: New file.
7665 2007-11-06 Ulrich Drepper <drepper@redhat.com>
7667 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7669 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7670 size_t. Add casts where needed.
7672 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7673 old headers, don't call avc_has_perm if we don't have the
7674 permission information.
7676 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7678 * elf/rtld.c (dl_main): Use the page size to find the map start.
7680 2007-11-05 Ulrich Drepper <drepper@redhat.com>
7682 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7683 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7685 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7686 when the lookup call failed.
7688 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7689 Add prune_cond and wakeup_time.
7690 (CACHE_PRUNE_INTERNAL): Define.
7691 Update declarations of prune_cache and setup_thread.
7692 * nscd/connections.c (dbs): Update initializers.
7693 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7694 (nscd_init): Default number of threads is now 4.
7695 (invalidate_cache): Take lock before calling prune_cache.
7696 (handle_request): If SELinux forbids the request, say so.
7697 (readylist_cond): Use static initializer.
7698 (nscd_run_prune): New function. Used only by pruning threads.
7699 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7701 (fd_ready): Update nscd_run reference.
7702 (start_threads): No need to initialize readylist_cond.
7703 Start pruning threads separately.
7704 * nscd/nscd_setup_thread.c: Change return value type to int and always
7706 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7707 to int and return nonzero value if we can use the TID address hack.
7708 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7709 the database is later than the new entry's timeout, update the
7710 wakeup time and wake the cleanup thread.
7711 (prune_cache): Return seconds the next entry in the database is still
7712 valid. Remove locking for pruning here.
7713 * nscd/nscd.conf: Document default number of threads.
7715 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7717 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7718 stack is properly aligned for the target function.
7719 Correct unwind info.
7721 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7722 when using auditing libraries.
7724 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7726 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7727 _nss_dns_getnetbyaddr2_r.
7728 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7729 extra parameter to getanswer_r.
7730 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7731 _nss_dns_getnetbyaddr2_r.
7733 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7735 * nscd/gethstbynm2_r.c: Remove.
7736 * nscd/gethstbynm3_r.c: New file.
7737 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7739 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7740 __gethostbyaddr_r compatibility wrapper.
7741 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7742 determining timeout of entry.
7743 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7745 (addhstbyX): Pass reference to variable for TTL to lookup and
7747 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7748 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7749 and __nss_next2. Remove __nss_services_lookup.
7750 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7752 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7754 * nss/getXXent_r.c: Likewise.
7755 * nss/getnssent_r.c: Likewise.
7756 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7757 does not exist in module, try the optional second name.
7758 (__nss_next2): New function.
7759 (__nss_next): Now wrapper around __nss_next2.
7760 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7761 Declare __nss_next2.
7762 Adjust definition of db_lookup_function type.
7763 * nss/service-lookup.c: Define NO_COMPAT.
7764 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7765 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7766 * inet/ether_ntoh.c: Likewise.
7767 * sunrpc/netname.c: Likewise.
7768 * sunrpc/publickey.c: Likewise.
7769 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7770 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7771 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7772 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7773 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7775 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7777 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7779 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7782 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7783 * crypt/sha512c-test.c: Likewise.
7786 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7787 to keep track of end of %[ format string element.
7788 * stdio-common/Makefile (tests): Add bug20.
7789 * stdio-common/bug20.c: New file.
7792 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7793 path elements in counting mode.
7795 2007-10-27 Andreas Jaeger <aj@suse.de>
7798 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7801 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7802 (__cleanup): Free shared library when exiting.
7803 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7804 (__cleanup): Free shared library when exiting.
7806 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7809 * math/libm-test.inc (check_float_internal): Support
7810 denormalized return.
7812 2007-10-23 Andreas Jaeger <aj@suse.de>
7815 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7816 __LONG_LONG_PAIR to handle little endian byte order.
7817 Suggested by abhishekrai@google.com
7819 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7821 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7823 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7825 * nscd/cache.c (prune_cache): Move test for modified file outside
7828 2007-10-21 Andreas Jaeger <aj@suse.de>
7830 * manual/texinfo.tex: Update to latest version.
7832 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7834 * manual/arith.texi (Status bit operations): Fix formatting.
7836 * manual/errno.texi (Error Messages): Fix formatting.
7838 * manual/sysinfo.texi (System Parameters): Fix formatting.
7840 * manual/libc.texinfo: Update VERSION and UPDATED.
7842 2007-10-19 Roland McGrath <roland@redhat.com>
7844 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7846 2007-10-06 David S. Miller <davem@davemloft.net>
7848 * configure.in: Add sparcv9v2 and sparc64v2.
7849 * scripts/config.sub: Likewise.
7850 * configure: Regenerate.
7851 * elf/elf.h (HWCAP_SPARC_N2): New.
7852 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7853 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7854 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7855 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7856 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7857 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7858 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7860 2007-10-18 Ulrich Drepper <drepper@redhat.com>
7862 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7863 even if the poll result indicates there is data to read.
7864 Patch by Jeff Moyer <jmoyer@redhat.com>.
7866 2007-10-18 Roland McGrath <roland@redhat.com>
7868 * elf/elf.h (NT_PPC_VMX): New macro.
7870 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7872 * version.h (VERSION): Set to 2.7.90.
7874 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7876 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7879 2007-10-17 Roland McGrath <roland@frob.com>
7881 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7882 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7884 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7886 * version.h (VERSION): Bump to 2.7.
7887 * include/features.h (__GLIBC_MINOR__): Bump to 7.
7890 * time/tzset.c (__tz_convert): Don't force testing for a change of
7891 TZ if not called from localtime. But then also see whether the
7892 file changed, in case __use_tzfile is set.
7894 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7895 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7896 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7897 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7898 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7899 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7900 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7901 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7903 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7905 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7906 and admin selects to be able to replace the gai.conf file, lock
7907 data structures around the qsort call.
7909 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7911 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7913 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
7914 too high for the improvements. Implement bzero unconditionally for
7917 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7918 Jakub Jelinek <jakub@redhat.com>
7920 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7921 even when time_t is 32-bit.
7922 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7923 timezone data read by __tzfile_default. Ensure __tzname[0] is
7924 always set after the search.
7926 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7928 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7929 unreachable code on 32-bit machines.
7931 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7934 * time/strftime_l.c: Include stdbool.h.
7935 (my_strftime): New wrapper, old function renamed to...
7936 (__strftime_internal): ... new function. Add tzset_called
7937 argument, pass it down to recursive calls, don't call tzset ()
7938 if already true, set to true after call to tzset ().
7940 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7942 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7943 into account when copying TZ string.
7945 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7947 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7948 num_transition rather than num_transitions - 1.
7950 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7952 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7955 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7956 a local label rather than HIDDEN_JUMPTARGET.
7958 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7960 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7961 (init_cacheinfo): Initialize it.
7962 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7963 Always define bzero.
7964 Remove non-glibc code.
7965 * sysdeps/x86_64/bzero.S: Make an empty file.
7967 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7969 * sysdeps/x86_64/cacheinfo.c
7970 (__x86_64_preferred_memory_instruction): New.
7971 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7973 * sysdeps/x86_64/memset.S: Rewrite.
7975 2007-10-15 Roland McGrath <roland@redhat.com>
7977 * po/libc.pot: Regenerated.
7979 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7981 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7985 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7986 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7987 address record to T_A/T_AAAA requests.
7989 2007-10-14 Ulrich Drepper <drepper@redhat.com>
7991 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7993 * posix/glob.c: Add some branch prediction throughout.
7995 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7998 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8000 (rfc3484_sort): Make sure that even if qsort doesn't support
8001 stable sorting out sorting here is stable by comparing service_order.
8002 (getaddrinfo): Initialize service_order.
8003 * posix/tst-rfc3484.c (do_test): Adjust for addition of
8004 service_order field to sorting structure.
8005 * posix/tst-rfc3484-2.c (do_test): Likewise.
8007 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8008 * time/tzset.c (tzset_internal): Break TZ string parsing out into
8009 __tzset_parse_tz and updating of daylight, timezone, tzname into
8011 (__tz_compute): Renamed from tz_compute. Take additional parameters.
8012 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8013 happens in __tz_compute.
8014 * time/tzfile.c (__tzfile_read): Also read TZ string.
8015 (find_transition): Fold into __tzfile_compute.
8016 (__tzfile_compute): For times beyond the last transition try to
8018 * timezone/tst-timezone.c: Information in daylight and tzname does
8019 change for Asia/Tokyo timezone with more concrete information.
8022 * include/stdio.h: Add libc_hidden_proto for ftello.
8023 * libio/ftello.c: Add libc_hidden_def.
8026 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8027 on the specified time and not the last entries in the file. Move
8028 code to determine tzname[] to...
8029 (find_transition): ...here. Add ugly guess for times before the
8032 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8035 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8037 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8038 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8039 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8040 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8042 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8043 read mechanism when there are no group members and avoid no-op
8044 read syscall in this case.
8047 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8048 (__readall): If reading failed due to EAGAIN error wait a bit
8049 and possibly try again.
8050 (__readvall): Likewise.
8052 2007-10-13 Bruno Haible <bruno@clisp.org>
8054 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8055 when we cannot recode the message.
8057 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8060 * libio/__freading.c (__freading): Don't return true for
8061 write-only streams. For read/write streams, check whether we
8062 performed a read operation already.
8063 * libio/Makefile (tests): Add tst-ext2.
8064 * libio/tst-ext2.c: New file.
8066 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8068 * locale/programs/repertoire.c (repertoire_read): Always free
8069 memory for repertoire file name [Coverity CID 270].
8071 * elf/cache.c (save_aux_cache): Free memory allocated for
8072 temporary file name [Coverity CID 267].
8074 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8076 * misc/Makefile (headers): Add bits/error.h.
8078 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8080 * posix/fnmatch_loop.c: Take rule index returned as part of
8081 findidx return value into account when accessing weights.
8082 * posix/regcomp.c: Likewise.
8083 * posix/regexec.c: Likewise.
8085 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8086 (skip_to): Fix problems with parameter of elifdef/elifndef.
8088 2007-10-11 Ulrich Drepper <drepper@redhat.com>
8090 * iconv/gconv_simple.c: Add some branch prediction.
8092 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8094 * locale/programs/ld-collate.c (collate_read): If ignore_content
8095 and nowtok is tok_define, eat any tok_eol tokens.
8097 2007-10-11 Jakub Jelinek <jakub@redhat.com>
8099 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8100 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8102 * inet/netinet/in.h: Don't include bits/socket.h.
8103 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8105 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8107 2007-10-10 Ulrich Drepper <drepper@redhat.com>
8109 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8111 * locale/programs/locfile-kw.gperf: Likewise.
8112 * locale/programs/ld-collate.c: Implement primitive preprocessor.
8114 2007-10-10 Jakub Jelinek <jakub@redhat.com>
8116 * stdio-common/printf-parse.h: Include string.h and wchar.h.
8117 (__find_specwc): Change into __extern_always_inline function.
8118 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
8119 (__parse_one_specmb): Remove ps argument.
8120 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8121 Adjust __find_specmb and __parse_one_specmb callers.
8122 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8123 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8125 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8128 2007-10-09 Ulrich Drepper <drepper@redhat.com>
8130 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8131 with some Pentium Ds.
8133 2007-10-08 Ulrich Drepper <drepper@redhat.com>
8135 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8137 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8140 2007-10-07 Ulrich Drepper <drepper@redhat.com>
8143 * locale/C-time.c: Set week_1stday data to 19971201.
8144 * locale/programs/ld-time.c (time_finish): Default for
8145 first_workday is Monday.
8148 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8151 * posix/glob.c (glob): Recognize patterns starting \/.
8152 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8153 (main): Add test for pattern starting \/.
8155 * misc/error.h: Use __const instead of const.
8156 * misc/bits/error.h: Likewise.
8158 2007-10-07 Andreas Jaeger <aj@suse.de>
8160 * include/bits/error.h: New file.
8162 * misc/bits/error.h (error_at_line): Fix prototype.
8164 2007-10-06 Ulrich Drepper <drepper@redhat.com>
8167 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8168 more little bugs in creating the stack frame when pltexit has to
8171 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8172 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8175 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8176 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8177 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8178 * math/libm-test.inc: Add test for this case.
8181 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8182 (svc_register): Initialize sc_mapped. Set to TRUE if call to
8183 map service succeeded.
8184 (svc_is_mapped): New function.
8185 (svc_unregister): Use it before trying to unmap service.
8187 2007-10-05 Ulrich Drepper <drepper@redhat.com>
8189 * timezone/zic.c: Update from tzcode2007h.
8192 * timezone/africa: Update from tzdata2007h.
8193 * timezone/antarctica: Likewise.
8194 * timezone/asia: Likewise.
8195 * timezone/australasia: Likewise.
8196 * timezone/europe: Likewise.
8197 * timezone/leapseconds: Likewise.
8198 * timezone/northamerica: Likewise.
8199 * timezone/southamerica: Likewise.
8200 * timzeone/zone.tab: Likewise.
8203 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8206 * string/bits/string2.h (__strdup): Cast parameters to calloc to
8207 avoid warning with -Wconversion.
8208 (__strndup): Likewise.
8209 Half the patch by Christian Iseli <christian.iseli@licr.org>.
8212 * nscd/connections.c (restart): Don't resync if database is
8213 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8215 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8216 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
8218 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8219 evetnfd_read, eventfd_write.
8220 * sysdeps/unix/sysv/linux/eventfd.c: New file.
8221 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8222 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8223 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8224 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8225 eventfd_write for GLIBC_2.7.
8227 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8228 * sysdeps/unix/sysv/linux/signalfd.c: New file.
8229 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8230 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8232 2007-10-04 Jakub Jelinek <jakub@redhat.com>
8234 * stdlib/msort.c: Include stdint.h.
8235 (struct msort_param): New type.
8236 (msort_with_tmp): Use struct msort_param pointer for unchanging
8237 parameters. Add optimized handling for several common sizes
8238 and indirect sorting mode.
8239 (qsort): Adjust msort_with_tmp callers. For big S use indirect
8241 Suggested by Belazougui Djamel .
8243 * stdlib/Makefile (tests): Add tst-qsort2.
8244 * stdlib/tst-qsort2.c: New test.
8246 2007-10-04 Ulrich Drepper <drepper@redhat.com>
8248 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8249 for dup2 in case another thread races with the current one. Retry
8252 * misc/error.h: Remove support for use outside of libc. We have to
8253 include <features.h> now. Include <bits/error.h> if possible.
8254 * misc/bits/error.h: New file.
8256 2007-10-03 Jakub Jelinek <jakub@redhat.com>
8258 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8259 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8260 __extern_always_inline functions unconditionally, drop macros.
8262 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8263 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8264 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8266 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8267 add __artificial__ attribute.
8269 2007-10-02 Ulrich Drepper <drepper@redhat.com>
8271 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8272 backward to forward direction.
8274 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8277 * locale/programs/ld-collate.c (collate_finish): Compare against last
8278 used section which is known to have rules defined.
8279 (collate_read): After order_start, correctly record order of sections
8280 and queue sections up.
8282 2007-10-01 Ulrich Drepper <drepper@redhat.com>
8285 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8286 the same number of pages.
8287 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8289 * locale/programs/ld-collate.c (collate_read): After initial copy
8290 statement, continue in state 0.
8292 * include/stdio_ext.h (__fsetlocking): Define as macro.
8294 2007-09-30 Ulrich Drepper <drepper@redhat.com>
8296 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8299 * po/pt_BR.po: Fix typo.
8301 2007-09-29 Ulrich Drepper <drepper@redhat.com>
8303 * iconvdata/Makefile (modules): Add ISO8859-9E.
8304 (distribute): Add iso8859-9e.c.
8305 (gen-8bit-gap-modules): Add iso8859-9e.
8306 * iconvdata/iso8859-9e.c: New file.
8307 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8308 * iconvdata/TESTS: Likewise.
8309 * iconvdata/tst-tables.sh: Likewise.
8311 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8313 * locale/iso-639.def: Add several new entries.
8315 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8317 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8318 void * pointers instead of struct link_map **.
8319 (_dl_scope_free): Change argument type to void *.
8320 * include/link.h (struct link_map): Change type of l_reldeps
8321 to struct link_map_reldeps, move l_reldepsact into that
8323 * elf/dl-deps.c: Include atomic.h.
8324 (_dl_map_object_deps): Only change l->l_initfini when it is
8325 fully populated, use _dl_scope_free for freeing it. Optimize
8326 removal of libs from reldeps by using l_reserved flag, when
8327 some removal is needed, allocate a new list instead of
8328 reallocating and free the old with _dl_scope_free. Adjust
8329 for l_reldeps and l_reldepsact changes.
8330 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
8331 searching in l_initfini and l_reldeps without holding dl_load_lock.
8332 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8333 l_reldepsact changes.
8334 * elf/dl-close.c (_dl_close_worker): Likewise.
8335 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8337 2007-09-28 Ulrich Drepper <drepper@redhat.com>
8339 * iconvdata/Makefile (modules): Add KOI8-RU.
8340 (distribute): Add koi8-ru.c.
8341 (gen-8bit-gap-modules): Add koi8-ru.
8342 * iconvdata/koi8-ru.c: New file.
8343 * iconvdata/gconv-modules: Add entries for KOI8-RU.
8344 * iconvdata/TESTS: Likewise.
8345 * iconvdata/tst-tables.sh: Likewise.
8347 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8349 2007-09-26 Jakub Jelinek <jakub@redhat.com>
8351 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8352 with __warning__/__error__ attributes.
8353 (__warnattr): Define.
8354 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8355 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8357 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8358 of __*_chk if compile time detectable overflow is found.
8359 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8360 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8362 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8363 instead of __*_chk if compile time detectable overflow is found.
8364 (__gets_alias): Rename to...
8365 (__gets_warn): ... this. Add __warnattr.
8366 (gets): Call __gets_warn instead of __gets_alias.
8367 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8368 aliases with __warnattr.
8369 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8370 time detectable overflow is found.
8371 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8372 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8373 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8374 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8375 __getdomainname_chk_warn): New aliases with __warnattr.
8376 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8377 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8378 __*_chk_warn instead of __*_chk if compile time detectable overflow
8380 (__getgroups_chk): Rename argument to __listlen from listlen.
8381 (__getwd_alias): Rename to...
8382 (__getwd_warn): ... this. Add __warnattr.
8383 (getwd): Call __getwd_warn instead of __getwd_alias.
8384 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8385 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8386 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8387 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8388 __wcsnrtombs_chk_warn): New aliases with __warnattr.
8389 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8390 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8391 compile time detectable overflow is found.
8392 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
8393 to use __*_chk or not.
8394 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8395 in comparisons which function should be called and in __*_chk*
8396 arguments. Call __*_chk_warn instead of __*_chk if compile time
8397 detectable overflow is found.
8398 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8400 * debug/tst-chk1.c (do_test): Add a few more tests.
8402 2007-09-24 Ulrich Drepper <drepper@redhat.com>
8405 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8406 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8407 (_nl_unload_domain): Finalize conversions_lock.
8408 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8409 handling table of known conversions.
8411 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8413 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8414 close_not_cancel_no_status instead of close.
8416 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
8419 * posix/regcomp.c (lookup_collation_sequence_value): Check that
8420 nrules != 0 for multibyte chars.
8422 2007-09-23 Ulrich Drepper <drepper@redhat.com>
8424 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8425 Provide better error message in case the type is unknown.
8428 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8429 * string/stratcliff.c: Make usable to test wide char functions.
8430 * wcsmbs/wcsatcliff.c: New file.
8431 * wcsmbs/Makefiel (tests): Add wcsatcliff.
8434 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8435 (distribute): Add mac-centraleurope.c.
8436 (gen-8bit-gap-modules): Add mac-centraleurope.
8437 * iconvdata/mac-centraleurope.c: New file.
8438 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8439 * iconvdata/TESTS: Likewise.
8440 * iconvdata/tst-tables.sh: Likewise.
8443 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8445 2007-09-21 Ulrich Drepper <drepper@redhat.com>
8447 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8448 from __x86_64_core_cache_size_half.
8449 (init_cacheinfo): Compute shared cache size for AMD processors with
8450 shared L3 correctly.
8451 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8453 Patch in large parts by Evandro Menezes.
8455 2007-09-19 Ulrich Drepper <drepper@redhat.com>
8457 * elf/dl-lookup.c (add_dependency): Handle failing memory
8458 allocation for dependency list. Remove unnecessary check.
8460 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8461 open/close when determining source addresses.
8463 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8464 sha512-crypt, and sha512.
8465 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8466 (distribute): Add sha256.h and sha512.h.
8467 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8468 and call the appropriate code.
8469 * crypt/sha256-crypt.c: New file.
8470 * crypt/sha256.c: New file.
8471 * crypt/sha256.h: New file.
8472 * crypt/sha256c-test.c: New file.
8473 * crypt/sha256test.c: New file.
8474 * crypt/sha512-crypt.c: New file.
8475 * crypt/sha512.c: New file.
8476 * crypt/sha512.h: New file.
8477 * crypt/sha512c-test.c: New file.
8478 * crypt/sha512test.c: New file.
8480 2007-09-19 Jakub Jelinek <jakub@redhat.com>
8482 * misc/bits/syslog.h (syslog): Remove extraneous argument from
8483 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8486 2007-09-18 Jakub Jelinek <jakub@redhat.com>
8488 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8489 %as in fscanf format strings.
8491 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8492 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8493 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8495 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8498 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8499 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8500 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8501 * elf/dl-sym.c (do_sym): Likewise.
8502 * include/link.h (struct link_map): Add l_serial field.
8503 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8504 * elf/dl-lookup.c (add_dependency): Add flags argument.
8505 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8506 flags, use THREAD_GSCOPE_RESET_FLAG before and
8507 THREAD_GSCOPE_SET_FLAG after
8508 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8509 Don't dereference map until it has been found on some list.
8510 If map->l_serial changed, return -1.
8512 2007-09-17 Jakub Jelinek <jakub@redhat.com>
8514 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8515 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8516 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8518 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8519 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8520 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8521 add libc_hidden_proto.
8522 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8523 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8524 conformance requested.
8525 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8526 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8527 conformance requested.
8528 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8529 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8530 conformance requested.
8531 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8532 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8533 ISO C99 or POSIX conformance requested.
8534 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8535 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8536 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8537 and __isoc99_vsscanf@@GLIBC_2.7.
8538 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8539 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8540 (tests): Add scanf14.
8541 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8542 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8543 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8544 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8545 CFLAGS-isoc99_scanf.c): Add $(exceptions).
8546 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8547 from using internal headers.
8548 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8549 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8550 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8551 and __isoc99_vswscanf@@GLIBC_2.7.
8552 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8553 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8554 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8555 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8556 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8557 * stdio-common/isoc99_scanf.c: New file.
8558 * stdio-common/isoc99_vsscanf.c: New file.
8559 * stdio-common/isoc99_vscanf.c: New file.
8560 * stdio-common/isoc99_vfscanf.c: New file.
8561 * stdio-common/isoc99_fscanf.c: New file.
8562 * stdio-common/isoc99_sscanf.c: New file.
8563 * wcsmbs/isoc99_fwscanf.c: New file.
8564 * wcsmbs/isoc99_vswscanf.c: New file.
8565 * wcsmbs/isoc99_swscanf.c: New file.
8566 * wcsmbs/isoc99_wscanf.c: New file.
8567 * wcsmbs/isoc99_vwscanf.c: New file.
8568 * wcsmbs/isoc99_vfwscanf.c: New file.
8569 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8570 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8571 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8572 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8573 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8574 * stdio-common/scanf14.c: New test.
8575 * stdio-common/scanf15.c: New test.
8576 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8577 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8578 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8579 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8580 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8581 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8582 __nldbl___isoc99_scanf@@GLIBC_2.7,
8583 __nldbl___isoc99_fscanf@@GLIBC_2.7,
8584 __nldbl___isoc99_sscanf@@GLIBC_2.7,
8585 __nldbl___isoc99_vscanf@@GLIBC_2.7,
8586 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8587 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8588 __nldbl___isoc99_wscanf@@GLIBC_2.7,
8589 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8590 __nldbl___isoc99_swscanf@@GLIBC_2.7,
8591 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8592 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8593 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8594 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8595 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8596 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8597 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8598 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8599 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8600 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8601 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8602 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8603 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8604 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8605 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8607 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8608 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8609 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8610 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8611 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8612 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8613 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8614 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8615 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8616 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8617 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8618 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8620 * stdio-common/Makefile (tests): Add scanf13.
8622 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8623 m modifier followed by l.
8624 (STRING_ARG): Add width argument.
8625 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8626 <case L_('C')>: Handle %mlc and %mC.
8627 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8629 * stdio-common/scanf13.c: New test.
8631 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8632 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8634 2007-09-18 Ulrich Drepper <drepper@redhat.com>
8636 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8637 type and __THROW marker of splice, vmsplice, and tee.
8638 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8639 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8640 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8641 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8642 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8643 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8644 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8645 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8646 as cancellation points.
8648 2003-11-01 Daniel Jacobowitz <dan@debian.org>
8650 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8651 parse more than three parts of the version number.
8653 2007-09-15 Ulrich Drepper <drepper@redhat.com>
8655 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8656 modifier. Patch by Jakub Jelinek.
8658 2007-08-26 Jakub Jelinek <jakub@redhat.com>
8660 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8661 call_fallocate in misc subdir.
8662 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8663 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8664 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8665 instead of __fallocate64.
8666 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8668 2007-09-15 Jakub Jelinek <jakub@redhat.com>
8670 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8671 * rt/Makefile (headers): Add bits/mqueue2.h.
8672 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8673 optimizing with GCC and __va_arg_pack_len is defined.
8674 * rt/bits/mqueue2.h: New file.
8675 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8676 (mq_open): New strong_alias.
8677 (__mq_open_2): New function.
8678 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8679 (mq_open): New strong_alias.
8680 (__mq_open_2): New function.
8681 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8682 * Versions.def (librt): Add GLIBC_2.7 version.
8683 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8684 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8686 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8687 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8688 is defined rather than when not C++.
8689 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8690 __openat64_alias): New redirects.
8691 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8692 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8693 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8694 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8695 functions instead of function-like macros.
8697 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8699 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8700 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8701 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8703 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8705 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8706 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8708 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8710 * inet/tst-network.c: Increment ERRORS for failing tests.
8712 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8714 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8715 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8716 implement as __extern_always_inline function.
8717 (vsyslog): Define as __extern_always_inline function unconditionally.
8718 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8719 When __va_arg_pack is defined, implement as __extern_always_inline
8721 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8722 __extern_always_inline functions unconditionally.
8723 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8724 bits/stdio2.h will be included.
8725 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8726 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8727 implement as __extern_always_inline functions.
8728 (vswprintf, vwprintf, vfwprintf): Define as
8729 __extern_always_inline functions unconditionally.
8730 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8732 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8734 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8735 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8737 * include/features.h (__USE_EXTERN_INLINES): Define only when
8738 __extern_inline is defined.
8739 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8740 is defined instead of when not __cplusplus.
8741 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8742 is defined instead of when not __cplusplus.
8743 * socket/sys/socket.h: Include bits/socket2.h when
8744 __extern_always_inline is defined instead of when not __cplusplus.
8745 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8746 is defined instead of when not __cplusplus.
8747 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8748 is defined instead of when not __cplusplus.
8749 * string/string.h: Include bits/string3.h when __extern_always_inline
8750 is defined instead of when not __cplusplus.
8751 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8752 is defined instead of when not __cplusplus.
8753 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8754 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8756 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8757 defined __extern_always_inline instead of !defined __cplusplus.
8758 * libio/bits/stdio-ldbl.h: Likewise.
8759 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8760 * misc/bits/syslog.h (syslog): Don't define for C++.
8761 (vsyslog): Use __extern_always_inline function for C++ instead of
8763 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8764 whenever that macro is defined.
8765 (vprintf): Don't provide the inline for C++.
8766 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8767 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8768 define the macros for C++.
8769 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8770 __extern_always_inline functions for C++.
8771 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8772 stat64, lstat64, fstat64, fstatat64): Don't define if not
8773 __USE_EXTERN_INLINES.
8774 * wcsmbs/bits/wchar2.h: Fix #error message.
8775 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8776 (vswprintf, vwprintf, vfwprintf): Define using
8777 __extern_always_inline functions for C++.
8778 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8779 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8780 strncpy, strcat, strncat): Define as __extern_always_inline
8781 functions instead of macros for C++.
8782 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8783 defined __extern_inline.
8784 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8785 to __extern_inline whenever that macro is defined.
8786 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8787 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8788 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8789 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8790 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8791 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8792 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8793 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8794 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8795 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8796 prototypes. Only provide __extern_inline routines if
8797 __USE_EXTERN_INLINES.
8798 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8800 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8801 For now avoid some *printf tests in C++. Skip all testing
8802 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8804 * debug/tst-chk4.cc: New file.
8805 * debug/tst-chk5.cc: New file.
8806 * debug/tst-chk6.cc: New file.
8807 * debug/tst-lfschk4.cc: New file.
8808 * debug/tst-lfschk5.cc: New file.
8809 * debug/tst-lfschk6.cc: New file.
8810 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8812 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8813 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8814 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8816 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8818 * po/cs.po: Update from translation team.
8820 2007-09-11 Roland McGrath <roland@redhat.com>
8822 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8825 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8827 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8829 2007-09-05 Roland McGrath <roland@redhat.com>
8831 * manual/signal.texi (Signaling Another Process): Typo fix.
8832 From Karl Berry <karl@freefriends.org>.
8834 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8836 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8837 zero if not defined.
8838 (make_request): Recognize optimistic addresses and treat them like
8839 deprecated addresses.
8840 Reported by Neil Horman <nhorman@redhat.com>.
8842 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8844 * nscd/connections.c (send_ro_fd): Also transfer file size.
8845 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8846 file size don't call fstat.
8848 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8849 ahead and map the file. This should always be correct and we can
8850 catch problems later.
8852 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8854 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8856 (__fread_alias, __fread_unlocked_alias): New aliases.
8857 (fread): New extern inline.
8858 (fread_unlocked): Likewise. Undef macro before definition of
8859 the inline function.
8860 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8861 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8862 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8863 and __fread_unlocked_chk@@GLIBC_2.7.
8864 * debug/fread_chk.c: New file.
8865 * debug/fread_u_chk.c: New file.
8866 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8868 2007-08-27 Jakub Jelinek <jakub@redhat.com>
8870 * sysdeps/unix/sysv/linux/syscalls.list
8871 (personality): Change caller to EXTRA.
8873 2007-08-25 Ulrich Drepper <drepper@redhat.com>
8875 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8877 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8879 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8882 * Makerules: Use -p option with mkdir.
8884 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8885 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8886 (_xdr_directory_obj): Likewise.
8887 (xdr_entry_obj): Likewise.
8888 (xdr_group_obj): Likewise.
8889 (xdr_link_obj): Likewise.
8890 (xdr_table_obj): Likewise.
8891 (_xdr_nis_result): Likewise.
8892 (_xdr_ns_request): Likewise.
8893 (_xdr_ib_request): Likewise.
8894 (_xdr_nis_taglist): Likewise.
8895 (xdr_cback_data): Likewise.
8896 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8897 (xdr_ypresp_maplist): Likewise.
8899 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8901 * posix/regex_internal.h: Prevent some declarations and definitions
8902 to be seen when used in tests.
8904 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8905 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8907 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8909 * config.make.in (datarootdir): Add to shut up configure.
8911 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8912 associativity for fully-associative caches.
8914 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8915 requests. Fill on more associativity values for L2.
8916 Patch mostly by Evandro Menezes.
8918 2007-08-24 Ulrich Drepper <drepper@redhat.com>
8920 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8921 (_libc_vdso_platform_setup): Avoid using exported variable by using
8924 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8926 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8927 fallocate64 as EXTRA. It is not referenced if the symbol isn't
8930 2007-08-23 Ulrich Drepper <drepper@redhat.com>
8932 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8933 align stack for call if pltexit is to be used.
8936 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8937 align for function call in case pltexit has to be called later.
8939 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8940 implicit atomic operation when storing function pointer.
8941 (_dl_runtime_profile): Likewise.
8943 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8945 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8948 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8951 * string/strtok.c: Fix typo in comment.
8954 * debug/segfault.c: Fix typos in comments.
8957 * stdio-common/tempnam.c: Fix comment, it is not checked that
8958 TMPDIR points to a writable directory.
8961 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8962 memory allocated for the name server address.
8965 * nscd/connections.c (handle_request): Using sendfile always
8966 requires that mmap is used for the database.
8967 Patch by Petr Baudis <pasky@suse.cz>.
8970 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8971 suddenly has two or more addresses, ignore it and remove the old
8975 * resolv/res_hconf.c: Prepare for compiling outside libc.
8976 * nscd/res_hconf.c: New file.
8977 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8979 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8980 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8982 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8985 * debug/pcprofiledump.c: Turn on internationalization by calling
8986 setlocale. Patch mostly by Benno Schulenberg.
8989 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8991 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8992 * iconvdata/bug-iconv5.c: New file.
8994 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8997 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8998 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8999 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9000 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9001 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9002 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9003 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9004 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9006 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9009 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9010 lookup loop. Suggested by John Reiser.
9012 2007-08-21 Jakub Jelinek <jakub@redhat.com>
9014 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9016 2007-08-20 Ulrich Drepper <drepper@redhat.com>
9018 * csu/libc-start.c: Don't handle VDSO_SETUP here.
9019 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9020 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9021 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
9022 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9024 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
9026 2007-08-18 Ulrich Drepper <drepper@redhat.com>
9028 * po/nl.po: Update from translation team.
9030 2007-08-16 Andreas Jaeger <aj@suse.de>
9032 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9033 Reported by Peter Festner <peter.festner@ewetel.net>.
9035 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9037 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9039 2007-08-16 Jakub Jelinek <jakub@redhat.com>
9041 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9042 to check for undefined symbols.
9044 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9045 If the syscall fails, set errno to the actual returned error number
9047 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9048 arguments are incorrect, set errno to EINVAL, if the syscall
9049 fails, set errno to the actual returned error number.
9051 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9052 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9054 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9055 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
9057 (ASI_PNF, ASI_BLK_P): Don't define.
9058 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9059 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
9061 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9062 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
9065 2007-08-15 Jakub Jelinek <jakub@redhat.com>
9067 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9068 FE_UNDERFLOW on Niagara CPUs.
9070 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9073 2007-08-14 Jakub Jelinek <jakub@redhat.com>
9075 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9076 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9077 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9078 flush should be used or not inside of the function.
9079 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9081 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9082 __thread_start): Use HIDDEN_JUMPTARGET.
9083 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9084 __thread_start): Likewise.
9085 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9087 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9088 Add libc_hidden_proto.
9089 (STRTOF): Add libc_hidden_proto.
9090 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9091 (strtold_l, wcstold_l): Use them as second argument for
9094 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9096 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
9098 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9100 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
9102 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9104 * po/bg.po: New file. From the translation team.
9106 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9108 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9109 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9110 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9111 when each feature was introduced.
9113 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9114 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9115 (CHECK_HASH): New macro.
9116 (PREPARE_VERSION): Use it.
9118 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9119 prototype if not __ASSUME_PSELECT.
9120 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9121 prototype if not __ASSUME_PPOLL.
9123 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9125 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9126 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9129 2007-08-13 Ulrich Drepper <drepper@redhat.com>
9131 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9132 (_libc_vdso_platform_setup): If vDSO is not available point
9133 __vdso_gettimeofday to the vsyscall.
9134 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9135 __vdso_gettimeofday instead of vsyscall.
9137 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9139 * nscd/servicescache.c: Include kernel-features.h.
9140 * nscd/gai.c: Likewise.
9141 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9142 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9143 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9144 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9145 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9146 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9147 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9148 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9149 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9151 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9153 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9154 and _dl_get_origin defines anymore.
9156 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9157 Build fix for systems which might lack POSIX timer support.
9159 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9160 (_libc_vdso_platform_setup): Mangle function pointers before storing
9162 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9163 Demangle vdso pointer before use.
9164 (INTERNAL_VSYSCALL): Likewise.
9166 * elf/cache.c (primes): Mark as const.
9167 Noted by Roland McGrath.
9169 2007-08-01 Andreas Jaeger <aj@suse.de>
9170 Jakub Jelinek <jakub@redhat.com>
9172 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9173 (options): Add option.
9174 (parse_opt): Handle option.
9175 (manual_link): Adjust process_file caller. Call implicit_soname.
9176 (search_dir): Formatting. Use and populate auxiliary cache.
9177 (main): Load and save auxiliary cache.
9178 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
9179 stat64 from fstat64 to caller.
9180 (implicit_soname): New function.
9181 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9182 leave *soname as NULL.
9183 * elf/cache.c: Include libgen.h.
9184 (print_entry, print_cache, compare, save_cache, add_to_cache):
9185 Formatting and cleanups.
9186 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9187 aux_cache_file): New structures.
9188 (AUX_CACHEMAGIC): Define.
9189 (primes): New array.
9190 (aux_hash_size, aux_hash): New variables.
9191 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9192 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9193 load_aux_cache, save_aux_cache): New functions.
9194 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9195 (init_aux_cache, search_aux_cache, add_to_aux_cache,
9196 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9197 (process_file): Adjust prototype.
9199 2007-08-12 Jakub Jelinek <jakub@redhat.com>
9201 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9204 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9206 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9207 r_found_version structure as second parameter.
9208 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9209 (_dl_vdso_vsym): Change type of second parameter accordingly.
9210 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9211 (_libc_vdso_platform_setup): Adjust.
9212 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9213 (_libc_vdso_platform_setup): Likewise.
9215 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9216 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9217 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9218 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9219 * csu/libc-start.c: Pretty printing.
9220 Use VDSO_SETUP if defined.
9221 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9222 and let generic code call into _libc_vdso_platform_setup.
9223 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9224 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9225 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9226 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9227 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9229 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9230 (sysdep_rountines): Add dl-vdso.
9232 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9235 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9236 attribute_hidden to __vdso_gettimeofday prototype.
9238 2007-08-12 Roland McGrath <roland@redhat.com>
9240 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9241 From: Karl Berry <karl@freefriends.org>.
9243 2007-08-11 Ulrich Drepper <drepper@redhat.com>
9245 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9246 an atime update for the files we read.
9248 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9250 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9252 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
9255 * misc/Makefile (routines): Add mkostemp and mkostemp64.
9256 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9257 * misc/mkostemp.c: New file.
9258 * misc/mkostemp64.c: New file.
9259 * stdlib/stdlib.h: Declare the new functions.
9260 * sysdeps/posix/tempname.c: Add new parameter which is added to
9261 the flags for open. Remove __GT_BIGFILE handling.
9262 * stdio-common/tempname.c: Likewise.
9263 * include/stdio.h: Adjust __gen_tempname prototype.
9264 Renumber __GT_* constants.
9265 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9266 * misc/mkdtemp.c: Likewise.
9267 * misc/mkstemp.c: Likewise.
9268 * misc/mkstemp64.c: Likewise.
9269 * misc/mktemp.c: Likewise.
9270 * stdio-common/tempnam.c: Likewise.
9271 * stdio-common/tmpfile.c: Likewise.
9272 * stdio-common/tmpfile64.c: Likewise.
9273 * stdio-common/tmpnam.c: Likewise.
9274 * stdio-common/tmpnam_r.c: Likewise.
9276 2007-08-10 Roland McGrath <roland@frob.com>
9278 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9280 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9281 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9283 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9285 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9287 * nss/nss_files/files-alias.c (internal_setent): Likewise.
9288 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9289 * nss/nss_files/files-have_o_cloexec.c: New file.
9291 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9294 2007-08-10 Jakub Jelinek <jakub@redhat.com>
9296 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9297 ___new_wcstold_l): New weak aliases.
9298 (strtold_l, wcstold_l): Use them as second argument for
9301 2007-08-09 Ulrich Drepper <drepper@redhat.com>
9303 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9304 register in test for error.
9306 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9307 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9309 * po/sv.po: Update from translation team.
9311 2007-08-06 Roland McGrath <roland@redhat.com>
9313 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9314 Remove __strto*_l inlines.
9315 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9316 * stdlib/strtod.c: Add libc_hidden_def.
9317 * stdlib/strtod_l.c: Likewise.
9318 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9319 for __new_strtold and __new_wcstold.
9320 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9322 * stdlib/strtol.c: Add libc_hidden_def.
9323 * stdlib/strtol_l.c: Likewise.
9324 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9327 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9329 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9330 * scripts/data/localplt-generic.data: ... here.
9331 * elf/Makefile (check-data): Get generic file if no other.
9332 ($(objpfx)check-localplt.out): Make target unconditional.
9334 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9337 2007-08-05 Ulrich Drepper <drepper@redhat.com>
9339 * po/zh_CN.po: Updated translation from translation team.
9341 2007-08-05 Jakub Jelinek <jakub@redhat.com>
9343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9344 Don't use CGOTSETUP and CGOTRESTORE macros.
9346 2007-08-04 Roland McGrath <roland@redhat.com>
9348 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9350 2007-08-04 Jakub Jelinek <jakub@redhat.com>
9352 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9353 __extension__ around the whole statement expression.
9355 2007-08-04 Ulrich Drepper <drepper@redhat.com>
9357 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9358 elements during initialization.
9360 * po/pl.po: Updated translation from translation team.
9361 * po/tr.po: Likewise.
9362 * po/nl.po: Likewise.
9364 2007-08-03 Ulrich Drepper <drepper@redhat.com>
9366 * rt/aio.h: Add __nonnull attributes.
9368 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9370 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9371 * stdlib/Makefile (tests): Add tst-strtod5.
9372 (tst-strtod5-ENV): New.
9373 * stdlib/tst-strtod5.c: New file.
9375 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9377 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9380 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9383 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9385 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9388 2007-08-02 Ulrich Drepper <drepper@redhat.com>
9390 * io/Makefile (aux): Add have_o_cloexec.
9391 * include/fcntl.h: Declare __have_o_cloexec.
9392 * io/have_o_cloexec.c: New file.
9393 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9394 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9395 fcntl call if not necessary.
9396 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9399 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9400 Avoid memset, add explicit initialization.
9401 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9402 to the end and change into zero-sized array.
9403 Move lock member to fill a hole on 64-bit platforms.
9405 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9407 * include/stdlib.h: Add __strto*_internal prototypes here.
9408 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9410 * include/wchar.h: Add __wcsto*_internal prototypes.
9411 * sysdeps/generic/inttypes.h: No need to protect the declaration
9412 of the __strto*_internal and __wcsto*_internal members here.
9414 * rt/mqueue.h: Change const to __const and add nonnull attributes.
9416 2007-08-02 Roland McGrath <roland@redhat.com>
9418 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9419 $(inst_bindir)/getconf if possible.
9421 * posix/Makefile ($(objpfx)getconf.speclist): New target.
9422 (generated): Add it.
9423 ($(inst_libexecdir)/getconf): Use it.
9425 2007-08-01 Ulrich Drepper <drepper@redhat.com>
9427 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9428 /proc is faster and sufficient. /sys is still needed for
9431 2007-08-01 Jakub Jelinek <jakub@redhat.com>
9433 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9434 syscall as __fallocate64.
9435 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9436 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9438 2007-07-30 Jakub Jelinek <jakub@redhat.com>
9440 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9443 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9444 if off_t is different rank from size_t.
9446 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9447 uw_frame_state_for): Avoid type punning warnings.
9448 * sysdeps/generic/unwind-dw2-fde-glibc.c
9449 (_Unwind_IteratePhdrCallback): Likewise.
9450 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9451 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9452 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9455 2007-07-31 Ulrich Drepper <drepper@redhat.com>
9457 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9458 total processors using sysfs.
9459 (__get_nprocs): Use sysfs to determine which processors are online.
9461 2007-07-31 Jakub Jelinek <jakub@redhat.com>
9463 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9464 syscall arguments count.
9466 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9468 2007-07-30 Roland McGrath <roland@redhat.com>
9470 * manual/libc.texinfo: Update copyrights, formatting magic, and
9471 @dircategory. From Karl Berry <karl@freefriends.org>.
9473 2007-07-29 Ulrich Drepper <drepper@redhat.com>
9476 * io/Makefile (headers): Add bits/fcntl2.h.
9478 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9480 (__CPU_EQUAL_S): Likewise.
9482 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9483 (tests): Add tst-cpuset.
9484 * posix/sched_cpualloc.c: New file.
9485 * posix/sched_cpufree.c: New file.
9486 * posix/tst-cpuset.c: New file.
9487 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9489 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9490 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9491 macros. Define CPU_*_S macros.
9493 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9495 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9499 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9500 #.0g and value rounded to 1.0.
9501 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9503 2007-07-26 Jakub Jelinek <jakub@redhat.com>
9505 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9506 for int_frac_digits and frac_digits.
9508 * login/logout.c (logout): Avoid aliasing violation.
9509 * login/logwtmp.c (logwtmp): Likewise.
9511 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9513 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9515 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9517 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9519 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9522 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9524 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9526 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9527 char * to avoid warning.
9528 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9530 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9532 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9533 allocate_arrays): Cast second argument to charmap_find_symbol
9534 to char * to avoid warnings.
9536 * locale/programs/repertoire.c (repertoire_new_char): Change
9537 from_nr, to_nr and cnt to unsigned long, adjust printf format
9540 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9541 Cast second argument to new_element to char * to avoid warnings.
9543 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9545 * intl/gettextP.h (struct loaded_domain): Change plural to const
9546 struct expression *.
9547 * intl/plural-eval.c (plural_eval): Change first argument to
9548 const struct expression *.
9549 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9550 argument to const struct expression **.
9551 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9553 * intl/loadmsgcat (_nl_unload_domain): Cast away const
9554 in call to __gettext_free_exp.
9556 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9557 unitialized wstring/wpattern var warnings.
9559 * posix/runtests.c (struct a_test): Make data field const char *.
9561 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9562 vars if not LDBL_MANT_DIG >= 106.
9564 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9566 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9567 __find_specmb to avoid warning.
9569 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9571 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9574 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9577 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9578 tv var when it will be actually used.
9580 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9583 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9584 char array resp. pointer.
9585 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9587 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9588 to const unsigned char **.
9589 (ucs4_to_cns11643): Change second argument to unsigned char *.
9590 * iconvdata/euc-tw.c (BODY): Change endp type to
9591 const unsigned char *.
9592 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9594 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9595 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9596 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9597 types to unsigned char pointers/arrays instead of char.
9598 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9600 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9601 * iconvdata/jis0212.h: Include assert.h.
9602 (ucs4_to_jisx0212): Change second argument to unsigned char *.
9603 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9604 of trying to handle that.
9605 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9607 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9608 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9609 two dimensional const unsigned char arrays.
9610 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9611 Initialize endp to inptr to shut up a warning.
9613 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9616 * time/strptime_l.c (__strptime_internal): Silently ignore
9617 strftime modifiers and field width in recursive calls.
9619 * include/time.h (enum ptime_locale_status): Remove.
9620 (__strptime_internal): Remove decided and era_cnt arguments,
9621 add statep argument.
9622 * time/strptime_l.c (__strptime_internal): Remove decided
9623 and era_cnt arguments, add statep argument. Don't recompute
9624 any fields in recursive calls, only update caller's tm
9625 and state, if recursive call fails, don't change tm nor
9627 (get_alt_number): Adjust.
9628 (recursive): Adjust caller.
9629 (strptime): Likewise.
9630 * time/strptime.c (strptime): Likewise.
9632 2007-07-19 Jakub Jelinek <jakub@redhat.com>
9634 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9635 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9636 if from and to charsets are the same.
9637 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9638 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9639 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9641 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9643 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9644 Don't define wint_t when __need_mbstate_t unless it
9646 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9647 in the typedef if possible.
9648 * wctype/wctype.h (wint_t): Define by including
9649 wchar.h with __need_wint_t instead of including stddef.h
9650 with __need_wint_t and as fallback definining it ourselves.
9651 * iconv/gconv.h (__need_wint_t): Define before including
9653 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9654 or _GLIBCPP_USE_WCHAR_T.
9655 (__need_wchar_t): Don't define
9656 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9657 (__need_wint_t): Don't define before including stddef.h,
9658 define before including wchar.h only if _LIBC or
9659 _GLIBCPP_USE_WCHAR_T.
9660 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9661 * sysdeps/mach/hurd/_G_config.h: Likewise.
9662 * sysdeps/generic/_G_config.h: Likewise.
9663 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9664 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9665 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9666 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9668 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9670 * sysdeps/posix/posix_fallocate64.c: Undefine
9671 __posix_fallocate64_l64 before alias handling.
9672 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9673 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9674 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9675 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9677 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9679 2007-07-23 Jakub Jelinek <jakub@redhat.com>
9681 * locale/programs/ld-collate.c (atwc): New variable.
9682 (add_to_tablewc): New toplevel function, moved from collate_output.
9683 (collate_output): Remove add_to_tablewc nested function.
9685 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9686 (name_insert): New function.
9687 (write_output): Remove hash_table and hash_size vars and name_insert
9690 2007-07-24 Roland McGrath <roland@redhat.com>
9692 * Makerules (install-others-programs-nosubdir): New target.
9693 (install-no-libc.a-nosubdir): Depend on it.
9695 * iconv/Makefile (install-others-programs): Set this instead of
9697 * login/Makefile (install-others-programs): Likewise.
9698 * posix/Makefile (install-others-programs): Likewise.
9700 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9703 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9705 * io/Makefile (tests): Add tst-posix_fallocate.
9706 * io/tst-posix_fallocate.c: New file.
9708 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9711 2007-07-22 Roland McGrath <roland@frob.com>
9713 * hurd/getdport.c: Add missing copyright year update.
9715 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9716 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9718 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9720 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9722 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9723 O_CLOEXEC is needed.
9724 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9725 Avoid additional fcntl to set O_CLOEXEC if not needed.
9726 * nis/nss_compat/compat-initgroups.c: Likewise.
9727 * nis/nss_compat/compat-pwd.c: Likewise.
9728 * nis/nss_compat/compat-spwd.c: Likewise.
9730 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9733 * manual/errno.texi: Change ECANCELED value to 119.
9736 * mach/lock-intern.h: Include <sys/cdefs.h>.
9739 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9743 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9746 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9748 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9750 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9752 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9754 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9756 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9757 descriptor received from nscd.
9759 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9761 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9762 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9763 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9764 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9765 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9766 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9768 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9771 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9774 * login/forkpty.c (forkpty): Close master and slave fds on
9775 fork failure. Patch by
9776 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9778 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9780 * include/features.h (__USE_ISOC95): New define.
9781 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9782 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9783 for -std=iso9899:199409.
9784 * CONFORMANCE: Remove comments about unsupported AMD1.
9786 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9788 * sysdeps/ia64/sched_cpucount.c: New file.
9789 * sysdeps/powerpc/sched_cpucount.c: New file.
9791 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9792 __BEGIN_DECLS/__END_DECLS around the prototype.
9793 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9794 pointer to const cpu_set_t.
9796 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9797 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9798 __need_size_t and include stddef.h.
9799 * sysvipc/sys/msg.h: Likewise.
9800 * posix/sched.h: Likewise.
9801 * hurd/hurd/signal.h (__need_size_t): Define.
9803 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9804 neither does signal.h in pedantic ISO C namespaces. stdio.h
9805 no longer defines wint_t or wchar_t.
9807 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9808 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9809 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9810 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9811 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9812 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9813 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9814 * debug/printf_chk.c (__printf_chk): Likewise.
9815 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9816 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9818 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9821 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9822 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9824 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9827 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9828 * malloc/malloc.h (realloc): Likewise.
9830 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9831 if one of proc_file_chain streams has that fileno.
9832 * stdio-common/Makefile (tests): Add tst-popen2.
9833 * stdio-common/tst-popen2.c: New test.
9835 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9837 * elf/ldconfig.c: Allow GPLv2 or any later version.
9838 * elf/readlib.c: Likewise.
9839 * elf/chroot_canon.c: Likewise.
9840 * elf/cache.c: Likewise.
9841 * nscd/mem.c: Likewise.
9842 * nscd/getpwuid_r.c: Likewise.
9843 * nscd/grpcache.c: Likewise.
9844 * nscd/aicache.c: Likewise.
9845 * nscd/getsrvbynm_r.c: Likewise.
9846 * nscd/nscd.c: Likewise.
9847 * nscd/servicescache.c: Likewise.
9848 * nscd/getsrvbypt_r.c: Likewise.
9849 * nscd/initgrcache.c: Likewise.
9850 * nscd/gethstbyad_r.c: Likewise.
9851 * nscd/gethstbynm2_r.c: Likewise.
9852 * nscd/getgrnam_r.c: Likewise.
9853 * nscd/nscd_setup_thread.c: Likewise.
9854 * nscd/getpwnam_r.c: Likewise.
9855 * nscd/gai.c: Likewise.
9856 * nscd/connections.c: Likewise.
9857 * nscd/dbg_log.c: Likewise.
9858 * nscd/cache.c: Likewise.
9859 * nscd/hstcache.c: Likewise.
9860 * nscd/nscd_conf.c: Likewise.
9861 * nscd/getgrgid_r.c: Likewise.
9862 * nscd/pwdcache.c: Likewise.
9863 * catgets/gencat.c: Likewise.
9864 * locale/programs/linereader.h: Likewise.
9865 * locale/programs/locarchive.c: Likewise.
9866 * locale/programs/ld-paper.c: Likewise.
9867 * locale/programs/locfile-kw.h: Likewise.
9868 * locale/programs/ld-address.c: Likewise.
9869 * locale/programs/xmalloc.c: Likewise.
9870 * locale/programs/ld-time.c: Likewise.
9871 * locale/programs/localedef.c: Likewise.
9872 * locale/programs/simple-hash.c: Likewise.
9873 * locale/programs/xstrdup.c: Likewise.
9874 * locale/programs/ld-numeric.c: Likewise.
9875 * locale/programs/locfile-kw.gperf: Likewise.
9876 * locale/programs/ld-collate.c: Likewise.
9877 * locale/programs/charmap-kw.gperf: Likewise.
9878 * locale/programs/charmap.h: Likewise.
9879 * locale/programs/charmap-kw.h: Likewise.
9880 * locale/programs/config.h: Likewise.
9881 * locale/programs/locfile.c: Likewise.
9882 * locale/programs/ld-ctype.c: Likewise.
9883 * locale/programs/charmap.c: Likewise.
9884 * locale/programs/ld-messages.c: Likewise.
9885 * locale/programs/repertoire.h: Likewise.
9886 * locale/programs/locale.c: Likewise.
9887 * locale/programs/ld-name.c: Likewise.
9888 * locale/programs/linereader.c: Likewise.
9889 * locale/programs/locfile.h: Likewise.
9890 * locale/programs/3level.h: Likewise.
9891 * locale/programs/ld-monetary.c: Likewise.
9892 * locale/programs/ld-measurement.c: Likewise.
9893 * locale/programs/charmap-dir.c: Likewise.
9894 * locale/programs/ld-identification.c: Likewise.
9895 * locale/programs/localedef.h: Likewise.
9896 * locale/programs/charmap-dir.h: Likewise.
9897 * locale/programs/repertoire.c: Likewise.
9898 * locale/programs/simple-hash.h: Likewise.
9899 * locale/programs/ld-telephone.c: Likewise.
9900 * locale/programs/locale-spec.c: Likewise.
9901 * locale/programs/locfile-token.h: Likewise.
9902 * posix/getconf.c: Likewise.
9903 * iconv/dummy-repertoire.c: Likewise.
9904 * iconv/iconv_charmap.c: Likewise.
9905 * iconv/iconvconfig.c: Likewise.
9906 * iconv/iconv_prog.c: Likewise.
9907 * malloc/memusagestat.c: Likewise.
9908 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9910 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9912 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9913 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9914 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9915 check for the first argument.
9917 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9920 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9921 (__tgmath_real_type): Fix if expr is const int or other const
9922 qualified integral type.
9923 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9924 expressions and handle const qualified arguments.
9925 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9926 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9927 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9928 statement expressions.
9929 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9930 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9931 (__TGMATH_UNARY_IMAG): Define.
9932 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9933 * math/Makefile (tests): Add test-tgmath2.
9934 (CFLAGS-test-tgmath2.c): Add.
9935 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9936 count_cfloat, count_cldouble): New variables.
9938 (main): Check number of complex calls as well.
9939 (F(compile_test)): Add complex tests and tests with const qualified
9941 (y, z, ccount): Define.
9942 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9943 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9944 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9945 F(cproj)): New functions.
9946 * math/test-tgmath2.c: New test.
9948 2007-07-11 Jakub Jelinek <jakub@redhat.com>
9951 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9952 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9954 * dlfcn/Makefile (distribute): Add glreflib3.c.
9955 (module-names): Add glreflib3.
9956 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9958 (LDFLAGS_glreflib3.so): New.
9959 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9961 * dlfcn/glreflib3.c: New file.
9963 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9964 returned -1, return NULL.
9965 * intl/explodename.c (_nl_explode_name): Return -1 if
9966 _nl_normalize_codeset failed.
9968 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9970 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9971 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9972 and avoid branch misspredicts for > 31 bytes memset case.
9973 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9974 Remove toc ref to __cache_line_size.
9976 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9977 to get ISA-V2.0 branch hints.
9978 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9979 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9980 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9981 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9982 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9983 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9984 Remove toc ref to __cache_line_size.
9986 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9987 Include math_ldbl_opt.h.
9989 2007-07-10 Ulrich Drepper <drepper@redhat.com>
9992 * time/strptime_l.c (__strptime_internal): Implement greedy
9993 matching of weekday and month names.
9995 2007-07-09 Roland McGrath <roland@redhat.com>
9997 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9998 (ELF_NOTE_ABI): Use it.
9999 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10001 2007-07-09 Ulrich Drepper <drepper@redhat.com>
10003 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10004 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10006 2007-07-07 Ulrich Drepper <drepper@redhat.com>
10009 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10010 in loop to look for conversion specifier to avoid testing of
10012 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10013 * stdio-common/bug18.c: New file.
10014 * stdio-common/bug18a.c: New file.
10015 * stdio-common/bug19.c: New file.
10016 * stdio-common/bug19a.c: New file.
10018 2007-07-05 Mike Frysinger <vapier@gentoo.org>
10020 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10021 running awk script.
10023 2007-07-01 Jakub Jelinek <jakub@redhat.com>
10025 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10026 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
10027 Return NULL if mmap failed instead of asserting it does not.
10028 (calloc): Check for integer overflow.
10030 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10031 than LONG_MAX / 10.
10033 2007-07-03 Jakub Jelinek <jakub@redhat.com>
10036 * nis/nss-default.c: Include errno.h.
10037 (init): Preserve errno.
10039 2007-07-02 Ulrich Drepper <drepper@redhat.com>
10041 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10043 2007-06-30 Ulrich Drepper <drepper@redhat.com>
10045 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10047 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10049 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10051 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10053 * sysdeps/s390/dl-procinfo.c: New file.
10054 * sysdeps/s390/dl-procinfo.h: New file.
10055 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10057 2007-06-29 Jakub Jelinek <jakub@redhat.com>
10059 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10060 in PT_NOTE segments with multiple notes.
10061 * elf/readelflib.c (process_elf_file): Likewise.
10063 2007-06-22 Ulrich Drepper <drepper@redhat.com>
10065 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10068 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10070 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10072 2007-06-13 Jakub Jelinek <jakub@redhat.com>
10074 * include/link.h: Don't include rtld-lowlevel.h.
10075 (struct link_map): Remove l_scope_lock.
10076 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10077 (_dl_scope_free_list): New field (variable) in _rtld_global.
10078 (DL_LOOKUP_SCOPE_LOCK): Remove.
10079 (_dl_scope_free): New prototype.
10080 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10081 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10082 (_dl_profile_fixup): Likewise.
10083 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
10084 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10085 THREAD_GSCOPE_RESET_FLAG around it.
10086 * elf/dl-close.c (_dl_close_worker): Don't use
10087 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
10088 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
10089 scopes were queued or if l_scope_mem has been abandoned.
10090 * elf/dl-open.c (_dl_scope_free): New function.
10091 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
10092 * elf/dl-support.c (_dl_scope_free_list): New variable.
10093 * elf/dl-lookup.c (add_dependency): Remove flags argument.
10094 Remove DL_LOOKUP_SCOPE_LOCK handling.
10095 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
10097 * elf/dl-object.c (_dl_new_object): Don't use
10098 __rtld_mrlock_initialize.
10100 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10102 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10104 (rtld_global_ro): Likewise.
10106 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10108 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10109 Move PT_LOAD checking to...
10110 (_dl_addr_inside_object): ... here, new function.
10111 * elf/dl-sym.c (do_sym): If not l_contiguous,
10112 call _dl_addr_inside_object.
10113 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10114 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10115 * elf/dl-open.c (dl_open_worker): Likewise.
10116 (_dl_addr_inside_object): New function if IS_IN_rtld.
10117 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10118 holes are present or are PROT_NONE protected.
10119 * include/link.h (struct link_map): Add l_contiguous field.
10120 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10122 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10123 Tomas Janousek <tjanouse@redhat.com>
10124 Ulrich Drepper <drepper@redhat.com>
10127 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
10128 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10130 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
10131 unused member a bitmap.
10132 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10133 servers are configured.
10135 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10137 * elf/rtld.c (dl_main): Don't call init_tls more than once.
10139 2007-06-17 Andreas Schwab <schwab@suse.de>
10141 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10143 2007-06-16 Andreas Jaeger <aj@suse.de>
10146 * sysdeps/unix/sysv/linux/sys/ptrace.h
10147 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10148 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10149 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10150 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10151 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10153 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10154 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10155 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10156 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10158 2007-06-16 Ulrich Drepper <drepper@redhat.com>
10161 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10162 determining whether there are IPv4/IPv6 addresses, ignore loopback
10165 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10167 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10168 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10169 as the return type. Change type of "r" variable to CMPtype.
10170 * soft-fp/eqsf2.c (__eqsf2): Likewise.
10171 * soft-fp/eqtf2.c (__eqtf2): Likewise.
10172 * soft-fp/gedf2.c (__gedf2): Likewise.
10173 * soft-fp/gesf2.c (__gesf2): Likewise.
10174 * soft-fp/getf2.c (__getf2): Likewise.
10175 * soft-fp/ledf2.c (__ledf2): Likewise.
10176 * soft-fp/lesf2.c (__lesf2): Likewise.
10177 * soft-fp/letf2.c (__letf2): Likewise.
10178 * soft-fp/unorddf2 (__unorddf2): Likewise.
10179 * soft-fp/unordsf2 (__unordsf2): Likewise.
10180 * soft-fp/unordtf2 (__unordtf2): Likewise.
10182 2007-06-09 Ulrich Drepper <drepper@redhat.com>
10184 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10185 make sure gcc doesn't mess around with this.
10187 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10189 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10191 2007-06-08 Jakub Jelinek <jakub@redhat.com>
10193 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10194 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10195 at most once per _dl_close_worker.
10197 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10199 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10200 __sched_cpucount as const.
10201 * posix/sched_cpucount.c: Adjust.
10203 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10204 instruction for counting bits.
10205 * sysdeps/x86_64/sched_cpucount.c: New file.
10207 2007-06-07 Ulrich Drepper <drepper@redhat.com>
10209 * configure.in: Avoid variable named BASH.
10210 * config.make.in: Likewise.
10211 Patch in part by Mike Frysinger.
10213 2007-06-06 Jakub Jelinek <jakub@redhat.com>
10216 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10217 pseudo-zeros as zero.
10218 * sysdeps/x86_64/ldbl2mpn.c: New file.
10219 * sysdeps/ia64/ldbl2mpn.c: New file.
10221 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10223 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10224 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10225 Remove unreachable code at the end.
10227 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10229 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10230 ldbl-128ibm in comment.
10231 (fpclassifyl): Correct classification of denormals.
10232 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10233 return value for MIN denormal. Rewrite using long double math too
10234 correctly handle denormals and canonicalize the results.
10236 2007-06-05 Jakub Jelinek <jakub@redhat.com>
10238 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10239 (__mpn_construct_long_double): Fix conversion where result ought
10240 to be smaller than __LDBL_MIN__, or the low double should be
10241 denormal. Fix decision where to negate low double - honor round
10243 * stdio-common/tst-sprintf2.c: Include string.h.
10244 (COMPARE_LDBL): Define.
10245 (TEST): Also test whether a string hexadecimal float representation
10246 can be parsed back to the number.
10247 (main): Add a couple of further tests.
10249 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10251 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10252 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10253 is non-zero, but smaller than 2 * __DBL_MIN__.
10254 * stdio-common/tst-sprintf2.c: New test.
10255 * stdio-common/Makefile (tests): Add tst-sprintf2.
10257 * math/test-misc.c (main): Don't run last batch of tests with
10258 IBM long double format.
10260 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10262 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10263 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10264 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10265 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10266 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10267 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10268 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10269 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10270 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10271 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10279 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10281 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10283 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10295 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10297 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10298 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10299 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10300 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10301 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10302 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10303 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10304 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10306 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
10308 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10309 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10310 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10311 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10312 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10313 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10314 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10315 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10317 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10319 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10320 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10321 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10322 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10324 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
10326 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10327 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10329 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
10331 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10332 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10333 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10334 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10336 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
10338 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10339 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10341 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10343 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10344 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10346 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10347 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10348 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10349 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10351 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
10353 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10354 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10355 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10356 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10358 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
10360 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10361 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10362 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10363 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10364 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10365 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10367 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10369 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10370 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10371 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10372 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10374 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
10376 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10377 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10378 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10379 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10380 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10381 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10382 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10383 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10384 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10385 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10386 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10387 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10388 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10389 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10390 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10391 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10393 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10395 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10396 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10398 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10400 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10401 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10403 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10405 * sysdeps/powerpc/powerpc32/970/Implies: New file.
10406 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10407 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10408 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10409 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10410 * sysdeps/powerpc/powerpc64/970/Implies: New file.
10411 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10412 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10413 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10414 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10416 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10418 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10420 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
10422 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10423 branch miss-predicts. Ensure that cache line crossing does not impact
10426 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
10428 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10429 "../../powerpc32/power4/memcopy.h".
10430 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10431 "../../powerpc32/power4/wordcopy.c".
10433 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10435 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10436 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10437 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10438 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10439 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10440 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10442 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
10444 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10446 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10448 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10449 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10450 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10451 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10452 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10453 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10454 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10455 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10457 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
10459 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10461 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10463 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10464 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10465 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10466 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10467 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10468 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10469 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10471 2007-05-29 Roland McGrath <roland@redhat.com>
10473 * po/Makefile (po-sed-cmd): New variable.
10474 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10476 2007-05-29 Ulrich Drepper <drepper@redhat.com>
10478 * crypt/md5-crypt.c: Fix comment.
10480 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10481 of crashing. When this is the case or if the reply is malformed,
10482 don't try to close the new file descriptor since it does not
10484 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10486 2007-05-28 Jakub Jelinek <jakub@redhat.com>
10488 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10489 if __NR_utimensat is not defined.
10491 2007-05-26 Ulrich Drepper <drepper@redhat.com>
10493 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10495 2007-05-25 Jakub Jelinek <jakub@redhat.com>
10497 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10498 (open): Fix comment typos. Don't call __open_2 if flags
10499 is a compile time constant without O_CREAT.
10500 (__open64_2): Add nonnull attribute.
10501 (open64): Fix comment typos. Don't call __open64_2 if flags
10502 is a compile time constant without O_CREAT.
10503 (__openat_2): Add nonnull attribute, fix nonnull attribute
10505 (openat): Fix comment typos. Don't call __openat_2 if flags
10506 is a compile time constant without O_CREAT.
10507 (__openat64_2): Add nonnull attribute, fix nonnull attribute
10509 (openat64): Fix comment typos. Don't call __openat64_2 if flags
10510 is a compile time constant without O_CREAT.
10512 2007-05-24 Ulrich Drepper <drepper@redhat.com>
10514 * Makerules (sysd-rules): Define PTW for ptw-* files.
10515 * Versions: Define GLIBC_2.7 for libc.
10516 * include/stdio.h: Declare __fortify_fail.
10517 * debug/fortify_fail.c: New file.
10518 * debug/Makefile (routines): Add fortify_fail.
10519 * debug/chk_fail.c: Use __fortify_fail.
10520 * debug/stack_chk_fail.c: Likewise.
10521 * io/Versions: Export __open_2, __open64_2, __openat_2, and
10522 __openat64_2 for GLIBC_2.7.
10523 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10524 * io/open.c: Define *_2 variant of function which checks for O_CREAT
10525 and fails if necessary.
10526 * io/open64.c: Likewise.
10527 * io/openat.c: Likewise.
10528 * io/openat64.c: Likewise.
10529 * sysdeps/unix/sysv/linux/open64.c: Likewise.
10530 * sysdeps/unix/sysv/linux/openat.c: Likewise.
10531 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10532 * io/bits/fcntl2.h: New file.
10533 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10535 * include/bits/fcntl2.h: New file.
10536 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10538 * sysdeps/unix/sysv/linux/open_2.c: New file.
10540 2007-05-21 Ulrich Drepper <drepper@redhat.com>
10542 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10543 as second parameter to handle_intel.
10545 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10548 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10550 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
10551 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10553 * sysdeps/x86_64/memcpy.S: Complete rewrite.
10554 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10555 Patch by Evandro Menezes <evandro.menezes@amd.com>.
10557 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10559 2007-05-21 Jakub Jelinek <jakub@redhat.com>
10562 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10563 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10564 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10566 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10569 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10570 reinitialize workend at the start of each do_positional format spec
10571 loop, free workstart before do_positional loops.
10572 (printf_unknown): Fix size of work_buffer.
10573 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10575 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10576 (public_sET_STATe): If ms->version < 3, put all chunks into
10577 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10580 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10581 * malloc/hooks.c: Likewise.
10582 * malloc/arena.c: Likewise.
10583 * malloc/malloc.c (do_check_malloc_state): Don't assert
10584 n_mmaps is not greater than n_mmaps_max. This removes the need
10585 for the previous change.
10587 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10590 2007-05-19 Ulrich Drepper <drepper@redhat.com>
10592 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10593 Define for kernel >= 2.6.22.
10595 2007-05-18 Ulrich Drepper <drepper@redhat.com>
10597 * elf/dl-close.c (_dl_close_worker): When removing object from
10598 global scope, wait for all lookups to finish afterwards.
10599 * elf/dl-open.c (add_to_global): When global scope array must
10600 grow, allocate a new one and free old array only after all
10602 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10603 (_dl_lookup_symbol_x): Likewise.
10604 * elf/dl-support.c: Define _dl_wait_lookup_done.
10605 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10606 _dl_wait_lookup_done.
10608 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10609 not overlapping with arena.
10611 * malloc/mcheck.c (reallochook): If size==0, free the block.
10613 * rt/tst-shm.c: Use fstat64 instead of fstat.
10615 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10616 __NR_sync_file_range is not defined.
10618 2007-05-17 Ulrich Drepper <drepper@redhat.com>
10620 Dummy files to prevent stub versions from being used.
10621 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10622 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10623 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10624 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10626 * version.h (VERSION): Set to 2.6.90.
10628 2007-05-14 Ulrich Drepper <drepper@redhat.com>
10630 * version.h (VERSION): Define to 2.6.
10631 * include/features.h (__GLIBC_MINOR__): Define to 6.
10633 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10635 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10638 2007-05-13 Ulrich Drepper <drepper@redhat.com>
10640 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10641 number of mmaps. n_mmaps_max is the target.
10642 * malloc/hooks.c: Likewise.
10643 * malloc/arena.c: Likewise.
10645 2007-05-12 Andreas Jaeger <aj@suse.de>
10647 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10650 2007-05-11 Ulrich Drepper <drepper@redhat.com>
10652 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10653 adding new variables.
10655 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10656 optimize. Completely extend global scope array before making the
10657 new entries visible.
10659 2007-05-10 Ulrich Drepper <drepper@redhat.com>
10661 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10662 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10665 * include/link.h: Move l_version and l_nversion members around to
10668 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10670 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10671 (__sched_setaffinity_new): If syscall was successful and
10672 RESET_VGETCPU_CACHE is defined, use it before returning.
10673 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10675 * io/sys/stat.h: Make sure struct timespec is defined for
10678 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10680 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10681 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10682 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10683 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10684 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10685 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10686 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10687 * io/sys/stat.h: Declare utimensat, futimens.
10688 * io/utimensat.c: New file.
10689 * io/futimens.c: New file.
10690 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10691 * sysdeps/unix/sysv/linux/futimens.c: New file.
10692 * io/Makefile (routines): Add utimensat, futimens.
10693 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10694 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10695 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10698 * include/sys/cdefs.h: Redefine __nonnull so that test for
10699 incorrect parameters in the libc code itself are not omitted.
10701 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10703 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10704 exception in addition to inexact when asked to raise only FE_INEXACT.
10707 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10710 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10713 * string/strfry.c (strfry): Make result more random.
10715 2007-05-07 Richard Henderson <rth@redhat.com>
10717 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10718 if __NO_LONG_DOUBLE_MATH.
10719 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10720 available in the compiler, add .arch directive to the assembly.
10722 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10724 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10725 compat_symbol to GLIBC_2_1.
10726 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10727 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10728 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10729 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10730 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10731 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10732 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10734 (__isnanl): New compat_symbol.
10736 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10737 Jakub Jelinek <jakub@redhat.com>
10739 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10740 (new_heap): Initialize mprotect_size.
10741 (grow_heap): When growing, only mprotect from mprotect_size till
10742 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10743 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10745 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10746 Peter Bergner <bergner@us.ibm.com>
10748 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10749 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10750 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10751 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10752 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10753 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10754 Call __fe_mask_env() if all FP exceptions disabled.
10755 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10756 from old FPSCR to new fenv to propagate DFP rounding modes.
10757 Call __fe_mask_env() if FP exceptions previously enabled.
10758 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10759 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10760 transitioning from all exceptions disabled to any exception enabled
10762 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10763 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10764 when transitioning from all exceptions disabled to any exception
10765 enabled or visa versa.
10766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10767 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10771 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10773 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10776 * posix/unistd.h: Remove __THROW from fdatasync.
10778 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10781 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10783 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10785 * stdio-common/vfprintf.c (process_string_arg): Optimize
10786 ridiculous precision in wide char code printing multi-byte string.
10787 Reported by Jim Meyering <jim@meyering.net>.
10790 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10791 boundaries to work around systems with overlapping binary loading.
10792 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10794 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10796 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10797 __mbsnrtowcs after last change.
10799 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10800 (get_ident): Likewise.
10802 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10804 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10805 with setting the sticky bit.
10806 * math/test-misc.c (main): Add more truncation tests.
10808 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10810 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10811 double in the function declaration.
10812 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10813 double in the function declaration.
10814 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10815 float in the function declaration.
10816 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10817 float in the function declaration.
10819 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10820 denormal operands. Do not generate FP_EX_DENORM exception.
10821 (FP_UNPACK_RAW_EP): Ditto.
10822 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10823 undefined _FP_UNPACK_RAW_E.
10824 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10825 undefined _FP_UNPACK_RAW_EP.
10826 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10827 undefined _FP_PACK_RAW_E.
10828 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10829 undefined _FP_PACK_RAW_EP.
10831 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10833 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10836 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10837 Jakub Jelinek <jakub@redhat.com>
10839 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10840 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10842 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10844 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10846 * math/test-misc.c (main): Add tests for rounding long double
10847 values close to smallest double denormalized value to double.
10849 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10851 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10852 condition for truncating to 0. Set sticky bit for such
10855 2007-05-02 Jakub Jelinek <jakub@redhat.com>
10857 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10858 fixed length array for ignore.
10860 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10863 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10864 stack for large precisions.
10865 * stdio-common/test-vfprintf.c (main): Add test for large
10868 2007-04-30 Jakub Jelinek <jakub@redhat.com>
10870 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10872 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10875 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10876 account in the size check.
10877 * resolv/tst-inet_ntop.c: New test.
10878 * resolv/Makefile (tests): Add tst-inet_ntop.
10880 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10881 Jakub Jelinek <jakub@redhat.com>
10884 * malloc/malloc.c: Keep separate list for first blocks on the bin
10885 lists with a given size. This helps skipping over list elements
10886 we know won't fit in two places.
10887 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10889 2007-04-28 Ulrich Drepper <drepper@redhat.com>
10892 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10893 label to Teredo tunnel addresses 2001://32.
10895 2007-04-27 Ulrich Drepper <drepper@redhat.com>
10897 * locale/programs/ld-collate.c (collate_read): Allow order_start
10900 * locale/programs/ld-collate.c (collate_read): Fix printing of
10904 * locale/C-translit.h.in: Add entry for U2044.
10907 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10908 hexa-decimal floats without exponent.
10909 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10911 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10913 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10914 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10915 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10916 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10918 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10921 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10923 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10924 of 0 after the out_fail label.
10926 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10929 * iconv/gconv_charset.h (strip): Allow ':'.
10930 * iconv/iconv_open.c (iconv_open): Adjust comment.
10932 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10934 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10937 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10940 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10941 alignment of buffer and tmp_buffer.
10942 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10943 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10944 alignment of buffer.
10945 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10946 bigger than INT_MAX.
10947 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10948 h_errnop arguments. Fail if buflen is too small.
10949 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10951 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10954 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10955 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10957 2007-04-22 Roland McGrath <roland@redhat.com>
10959 * elf/elf.h (NT_PRXFPREG): New macro.
10961 2007-04-19 Andreas Jaeger <aj@suse.de>
10964 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10965 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10968 2007-04-19 Ulrich Drepper <drepper@redhat.com>
10970 * include/sys/mman.h: Mark madvise hidden.
10971 * misc/madvise.c: Add libc_hidden_def.
10973 2007-04-06 Jakub Jelinek <jakub@redhat.com>
10975 * nis/nis_domain_of.c (__nis_domain_of): New function.
10976 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10977 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10978 * nis/nis_call.c (rec_dirsearch): Likewise.
10979 (first_shoot): Likewise. Remove search_parent_first argument.
10980 (struct nis_server_cache): Rename search_parent_first field
10982 (nis_server_cache_search, nis_server_cache_add): Rename
10983 search_parent_first argument to search_parent.
10984 (__nisfind_server): Likewise. If search_parent, call
10987 2007-04-18 Ulrich Drepper <drepper@redhat.com>
10989 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10991 2007-04-17 Ulrich Drepper <drepper@redhat.com>
10994 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10996 2007-04-16 Ulrich Drepper <drepper@redhat.com>
10999 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11001 2007-04-15 Jakub Jelinek <jakub@redhat.com>
11003 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11004 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11005 current number of locales in SUPPORTED.
11006 (create_archive): Initialize serial.
11007 (enlarge_archive): Preserve aliases rather than duplicating
11010 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11012 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11013 after _IO_un_link, not before it.
11015 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11016 special case handling when wcp == wstartp + 1. Fix a comment typo.
11017 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11019 2007-03-30 Jakub Jelinek <jakub@redhat.com>
11021 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11022 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11023 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11025 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11026 _IO_file_xsgetn_maybe_mmap): Likewise.
11027 * libio/oldfileops.c (old_do_write): Likewise.
11028 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11029 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11030 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11031 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11032 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11033 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11034 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11035 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11036 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11037 _IO_file_underflow, _IO_file_underflow_mmap,
11038 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11039 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11040 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11041 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11042 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11043 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11044 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11045 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11046 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11047 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11048 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11049 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11050 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11051 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11052 _IO_adjust_column_internal, _IO_default_uflow_internal,
11053 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11054 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11055 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11056 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11057 _IO_file_close_it_internal, _IO_file_underflow_internal,
11058 _IO_file_overflow_internal, _IO_file_attach_internal,
11059 _IO_file_fopen_internal, _IO_file_sync_internal,
11060 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11061 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11062 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11063 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11064 _IO_seekpos_unlocked): Likewise.
11065 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11066 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11068 2007-04-16 Jakub Jelinek <jakub@redhat.com>
11070 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11071 argument in xmalloc size computation.
11073 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11075 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11076 math_opt_barrier and math_force_eval macros.
11078 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11081 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11082 * sysdeps/i386/fpu/math_private.h: New file.
11083 * sysdeps/x86_64/fpu/math_private.h: New file.
11084 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11085 math_force_eval macros. Use "+m" constraint on asm rather than
11087 * math/s_nextafter.c (__nextafter): Likewise.
11088 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11090 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11091 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11092 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11093 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11094 math_opt_barrier and math_force_eval macros.
11095 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11096 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11097 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11098 (__nexttoward): Use math_opt_barrier and
11099 math_force_eval macros. Use "+m" constraint on asm rather than
11100 "=m" and "m". Only use asm to force double result if
11101 FLT_EVAL_METHOD is 2.
11102 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11103 (__nexttowardf): Use math_opt_barrier and
11104 math_force_eval macros. Use "+m" constraint on asm rather than
11105 "=m" and "m". Only use asm to force double result if
11106 FLT_EVAL_METHOD is not 0.
11107 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11108 (__nexttowardf): Use math_opt_barrier and
11109 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11110 x to float using asm.
11111 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11112 (__nldbl_nexttowardf): Use math_opt_barrier and
11113 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11114 x to float using asm.
11115 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11116 (__nexttowardf): Use math_opt_barrier and math_force_eval
11117 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
11118 * math/bug-nextafter.c (zero, inf): New variables.
11119 (main): Add new tests.
11120 * math/bug-nexttoward.c (zero, inf): New variables.
11121 (main): Add new tests.
11123 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11126 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11127 exceptions both in SW and MXCSR.
11128 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11129 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11130 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11131 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11132 in MXCSR if SSE is available.
11133 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11135 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11137 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11138 Return 0 rather than 1.
11139 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11140 Remove incorrect part of a comment. Fix argument to feraiseexcept.
11141 * math/test-fenv.c (feholdexcept_tests): New function.
11144 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
11147 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11150 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11153 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11154 Reported by David Anderson <davea42@earthlink.net>.
11156 2007-04-07 Ulrich Drepper <drepper@redhat.com>
11158 * posix/sys/wait.h: Remove unnecessary forward declaration.
11160 2007-04-05 Jakub Jelinek <jakub@redhat.com>
11162 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11163 with obj->do_servers after first_shoot.
11165 2007-04-03 Ulrich Drepper <drepper@redhat.com>
11167 * posix/Makefile (routines): Add sched_cpucount.
11168 (tests): Add tst-cpucount.
11169 * posix/sched_cpucount.c: New file.
11170 * posix/tst-cpucount.c: New file.
11171 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11172 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
11173 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11174 * posix/sched.h: Define CPU_COUNT.
11176 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11178 * posix/fnmatch.c (STRUCT): Define.
11179 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11180 * posix/fnmatch_loop.c (struct STRUCT): New type.
11181 (FCT): Add ends argument. If ends != NULL and normal * is
11182 seen in the pattern, store current pattern and string pointers
11183 and return. Adjust recursive calls.
11184 (EXT): Adjust FCT callers.
11185 (STRUCT): Undef at the end of the file.
11186 * posix/Makefile (tests): Add tst-fnmatch2.
11187 * posix/tst-fnmatch2.c: New test.
11189 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11191 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11194 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11195 Change last argument to unsigned int.
11197 2007-03-23 Jakub Jelinek <jakub@redhat.com>
11199 * scripts/check-local-headers.sh: Filter out sys/capability.h.
11201 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11203 * config.h.in (HAVE_LIBCAP): Add.
11204 * nscd/selinux.h: Include sys/capability.h rather than non-existent
11205 sys/capabilities.h.
11206 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11207 free_caps. Cast away const from 4th cap_set_flag argument.
11209 2007-03-26 Ulrich Drepper <drepper@redhat.com>
11211 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11213 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11214 Add sync_file_range.
11215 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11217 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
11219 * sysdeps/powerpc/bits/atomic.h
11220 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11221 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11222 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11223 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11224 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11225 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11226 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11227 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11228 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11229 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11230 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11231 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11232 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11233 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11234 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11235 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11236 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11237 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11238 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11239 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11241 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11243 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11244 (__cache_line_size): Define the variable here. Add
11245 attribute_hidden, remove weak_extern.
11246 (__libc_start_main): Set __cache_line_size
11248 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11249 (__cache_line_size): Define the variable here. Add
11250 attribute_hidden, remove weak_extern.
11251 (DL_PLATFORM_AUXV): Set __cache_line_size
11253 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11254 weak_extern, add attribute_hidden.
11255 (__elf_machine_runtime_setup): Assume __cache_line_size is always
11257 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11259 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11261 2007-03-26 Jakub Jelinek <jakub@redhat.com>
11264 * timezone/africa: Update from tzdata2007d.
11265 * timezone/asia: Likewise.
11266 * timezone/australasia: Likewise.
11267 * timezone/backward: Likewise.
11268 * timezone/europe: Likewise.
11269 * timezone/iso3166.tab: Likewise.
11270 * timezone/leapseconds: Likewise.
11271 * timezone/northamerica: Likewise.
11272 * timezone/southamerica: Likewise.
11273 * timezone/zone.tab: Likewise.
11275 * timezone/private.h: Update from tzcode2007d.
11276 * timezone/zdump.c: Likewise.
11277 * timezone/zic.c: Likewise.
11279 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11281 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11282 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11284 (nis_server_cache_search, nis_server_cache_add): New functions.
11285 (__nisfind_server): Use them. Add dbp and flags argument, if
11286 call __nisbind_create.
11287 (__nisbind_create): Add server_used and current_ep arguments,
11288 only call __nis_findfastest if server_used is ~0.
11289 (__do_niscall2, __prepare_niscall): Adjust callers.
11290 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11291 ckey_cache_euid, ckey_cache_lock): New variables.
11292 (get_ckey): New function.
11293 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11294 __pmap_getnisport. Save __pmap_getnisport result in
11295 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
11297 * nis/nis_lookup.c (nis_lookup): Likewise.
11298 * nis/nis_table.c (nis_list): Likewise.
11299 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11302 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11303 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11304 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11305 _nss_nisplus_getservbyport_r): Likewise.
11306 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11307 _nss_nisplus_getnetbyaddr_r): Likewise.
11308 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11309 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11310 _nss_nisplus_getntohost_r): Likewise.
11311 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11312 _nss_nisplus_getrpcbynumber_r): Likewise.
11314 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11316 * configure.in (libc_cv_gnu89_inline): Only do compile test.
11317 * configure: Rebuilt.
11319 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11321 * soft-fp/extended.h (_FP_UNION_E): Likewise.
11323 2006-06-07 Joseph Myers <joseph@codesourcery.com>
11326 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11329 2007-03-18 Jakub Jelinek <jakub@redhat.com>
11331 * nscd/gai.c: Include alloca.h.
11332 (__libc_use_alloca): Define.
11334 2007-03-16 Jakub Jelinek <jakub@redhat.com>
11336 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11338 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11339 (DL_DST_REQUIRED): Adjust user.
11341 * include/dlfcn.h (struct link_map): New forward decl.
11343 * inet/getnameinfo.c: Include stddef.h.
11344 (getnameinfo): Use offsetof.
11346 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11348 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11350 * string/strerror_l.c: Include stdlib.h.
11352 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11353 * config.make.in (gnu89-inline-CFLAGS): New variable.
11354 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11356 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11357 * argp/argp.h: Use it.
11358 * bits/mathinline.h: Likewise.
11359 * bits/sigset.h: Likewise.
11360 * bits/string.h: Likewise.
11361 * ctype/ctype.h: Likewise.
11362 * hurd/hurd.h: Likewise.
11363 * hurd/hurd/fd.h: Likewise.
11364 * hurd/hurd/port.h: Likewise.
11365 * hurd/hurd/signal.h: Likewise.
11366 * hurd/hurd/threadvar.h: Likewise.
11367 * hurd/hurd/userlink.h: Likewise.
11368 * io/sys/stat.h: Likewise.
11369 * libio/bits/stdio.h: Likewise.
11370 * libio/bits/stdio2.h: Likewise.
11371 * mach/lock-intern.h: Likewise.
11372 * mach/mach/mig_support.h: Likewise.
11373 * math/bits/cmathcalls.h: Likewise.
11374 * posix/bits/unistd.h: Likewise.
11375 * socket/bits/socket2.h: Likewise.
11376 * stdlib/bits/stdlib.h: Likewise.
11377 * stdlib/stdlib.h: Likewise.
11378 * string/argz.h: Likewise.
11379 * string/bits/string2.h: Likewise.
11380 * string/bits/string3.h: Likewise.
11381 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11382 * sysdeps/generic/inttypes.h: Likewise.
11383 * sysdeps/generic/machine-lock.h: Likewise.
11384 * sysdeps/generic/machine-sp.h: Likewise.
11385 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11386 * sysdeps/i386/i486/bits/string.h: Likewise.
11387 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11388 * sysdeps/mach/alpha/machine-lock.h: Likewise.
11389 * sysdeps/mach/alpha/machine-sp.h: Likewise.
11390 * sysdeps/mach/i386/machine-lock.h: Likewise.
11391 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11392 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11393 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11394 * sysdeps/s390/bits/string.h: Likewise.
11395 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11396 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11397 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11398 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11399 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11400 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11401 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11402 * wcsmbs/bits/wchar2.h: Likewise.
11403 * wcsmbs/wchar.h: Likewise.
11404 * stdlib/gmp.h: Likewise. Include <features.h> to get
11405 __extern_inline definition.
11407 2007-03-15 Jakub Jelinek <jakub@redhat.com>
11409 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11413 * math/libm-test.inc (log_test): Test -Inf and NaN.
11414 (log10_test, log1p_test, log2_test): Test -Inf.
11415 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11416 FE_INVALID when argument is qNaN.
11417 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11418 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11419 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11420 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11421 andb $1, %ah with testb $1, %ah, don't test for parity, instead
11422 testb $4, %ah and jump if non-zero.
11423 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11424 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11427 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11428 ancestors with the same depths.
11429 Patch by Niels Moeller <nisse@lysator.liu.se>.
11430 (filter_doc): Don't crash if argp is NULL.
11431 * argp/Makefile (tests): Add tst-argp2.
11432 * argp/tst-argp2.c: New test.
11435 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11437 (updwtmp_file): Likewise.
11440 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11441 (inet6_opt_append): Don't check extlen is big enough if extbuf
11443 (inet6_opt_finish): Likewise.
11444 * inet/Makefile (tests): Add test-inet6_opt.
11445 * inet/test-inet6_opt.c: New test.
11447 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11448 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11449 NLMSG_ERR. Instead use a page sized buffer.
11450 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11453 2007-03-14 Richard Henderson <rth@redhat.com>
11455 * sysdeps/alpha/fpu/s_llround.c: New file.
11456 * sysdeps/alpha/fpu/s_llroundf.c: New file.
11457 * sysdeps/alpha/fpu/s_lround.c: New file.
11458 * sysdeps/alpha/fpu/s_lroundf.c: New file.
11459 * sysdeps/alpha/fpu/s_round.c: New file.
11460 * sysdeps/alpha/fpu/s_roundf.c: New file.
11461 * sysdeps/alpha/fpu/s_trunc.c: New file.
11462 * sysdeps/alpha/fpu/s_truncf.c: New file.
11464 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11465 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11466 * sysdeps/alpha/fpu/s_floor.c: Likewise.
11467 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11468 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11469 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11471 * sysdeps/alpha/fpu/s_fmax.S: New file.
11472 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11473 * sysdeps/alpha/fpu/s_fmin.S: New file.
11474 * sysdeps/alpha/fpu/s_fminf.S: New file.
11475 * sysdeps/alpha/fpu/s_isnan.c: New file.
11476 * sysdeps/alpha/fpu/s_isnanf.c: New file.
11477 * sysdeps/alpha/fpu/s_llrint.c: New file.
11478 * sysdeps/alpha/fpu/s_llrintf.c: New file.
11479 * sysdeps/alpha/fpu/s_lrint.c: New file.
11480 * sysdeps/alpha/fpu/s_lrintf.c: New file.
11481 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11482 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11484 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11485 (__fdimf, fdimf, __fdim, fdim): Remove.
11486 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11487 (__isnanf, __isnan, __isnanl): New.
11489 2007-03-13 Richard Henderson <rth@redhat.com>
11491 * sysdeps/ieee754/ldbl-128/Makefile: New file.
11493 2007-03-13 Richard Henderson <rth@redhat.com>
11495 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11496 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11497 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11498 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11499 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11500 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11502 2007-03-13 Richard Henderson <rth@redhat.com>
11504 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11505 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11506 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11507 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11508 Move to dl-auxv.h; initialize instead of extern weak.
11509 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11511 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11512 Extern instead of initialized.
11514 2007-03-13 Richard Henderson <rth@redhat.com>
11516 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11517 __sigsuspend_nocancel.
11519 2007-03-06 Ulrich Drepper <drepper@redhat.com>
11521 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11522 172.16/12 address range.
11524 2007-03-02 Jakub Jelinek <jakub@redhat.com>
11526 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11527 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11530 2007-03-01 Jakub Jelinek <jakub@redhat.com>
11533 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11535 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11537 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11538 for x qNaN and y either +-inf or non-integer value.
11539 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11540 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11541 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11543 2007-02-10 Mike Frysinger <vapier@gentoo.org>
11545 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11546 from sysdep_headers.
11548 2007-02-28 Jakub Jelinek <jakub@redhat.com>
11550 * time/tzfile.c (find_transition): Instead of a linear search try to
11551 guess the transition index, use a linear search if the result is at
11552 most 10 transitions away from the guess or binary search otherwise.
11554 2007-02-27 Jakub Jelinek <jakub@redhat.com>
11556 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11557 memory reallocation.
11559 2007-02-21 Ulrich Drepper <drepper@redhat.com>
11561 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11562 and fix some typos.
11563 Optimize use of TOLOWER.
11566 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11567 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11568 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11571 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11572 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11575 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11576 (open_dir_stream): Likewise.
11577 * io/Makefile (tests): Add bug-ftw5.
11578 * io/bug-ftw5.c: New file.
11580 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11581 * nscd/servicescache.c (cache_addserv): Likewise.
11583 * nscd/grpcache.c (cache_addgr): In case a record changed on
11584 refresh, adjust key_copy.
11587 * nscd/pwdcache.c (cache_addpw): In case a record changed on
11588 refresh, adjust key_copy.
11591 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11593 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11595 2007-02-19 Ulrich Drepper <drepper@redhat.com>
11597 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11600 * stdio-common/vfscanf.c: Small cleanups throughout.
11602 2007-02-18 Ulrich Drepper <drepper@redhat.com>
11605 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11606 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11607 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11608 Patch by Jared Casper <jaredcasper@gmail.com>.
11610 * sysdeps/unix/closedir.c: Outside libc don't use locking.
11611 * sysdeps/unix/opendir.c: Likewise.
11612 * sysdeps/unix/readdir.c: Likewise.
11615 * stdio-common/vfscanf.c: Handle localized digits etc for floating
11617 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11619 * stdio-common/vfscanf.c: Fix problems in width accounting.
11620 * stdio-common/tst-sscanf.c (double_tests): New tests.
11621 (main): Hook them up.
11623 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11624 More simplifications of floating-point reader.
11626 * stdio-common/Makefile (tests): Add tst-swscanf.
11627 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11629 * stdio-common/tst-swscanf.c: New file.
11631 2007-02-17 Ulrich Drepper <drepper@redhat.com>
11634 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11635 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11636 Remove using for __jmp_buf_tag.
11637 * locale/locale.h (struct lconv): Also define in std namespace.
11638 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11641 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11642 using __libc_enable_secure.
11645 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11648 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11649 of names for ellipsises.
11652 * malloc/memusage.sh: Cleanups.
11653 * debug/xtrace.sh: Quoting and trap changes.
11655 2007-02-16 Ulrich Drepper <drepper@redhat.com>
11657 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11659 * locale/iso-3166.def: Update entry for Serbia.
11660 * locale/iso-4217.def: Define RSD, remove CSD.
11662 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11663 and 64-bit operations.
11666 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11669 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11672 2007-02-15 Ulrich Drepper <drepper@redhat.com>
11675 * assert/assert.h (assert): Simplify.
11676 (assert_perror): Likewise.
11677 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11679 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11682 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11683 change: don't pass NULL in place of an integer.
11685 2007-02-02 Bruno Haible <bruno@clisp.org>
11688 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11689 Add mapping for U+327E.
11690 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11691 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11692 mapping of 0xD9 0xE8.
11693 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11695 Reported by Jungshik Shin <jungshik@google.com>.
11698 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11699 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11700 Reported by Jungshik Shin <jungshik@google.com>.
11702 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11704 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11708 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11709 byte variants. Patch mostly be tom@tommay.net.
11711 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11714 * posix/glob.c (attribute_hidden): Define if not defined.
11715 (glob): Unescape dirname, filename or username when needed and not
11716 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11717 is NULL. Handle unescaped [ in pattern without closing ].
11718 Don't pass GLOB_CHECK down to recursive glob for directories.
11719 (__glob_pattern_type): New function.
11720 (__glob_pattern_p): Implement using __glob_pattern_type.
11721 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11722 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11723 Remove unreachable code.
11724 * posix/globtest.sh: Add a couple of new tests.
11726 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11728 * po/ru.po: Update from translation team.
11730 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11732 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11733 to the list of i486+ CPUs.
11734 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11736 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11738 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11739 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11742 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11744 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11746 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11747 * resolv/res_mkquery.c: Define __res_nopt.
11748 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11749 try adding EDNS0 record.
11750 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11751 EDNS0 record was send make sure we don't try it again.
11752 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11753 * include/resolv.h: Declare __res_nopt.
11755 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11758 * time/strptime_l.c (__strptime_internal): Set have_mon for
11759 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11760 have been computed from tm_yday and tm_year. Don't crash
11761 in day_of_the_week or day_of_the_year if not have_mon
11762 and tm_mon contains bogus value.
11763 * time/Makefile (tests): Add tst-strptime3.
11764 * time/tst-strptime3.c: New test.
11766 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11769 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11770 bit for RE_HAT_LISTS_NOT_NEWLINE.
11771 (build_charclass_op): Remove bogus comment.
11772 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11773 * posix/bug-regex27.c: New test.
11774 * posix/bug-regex28.c: New test.
11776 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11778 * po/sv.po: Update from translation team.
11780 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11782 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11784 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11786 * include/locale.h (__uselocale): Add libc_hidden_proto.
11787 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11789 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11792 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11794 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11796 (PTR_DEMANGLE): Real definition now that it's not the same as
11797 PRT_MANGLE anymore.
11798 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11800 * string/strerror_l.c: New file.
11801 * string/Makefile (routines): Add strerror_l.
11802 * string/string.h: Declare strerror_l.
11803 * string/Versions: Export strerror_l for GLIBC_2.6.
11805 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11807 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11808 as parameter. Construct request record. Try sending request
11809 before the first poll use, it usually succeeds. Adjust all
11811 * nscd/nscd-client.h: Define MAXKEYLEN.
11812 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11814 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11816 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11818 * nscd/nscd_helper.c: Include string.h.
11819 (__nscd_cache_search): Remove const qualifier from return value.
11820 On strict alignment architectures check hash entry and data head
11822 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11823 mmapped data during GC cycle contains garbage. If
11824 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11825 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11827 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11828 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11829 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11830 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11831 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11833 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11835 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11837 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11839 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11840 names not numbers in cfi_*.
11842 2007-01-26 Andreas Jaeger <aj@suse.de>
11844 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11845 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11846 Correct values of PER_HPUX and PER_OSF4.
11848 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11850 * elf/dl-minimal.c: Undefine _itoa first.
11851 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11852 * malloc/mtrace.c: Revert last change.
11853 * posix/wordexp.c: Likewise.
11855 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11857 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11858 and __geode__ to the list of i486+ CPUs.
11859 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11861 2007-01-23 Ulrich Drepper <drepper@redhat.com>
11863 * stdio-common/_itoa.c: Include <limits.h>.
11864 * stdio-common/_itowa.c: Likewise.
11866 2007-01-22 Ulrich Drepper <drepper@redhat.com>
11868 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11870 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11872 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11874 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11878 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11879 * stdio-common/Makefile (tests): Add bug17.
11880 * stdio-common/bug17.c: New file.
11882 2007-01-19 Ulrich Drepper <drepper@redhat.com>
11884 * iconvdata/brf.c: New file.
11885 * iconvdata/testdata/BRF: New file.
11886 * iconvdata/testdata/BRF..UTF8: New file.
11887 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11888 * iconvdata/Makefile: Add rules to build BRF.
11889 * iconvdata/TESTS: Add BRF entry.
11890 * iconvdata/gconv-modules: Likewise.
11891 * iconvdata/tst-tables.sh: Likewise.
11893 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11895 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11896 type `long long int', not `long int'.
11897 (wcstoq): Likewise.
11899 2007-01-18 Ulrich Drepper <drepper@redhat.com>
11901 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11902 of values on 64-bit platforms which are too large.
11904 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11905 Joe Kerian <jkerian@us.us.ibm.com>
11908 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11909 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11910 (__copysignl): Use signbit() for comparison.
11911 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11912 SET_LDOUBLE_WORDS64.
11915 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11916 (__ceill): Remove calls to fegetround(), fesetround().
11917 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11918 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11919 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11921 2007-01-17 Jakub Jelinek <jakub@redhat.com>
11923 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11925 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11927 2007-01-17 Ulrich Drepper <drepper@redhat.com>
11929 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11931 * csu/libc-start.c: Likewise.
11933 2007-01-16 Ulrich Drepper <drepper@redhat.com>
11935 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11936 really work anyway.
11938 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11940 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11942 (handle_request): Remove unnecessary tests.
11944 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11946 2007-01-15 Jakub Jelinek <jakub@redhat.com>
11948 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11949 workbits in semi-raw fraction.
11951 * math/test-misc.c: Add new tests.
11953 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11955 * math/basic-test.c: Include test-skeleton.c.
11956 (TEST_TRUNC): Define.
11957 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11958 (main): Rename to ...
11959 (do_test): ...this. Run new tests.
11960 (TEST_FUNCTION): Define.
11962 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11963 Joe Kerian <jkerian@us.us.ibm.com>
11966 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11967 handling for high words.
11968 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11969 and overflow for infinity.
11971 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11973 * nscd/connections.c (handle_request): Add a __builtin_expect.
11975 * nscd/connections.c (serv2db): Change type into structure which
11976 also says whether this is a request for data. Renamed to
11977 servinfo. All users changed.
11978 (handle_request): Much simpler test whether we should search the cache.
11980 * nscd/connections.c (handle_request): Fix thinko in selinux test
11983 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11984 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11985 it before getting dl_load_lock and then relock.
11986 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11987 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11988 case we unlocked the scope.
11989 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11990 _dl_lookup_symbol_x in case we locked the scope.
11991 (_dl_profile_fixup): Likewise.
11992 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11993 set DL_LOOKUP_SCOPE_LOCK.
11995 2007-01-13 Ulrich Drepper <drepper@redhat.com>
11997 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11998 CFLAGS-getsrvbynpt_r.c.
11999 * nscd/getsrvbynm_r.c: New file.
12000 * nscd/getsrvbypt_r.c: New file.
12001 * nscd/nscd_getserv_r.c: New file.
12002 * nscd/servicescache.c: New file.
12003 * nscd/Makefile (routines): Add nscd_getserv_r.
12004 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12005 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12006 CFLAGS-getsrvbypt_r.c.
12007 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12008 table. Add entries for services database.
12009 * nscd/connections.c (serv2str): Mark as const. Add entries for
12011 (dbs): Add .reset_res and servdb initialization.
12012 (serv2db): Add entries for services database.
12013 (verify_persistent_db): Accept dbnr == servdb.
12014 (invalidate_cache): Rewrite database name recognition to use a table.
12015 Call res_init() if .reset_res is set for database.
12016 (handle_request): Add code to handle services database.
12017 * nscd/gai.c: Don't define __getservbyname_r.
12018 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12019 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12020 (serv_response_header): Define.
12021 (struct datahead): Add serv_response_header member.
12022 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12024 * nscd/nscd.conf: Add entries for services database.
12025 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12026 Declare serv_iov_disabled.
12027 Declare addservbyname, readdservbyname, addservbyport, and
12029 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
12030 (find_db): Fix error message.
12031 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12032 __nscd_getservbyname_r, and __nscd_getservbyport_r.
12033 * nscd/selinux.c (perms): Add entries for services database.
12034 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12035 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12037 * nscd/grpcache.c: Remove obsolete code. Cleanups.
12038 * nscd/hstcache.c: Likewise.
12039 * nscd/pwdcache.c: Likewise.
12041 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12042 computation of keylen.
12044 * include/string.h: Only redefine strndupa if this is really for
12047 2007-01-12 Ulrich Drepper <drepper@redhat.com>
12049 * nscd/nscd_gethst_r.c: Minor cleanups.
12051 * nscd/connections.c (handle_request): Check selinux permissions
12052 for all non-admin commands.
12054 * sysdeps/i386/i486/bits/atomic.h: Define
12055 atomic_compare_and_exchange_val_acq,
12056 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12057 using __sync_* built-ins for gcc >= 4.1.
12058 * sysdeps/x86_64/bits/atomic.h: Likewise.
12061 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12064 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
12066 * stdlib/tst-makecontext.c: Include errno.h. Change main()
12067 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
12068 (do_test): Check errno and exit(0) if ENOSYS.
12070 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12072 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12073 thousands separators.
12074 * stdlib/Makefile: Add rules to build and run tst-strtod4.
12075 * stdlib/tst-strtod4.c: New test.
12078 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12079 hexadecimal digit should accept just the initial 0.
12080 * stdlib/tst-strtod2.c (tests): New variable.
12081 (do_test): Run several tests rather than just one.
12083 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12085 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12086 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12088 2007-01-10 Ulrich Drepper <drepper@redhat.com>
12090 * io/fts.c: Make sure fts_cur is always valid after return from
12092 Patch by Miloslav Trmac <mitr@redhat.com>.
12094 2006-10-27 Richard Sandiford <richard@codesourcery.com>
12096 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12097 (R_MIPS_NUM): Bump by 1.
12099 2007-01-03 Jakub Jelinek <jakub@redhat.com>
12101 * posix/execvp.c: Include alloca.h.
12102 (allocate_scripts_argv): Renamed to...
12103 (scripts_argv): ... this. Don't allocate buffer here nor count
12105 (execvp): Use alloca if possible.
12106 * posix/Makefile: Add rules to build and run tst-vfork3 test.
12107 * posix/tst-vfork3.c: New test.
12109 2007-01-03 Ulrich Drepper <drepper@redhat.com>
12111 * string/Makefile (tst-strxfrm2-ENV): Define.
12112 * stdlib/Makefile (tst-strtod3-ENV): Define.
12114 2007-01-02 Ulrich Drepper <drepper@redhat.com>
12116 * posix/getconf.c: Update copyright year.
12117 * nss/getent.c: Likewise.
12118 * iconv/iconvconfig.c: Likewise.
12119 * iconv/iconv_prog.c: Likewise.
12120 * elf/ldconfig.c: Likewise.
12121 * catgets/gencat.c: Likewise.
12122 * csu/version.c: Likewise.
12123 * elf/ldd.bash.in: Likewise.
12124 * elf/sprof.c (print_version): Likewise.
12125 * locale/programs/locale.c: Likewise.
12126 * locale/programs/localedef.c: Likewise.
12127 * nscd/nscd.c (print_version): Likewise.
12128 * debug/xtrace.sh: Likewise.
12129 * malloc/memusage.sh: Likewise.
12130 * malloc/mtrace.pl: Likewise.
12131 * debug/catchsegv.sh: Likewise.
12133 2006-12-24 Ulrich Drepper <drepper@redhat.com>
12135 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12138 2006-12-23 Ulrich Drepper <drepper@redhat.com>
12140 * posix/wordexp.c: Remove some unnecessary tests.
12142 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
12144 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12145 blacklist the group till after we look it up.
12147 2006-12-21 Ulrich Drepper <drepper@redhat.com>
12149 * include/atomic.h (atomic_forced_read): New macro.
12151 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12153 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12155 2006-12-19 Jakub Jelinek <jakub@redhat.com>
12157 * nss/getXXbyYY_r.c: Include atomic.h.
12158 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12159 add atomic_write_barrier () in between.
12161 * stdlib/Makefile (tests): Add tst-makecontext.
12162 * stdlib/tst-makecontext.c: New test.
12164 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12165 (__makecontext): Don't realign uc_mcontext.uc_regs.
12167 2006-11-28 Jakub Jelinek <jakub@redhat.com>
12169 * elf/dl-support.c: Include dl-procinfo.h.
12170 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12171 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12172 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12174 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12175 hardcoded constants.
12176 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12177 PPC_PLATFORM_* macros for array designators.
12179 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
12181 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12182 names to the beginning.
12183 (_dl_powerpc_platforms): Add "power6x".
12184 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12185 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12186 (_DL_PLATFORMS_COUNT): Increase.
12187 (_dl_string_platform): Handle power6x case.
12188 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12189 PPC_FEATURE_POWER6_EXT): Define.
12190 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12192 2006-12-18 Jakub Jelinek <jakub@redhat.com>
12195 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12196 [-2^31 .. 2^31) range.
12197 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12199 * stdlib/tst-rand48-2.c: New test.
12200 * stdlib/Makefile (tests): Add tst-rand48-2.
12202 2006-12-14 Jakub Jelinek <jakub@redhat.com>
12204 * misc/tst-pselect.c (do_test): Fix sigblock argument.
12206 2006-12-14 Ulrich Drepper <drepper@redhat.com>
12208 * misc/tst-pselect.c (do_test): Make sure the helper process is
12209 terminating when the test is aborted.
12211 2006-12-13 Ulrich Drepper <drepper@redhat.com>
12213 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12214 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12215 Handle relatime mount option.
12218 * libio/Makefile (tests): Add tst-setvbuf1.
12219 * libio/tst-setvbuf1.c: New file.
12221 2006-12-08 Jakub Jelinek <jakub@redhat.com>
12224 * libio/genops.c (__uflow): Fix a typo.
12225 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12226 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
12227 the narrow buffer size.
12229 2006-11-24 Jakub Jelinek <jakub@redhat.com>
12232 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12233 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12234 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12236 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12237 _IO_wstr_finish): Likewise.
12238 * libio/wmemstream.c (open_wmemstream): Likewise.
12239 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12240 even for wide streams.
12242 2006-12-13 Jakub Jelinek <jakub@redhat.com>
12244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12247 2006-12-11 Ulrich Drepper <drepper@redhat.com>
12249 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12250 separators also if no non-zero digits found.
12251 * stdlib/Makefile (tests): Add tst-strtod3.
12253 2006-12-09 Ulrich Drepper <drepper@redhat.com>
12256 * include/features.h: Fix comment about default value for
12260 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12261 empty parsed strings.
12262 * stdlib/Makefile (tests): Add tst-strtod2.
12263 * stdlib/tst-strtod2.c: New file.
12266 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12268 * stdlib/Makefile (tests): Add tst-atof2.
12269 * stdlib/tst-atof2.c: New file.
12272 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12273 correctly if removing trailing zero of hex-float.
12274 * stdlib/Makefile (tests): Add tst-atof1.
12275 * stdlib/tst-atof1.c: New file.
12277 2006-12-09 Jakub Jelinek <jakub@redhat.com>
12279 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12280 Start searching for next comma at p rather than rest.
12281 * misc/Makefile (tests): Add tst-mntent2.
12282 * misc/tst-mntent2.c: New test.
12284 * misc/getusershell.c (initshells): Check for integer overflows.
12285 Make strings buffer one bigger as fgets always succeeds when second
12286 argument is 1. Don't use calloc for shells array. Disallow
12289 2006-12-08 Ulrich Drepper <drepper@redhat.com>
12291 * malloc/memusage.c: Handle realloc with new size of zero and
12292 non-NULL pointer correctly.
12293 (me): Really write first record twice.
12294 (struct entry): Make format bi-arch safe.
12295 (dest): Write out more realloc statistics.
12296 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12298 2006-12-05 Jakub Jelinek <jakub@redhat.com>
12300 * nis/nis_subr.c (nis_getnames): Revert last change.
12302 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12304 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12305 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12306 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12307 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12309 * io/Makefile: Add rules to build and run tst-ttyname_r test.
12310 * io/tst-ttyname_r.c: New test.
12312 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12314 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12316 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
12318 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12319 jump table entries.
12321 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12323 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12324 `clone' function to ensure proper unwinding stop of gdb.
12325 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12327 2006-12-01 Ulrich Drepper <drepper@redhat.com>
12329 * nscd/nscd.init: Remove obsolete and commented-out -S option
12332 2006-11-23 Jakub Jelinek <jakub@redhat.com>
12335 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12338 * manual/string.texi (strtok): Remove duplicate paragraph.
12340 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12342 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12343 libgcc not supporting `rflags' unwinding (register # >= 17).
12345 2006-11-30 Jakub Jelinek <jakub@redhat.com>
12347 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12350 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
12351 Jakub Jelinek <jakub@redhat.com>
12352 Jan Kratochvil <jan.kratochvil@redhat.com>
12354 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12355 unwind information.
12356 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12357 'restore_rt' even in the 'signal' directory.
12358 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12360 2006-11-27 Jakub Jelinek <jakub@redhat.com>
12363 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12364 malloc crashed. Don't allocate memory unnecessarily in each
12367 2006-10-21 Jakub Jelinek <jakub@redhat.com>
12369 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12371 2006-11-20 Ulrich Drepper <drepper@redhat.com>
12373 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12375 2006-11-18 Bruno Haible <bruno@clisp.org>
12377 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12378 __sysconf only after having tried to call getgroups32.
12380 2006-11-19 Ulrich Drepper <drepper@redhat.com>
12382 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12383 addresses for IPv4 queries if they can be mapped.
12385 2006-11-16 Jakub Jelinek <jakub@redhat.com>
12387 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12388 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12389 (signmask): Add .size directive.
12390 (othermask): Add .type directive.
12392 2006-11-14 Ulrich Drepper <drepper@redhat.com>
12394 * po/nl.po: Update from translation team.
12396 * timezone/zdump.c: Redo fix for BZ #3137.
12398 2006-11-14 Jakub Jelinek <jakub@redhat.com>
12400 * nss/nss_files/files-alias.c (get_next_alias): Set line back
12401 to first_unused after parsing :include: file.
12403 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12405 * timezone/africa: Update from tzdata2006o.
12406 * timezone/antarctica: Likewise.
12407 * timezone/asia: Likewise.
12408 * timezone/australasia: Likewise.
12409 * timezone/backward: Likewise.
12410 * timezone/europe: Likewise.
12411 * timezone/iso3166.tab: Likewise.
12412 * timezone/northamerica: Likewise.
12413 * timezone/southamerica: Likewise.
12414 * timezone/zone.tab: Likewise.
12416 * time/tzfile.c (__tzfile_read): Extend to handle new file format
12417 on machines with 64-bit time_t.
12419 * timezone/checktab.awk: Update from tzcode2006o.
12420 * timezone/ialloc.c: Likewise.
12421 * timezone/private.h: Likewise.
12422 * timezone/scheck.c: Likewise.
12423 * timezone/tzfile.h: Likewise.
12424 * timezone/tzselect.ksh: Likewise.
12425 * timezone/zdump.c: Likewise.
12426 * timezone/zic.c: Likewise.
12429 * elf/ldconfig.c (main): Call setlocale and textdomain.
12430 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12433 * manual/argp.texi: Fix typos.
12434 * manual/charset.texi: Likewise.
12435 * manual/errno.texi: Likewise.
12436 * manual/filesys.texi: Likewise.
12437 * manual/lang.texi: Likewise.
12438 * manual/maint.texi: Likewise.
12439 * manual/memory.texi: Likewise.
12440 * manual/message.texi: Likewise.
12441 * manual/resource.texi: Likewise.
12442 * manual/search.texi: Likewise.
12443 * manual/signal.texi: Likewise.
12444 * manual/startup.texi: Likewise.
12445 * manual/stdio.texi: Likewise.
12446 * manual/sysinfo.texi: Likewise.
12447 * manual/syslog.texi: Likewise.
12448 * manual/time.texi: Likewise.
12449 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12452 * sunrpc/clnt_raw.c: Minimal message improvements.
12453 * sunrpc/pm_getmaps.c: Likewise.
12454 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12455 * nis/nis_print_group_entry.c: Likewise.
12456 * locale/programs/repertoire.c: Likewise.
12457 * locale/programs/charmap.c: Likewise.
12458 * malloc/memusage.sh: Likewise.
12459 * elf/dl-deps.c: Likewise.
12460 * locale/programs/ld-collate.c: Likewise.
12461 * libio/vswprintf.c: Likewise.
12462 * malloc/memusagestat.c: Likewise.
12463 * sunrpc/auth_unix.c: Likewise.
12464 * sunrpc/rpc_main.c: Likewise.
12465 * nscd/cache.c: Likewise.
12466 * locale/programs/repertoire.c: Unify output messages.
12467 * locale/programs/charmap.c: Likewise.
12468 * locale/programs/ld-ctype.c: Likewise.
12469 * locale/programs/ld-monetary.c: Likewise.
12470 * locale/programs/ld-numeric.c: Likewise.
12471 * locale/programs/ld-time.c: Likewise.
12472 * elf/ldconfig.c: Likewise.
12473 * nscd/selinux.c: Likewise.
12474 * elf/cache.c: Likewise.
12475 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12478 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12482 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12484 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12485 if N is one bigger than return value.
12486 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12487 and l1 last arguments, if buf is defined, verify the return value
12488 equals to strlen (buf) and verify no byte beyond passed length
12491 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12493 * po/sv.po: Update from translation team.
12495 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12497 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12498 noinline attribute.
12500 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12502 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12503 noinline attribute.
12505 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12506 Use __new_sys_siglist instead of _sys_siglist_internal as
12507 second macro argument.
12508 (_old_sys_siglist): Use declare_symbol_alias macro instead of
12511 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12514 * posix/unistd.h (sysconf): Remove const attribute.
12516 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12517 temporary or deprecated addresses.
12518 Patch by Sridhar Samudrala <sri@us.ibm.com>.
12520 * string/Makefile (tests): Add tst-strxfrm2.
12521 * string/tst-strxfrm2.c: New file.
12523 2006-10-09 Jakub Jelinek <jakub@redhat.com>
12525 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12526 rather than r->r_brk.
12528 2006-11-08 Jakub Jelinek <jakub@redhat.com>
12530 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12531 optimization even if needed > n.
12533 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12534 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12535 return false, otherwise return true.
12536 (cache_rpath): Return decompose_rpath return value.
12538 2006-11-07 Jakub Jelinek <jakub@redhat.com>
12540 * include/libc-symbols.h (declare_symbol): Rename to...
12541 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
12542 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12544 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12546 * sysdeps/gnu/siglist.c: Likewise.
12548 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
12550 * sysdeps/powerpc/fpu/bits/mathinline.h
12551 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12552 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
12554 2006-11-05 Ulrich Drepper <drepper@redhat.com>
12556 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12557 Update handling of cache descriptor 0x49 for new models.
12558 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12561 2006-11-02 Jakub Jelinek <jakub@redhat.com>
12563 * malloc/memusage.c (dest): Reset not_me back to false after
12564 printing statistics.
12566 2006-11-02 Ulrich Drepper <drepper@redhat.com>
12568 * configure.in: Work around ld --help change and avoid -z relro
12569 test completely if the architecture doesn't care about security.
12571 2006-11-01 Ulrich Drepper <drepper@redhat.com>
12573 * po/sv.po: Update from translation team.
12575 2006-10-31 Ulrich Drepper <drepper@redhat.com>
12577 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12578 generate compatibility version.
12580 2006-10-29 Ulrich Drepper <drepper@redhat.com>
12582 * configure.in: Relax -z relro requirement a bit.
12584 * po/sv.po: Update from translation team.
12586 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12588 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12589 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12590 * elf/dl-close.c (_dl_close_worker): Likewise.
12591 * elf/dl-open.c (_dl_open_worker): Likewise.
12592 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12594 2006-10-27 Ulrich Drepper <drepper@redhat.com>
12596 * configure.in: Require assembler support for visibility, compiler
12597 support for visibility and aliases, linker support for various -z
12599 * Makeconfig: Remove conditional code which now is unnecessary.
12600 * config.h.in: Likewise.
12601 * config.make.in: Likewise.
12602 * dlfcn/Makefile: Likewise.
12603 * elf/Makefile: Likewise.
12604 * elf/dl-load.c: Likewise.
12605 * elf/rtld.c: Likewise.
12606 * include/libc-symbols.h: Likewise.
12607 * include/stdio.h: Likewise.
12608 * io/Makefile: Likewise.
12609 * io/fstat.c: Likewise.
12610 * io/fstat64.c: Likewise.
12611 * io/fstatat.c: Likewise.
12612 * io/fstatat64.c: Likewise.
12613 * io/lstat.c: Likewise.
12614 * io/lstat64.c: Likewise.
12615 * io/mknod.c: Likewise.
12616 * io/mknodat.c: Likewise.
12617 * io/stat.c: Likewise.
12618 * io/stat64.c: Likewise.
12619 * libio/stdio.c: Likewise.
12620 * nscd/Makefile: Likewise.
12621 * stdlib/Makefile: Likewise.
12622 * stdlib/atexit.c: Likewise.
12623 * sysdeps/generic/ldsodefs.h: Likewise.
12624 * sysdeps/i386/dl-machine.h: Likewise.
12625 * sysdeps/i386/sysdep.h: Likewise.
12626 * sysdeps/i386/i686/memcmp.S: Likewise.
12627 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12628 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12629 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12631 * Makerules: USE_TLS support is now default.
12632 * tls.make.c: Likewise.
12633 * csu/Versions: Likewise.
12634 * csu/libc-start.c: Likewise.
12635 * csu/libc-tls.c: Likewise.
12636 * csu/version.c: Likewise.
12637 * dlfcn/dlinfo.c: Likewise.
12638 * elf/dl-addr.c: Likewise.
12639 * elf/dl-cache.c: Likewise.
12640 * elf/dl-close.c: Likewise.
12641 * elf/dl-iteratephdr.c: Likewise.
12642 * elf/dl-load.c: Likewise.
12643 * elf/dl-lookup.c: Likewise.
12644 * elf/dl-object.c: Likewise.
12645 * elf/dl-open.c: Likewise.
12646 * elf/dl-reloc.c: Likewise.
12647 * elf/dl-support.c: Likewise.
12648 * elf/dl-sym.c: Likewise.
12649 * elf/dl-sysdep.c: Likewise.
12650 * elf/dl-tls.c: Likewise.
12651 * elf/ldconfig.c: Likewise.
12652 * elf/rtld.c: Likewise.
12653 * elf/tst-tls-dlinfo.c: Likewise.
12654 * elf/tst-tls1.c: Likewise.
12655 * elf/tst-tls10.h: Likewise.
12656 * elf/tst-tls14.c: Likewise.
12657 * elf/tst-tls2.c: Likewise.
12658 * elf/tst-tls3.c: Likewise.
12659 * elf/tst-tls4.c: Likewise.
12660 * elf/tst-tls5.c: Likewise.
12661 * elf/tst-tls6.c: Likewise.
12662 * elf/tst-tls7.c: Likewise.
12663 * elf/tst-tls8.c: Likewise.
12664 * elf/tst-tls9.c: Likewise.
12665 * elf/tst-tlsmod1.c: Likewise.
12666 * elf/tst-tlsmod13.c: Likewise.
12667 * elf/tst-tlsmod13a.c: Likewise.
12668 * elf/tst-tlsmod14a.c: Likewise.
12669 * elf/tst-tlsmod2.c: Likewise.
12670 * elf/tst-tlsmod3.c: Likewise.
12671 * elf/tst-tlsmod4.c: Likewise.
12672 * elf/tst-tlsmod5.c: Likewise.
12673 * elf/tst-tlsmod6.c: Likewise.
12674 * include/errno.h: Likewise.
12675 * include/link.h: Likewise.
12676 * include/tls.h: Likewise.
12677 * locale/global-locale.c: Likewise.
12678 * locale/localeinfo.h: Likewise.
12679 * malloc/arena.c: Likewise.
12680 * malloc/hooks.c: Likewise.
12681 * malloc/malloc.c: Likewise.
12682 * resolv/Versions: Likewise.
12683 * sysdeps/alpha/dl-machine.h: Likewise.
12684 * sysdeps/alpha/libc-tls.c: Likewise.
12685 * sysdeps/generic/ldsodefs.h: Likewise.
12686 * sysdeps/generic/tls.h: Likewise.
12687 * sysdeps/i386/dl-machine.h: Likewise.
12688 * sysdeps/ia64/dl-machine.h: Likewise.
12689 * sysdeps/ia64/libc-tls.c: Likewise.
12690 * sysdeps/mach/hurd/fork.c: Likewise.
12691 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12692 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12693 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12694 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12695 * sysdeps/s390/libc-tls.c: Likewise.
12696 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12697 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12698 * sysdeps/sh/dl-machine.h: Likewise.
12699 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12700 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12701 * sysdeps/x86_64/dl-machine.h: Likewise.
12703 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12704 split out locking and parameter checking.
12705 (_dl_close): Call _dl_close_worker after locking and checking.
12706 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12708 * elf/Makefile: Add rules to build and run tst-thrlock.
12709 * elf/tst-thrlock.c: New file.
12712 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12716 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12717 we are sure we do not need it anymore for _dl_close. Also move
12718 the asserts inside the lock region.
12719 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12721 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12723 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12725 (_dl_lookup_symbol_x): Adjust caller.
12727 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12729 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12731 * elf/dl-libc.c: Revert l_scope name changes.
12732 * elf/dl-load.c: Likewise.
12733 * elf/dl-object.c: Likewise.
12734 * elf/rtld.c: Likewise.
12735 * elf/dl-close.c (_dl_close): Likewise.
12736 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12737 always use __rtld_mrlock_{change,done}. Always free old scope list
12738 here if not l_scope_mem.
12739 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12740 change. Never free scope list here. Just __rtld_mrlock_lock before
12741 the lookup and __rtld_mrlock_unlock it after the lookup.
12742 * elf/dl-sym.c: Likewise.
12743 * include/link.h (struct r_scoperec): Remove.
12744 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12745 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12747 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12749 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12751 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12753 * configure.in: Disable building profile libraries by default.
12755 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12757 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12758 as signed longs, check for x_base + pos overflow.
12759 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12760 * sunrpc/tst-xdrmem2.c: New test.
12762 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12764 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12765 _dl_lookup_symbol_x code.
12767 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12769 * elf/dl-runtime.c: Include sysdep-cancel.h.
12770 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12771 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12772 instead of catomic_* macros.
12773 * elf/dl-sym.c: Include sysdep-cancel.h.
12774 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12775 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12776 * elf/dl-close.c: Include sysdep-cancel.h.
12777 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12778 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12779 * elf/dl-open.c: Include sysdep-cancel.h.
12780 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12781 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12783 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12786 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12787 fastbin rather than end of fastbin array.
12789 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12791 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12793 * sysdeps/x86_64/bits/atomic.h
12794 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12795 (catomic_decrement): Use correct body macro.
12797 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12799 * include/atomic.h: Add a unique prefix to all local variables
12801 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12803 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12806 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12809 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12811 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12813 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12816 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12817 determine highest fast bin to consolidate, always look into all of
12819 (do_check_malloc_state): Only require for empty bins for large
12820 sizes in main arena.
12822 * libio/stdio.h: Add more __wur attributes.
12824 * elf/dl-minimal.c (realloc): Optimize last patch.
12826 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12829 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12830 and use memcpy() if it does.
12832 2006-11-12 Andreas Jaeger <aj@suse.de>
12835 * manual/search.texi (Hash Search Function): Clarify.
12836 (Array Search Function): Clarify.
12838 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12841 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12843 * math/atest-exp2.c (read_mpn_hex): Likewise.
12844 * math/atest-sincos.c (main): Likewise.
12846 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12848 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12849 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12850 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12852 * Versions.def: Add GLIBC_2.6 for libc.
12854 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12856 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12858 2006-10-11 Jakub Jelinek <jakub@redhat.com>
12860 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12862 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12864 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12865 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12867 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12869 * include/atomic.c: Define catomic_* operations.
12870 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12871 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12872 * malloc/memusage.c: Likewise.
12873 * gmon/mcount.c: Likewise.
12874 * elf/dl-close.c: Likewise.
12875 * elf/dl-open.c: Likewise.
12876 * elf/dl-profile.c: Likewise.
12877 * elf/dl-sym.c: Likewise.
12878 * elf/dl-runtime.c: Likewise.
12879 * elf/dl-fptr.c: Likewise.
12880 * resolv/res_libc.c: Likewise.
12882 2006-10-10 Ulrich Drepper <drepper@redhat.com>
12884 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12885 components which lack them.
12887 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12888 at least one entry consisting of the parameter concatenated with
12891 2006-10-10 Roland McGrath <roland@frob.com>
12893 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12894 * sysdeps/mach/hurd/futimes.c: Likewise.
12895 * sysdeps/mach/hurd/lutimes.c: Likewise.
12897 2006-10-09 Ulrich Drepper <drepper@redhat.com>
12898 Jakub Jelinek <jakub@redhat.com>
12900 Implement reference counting of scope records.
12901 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12902 from the list in objects which remain. Always allocate new scope
12904 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12905 don't resize, allocate a new one.
12906 * elf/dl-runtime.c: Update reference counters before using a scope
12908 * elf/dl-sym.c: Likewise.
12909 * elf/dl-libc.c: Adjust for l_scope name change.
12910 * elf/dl-load.c: Likewise.
12911 * elf/dl-object.c: Likewise.
12912 * elf/rtld.c: Likewise.
12913 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12914 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12915 Add l_scoperec_lock.
12916 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12917 * sysdeps/generic/rtld-lowlevel.h: New file.
12919 * include/atomic.h: Rename atomic_and to atomic_and_val and
12920 atomic_or to atomic_or_val. Define new macros atomic_and and
12921 atomic_or which do not return values.
12922 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12924 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12926 * po/sv.po: Update from translation team.
12928 2006-10-07 Ulrich Drepper <drepper@redhat.com>
12930 * Versions.def: Add GLIBC_2.6 to libpthread.
12932 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12933 (versioned_symbol): Likewise.
12934 (compat_symbol): Likewise.
12936 * po/tr.po: Update from translation team.
12938 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12940 * nis/Banner: Removed. It's been integral part forever and the
12941 author info is incomplete anyway.
12942 * libio/Banner: Likewise.
12944 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12945 code, make sure the nis_freeresult call doesn't crash and that the
12946 result is reported correctly.
12948 2006-09-27 Jakub Jelinek <jakub@redhat.com>
12950 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12951 when callback is NULL.
12953 * nis/Versions (libnss_nisplus): Add
12954 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12955 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12956 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12957 _nss_create_tablename): Rename to...
12958 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12959 ... these. No longer static.
12960 (internal_setgrent): Adjust users.
12961 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12962 Don't use locking around _nss_grp_create_tablename call.
12963 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12965 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12967 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12969 2006-10-06 Andreas Jaeger <aj@suse.de>
12971 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12973 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12975 * po/pl.po: Update from translation team.
12977 * nscd/nscd.c (main): Fix typo in message.
12978 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12980 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12983 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12984 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12985 (__sigprocmask): Define.
12987 2006-10-02 Ulrich Drepper <drepper@redhat.com>
12989 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12992 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12994 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12995 in oldtotal and newtotal calculation.
12996 * nscd/nscd-client.h (struct mapped_database): Add datasize
12998 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12999 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13001 (__nscd_cache_search): Add checks to make sure we never reference
13002 data beyond the current mapping.
13004 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
13006 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13007 variables const to avoid compiler warnings.
13009 * io/fts.c (fts_close): Remove redundant checks.
13010 (fts_build): Likewise.
13011 (fts_palloc): Likewise.
13013 * manual/message.texi (Advanced gettext functions,
13014 Using gettextized software): Fix typos.
13016 2006-09-30 Ulrich Drepper <drepper@redhat.com>
13018 * posix/glob.c (glob_in_dir): Add some comments and asserts to
13019 explain why there are no leaks.
13021 2006-09-29 Ulrich Drepper <drepper@redhat.com>
13023 * libio/wmemstream.c: Include <wchar.h>.
13024 * libio/bug-wmemstream1.c: Likewise.
13025 * libio/tst-wmemstream1.c: Likewise.
13026 * libio/tst-wmemstream2.c: Likewise.
13028 * version.h (RELEASE): Bump to 2.5.
13029 * README: Regenerated.
13031 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13034 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13035 found no group members.
13036 Patch by Petr Baudis.
13038 2006-09-29 Jakub Jelinek <jakub@redhat.com>
13040 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13041 assert bootstrap_map.l_tls_modid is zero.
13042 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13045 2006-09-27 Ulrich Drepper <drepper@redhat.com>
13047 * libio/stdio.h: Move open_wmemstream prototype to ...
13048 * wcsmbs/wchar.h: ... here.
13050 2006-09-25 Jakub Jelinek <jakub@redhat.com>
13053 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13054 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13055 __{,l}chown to handle the rest.
13056 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13057 fchownat syscall and __ASSUME_32BITUIDS case inline, call
13058 __{,l}chown to handle the rest.
13059 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13061 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13062 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13065 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13066 time, rather allocate increasingly bigger arrays of pointers, if
13067 possible with alloca, if too large with malloc.
13069 2006-09-24 Jakub Jelinek <jakub@redhat.com>
13071 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13073 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13075 2006-09-24 Ulrich Drepper <drepper@redhat.com>
13077 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13079 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13080 IFA_F_HOMEADDRESS flag for interfaces.
13081 * include/ifaddrs.h (struct in6addrinfo): Define
13084 2006-09-21 Jakub Jelinek <jakub@redhat.com>
13087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13088 PTR_DEMANGLE3): Define.
13089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13090 PTR_DEMANGLE3): Likewise.
13091 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13092 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13094 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13096 2006-09-20 Jakub Jelinek <jakub@redhat.com>
13098 * po/libc.pot: Regenerated.
13099 * po/be.po: Updated.
13100 * po/ca.po: Likewise.
13101 * po/cs.po: Likewise.
13102 * po/da.po: Likewise.
13103 * po/de.po: Likewise.
13104 * po/el.po: Likewise.
13105 * po/en_GB.po: Likewise.
13106 * po/es.po: Likewise.
13107 * po/fi.po: Likewise.
13108 * po/fr.po: Likewise.
13109 * po/gl.po: Likewise.
13110 * po/hr.po: Likewise.
13111 * po/hu.po: Likewise.
13112 * po/ja.po: Likewise.
13113 * po/ko.po: Likewise.
13114 * po/nb.po: Likewise.
13115 * po/nl.po: Likewise.
13116 * po/pl.po: Likewise.
13117 * po/pt_BR.po: Likewise.
13118 * po/ru.po: Likewise.
13119 * po/rw.po: Likewise.
13120 * po/sk.po: Likewise.
13121 * po/sv.po: Likewise.
13122 * po/tr.po: Likewise.
13123 * po/zh_CN.po: Likewise.
13124 * po/zh_TW.po: Likewise.
13127 * iconv/iconv_prog.c (main): Fix spelling in error message.
13128 * iconv/iconvconfig.c (main): Likewise.
13129 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13130 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13131 * locale/programs/localedef.c (main): Likewise.
13132 * locale/programs/repertoire.c (repertoire_read): Likewise.
13133 * timezone/zdump.c (main): Likewise.
13134 * nscd/connections.c (handle_request): Fix spelling in log message.
13135 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13137 2006-09-20 Ulrich Drepper <drepper@redhat.com>
13139 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13142 2006-09-20 Andreas Jaeger <aj@suse.de>
13144 * math/libm-test.inc (lrint_test_upward): Fix typo.
13146 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
13149 * math/libm-test.inc (lrint_test_tonearest): New function.
13150 (lrint_test_towardzero): New function.
13151 (lrint_test_downward): New function.
13152 (lrint_test_upward): New function.
13153 (main): Run these new tests.
13154 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13155 of values near to 0.
13156 (two52): Use double not long double.
13157 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13158 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13159 (two23): Use float not double.
13160 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13161 (two23): Use float not double.
13162 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13163 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13164 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13165 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13167 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13169 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13170 Cast sp to unsigned long to avoid compiler warning.
13171 Use __makecontext_ret function instead of a trampoline on the stack.
13172 (__makecontext_ret): New function.
13173 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13175 2006-09-19 Jakub Jelinek <jakub@redhat.com>
13177 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13178 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13181 2006-09-19 Ulrich Drepper <drepper@redhat.com>
13183 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13184 sure no reference to the unloaded map's search list remains in the
13185 dependency's scope.
13187 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13189 * elf/Makefile: Add rules to build and run unload7 test.
13190 * elf/unload7.c: New test.
13191 * elf/unload7mod1.c: New file.
13192 * elf/unload7mod2.c: New file.
13194 2006-09-18 Jakub Jelinek <jakub@redhat.com>
13196 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13197 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13198 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13199 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13200 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13201 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13202 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13203 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13204 PTRACE_GETEVENTMSG): Likewise.
13205 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13208 2006-09-17 Mike Frysinger <vapier@gentoo.org>
13210 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13211 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13212 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13213 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13215 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13217 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13218 write '\0' to the fd.
13219 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13220 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13221 Change regs to unsigned long pointer from unsigned int, fix fscr
13224 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13226 * io/Makefile (CFLAGS-fstatat.c): Set.
13227 (CFLAGS-fstatat64.c): Likewise.
13228 (CFLAGS-mknodat.c): Likewise.
13230 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13231 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13232 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13233 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13235 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13236 Steven Munroe <sjmunroe@us.ibm.com>
13238 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13239 names to the beginning. Rename "cell" to "cellbe".
13240 (_dl_powerpc_platforms): New.
13241 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13242 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13243 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13244 (_DL_HWCAP_PLATFORM): Define to new mask.
13245 (_dl_platform_string, _dl_string_platform): New functions.
13246 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13247 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13249 2006-09-12 Jakub Jelinek <jakub@redhat.com>
13252 * README.libm: Fix a thinko in sqrt algorithm description.
13255 * manual/string.texi (argz_delete): Fix prototype.
13256 Patch by <alpt@freaknet.org>.
13258 2006-08-26 Joseph Myers <joseph@codesourcery.com>
13261 * io/test-lfs.c (do_prepare): Give name_len type size_t.
13262 * io/tst-fcntl.c (do_prepare): Likewise.
13263 * posix/tst-exec.c (do_prepare): Likewise.
13264 * posix/tst-preadwrite.c (do_prepare): Likewise.
13265 * posix/tst-spawn.c (do_prepare): Likewise.
13266 * posix/tst-truncate.c (do_prepare): Likewise.
13267 * rt/tst-aio.c (do_prepare): Likewise.
13268 * rt/tst-aio64.c (do_prepare): Likewise.
13269 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13272 2006-09-09 Ulrich Drepper <drepper@redhat.com>
13275 * time/mktime.c (guess_time_tm): Fix overflow detection.
13276 * time/Makefile (tests): Add bug-mktime1.
13277 * time/bug-mktime1.c: New file.
13280 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13281 (mremap): Likewise.
13283 2006-09-07 Jakub Jelinek <jakub@redhat.com>
13286 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13287 Ensure relocation doesn't clobber any bits outside of the
13288 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13289 R_SPARC_HI22 and R_SPARC_H44.
13292 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13293 (long) (MINSIZE + nb - old_size) is positive.
13295 * malloc/arena.c (grow_heap): When growing bail even if new_size
13299 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13302 2006-09-06 Jakub Jelinek <jakub@redhat.com>
13304 * posix/regex_internal.c (re_string_reconstruct): Handle
13305 offset < pstr->valid_raw_len && pstr->offsets_needed case.
13306 Ensure no bytes read before raw_mbs array. Pass a saved copy of
13307 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13308 re_string_context_at.
13309 * posix/Makefile: Add rules to build and run bug-regex26 test.
13310 * posix/bug-regex26.c: New test.
13312 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13313 rather than col_sym_free. Move seqp declaration earlier.
13315 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13317 2006-09-05 Jakub Jelinek <jakub@redhat.com>
13319 * nscd/initgrcache.c (addinitgroupsX): Move any_success
13320 decl before first goto out.
13322 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13324 * Makerules (shlib.lds): If have-hash-style, put .hash section
13325 at the end of the RO segment.
13327 2006-09-04 Ulrich Drepper <drepper@redhat.com>
13329 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13330 style hash table format is used.
13332 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13334 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13335 randomization rather than before.
13336 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13338 2006-08-31 Jakub Jelinek <jakub@redhat.com>
13340 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13342 * malloc/malloc.c (_int_malloc): Use full list insert and not
13343 shortcut which assumes the list is empty for large requests
13346 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13348 2006-08-30 Jakub Jelinek <jakub@redhat.com>
13350 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13351 and offout arguments to the prototype.
13352 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13353 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13354 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13355 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13356 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13357 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13358 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13359 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13361 2006-08-28 Ulrich Drepper <drepper@redhat.com>
13363 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13365 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13368 2006-08-28 Jakub Jelinek <jakub@redhat.com>
13370 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13371 only if herrno is NETDB_INTERNAL. Handle errors other than
13372 ERANGE outside of the loops, handle TRY_AGAIN.
13374 * locale/programs/ld-ctype.c (translit_flatten): Issue error
13375 if other's ctype category was missing.
13376 * locale/programs/ld-collate.c (collate_read): Return if
13377 copy_locale's collate category is missing.
13379 2006-08-27 Ulrich Drepper <drepper@redhat.com>
13382 * malloc/malloc.c (public_rEALLOc): Try harder by using other
13383 arenas if allocation failed.
13384 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13386 2006-08-26 Ulrich Drepper <drepper@redhat.com>
13388 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13390 (malloc_state): Reduce bins size by 2.
13391 (_int_malloc): Fix test for large enough buffer for early termination.
13392 When no unsorted block matches perfectly and an exiting block has
13393 to be split, use full list insert and not shortcut which assumes
13396 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13399 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13401 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13404 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13405 symbol require exact match (these are PLTs).
13406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13407 (_dl_ppc64_addr_sym_match): Likewise.
13410 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13411 If symbol has a value use it.
13412 * elf/tst-dladdr1.c: New file.
13413 * elf/Makefile: Add rules to build and run tst-addr1.
13415 2006-08-24 Jakub Jelinek <jakub@redhat.com>
13417 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13418 keeps failing and heap growth or new heap creation isn't
13420 * malloc/tst-malloc.c (main): Add new tests.
13422 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13425 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13426 as in the x86-64 code to use bswap.
13428 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
13431 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13433 * posix/bits/unistd.h: Likewise.
13435 2006-05-15 Mike Frysinger <vapier@gentoo.org>
13438 * string/strchr.c: Add cast to avoid warning.
13440 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13442 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13443 platforms define as 512K. For 64-bit platforms as 32MB. The lower
13444 limit is needed to avoid the exploding of the address space
13445 requirement for secondary heaps.
13446 * malloc/arena.c (HEAP_MAX_SIZE): Define using
13447 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13449 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
13452 * Makerules (depfiles): Handle extra-test-objs the same as
13454 (common-mostlyclean): Likewise.
13455 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13457 * elf/Makefile (extra-objs): Likewise.
13458 * stdlib/Makefile (extra-objs): Likewise.
13460 2006-08-14 Eric Blake <ebb9@byu.net>
13463 * misc/error.h: Assume C89 or better.
13464 * misc/error.c: Likewise.
13466 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13469 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13470 __ASSUME_ATFCTS is defined.
13472 2006-08-19 Ulrich Drepper <drepper@redhat.com>
13474 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13475 to sort in each call.
13477 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13478 is empty simply return and use next service.
13479 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13481 * locale/programs/charmap.c (charmap_read): Add new parameter. It
13482 tells us when not finding a charmap file is an error.
13483 * locale/programs/charmap.h: Adjust charmap_read prototype.
13484 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13485 cannot find a charmap.
13486 * locale/programs/localedef.c (main): Adjust charmap_read call.
13488 2006-08-15 Jakub Jelinek <jakub@redhat.com>
13490 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13491 sysdeps/posix/pause.c implementation instead.
13493 2006-08-09 Jakub Jelinek <jakub@redhat.com>
13495 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13498 2006-08-13 Andreas Schwab <schwab@suse.de>
13500 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13501 Don't clobber caller's LRSAVE.
13502 (_dl_prof_resolve): Likewise.
13504 2006-08-14 Ulrich Drepper <drepper@redhat.com>
13507 * libio/memstream.c (open_memstream): Allocate initial buffer with
13509 * libio/wmemstream.c (open_wmemstream): Likewise.
13510 * libio/strops.c: Pretty printing.
13511 (_IO_str_overflow): Clear uninitialized part of the new buffer.
13512 (enlarge_userbuf): New function.
13513 (_IO_str_seekoff): Call it if seek position is larger than current
13515 * libio/wstrops.c: Likewise.
13516 * libio/vasprintf.c: Add comment as to why we do not have to use
13517 calloc instead of malloc to allocate initial buffer.
13518 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13519 * libio/bug-memstream1.c: New file.
13520 * libio/bug-wmemstream1.c: New file.
13522 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13524 * libio/wstrops.c: Remove dead macro definitions and comments.
13525 * libio/strops.c: Likewise.
13528 * login/utmpname.c (__utmpname): Remove unnecessary test.
13530 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
13533 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13536 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13539 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13541 * sysdeps/unix/clock_settime.c: Add support for platform-specific
13542 setting of CPU clocks.
13544 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
13547 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13548 since C99 requires the result to promote to 'int' when uint_least8_t
13549 and uint_least16_t promote to 'int'.
13551 2006-08-12 Ulrich Drepper <drepper@redhat.com>
13554 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13555 lenght of one output field, correct bitmask creation.
13556 * locale/programs/ld-time.c: Add alignment.
13559 * misc/error.c: Add space between program name and message if file
13562 2006-08-03 Eric Blake <ebb9@byu.net>
13565 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13567 2006-08-09 Ulrich Drepper <drepper@redhat.com>
13569 * malloc/memusagestat.c: Silence warnings.
13571 * malloc/malloc.c: Dynamically size mmap treshold if the program
13572 frees mmaped blocks.
13573 Patch by Valerie Henson and Arjan van de Ven.
13575 2006-08-08 Jakub Jelinek <jakub@redhat.com>
13577 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13580 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13581 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13582 (DEF): Don't put the var into .gnu.linkonce.r.* section.
13583 Only provide var definitions in strtol_l (or for *ull*
13586 * stdio-common/bug16.c (tests): New array.
13587 (do_tests): Allow the first hexadecimal digit
13588 to be 1, 2, 4 or 8. Do 3 additional tests.
13590 * sysdeps/s390/fpu/libm-test-ulps: Update.
13592 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13593 fchownat syscall if available.
13594 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13595 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13596 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13598 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13600 * nis/nis_xdr.c: Avoid some function calls.
13602 2006-08-07 Jakub Jelinek <jakub@redhat.com>
13603 Ulrich Drepper <drepper@redhat.com>
13605 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13606 short cut if only one name component is stripped away.
13608 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13610 * nis/nis_call.c: Minor cleanups throughout.
13611 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13612 (first_shoot): Add search_parent_first parameter. Only if it is set
13613 search parent server first.
13614 If directory for table found through cold start cache is not the same
13615 as referenced in the cache, don't use it.
13616 (__nisfind_server): Take additional parameter. Pass it on to
13618 (__prepare_niscall): Adjust __nisfind_server call.
13619 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13620 * nis/nis_table.c: Adjust __nisfind_server call.
13621 * nis/nis_lookup.c: Likewise.
13622 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13624 2006-08-03 Ulrich Drepper <drepper@redhat.com>
13627 * math/s_cacosh.c: Return values from positive branch.
13628 * math/s_cacoshf.c: Likewise.
13629 * math/s_cacoshl.c: Likewise.
13632 * sysvipc/sys/msg.h: Change return value to ssize_t.
13633 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13634 * sysvipc/msgrcv.c: Likewise.
13635 * include/sys/msg.h: Likewise.
13637 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13638 test introduced in patch for bz #661.
13639 (getgrouplist): Simplify code a bit. Don't allocate one additional
13640 element for NEWGROUPS.
13643 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13644 'f', use '1' as leading digit not '\1'.
13645 * stdio-common/Makefile (tests): Add bug16.
13646 * stdio-common/bug16.c: New file.
13649 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13650 and don't try to open it. The patch introducing the macro
13651 contained a bug and used the same file name as the new file
13652 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13653 this out completely.
13656 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13657 Patch by Jerry James <Jerry.James@usu.edu>.
13659 * rt/Makefile (tests): Add tst-clock2.
13660 * rt/tst-clock2.c: New file.
13663 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13664 function and its parameters and pass it to new thread.
13665 (__gai_notify): Add support for alternative waiting for completion.
13666 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13667 waiting for completion.
13668 * resolv/getaddrinfo_a.c: Likewise.
13669 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13670 waiting for completion is used.
13671 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13672 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13673 * resolv/gai_error.c: Likewise.
13674 * resolv/gai_sigqueue.c: Likewise.
13676 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13678 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13679 errno to EBADF and return MACH_PORT_NULL.
13681 2006-06-23 Joseph Myers <joseph@codesourcery.com>
13684 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13686 2006-08-02 Ulrich Drepper <drepper@redhat.com>
13688 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13689 walk them instead of the symbol table.
13691 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13694 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13695 status of NSS calls, not the number of returned entries.
13697 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13698 request_key, keyctl.
13700 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13702 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13704 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13706 * elf/tst-auditmod1.c: Fix typo in #error.
13708 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13710 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13712 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13714 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13716 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13717 that the directory is empty even on non-POSIX filesystems.
13719 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13721 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13723 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13724 the backend NSS module. If backend setgrent call failed, don't have
13725 internal_setgrent fail. Just remember this until it is needed.
13726 * nis/nss_compat/compat-pwd.c: Likewise.
13727 * nis/nss_compat/compat-spwd.c: Likewise.
13729 2006-07-30 Roland McGrath <roland@redhat.com>
13731 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13732 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13733 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13734 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13736 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13737 (nanosleep_not_cancel): New macro.
13738 (sigsuspend_not_cancel): new macro.
13739 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13740 (do_sigsuspend): Define as inline.
13741 (__sigsuspend): Always use do_sigsuspend.
13742 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13743 * include/signal.h: Declare __sigsuspend_nocancel.
13744 * sysdeps/posix/pause.c
13745 [! NO_CANCELLATION] (__pause_nocancel): New function.
13747 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13748 * include/time.h (__nanosleep_nocancel): Likewise.
13750 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13752 * locale/programs/localedef.c (add_to_readlist): Rename local
13753 variables to avoid confusion.
13755 * locale/programs/charmap.c (charmap_read): Emit error message if
13756 charmap couldn't be found or read.
13758 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13760 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13761 __ASSUME_FUTEX_LOCK_PI.
13762 * include/time.h: Declare __nanosleep_nocancel.
13763 * include/unistd.h: Declare __pause_nocancel.
13765 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13766 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13767 get the __stack_chk_fail_local definition when it's needed.
13769 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13771 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13772 * dlfcn/bug-atexit3.c: New file.
13773 * dlfcn/bug-atexit3-lib.cc: New file.
13775 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13776 used when the namespace is not the base namespace.
13778 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13780 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13781 (__new_exitfn): Bump it in every successful call.
13782 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13783 more exit handlers, call them right away.
13784 * stdlib/exit.h: Declare __new_exitfn_called.
13786 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13788 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13789 calling registered handler.
13791 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13792 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13793 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13794 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13795 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13796 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13797 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13798 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13800 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13802 * elf/dl-lookup.c (dl_new_hash): New functions.
13803 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13804 value here. Compute new-style hash value. Pass new hash value
13805 and reference to variable with the old value to do_lookup_x.
13806 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13807 old-style hash table.
13808 (_dl_debug_bindings): Pass new hash value and reference to variable
13809 with the old value to do_lookup_x.
13810 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13811 new-style hash value and change old-style hash value parameter to
13812 be a reference. Reoganize functions to determine whether
13813 new-style hash table is available. Only fall back on old-style
13814 table. If old-style hash value is needed, compute it here.
13815 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13817 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13818 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13819 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13820 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13821 * Makeconfig: If linker supports --hash-style option add it to all
13822 linker command lines to build DSOs.
13823 * config.make.in: Define have-hash-style.
13824 * configure.in: Test whether linker supports --hash-style option.
13826 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13827 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13829 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13831 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13834 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13835 RPATH of main map twice.
13837 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13839 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13840 look further, return original strings.
13841 (_nl_find_msg): Do not return found translation if the conversion
13842 failed. Either signal the string is unusable or that something went
13843 wrong and the original should be used.
13845 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13847 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13849 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13852 * misc/insremque.c (insque): Handle prev == NULL.
13853 * misc/Makefile (tests): Add tst-insremque.
13854 * misc/tst-insremque.c: New test.
13856 2006-06-17 Ulrich Drepper <drepper@redhat.com>
13859 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13860 conflict with DL_DST_REQUIRED.
13862 2006-06-16 Ulrich Drepper <drepper@redhat.com>
13864 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13865 match what Solaris does.
13867 2006-06-04 Ulrich Drepper <drepper@redhat.com>
13869 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13870 local_setegid instead of seteuid and setegid.
13871 * sysdeps/generic/local-setxid.h: New file.
13872 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13874 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13876 * string/Makefile (tests): Add bug-envz1.
13877 * string/bug-envz1.c: New file.
13879 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13881 * posix/regex_internal.c (re_string_skip_chars): If no character has
13882 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13883 to the byte which couldn't be converted.
13884 (re_string_reconstruct): Don't clear valid_raw_len before calling
13885 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13886 tip_context using re_string_context_at.
13887 * posix/Makefile: Add rules to build and run bug-regex25 test.
13888 * posix/bug-regex25.c: New test.
13890 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13893 * string/envz.c (envz_strip): Correct erroneously reversed src
13894 and dest parameters to memmove() invocation.
13896 2006-05-30 Jakub Jelinek <jakub@redhat.com>
13898 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13899 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13900 to make sure the database has been already invalidated.
13901 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13902 after the cache has been invalidated. Use pthread_mutex_lock rather
13903 than pthread_mutex_trylock if fd != -1.
13904 * nscd/connections.c (invalidate_cache): Add fd argument, write
13905 response to fd if not calling prune_cache, pass fd to prune_cache.
13906 (handle_request): Adjust invalidate_cache caller.
13907 (nscd_run): Pass -1 as fd to prune_cache.
13909 2006-05-30 Ulrich Drepper <drepper@redhat.com>
13911 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13914 2006-05-29 Ulrich Drepper <drepper@redhat.com>
13916 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13917 * nscd/cache.c (prune_cache): Take prunelock before starting the
13918 work. Just return in case it is already taken.
13919 * nscd/connections.c (dbs): Initialize .prunelock.
13921 2006-05-25 Ulrich Drepper <drepper@redhat.com>
13923 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13924 copying. No need to allocate new array for group members. Just
13925 move the pointers and update the size.
13927 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13928 Avoid memory leak in case realloc fails. Simplification for
13929 better code generation.
13931 Avoid deprecation warning because of libc_hidden_proto for
13932 inet6_option_alloc.
13933 * inet/inet6_option.c (option_alloc): Renamed from
13934 inet6_option_alloc. Made static.
13935 (inet6_option_alloc): Now a simple wrapper around option_alloc.
13936 (inet6_option_append): Call option_alloc.
13937 * include/netinet/in.h: Remove libc_hidden_proto for
13938 inet6_option_alloc.
13940 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13941 for cleanup when cb!=NULL [Coverity CID 233].
13943 2006-05-24 Ulrich Drepper <drepper@redhat.com>
13946 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13947 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13948 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13949 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13950 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13951 and inet6_rth_getaddr.
13952 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13954 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13955 Mark inet6_option_* interfaces as deprecated.
13956 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13957 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13958 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13959 inet6_rth_segments, and inet6_rth_getaddr.
13960 * inet/inet6_opt.c: New file.
13961 * inet/inet6_rth.c: New file.
13963 * inet/netinet/icmp6.h: Pretty printing.
13966 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13968 2006-05-23 Ulrich Drepper <drepper@redhat.com>
13970 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13971 doing it all here. When server does not know the answer do not
13972 fail immediate, try parent first.
13974 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13977 2006-05-20 Ulrich Drepper <drepper@redhat.com>
13979 * nis/nis_call.c (__prepare_niscall): New function. Split out
13981 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13983 (__follow_path): New function. Split out from nis_list.
13984 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13986 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13988 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13990 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13991 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13992 from libnsl for version GLIBC_PRIVATE.
13993 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13994 Remove entry parameter from _nss_nisplus_parse_pwent and
13995 _nss_nisplus_parse_grent.
13996 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13997 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13998 again. Rewrite getpwent handling to not use nis_first_entry and
13999 nis_next_entry. Roll out own niscall handling.
14000 * nis/nss_nisplus/nisplus-grp.c: Likewise.
14002 * sunrpc/xdr_rec.c: Fix typo in comment.
14004 2006-05-19 Ulrich Drepper <drepper@redhat.com>
14006 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14009 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14010 to allocate memory for my_pollfd. Better initialization of
14011 cb_is_running. Use TEMP_FAILURE_RETRY.
14013 * malloc/memusage.sh (memusageso): Add quotes.
14014 (memusagestat): Likewise.
14015 * debug/xtrace.sh (pcprofileso): Likewise.
14016 (pcprofiledump): Likewise.
14017 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14019 * malloc/Makefile ($(objpfx)memusage): Likewise.
14021 * nis/nis_callback.c (__nis_create_callback): Calls to
14022 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
14023 asprintf call fails.
14025 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14026 no uninitialized memory is passed to sendto.
14028 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14030 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14031 of snprintf+strdup. Handle OOM.
14032 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14033 cb->serv together. Remove now obsolete free calls.
14034 (__nis_destroy_callback): Remove now obsolete free call.
14036 2006-05-18 David Woodhouse <dwmw2@redhat.com>
14038 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14039 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14040 and ULA respectively). Set precedence for IPv4 address to 10 as
14041 defined in RFC3484 for preferring IPv6.
14042 * posix/gai.conf: Update to match the new default tables.
14044 2006-05-18 Jakub Jelinek <jakub@redhat.com>
14046 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14047 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14048 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14049 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14051 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14053 (init_nss_interface): Remove initialization of these variables.
14055 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14057 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14058 nis_free_directory forward to avoid duplication.
14060 2006-05-17 Ulrich Drepper <drepper@redhat.com>
14062 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14063 rec_dirsearch returning NULL.
14064 (first_shoot): Handle __nis_finddirectory returning NULL.
14065 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14067 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14068 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14070 2006-05-17 Jakub Jelinek <jakub@redhat.com>
14072 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14075 2006-05-15 Ulrich Drepper <drepper@redhat.com>
14077 * include/rpc/pmap_prot.h: Mark all functions as hidden.
14079 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14080 * nscd/nscd_getgr_r.c: Likewise.
14082 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14084 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14085 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14087 * stdlib/longlong.h (__clz_tab): Mark as hidden.
14089 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14091 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14093 * include/rpc/auth.h: Mark xdr_des_block_internal and
14094 xdr_opaque_auth_internal as hidden.
14096 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14099 * include/rpc/xdr.h: Mark all _internal functions as hidden.
14101 * misc/getusershell.c (okshells): Don't use static initializers,
14104 * stdlib/fmtmsg.c (keywords): Change type of len element to
14105 uint32_t to not waste space on 64bit machines.
14107 * locale/setlocale.c: Change _nl_category_names into a string.
14108 Add new _nl_category_name_idxs. Change all users.
14109 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14110 Declare _nl_category_name_idxs.
14111 * locale/findlocale.c: Adjust for _nl_category_names change.
14112 * locale/loadlocale.c: Likewise.
14113 * locale/newlocale.c: Likewise.
14114 * intl/dcigettext.c: Likewise.
14116 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14117 (add_alias2): ...here. New function.
14118 (__gconv_read_conf): Simplify builtin alias handling.
14119 (builtin_aliases): Convert to string to avoid relocations.
14120 * iconv/gconv_builtin.h: Add comment about correct formatting.
14122 2006-05-15 Jakub Jelinek <jakub@redhat.com>
14124 * resolv/res_debug.c (loc_ntoa): Make error const.
14126 2006-05-14 Andreas Schwab <schwab@suse.de>
14128 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14130 2006-05-12 Jakub Jelinek <jakub@redhat.com>
14132 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14133 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14134 sizeof (cpu_set_t).
14136 2006-05-11 Ulrich Drepper <drepper@redhat.com>
14138 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14140 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14142 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14143 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14145 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14146 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14148 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14149 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14152 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14153 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14156 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14157 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14159 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14160 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14162 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14163 * include/rpcsvc/nis_callback.h: New file.
14165 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14166 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14168 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14169 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14171 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14172 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14174 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14175 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14177 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14178 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14181 * nis/nis_xdr.h: Mark all functions as hidden. Remove
14182 __BEGIN_DECLS and __END_DECLS, the header is not installed.
14184 * nis/nis_error.c: Remove table of strings. Use position
14185 independent mechanism.
14186 * nis/nis_error.h: New file.
14188 2006-05-11 Jakub Jelinek <jakub@redhat.com>
14190 * locale/programs/ld-time.c (time_finish): If wide era name or
14191 format aren't provided, set both wname and wformat to L"".
14193 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14195 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14196 results if the call was succesful.
14198 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14200 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14203 2006-05-10 Jakub Jelinek <jakub@redhat.com>
14205 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14207 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14209 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14210 caller makes sure this is not the case.
14211 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
14213 2006-05-09 Ulrich Drepper <drepper@redhat.com>
14215 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14218 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14219 [Coverity CID 229, 230]
14221 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14223 (hol_help): Likewise. [Coverity CID 226, 227]
14225 * string/argz-replace.c (__argz_replace): Unconditionally call
14226 free on SRC. [Coverity CID 225]
14228 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14229 the return value of __nis_default_owner and __nis_default_group,
14230 it has been especially allocated. [Coverity CID 224]
14232 * nis/nis_defaults.c (searchXYX): New functions. Used by both
14233 searchgroup and searchowner. Significantly simplified.
14234 (__nis_default_owner): Remove duplication. Do not locally copy the
14235 string before duplicating it.
14236 (__nis_default_group): Likewise.
14238 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14239 we must clear the variable before calling __nisfind_server.
14241 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14242 nis_getnames. [Coverity CID 223]
14244 * locale/programs/locfile.c (locfile_read): Use alloca instead of
14245 xmalloc to allocate local repertoire name. [Coverity CID 222]
14247 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14248 allocate memory for the input to add_bytes. [Coverity CID 221]
14250 * posix/wordexp.c (w_addword): Free word if realloc fails and it
14251 was allocated here. [Coverity CID 219, 220]
14253 * posix/getconf.c (print_all): Free confstr data after printing.
14256 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14257 list allocation fails. [Coverity CID 215]
14259 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14262 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14263 string is NULL. [Coverity CID 212]
14264 * argp/Makefile: Add rules to build and run bug-argp1.
14265 * argp/bug-argp1.c: New file.
14267 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14269 * stdlib/canonicalize.c (__realpath): Likewise.
14271 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14272 pointer. [Coverity CID 206]
14274 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14275 in statically linked code.
14276 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14277 statically built code, be prepared to have no link map.
14280 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14281 dgettext calls. [Coverity CID 204]
14283 * argp/argp-help.c (struct uparams): Remove valid member. Change
14285 (uparam_names): Reduce size. Avoid relative relocations.
14286 Moved to read-only segment.
14287 (fill_in_uparams): Update for new layout.
14289 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14290 assumed to always be != NULL. [Coverity CID 202]
14292 * argp/argp-help.c (hol_entry_help): Remove some dead code
14293 [Coverity CID 200].
14295 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14296 away a few more unconditional yperr2nss calls.
14297 (_nss_nis_getservbyname_r): Likewise.
14299 2006-05-06 Ulrich Drepper <drepper@redhat.com>
14301 * sysdeps/generic/ldsodefs.h: Remove support for non-core
14304 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14305 that unused memory passed to sendto is nevertheless initialized.
14308 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14309 possibly unaligned memory accesses.
14311 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14312 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14313 and __putlong respectively. Correct buffer overflow check for
14316 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14318 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14319 (send_dg): Rewrite error handling to be more compact and avoid
14320 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
14322 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14324 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14325 instead of ns_get16.
14326 (res_queriesmatch): Likewise. Minor optimization.
14329 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14330 __libc_res_nsend might reallocate the buffer for the answer. In
14331 this case we have to reload the HP pointer.
14333 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14335 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
14336 some branch prediction hints.
14338 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14339 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14340 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14341 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14342 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14343 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14344 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14345 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14347 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
14349 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14350 by a GOT relocation to make Scrt1.o position independent.
14351 * sysdeps/s390/s390-64/elf/start.S: Likewise.
14353 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14354 six system call parameters.
14355 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14357 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14359 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14362 * sunrpc/svc_udp.c (BZERO): Remove definition.
14364 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14366 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
14367 (des_SPtrans): Use uint32_t type.
14368 (des_skb): Likewise.
14370 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14372 2006-05-05 Jakub Jelinek <jakub@redhat.com>
14375 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14378 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14380 * locale/programs/ld-address.c (address_finish): Fix one more
14381 place where the iso639 array might be accessed beyond the limits.
14383 2006-05-04 Ulrich Drepper <drepper@redhat.com>
14385 * nis/nis_table.c (nis_list): Avoid clearing res twice before
14386 filling it for the first time.
14388 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14389 Adjust all callers.
14390 Free res object content before returning.
14392 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14394 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14397 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14398 cleanup for initial thread, just the free call on TVP.
14400 * nscd/gai.c (__getline): Define.
14403 See ChangeLog.16 for earlier changes.