1 2010-05-03 Ulrich Drepper <drepper@redhat.com>
3 * version.h (VERSION): Bump for 2.12 release.
4 * include/features.h (__GLIBC_MINOR__): Bump to 12.
7 * elf/ldconfig.c (search_dir): Fix handling of symlinks in chroot.
9 * elf/chroot_canon.c (chroot_canon): Use xmalloc and xrealloc.
11 * elf/ldconfig.c (parse_conf_include): Don't fall back to
12 directories named in config file outside the chroot.
14 2010-02-02 Andreas Schwab <schwab@redhat.com>
16 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
18 * elf/rtld.c (_rtld_global): Initialize it.
19 * elf/dl-support.c (_dl_load_write_lock): Define .
20 * elf/dl-close.c (_dl_close_worker): Lock GL(dl_load_write_lock)
21 when modifying the list of loaded objects.
22 * elf/dl-load.c (lose): Likewise.
23 * elf/dl-object.c (_dl_new_object): Likewise.
24 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Lock
25 GL(dl_load_write_lock) instead of GL(dl_load_lock).
27 2010-05-03 Ulrich Drepper <drepper@redhat.com>
29 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Remove unnecessary
32 2010-05-02 Ulrich Drepper <drepper@redhat.com>
34 * misc/mntent_r.c (encode_name): The slow loop handles newlines so we
35 should recognize them as an abort condition.
36 Patch by Jan Lieskovsky <jlieskov@redhat.com>.
38 2010-04-25 Bruno Haible <bruno@clisp.org>
41 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Use __ttyname_r's return
42 value instead of errno.
43 * sysdeps/unix/getlogin.c (getlogin): Likewise.
46 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Upon failure, return
49 2010-04-24 Emilio Pozuelo Monfort <pochu27@gmail.com>
51 * hurd/lookup-at.c (__file_name_lookup_at): Fix error return value.
53 2010-04-22 Ulrich Drepper <drepper@redhat.com>
55 * po/vi.po: Update from translation team.
57 2010-04-21 Ulrich Drepper <drepper@redhat.com>
59 * po/bg.po: Update from translation team.
61 2010-04-19 Roland McGrath <roland@redhat.com>
63 * elf/Makefile ($(objpfx)noload): Depend on libdl.so.
65 * Makeconfig (as-needed, no-as-needed): New variables.
66 (link-libc): Add ld.so inside --as-needed.
68 * stdio-common/tst-fmemopen.c (TEST_FILE): Macro removed.
69 (main): Take arguments. Construct test file name from ARGV[0].
71 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
73 * string/test-strncmp.c (check_result): New function.
74 (do_one_test): Use it.
75 (check1): New function.
77 * sysdeps/i386/i686/multiarch/strcmp-sse4.S (crosspage): Properly
78 update source and destination.
79 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (gobble_ashr_12):
80 Properly check and update counter.
82 2010-04-14 H.J. Lu <hongjiu.lu@intel.com>
84 * sysdeps/x86_64/elf/configure.in: Move AVX test to ....
85 * sysdeps/i386/configure.in: ...here.
86 * sysdeps/i386/i686/multiarch/Makefile (libm-sysdep_routines): Define.
87 (CFLAGS-s_fma-fma.c): Define.
88 (CFLAGS-s_fmaf-fma.c): Define.
89 * sysdeps/i386/i686/multiarch/Versions: New file.
90 * sysdeps/i386/i686/multiarch/s_fma-fma.c: New file.
91 * sysdeps/i386/i686/multiarch/s_fma.c: New file.
92 * sysdeps/i386/i686/multiarch/s_fmaf-fma.c: New file.
93 * sysdeps/i386/i686/multiarch/s_fmaf.c: New file.
95 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Check
96 DATA_CACHE_SIZE_HALF instead of SHARED_CACHE_SIZE_HALF.
98 2010-04-14 Andreas Schwab <schwab@redhat.com>
100 * elf/dl-version.c (_dl_check_map_versions): Avoid index overflow
101 when dependencies are missing.
103 2010-04-14 H.J. Lu <hongjiu.lu@intel.com>
105 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Optimized for unaligned
108 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
110 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
112 * sysdeps/x86_64/multiarch/memcmp-sse4.S: New file.
113 * sysdeps/x86_64/multiarch/memcmp.S: New file.
114 * sysdeps/x86_64/multiarch/rtld-memcmp.c: New file.
116 2010-04-13 Ulrich Drepper <drepper@redhat.com>
118 * sysdeps/x86_64/multiarch/init-arch.h: Pretty printing.
121 2010-04-10 Matt Fleming <matt@console-pimps.org>
123 * elf/elf.h: Add SH specific ELF header flags.
125 2010-04-13 Andreas Schwab <schwab@redhat.com>
127 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Fix setup of
129 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
131 2010-04-12 Andreas Schwab <schwab@redhat.com>
133 * stdlib/tst-makecontext3.c (main): Initialize ucontext_t objects
134 only with getcontext. Test for unimplemented makecontext by
137 2010-04-09 Ulrich Drepper <drepper@redhat.com>
139 * nscd/aicache.c (addhstaiX): Correct passing memory to address
140 list to gethostbyname4_r functions.
142 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Optimize
145 2010-04-09 Roland McGrath <roland@redhat.com>
147 * Makerules ($(common-objpfx)libc-abis.h): Depend on libc-abis.stamp.
148 ($(common-objpfx)libc-abis.stamp): New target, rule moved from
149 libc-abis.h target. Use a stamp file to avoid repeating no-op
150 move-if-change on every run.
152 * posix/Makefile (tst-chmod-ARGS): Pass $(objdir), not `pwd`.
154 2010-04-08 Ulrich Drepper <drepper@redhat.com>
157 * nscd/nscd_stat.c (struct statdata): Add reload_count field.
158 (send_stats): Fill in reload_count.
159 (receive_print_stats): Print reload_count.
161 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): When
162 reading the loginuid file use a buffer which is always large enough.
163 NUL-terminate the string.
165 * malloc/malloc.c (_int_malloc): Return NULL if printing error message
168 2010-04-07 Andreas Schwab <schwab@redhat.com>
170 * sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
171 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
173 2010-04-08 Andreas Jaeger <aj@suse.de>
176 * math/s_cprojl.c (__cprojl): Fix implementation to follow C99
178 * math/s_cprojf.c (__cprojf): Likewise.
179 * math/s_cproj.c (__cproj): Likewise.
180 * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
181 * math/libm-test.inc (cproj_test): Fix test.
183 2010-04-08 Roland McGrath <roland@redhat.com>
185 * Makerules (libc-abis): Variable removed.
186 ($(common-objpfx)libc-abis.h): Depend on Makerules too.
187 Use automatic variables in commands.
188 Depend on first libc-abis from $(sysdirs) or $(..).
190 2010-04-07 Ulrich Drepper <drepper@redhat.com>
192 * posix/bug-getopt1.c: New file.
193 * posix/bug-getopt2.c: New file.
194 * posix/bug-getopt3.c: New file.
195 * posix/bug-getopt4.c: New file.
196 * posix/bug-getopt5.c: New file.
198 2009-12-01 Eric Blake <ebb9@byu.net>
201 * posix/getopt.c (_getopt_internal_r): Skip optional - or + before
202 checking lead byte of optstring for :.
205 * posix/getopt.c (_getopt_internal_r): Reject '-;' as short
206 option, since it conflicts with "W;" optstring extension.
208 2009-12-02 Eric Blake <ebb9@byu.net>
211 * posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
212 to '--foo', with optional argument or non-ambiguous prefix.
214 2010-04-07 Ulrich Drepper <drepper@redhat.com>
217 * nis/libnsl.h (NSS_FLAG_ADJUNCT_AS_SHADOW): Define.
218 * nis/nss: Document new ADJUNCT_AS_SHADOW variable.
219 * nis/nss-default.c: Handle ADJUNCT_AS_SHADOW variable.
220 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Minor cleanups.
221 (internal_nis_getpwent_r): Don't fill in password from adjunct table
222 if NSS_FLAG_ADJUNCT_AS_SHADOW is set.
223 (_nss_nis_getpwnam_r): Likewise.
224 (_nss_nis_getpwuid_r): Likewise.
225 * nis/nss_nis/nis-spwd.c (ent_adjunct_used): New global variable.
226 (_nss_nis_setspent): Also reset ent_adjunct_used.
227 (internal_nis_getspent_r): If new_start is set and shadow.byname table
228 does not exist and NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get
229 passwd.adjunct.byname table. If new_start is not set get next entry
230 from the initially used table. Synthesize shadow.byname table if
231 necessary by adding two empty fields.
232 (_nss_nis_getspnam_r): If shadow.byname table does not exist and
233 NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get passwd.adjunct.byname
234 table and synthesize shadow.byname table.
236 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
238 * Makerules (libc-abis): Add $(..) to libc-abis.
240 2010-04-06 Joseph Myers <joseph@codesourcery.com>
242 * Makerules (libc-abis): Fix search for libc-abis in add-ons.
244 2010-04-06 Ulrich Drepper <drepper@redhat.com>
246 * sysdeps/posix/getaddrinfo.c (default_scopes): Assign global
247 scope to RFC 1918 addresses.
248 * posix/gai.conf: Document difference from RFC 3484.
250 2010-04-05 Thomas Schwinge <thomas@schwinge.name>
252 * sysdeps/gnu/unwind-resume.c: New, moved from nptl/sysdeps/pthread/.
253 * sysdeps/gnu/rt-unwind-resume.c: Likewise.
254 * sysdeps/gnu/Makefile: Add sections for csu and rt subdirs to
255 build unwind-resume code, previously in nptl/sysdeps/pthread/Makefile.
257 2010-04-05 Roland McGrath <roland@redhat.com>
259 * elf/dl-cache.c (_dl_load_cache_lookup): Obey dl_hwcap_mask.
261 * elf/dl-support.c (_dl_hwcap_mask): New variable.
263 * elf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast.
265 2010-03-30 Paul Pluzhnikov <ppluzhnikov@google.com>
267 * Makeconfig: Propagate -fdebug-prefix-map from CFLAGS to ASFLAGS.
269 2010-03-30 Joseph Myers <joseph@codesourcery.com>
271 * elf/elf.h (ELFOSABI_ARM_AEABI): Define.
273 2010-04-05 Ulrich Drepper <drepper@redhat.com>
275 * po/nl.po: Update from translation team.
278 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Handle
279 timeouts from servers.
282 * elf/ldconfig.c (main): Respect chroot setting when looking for
285 2010-04-04 Ulrich Drepper <drepper@redhat.com>
288 * posix/getopt.c (_getopt_internal_r): Fix arguments printed in error
292 * resolv/netdb.h: Declare iruserok and iruserok_af.
294 * argp/Makefile: Add rules to build and run bug-argp2.
295 * argp/bug-argp2.c: New file.
297 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
300 * argp/argp-parse.c (convert_options): Fix improper use of `|'
301 between character values.
303 2010-04-04 Ulrich Drepper <drepper@redhat.com>
306 * sysdeps/posix/remove.c (IS_NO_DIRECTORY_ERROR): Define.
307 (remove): Use IS_NO_DIRECTORY_ERROR to check for file being no
309 * sysdeps/unix/sysv/linux/remove.c: New file.
311 * conform/data/sys/stat.h-data: Fix testing of S_IS* macros.
314 * io/sys/stat.h: Always define S_ISSOCK for XPG6 and up.
317 * csu/Makefile ($(objpfx)version-info.h): Handle newer kernel headers
318 which don't define UTS_RELEASE.
320 2010-04-04 H.J. Lu <hongjiu.lu@intel.com>
321 Ulrich Drepper <drepper@redhat.com>
324 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Allow
325 concurrent initialization and use of __cpu_features.
327 2010-04-04 Ulrich Drepper <drepper@redhat.com>
329 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add tag to
332 2010-04-03 Ulrich Drepper <drepper@redhat.com>
335 * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
336 which include unnecessary padding in d_reclen.
337 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
341 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
342 unknown interface, return -1.
343 (getifaddrs_internal): Rename from getifaddrs. Handle errors in
344 map_newlink be returning -EAGAIN.
345 (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
348 2010-03-25 Ryan S. Arnold <rsa@us.ibm.com>
350 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
351 redundant and incorrect else block which overwrites current line
352 with the partial next line.
354 2010-04-03 Ulrich Drepper <drepper@redhat.com>
357 * posix/gai.conf: Document problems with IPv4 site-local addresses and
361 * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
362 small_tables_initialized.
364 * malloc/malloc.c (_int_free): Add one more sanity check for fastbins.
366 * malloc/malloc.c (set_max_fast): Fix computation of the value.
368 2010-03-30 David S. Miller <davem@davemloft.net>
370 * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Fix
371 MMAP2_PAGE_SHIFT test.
373 2010-03-29 Ulrich Drepper <drepper@redhat.com>
375 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_WAITFORONE.
377 2010-03-28 Thomas Schwinge <thomas@schwinge.name>
379 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Adapt to auxv
380 changes in the generic code.
381 * elf/rtld.c (dl_main): Conditionalize the code that dereferences auxv
382 to [HAVE_AUX_VECTOR].
384 2010-03-27 Ulrich Drepper <drepper@redhat.com>
386 * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): If
387 __ASSUME_AT_PAGESIZE we can rely on the value being set.
389 * include/wchar.h: Undefine __need_mbstate_t and __need_wint_t
390 unconditionally in the end.
392 * posix/glob.c (glob): Initialize oldcount early, too.
394 2010-03-26 Ulrich Drepper <drepper@redhat.com>
396 * sysdeps/unix/sysv/linux/i386/fcntl.c: Define miss_F_GETOWN_EX
398 Patch mostly by Paul Pluzhnikov <ppluzhnikov@google.com>.
400 2010-03-26 Richard Henderson <rth@redhat.com>
402 * sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro;
404 * stdio-common/psiginfo.c (psiginfo): Fix printf format
407 * locale/setlocale.c (free_category): Finish renaming
408 struct locale_data to __locale_data.
410 * csu/gmon-start.c (ENTRY_POINT, etext): Declare as char[], not void.
411 * elf/dl-sysdep.c (_end): Likewise.
412 * sysdeps/unix/sysv/dl-sysdep.c (frob_brk): Likewise with locally
413 declared _end, and associated variables.
415 2010-03-26 Ulrich Drepper <drepper@redhat.com>
417 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't assume success always
418 means aborting the loop over the NSS methods.
420 2010-03-25 Andreas Schwab <schwab@redhat.com>
423 * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
426 2010-03-26 Ulrich Drepper <drepper@redhat.com>
428 * malloc/malloc.c: Remove stale reference to website.
430 2010-03-24 Ulrich Drepper <drepper@redhat.com>
433 * bits/time.h: Define CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and
434 CLOCK_MONOTONIC_COARSE.
435 * sysdeps/unix/sysv/linux/clock_getres.c: Handle CLOCK_MONOTONIC_RAW,
436 CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE.
437 * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
438 * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
440 2010-03-25 Andreas Schwab <schwab@redhat.com>
442 * sysdeps/posix/cuserid.c: Fix typo.
444 2010-03-16 Chris Demetriou <cgd@google.com>
447 * locale/programs/simple-hash.c: Include inttypes.h.
448 (hashval_t): Defined to be uint32_t.
449 * locale/programs/simple_hash.h: Include inttypes.h.
450 (compute_hashval): Change return type to uint32_t.
452 2010-03-24 Ulrich Drepper <drepper@redhat.com>
454 * sysdeps/unix/sysv/linux/getlogin_r.c: New file.
455 * sysdeps/unix/sysv/linux/getlogin.c: New file.
456 * sysdeps/unix/getlogin_r.c: Allow compiling getlogin as static
458 * sysdeps/unix/getlogin.c: Likewise. Move name variable to toplevel.
459 * include/unistd.h: Declare __getlogin_r_loginuid.
462 * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
464 Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
466 * sysdeps/unix/sysv/linux/mmap64.c: Allow variable shift values.
468 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
470 * sysdeps/x86_64/multiarch/strpbrk-c.c: Define only if SHARED
473 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
475 * string/test-memcmp.c (check_result): New function.
476 (do_one_test): Use it.
477 (check1): New function.
480 2010-03-24 Ulrich Drepper <drepper@redhat.com>
482 * posix/tst-gnuglob.c: Add tests with empty patterns. For this
483 rewrite the tests to add support for failing glob calls.
484 Some other minor cleanups.
485 * posix/bug-glob3.c: New file.
486 * posix/Makefile (tests): Add bug-glob3.
488 2010-03-24 Ulrich Drepper <drepper@redhat.com>
489 Andreas Schwab <andreas@redhat.com>
491 * posix/glob.c (glob): Clean up gl_pathc and gl_pathv earlier.
492 If pattern is "" bail out early
494 2010-03-23 Jakub Jelinek <jakub@redhat.com>
496 * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
497 but tab->size != 0, just unlock and goto success, without
498 allocating anything or entering anything into the hash table.
499 (_dl_debug_bindings): Temporarily set tab->entries to NULL
500 around do_lookup_x in undef_map->l_local_scope[0]. If
501 undef_map->l_symbolic_in_local_scope, lookup also in
502 symbolic_searchlist of following libraries in l_local_scope
503 that have DT_SYMBOLIC set.
504 * elf/dl-deps.c (_dl_map_object_deps): Compute
505 l_symbolic_in_local_scope.
506 * include/link.h (struct link_map): Add l_symbolic_in_local_scope
509 2010-03-24 Ulrich Drepper <drepper@redhat.com>
512 * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
514 * wcsmbs/wchar.h: Correct preprocessor directive indentation. Move
515 C++ prototype handling to a better place.
517 2010-03-18 Ulrich Drepper <drepper@redhat.com>
519 * elf/dl-load.c (open_verify): Extend expected to the full size of the
520 e_ident array. When loading, check that the fields in e_ident we don't
521 know are zero to allow future extensions.
523 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
525 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
528 2010-03-16 Andreas Schwab <schwab@redhat.com>
530 * resolv/res_send.c (__libc_res_nsend): Fix printing of server
531 address in debug statement.
532 (send_dg): Pass correct buffer pointer to DprintQ.
534 2010-03-17 Ulrich Drepper <drepper@redhat.com>
536 * libc-abis: Add a few more entries.
538 2010-03-16 Ulrich Drepper <drepper@redhat.com>
540 * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
542 (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
544 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
545 additional osabi parameter. Only acceept nonzero ABI versions if osabi
548 (expected2): Don't explicitly initialize EI_ABIVERSION byte.
550 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
551 definition to follow generic code.
553 2010-03-15 Ulrich Drepper <drepper@redhat.com>
555 * posix/getconf.c: Update copyright year.
556 * nss/getent.c: Likewise.
557 * iconv/iconvconfig.c: Likewise.
558 * iconv/iconv_prog.c: Likewise.
559 * elf/ldconfig.c: Likewise.
560 * catgets/gencat.c: Likewise.
561 * csu/version.c: Likewise.
562 * elf/ldd.bash.in: Likewise.
563 * elf/sprof.c (print_version): Likewise.
564 * locale/programs/locale.c: Likewise.
565 * locale/programs/localedef.c: Likewise.
566 * nscd/nscd.c (print_version): Likewise.
567 * debug/xtrace.sh: Likewise.
568 * malloc/memusage.sh: Likewise.
569 * malloc/mtrace.pl: Likewise.
570 * debug/catchsegv.sh: Likewise.
572 * Makerules: Add rule for libc-abis.h.
573 * csu/version.c: Use LIBC_ABIS_STRING string if available.
574 * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
575 (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
576 Add extra call to VALID_ELF_ABIVERSION.
578 2010-03-12 Ulrich Drepper <drepper@redhat.com>
580 * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
582 2010-03-12 Andreas Schwab <schwab@redhat.com>
584 * elf/dl-dst.h: Include "trusted-dirs.h".
585 (DL_DST_REQUIRED): Take $LIB into account.
587 2010-03-11 Roland McGrath <roland@redhat.com>
589 * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
590 (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
592 2010-03-10 Luis Machado <luisgpm@br.ibm.com>
594 * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
595 * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
597 2010-03-09 David S. Miller <davem@davemloft.net>
599 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
600 of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
603 * sysdeps/sparc/sparc32/memcpy.S: Fix build.
605 * sysdeps/sparc/sparc32/strlen.S: Optimize.
606 * sysdeps/sparc/sparc64/strlen.S: Likewise.
607 * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
608 XCC): Delete definitions, not needed.
610 2010-03-07 Ulrich Drepper <drepper@redhat.com>
612 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
613 Little follow-up patch from last change.
615 2010-03-06 Ulrich Drepper <drepper@redhat.com>
617 * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
618 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
620 2010-02-18 Yann Droneaud <yann@droneaud.fr>
622 * resolv/res_send.c: Fixed DEBUG statements.
623 Moved tmpbuf declaration to block beginning and
624 updated pointer names used in multiple DprintQ() calls
626 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
628 * config.make.in (config-asflags-i686): Define.
629 * configure.in: Substitute libc_cv_as_i686.
630 * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
631 * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
632 if assembler supports -mtune=i686.
633 (ASFLAGS-.oX): Likewise.
635 2010-03-04 Ulrich Drepper <drepper@redhat.com>
637 * elf/elf.h (R_X86_64_SIZE32): Define.
638 (R_X86_64_SIZE64): Define.
640 2010-03-02 Richard Guenther <rguenther@suse.de>
642 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
645 2010-03-03 Ulrich Drepper <drepper@redhat.com>
647 * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
650 2010-03-04 David S. Miller <davem@davemloft.net>
652 * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
654 * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
655 * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
657 2010-03-03 David S. Miller <davem@davemloft.net>
659 * math/math_private.h (INSERT_WORDS64): Fix argument order.
661 2010-03-03 Aurelien Jarno <aurelien@aurel32.net>
663 * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
665 2010-03-03 David S. Miller <davem@davemloft.net>
667 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
668 pass '1' for 't' argument to sparc_fixup_plt.
669 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
671 * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
672 (sparc_fixup_plt): Document 't' argument. Enable branch
673 optimization and use v9 branches when possible. Explain why we
674 cannot unconditionally patch the branch into the first PLT
676 * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
677 argument. Use v9 branches when possible. Explain why we can in
678 fact unconditionally use a branch in the first PLT instruction
681 2010-02-28 Roland McGrath <roland@redhat.com>
683 * elf/elf.h (NT_X86_XSTATE): New macro.
685 2010-02-25 David S. Miller <davem@davemloft.net>
687 * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
688 * sysdeps/sparc/sparc64/align-cpy.S: New.
689 * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
690 __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
691 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
692 __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
694 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
695 __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
697 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
698 __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
701 * sysdeps/sparc/sparc32/bcopy.c: Delete.
702 * sysdeps/sparc/sparc32/memmove.c: Delete.
703 * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
704 * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
705 * sysdeps/sparc/sparc64/bcopy.c: Delete.
706 * sysdeps/sparc/sparc64/memmove.c: Delete.
707 * sysdeps/sparc/sparc64/memcopy.h: New.
708 * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
709 * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
710 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
711 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
712 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
714 * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
715 * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
716 gen-as-const-headers.
717 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
718 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
719 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
720 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
721 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
722 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
723 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
724 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
725 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
726 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
727 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
728 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
729 * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
730 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
731 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
732 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
733 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
734 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
735 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
736 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
737 * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
738 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
739 * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
740 * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
742 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
745 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
746 and cfi_restore_state only if USE_AS_STRNCMP is defined.
748 2010-02-24 Ulrich Drepper <drepper@redhat.com>
750 * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
752 2010-02-24 H.J. Lu <hongjiu.lu@intel.com>
754 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
755 (bk_write_less32bytes_2): Renamed to ...
756 (bk_write_less48bytes): This.
757 Use unsigned conditional jumps.
759 Use add/sub instead of lea if possible.
760 (shl_0_gobble_cache_loop_tail): Removed.
761 (large_page): Properly adjust ECX.
763 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
767 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
769 Use unsigned conditional jumps.
770 (128bytesormore_nt): Renamed to ...
771 (128bytesormore_endof_L1): This.
772 Use add instead of lea if possible.
774 * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
776 Use unsigned conditional jumps.
777 Use add instead of lea if possible.
780 2010-02-24 Ulrich Drepper <drepper@redhat.com>
783 * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
784 undoing the stream because _IO_FINISH doesn't report failures.
787 * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
788 (public_pVALLOc): Likewise.
789 Patch by Petr Baudis.
791 2010-02-22 Jim Meyering <meyering@redhat.com>
793 * manual/math.texi (BSD Random): Fix a typo: s/are/is/
795 * manual/charset.texi: Adjust grammar.
797 * manual/errno.texi (Error Messages): Fix doubled-words and typos.
798 * manual/charset.texi (Selecting the Conversion): Likewise.
799 * manual/getopt.texi (Getopt Long Options): Likewise.
800 * manual/memory.texi (Resizing the Data Segment): Likewise.
801 * manual/message.texi (GUI program problems): Likewise.
802 * manual/resource.texi (CPU Affinity): Likewise.
803 * manual/stdio.texi (Streams and Threads): Likewise.
804 * manual/time.texi (High Accuracy Clock): Likewise.
806 2009-02-20 David S. Miller <davem@davemloft.net>
808 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
809 Adjust rela->r_offset by l->l_addr when rewriting PLT.
811 * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
814 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
815 (__makecontext): Adjust arg counter properly when copying arg
818 2009-02-20 Joseph Myers <joseph@codesourcery.com>
820 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
821 Adjust rela->r_offset by l->l_addr when rewriting PLT.
823 2010-02-19 Carl Fredrik Hammar <hammy.lite@gmail.com>
825 * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
826 non-existent `tiocsctty_port'.
828 2010-02-16 H.J. Lu <hongjiu.lu@intel.com>
830 * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
831 instead of FEATURE_OFFSET.
832 * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
834 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
835 Fix one unwind info problem.
837 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
839 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
841 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
842 Ulrich Drepper <drepper@redhat.com>
844 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
847 2010-02-17 Carl Fredrik Hammar <hammy.lite@gmail.com>
849 * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
850 (tiocsctty_port): ...this new function.
852 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
855 2010-02-15 Ulrich Drepper <drepper@redhat.com>
857 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
858 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
859 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
860 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
862 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
865 2010-02-12 H.J. Lu <hongjiu.lu@intel.com>
867 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
868 strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
869 memcmp-c, memcmp-ssse3, and memcmp-sse4.
870 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
871 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
872 * sysdeps/i386/i686/multiarch/memcmp.S: New file.
873 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
874 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
875 * sysdeps/i386/i686/multiarch/strcmp.S: New file.
876 * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
877 * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
878 * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
879 * sysdeps/i386/i686/multiarch/strncmp.S: New file.
881 2010-02-12 Luis Machado <luisgpm@br.ibm.com>
883 * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
884 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
885 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
886 * sysdeps/powerpc/powerpc32/memset.S: Likewise.
887 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
888 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
889 * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
891 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
892 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
893 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
894 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
895 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
896 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
897 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
898 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
899 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
900 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
901 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
902 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
903 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
904 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
905 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
906 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
907 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
918 2010-02-12 Alan Modra <amodra@gmail.com>
920 * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
921 Define and use for __powerpc64__ too.
922 [__powerpc__] (TLS_LD): Add r3 to clobbers.
923 [__powerpc__] (TLS_GD): Set asm output. Make __result r3 reg.
924 [__powerpc64__] (TLS_GD): Make __result r3 reg.
925 [__powerpc64__] (TLS_IE): Relax output constraint.
927 2010-02-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
929 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
930 instructions cu21 and cu24. Add well-formedness checking
931 parameter and adjust the software implementation.
932 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
934 2010-02-10 Ulrich Drepper <drepper@redhat.com>
937 * io/ftw.c (ftw_startup): Close descriptor for initial directory
938 after changing back to it.
940 2010-02-05 David S. Miller <davem@davemloft.net>
942 * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
943 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
945 (elf_machine_lazy_rel): Likewise.
946 (sparc_fixup_plt): Pull out to...
947 * sysdeps/sparc/sparc32/dl-plt.h: ...here.
948 * sysdeps/sparc/sparc32/dl-irel.h: New file.
949 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
951 (elf_machine_lazy_rel): Likewise.
952 (sparc64_fixup_plt): Pull out to...
953 * sysdeps/sparc/sparc64/dl-plt.h: ...here.
954 * sysdeps/sparc/sparc64/dl-irel.h: New file.
956 2010-02-09 Maxim Kuvyrkov <maxim@codesourcery.com>
958 * elf/elf.h: Define m68k TLS relocations.
960 2010-02-10 Luis Machado <luisgpm@br.ibm.com>
962 * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
963 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
964 * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
965 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
967 64-bit power7 fpu path.
968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
969 32-bit power7 fpu math.
971 2010-02-09 Ulrich Drepper <drepper@redhat.com>
973 * sysdeps/i386/rshift.S: More compact unwind information.
975 * sysdeps/i386/lshift.S: Fix unwind information.
977 2010-02-08 Luis Machado <luisgpm@br.ibm.com>
979 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
980 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
981 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
982 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
983 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
984 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
985 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
986 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
987 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
988 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
989 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
990 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
992 2010-02-08 Andreas Schwab <schwab@redhat.com>
994 * include/fenv.h: Add hidden proto for fegetenv.
995 * math/fegetenv.c: Add hidden alias.
996 * sysdeps/i386/fpu/fegetenv.c: Likewise.
997 * sysdeps/ia64/fpu/fegetenv.c: Likewise.
998 * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
999 * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
1000 * sysdeps/sparc/fpu/fegetenv.c: Likewise.
1001 * sysdeps/x86_64/fpu/fegetenv.c: Likewise
1002 * sysdeps/s390/fpu/fegetenv.c: Likewise. Remove unused headers.
1004 2009-10-27 Aurelien Jarno <aurelien@aurel32.net>
1007 * locale/programs/locarchive.c: use MMAP_SHARED to reserve memory
1008 used later with MMAP_FIXED | MMAP_SHARED to cope with different
1009 alignment restrictions.
1011 2010-02-08 Andreas Schwab <schwab@redhat.com>
1014 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Include i386
1017 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
1020 * sysdeps/ia64/memchr.S: Don't read beyond the last byte
1023 2010-01-26 Andreas Schwab <schwab@redhat.com>
1025 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
1027 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
1028 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
1031 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
1034 2010-02-03 Ulrich Drepper <drepper@redhat.com>
1037 * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
1038 S_IMMUTABLE. Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
1039 MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
1040 MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
1041 MS_ACTIVE, and MS_NOUSER.
1042 (MS_RMT_MASK): Update according to current kernels.
1045 * misc/getusershell.c (initshells): Allocate one more byte in input
1046 buffer so that fgets doesn't loop undefinitely.
1048 2010-02-02 Ulrich Drepper <drepper@redhat.com>
1050 * stdlib/setenv.c (__add_to_environ): Don't use alloca if
1051 __libc_use_alloca tells us not to. Fix memory leak in an error
1052 situation. Based partially on patch by Jim Meyering.
1054 2010-01-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
1056 * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
1057 get_phys_pages, get_avphys_pages): Add weak aliases.
1059 2010-01-25 Andreas Schwab <schwab@redhat.com>
1061 * iconv/iconv_prog.c (write_output): Fix check for open failure.
1063 2010-01-22 Ulrich Drepper <drepper@redhat.com>
1066 * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
1067 mmap resource problem. Patch by Joe Landers <jlanders@vmware.com>.
1069 2010-01-22 Jim Meyering <jim@meyering.net>
1072 * posix/regexec.c (extend_buffers): Avoid overflow in realloc
1073 buffer length computation.
1076 * posix/regexec.c (re_copy_regs): Don't leak when allocation
1077 of the start buffer succeeds but allocation of the "end" one fails.
1080 * posix/regexec.c (re_search_2_stub): Check for overflow
1081 when adding the sizes of the two strings.
1084 * posix/regexec.c (re_search_internal): Avoid overflow
1085 in computing re_malloc buffer size.
1088 * posix/regexec.c (prune_impossible_nodes): Avoid overflow
1089 in computing re_malloc buffer size.
1092 * posix/regexec.c (build_trtable): Avoid arithmetic overflow
1093 in size calculation.
1096 * posix/regexec.c (re_search_2_stub): Use simpler method than
1097 boolean for freeing internal storage.
1099 2010-01-22 Ulrich Drepper <drepper@redhat.com>
1101 * posix/regex_internal.c (re_string_skip_chars): Simplify test for
1102 failed mbrtowc call.
1104 2010-01-22 Jim Meyering <jim@meyering.net>
1107 * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
1108 fits in wchar_t. Problem reported by Eric Blake.
1111 * posix/regex_internal.c (re_string_reconstruct): Remove declaration
1112 and stores into set-but-not-used local, "q".
1115 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
1116 detection test. Patch by Paul Eggert.
1119 * posix/regex_internal.c (re_string_realloc_buffers):
1120 Detect and handle internal overflow. Patch by Paul Eggert
1122 2010-01-20 Andreas Schwab <schwab@redhat.com>
1124 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
1125 (CHECK_SP): Fix check for alternate stack.
1126 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
1127 (CHECK_SP): Likewise.
1129 2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
1131 * sysdeps/i386/i686/multiarch/memmove.S: Also check
1132 bit_Fast_Rep_String when SHARED isn't defined.
1134 2010-01-19 Ulrich Drepper <drepper@redhat.com>
1137 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
1139 2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
1141 * sysdeps/mach/hurd/bits/libc-lock.h
1142 (__rtld_lock_recursive_t): New type.
1143 (__rtld_lock_initialize): New macro.
1145 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
1147 * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
1148 * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
1149 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
1150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
1152 2010-01-18 Andreas Schwab <schwab@redhat.com>
1154 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
1155 definitions of O_DSYNC and O_RSYNC.
1157 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
1160 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
1161 dynamic entry types.
1163 2010-01-16 Jakub Jelinek <jakub@redhat.com>
1165 * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
1167 * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
1168 * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
1170 * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
1172 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
1173 math_opt_barrier and math_force_eval macros.
1175 2010-01-15 Ulrich Drepper <drepper@redhat.com>
1177 * posix/regcomp.c: Fix a few more cases of ignored return values.
1178 * posix/regex_internal.c: Likewise.
1179 * posix/regexec.c: Likewise.
1181 * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
1182 used without _XOPEN_SOURCE. Don't base any decisions on this macro
1183 if _XOPEN_SOURCE is not defined as well.
1185 2010-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1187 * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
1188 high gprs kernel facility.
1189 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
1190 Added high gprs check for DSOs.
1191 * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
1192 new elf header flag.
1194 2010-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1196 * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
1198 * elf/dl-open.c (_dl_sysdep_start): Likewise..
1199 * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
1200 * elf/rtld.c (dl_main): Added new parameter auxv. Adjust the
1201 AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
1204 2010-01-14 Ulrich Drepper <drepper@redhat.com>
1207 * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
1209 Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1212 * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
1216 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
1217 re_node_set_insert failure; return REG_ESPACE.
1218 Patch by Paul Eggert.
1221 * bits/confname.h: Make pre-C99-safe.
1223 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
1225 * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
1226 $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
1227 files are found by GCC.
1229 2010-01-14 Ulrich Drepper <drepper@redhat.com>
1231 * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
1234 * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
1237 * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
1239 * Versions.def: Add GLIBC_2.12 for libpthread.
1242 * malloc/malloc.c (malloc_info): Initialize malloc if not already
1243 done. Handle empty bin lists.
1245 * posix/unistd.h: Change getpagesize and getdtablesize declaration
1246 visibility some more.
1248 * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
1250 * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
1253 * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
1254 needed outside libc.
1256 2010-01-13 Ulrich Drepper <drepper@redhat.com>
1258 * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
1260 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
1262 * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
1264 2010-01-13 Ulrich Drepper <drepper@redhat.com>
1266 * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
1268 2010-01-12 Ulrich Drepper <drepper@redhat.com>
1270 * conform/data/complex.h-data: Test for POSIX2008.
1272 * conform/data/ctype.h-data: Fix POSIX testing.
1274 * conform/data/dirent.h-data: ino_t only needed for XSI.
1276 * grp/grp.h: Declare getgrent and endgrent for XPG7.
1278 * conform/data/inttypes.h-data: Use same types as the headers.
1280 * resolv/netdb.h: Don't define old resolver macros for XPG7.
1282 * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
1284 * conform/conformtest.pl: Implement tag for allow-header.
1285 Fix newline handling in allow-header implementation.
1287 * conform/data/time.h-data: Use allow-header instead of duplicating
1290 * conform/data/time.h-data: Allow sigevent tag.
1292 * posix/sched.h: Define time_t and pid_t for XPG7.
1294 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
1296 * sysdeps/i386/i686/bcopy.S: New file.
1298 * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
1300 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
1302 * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
1303 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
1304 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
1306 * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
1308 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1309 bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
1310 memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
1311 bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
1312 * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
1313 * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
1314 * sysdeps/i386/i686/multiarch/bcopy.S: New file.
1315 * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
1316 * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
1317 * sysdeps/i386/i686/multiarch/bzero.S: New file.
1318 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
1319 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
1320 * sysdeps/i386/i686/multiarch/memcpy.S: New file.
1321 * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
1322 * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
1323 * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
1324 * sysdeps/i386/i686/multiarch/memmove.S: New file.
1325 * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
1326 * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
1327 * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
1328 * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
1329 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
1330 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
1331 * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
1332 * sysdeps/i386/i686/multiarch/memset.S: New file.
1333 * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
1335 * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
1336 (END_CHK): Likewise.
1338 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
1339 FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
1340 * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
1342 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
1344 (__x86_64_data_cache_size): New.
1345 (init_cacheinfo): Set __x86_64_data_cache_size.
1347 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
1348 on bit_Fast_Rep_String for Intel Core i7.
1350 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
1351 (index_Fast_Rep_String): Likewise.
1352 (FEATURE_INDEX_1): Likewise.
1353 (FEATURE_INDEX_MAX): Likewise.
1354 (cpu_features): Add feature.
1356 2010-01-12 Ulrich Drepper <drepper@redhat.com>
1358 * conform/data/sys/select.h-data: Fix up for XPG7.
1360 2010-01-12 Jakub Jelinek <jakub@redhat.com>
1362 * posix/sys/wait.h: Don't define W* macros etc. if
1363 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
1365 2010-01-11 Ulrich Drepper <drepper@redhat.com>
1367 * io/sys/stat.h: Declare fchmod for XPG7.
1368 * conform/data/sys/stat.h-data: Fix up for XPG7.
1370 * termios/termios.h: Define pid_t for XPG7.
1372 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
1373 * conform/data/tgmath.h-data: Likewise.
1375 * conform/data/time.h-data: Fix POSIX tests.
1377 * conform/data/wchar.h-data: Fix up XPG7 tests.
1379 * include/features.h: Fix __USE_ISOC95 handling.
1381 * conform/data/wordexp.h-data: Fix typo in last change.
1383 * conform/data/unistd.h-data: Fix up older POSIX tests.
1385 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
1386 * posix/unistd.h: Likewise.
1388 * posix/unistd.h: Include environments.h also for XPG6 and up.
1389 Define intptr_t for XPG6 and up.
1391 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
1393 * conform/data/sys/types.h-data: Fix up for XPG7.
1395 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
1396 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1397 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1398 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1399 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1400 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1401 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1402 * sysdeps/unix/sysv/bits/stat.h: Likewise.
1403 * sysdeps/mach/hurd/bits/stat.h: Likewise.
1405 * bits/confname.h: Fix typo in last change.
1407 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
1409 2010-01-10 Ulrich Drepper <drepper@redhat.com>
1411 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
1412 and SA_RESETHAND now available in Base.
1413 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
1414 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
1415 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1416 * conform/data/signal.h-data: Update for XPG7.
1418 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
1420 * string/strings.h: Don't declare obsolete functions for XPG7.
1421 Declare ffs only for XSI.
1422 * conform/data/strings.h-data: Update for XPG7.
1424 2010-01-10 Jakub Jelinek <jakub@redhat.com>
1427 * libio/stdio.h: Define va_list, off_t, and ssize_t.
1429 * posix/glob.h: Define size_t.
1431 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
1433 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
1435 2010-01-10 Ulrich Drepper <drepper@redhat.com>
1437 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
1440 * conform/data/stdio.h-data: Expect off_t and ssize_t.
1442 2010-01-09 Ulrich Drepper <drepper@redhat.com>
1444 * libio/stdio.h: Define va_list also for XPG7.
1446 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
1447 * conform/data/ctype.h-data: Likewise.
1448 * conform/data/dirent.h-data: Likewise.
1449 * conform/data/errno.h-data: Likewise.
1450 * conform/data/fcntl.h-data: Likewise.
1451 * conform/data/fmtmsg.h-data: Likewise.
1452 * conform/data/fnmatch.h-data: Likewise.
1453 * conform/data/ftw.h-data: Likewise.
1454 * conform/data/glob.h-data: Likewise.
1455 * conform/data/grp.h-data: Likewise.
1456 * conform/data/iconv.h-data: Likewise.
1457 * conform/data/langinfo.h-data: Likewise.
1458 * conform/data/libgen.h-data: Likewise.
1459 * conform/data/limits.h-data: Likewise.
1460 * conform/data/locale.h-data: Likewise.
1461 * conform/data/math.h-data: Likewise.
1462 * conform/data/monetary.h-data: Likewise.
1463 * conform/data/mqueue.h-data: Likewise.
1464 * conform/data/ndbm.h-data: Likewise.
1465 * conform/data/netdb.h-data: Likewise.
1466 * conform/data/pthread.h-data: Likewise.
1467 * conform/data/pwd.h-data: Likewise.
1468 * conform/data/regex.h-data: Likewise.
1469 * conform/data/sched.h-data: Likewise.
1470 * conform/data/search.h-data: Likewise.
1471 * conform/data/semaphore.h-data: Likewise.
1472 * conform/data/setjmp.h-data: Likewise.
1473 * conform/data/signal.h-data: Likewise.
1474 * conform/data/spawn.h-data: Likewise.
1475 * conform/data/stdio.h-data: Likewise.
1476 * conform/data/stdlib.h-data: Likewise.
1477 * conform/data/string.h-data: Likewise.
1478 * conform/data/strings.h-data: Likewise.
1479 * conform/data/sys/ipc.h-data: Likewise.
1480 * conform/data/sys/msg.h-data: Likewise.
1481 * conform/data/sys/resource.h-data: Likewise.
1482 * conform/data/sys/sem.h-data: Likewise.
1483 * conform/data/sys/shm.h-data: Likewise.
1484 * conform/data/sys/socket.h-data: Likewise.
1485 * conform/data/sys/stat.h-data: Likewise.
1486 * conform/data/sys/time.h-data: Likewise.
1487 * conform/data/sys/types.h-data: Likewise.
1488 * conform/data/sys/uio.h-data: Likewise.
1489 * conform/data/sys/wait.h-data: Likewise.
1490 * conform/data/syslog.h-data: Likewise.
1491 * conform/data/tar.h-data: Likewise.
1492 * conform/data/termios.h-data: Likewise.
1493 * conform/data/time.h-data: Likewise.
1494 * conform/data/ulimit.h-data: Likewise.
1495 * conform/data/unistd.h-data: Likewise.
1496 * conform/data/utmpx.h-data: Likewise.
1497 * conform/data/wchar.h-data: Likewise.
1498 * conform/data/wctype.h-data: Likewise.
1499 * conform/data/wordexp.h-data: Likewise.
1501 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
1502 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
1503 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1504 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1505 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1506 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1507 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1508 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1509 * sysdeps/unix/sysv/bits/stat.h: Likewise.
1510 * sysdeps/mach/hurd/bits/stat.h: Likewise.
1512 * stdlib/stdlib.h: Define wait-related bits for XPG7.
1513 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
1514 Declare mkstemp and getsubopt for XPG7.
1515 Declare posix_openpt for XPG6 XSI.
1517 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1518 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1520 * string/string.h: Declare strdup for XPG7.
1522 2010-01-08 Ulrich Drepper <drepper@redhat.com>
1524 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1525 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1527 * dirent/dirent.h: Really fix feature selection.
1529 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1531 * locale/C-address.c: Fix all users.
1532 * locale/C-collate.c: Likewise.
1533 * locale/C-ctype.c: Likewise.
1534 * locale/C-identification.c: Likewise.
1535 * locale/C-measurement.c: Likewise.
1536 * locale/C-messages.c: Likewise.
1537 * locale/C-monetary.c: Likewise.
1538 * locale/C-name.c: Likewise.
1539 * locale/C-numeric.c: Likewise.
1540 * locale/C-paper.c: Likewise.
1541 * locale/C-telephone.c: Likewise.
1542 * locale/C-time.c: Likewise.
1543 * locale/findlocale.c: Likewise.
1544 * locale/global-locale.c: Likewise.
1545 * locale/loadarchive.c: Likewise.
1546 * locale/loadlocale.c: Likewise.
1547 * locale/nl_langinfo_l.c: Likewise.
1548 * locale/setlocale.c: Likewise.
1549 * locale/xlocale.c: Likewise.
1550 * locale/xlocale.h: Likewise.
1551 * stdio-common/vfscanf.c: Likewise.
1552 * stdlib/strfmon_l.c: Likewise.
1553 * stdlib/strtod_l.c: Likewise.
1554 * stdlib/strtol_l.c: Likewise.
1555 * string/strcoll_l.c: Likewise.
1556 * string/strxfrm_l.c: Likewise.
1557 * time/alt_digit.c: Likewise.
1558 * time/asctime.c: Likewise.
1559 * time/era.c: Likewise.
1560 * time/lc-time-cleanup.c: Likewise.
1561 * time/strftime_l.c: Likewise.
1562 * time/strptime_l.c: Likewise.
1563 * wcsmbs/wcsmbsload.c: Likewise.
1564 * wcsmbs/wcsmbsload.h: Likewise.
1566 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1567 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1569 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1570 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1571 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1572 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1573 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1574 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1576 2010-01-07 Roland McGrath <roland@redhat.com>
1578 * elf/elf.h (PN_XNUM): New macro.
1580 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1583 2010-01-06 Ulrich Drepper <drepper@redhat.com>
1585 * dirent/dirent.h: Fix typo in feature selection macro use.
1587 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
1590 * stdlib/tst-makecontext3.c: New file.
1591 * stdlib/Makefile (tests): Add new test.
1593 * stdlib/tst-setcontext.c (check_called): Fix a typo.
1595 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
1597 * configure.in: Enable multi-arch by default if the assembler
1598 supports gnu_indirect_function symbol type and the architecture
1601 2009-12-23 Ulrich Drepper <drepper@redhat.com>
1603 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1606 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1608 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1609 MACH_PORT_NULL when id != cttyid.
1611 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
1613 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1614 __mach_port_deallocate on rootdevid.
1616 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
1618 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1619 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1620 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1621 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1623 2009-12-21 Ulrich Drepper <drepper@redhat.com>
1626 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1627 Patch by Eric Blake <ebb9@byu.net>.
1629 2009-12-15 Ulrich Drepper <drepper@redhat.com>
1632 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1633 POLLWRBAND also for POSIX 2008.
1634 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1635 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1637 * include/link.h (struct link_map): Move l_used into its own word.
1638 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1640 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1643 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
1645 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1646 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
1647 check processor feature.
1648 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1649 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1650 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1651 (index_SSE2): Likewise.
1653 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
1655 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1656 if __ASSEMBLER__ is defined.
1657 (bit_SSSE3): New. Defined for __ASSEMBLER__.
1658 (bit_SSE4_2): Likewise.
1659 (index_SSSE3): Likewise.
1660 (index_SSE4_2): Likewise.
1661 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1662 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
1663 check processor feature.
1664 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1665 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1666 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1667 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1668 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1669 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1670 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1672 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1674 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1676 2009-12-01 Mike Frysinger <vapier@gentoo.org>
1678 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1680 2009-12-11 Ulrich Drepper <drepper@redhat.com>
1682 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1683 O_DSYNC to match 2.6.33+ kernels.
1684 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1685 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1686 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1687 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1688 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1689 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1691 2009-12-10 Ulrich Drepper <drepper@redhat.com>
1694 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1695 *herrnop before returning.
1696 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1698 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1699 TRYAGAIN errors separately.
1700 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1701 *name4_r after functions.
1703 2009-12-09 Ulrich Drepper <drepper@redhat.com>
1706 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1709 2009-11-05 Bruno Haible <bruno@clisp.org>
1712 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1713 argv argument as non-NULL.
1714 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1716 2009-12-08 Ulrich Drepper <drepper@redhat.com>
1718 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1720 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1721 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1723 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1725 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1727 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1728 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1729 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1731 2009-11-30 Ulrich Drepper <drepper@redhat.com>
1733 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1734 SCHED_RESET_ON_FORK.
1736 2009-11-26 Ulrich Drepper <drepper@redhat.com>
1738 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1739 only used on truly ancient kernel if configuration requires a more
1742 2009-11-24 Ulrich Drepper <drepper@redhat.com>
1745 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1746 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1748 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1749 pass it on to __ptsname_internal.
1750 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
1751 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1752 All the code from __ptsname_r but take additional parameter. Use that
1753 instead of pointer to local stat64 variable.
1754 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1756 * include/stdlib.h: Declare __ptsname_internal.
1758 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1760 * sysdeps/unix/sysv/linux/grantpt.c: New file.
1761 * login/programs/pt_chown.c (main): Don't print message on errors
1762 when doing real work.
1764 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1767 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
1768 irel relocations split out from...
1769 (__libc_csu_init): ...here.
1770 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1772 2009-11-23 Andreas Schwab <schwab@redhat.com>
1774 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1775 for timestamps also if __USE_XOPEN2K8.
1776 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1777 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1778 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1779 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1781 2009-11-22 Ulrich Drepper <drepper@redhat.com>
1783 * nscd/connections.c (restart): Try harder to re-exec.
1785 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1787 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
1788 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1789 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1790 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1791 some placeholders. Redirect ntp_gettime to ntp_gettimex.
1792 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1794 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1796 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1798 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
1801 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1802 than software pipeline. Properly recover from shorter read.
1804 2009-11-19 Ulrich Drepper <drepper@redhat.com>
1807 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1808 initialized before using it.
1809 (_IO_putwc_unlocked): Likewise.
1812 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1813 in cast to not throw away const-ness of parameters.
1814 (__CPU_EQUAL_S): Likewise.
1815 (__CPU_OP_S): Likewise.
1817 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1818 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
1819 this gratuitous change and we have to keep compatibility.
1820 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1821 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1822 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1823 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1824 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1825 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1827 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1829 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1830 of parameters of sync_file_range.
1831 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1832 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1833 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1834 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1835 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1836 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1838 2009-11-16 Jakub Jelinek <jakub@redhat.com>
1840 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1841 Implement using sync_file_range2 syscall if __NR_sync_file_range2
1843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1846 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
1848 * posix/bug-regex30.c: New file.
1849 * posix/Makefile: Add rules to build and run bug-regex30.
1850 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1851 character lead bytes when there is a range in a COMPLEX_BRACKET.
1852 Reported by Oleg Bylatov.
1854 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1857 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1858 * locale/tst-duplocale.c: New file.
1859 * locale/Makefile (tests): Add tst-duplocale.
1862 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1863 Patch by Bruno Haible <bruno@clisp.org>.
1864 * locale/tst-locname.c: New file.
1865 * locale/Makefile (tests): Add tst-locname.
1868 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1869 constants from recent kernels.
1870 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1871 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1872 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1873 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1874 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1875 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1877 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
1880 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1883 2009-11-09 Mike Frysinger <vapier@gentoo.org>
1885 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1886 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1887 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1889 2009-11-06 Mike Frysinger <vapier@gentoo.org>
1891 * posix/bug-regex29.c: Include stdio.h.
1893 2009-11-14 Ulrich Drepper <drepper@redhat.com>
1896 * Versions.def: Define GLIBC_2.12 for libc.
1897 * manual/errno.texi: Add ERFKILL entry.
1898 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1900 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1901 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1903 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1904 F_GETOWN_EX definitions according to corrected kernel definitions.
1905 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1906 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1907 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1908 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1909 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1910 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1912 2009-11-12 Ulrich Drepper <drepper@redhat.com>
1914 * version.h: Bump for 2.12 development.
1916 2009-11-10 Andreas Schwab <schwab@redhat.com>
1918 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1919 out of buffer space.
1920 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1921 map_v4v6_hostent running out of space.
1923 2009-11-10 Ulrich Drepper <drepper@redhat.com>
1925 * string/bits/string3.h (memset): If the second parameter is constant
1926 and zero there is likely no transposition.
1927 Patch by Caolan McNamara <caolanm@redhat.com.
1929 2009-11-04 Philippe De Muyter <phdm@macqel.be>
1931 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1932 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1934 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
1936 * malloc/memusagestat.c (main): Fix spelling in an error message.
1938 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
1940 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1941 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1943 2009-11-03 Andreas Schwab <schwab@redhat.com>
1945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1948 2009-11-03 Jakub Jelinek <jakub@redhat.com>
1950 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1951 relocate opd entry when resolving prelink conflicts.
1953 2009-11-04 Jakub Jelinek <jakub@redhat.com>
1955 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1956 when -D_FILE_OFFSET_BITS=64.
1958 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1959 of last two arguments when -D_FILE_OFFSET_BITS=64.
1960 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1961 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1962 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1963 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1964 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1965 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1967 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
1970 * sysdeps/generic/libgcc_s.h: New file.
1971 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1973 2009-11-01 Ulrich Drepper <drepper@redhat.com>
1975 * malloc/hooks.c (free_check): Restore locking and call _int_free
1978 2009-10-30 Ulrich Drepper <drepper@redhat.com>
1980 * version.h (VERSION): Bump for 2.11 release.
1981 * include/features.h (__GLIBC_MINOR__): Bump to 11.
1983 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1985 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1987 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1989 * stdlib/tst-strtoll.c (tests): Likewise.
1992 * time/strftime_l.c (__strftime_internal): Allow %OC.
1994 * misc/mkostemps.c: New file.
1995 * misc/mkostemps64.c: New file.
1997 2009-10-30 Andreas Schwab <schwab@redhat.com>
1999 * locale/programs/locale-spec.c: Include <error.h> and
2002 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
2004 2009-10-28 Roland McGrath <roland@redhat.com>
2006 * Makefile (dist-prepare): New target.
2007 (tag-for-dist): Target removed.
2008 (glibc-%.tar): Pattern rule removed.
2009 (%.tar): New pattern rule, does simple use of git archive.
2010 (dist-version): Remove variable definition.
2011 (dist): Just depend on that. Add .tar.xz dependency.
2012 If dist-version variable not set on command line, depend on
2013 dist-prepare, re-invoke with dist-version set via git describe.
2015 * Makerules (%.xz): New pattern rule.
2017 2009-10-28 Alan Modra <amodra@bigpond.net.au>
2019 * elf/ifuncdep2.c: Include ifunc-sel.h.
2021 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
2022 * elf/ifuncmain1.c (global): Delete.
2023 * elf/ifuncmain1vis.c: Likewise.
2024 * elf/ifuncmain2.c: Likewise.
2025 * elf/ifuncmain5.c: Likewise.
2026 * elf/ifuncmod3.c: Likewise.
2027 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
2028 (foo_ifunc): Use ifunc_one.
2029 * elf/ifuncmain7.c: Likewise.
2030 * elf/ifuncmod1.c: Include ifunc-sel.h.
2031 (global): Define protected var.
2032 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
2033 * elf/ifuncmod5.c: Likewise.
2034 * sysdeps/generic/elf/ifunc-sel.h: New file.
2035 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
2037 2009-07-30 Alan Modra <amodra@bigpond.net.au>
2039 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
2040 (R_PPC_REL16*): Correct comments.
2041 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
2042 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
2043 R_PPC64_REL16_HA): Define.
2044 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
2045 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
2046 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
2047 Delete unused "reloc" param.
2048 (__process_machine_rela): Handle R_PPC_IRELATIVE.
2049 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
2050 Delete "reloc" param.
2051 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
2053 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
2054 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
2057 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
2060 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
2061 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
2062 UDP_ENCAP_L2TPINUDP.
2065 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
2066 parameter, specifying length of prefix.
2067 * stdio-common/tempname.c: Likewise.
2068 * include/stdio.h: Adjust prototypes.
2069 * libio/oldtmpfile.c: Adjust caller.
2070 * misc/mkdtemp.c: Likewise.
2071 * misc/mkostemp.c: Likewise.
2072 * misc/mkostemp64.c: Likewise.
2073 * misc/mkstemp.c: Likewise.
2074 * misc/mkstemp64.c: Likewise.
2075 * misc/mktemp.c: Likewise.
2076 * stdio-common/tempnam.c: Likewise.
2077 * stdio-common/tmpfile.c: Likewise.
2078 * stdio-common/tmpnam.c: Likewise.
2079 * stdio-common/tmpnam_r.c: Likewise.
2080 * misc/mkstemps.c: New file.
2081 * misc/mkstemps64.c: New file.
2082 * stdlib/stdlib.h: Add prototypes.
2083 * misc/Makefile (routines): Add mkstemps and mkstemps64.
2084 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
2086 2009-10-29 Ulrich Drepper <drepper@redhat.com>
2088 * locale/iso-639.def: Add sml entry.
2091 * resolv/res_send.c (send_dg): Initialize resplen.
2094 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
2095 definition to the kernel's.
2096 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2098 2009-08-18 Anders Johansson <ajohansson@novell.com>
2100 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
2101 offsets and record sizes in assert()s and response sending.
2102 * nscd/grpcache.c: Likewise.
2103 * nscd/hstcache.c: Likewise.
2104 * nscd/initgrcache.c: Likewise.
2105 * nscd/pwdcache.c: Likewise.
2107 2009-10-29 Ulrich Drepper <drepper@redhat.com>
2110 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
2111 /etc/hosts does not exist set errnop and herrnop appropriately.
2112 Patch by Steve Langasek <vorlon@debian.org>.
2115 * malloc/malloc.c (malloc_info): Fix typos in format strings.
2116 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
2119 * login/utmp_file.c (TIMEOUT): Increase to 10.
2122 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
2123 for file names in case the syscall is not available.
2124 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
2125 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
2126 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
2127 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
2128 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
2129 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
2130 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
2131 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
2132 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
2133 * sysdeps/unix/sysv/linux/openat.c: Likewise.
2134 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
2135 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
2136 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
2137 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
2138 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
2139 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
2140 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
2143 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
2144 creation filed, remove the request from the 'requests' list and signal
2145 the caller that the request is finished.
2148 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
2149 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
2152 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
2153 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
2156 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
2157 overflows the int return type.
2160 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
2161 have to compute maxsize_total, we have to update the variables, and
2162 the also_total handling must happen after the repair.
2165 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
2166 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
2168 2009-10-27 Andreas Schwab <schwab@redhat.com>
2170 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
2171 errno is always set when returning unsuccessfully.
2173 2009-10-29 Andreas Schwab <schwab@redhat.com>
2175 * malloc/memusage.c (update_data): Fix index wraparound handling
2176 so that buffer_cnt is actually reset.
2178 2009-10-29 Ulrich Drepper <drepper@redhat.com>
2181 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
2182 of the directory we look at into the static buffer if there is one
2183 at the start of the loop.
2186 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
2187 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
2190 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2191 __ASSUME_F_GETOWN_EX.
2192 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
2194 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2196 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
2198 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2199 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2200 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2201 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2202 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2203 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2206 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
2210 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
2211 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
2213 2009-10-24 Joseph Myers <joseph@codesourcery.com>
2215 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
2217 2009-10-27 Jakub Jelinek <jakub@redhat.com>
2220 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
2221 Reported by Ray Chason.
2223 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
2225 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2227 * sysdeps/x86_64/multiarch/strchr.S: New file.
2228 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
2229 * sysdeps/x86_64/multiarch/strrchr.S: New file.
2231 2009-10-21 Andreas Schwab <schwab@redhat.com>
2233 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
2235 2009-10-19 Andreas Schwab <schwab@redhat.com>
2237 * include/math.h: Add hidden protos for __exp/__expf/__expl.
2238 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
2239 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
2240 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
2241 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
2242 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
2243 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
2244 __ieee751_expl to handle overflow.
2246 2009-10-14 David S. Miller <davem@davemloft.net>
2248 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
2249 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
2251 2009-10-13 Andreas Schwab <schwab@redhat.com>
2253 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
2256 2009-10-08 Ulrich Drepper <drepper@redhat.com>
2259 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
2260 Patch in part by Steve Ward <planet36@gmail.com>.
2263 * stdlib/rand_r.c: Fix typo.
2265 * po/cs.po: Update from translation team.
2267 2009-10-06 Andreas Schwab <schwab@redhat.com>
2269 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
2270 returning if RTLD_NOLOAD.
2272 2009-10-06 Roland McGrath <roland@redhat.com>
2274 * sysdeps/x86_64/multiarch/strstr-c.c
2275 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
2277 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
2278 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
2280 * sysdeps/x86_64/multiarch/init-arch.h
2281 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
2282 (HAS_CPU_FEATURE): New macro.
2283 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
2284 * sysdeps/x86_64/multiarch/init-arch.c
2285 (__get_cpu_features): #undef it before definition.
2287 2009-10-05 Andreas Schwab <schwab@redhat.com>
2289 * locale/C-time.c: Revert week-1stday back to 19971130 and set
2290 first_weekday to 1 and first_workday to 2.
2292 2009-10-01 Ulrich Drepper <drepper@redhat.com>
2294 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
2296 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2297 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2298 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2299 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2300 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2301 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2303 2009-09-28 Andreas Schwab <schwab@redhat.com>
2305 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
2306 * stdio-common/vfprintf.c: Likewise.
2308 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2310 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
2311 (mkdirat): Call __directory_name_split_at instead of
2312 __directory_name_split.
2314 2009-09-28 Ulrich Drepper <drepper@redhat.com>
2316 * locale/programs/locale-spec.c (locale_special): If nothing matches
2317 fail with an appropriate message.
2319 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
2321 * configure.in: Exclude binutils 2.X. Support binutils 2.100
2324 2009-09-25 Andreas Schwab <schwab@redhat.com>
2326 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
2327 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
2329 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2331 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
2333 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
2335 * iconvdata/iso646.c (gconv_init): Correctly initialize the
2336 character size elements in step data.
2338 2009-09-20 Ulrich Drepper <drepper@redhat.com>
2340 * po/hu.po: Update from translation team.
2341 * po/vi.po: Likewise.
2343 2009-09-19 Roland McGrath <roland@redhat.com>
2345 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
2347 2009-09-15 Roland McGrath <roland@redhat.com>
2349 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
2350 * nptl/sysdeps/pthread/configure: Regenerated.
2351 * nptl/sysdeps/x86_64/configure: Regenerated.
2352 * sysdeps/unix/sysv/linux/configure: Regenerated.
2353 * sysdeps/x86_64/elf/configure: Regenerated.
2355 * Makefile (autoconf-it): Set execute bit only on top-level configure.
2357 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
2358 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
2359 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
2360 * configure: Regenerated.
2362 2009-09-09 Ulrich Drepper <drepper@redhat.com>
2364 * posix/getconf.c (main): Handle -- on command line.
2366 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
2368 * configure.in: Support binutils 2.100 and 3.0.
2370 2009-09-08 Jakub Jelinek <jakub@redhat.com>
2372 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
2373 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
2374 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
2375 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
2377 2009-09-07 Ulrich Drepper <drepper@redhat.com>
2379 * locale/programs/ld-collate.c (struct locale_collate_t): Add
2380 unnamed_section_defined field.
2381 (collate_read): Test and set unnamed_section_defined.
2383 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
2386 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
2388 * configure.in: Support binutils 2.20.
2390 2009-09-03 Ulrich Drepper <drepper@redhat.com>
2392 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
2393 __strstr_ia32): Add attribute_hidden.
2395 2009-09-01 Andreas Schwab <schwab@redhat.com>
2397 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
2398 parsing of group entry.
2400 2009-09-02 Andreas Schwab <schwab@redhat.com>
2402 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
2403 external buffer. Always discard readahead in internal buffer.
2404 * libio/Makefile (tests): Add bug-wsetpos.
2405 * libio/bug-wsetpos.c: New file.
2407 2009-09-02 Jakub Jelinek <jakub@redhat.com>
2409 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
2410 Add attribute_hidden.
2411 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
2412 __strcasestr_sse2): Likewise.
2413 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
2414 (__fma_fma): Make static.
2415 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
2416 (__fmaf_fma): Make static.
2418 2009-08-31 Andreas Schwab <schwab@redhat.com>
2420 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
2421 reformulate in-buffer optimisation check to match code in
2422 _IO_new_file_seekoff.
2424 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
2426 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
2427 to srwi in 32-bit memcpy for power6.
2429 2009-09-01 Andreas Schwab <schwab@redhat.com>
2431 * include/stdio.h: Declare hidden proto for fflush.
2432 * libio/iofflush.c: Add hidden weak alias for fflush.
2434 2009-09-01 Jakub Jelinek <jakub@redhat.com>
2436 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
2437 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
2439 2009-08-31 Andreas Schwab <schwab@redhat.com>
2441 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
2443 2009-08-31 Ulrich Drepper <drepper@redhat.com>
2446 * malloc/malloc.c: Add local assert definition to avoid problems with
2447 memory allocation in the real one.
2449 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
2451 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
2453 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
2454 turn off SSSE3 on Atom.
2456 2009-08-28 Ulrich Drepper <drepper@redhat.com>
2458 * stdlib/tst-strtol.c (tests): More tests.
2459 * stdlib/tst-strtoll.c (tests): Likewise.
2461 2009-08-26 Ulrich Drepper <drepper@redhat.com>
2463 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
2465 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
2467 2009-08-25 Ulrich Drepper <drepper@redhat.com>
2469 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
2470 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
2472 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
2474 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
2476 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
2478 2009-08-25 Joseph Myers <joseph@codesourcery.com>
2480 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
2482 2009-08-25 Ulrich Drepper <drepper@redhat.com>
2484 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
2485 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
2487 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
2489 * sysdeps/x86_64/fpu/s_signbit.S: New file.
2490 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
2492 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
2493 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
2495 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
2496 leftover YMM_SIZE definition.
2498 2009-08-24 Ulrich Drepper <drepper@redhat.com>
2500 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
2502 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
2503 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
2505 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2507 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2508 and SET_FLOAT_WORD definitions.
2510 2009-08-24 Roland McGrath <roland@redhat.com>
2512 * sysdeps/unix/syscall-template.S: New file.
2513 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2514 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2515 (compile-syscall): Pass mkdep and -g options as normal.
2516 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2517 (common-generated): Don't add them here.
2519 2009-08-24 Ulrich Drepper <drepper@redhat.com>
2521 * math/s_fdim.c: In case of overflows set errno.
2522 * math/s_fdimf.c: Likewise.
2523 * math/s_fdiml.c: Likewise.
2525 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2526 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2527 are using the inline optimizations.
2529 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2530 (__signbitf): Likewise.
2532 2009-08-23 Ulrich Drepper <drepper@redhat.com>
2534 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2536 * posix/Makefile (tests): Add bug-regex29.
2537 * posix/bug-regex29.c: New file.
2539 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2540 older POSIX versions are selected.
2542 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2544 * stdio-common/printf_fphex.c: Likewise.
2545 * stdio-common/tstdiomisc.c: Add more tests.
2547 * locale/locale.h: Include xlocale.h and the thread-local locale
2548 declarations for XPG7, not XPG6.
2550 2009-08-21 Andreas Schwab <schwab@redhat.com>
2552 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2553 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2556 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2557 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2559 2009-08-20 Roland McGrath <roland@redhat.com>
2561 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2562 Use l_addr instead of l_map_start (dli_fbase).
2563 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2564 address when there is no proximate symbol.
2565 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2568 2009-08-16 Ulrich Drepper <drepper@redhat.com>
2570 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2572 2009-08-14 Ulrich Drepper <drepper@redhat.com>
2574 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2575 Also handle SIGINT. In that case only do the cleanup and then
2576 re-raise the signal.
2577 (main): Install handler for SIGINT.
2579 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2581 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2584 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
2586 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2587 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2589 (tests): Add tst-audit6 tst-audit7.
2590 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2591 tst-auditmod7a tst-auditmod7b.
2592 ($(objpfx)tst-audit6): New.
2593 ($(objpfx)tst-audit6.out): Likewise.
2594 ($(objpfx)tst-audit7): Likewise.
2595 ($(objpfx)tst-audit7.out): Likewise.
2596 (tst-audit6-ENV): Likewise.
2597 (tst-audit7-ENV): Likewise.
2598 (CFLAGS-tst-auditmod6b.c): Likewise.
2599 (CFLAGS-tst-auditmod6c.c): Likewise.
2600 (CFLAGS-tst-auditmod7b.c): Likewise.
2601 * elf/tst-audit6.c: New file.
2602 * elf/tst-audit7.c: New file.
2603 * elf/tst-auditmod6a.c: New file.
2604 * elf/tst-auditmod6b.c: New file.
2605 * elf/tst-auditmod6c.c: New file.
2606 * elf/tst-auditmod7a.c: New file.
2607 * elf/tst-auditmod7b.c: New file.
2608 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2609 saving and restoring SSE/AVX registers to ...
2610 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2612 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
2614 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2615 only if SHARED is defined.
2616 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2618 2009-08-03 Jim Meyering <meyering@redhat.com>
2620 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2622 2009-08-08 Ulrich Drepper <drepper@redhat.com>
2624 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2625 section as the other functions for this architecture.
2626 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2628 2009-08-07 Ulrich Drepper <drepper@redhat.com>
2630 * sysdeps/x86_64/strcmp.S: Add support to compile with
2631 USE_SSSE3. In this case palignr is used.
2632 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2633 available but SSSE3 is, pick __str{,n}cmp_ssse3.
2634 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2635 Add strcmp-ssse3 and strncmp-ssse3.
2636 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2637 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2639 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2640 warning through fake initialization.
2642 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
2644 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2646 2009-08-07 Andreas Schwab <schwab@redhat.com>
2648 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2651 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
2653 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2654 EBX from EAX = 1. Handle EAX = 11.
2656 2009-08-07 Andreas Schwab <schwab@redhat.com>
2658 * Makefile (TAGS): Use separate sed -e expressions to avoid \
2661 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
2663 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2664 hidden IFUNC functions.
2665 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2667 * sysdeps/i386/i686/multiarch/strlen.S: New file.
2669 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2670 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2672 (CFLAGS-strcspn-c.c): Define.
2673 (CFLAGS-strpbrk-c.c): Define.
2674 (CFLAGS-strspn-c.c): Define.
2675 (CFLAGS-strstr.c): Define.
2676 (CFLAGS-strcasestr.c): Define.
2677 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2678 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2679 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2680 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2681 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2682 * sysdeps/i386/i686/multiarch/strspn.S: New file.
2683 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2684 * sysdeps/i386/i686/multiarch/strstr.c: New file.
2685 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2686 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2687 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2688 -16L instead of 0xfffffffffffffff0L.
2689 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2691 2009-08-02 Ulrich Drepper <drepper@redhat.com>
2693 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2695 2009-07-31 Ulrich Drepper <drepper@redhat.com>
2697 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2698 another rewrite. Much smaller and faster.
2699 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2701 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2702 ss_flags from the correct location.
2704 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
2706 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2707 * sysdeps/i386/i686/cacheinfo.c: New file.
2708 * sysdeps/i386/i686/multiarch/Makefile: New file.
2709 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2710 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2711 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2712 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2713 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2714 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2715 (__cpuid_count): New. Provide the default.
2716 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2717 (__x86_64_preferred_memory_instruction): Define only if
2718 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2719 (intel_check_word): Use __cpuid.
2720 (handle_intel): Likewise.
2721 (handle_amd): Likewise.
2722 (__cache_sysconf): Likewise.
2723 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
2724 (__cache_sysconf): Likewise.
2725 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
2726 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2727 (get_common_indeces): Use __cpuid.
2728 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
2729 if ENABLE_SSSE3_ON_ATOM is not defined.
2730 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2731 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2732 popcnt instead of popcntq.
2734 2009-07-31 Jakub Jelinek <jakub@redhat.com>
2736 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2738 2009-07-30 Ulrich Drepper <drepper@redhat.com>
2740 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2741 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
2742 which always causes a compile error.
2744 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2746 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
2748 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
2749 which always causes a compile error.
2751 * debug/Makefile (tests): Add tst-longjmp_chk2.
2752 * debug/tst-longjmp_chk2.c: New file.
2754 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
2755 Remove incorrect use of BP_SYM.
2756 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
2757 here now since it is more complex than just a simple check.
2759 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2760 we make no more progress.
2762 2009-07-29 Ulrich Drepper <drepper@redhat.com>
2764 * math/s_fma.c: Don't define alias if __fma is a macro.
2765 * math/s_fmaf.c: Likewise.
2766 * sysdeps/x86_64/multiarch/s_fma.c: New file.
2767 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2768 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2770 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2771 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2773 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2775 * include/libc-symbols.h (libm_ifunc): Define.
2776 * sysdeps/x86_64/multiarch/Versions: New file.
2778 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2780 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
2782 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2784 2009-07-29 Ulrich Drepper <drepper@redhat.com>
2786 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2787 call that registers used in calling conventions need to be preserved.
2788 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2789 to preserve register content if necessary.
2790 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2791 (_dl_x86_64_restore_sse): New function.
2792 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2793 is allowed to modify xmm/ymm registers.
2795 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
2796 application's perspective.
2797 * stdio-common/scanf17.c: Likewise.
2799 2009-07-28 Ulrich Drepper <drepper@redhat.com>
2801 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2803 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2805 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2806 two steps to catch bugs.
2808 2009-07-27 Ulrich Drepper <drepper@redhat.com>
2810 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
2811 determines which files are used in runtime lookups and only checks
2813 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
2815 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2816 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2817 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2820 * elf/dl-open.c: Move _dl_scope_free to...
2821 * elf/dl-scope.c: ...here. New file.
2822 * elf/Makefile (dl-routines): Add scope.
2824 * resolv/resolv.h (RES_USE_DNSSEC): Define.
2825 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2827 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2828 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2829 all the places we handled RES_USE_EDNS0 only before.
2830 Patch by Adam Tkac <atkac@redhat.com>.
2832 2009-07-27 Jakub Jelinek <jakub@redhat.com>
2834 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2835 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
2836 Update size when reallocating.
2838 2009-07-26 Ulrich Drepper <drepper@redhat.com>
2840 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
2841 functions used in ld.so modify xmm/ymm registers.
2842 * sysdeps/x86_64/Makefile: Hook new test up.
2843 * sysdeps/x86_64/rtld-memchr.c: New file.
2844 * sysdeps/x86_64/rtld-memcmp.c: New file.
2845 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2846 * sysdeps/x86_64/rtld-strchr.S: New file.
2847 * sysdeps/x86_64/rtld-strlen.S: New file.
2848 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2849 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2851 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
2853 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2855 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2863 (next_8_bytes): Likewise.
2864 (Byte0): Remove commented out codes.
2865 (unaligned_table): Align jump table at 8 bytes.
2866 Add _sse4_2 to all labels. Always include "../strcmp.S".
2867 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2868 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2869 * sysdeps/x86_64/strncmp.S: New file.
2871 2009-07-26 Ulrich Drepper <drepper@redhat.com>
2874 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2875 kernels, dropped when eventfd2 support was added.
2876 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2877 kernels, dropped when signalfd4 support was added.
2878 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2882 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2885 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2887 2009-07-25 Ulrich Drepper <drepper@redhat.com>
2889 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2890 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
2893 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2894 callback we must touch the status to avoid using stale value.
2896 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2899 2009-07-24 Ulrich Drepper <drepper@redhat.com>
2901 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2902 /lib/modules/* headers anymore. We have sane headers in the standard
2905 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2907 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2908 "etf3enh" and "highgprs" added.
2909 (_dl_s390_platforms): "z10" added.
2910 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2911 Increased for the new entries.
2912 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2913 HWCAP_S390_HIGH_GPRS added.
2915 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2916 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2917 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2918 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2919 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2921 2009-07-23 Ulrich Drepper <drepper@redhat.com>
2923 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2924 avoid additional cpuid instructions. Most of the information is
2927 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2929 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2931 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2932 SSSE3 bit for Atoms.
2933 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2936 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2937 structure before copying it to avoid warning.
2938 * posix/tst-rfc3484-2.c (do_test): Likewise.
2939 * posix/tst-rfc3484-3.c (do_test): Likewise.
2942 * include/unistd.h: Make header file suitable for C++ test cases.
2943 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2945 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2946 stack alignment in the exit code.
2948 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2949 potentially be zero.
2951 * elf/tst-unique1.c: Extend test to check for unloading DSO with
2952 unique symbol definition.
2953 Patch by Jakub Jelinek.
2954 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2955 make sure the object with the definition cannot be unloaded. Adjust
2957 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2958 the unique symbol hash table should not be const.
2960 2009-07-22 Jakub Jelinek <jakub@redhat.com>
2962 * Makeconfig (ASFLAGS): Append $(sysdep-ASFLAGS).
2963 * sysdeps/i386/Makefile (sysdep-ASFLAGS): Add -U__i686.
2965 2009-07-21 Ulrich Drepper <drepper@redhat.com>
2967 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
2968 unnecesary variables. Comment fixes.
2970 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2972 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2973 Use NONASCII_CASE information provided by the locale to determine
2974 whether optimized string load function can be used. Minor cleanups.
2976 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
2978 * string/strcasestr.c (STRCASESTR): New macro.
2979 (__strcasestr): Renamed to ..
2980 (STRCASESTR): ...this.
2981 * string/strstr.c (STRSTR): New macro.
2982 (strstr): Renamed to ..
2984 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2985 strstr-c strcasestr-c
2986 (CFLAGS-strstr.c): New.
2987 (CFLAGS-strcasestr.c): Likewise.
2988 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2989 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2990 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2991 * sysdeps/x86_64/multiarch/strstr.c: New file.
2993 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2995 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2996 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2997 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2998 _NL_CTYPE_NONASCII_CASE.
2999 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
3001 (ctype_finish): Check whether there are any 8-bit characters outside
3002 the range ASCII has or whether the mapping isn't the same as for
3003 ASCII (±0x20). Set nonascii_case appropriately.
3004 (ctype_output): Add output handler for nonascii_case.
3006 2009-07-17 Ulrich Drepper <drepper@redhat.com>
3008 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
3009 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
3011 2009-07-16 Ulrich Drepper <drepper@redhat.com>
3014 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
3015 0xffff in the EDNS0 record.
3017 2009-07-16 Ulrich Drepper <drepper@redhat.com>
3019 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
3020 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
3021 is written before the list head update.
3022 Patch by Andreas Schwab <aschwab@redhat.com>.
3024 2009-07-16 Ulrich Drepper <drepper@redhat.com>
3025 Jakub Jelinek <jakub@redhat.com>
3027 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
3028 corruption thread-safe.
3030 2009-07-13 Jakub Jelinek <jakub@redhat.com>
3032 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
3033 overrides atomic_compare_and_exchange_val_rel, define to
3034 atomic_compare_and_exchange_val_rel by default, otherwise default
3035 to catomic_compare_and_exchange_val_acq.
3036 (catomic_compare_and_exchange_bool_rel): If arch overrides
3037 atomic_compare_and_exchange_bool_rel, define to
3038 atomic_compare_and_exchange_bool_rel by default.
3039 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
3040 Use catomic_compare_and_exchange_val_rel instead of
3041 catomic_compare_and_exchange_val_acq.
3043 2009-07-16 Ulrich Drepper <drepper@redhat.com>
3045 * sysdeps/generic/ldsodefs.h: Add prototype for
3046 _dl_higher_prime_number.
3047 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
3049 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
3050 restoring of ymm registers a bit.
3052 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
3054 * sysdeps/x86_64/memcmp.S: New file.
3056 2009-07-15 Ulrich Drepper <drepper@redhat.com>
3058 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
3059 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
3060 pointers in writable memory.
3062 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
3064 * config.h.in: Add HAVE_AVX_SUPPORT entry.
3065 * config.make.in: Add config-cflags-avx entry.
3066 * configure.in: Substitute libc_cv_cc_avx.
3067 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
3068 * elf/tst-audit4.c: New file.
3069 * elf/tst-audit5.c: New file.
3070 * elf/tst-auditmod4a.c: New file.
3071 * elf/tst-auditmod4b.c: New file.
3072 * elf/tst-auditmod5a.c: New file.
3073 * elf/tst-auditmod5b.c: New file.
3074 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
3076 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
3077 (La_x86_64_vector): Likewise.
3078 (La_x86_64_regs): Append lr_vector.
3079 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
3080 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
3081 saving and restoring SSE registers to ...
3082 * sysdeps/x86_64/dl-trampoline.h: This. New file.
3083 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
3085 (_dl_runtime_profile): Use LR_SIZE to allocate space for
3086 La_x86_64_regs. Allocate extra space and jump to memory at
3087 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
3088 (save_and_restore_vector_sse): New.
3089 (save_and_restore_vector_avx): Likewise.
3090 (check_avx): Likewise.
3091 (save_and_restore_vector): Likewise.
3092 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
3094 * sysdeps/x86_64/link-defines.sym: New file.
3096 2009-07-10 Ulrich Drepper <drepper@redhat.com>
3098 * elf/do-lookup.h: Removed after folding content into...
3099 * elf/dl-lookup.c: ...here.
3101 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
3103 2009-07-09 Ulrich Drepper <drepper@redhat.com>
3105 * configure.in: Check for gnu_unique_symbol symbol type.
3106 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
3107 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
3108 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
3109 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
3111 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
3112 unique symbol table.
3113 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
3114 for first namespace.
3115 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
3116 unique symbol hash table.
3117 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
3118 * elf/tst-unique1.c: New file.
3119 * elf/tst-unique1mod1.c: New file.
3120 * elf/tst-unique1mod2.c: New file.
3121 * elf/tst-unique2.c: New file.
3122 * elf/tst-unique2mod1.c: New file.
3123 * elf/tst-unique2mod2.c: New file.
3125 2009-07-07 Ulrich Drepper <drepper@redhat.com>
3127 * elf/elf.h (STB_GNU_UNIQUE): Define.
3129 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
3131 * include/inline-hashtab.h: ...here.
3132 (htab_expand): Adjust for renamed function. Correct memory handling.
3134 2009-07-06 Ulrich Drepper <drepper@redhat.com>
3136 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
3138 2009-07-03 Andreas Schwab <aschwab@redhat.com>
3140 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
3141 (PPC_FEATURE_HAS_VSX): Likewise.
3143 2009-07-03 Ulrich Drepper <drepper@redhat.com>
3145 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
3146 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
3148 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
3149 aligned to 16 byte boundaries.
3150 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
3151 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
3152 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
3154 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
3156 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
3157 * config.make.in (config-cflags-sse4): New variable.
3158 * configure.in: Substitute libc_cv_cc_sse4.
3159 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
3161 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3162 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
3163 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
3164 * sysdeps/x86_64/multiarch/strcspn.S: New file.
3165 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
3166 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
3167 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
3168 * sysdeps/x86_64/multiarch/strspn.S: New file.
3170 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
3172 * elf/Makefile (distribute): Remove tst-audit.sh. Add
3173 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
3174 (tests): Add tst-audit3 for x86_64.
3175 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
3176 ($(objpfx)tst-audit3): Define.
3177 ($(objpfx)tst-audit3.out): Define.
3178 (tst-audit3-ENV): Define.
3179 * elf/tst-audit3.c: New file.
3180 * elf/tst-auditmod3a.c: New file.
3181 * elf/tst-auditmod3b.c: New file.
3182 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
3185 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
3186 (__stpncpy): Renamed to ...
3188 (stpncpy): Create alias only if STPNCPY is not defined.
3189 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
3191 (strncpy): Renamed to ...
3193 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3194 stpncpy-c strncpy-c for string.
3195 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
3196 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
3197 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
3198 * sysdeps/x86_64/multiarch/strcpy.S: New file.
3199 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
3200 * sysdeps/x86_64/multiarch/strncpy.S: New file.
3202 2009-07-02 Ulrich Drepper <drepper@redhat.com>
3204 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
3205 adding to fast bin list.
3207 2009-07-01 Ulrich Drepper <drepper@redhat.com>
3209 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
3210 inet_makeaddr. This worked only with class-based networks.
3211 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
3214 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
3215 recognize all types.
3216 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
3217 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
3218 be in host byte order.
3220 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
3222 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
3223 (MODEL_OFFSET): Define.
3224 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
3226 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
3227 out common code into new function get_common_indeces. Determine
3228 extended family and model for Intel processors.
3230 2009-06-26 Andreas Schwab <aschwab@redhat.com>
3232 * timezone/zic.c (stringzone): Don't try to generate a POSIX TZ
3233 string when the timezone ends in DST.
3235 2009-06-26 Ulrich Drepper <drepper@redhat.com>
3237 * resolv/resolv.h: Define RES_SNGLKUPREOP.
3238 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
3240 * resolv/res_send.c (reopen): New function. Broken out of...
3241 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
3242 fallback mechanism. If single-request fails switch to
3243 single-request-reopen mode which opens a new socket for the second
3246 2009-06-25 Andreas Schwab <aschwab@redhat.com>
3248 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
3251 2009-06-24 Andreas Schwab <aschwab@redhat.com>
3253 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
3254 for saved registers.
3255 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3256 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3257 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3259 2009-06-23 Andreas Schwab <aschwab@redhat.com>
3261 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
3263 2009-06-22 Ulrich Drepper <drepper@redhat.com>
3265 * po/id.po: Update from translation team.
3267 * po/bg.po: Update from translation team.
3269 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
3271 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
3273 (strncmp): Renamed to STRNCMP.
3274 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3275 strncmp-c for string.
3276 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
3277 * sysdeps/x86_64/multiarch/strcmp.S: New file.
3278 * sysdeps/x86_64/multiarch/strncmp.S: New file.
3279 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
3281 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
3283 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
3284 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
3285 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
3286 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
3287 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
3289 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
3290 ifuncmain7static, and ifuncmain7picstatic.
3291 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
3292 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
3293 $(objpfx)ifuncmain7pie.out.
3294 (modules-names): Add ifuncmod5 ifuncmod6
3295 (ifuncmod5.so-no-z-defs): Define.
3296 (ifuncmod6.so-no-z-defs): Define.
3297 (CFLAGS-ifuncmain5pic.c): Define.
3298 (CFLAGS-ifuncmain5picstatic.c): Define.
3299 (CFLAGS-ifuncmain5staticpic.c): Define.
3300 (CFLAGS-ifuncdep5pic.c): Define.
3301 (CFLAGS-ifuncmain7pic.c): Define.
3302 (CFLAGS-ifuncmain7picstatic.c): Define.
3303 (CFLAGS-ifuncmain1staticpie.c): Define.
3304 (CFLAGS-ifuncmain5pie.c): Define.
3305 (CFLAGS-ifuncmain6pie.c): Define.
3306 (CFLAGS-ifuncmain7pie.c): Define.
3307 ($(objpfx)ifuncmain1staticpie.out): Define.
3308 ($(objpfx)ifuncmain1staticpie): Define.
3309 ($(objpfx)ifuncmain5pie.out): Define.
3310 ($(objpfx)ifuncmain5pie): Define.
3311 ($(objpfx)ifuncmain6pie.out): Define.
3312 ($(objpfx)ifuncmain6pie): Define.
3313 ($(objpfx)ifuncmain5): Define.
3314 ($(objpfx)ifuncmain5pic): Define.
3315 ($(objpfx)ifuncmain5static): Define.
3316 ($(objpfx)ifuncmain5staticpic): Define.
3317 ($(objpfx)ifuncmain5picstatic): Define.
3318 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
3319 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
3321 * elf/b/elf/ifuncmain1staticpie.c: New file.
3322 * elf/ifuncdep5.c: New file.
3323 * elf/ifuncdep5pic.c: New file.
3324 * elf/ifuncmain5.c: New file.
3325 * elf/ifuncmain5pic.c: New file.
3326 * elf/ifuncmain5picstatic.c: New file.
3327 * elf/ifuncmain5pie.c: New file.
3328 * elf/ifuncmain5static.c: New file.
3329 * elf/ifuncmain5staticpic.c: New file.
3330 * elf/ifuncmain6pie.c: New file.
3331 * elf/ifuncmain7.c: New file.
3332 * elf/ifuncmain7pic.c: New file.
3333 * elf/ifuncmain7picstatic.c: New file.
3334 * elf/ifuncmain7pie.c: New file.
3335 * elf/ifuncmain7static.c: New file.
3336 * elf/ifuncmod5.c: New file.
3337 * elf/ifuncmod6.c: New file.
3339 2009-06-20 Ulrich Drepper <drepper@redhat.com>
3342 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
3343 (nss_endgrent): New variable.
3344 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
3345 fields. Change type of files to bool and adjust all users.
3346 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
3347 (internal_endgrent): Call nss_endgrent if necessary.
3348 (add_group): New function. Broken out of...
3349 (check_and_add_group): ...here.
3350 (getgrent_next_nss): Remove test that any callback is available.
3351 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
3352 callback. If there is no blacklist we can trust the results returned
3353 by the initgroups_dyn callback. In case there is a callback and we
3354 find a group entry for the group ID but it doesn't contain the
3355 correct member, switch to the slow mode and use getgrent_r.
3356 (internal_getgrent_r): When we see a +: entry, determine whether
3357 there is any callback and which we can use the initgroups_dyn
3360 2009-06-18 Ulrich Drepper <drepper@redhat.com>
3362 * malloc/malloc.c (_int_malloc): Add some consistency checks.
3363 (_int_free): Likewise.
3365 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
3367 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3368 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
3369 and ARPHRD_IEEE802154_PHY.
3371 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
3372 relative to generic Linux version.
3374 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
3376 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
3377 ($(objpfx)ifuncmain1vispie): Likewise.
3379 2009-06-16 Ulrich Drepper <drepper@redhat.com>
3381 * login/Makefile: Build pt_chown as PIE.
3383 2009-06-15 Andreas Schwab <aschwab@redhat.com>
3385 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
3387 * elf/sln.c (usage): Likewise.
3388 * malloc/memusage.sh (do_help): Likewise.
3389 * nss/getent.c (more_help): Likewise.
3390 * posix/getconf.c (main): Likewise.
3391 * sunrpc/rpcinfo.c (usage): Likewise.
3392 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3394 2009-06-16 Ulrich Drepper <drepper@redhat.com>
3396 * login/programs/pt_chown.c: Use libcap to drop privileges other than
3398 * login/Makefile: If necessary link pt_chown with -lcap.
3399 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
3400 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
3402 2009-06-16 Jakub Jelinek <jakub@redhat.com>
3404 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
3406 * string/test-memchr.c (do_random_tests): Test very large lengths
3409 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
3411 * Makeconfig (+link-pie): Define.
3412 (+prectorS): Define.
3413 (+postctorS): Define.
3414 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
3415 * nscd/Makefile ($(objpfx)nscd): Likewise.
3417 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
3420 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
3422 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3424 2009-06-16 Ulrich Drepper <drepper@redhat.com>
3426 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
3428 * sysdeps/unix/grantpt.c: ...here.
3430 2009-06-15 Ulrich Drepper <drepper@redhat.com>
3432 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
3433 chmod if it is necessary.
3436 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
3437 when the slave device is in devpts or devfs.
3440 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
3443 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
3444 of nd_opt_home_agent_info_preference to uint16_t.
3445 Patch by Arnaud Ebalard <arno@natisbad.org>.
3448 * nss/getent.c: Add support for printing gshadow data.
3451 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
3452 not just the currently used one and those which follow.
3453 Patch by Joe Landers <jlanders@vmware.com>.
3456 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
3457 * libio/Makefile: Run tst-fgetwc with necessary envvar.
3458 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
3461 * stdlib/abort.c: Define variable __abort_msg.
3462 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
3463 * include/stdlib.h: Declare __abort_msg.
3464 * assert/assert-perr.c: Don't free buffer for message immediately.
3465 Store atomically in __abort_msg and free old buffer if necessary.
3466 * assert/assert.c: Likewise.
3467 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
3468 store pointer in __abort_msg, and possibly free old string.
3469 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
3471 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
3474 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
3475 handle leap seconds if they are available.
3476 Patch by Akinori Hattori <hattya@gentoo.org>.
3478 * timezone/tzselect.ksh: Update from tzcode2009i.
3479 * timezone/zdump.c: Likewise.
3480 * timezone/zic.c: Likewise.
3482 * timezone/africa: Update from tzdata2009i.
3483 * timezone/antarctica: Likewise.
3484 * timezone/asia: Likewise.
3485 * timezone/australasia: Likewise.
3486 * timezone/backward: Likewise.
3487 * timezone/etcetera: Likewise.
3488 * timezone/europe: Likewise.
3489 * timezone/factory: Likewise.
3490 * timezone/iso3166.tab: Likewise.
3491 * timezone/leapseconds: Likewise.
3492 * timezone/northamerica: Likewise.
3493 * timezone/pacificnew: Likewise.
3494 * timezone/solar87: Likewise.
3495 * timezone/solar88: Likewise.
3496 * timezone/solar89: Likewise.
3497 * timezone/southamerica: Likewise.
3498 * timezone/systemv: Likewise.
3499 * timezone/yearistype: Likewise.
3500 * timezone/zone.tab: Likewise.
3502 2009-06-15 Jakub Jelinek <jakub@redhat.com>
3504 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
3505 STT_GNU_IFUNC symbol or in 8 into type_class.
3507 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
3508 instead of Elf64_Addr.
3510 2009-06-14 Ulrich Drepper <drepper@redhat.com>
3512 * po/sv.po: Update from translation team.
3515 * misc/sys/select.h (__NFDBITS): Expression should have type int.
3516 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3517 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
3520 2009-06-12 Ulrich Drepper <drepper@redhat.com>
3522 * Versions.def: Add GLIBC_2.11 for libpthread.
3524 2009-06-11 Ulrich Drepper <drepper@redhat.com>
3526 * resolv/res_send.c (send_dg): Remember we switched to
3527 single-request mode.
3529 2009-06-09 Ulrich Drepper <drepper@redhat.com>
3531 * dlfcn/dlfcn.h: Remove comma at end of enum.
3532 Patch by J.H.M. Dassen <rdassen@redhat.com>.
3534 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3535 parsing mode string.
3537 2009-06-05 Ulrich Drepper <drepper@redhat.com>
3539 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3541 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3543 * sysdeps/x86_64/multiarch/strlen.S: New file.
3544 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3545 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3546 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3549 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3552 2009-06-04 Ulrich Drepper <drepper@redhat.com>
3554 * sysdeps/x86_64/strlen.S: Minor optimizations.
3556 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
3558 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3559 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3560 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3561 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3562 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3563 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3564 ifuncmain3.c, ifuncmod3.c,.
3565 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3566 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3567 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3568 ifuncmain4picstatic.
3569 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3570 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3571 ifuncmain3, ifuncmain4.
3572 (tests): Depend on $(objpfx)ifuncmain1pie.out and
3573 $(objpfx)ifuncmain1vispie.out.
3574 (modules-names): Add ifuncmod1 ifuncmod3.
3575 (generated): Add ifuncmain1pie ifuncmain1pie.out
3576 ifuncmain1vispie ifuncmain1vispie.out.
3577 Define rules to build and run the tests.
3578 * elf/ifuncdep1.c: New file.
3579 * elf/ifuncdep1pic.c: New file.
3580 * elf/ifuncdep2.c: New file.
3581 * elf/ifuncdep2pic.c: New file.
3582 * elf/ifuncmain1.c: New file.
3583 * elf/ifuncmain1pic.c: New file.
3584 * elf/ifuncmain1picstatic.c: New file.
3585 * elf/ifuncmain1pie.c: New file.
3586 * elf/ifuncmain1static.c: New file.
3587 * elf/ifuncmain1staticpic.c: New file.
3588 * elf/ifuncmain1vis.c: New file..
3589 * elf/ifuncmain1vispic.c: New file..
3590 * elf/ifuncmain1vispie.c: New file.
3591 * elf/ifuncmain2.c: New file.
3592 * elf/ifuncmain2pic.c: New file.
3593 * elf/ifuncmain2picstatic.c: New file.
3594 * elf/ifuncmain2static.c: New file.
3595 * elf/ifuncmain3.c: New file.
3596 * elf/ifuncmain4.c: New file.
3597 * elf/ifuncmain4picstatic.c: New file.
3598 * elf/ifuncmain4static.c: New file.
3599 * elf/ifuncmod1.c: New file.
3600 * elf/ifuncmod3.c: New file.
3602 2009-06-03 Ulrich Drepper <drepper@redhat.com>
3604 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3606 2009-06-02 Ulrich Drepper <drepper@redhat.com>
3609 * posix/Makefile (routines): Add execvpe.
3610 * posix/Versions: Export execvpe for GLIBC_2.11.
3611 * posix/execvp.c: Now only a wrapper. Move code to...
3612 * posix/execvpe.c: ...here. New file.
3613 * posix/unistd.h: Declare execvpe.
3615 2009-06-01 Ulrich Drepper <drepper@redhat.com>
3617 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3618 for STT_GNU_IFUNC handling for efficiency.
3619 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3621 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3623 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3625 2009-05-31 Ulrich Drepper <drepper@redhat.com>
3627 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3630 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
3632 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3634 (__rela_iplt_start): New declaration.
3635 (__rela_iplt_end): Likewise.
3636 (__rel_iplt_start): Likewise.
3637 (__rel_iplt_end): Likewise.
3638 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3639 * elf/elf.h (R_386_IRELATIVE): New macro.
3640 (R_X86_64_IRELATIVE): New macro.
3641 (R_386_NUM): Updated.
3642 (R_X86_64_NUM): Likewise.
3643 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3644 (libc_ifunc_hidden_def): New macro.
3645 * sysdeps/generic/dl-irel.h: New file.
3646 * sysdeps/i386/dl-irel.h: New file.
3647 * sysdeps/x86_64/dl-irel.h: New file.
3648 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3649 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3650 Handle R_386_IRELATIVE.
3651 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3652 (elf_machine_lazy_rela): Likewise.
3653 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3655 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3657 2009-05-31 Ulrich Drepper <drepper@redhat.com>
3659 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3660 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
3661 are no differences. If an architecture has bits in CPUID index 1
3662 meaning different things the values for the COMMON_CPUID_INDEX_1
3663 index must not be set.
3664 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3665 (HAS_POPCOUNT): ...this. New macro.
3666 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3667 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
3668 to set the value for Intel and AMD architectures.
3669 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3670 INTEL_CPUID_INDEX_1.
3671 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3674 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
3676 * configure.in: Move AC_CANONICAL_HOST before first use of $host
3679 2009-05-29 Jakub Jelinek <jakub@redhat.com>
3681 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3682 (__expm1l): Set errno to ERANGE on overflow.
3683 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3684 (__tanl): Set errno to EDOM for ±Inf.
3685 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3686 (__cosl): Set errno to EDOM for ±Inf.
3687 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3688 (__sinl): Set errno to EDOM for ±Inf.
3690 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3692 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3693 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3694 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3696 2009-05-29 Ulrich Drepper <drepper@redhat.com>
3698 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
3700 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3702 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
3704 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
3705 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3706 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3707 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3709 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3710 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3711 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3713 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3714 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3716 2009-05-22 Jakub Jelinek <jakub@redhat.com>
3718 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3719 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3720 is, either do nothing at all if __ASSUME_ACCEPT4, or
3721 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3722 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3723 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3725 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3726 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3727 internal_accept4 in socket directory.
3729 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
3731 * sysdeps/ia64/configure.in: New file.
3733 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
3736 * sysdeps/ia64/memchr.S: Use speculative load.
3738 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3739 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3742 * sysdeps/i386/__longjmp.S: Add .text.
3743 * sysdeps/x86_64/__longjmp.S: Likewise.
3745 2009-05-21 Ulrich Drepper <drepper@redhat.com>
3747 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3748 __ASSUME_ACCEPT4 for IA-64.
3750 2009-05-21 Jakub Jelinek <jakub@redhat.com>
3752 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3754 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3755 (SOCKOP_accept4): Define.
3757 2009-05-20 Ulrich Drepper <drepper@redhat.com>
3759 Sun approved the change of the license.
3760 * sunrpc/auth_des.c: Replace license text.
3761 * sunrpc/auth_none.c: Likewise.
3762 * sunrpc/auth_unix.c: Likewise.
3763 * sunrpc/authdes_prot.c: Likewise.
3764 * sunrpc/authuxprot.c: Likewise.
3765 * sunrpc/bindrsvprt.c: Likewise.
3766 * sunrpc/clnt_gen.c: Likewise.
3767 * sunrpc/clnt_perr.c: Likewise.
3768 * sunrpc/clnt_raw.c: Likewise.
3769 * sunrpc/clnt_simp.c: Likewise.
3770 * sunrpc/clnt_tcp.c: Likewise.
3771 * sunrpc/clnt_udp.c: Likewise.
3772 * sunrpc/clnt_unix.c: Likewise.
3773 * sunrpc/des_crypt.c: Likewise.
3774 * sunrpc/des_soft.c: Likewise.
3775 * sunrpc/get_myaddr.c: Likewise.
3776 * sunrpc/getrpcport.c: Likewise.
3777 * sunrpc/key_call.c: Likewise.
3778 * sunrpc/key_prot.c: Likewise.
3779 * sunrpc/openchild.c: Likewise.
3780 * sunrpc/pm_getmaps.c: Likewise.
3781 * sunrpc/pm_getport.c: Likewise.
3782 * sunrpc/pmap_clnt.c: Likewise.
3783 * sunrpc/pmap_prot.c: Likewise.
3784 * sunrpc/pmap_prot2.c: Likewise.
3785 * sunrpc/pmap_rmt.c: Likewise.
3786 * sunrpc/rpc/auth.h: Likewise.
3787 * sunrpc/rpc/auth_unix.h: Likewise.
3788 * sunrpc/rpc/clnt.h: Likewise.
3789 * sunrpc/rpc/des_crypt.h: Likewise.
3790 * sunrpc/rpc/key_prot.h: Likewise.
3791 * sunrpc/rpc/netdb.h: Likewise.
3792 * sunrpc/rpc/pmap_clnt.h: Likewise.
3793 * sunrpc/rpc/pmap_prot.h: Likewise.
3794 * sunrpc/rpc/pmap_rmt.h: Likewise.
3795 * sunrpc/rpc/rpc.h: Likewise.
3796 * sunrpc/rpc/rpc_des.h: Likewise.
3797 * sunrpc/rpc/rpc_msg.h: Likewise.
3798 * sunrpc/rpc/svc.h: Likewise.
3799 * sunrpc/rpc/svc_auth.h: Likewise.
3800 * sunrpc/rpc/types.h: Likewise.
3801 * sunrpc/rpc/xdr.h: Likewise.
3802 * sunrpc/rpc_clntout.c: Likewise.
3803 * sunrpc/rpc_cmsg.c: Likewise.
3804 * sunrpc/rpc_common.c: Likewise.
3805 * sunrpc/rpc_cout.c: Likewise.
3806 * sunrpc/rpc_dtable.c: Likewise.
3807 * sunrpc/rpc_hout.c: Likewise.
3808 * sunrpc/rpc_main.c: Likewise.
3809 * sunrpc/rpc_parse.c: Likewise.
3810 * sunrpc/rpc_parse.h: Likewise.
3811 * sunrpc/rpc_prot.c: Likewise.
3812 * sunrpc/rpc_sample.c: Likewise.
3813 * sunrpc/rpc_scan.c: Likewise.
3814 * sunrpc/rpc_scan.h: Likewise.
3815 * sunrpc/rpc_svcout.c: Likewise.
3816 * sunrpc/rpc_tblout.c: Likewise.
3817 * sunrpc/rpc_util.c: Likewise.
3818 * sunrpc/rpc_util.h: Likewise.
3819 * sunrpc/rpcinfo.c: Likewise.
3820 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3821 * sunrpc/rpcsvc/key_prot.x: Likewise.
3822 * sunrpc/rpcsvc/klm_prot.x: Likewise.
3823 * sunrpc/rpcsvc/mount.x: Likewise.
3824 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3825 * sunrpc/rpcsvc/rex.x: Likewise.
3826 * sunrpc/rpcsvc/rstat.x: Likewise.
3827 * sunrpc/rpcsvc/rusers.x: Likewise.
3828 * sunrpc/rpcsvc/sm_inter.x: Likewise.
3829 * sunrpc/rpcsvc/spray.x: Likewise.
3830 * sunrpc/rpcsvc/yppasswd.x: Likewise.
3831 * sunrpc/rtime.c: Likewise.
3832 * sunrpc/svc.c: Likewise.
3833 * sunrpc/svc_auth.c: Likewise.
3834 * sunrpc/svc_authux.c: Likewise.
3835 * sunrpc/svc_raw.c: Likewise.
3836 * sunrpc/svc_run.c: Likewise.
3837 * sunrpc/svc_simple.c: Likewise.
3838 * sunrpc/svc_tcp.c: Likewise.
3839 * sunrpc/svc_udp.c: Likewise.
3840 * sunrpc/svc_unix.c: Likewise.
3841 * sunrpc/svcauth_des.c: Likewise.
3842 * sunrpc/xcrypt.c: Likewise.
3843 * sunrpc/xdr.c: Likewise.
3844 * sunrpc/xdr_array.c: Likewise.
3845 * sunrpc/xdr_float.c: Likewise.
3846 * sunrpc/xdr_mem.c: Likewise.
3847 * sunrpc/xdr_rec.c: Likewise.
3848 * sunrpc/xdr_ref.c: Likewise.
3849 * sunrpc/xdr_sizeof.c: Likewise.
3850 * sunrpc/xdr_stdio.c: Likewise.
3852 * po/da.po: Update from translation team.
3854 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3856 * sysdeps/sh/____longjmp_chk.S: New file.
3857 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3858 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3860 2009-05-18 Jakub Jelinek <jakub@redhat.com>
3861 Ulrich Drepper <drepper@redhat.com>
3863 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3864 (__nscd_cache_search): Assume each entry in the
3865 hash chain needs one hashentry and half of datahead. Use
3866 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3868 2009-05-16 Ulrich Drepper <drepper@redhat.com>
3870 * posix/sys/wait.h: Fix typos. Pretty printing.
3871 * stdlib/stdlib.h: Likewise. Correct comments.
3874 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3876 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3879 2009-05-15 Ulrich Drepper <drepper@redhat.com>
3881 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3882 Use it if we absolutely cannot reach any more correct list elements
3883 because that many do not fit into the currently mapped database.
3885 2009-05-14 Jakub Jelinek <jakub@redhat.com>
3887 * nscd/nscd_helper.c: Include stddef.h.
3888 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
3889 in a couple of places. Return NULL if trail is not less than
3890 datasize, don't consider dataheads with length smaller than
3891 offsetof (struct datahead, data) + datalen.
3892 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3893 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3894 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3895 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3896 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3897 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3898 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3900 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3902 (fallocate64): ... to this.
3903 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3905 (fallocate64): ... to this.
3906 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3907 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3908 fallocate64@@GLIBC_2.10.
3909 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3910 fallocate64@@GLIBC_2.11.
3911 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3913 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3914 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3916 * nscd/selinux.c (nscd_avc_destroy): Removed.
3917 * nscd/selinux.h (nscd_avc_destroy): Likewise.
3918 * nscd/nscd.c (termination_handler): Don't call
3921 2009-05-12 Jakub Jelinek <jakub@redhat.com>
3923 * include/atomic.h: Formatting.
3924 (catomic_compare_and_exchange_val_acq): Don't define if already
3925 defined by bits/atomic.h.
3927 2009-05-15 Ulrich Drepper <drepper@redhat.com>
3929 * math/libm-test.inc (expm1_test): Add test for range error.
3931 * Versions.def: Add GLIBC_2.11 for libc.
3932 * debug/Makefile (routines): Add longjmp_chk.
3933 Add rules to build and run tst-longjmp_chk.
3934 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3935 * debug/longjmp_chk.c: New file.
3936 * debug/tst-longjmp_chk.c: New file.
3937 * include/bits/setjmp2.: New file.
3938 * include/stdio.h: Mark __fortify_fail as internal_function.
3939 * setjmp/Makefile (headers): Add bits/setjmp2.h.
3940 * setjmp/bits/setjmp2.h: New file.
3941 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3943 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3945 * sysdeps/i386/____longjmp_chk.S: New file.
3946 * sysdeps/x86_64/____longjmp_chk.S: New file.
3947 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3948 * sysdeps/x86_64/__longjmp.S: Likewise.
3950 * version.h: Bump for 2.11 development.
3952 * elf/check-execstack.c: New file.
3953 * elf/Makefile: Add rules to build and run check-execstack.
3955 2009-05-10 Ulrich Drepper <drepper@redhat.com>
3957 * version.h (VERSION): Bump to 2.10.1.
3959 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3960 compatibility functions.
3961 * nss/getXXent_r.c: Likewise.
3962 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3963 * gshadow/getsgnam_r.c: Likewise.
3964 * gshadow/Version: Remove duplicate entries.
3966 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3967 for recent processor.
3968 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3971 2009-05-09 Ulrich Drepper <drepper@redhat.com>
3973 * version.h (VERSION): Bump for 2.10 release.
3974 * include/features.h (__GLIBC_MINOR__): Bump to 10.
3976 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
3977 same place we add ASFLAGS-config.
3979 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
3982 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3983 or FORMERR and the other NOERROR, don't raise an error.
3985 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
3988 * Makeconfig (+asflags): New variable based upon ASFLAG or
3990 (ASFLAGS): Add override to set ASFLAGS to +asflags.
3991 * config.make.in (asflags-cpu): Add variable based upon
3992 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3994 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3995 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3996 recognizes power6 instruction set due to passing -mcpu=power6 from
3997 --with-cpu=power6 when compiling .S files.
3998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4005 2009-05-09 Jakub Jelinek <jakub@redhat.com>
4007 * string/stratcliff.c (do_test): Test for zero length
4008 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
4009 at the end of the page.
4011 2009-05-08 Ulrich Drepper <drepper@redhat.com>
4013 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
4015 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
4018 * po/da.po: Update from translation team.
4020 2009-05-05 Jakub Jelinek <jakub@redhat.com>
4022 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
4023 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
4025 2009-05-05 Ulrich Drepper <drepper@redhat.com>
4027 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
4028 and READ_IMPLIES_EXEC.
4030 2009-05-04 Ulrich Drepper <drepper@redhat.com>
4032 * po/da.po: Update from translation team.
4034 2009-04-29 Jakub Jelinek <jakub@redhat.com>
4036 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
4039 2009-04-27 Jakub Jelinek <jakub@redhat.com>
4041 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
4042 to MAP_ANON in PROT_NONE mmap64 call.
4043 (open_archive): Likewise.
4044 (file_data_available_p): Use mmap64 instead of mremap.
4045 (enlarge_archive): Likewise. Update head if ah->addr changed.
4046 Attempt to reserve address space after mmap64 region.
4048 2009-04-26 Ulrich Drepper <drepper@redhat.com>
4050 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
4051 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4052 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4054 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
4055 atanh should set ERANGE.
4058 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
4059 result of lookup to make call to implement STT_GNU_IFUNC.
4060 (_dl_profile_fixup): Likewise.
4061 Patch by H.J. Lu <hjl.tools@gmail.com>.
4063 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
4066 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
4069 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
4070 label if it is not used.
4072 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
4073 of gmon_hist_hdr and gmon_hdr structures and use them.
4074 * elf/sprof.c: Likewise.
4076 * elf/dl-load.c (open_verify): Add temporary variable to avoid
4079 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
4081 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
4084 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
4085 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
4087 (iruserok_af): Use ss_family instead of casts.
4089 * gmon/gmon.c (write_hist): Define real-type variant of
4090 gmon_hist_hdr structure and use it.
4091 (write_gmon): Likewise for gmon_hdr.
4093 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
4094 function if we are not going to define it.
4095 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4097 * inet/inet6_option.c (option_alloc): Add temporary variable to
4100 * libio/strfile.h (struct _IO_streambuf): Use correct type and
4101 name of VTable element.
4102 * libio/iovsprintf.c: Avoid casts to avoid warnings.
4103 * libio/iovsscanf.c: Likewise.
4104 * libio/vasprintf.c: Likewise.
4105 * libio/vsnprintf.c: Likewise.
4106 * stdio-common/isoc99_vsscanf.c: Likewise.
4107 * stdlib/strfmon_l.c: Likewise.
4108 * debug/vasprintf_chk.c: Likewise.
4109 * debug/vsnprintf_chk.c: Likewise.
4110 * debug/vsprintf_chk.c: Likewise.
4112 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
4115 2009-04-26 Jakub Jelinek <jakub@redhat.com>
4117 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
4119 2009-04-25 Ulrich Drepper <drepper@redhat.com>
4121 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
4123 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
4124 * sysdeps/i386/fpu/s_tanf.S: Likewise.
4125 * sysdeps/i386/fpu/s_tanl.S: Likewise.
4126 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4127 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4128 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
4129 * math/libm-test.inc: Add tests for errno after tan calls with
4132 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
4133 errno value vor pow(+-0,neg).
4134 * math/libm-test.inc (pow_test): Add tests for errno value for
4137 * math/w_fmod.c: Also handle x=±Inf as error.
4138 * math/w_fmodf.c: Likewise.
4139 * math/w_fmodl.c: Likewise.
4140 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
4143 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
4144 * sysdeps/i386/fpu/s_cosf.S: Likewise.
4145 * sysdeps/i386/fpu/s_cosl.S: Likewise.
4146 * sysdeps/i386/fpu/s_sin.S: Likewise.
4147 * sysdeps/i386/fpu/s_sinf.S: Likewise.
4148 * sysdeps/i386/fpu/s_sinl.S: Likewise.
4149 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4150 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4151 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4152 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4153 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4154 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
4155 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
4156 * math/libm-test.inc: Add tests for errno after sin/cos calls with
4159 * stdlib/strtod_l.c (round_and_return): We have to set errno to
4160 ERANGE for underflows.
4161 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
4163 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
4166 * libio/tst-widetext.input: Remove surrogates.
4168 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
4170 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
4171 for lgamma should set errno to ERANGE, not EDOM.
4172 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
4174 2009-04-24 Ulrich Drepper <drepper@redhat.com>
4177 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
4180 * locale/programs/locarchive.c (enlarge_archive): Conserve address
4181 space when temporarily mapping the whole content of the old file.
4184 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
4187 2009-04-24 Jakub Jelinek <jakub@redhat.com>
4189 * iconvdata/sjis.c (BODY): Don't advance inptr before
4190 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
4191 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
4194 2009-04-24 Ulrich Drepper <drepper@redhat.com>
4196 * locale/locarchive.h (struct locarhandle): Rename len field to
4197 mmaped and add new reserved field.
4198 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
4199 (create_archive): Reserve address space and then map file into it.
4200 (open_archive): Likewise.
4201 (file_data_available_p): New function.
4202 (compare_from_file): New function.
4203 (close_archive): Adjust to member name changes.
4204 (add_locale): Before comparing locale data, check it is mapped.
4205 Otherwise fall back to reading from the file.
4207 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
4209 * stdio-common/psiginfo.c: Include <errno.h>.
4211 2009-04-23 Ulrich Drepper <drepper@redhat.com>
4214 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
4215 to get consistency between 32 and 64 bit architectures.
4218 * sysdeps/unix/make-syscalls.sh: Add rule to create target
4219 directory for dummy syscall rules.
4220 Patch by Chris Steinbroner <hesh@pobox.com>.
4222 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
4225 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
4228 2009-04-23 Ulrich Drepper <drepper@redhat.com>
4230 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
4231 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4233 2009-04-23 Jakub Jelinek <jakub@redhat.com>
4235 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
4236 data from vector to temporary buffer and call PWRITEV after it
4237 instead of vice versa.
4238 * sysdeps/posix/preadv.c: Fix up comment.
4239 * misc/preadv.c: Likewise.
4240 * misc/preadv64.c: Likewise.
4241 * misc/pwritev.c: Likewise.
4242 * misc/pwritev64.c: Likewise.
4243 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
4245 2009-04-23 Ulrich Drepper <drepper@redhat.com>
4247 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
4249 * shadow/Makefile (tests): Add tst-shadow.
4250 * shadow/tst-shadow.c: New file.
4253 * gshadow/Makefile: New file.
4254 * gshadow/Versions: New file.
4255 * gshadow/fgetsgent.c: New file.
4256 * gshadow/fgetsgent_r.c: New file.
4257 * gshadow/getsgent.c: New file.
4258 * gshadow/getsgent_r.c: New file.
4259 * gshadow/getsgnam.c: New file.
4260 * gshadow/getsgnam_r.c: New file.
4261 * gshadow/gshadow.h: New file.
4262 * gshadow/putsgent.c: New file.
4263 * gshadow/sgetsgent.c: New file.
4264 * gshadow/sgetsgent_r.c: New file.
4265 * gshadow/tst-gshadow.c: New file.
4266 * include/gshadow.h: New file.
4267 * Makeconfig (all-subdirs): Add gshadow.
4268 * Makefile (installed-headers): Add gshadow/gshadow.h.
4269 * nss/Makefile (databases): Add sgrp.
4270 * nss/Versions: Add gshadow functions as private exports.
4271 * nss/nsswitch.conf: Add gshadow entry.
4272 * nss/sgrp-lookup.c: New file.
4273 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
4274 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
4275 * nss/nss_files/files-sgrp.c: New file.
4276 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
4277 * sysdeps/unix/sysv/linux/paths.h: Likewise.
4279 2009-04-22 Ulrich Drepper <drepper@redhat.com>
4281 * stdio-common/printf.h: Add missing const to register_printf_modifier.
4282 * stdio-common/reg-modifier.c: Likewise.
4284 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
4286 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
4289 2009-04-20 Ulrich Drepper <drepper@redhat.com>
4292 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
4293 headers up to 2.6.30.
4295 * po/ca.po: Update from translation team.
4297 2009-04-19 Ulrich Drepper <drepper@redhat.com>
4300 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
4301 an object that uses static TLS if the TLS modid is higher than the
4302 reserve we always allocate. At least for multi-threaded code.
4304 2009-04-18 Ulrich Drepper <drepper@redhat.com>
4306 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
4307 Numerically stable check for valid width.
4309 * locale/programs/locarchive.c (open_archive): Map the entire file
4310 and not just the administrative data.
4311 (add_locale): When we find a hash sum match compare the content
4314 * malloc/malloc.c (malloc_info): Output address space information.
4316 2009-04-17 Ulrich Drepper <drepper@redhat.com>
4318 * malloc/malloc.c (malloc_info): Also output system memory information.
4320 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
4321 architectures have preadv/pwritev in 2.6.30.
4323 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
4324 * sysdeps/posix/readv.c: Likewise.
4325 Reported by Markus Armbruster <armbru@redhat.com>.
4327 * malloc/hooks.c (top_check): Force hook value into register.
4329 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
4331 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
4332 calls to _dl_relocate_object.
4334 2009-04-16 Ulrich Drepper <drepper@redhat.com>
4337 * malloc/malloc.c (force_reg): Define.
4338 (sYSMALLOc): Load hook variable into variable
4339 before test and force into register.
4340 (sYSTRIm): Likewise.
4341 (public_mALLOc): Force hook value into register.
4342 (public_fREe): Likewise.
4343 (public_rEALLOc): Likewise.
4344 (public_mEMALIGn): Likewise.
4345 (public_vALLOc): Likewise.
4346 (public_pVALLOc): Likewise.
4347 (public_cALLOc): Likewise.
4348 (__posix_memalign): Likewise.
4349 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
4350 before test and force into register.
4351 * malloc/hooks.c (top_check): Likewise.
4352 (public_sET_STATe): Pretty printing.
4354 * resolv/res_send.c (send_dg): Don't just ignore the result we got
4355 in case we only receive one reply in single-request mode.
4357 2009-04-16 Jakub Jelinek <jakub@redhat.com>
4359 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
4360 are dlopened in statically linked program even for __LM_ID_CALLER.
4362 2009-04-16 Ulrich Drepper <drepper@redhat.com>
4364 * resolv/res_send.c (send_dg): Don't switch into single-request
4365 mode if we already are in it.
4367 2009-04-15 Ulrich Drepper <drepper@redhat.com>
4369 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
4370 are always at least 4 bytes in the returned line.
4372 2009-04-15 Jakub Jelinek <jakub@redhat.com>
4374 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
4375 __libc_use_alloca (8192), if the stack is too small use 512 bytes
4376 instead of 8K. Stop searching in /proc/stat after hitting first
4377 line not starting with cpu.
4378 (next_line): Truncate too long
4379 lines at buffer size * 3/4 instead of pretending there were line
4380 breaks inside of large lines.
4382 2009-04-14 Ulrich Drepper <drepper@redhat.com>
4384 * sysdeps/x86_64/mp_clz_tab.c: New file.
4386 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
4387 Ulrich Drepper <drepper@redhat.com>
4389 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
4390 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
4391 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
4393 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
4395 * sysdeps/sh/libc-tls.c: New file.
4397 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
4399 2009-04-14 Roland McGrath <roland@redhat.com>
4401 * elf/elf.h: Add various missing ARM constants, to match binutils.
4403 2009-04-14 Ulrich Drepper <drepper@redhat.com>
4405 Optimizations from GMP.
4406 * sysdeps/x86_64/add_n.S: New file.
4407 * sysdeps/x86_64/addmul_1.S: New file.
4408 * sysdeps/x86_64/lshift.S: New file.
4409 * sysdeps/x86_64/mul_1.S: New file.
4410 * sysdeps/x86_64/rshift.S: New file.
4411 * sysdeps/x86_64/sub_n.S: New file.
4412 * sysdeps/x86_64/submul_1.S: New file.
4414 2009-04-14 Jakub Jelinek <jakub@redhat.com>
4416 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
4417 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4418 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4419 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4421 2009-04-14 Ulrich Drepper <drepper@redhat.com>
4423 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
4426 2009-04-13 Ulrich Drepper <drepper@redhat.com>
4428 * sysdeps/x86-64/strrchr.S: New file.
4430 2009-04-10 Ulrich Drepper <drepper@redhat.com>
4432 * stdio-common/printf.h (struct printf_info): Add user element.
4433 New types printf_arginfo_size_function, printf_va_arg_function.
4434 Declare register_printf_specifier, register_printf_modifier,
4435 register_printf_type.
4436 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
4437 (union printf_arg): Add pa_user element.
4438 Adjust __printf_arginfo_table type.
4439 Add __printf_va_arg_table, __printf_modifier_table,
4440 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
4442 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
4443 If registered arginfo call failed try normal specifier.
4444 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
4446 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
4447 * stdio-common/Versions: Export register_printf_modifier,
4448 register_printf_type, and register_printf_specifier for GLIBC_2.10.
4449 * stdio-common/reg-modifier.c: New file.
4450 * stdio-common/reg-type.c: New file.
4451 * stdio-common/reg-printf.c (__register_printf_specifier): New
4452 function. Mostly the old __register_printf_function function but
4453 uses locking and type of third parameter changed.
4454 (__register_printf_function): Implement using
4455 __register_printf_specifier.
4456 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
4457 calls to arginfo functions. Allocate enough memory for user-defined
4458 types. Call new va_arg functions to get user-defined types.
4459 Try installed handlers even for existing format specifiers first.
4461 2009-04-09 Ulrich Drepper <drepper@redhat.com>
4463 * sysdeps/x86_64/rawmemchr.S: New file.
4465 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
4466 Simplified code and possible copy problem fixed.
4468 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
4469 function if it is not defined. Add some necessary casts.
4470 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4472 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
4473 have preadv/pwritev in 2.6.30.
4475 2009-04-08 Ulrich Drepper <drepper@redhat.com>
4477 * malloc/malloc.c (malloc_info): New function.
4478 * malloc/malloc.h: Declare it.
4479 * malloc/Versions: Export malloc_info for GLIBC_2.10.
4481 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
4484 * malloc/malloc.c (_int_realloc): Add parameter with old block
4485 size. Remove duplicated test. Don't handle mmap'ed blocks here.
4487 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
4489 2009-04-07 Ulrich Drepper <drepper@redhat.com>
4491 * sysdeps/x86_64/strchrnul.S: New file.
4493 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
4494 depending libcrypt on -lfreebl3.
4496 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
4497 preadv/pwritev in 2.6.30.
4499 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
4500 instead of __strcasecmp.
4502 * string/stratcliff.c (do_test): Add memchr tests..
4503 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
4504 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
4505 first read quad word.
4507 2009-04-06 Ulrich Drepper <drepper@redhat.com>
4509 * string/strverscmp.c (__strverscmp): Fix last cleanups.
4510 * string/tst-svc.input: Add new test case.
4511 * string/tst-svc.expect: Adjust.
4512 * string/Makefile: Don't ignore tst-svc error.
4514 * sysdeps/x86_64/memchr.S: New file.
4516 * resolv/resolv.h (RES_SNGLKUP): Define.
4517 * resolv/res_init.c (res_setoptions): Recognize single-request option.
4518 * resolv/res_send.c (send_dg): If we sent two requests at once and
4519 only get one reply before timeout switch to mode where we send the
4520 second request only after the first answer has been received.
4522 2009-04-05 Ulrich Drepper <drepper@redhat.com>
4524 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4525 * sysdeps/x86_64/strchr.S: Likewise.
4527 2009-04-03 Ulrich Drepper <drepper@redhat.com>
4529 * configure.in: We need to test for the compiler earlier.
4531 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4532 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4534 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4535 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4537 * misc/preadv.c: New file.
4538 * misc/preadv64.c: New file.
4539 * misc/pwritev.c: New file.
4540 * misc/pwritev64.c: New file.
4541 * sysdeps/posx/preadv.c: New file.
4542 * sysdeps/posx/preadv64.c: New file.
4543 * sysdeps/posx/pwritev.c: New file.
4544 * sysdeps/posx/pwritev64.c: New file.
4545 * sysdeps/unix/sysv/linux/preadv.c: New file.
4546 * sysdeps/unix/sysv/linux/preadv64.c: New file.
4547 * sysdeps/unix/sysv/linux/pwritev.c: New file.
4548 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4549 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4550 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4552 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4554 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4556 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4557 __ASSUME_COMPLETE_READV_WRITEV.
4558 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4559 with modern kernels.
4560 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4562 * sysdeps/posix/readv.c: Since read is a cancellation point we have
4563 to free a possible malloced buffer in case of cancellation.
4564 * sysdeps/posix/writev.c: Likewise for write.
4566 2009-04-02 Ulrich Drepper <drepper@redhat.com>
4568 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4570 * configure.in: Recognize --enable-nss-crypt.
4571 * config.make.in: Add nss-crypt entry.
4572 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4573 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
4574 and include path for NSS directory to compiler for md5-crypt,
4575 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
4576 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4577 function implementation, use NSS. Introduce wrappers around the
4578 hash function calls. Little code size optimization.
4579 * crypt/sha256-crypt.c: Likewise.
4580 * crypt/sha512-crypt.c: Likewise.
4581 * scripts/check-local-headers.sh: Ignore nss3 directory.
4583 * configure.in: Rename pic_default to libc_cv_pic_default.
4584 * config.make.in: Likewise.
4586 2009-04-01 Roland McGrath <roland@redhat.com>
4588 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4589 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4590 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4591 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4592 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4593 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4594 (R_SPARC_NUM): Update.
4595 From Dave Miller <davem@davemloft.net>.
4597 2009-04-01 Ulrich Drepper <drepper@redhat.com>
4599 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4601 2009-03-31 Ulrich Drepper <drepper@redhat.com>
4603 * elf/dl-open.c: Keep track of used name spaces and only iterate over
4604 those which are used.
4605 * elf/dl-addr.c: Likewise.
4606 * elf/dl-caller.c: Likewise.
4607 * elf/dl-fini.c: Likewise.
4608 * elf/dl-iteratephdr.c: Likewise.
4609 * elf/dl-libc.c: Likewise.
4610 * elf/dl-load.c: Likewise.
4611 * elf/dl-support.c: Likewise.
4612 * elf/dl-sym.c: Likewise.
4613 * elf/rtld.c: Likewise.
4614 * sysdeps/generic/ldsodefs.h: Likewise.
4616 * elf/dl-load.c: Remove support for systems without MAP_ANON.
4617 * elf/dl-minimal.c: Likewise.
4618 * elf/dl-misc.c: Likewise.
4619 * elf/rtld.c: Likewise.
4620 * sysdeps/generic/ldsodefs.h: Likewise.
4622 2009-03-30 Ulrich Drepper <drepper@redhat.com>
4624 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4625 Avoid reuse of complex expression.
4627 * po/fr.po: Update from translation team.
4629 2009-03-16 Ulrich Drepper <drepper@redhat.com>
4631 * include/dirent.h: Yet more changes to match sort function type
4633 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4634 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4635 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4637 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
4639 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4641 2009-03-16 Ulrich Drepper <drepper@redhat.com>
4643 * nscd/connections.c (restart): Try to preserve the process name
4644 by reading the /proc/self/exe symlink and using the return name.
4645 Patch by Jeff Bastian <jbastian@redhat.com>.
4647 2009-03-15 Ulrich Drepper <drepper@redhat.com>
4650 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4651 if we are not loading a new audit library.
4652 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4653 Only use profiling trampoline for auditing if we are not relocating
4655 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4656 * elf/rtld.c: Likewise.
4657 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4659 * elf/rtld.c (dl_main): Extend help message for --audit option.
4662 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4663 alphasort64, versionsort, and versionsort64 to POSIX 2008.
4664 * dirent/alphasort.c: Adjust implementation to type change.
4665 * dirent/alphasort64.c: Likewise.
4666 * dirent/scandir.c: Likewise.
4667 * dirent/versionsort.c: Likewise.
4668 * dirent/versionsort64.c: Likewise.
4669 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4671 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4675 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4676 correctly. Set segleft member in output as required.
4677 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4678 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4681 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4682 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4683 * inet/Makefile (tests): Add tst-inet6_rth.
4684 * inet/tst-inet6_rth.c: New file.
4687 * string/strlen.c (strlen): Fix omission in the expression to test
4690 2009-03-14 Ulrich Drepper <drepper@redhat.com>
4692 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4694 * elf/dl-runtime.c (reloc_offset): Define.
4695 (reloc_index): Define.
4696 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4697 (_dl_fixup_profile): Likewise. Use reloc_index instead of
4698 computing index from reloc_offset.
4699 (_dl_call_pltexit): Likewise.
4700 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4701 the relocation index to _dl_fixup.
4702 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4704 * sysdeps/x86_64/dl-runtime.c: New file.
4707 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4708 alignment of La_x86_64_regs. Store xmm parameters.
4709 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4712 * string/strverscmp.c (__strverscmp): Fix case of different digits
4713 in fractional part of string.
4714 Patch by Jingyu Liu <jyliu@fortinet.com>.
4715 * string/Makefile (tests): Add tst-svc2.
4716 * string/tst-svc2.c: New file.
4718 * string/strverscmp.c (__strverscmp): Optimize size of tables.
4720 * locale/iso-639.def: Add Min Nan.
4722 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4725 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4727 2009-03-14 Ulrich Drepper <drepper@redhat.com>
4729 * elf/dl-sysdep.c (auxvars): Compress data structure.
4731 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4732 STT_GNU_IFUNC handling.
4733 (elf_machine_rela): Likewise.
4735 2009-03-13 Ulrich Drepper <drepper@redhat.com>
4737 * config.h.in (USE_MULTIARCH): Define.
4738 * configure.in: Handle --enable-multi-arch.
4739 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4740 (_dl_fixup_profile): Likewise.
4741 * elf/do-lookup.c (dl_lookup_x): Likewise.
4742 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4743 * elf/elf.h (STT_GNU_IFUNC): Define.
4744 * include/libc-symbols.h (libc_ifunc): Define.
4745 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4746 framework in init-arch.h to get CPUID values.
4747 * sysdeps/x86_64/multiarch/Makefile: New file.
4748 * sysdeps/x86_64/multiarch/init-arch.c: New file.
4749 * sysdeps/x86_64/multiarch/init-arch.h: New file.
4750 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4752 * config.make.in (experimental-malloc): Define.
4753 * configure.in: Handle --enable-experimental-malloc.
4754 * malloc/Makefile: Handle experimental-malloc flag.
4755 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4756 * malloc/arena.c: Likewise.
4757 * malloc/hooks.c: Likewise.
4758 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4760 2009-03-11 Ulrich Drepper <drepper@redhat.com>
4762 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4763 prediction. A few size optimizations.
4765 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4767 * time/tzset.c: Optimize a bit for size.
4769 2009-03-10 Jakub Jelinek <jakub@redhat.com>
4771 * include/stdio.h (fmemopen): Add libc_hidden_proto.
4772 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4774 * elf/sprof.c: Avoid warning about multi-line comment.
4776 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4778 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4780 * time/tst-posixtz.c: Add tests for quoted timezone names.
4782 2009-03-10 Jakub Jelinek <jakub@redhat.com>
4784 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4785 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4786 200809L instead of 200112L.
4787 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4788 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4790 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4791 instead of __quick_exit_funcs to __run_exit_handlers.
4792 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4793 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4794 (__cxa_at_quick_exit): Remove attribute_hidden.
4795 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4796 to __run_exit_handlers.
4797 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4800 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4802 * po/id.po: Update from translation team.
4804 2009-02-18 Jakub Jelinek <jakub@redhat.com>
4806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4807 .machine push; .machine "power6" and .machine pop around mtfsf
4808 insns outside of _ARCH_PWR6 define.
4809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4810 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4814 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4815 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4816 relax_fenv_state): Likewise.
4818 2009-03-08 Ulrich Drepper <drepper@redhat.com>
4820 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4822 (static-only-routines): Add at_quick_exit.
4823 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4825 * stdlib/quick_exit.c: New file.
4826 * stdlib/at_quick_exit.c: New file.
4827 * stdlib/cxa_at_quick_exit.c: New file.
4828 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
4830 (__internal_atexit): New function.
4831 (__new_exitfn): Now takes parameter to point to the list to use.
4832 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4833 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
4834 (exit): ...here. Just call __run_exit_handlers appropriately.
4835 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4836 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
4837 * stdlib/on_exit.c: Adjust call to __new_exitfn.
4838 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4840 * po/id.po: Update from translation team.
4842 2009-03-07 Ulrich Drepper <drepper@redhat.com>
4844 * po/ru.po: Update from translation team.
4846 2009-03-04 Ulrich Drepper <drepper@redhat.com>
4848 * po/nl.po: Update from translation team.
4850 2009-03-03 Ulrich Drepper <drepper@redhat.com>
4852 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4853 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4854 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4855 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4856 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4857 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4858 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4860 * po/pl.po: Update from translation team.
4862 2009-03-02 Ulrich Drepper <drepper@redhat.com>
4865 * sysdeps/unix/sysv/linux/fallocate.c: New file.
4866 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4867 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4868 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4869 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4870 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4871 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4873 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4874 Add fallocate and fallocate64.
4876 * io/fcntl.h: Pretty printing.
4878 2009-03-02 Richard Guenther <rguenther@suse.de>
4880 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4881 attribute also for non-C99 inline semantics variant.
4883 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4885 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4886 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4887 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4888 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4889 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4894 2009-03-02 Ulrich Drepper <drepper@redhat.com>
4896 * po/cs.po: Update from translation team.
4898 2009-02-28 Ulrich Drepper <drepper@redhat.com>
4900 * po/bg.po: Update from translation team.
4901 * po/sv.po: Likewise.
4902 * po/fi.po: Likewise.
4903 * po/vi.po: Likewise.
4905 2009-02-27 Roland McGrath <roland@redhat.com>
4907 * Makeconfig (%.v.i): Depend on Makeconfig.
4908 Exclude % lines from initial #-comment removal.
4910 2009-02-27 Ulrich Drepper <drepper@redhat.com>
4912 * po/ko.po: Update from translation team.
4914 2009-02-26 Roland McGrath <roland@redhat.com>
4916 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4917 avoids unused warning.
4919 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
4920 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4922 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4923 sys/ucontext.h and asm/elf.h. Include sys/user.h.
4924 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4925 and asm/user.h. Include asm/ptrace.h.
4926 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4927 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4928 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4930 (start_thread): Don't undefine.
4931 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4934 2009-02-26 Ulrich Drepper <drepper@redhat.com>
4936 * wctype/wctype.h: The *_l functions are in POSIX 2008.
4937 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4938 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4939 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4940 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4942 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4943 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4944 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4945 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4946 _SC_THREAD_ROBUST_PRIO_PROTECT.
4947 * posix/unistd.h: fexecve is in POSIX 2008.
4948 * time/time.h: strftime_l is in POSIX 2008.
4949 * io/sys/stat.h: futimens is in POSIX 2008.
4950 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4951 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4952 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4953 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4954 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4955 open_memstream, and vdprintf are in POSIX 2008.
4957 2009-02-25 Ulrich Drepper <drepper@redhat.com>
4959 * include/features.h: Define macros for XPG7/POSIX 2008.
4960 * ctype/ctype.h: The *_l functions are in POSIX 2008.
4961 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4963 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4964 * locale/xlocale.h: Define locale_t type.
4965 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4966 in POSIX 2008. Don't define locale_t here.
4967 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4968 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4969 UTIME_OMIT only with __USE_ATFILE.
4970 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4971 * stdio-common/psiginfo.c: New file.
4972 * stdio-common/psiginfo-data.h: New file.
4973 * stdio-common/psiginfo-define.h: New file.
4974 * stdio-common/Makefile (routines): Add psiginfo.
4975 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4976 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4977 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4978 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4979 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4980 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4981 * io/sys/stat.h: Move mknodat definition into same conditional as
4983 * time/sys/time.h: futimesat is not among the functions accepted
4984 into the POSIX standard.
4986 * include/features.h: If no feature selection given and we select
4987 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4988 * posix/Versions: Export __posix_getopt.
4989 * posix/getopt.c (_getopt_initialize): Take additional parameter.
4990 Use it to alternatively initialize __posixly_correct.
4991 (_getopt_internal_r): Take addition parameter. Pass on to
4993 (_getopt_internal): Take addition parameter. Pass on to
4995 (getopt): Pass additional zero to _getopt_internal.
4996 (__posix_getopt): New function.
4997 * posix/getopt.h: Add redirection for getopt.
4998 * posix/getopt1.c (getopt_long): Pass additional zero to
5000 (getopt_long_only): Likewise.
5001 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
5002 (_getopt_long_only_r): Likewise.
5003 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
5006 2009-02-24 Ulrich Drepper <drepper@redhat.com>
5008 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
5009 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
5010 * sysdeps/posix/sysconf.c (__sysconf): Handle
5011 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
5012 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
5014 2009-02-24 Roland McGrath <roland@redhat.com>
5017 * README.template: Reworded not to use substituted version number.
5019 * README: ... here (no longer generated).
5020 * Makefile (README): Target removed.
5022 2009-02-24 Ulrich Drepper <drepper@redhat.com>
5024 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
5025 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5028 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
5030 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
5032 2009-02-22 Ulrich Drepper <drepper@redhat.com>
5034 * po/bg.po: Update from translation team.
5036 2009-02-16 Jakub Jelinek <jakub@redhat.com>
5038 * stdlib/monetary.h: Uglify function parameter names.
5039 * sunrpc/rpc/pmap_clnt.h: Likewise.
5040 * sunrpc/rpc/svc.h: Likewise.
5041 * sunrpc/rpc/xdr.h: Likewise.
5042 * sunrpc/rpc/clnt.h: Likewise.
5043 * resolv/netdb.h: Likewise.
5044 * resolv/arpa/nameser.h: Likewise.
5045 * resolv/resolv.h: Likewise.
5046 * argp/argp.h: Likewise.
5047 * locale/langinfo.h: Likewise.
5048 * io/sys/stat.h: Likewise.
5049 * posix/spawn.h: Likewise.
5050 * nis/rpcsvc/nislib.h: Likewise.
5051 * malloc/obstack.h: Likewise.
5052 * sysdeps/ia64/bits/link.h: Likewise.
5053 * sysdeps/i386/bits/link.h: Likewise.
5054 * sysdeps/s390/bits/link.h: Likewise.
5055 * sysdeps/powerpc/bits/link.h: Likewise.
5056 * sysdeps/x86_64/bits/link.h: Likewise.
5057 * sysdeps/sparc/bits/link.h: Likewise.
5058 * sysdeps/sh/bits/link.h: Likewise.
5059 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
5060 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
5061 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
5062 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
5064 2008-12-01 Fredrik Unger <fred@tree.se>
5066 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
5067 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
5068 _FP_UNPACK_RAW_2, fix up first argument.
5070 2009-02-15 Ulrich Drepper <drepper@redhat.com>
5072 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
5073 (GET_NPROCS_PARSER): Change parameters and use next_line.
5074 (__get_nprocs): Rewrite to not use stdio routines.
5075 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
5076 Change parameters and use next_line.
5078 2009-02-13 Ulrich Drepper <drepper@redhat.com>
5081 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
5082 Change mempool_alloc prototype.
5083 * nscd/mem.c (gc): Don't handle mem_in_flight.
5084 (mempool_alloc): Third parameter now only indicates whether this is the
5085 first call (to allocate data) or not. If it is, get db rdlock.
5086 Release it on error. Don't handle mem_in_flight.
5087 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
5088 Adjust third parameter of mempool_alloc calls.
5089 Nothing to do here in case mempool_alloc fails.
5090 Avoid local variable shadowing parameter. No need to get db rdlock
5091 before calling cache_add.
5092 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
5093 no mem_in_flight array anymore.
5094 * nscd/connections.c: Remove definition and handling of mem_in_flight.
5095 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
5096 mempool_alloc calls. Mark he parameter as const. Nothing to do here
5097 in case mempool_alloc fails. No need to get db rdlock before calling
5099 * nscd/hstcache.c (cache_addhst): Likewise.
5100 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5101 * nscd/servicescache.c (cache_addserv): Likewise.
5102 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
5104 2009-02-11 Ulrich Drepper <drepper@redhat.com>
5106 * po/lt.po: Update from translation team.
5108 2009-02-10 Ulrich Drepper <drepper@redhat.com>
5110 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
5111 defined, allow additional data to be added using the optional
5112 MORE_ELF_HEADER_DATA macro.
5113 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
5114 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
5116 2009-02-08 Ulrich Drepper <drepper@redhat.com>
5118 * include/atomic.h: Define catomic_and if not already defined.
5119 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
5120 * sysdeps/i386/i486/bits/atomic.h: Likewise.
5122 2009-02-07 Ulrich Drepper <drepper@redhat.com>
5124 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
5126 (_int_realloc): Likewise. Third argument is now padded size
5127 All _int_* functions are now static.
5129 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
5130 * malloc/arena.c: Likewise.
5131 * include/malloc.h: Remove now unnecessary declarations of the _int_*
5134 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
5137 * malloc/malloc.c: Add branch prediction for use of the hooks.
5139 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
5141 2009-02-06 Ulrich Drepper <drepper@redhat.com>
5144 * bits/confname.h: Add SUSv7 macros for getconf environments.
5145 * bits/environments.h: Likewise.
5146 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
5147 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
5148 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
5149 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
5150 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
5151 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
5152 * posix/getconf.c: Likewise.
5153 * posix/sysconf.c: Likewise.
5154 * sysdeps/posix/sysconf.c: Likewise.
5155 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
5158 2009-01-16 Petr Baudis <pasky@suse.cz>
5161 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
5162 even if we currently have zero nscount.
5164 2009-02-06 Ulrich Drepper <drepper@redhat.com>
5167 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
5168 the input line is too long.
5170 * po/Makefile (libc.pot): Add f_print as function taking c-format
5173 * debug/xtrace.sh: Unify translatable messages.
5174 * elf/ldd.bash.in: Likewise.
5175 * elf/sprof.c: Likewise.
5176 * locale/programs/locale.c: Likewise.
5177 * malloc/memusage.sh: Likewise.
5178 * nss/getent.c: Likewise.
5180 2009-02-06 Joseph Myers <joseph@codesourcery.com>
5182 * debug/pcprofiledump.c (print_version,
5183 argp_program_version_hook): New function.
5184 * elf/ldconfig.c (more_help): New function.
5186 * elf/sln.c (usage): New function.
5187 (main): Support --help and --version.
5188 * malloc/memusagestat.c (print_version): New function.
5189 (argp_program_version_hook): New variable.
5190 * nscd/nscd.c (more_help): New function.
5192 * posix/getconf.c (main): Send --version output to stdout.
5194 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
5195 arguments. All callers changed.
5196 (print_version): New function.
5197 (parseargs): Support --help and --version.
5198 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
5200 (print_version): New function.
5201 (main): Use getopt_long. Support --help and --version.
5202 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
5205 2009-02-06 Ulrich Drepper <drepper@redhat.com>
5207 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
5208 (update_data): Fix handling of wrapping back
5209 to the beginning of the buffer.
5212 * stdio-common/psignal.c (psignal): Fix test for empty string.
5214 2009-02-05 Ulrich Drepper <drepper@redhat.com>
5216 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
5217 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
5218 move _null_auth to .rodata.
5220 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
5223 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
5225 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
5226 today than when the original code was written. Use larger
5227 buffers. This also makes it unnecessary to have stat information,
5228 if this causes extra efforts.
5229 (__opendir): In case O_DIRECTORY works, don't call fstat just for
5232 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
5234 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
5236 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
5237 * sysdeps/sh/sh4/__longjmp.S: Likewise.
5238 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
5239 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
5240 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
5241 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
5243 2009-02-04 Ulrich Drepper <drepper@redhat.com>
5245 * po/ru.po: Update from translation team.
5247 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
5249 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
5250 Add _tid slot to maintain consistency with kernel.
5252 2009-02-04 Ulrich Drepper <drepper@redhat.com>
5254 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
5255 incomplete characters at end of input buffer.
5256 * libio/Makefile (tests): Add tst-fgetwc.
5257 * libio/tst-fgetwc.c: New file.
5258 * libio/tst-fgetwc.input: New file.
5260 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
5262 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
5264 2009-02-02 Ulrich Drepper <drepper@redhat.com>
5267 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
5268 *OUTBUFSTART unless the whole output fit into the buffer.
5269 * iconv/Makefile (tests): Add tst-iconv4.
5270 * iconv/tst-iconv4.c: New file.
5272 2009-02-01 Ulrich Drepper <drepper@redhat.com>
5274 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
5275 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5277 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
5279 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
5280 newer linker scripts.
5282 2009-01-30 Ulrich Drepper <drepper@redhat.com>
5285 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
5286 inotify_rm_watch should have type int.
5288 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
5290 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5291 Make aligned_restore_vmx a local symbol.
5292 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
5295 2009-01-30 Andreas Jaeger <aj@suse.de>
5297 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
5298 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
5299 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
5300 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
5301 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
5302 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
5303 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
5305 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
5308 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
5309 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
5311 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
5314 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5315 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
5316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5317 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
5319 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
5321 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
5322 memcpy instead of memcmp.
5323 (_dl_setup_pointer_guard): Likewise.
5325 2009-01-30 Ulrich Drepper <drepper@redhat.com>
5327 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
5328 manipulated brk, use malloc_printerr.
5329 * misc/sbrk.c (__sbrk): Better error handling for nonsense
5332 2009-01-30 Jakub Jelinek <jakub@redhat.com>
5334 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
5335 rindex): For C++ add inlines so that they can be recognized as
5337 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
5339 2009-01-29 Ulrich Drepper <drepper@redhat.com>
5340 Jakub Jelinek <jakub@redhat.com>
5342 * string/string.h: Define correct C++ prototypes for gcc 4.4.
5343 * wcsmbs/wchar.h: Likewise.
5345 2009-01-29 Ulrich Drepper <drepper@redhat.com>
5347 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
5348 (stackinfo_sub_sp): Define.
5350 2009-01-28 Ulrich Drepper <drepper@redhat.com>
5353 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
5354 * include/alloca.h (alloca_account): Define.
5355 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
5356 (stackinfo_sub_sp): Define.
5358 * nscd/connections.c (nscd_init): If database file access fails
5359 check whether this is due to permission problems and bail in that
5363 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
5364 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
5366 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5368 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
5369 Add "t" to clobber list.
5370 (INTERNAL_SYSCALL_NCS): Likewise.
5372 2009-01-28 Ulrich Drepper <drepper@redhat.com>
5374 * nss/getent.c (print_networks): Don't print comma between aliases.
5376 2009-01-23 Ulrich Drepper <drepper@redhat.com>
5378 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
5380 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
5382 * misc/Makefile (tests): Add bug-hsearch1.
5383 * misc/bug-hsearch1.c: New file.
5385 2009-01-22 Roland McGrath <roland@redhat.com>
5387 * Makeconfig (%.v.i): Strip trailing # comments,
5388 not only whole-line comments.
5390 2009-01-10 Ulrich Drepper <drepper@redhat.com>
5392 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
5393 one parameter. If non-NULL use it to initialize return value.
5394 (_dl_setup_pointer_guard): New function.
5395 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5396 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
5397 * elf/rtld.c (security_init): Pass _dl_random to
5398 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
5400 * elf/dl-sysdep.c (_dl_random): New variable.
5401 (_dl_sysdep_start): Handle AT_RANDOM.
5402 (_dl_show_auxv): Likewise.
5403 * elf/dl-support.c (_dl_random): New variable.
5404 (_dl_aux_init): Handle AT_RANDOM.
5405 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
5406 to _dl_setup_stack_chk_guard.
5408 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
5410 2009-01-10 Roland McGrath <roland@redhat.com>
5412 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
5414 2009-01-08 Ulrich Drepper <drepper@redhat.com>
5416 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
5419 * nss/nss_files/files-parse.c (strtou32): New function.
5420 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
5421 across 32-bit and 64-bit platforms.
5422 (INT_FIELD_MAYBE_NULL): Likewise.
5424 2009-01-08 Jakub Jelinek <jakub@redhat.com>
5427 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
5428 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
5429 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
5432 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
5435 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5436 being NULL also if there are no backreferences.
5437 * posix/rxspencer/tests: Add testcases.
5439 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
5442 * posix/bug-regex17.c: Add testcases.
5443 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5446 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
5448 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
5449 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
5450 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
5451 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
5453 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
5454 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
5455 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
5456 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
5457 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5458 * sysdeps/unix/sysv/linux/s390/Versions: New file.
5460 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
5462 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5463 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5464 re_string_skip_chars, re_string_reconstruct): Likewise.
5465 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5467 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
5469 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
5470 adjust the buffer alignment.
5472 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5474 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
5475 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
5478 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
5479 flavor to description only when flavor is not NULL.
5481 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
5482 mutex after SIGIO/SIGURG lookup loop.
5484 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5486 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
5488 2009-01-03 Ulrich Drepper <drepper@redhat.com>
5490 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
5493 2009-01-02 Ulrich Drepper <drepper@redhat.com>
5495 * sysdeps/unix/sysv/linux/kernel-features.h
5496 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
5498 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
5499 if no output is written.
5501 * version.h: Bump to 2.10 development.
5503 * posix/getconf.c: Update copyright year.
5504 * nss/getent.c: Likewise.
5505 * iconv/iconvconfig.c: Likewise.
5506 * iconv/iconv_prog.c: Likewise.
5507 * elf/ldconfig.c: Likewise.
5508 * catgets/gencat.c: Likewise.
5509 * csu/version.c: Likewise.
5510 * elf/ldd.bash.in: Likewise.
5511 * elf/sprof.c (print_version): Likewise.
5512 * locale/programs/locale.c: Likewise.
5513 * locale/programs/localedef.c: Likewise.
5514 * nscd/nscd.c (print_version): Likewise.
5515 * debug/xtrace.sh: Likewise.
5516 * malloc/memusage.sh: Likewise.
5517 * malloc/mtrace.pl: Likewise.
5518 * debug/catchsegv.sh: Likewise.
5520 2008-12-29 Mike Frysinger <vapier@gentoo.org>
5522 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5525 2008-12-29 Ulrich Drepper <drepper@redhat.com>
5527 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5528 gethostbyname4_r function call succeeded, just leave the loop.
5531 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5533 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5534 * wctype/Makefile (tests): Add bug-wctypeh.
5535 * wctype/bug-wctypeh.c: New file.
5537 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5538 LOCALDOMAIN is defined.
5539 * nscd/nscd_getai.c (__nscd_getai): Likewise.
5541 * sysdeps/x86_64/bits/select.h: New file.
5543 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5545 2008-12-21 Bruno Haible <bruno@clisp.org>
5548 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5549 if no output is written.
5551 2008-12-13 Klaus Dittrich <kladit@arcor.de>
5553 * login/utmp_file.c (pututline_file): Replace call to dup2 with
5554 libc internal symbol __dup2 to avoid access through the PLT.
5556 2008-12-08 Ulrich Drepper <drepper@redhat.com>
5559 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5560 available only for __USE_GNU.
5562 * inet/Makefile (tests): Add tst-getni2.
5563 * inet/tst-getni2.c: New file.
5566 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5567 NULL when NI_NAMEREQD is set.
5568 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5569 * inet/Makefile (tests): Add tst-getni1.
5570 * inet/tst-getni1.c: New file.
5572 2008-12-03 Petr Baudis <pasky@suse.cz>
5575 * nscd/connections.c (invalidate_cache): Use prune_run_lock
5576 instead of prune_lock.
5577 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5578 * nscd/nscd.h (database_dyn): Add prune_run_cache.
5580 2008-12-07 Ulrich Drepper <drepper@redhat.com>
5582 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5585 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5588 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5589 after reading name server list.
5592 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5593 handling for host name aliases.
5595 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
5597 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5598 instead of doing things manually.
5600 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
5602 * posix/regex_internal.h (build_wcs_upper_buffer):
5603 Return type is reg_error_t.
5605 2008-12-05 Ulrich Drepper <drepper@redhat.com>
5607 * posix/globtest.sh: Use mktemp to create temporary file and
5610 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5612 (__CPU_CLR_S): Likewise.
5613 (__CPU_ISSET_S): Likewise.
5615 2008-12-05 Joseph Myers <joseph@codesourcery.com>
5616 Ulrich Drepper <drepper@redhat.com>
5618 * scripts/firstversion.awk: Use custom comparison function to compare
5620 * scripts/versions.awk: Use sort invocation which can handle
5621 multi-digit sub-version numbers.
5623 2008-12-04 Ulrich Drepper <drepper@redhat.com>
5625 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5626 * locale/iso-639.def: Add Chhattisgarhi entry.
5628 2008-12-02 Ulrich Drepper <drepper@redhat.com>
5630 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5632 (_nss_dns_gethostbyname4_r): Likewise.
5633 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5634 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5635 gethostbyname4_r, we don't have a separate IPv6 status, so copy
5636 the no_data variable.
5638 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5639 information at the correct index.
5641 * socket/sys/socket.h: Declare accept4.
5642 * socket/accept4.c: New file.
5643 * sysdeps/unix/sysv/linux/accept4.c: New file.
5644 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5645 * socket/Makefile (routines): Add accept4.
5646 * socket/Versions: Export accept4 with version GLIBC_2.10.
5647 * socket/paccept.c: Removed.
5648 * sysdeps/unix/sysv/linux/paccept.c: Removed.
5649 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5650 * Versions.def: Define GLIBC_2.10 for libc.
5651 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5653 * nscd/connections.c: Use accept4.
5655 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5657 2008-12-01 Ulrich Drepper <drepper@redhat.com>
5659 * resolv/res_send.c (send_dg): Create sockets with non-blocking
5662 * stdlib/setenv.c (unsetenv): Don't search environment if it does
5664 * stdlib/Makefile (tests): Add tst-unsetenv1.
5665 * stdlib/tst-unsetenv1.c: New file.
5667 2008-11-29 Ulrich Drepper <drepper@redhat.com>
5669 * login/utmp_file.c (file_writable): New variable.
5670 (setutent_file): Don't try to open file for writing.
5671 (pututline_file): Before writing, make descriptor writable if
5674 2008-11-26 Ulrich Drepper <drepper@redhat.com>
5676 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5677 to IPv4 or IPv6 if an interface has been found.
5679 2008-11-26 Roland McGrath <roland@redhat.com>
5681 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5682 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5684 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5685 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5686 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5688 * elf/elf.h (NT_386_IOPERM): New macro.
5689 (NT_PPC_VSX): New macro.
5691 2008-11-25 Roland McGrath <roland@redhat.com>
5693 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5694 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5695 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5696 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5697 Subdirectories moved to ports repository.
5698 * configure.in (base_machine): Remove alpha case.
5700 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
5702 * sysdeps/mach/strerror_l.c: New file.
5704 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
5707 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5708 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5710 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5711 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5712 (relax_fenv_state): Same as above.
5713 (FPSCR_29): Reserve bit in ISA 2.05.
5714 (FPSCR_NI): Provide define for compat.
5715 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5717 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5719 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
5720 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5721 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5722 access to hwcap to account for hwcap size increase to uint64_t.
5723 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5726 (*setcontext): Likewise.
5727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5732 (*setcontext): dynamically select mtfsf insn based on
5733 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5734 increase to uint64_t.
5735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5736 (*swapcontext): dynamically select mtfsf insn based on
5737 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5738 increase to uint64_t.
5739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5744 (*setcontext): dynamically select mtfsf insn based on
5745 PPC_FEATURE_HAS_DFP.
5746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5747 (*swapcontext): dynamically select mtfsf insn based on
5748 PPC_FEATURE_HAS_DFP.
5750 2008-11-13 Ulrich Drepper <drepper@redhat.com>
5752 * version.h: Bump for 2.9 release.
5753 * include/features.h (__GLIBC_MINOR__): Bump to 9.
5756 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5757 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5760 2008-11-11 Ulrich Drepper <drepper@redhat.com>
5763 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5764 unknown request types for now.
5766 2008-11-11 Roland McGrath <roland@redhat.com>
5768 * sysdeps/x86_64/configure: New file.
5770 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5771 * configure: Regenerated.
5773 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5775 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5776 correct instruction to remove the stack frame.
5778 2008-11-03 Michael Matz <matz@suse.de>
5780 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5781 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5783 2008-11-07 Jakub Jelinek <jakub@redhat.com>
5785 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5788 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5789 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5790 of the thread variable instead of void *.
5791 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5792 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5793 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5794 __libc_tsd_define arguments.
5795 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5796 __libc_tsd_address arguments. Remove union hack.
5797 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5798 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5799 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5800 Adjust __libc_tsd_{set,get} arguments.
5801 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5802 __libc_tsd_define arguments.
5803 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5805 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5806 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5807 (LOCALE): Adjust __libc_tsd_define arguments.
5808 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5810 (LOCALE): Adjust __libc_tsd_define arguments.
5811 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5813 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5816 2008-11-02 Ulrich Drepper <drepper@redhat.com>
5818 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5819 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5821 2008-11-01 Ulrich Drepper <drepper@redhat.com>
5824 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5826 2008-10-24 Joseph Myers <joseph@codesourcery.com>
5827 Ulrich Drepper <drepper@redhat.com>
5829 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5830 definition for GCC 3.1 and later.
5832 2008-10-31 Jakub Jelinek <jakub@redhat.com>
5834 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5835 refetch dtv, as it might have changed.
5836 * elf/Makefile: Add rules to build and run tst-tls18.
5837 * elf/tst-tls18.c: New test.
5838 * elf/tst-tlsmod18a.c: New file.
5840 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
5843 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5845 2008-10-31 Ulrich Drepper <drepper@redhat.com>
5848 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5851 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5852 Fix length of copy operation.
5854 2008-10-02 Pierre Habouzit <madcoder@debian.org>
5856 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5857 and fix its calling convention.
5859 2008-10-07 Andreas Schwab <schwab@suse.de>
5862 * resolv/res_send.c (send_vc): Fix last change.
5863 (send_dg): Align here as well.
5865 2008-10-31 Ulrich Drepper <drepper@redhat.com>
5867 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5868 return value in case rlimit is RLIM_INFINITY.
5871 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5873 * resource/Makefile (tests): Add bug-ulimit1.
5874 * resource/bug-ulimit1.c: New file.
5877 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5878 without dot. Properly terminate the string with a null byte.
5879 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5882 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5884 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5888 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5890 2008-10-30 Ulrich Drepper <drepper@redhat.com>
5892 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5893 abort if there is no initgroups_dyn function.
5895 * resolv/res_send.c (send_dg): On timeout, only return nonzero
5896 result if any of the queries really provided an answer.
5898 2008-10-28 Ulrich Drepper <drepper@redhat.com>
5900 * po/lt.po: Update from translation team.
5902 2008-10-26 Ulrich Drepper <drepper@redhat.com>
5904 * po/id.po: Update from translation team.
5906 2008-10-24 Ulrich Drepper <drepper@redhat.com>
5908 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5909 Fix tests for existence of second reply.
5911 2008-10-23 Ulrich Drepper <drepper@redhat.com>
5913 * po/id.po: New file.
5914 Contributed by the Indonesian translation team.
5916 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
5918 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5921 2008-10-17 Jakub Jelinek <jakub@redhat.com>
5923 * elf/Makefile: Add rules to build and run tst-tls17.
5924 * elf/tst-tls17.c: New test.
5925 * elf/tst-tlsmod17a.c: New file.
5926 * elf/tst-tlsmod17b.c: Likewise.
5928 2008-10-17 Ulrich Drepper <drepper@redhat.com>
5930 * stdlib/divmod_1.c: Use correct type for dummy variable.
5931 * stdlib/mod_1.c: Likewise.
5933 2008-10-16 Ulrich Drepper <drepper@redhat.com>
5935 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5937 2008-10-16 Jakub Jelinek <jakub@redhat.com>
5939 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5940 __nonnull order for C++.
5941 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5942 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5944 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
5946 * stdlib/longlong.h: Update from GCC.
5948 2008-10-09 Jakub Jelinek <jakub@redhat.com>
5949 David S. Miller <davem@davemloft.net>
5951 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5952 make sure any registers used with 64-bit 'branch-on-register'
5953 instructions have their top 32-bits clear.
5954 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5955 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5957 2008-09-18 Andreas Schwab <schwab@suse.de>
5960 * resolv/res_send.c (send_vc): Fix use of unaligned address.
5961 Properly handle partial reads.
5963 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
5965 * elf/elf.h (STO_MIPS_PLT): New.
5967 (R_MIPS_JUMP_SLOT): New.
5968 (R_MIPS_NUM): Redefine to 128.
5969 (DT_MIPS_PLTGOT): New.
5970 (DT_MIPS_RWPLT): New.
5971 (DT_MIPS_NUM): Redefine to 0x35.
5973 2008-10-01 Ulrich Drepper <drepper@redhat.com>
5975 * timezone/africa: Update from tzdata2008f.
5976 * timezone/asia: Likewise.
5977 * timezone/australasia: Likewise.
5978 * timezone/europe: Likewise.
5979 * timezone/leapseconds: Likewise.
5980 * timezone/northamerica: Likewise.
5981 * timezone/southamerica: Likewise.
5982 * timezone/zone.tab: Likewise.
5984 2008-09-30 Ulrich Drepper <drepper@redhat.com>
5986 * nscd/connections.c: Disable use of paccept for now.
5988 2008-09-29 Ulrich Drepper <drepper@redhat.com>
5990 * socket/Versions: Remove paccept export for GLIBC_2.9.
5991 * socket/Makefile (routines): Remove paccept.
5992 * socket/sys/socket.h: Remove paccept declaration.
5994 * po/sv.po: Update from translation team.
5996 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
5998 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5999 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6001 2008-09-16 Ulrich Drepper <drepper@redhat.com>
6003 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
6004 Patch by Olivier Fourdan <ofourdan@redhat.com>.
6006 2008-09-15 Ulrich Drepper <drepper@redhat.com>
6008 * sunrpc/rpc/svc.h: Declare svcfd_create.
6009 Patch by Michael Solberg <msolberg@redhat.com>.
6011 2008-09-12 Flavio Leitner <fleitner@redhat.com>
6012 Ulrich Drepper <drepper@redhat.com>
6014 * malloc/malloc.c (public_vALLOc): Try other arenas in case
6016 (public_pVALLOc): Likewise.
6018 2008-09-02 Andreas Jaeger <aj@suse.de>
6020 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
6023 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
6026 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
6028 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
6030 * Makefile (check-data): Check data directory in add-ons.
6031 * elf/Makefile (check-data): Likewise.
6033 2008-08-18 Roland McGrath <roland@redhat.com>
6035 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
6036 * configure: Regenerated.
6037 * config.make.in (cflags-cpu): New substituted variable.
6038 (with-cpu): Variable removed.
6039 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
6041 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
6044 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
6045 __signbitl definition and __LONG_DOUBLE_128__ guard from:
6046 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
6047 redundant. Functions which call floating point assembler operations
6048 should go into a sysdeps powerpc/fpu directory.
6050 2008-08-15 Ulrich Drepper <drepper@redhat.com>
6052 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
6053 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
6055 2008-08-14 Ulrich Drepper <drepper@redhat.com>
6057 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
6059 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
6060 change related to AT_EXECFN. We cannot use that string.
6061 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
6063 * elf/dl-support.c: Remove _dl_execfn variable.
6064 (_dl_aux_init): Remove handling of AT_EXECFN.
6065 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
6066 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
6068 2008-08-13 Ulrich Drepper <drepper@redhat.com>
6071 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
6072 byte gets added to writes and seeks from the end use the length of
6073 the buffer and not the currently terminating NUL byte.
6076 * login/utmp_file.c (getutent_r_file): Take additional parameter.
6077 Set to true if locking failed.
6078 (getutid_r_file): Adjust caller.
6079 (pututline_file): Likewise. Return NULL in this case.
6080 Patch mostly by halesh.s@gmail.com.
6082 2008-08-12 Ulrich Drepper <drepper@redhat.com>
6085 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
6087 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
6089 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
6092 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
6093 macro since it is now available in elf/dynamic-link.h.
6095 2008-08-12 Roland McGrath <roland@frob.com>
6097 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
6098 in case used outside of libc.
6099 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
6101 2008-08-11 Ulrich Drepper <drepper@redhat.com>
6103 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
6104 directly instead of going through dn_comp.
6106 2008-08-11 Aurelien Jarno <aurel32@debian.org>
6108 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
6109 Fix asm constraints.
6111 2008-08-07 Ulrich Drepper <drepper@redhat.com>
6114 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
6115 (IPV6_PMTUDISC_PROBE): Likewise.
6117 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
6120 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
6122 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
6123 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6126 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
6127 Added the members 'vsx' and 'arch_2_06'.
6128 (_dl_powerpc_platforms): Add the member 'power7'.
6129 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
6130 to reflect the changes required by VSX and ISA 2.06.
6131 Modify _DL_PLATFORMS_COUNT to reflect the addition of
6133 Defined PPC_PLATFORM_POWER7.
6134 (_dl_string_platform): Add support for POWER7.
6135 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
6136 capability and ISA 2.06.
6138 2008-08-07 Ulrich Drepper <drepper@redhat.com>
6141 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
6142 macro to detect use of 128 bit long double.
6143 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
6145 2008-08-05 Ulrich Drepper <drepper@redhat.com>
6147 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
6150 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
6152 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
6153 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
6155 2008-08-03 Ulrich Drepper <drepper@redhat.com>
6157 * nscd/connections.c (main_loop_poll): Pass a buffer which is
6158 guaranteed to be large enough to read inotify event. Ignore
6159 EAGAIN error. Better error message. Add branch predicition.
6160 (main_loop_epoll): Likewise.
6162 2008-08-02 Roland McGrath <roland@frob.com>
6164 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
6165 Add memory clobbers.
6167 2008-08-02 Ulrich Drepper <drepper@redhat.com>
6169 * manual/arith.texi: Avoid @strong{Note:}.
6170 * manual/creature.texi: Likewise.
6171 * manual/filesys.texi: Likewise.
6172 * manual/math.texi: Likewise.
6173 * manual/memory.texi: Likewise.
6174 * manual/resource.texi: Likewise.
6175 * manual/syslog.texi: Likewise.
6176 * manual/time.texi: Likewise.
6178 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
6181 2008-08-01 Ulrich Drepper <drepper@redhat.com>
6183 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
6184 new epoll_create1 interface.
6185 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6186 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
6187 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6189 * include/arpa/nameser.h (NS_GET16): Use const pointer.
6190 (NS_GET32): Likewise.
6192 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
6195 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
6196 use the AT_EXECFN value if it is no absolute path.
6197 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
6200 * Versions.def: Add GLIBC_2.9 to libresolv.
6201 * include/resolv.h: Remove hidden proto declarations for __ns_*
6202 functions. Add them for __dn_count_labels and __p_secstodate.
6203 * include/arpa/nameser.h: Add a number of hidden proto declarations.
6204 Define ns_msg_getflags macro here.
6205 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
6207 * resolv/Versions: Export functions from <arpa/nameser.h> from
6208 libresolv in version GLIBC_2.9.
6209 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
6211 * resolv/ns_netint.c: Likewise.
6212 * resolv/ns_parse.c: Likewise.
6213 * resolv/ns_print.c: Likewise.
6214 * resolv/ns_samedomain.c: Likewise.
6215 * resolv/ns_ttl.c: Likewise.
6216 * resolv/arpa/nameser_compat.h: Likewise.
6217 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
6219 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
6220 instead of ns_get16.
6221 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
6222 __ns_get32 instead of ns_get16 and ns_get32 respectively.
6223 (gaih_getanswer_slice): Likewise.
6224 * resolv/Makefile (libresolv-routines): Add ns_date.
6225 * resolv/ns_date.c: New file.
6227 * elf/Makefile (check-localplt.out): Also check libresolv and
6230 2008-07-31 Ulrich Drepper <drepper@redhat.com>
6232 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6235 2008-07-30 Ulrich Drepper <drepper@redhat.com>
6237 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
6238 buffer passed to NSS functions.
6240 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
6242 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
6245 * misc/syslog.c (openlog_internal): Fix compile problem.
6247 2008-07-28 Roland McGrath <roland@redhat.com>
6249 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
6251 2008-07-28 Ulrich Drepper <drepper@redhat.com>
6253 * io/ftw.c (add_object): Remove inline to avoid warning.
6255 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
6257 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
6258 Use it instead of locally defined resplen2 variable.
6259 (res_nsend): Adjust for __libc_res_nsend interface change.
6260 (send_vc): Initialize *resplen2 if necessary. Read length of
6261 package into an appropriately aligned variable. Store converted length
6262 in new variable and use it appropriately.
6263 Add branch prediction help.
6264 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
6265 and pass it on to __libc_res_nsend. Adjust all callers.
6266 (__libc_res_nsearch): Likewise.
6267 (__libc_res_nqeurydomain): Likewise.
6268 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
6270 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
6271 Define resplen2 variable and pass it to __libc_res_nsearch and then
6273 (getanswer_r): In case of incorrect DNS data don't overread buffer.
6274 Add branch prediction.
6275 (gaih_getanswer_slice): Likewise. Check for invalid data types.
6276 (gaih_getanswer): Don't decode second slice if first one failed due
6277 to a too small buffer. Don't let not found status of second
6278 decoder shadow results of the first.
6279 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
6280 and __libc_res_nquery interface changes
6281 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
6282 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
6283 __libc_res_nsearch, and __libc_res_nsend.
6284 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
6286 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
6287 __libc_res_nsearch interface changes.
6289 2008-07-27 Ulrich Drepper <drepper@redhat.com>
6291 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
6293 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
6294 file descriptors with close-on-exec set.
6295 (exec_comm_child): Fix the case where the write end of the pipe is
6296 STDOUT_FILENO already. In case it is, clear close-on-exec.
6298 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
6299 * io/pipe2.c: Likewise.
6300 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
6301 instead of __ASSUME_PACCEPT.
6302 * include/unistd.h: Declare __have_pipe2.
6303 * libio/iopopen.c: Implement "e" flag.
6304 * libio/Makefile (tests): Add tst-popen1.
6305 * libio/tst-popen1.c: New file.
6307 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
6308 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6310 2008-07-26 Ulrich Drepper <drepper@redhat.com>
6313 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
6314 success call of _IO_SEEKOFF or calls which failed because the
6315 descriptor is for a pipe.
6317 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
6320 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
6322 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
6323 F_SETFD use if we know fopen set the flag.
6325 * login/utmp_file.c (setutent_file): Minor optimization in case
6326 O_CLOEXEC is available.
6328 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
6330 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
6331 * elf/Makefile: Use pie-ccflag variable.
6332 * nscd/Makefile: Likewise.
6333 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
6335 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
6338 * Versions.def: Add GLIBC_2.9 version tag for libutil.
6339 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
6340 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
6341 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
6342 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
6343 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
6344 utmp32, utmpx32 and login32.
6345 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
6346 versions of struct utmp functions to libc and libutil.
6347 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
6348 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
6349 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
6350 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
6351 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
6352 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
6353 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
6354 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
6355 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
6356 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
6357 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
6358 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
6359 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
6360 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
6361 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
6362 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
6363 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
6364 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
6365 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
6366 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
6367 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
6368 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
6370 2008-07-26 Ulrich Drepper <drepper@redhat.com>
6372 * scripts/gen-as-const.awk: Generate more widely usable code by
6373 using 64-bit arithmetic.
6375 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
6376 the same treatment as narrow output code in last patch.
6378 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
6381 * elf/dl-load.c (local_strdup): Remove inline.
6382 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
6383 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
6386 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
6388 2008-07-25 Ulrich Drepper <drepper@redhat.com>
6390 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
6391 the new syscalls, too.
6393 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
6394 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
6397 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
6398 parameter for end of buffer. If temporary copy is too large use
6400 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
6402 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
6403 string rewrite when allocating buffer.
6405 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
6408 * nscd/connections.c (nscd_init): Clean up fcntl call.
6410 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
6411 SOCK_NONBLOCK if possible.
6413 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
6414 SOCK_CLOEXEC if available.
6416 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
6417 __libc_clntudp_bufcreate_internal.
6418 * include/sys/socket.h: Declare __have_sock_cloexec.
6419 * socket/Makefile (aux): Add have_sock_cloexec.
6420 * socket/have_sock_cloexec.c: New file.
6421 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
6422 __libc_clntudp_bufcreate.
6423 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
6424 which takes an additional parameter. Create socket with non-blocking
6425 mode and close-on-exec flag set, if wanted.
6426 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
6427 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
6428 instead of clntudp_create. The socket has already the close-on-exec
6429 flag set if SOCK_CLOEXEC is defined.
6431 2008-07-24 Ulrich Drepper <drepper@redhat.com>
6433 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6434 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
6436 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
6437 non-blocking mode by using socket, paccept, and inotify_init1.
6439 * Versions.def (glibc): Add GLIBC_2.9.
6440 * io/Makefile (routines): Add dup3 and pipe2.
6441 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
6442 * io/dup3.c: New file.
6443 * io/pipe2.c: New file.
6444 * posix/unistd.h: Declare dup3 and pipe2.
6445 * socket/Makefile (routines): Add paccept.
6446 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
6447 * socket/paccept.c: New file.
6448 * socket/sys/socket.h: Declare paccept.
6449 * sysdeps/unix/syscalls.list: Add entry for dup3.
6450 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
6451 epoll_create2 and inotify_init1.
6452 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
6453 * sysdeps/unix/sysv/linux/paccept.c: New file.
6454 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
6456 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
6457 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
6458 inotify_init1, and pipe2 entries.
6459 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
6460 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
6461 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
6462 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
6463 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
6464 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
6466 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
6467 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
6468 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
6469 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
6470 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
6471 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
6472 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
6473 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
6474 EPOLL_NONBLOCK. Declare epoll_create2.
6475 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
6477 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
6478 IN_NONBLOCK. Declare inotify_init1.
6479 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
6481 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
6484 * elf/elf.h: Define AT_EXECFN.
6485 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
6487 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
6488 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
6489 if __ASSUME_AT_EXECFN is defined.
6490 (_dl_aux_init): Handle AT_EXECFN.
6491 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
6493 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
6494 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
6495 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
6496 _dl_execfn if available and avoid compatibility code if
6497 __ASSUME_AT_EXECFN is defined.
6499 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
6500 _dl_discover_osversion only for older kernels.
6502 2008-07-22 Roland McGrath <roland@frob.com>
6504 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
6506 2008-07-21 Roland McGrath <roland@frob.com>
6508 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
6509 returned too much data out of line.
6511 2008-07-20 Ulrich Drepper <drepper@redhat.com>
6513 * locale/setlocale.c (setname): Remove inline to avoid compiler
6517 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6519 2008-07-15 Ulrich Drepper <drepper@redhat.com>
6521 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6522 doesn't manage to write anything, fail.
6524 * malloc/hooks.c (__malloc_check_init): Remove printf.
6526 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6528 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6530 2008-07-12 Ulrich Drepper <drepper@redhat.com>
6532 * nscd/connections.c (main_loop_poll): Fix handling of read errors
6534 (main_loop_epoll): Likewise.
6536 2008-07-09 Ulrich Drepper <drepper@redhat.com>
6538 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6540 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6541 if DEBUG is defined.
6543 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6544 query. Adjust buffer size computation for padding.
6546 2008-07-08 Ulrich Drepper <drepper@redhat.com>
6548 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6549 * stdio-common/tst-setvbuf1.c: New file.
6550 * stdio-common/tst-setvbuf1.expect: New file.
6553 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6554 when selecting fully-buffered stream.
6555 Patch by Wang Xin <wxinee@gmail.com>.
6557 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
6559 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6560 (__open_2): New function.
6561 (__open64_2): New alias to __open_2.
6562 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6563 (__openat_2): New function.
6564 (__openat64_2): New alias to __openat_2.
6566 2008-07-06 Ulrich Drepper <drepper@redhat.com>
6569 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6571 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6573 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6574 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6575 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6577 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6578 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6579 * sysdeps/mach/hurd/send.c (__send): Likewise.
6580 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6581 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6583 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
6585 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6586 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6587 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6588 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6589 * hurd/get-host.c (_hurd_get_host_config): Likewise.
6590 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6592 2008-06-27 Ulrich Drepper <drepper@redhat.com>
6595 * time/strptime_l.c: Don't clear s.era_cnt after successful match
6597 Patch by Petr Baudis.
6599 2008-06-26 Ulrich Drepper <drepper@redhat.com>
6601 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6602 Patch by Peter Jones <pjones@redhat.com>.
6604 2008-06-25 Ulrich Drepper <drepper@redhat.com>
6607 * stdlib/canonicalize.c (__realpath): readlink can write too much
6608 into the buffer on platforms without PATH_MAX.
6610 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
6613 * posix/tst-regex.c (main): Rename to...
6614 (do_test): ... this. Remove cmdline option processing.
6616 (TEST_FUNCTION): Define.
6617 (CMDLINE_OPTIONS): Define.
6619 2008-06-25 Ulrich Drepper <drepper@redhat.com>
6622 * configure.in: Add -Werror to -fstack-protector test to catch
6623 unsupported architectures.
6624 Patch by Gilles Esponasse <g.esp@free.fr>.
6626 2008-06-17 Joseph Myers <joseph@codesourcery.com>
6628 * stdlib/tst-setcontext.c: Set back_in_main before exit if
6629 getcontext returns ENOSYS.
6631 2008-06-18 Ulrich Drepper <drepper@redhat.com>
6633 * nscd/connections.c (main_loop_poll): Fix test for read error.
6634 (main_loop_epoll): Likewise.
6636 2008-06-13 Ulrich Drepper <drepper@redhat.com>
6638 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6639 better place so it is not called when nscd is used.
6641 * nscd/connections.c: Also recognize and handle changes to the
6642 resolver configuration file.
6644 2008-06-12 Ulrich Drepper <drepper@redhat.com>
6646 * time/strftime.c: Pass reference to tzset_called around to handle
6650 * time/strftime.c (__strftime_internal): Call tzset() only
6651 when printing timezone-dependent values.
6652 Based on a patch by Petr Baudis <pasky@suse.cz>.
6654 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6655 unconditionally use second gaih_getanswer_slice result.
6657 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6658 (getaddrinfo): RES must always be non-NULL.
6660 2008-06-12 Jakub Jelinek <jakub@redhat.com>
6662 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6664 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6665 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6667 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6670 2008-06-12 Ulrich Drepper <drepper@redhat.com>
6672 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6674 * nscd/connections.c (inotify_fd): New variable.
6675 (nscd_init): Try to open an inotify descriptor.
6676 If successful, watch files for databases using inotify instead of
6677 having prune threads stat the files.
6678 (nscd_run_prune): Recognize clear_cache flag being set and call
6679 prune_cache appropriately.
6680 (main_loop_poll): Add inotify descriptor to wait set and handle the
6682 (main_loop_epoll): Likewise.
6683 * nscd/cache.c (prune_cache): Don't stat files for databases if
6685 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6686 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6688 * nscd/grpcache.c (cache_addgr): Correctly compute size of
6689 fixed-size portion of the record.
6690 * nscd/servicescache.c (cache_addserv): Likewise.
6691 * nscd/pwdcache.c (cache_addpw): Likewise.
6692 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6694 2008-06-11 Ulrich Drepper <drepper@redhat.com>
6696 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6697 out we don't use uninitialized memory.
6699 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6702 2008-06-10 Ulrich Drepper <drepper@redhat.com>
6704 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6705 ignore T_DNAME messages.
6706 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6708 2008-06-05 Jakub Jelinek <jakub@redhat.com>
6710 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6711 Avoid segfault if first GETC returns eof/'\0'/'\n'.
6713 2008-06-03 Jakub Jelinek <jakub@redhat.com>
6715 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6716 instead of portstr to nscd_getserv_r. Patch by
6717 Roman Kagan <rkagan@mail.ru>.
6719 2008-05-26 Jim Meyering <meyering@redhat.com>
6721 Remove more useless "if" tests before "free".
6722 * include/inline-hashtab.h (htab_delete): Likewise.
6723 * libio/freopen.c (freopen): Likewise.
6724 * libio/freopen64.c (freopen64): Likewise.
6725 * locale/programs/ld-collate.c (collate_read): Likewise.
6726 * misc/fstab.c (libc_freeres_fn): Likewise.
6727 * posix/glob.c (globfree): Likewise.
6729 2008-05-24 Ulrich Drepper <drepper@redhat.com>
6731 * string/Makefile (strop-tests): Add memmem.
6732 * string/test-memmem.c: New file.
6733 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6734 (test_init): Size buf1 according to BUF1PAGES.
6736 2008-05-24 Jakub Jelinek <jakub@redhat.com>
6738 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6739 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6740 (CFLAGS-scanf17.c): New.
6741 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6742 * stdio-common/scanf15.c (main): Likewise.
6743 * stdio-common/scanf16.c: New file.
6744 * stdio-common/scanf17.c: New file.
6746 2008-05-24 Ulrich Drepper <drepper@redhat.com>
6748 * resolv/res_send.c (send_dg): If we already have one of two
6749 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6750 use the one answer insted of failing.
6752 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
6754 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6755 being executed on PowerPC as the expected result exceeds IBM
6756 long double 128 __LDBL_MAX__.
6758 2008-05-21 Roland McGrath <roland@redhat.com>
6760 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6762 * Makefile (check-data): Use $(abi-name) before other guesses.
6763 Look in $(add-ons) dirs before scripts/data/.
6764 * elf/Makefile (check-data): Likewise.
6766 * scripts/soversions.awk: Grok ABI line.
6767 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6768 Emit definition for abi-name variable.
6770 2008-05-21 Ulrich Drepper <drepper@redhat.com>
6772 * string/endian.h: Define new fixed-size hto* and *toh macros only
6775 * iconvdata/Depend: Add localedata.
6777 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6779 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6781 2008-05-08 David S. Miller <davem@davemloft.net>
6783 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6785 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6786 (__SYSCALL_CLOBBERS): Remove %g* registers.
6787 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6788 (__SYSCALL_CLOBBERS): Likewise.
6789 * scripts/data/localplt-sparc-linux-gnu.data: New file.
6790 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6792 2008-05-21 Jakub Jelinek <jakub@redhat.com>
6794 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6795 (CALL_ERRNO_LOCATION): Define.
6796 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6797 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6798 (CALL_ERRNO_LOCATION): Define.
6799 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6800 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6801 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6803 2008-05-20 Ulrich Drepper <drepper@redhat.com>
6805 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6808 2008-05-20 Jakub Jelinek <jakub@redhat.com>
6810 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6811 (FIRST_FRAME_POINTER): Define.
6813 2008-05-09 David S. Miller <davem@davemloft.net>
6815 * sysdeps/sparc/sparc64/backtrace.c: New file.
6817 2008-05-14 David S. Miller <davem@davemloft.net>
6819 * sysdeps/sparc/machine-gmon.h: New file.
6820 * sysdeps/sparc/sparc-mcount.S: Likewise.
6821 * sysdeps/sparc/Makefile: Add sparc-mcount target to
6822 sysdep_routines in gmon directory.
6824 2008-05-19 Jakub Jelinek <jakub@redhat.com>
6826 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6828 2008-05-19 Ulrich Drepper <drepper@redhat.com>
6830 * resolv/res_query.c (__libc_res_nquery): In case one of two
6831 answer was too short don't try to read that answer's header.
6833 * resolv/res_send.c (send_dg): In case of timeout and there are
6834 two queries and one has been answered, return value indicating
6837 2008-05-18 Ulrich Drepper <drepper@redhat.com>
6839 * nscd/cache.c (cache_add): Take additional parameter specifying
6840 whether this is in response of a cache refill. Check alignment
6841 of package data. Revamp waking of pruning thread.
6842 (prune_cache): Small optimization.
6843 * nscd/nscd.h: Adjust cache_add prototypes.
6844 * nscd/aicache.c: Adjust cache_add calls.
6845 * nscd/grpcache.c: Likewise.
6846 * nscd/hstcache.c: Likewise.
6847 * nscd/initgrcache.c: Likewise.
6848 * nscd/pwdcache.c: Likewise.
6849 * nscd/servicescache.c: Likewise.
6850 * nscd/connections.c (restart): Really disable cache use before
6851 exec attempt. If it fails, reenable cache.
6852 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
6853 time to max to be able to notice concurrent cache additions. Unlock
6854 prune_lock while performing gc. Afterwards compute wakeup time with
6855 current wakeup_time value in mind.
6857 2008-05-17 Ulrich Drepper <drepper@redhat.com>
6859 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6861 * nscd/mem.c (gc): Correctly determine highest used array element
6864 * nscd/mem.c (markrange): Add assert to check entries are all
6865 aligned. Small cleanup in bitmap use.
6867 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6868 blockoff of type nscd_ssize_t.
6869 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6870 (mempoll_alloc): Record block offset and not address.
6872 * nscd/mem.c (gc): Fix test for stack overuse.
6874 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6877 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6878 entry is available, believe it.
6880 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6881 no answers return NSS_STATUS_NOTFOUND.
6882 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6883 buffer does not have any content.
6885 2008-05-16 Ulrich Drepper <drepper@redhat.com>
6887 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6889 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6890 lookup, don't assign canon unconditionally.
6892 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6894 * string/Makefile (distribute): Add str-two-way.h.
6896 2008-03-29 Eric Blake <ebb9@byu.net>
6898 Rewrite string searches to O(n) rather than O(n^2).
6899 * string/str-two-way.h: New file. For linear fixed-allocation
6901 * string/memmem.c: New implementation.
6902 * string/strstr.c: New implementation.
6903 * string/strcasestr.c: New implementation.
6905 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
6907 * posix/regcomp.c (optimize_utf8): Add a note on why we test
6909 (calc_first): Initialize constraint field.
6910 (duplicate_node_closure): Use it instead of special casing ANCHORS.
6911 Use search_duplicated_node to avoid loops. Fix grammar.
6912 (duplicate_node): Merge constraint field for all node types.
6913 (calc_eclosure_iter): Look at constraint field for all node types.
6914 * posix/regex_internal.c (create_cd_newstate): Don't look at
6917 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6920 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6923 * string/endian.h: Add macros for fixed-size endian conversion.
6924 * bits/byteswap.h: Allow inclusion from <endian.h>.
6925 * sysdeps/i386/bits/byteswap.h: Likewise.
6926 * sysdeps/ia64/bits/byteswap.h: Likewise.
6927 * sysdeps/s390/bits/byteswap.h: Likewise.
6928 * sysdeps/x86_64/bits/byteswap.h: Likewise.
6929 * string/Makefile (tests): Add tst-endian.
6930 * string/tst-endian.c: New file.
6932 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6933 Patch by Reuben Thomas.
6935 2008-05-14 Joseph Myers <joseph@codesourcery.com>
6937 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6939 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6941 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6944 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6946 (BODY for __gconv_transform_internal_ascii): Likewise.
6949 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6950 to be treated like link-local addresses.
6951 (match_prefix): Don't treat IPv4 loopback address special when
6952 converting to v4 mapped addressed.
6954 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6956 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6957 * posix/tst-rfc3484-2.c: Likewise.
6958 * posix/tst-rfc3484-3.c: Likewise.
6960 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6963 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6965 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6967 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6969 2008-05-13 Ulrich Drepper <drepper@redhat.com>
6971 * po/lt.po: New file. From Lituanian translation team.
6973 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
6975 Introduce TLS descriptors for i386 and x86_64.
6976 * include/inline-hashtab.h: New file, copied from 2005's
6977 libiberty, with fix for memory leak imported afterwards by
6978 Glauber de Oliveira Costa.
6979 * elf/tlsdeschtab.h: New file.
6980 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6981 (_dl_allocate_static_tls): ... here. Rearrange failure path.
6982 (CHECK_STATIC_TLS): Move to...
6983 * elf/dynamic-link.h: ... this file.
6984 (TRY_STATIC_TLS): New macro.
6985 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6986 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6987 R_386_TLS_DESC): Define.
6988 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6990 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6991 R_X86_64_TLSDESC): Define.
6992 (R_386_NUM, R_X86_64_NUM): Adjust.
6993 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6994 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6995 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6996 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6997 release tlsdesc_table.
6998 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6999 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
7000 (elf_machine_rel): Handle R_386_TLS_DESC.
7001 (elf_machine_rela): Likewise.
7002 (elf_machine_lazy_rel): Likewise.
7003 (elf_machine_lazy_rela): Likewise.
7004 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
7005 * sysdeps/i386/dl-tlsdesc.S: New file.
7006 * sysdeps/i386/dl-tlsdesc.h: New file.
7007 * sysdeps/i386/tlsdesc.c: New file.
7008 * sysdeps/i386/tlsdesc.sym: New file.
7009 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
7011 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
7012 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
7013 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
7014 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
7015 release tlsdesc_table.
7016 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
7017 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
7018 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
7019 (elf_machine_rel): Handle R_X86_64_TLSDESC.
7020 (elf_machine_rela): Likewise.
7021 (elf_machine_lazy_rel): Likewise.
7022 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
7023 (__tls_get_addr): Do not declare for non-shared compiles.
7024 * sysdeps/x86_64/dl-tlsdesc.S: New file.
7025 * sysdeps/x86_64/dl-tlsdesc.h: New file.
7026 * sysdeps/x86_64/tlsdesc.c: New file.
7027 * sysdeps/x86_64/tlsdesc.sym: New file.
7028 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
7029 tlsdesc_table for both 32- and 64-bit structs.
7031 2008-05-11 Ulrich Drepper <drepper@redhat.com>
7033 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
7034 its own function. This reduces the frame setup costs and more.
7036 2008-02-11 Joseph Myers <joseph@codesourcery.com>
7039 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
7040 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
7042 2008-05-11 Ulrich Drepper <drepper@redhat.com>
7044 * io/openat.c (__openat_2): Also pass fd to __openat.
7045 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
7046 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
7048 * string/tester.c (test_memcmp): Add a few more tests.
7049 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
7051 2008-05-10 Ulrich Drepper <drepper@redhat.com>
7053 * nscd/cache.c (cache_add): Before returning with failure and this
7054 is the first use of the record, mark it as unusable.
7055 * nscd/aicache.c: Don't touch the dataset after cache_add returns
7056 reporting a failure.
7057 * nscd/grpcache.c: Likewise
7058 * nscd/hstcache.c: Likewise.
7059 * nscd/initgrcache.c: Likewise.
7060 * nscd/pwdcache.c: Likewise.
7061 * nscd/servicescache.c: Likewise.
7063 2008-05-10 Roland McGrath <roland@redhat.com>
7066 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
7068 2008-05-08 David S. Miller <davem@davemloft.net>
7070 * misc/truncate64.c (truncate64): Use __truncate not truncate.
7072 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
7073 (__ieee754_y0l): Likewise.
7074 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7075 (__ieee754_y1l): Likewise.
7076 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
7077 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
7078 frexpl and ldexpl. math_private.h provides them and the latter
7080 (__log1pl): Use __frexpl.
7082 2008-05-10 Ulrich Drepper <drepper@redhat.com>
7084 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
7086 * include/arpa/nameser_compat.h: Define T_UNSPEC.
7087 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
7088 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
7089 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
7091 (_nss_nis_gethostbyname4_r): New function.
7092 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
7093 Change to also handle af==AF_UNSPEC.
7094 (get_tablename): New function. Use it to avoid duplication.
7095 (_nss_nisplus_gethostbyname4_r): New function.
7096 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
7098 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
7099 * nss/nss.h: Define struct gaih_addrtuple.
7100 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
7102 (_nss_files_gethostbyname4_r): New function.
7103 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
7104 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
7106 * resolv/res_query.c (__libc_res_nquery): Take two additional
7107 parameters for second answer buffer. Handle type=T_UNSPEC to mean
7108 look up IPv4 and IPv6.
7110 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
7111 for an additional query and answer buffer. Pass to send_vc and
7113 (send_vc): Send possibly two requests and receive two answers.
7114 (send_dg): Likewise.
7115 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
7117 (_nss_dns_gethostbyname4_r): New function.
7118 (gaih_getanswer_slice): Likewise.
7119 (gaih_getanswer): Likewise.
7120 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
7121 __libc_res_nquery call.
7122 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7123 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
7124 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
7127 2008-05-05 David S. Miller <davem@davemloft.net>
7129 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
7130 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
7132 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7134 Fix termios bit macros.
7135 Move *DLY definitions where they belong, in termios.h.
7136 Add *[0-3] definitions.
7137 Fixes confusion between VT and FF.
7138 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
7139 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
7140 are already defined to avoid collision with termios.h.
7141 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
7142 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
7143 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
7144 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
7145 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
7146 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
7147 VTDLY, VT0, VT1): New macros.
7148 [__USE_GNU] (OLCUC): Change value of macro.
7149 [__USE_XOPEN] (OFILL): New macro.
7150 [__USE_BSD] (CRTSCTS): Change value.
7151 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
7152 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
7153 (B7200, B14400, B28800, B76800): New macros.
7155 2008-05-01 David S. Miller <davem@davemloft.net>
7157 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
7158 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
7159 (gen-as-const-headers): Add it.
7160 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
7161 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
7162 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
7163 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
7165 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
7166 six system call parameters.
7167 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
7169 2008-04-30 Ulrich Drepper <drepper@redhat.com>
7171 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
7173 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
7174 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
7176 2008-04-30 Jakub Jelinek <jakub@redhat.com>
7178 * stdlib/tst-setcontext.c: Include unistd.h.
7180 2008-04-25 David S. Miller <davem@davemloft.net>
7182 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
7183 Pass "union semun" properly in to sys_ipc, it must be passed
7184 by value, not by reference.
7186 2008-04-22 Jakub Jelinek <jakub@redhat.com>
7188 * nscd/Makefile (nscd-cflags): Set back to -fpie.
7189 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
7190 * nscd/connections.c (mem_in_flight): Likewise.
7192 * nscd/nscd.h (dbs): Make hidden.
7194 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
7195 Avoid returning -1, return 0 instead.
7197 2008-04-19 Ulrich Drepper <drepper@redhat.com>
7199 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
7201 2008-04-15 Ulrich Drepper <drepper@redhat.com>
7204 * sysdeps/unix/sysv/linux/times.c: New file.
7207 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
7208 mem_in_flight_list variables. Add new parameter to mempool_alloc
7210 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
7211 appropriate mem_in_flight element.
7212 (gc): Take allocations which have not yet been committed to the
7213 database into account.
7214 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
7215 Reset mem_in_flight before returning.
7216 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
7217 cue it up in mem_in_flight_list.
7218 * nscd/aicache.c: Adjust mempool_alloc call.
7219 * nscd/grpcache.c: Likewise.
7220 * nscd/hstcache.c: Likewise.
7221 * nscd/initgrcache.c: Likewise.
7222 * nscd/pwdcache.c: Likewise.
7223 * nscd/servicescache.c: Likewise.
7224 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
7227 * nscd/connections.c (handle_request): Provide better error message
7228 in case SELinux forbids the service.
7230 * version.h (VERSION): Bump to 2.8.90.
7232 2008-04-17 Jakub Jelinek <jakub@redhat.com>
7234 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
7236 2008-04-11 Ulrich Drepper <drepper@redhat.com>
7238 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
7239 Also use for 32-bit.
7240 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
7241 __nextafter instead of nextafter to avoid local PLT.
7242 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
7243 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7245 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
7247 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
7249 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
7250 <fenv_libc.h> instead of <fenv.h>.
7251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
7252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
7254 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
7256 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
7257 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
7258 function from fegetexcept and make old name weak alias.
7259 * include/fenv.h: Declare __fegetexcept.
7260 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
7262 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
7263 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
7265 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
7266 instead of frexpl to avoid local PLT.
7267 * math/s_significandl.c (__significandl): Use __ilogbl instead of
7268 ilogbl to avoid local PLT.
7269 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
7270 instead of ldexpl to avoid local PLT.
7271 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
7272 __roundl not roundl to avoid local PLT.
7273 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
7274 local PLTs. Use __sincosl instead of separate sinl and cosl
7276 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7278 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
7279 version for ppc64 to 2.4.21 since without it makecontext will fail.
7281 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
7283 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
7285 [__powerpc64__] (TLS_GD): Likewise.
7287 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
7290 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
7291 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
7293 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
7294 Likewise. Also account for when x is an odd number between 2^52
7296 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
7297 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
7298 * math/libm-test.inc (lround_test, llround_test): Added test cases to
7299 detect aforementioned erroneous conditions.
7301 2008-04-11 Jakub Jelinek <jakub@redhat.com>
7303 * configure.in: Check for -fno-section-anchors in addition to
7304 -fno-toplevel-reorder.
7306 2008-04-11 Ulrich Drepper <drepper@redhat.com>
7308 * include/features.h (__GLIBC_MINOR__): Bump to 8.
7310 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
7311 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
7312 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
7313 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
7314 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
7315 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
7317 2008-04-11 Jakub Jelinek <jakub@redhat.com>
7320 * time/era.c: Transform __libc_setlocale_lock into rwlock.
7321 * time/alt_digit.c: Likewise.
7322 * wcsmbs/wcsmbsload.c: Likewise.
7324 2008-04-10 Ulrich Drepper <drepper@redhat.com>
7326 * version.h (VERSION): Bump to 2.8.
7328 * timzeone/asia: Update from tzdata2008b.
7329 * timezone/backward: Likewise.
7330 * timezone/europe: Likewise.
7331 * timezone/northamerica: Likewise.
7332 * timezone/southamerica: Likewise.
7333 * timezone/iso3166.tab: Likewise.
7334 * timezone/leapseconds: Likewise.
7335 * timezone/zone.tab: Likewise.
7336 * timezone/private.h: Update from tzcode2008a.
7337 * timezone/zdump.c: Likewise.
7338 * timezone/zic.c: Likewise.
7340 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
7343 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
7344 Define additonal Data Cache Block instruction macros.
7345 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
7346 Replace dcbst with dcbf and sync with sync/isync.
7348 2008-02-21 Alan Modra <amodra@bigpond.net.au>
7350 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
7351 Always set ELF_RTYPE_CLASS_PLT.
7352 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
7354 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
7356 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
7357 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
7358 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
7359 For ISA 2.01 and later replace mftb with mfspr 268.
7361 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
7364 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
7365 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
7367 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
7370 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
7371 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
7372 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
7373 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
7375 2008-04-10 Jakub Jelinek <jakub@redhat.com>
7377 * stdlib/tst-makecontext.c (othervar): New variable.
7378 (cf): Test sign extending the argument to long.
7380 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
7382 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
7383 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
7384 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
7385 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
7386 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
7387 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
7388 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
7390 2008-02-22 Alan Modra <amodra@bigpond.net.au>
7392 * elf/Makefile (tests): Substitute tests-vis-yes here.
7393 (tests-vis-yes): Delete.
7394 (modules-name, modules-vis-yes): Similarly.
7396 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
7399 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7400 Preserve sign in signgamp when x is zero.
7402 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
7404 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
7405 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
7406 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
7407 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
7408 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
7409 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
7411 2008-04-09 Ulrich Drepper <drepper@redhat.com>
7414 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
7418 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
7419 a reserved error value.
7421 * stdlib/tst-makecontext.c: Change parameter to cf to negative
7422 value to check for correct sign extension.
7425 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7426 Copy 64-bit parameter values even though this is not required in
7429 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
7432 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
7434 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
7437 2008-04-09 Jakub Jelinek <jakub@redhat.com>
7439 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
7441 2008-04-09 Ulrich Drepper <drepper@redhat.com>
7444 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
7445 in line-buffered stream failed.
7446 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7448 2008-04-08 Ulrich Drepper <drepper@redhat.com>
7451 * scripts/abi-versions.awk: If the version specified by
7452 --enable-oldest-abi is older than the first version for this
7453 architecture, use the default version.
7455 * locale/programs/ld-collate.c (collate_read): Ignore script lines
7456 as well when ignoring the whole category.
7458 2008-04-07 Ulrich Drepper <drepper@redhat.com>
7461 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
7462 ETHERTYPE_* definitions.
7463 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
7465 2008-04-07 Jakub Jelinek <jakub@redhat.com>
7467 * stdlib/mbtowc.c (__no_r_state): Remove.
7468 (mbtowc): New static state variable. Use it instead of
7470 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
7471 (__wctomb_state): New hidden variable.
7472 (wctomb): Use __wctomb_state instead of __no_r_state.
7473 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
7474 (__wctomb_state): New extern decl.
7475 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
7477 2008-04-07 Ulrich Drepper <drepper@redhat.com>
7480 * resolv/res_init.c: Handle scope IDs in resolv.conf.
7482 2008-04-07 Jakub Jelinek <jakub@redhat.com>
7484 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
7486 2008-04-06 Ulrich Drepper <drepper@redhat.com>
7488 * po/nl.po: Update from translation team.
7490 2008-03-31 Ulrich Drepper <drepper@redhat.com>
7493 * string/strfry.c: Handle empty strings again.
7495 2008-03-30 Ulrich Drepper <drepper@redhat.com>
7498 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
7499 before looking for translation.
7500 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
7501 * locale/freelocale.c: Likewise.
7502 * locale/newlocale.c: Likewise.
7503 * locale/setlocale.c: Likewise.
7504 Based partially on a patch by ryo@np.css.fujitsu.com.
7506 2008-03-30 Jakub Jelinek <jakub@redhat.com>
7508 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
7509 acquiring wrlock. Do conv_tab allocation while holding lock.
7510 * intl/Makefile: Add rules to build and run tst-gettext6.
7511 * intl/tst-gettext6.c: New test.
7512 * intl/tst-gettext6.sh: New file.
7514 2008-03-30 Ulrich Drepper <drepper@redhat.com>
7516 * po/nl.po: Update from translation team.
7518 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7519 provided through st_blksize, try the default size before giving up.
7521 2008-03-29 Ulrich Drepper <drepper@redhat.com>
7523 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7526 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7528 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7529 error message. POSIX today does not require the messages to be in
7530 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
7533 * sunrpc/auth_unix.c: Unify printed strings.
7534 * sunrpc/clnt_tcp.c: Likewise.
7535 * sunrpc/clnt_udp.c: Likewise.
7536 * sunrpc/clnt_unix.c: Likewise.
7537 * sunrpc/svc_tcp.c: Likewise.
7538 * sunrpc/svc_udp.c: Likewise.
7539 * sunrpc/svc_unix.c: Likewise.
7540 * sunrpc/xdr.c: Likewise.
7541 * sunrpc/xdr_array.c: Likewise.
7542 * sunrpc/xdr_rec.c: Likewise.
7543 * sunrpc/xdr_ref.c: Likewise.
7544 * locale/programs/ld-time.c (time_finish): Unify messages.
7545 * locale/programs/locfile.c (handle_copy): Fix typo.
7546 * nscd/nscd.c (options): Fix typo.
7549 * stdlib/strtod_l.c: Use correct sign for result in one more
7551 Patch by Eric Blake <ebb9@byu.net>.
7553 2008-03-27 Jakub Jelinek <jakub@redhat.com>
7555 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7556 and creat system calls.
7557 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7559 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7561 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7562 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7563 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7565 2008-03-27 Ulrich Drepper <drepper@redhat.com>
7567 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7568 <linux/limits.h> has defined it.
7569 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7570 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7572 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7573 it instead of ARG_MAX.
7575 2008-03-25 Jakub Jelinek <jakub@redhat.com>
7577 * posix/gai.conf: Fix comment for scope nullbits.
7578 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7579 default to 128 bits for v4 mapped addresses.
7581 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
7583 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7584 ptrace call to get the ieee_instruction_pointer from the kernel.
7585 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7586 ptrace call to set the ieee_instructtion_pointer.
7587 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7588 Add comment that ieee_instruction_pointer is always 0.
7590 2008-03-09 Andreas Jaeger <aj@suse.de>
7593 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7594 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7595 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7597 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7598 (rint_test): Likewise.
7600 2008-03-24 Ulrich Drepper <drepper@redhat.com>
7602 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7604 (__nisfind_server): Similar for open readColdStartFile call.
7605 Patch partially by Jim Meyering.
7606 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7607 around internal_setent call.
7609 * po/vi.po: New Vietnamese translation.
7611 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7614 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7615 remove CLONE_STOPPED.
7617 2008-02-10 Jim Meyering <meyering@redhat.com>
7619 Remove useless "if" before "free":
7620 * elf/ldconfig.c (parse_conf_include): Likewise.
7621 * gmon/gmon.c (weak_alias): Likewise.
7622 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7623 * inet/rcmd.c (__validuser2_sa): Likewise.
7624 * intl/bindtextdom.c (set_binding_values): Likewise.
7625 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7626 * libio/genops.c (save_for_backup): Likewise.
7627 * libio/wgenops.c (save_for_wbackup): Likewise.
7628 * locale/programs/ld-collate.c (collate_read): Likewise.
7629 * locale/programs/linereader.c (get_string): Likewise.
7630 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7631 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7632 * resolv/res_debug.c (do_section): Likewise.
7633 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7634 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7635 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7636 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7637 * time/tzset.c (tzset_internal): Likewise.
7639 2008-03-18 Jakub Jelinek <jakub@redhat.com>
7641 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7644 2008-03-11 Ulrich Drepper <drepper@redhat.com>
7647 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7648 not stream for output file. Open output file here.
7649 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7650 and output file name.
7651 (process_fd): Likewise.
7652 (process_file): Likewise.
7653 (main): Adjust callers of changed functions.
7654 * iconv/iconv_prog.h: Adjust prototype.
7656 2008-03-09 Andreas Jaeger <aj@suse.de>
7659 * sysdeps/ia64/ieee754.h: Use protected namespace
7660 __BIG_ENDIAN/__LITTLE_ENDIAN.
7661 * sysdeps/ieee754/ieee754.h: Likewise.
7662 Patch by Aurelien Jarno <aurelien@aurel32.net>.
7664 2008-03-08 Roland McGrath <roland@frob.com>
7666 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7667 ignore a signal that came from a machine exception, treat it as a
7668 fatal core-dump signal instead.
7669 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7671 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7672 Clear DF bit in thread state's eflags.
7673 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7675 2008-03-08 Ulrich Drepper <drepper@redhat.com>
7678 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7679 of NAN(...) sequence.
7680 * stdlib/Makefile (tests): Add tst-strtod6.
7681 * stdlib/tst-strtod6.c: New file.
7683 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7686 * posix/getopt.c (_getopt_internal_r): Clarify error message by
7687 putting offending option character in quotes. Clean up error
7689 * po/be.po: Adjust msgstr in translation file.
7690 * po/bg.po: Likewise.
7691 * po/ca.po: Likewise.
7692 * po/cs.po: Likewise.
7693 * po/da.po: Likewise.
7694 * po/de.po: Likewise.
7695 * po/es.po: Likewise.
7696 * po/fr.po: Likewise.
7697 * po/hr.po: Likewise.
7698 * po/ko.po: Likewise.
7699 * po/nl.po: Likewise.
7700 * po/rw.po: Likewise.
7701 * po/sk.po: Likewise.
7702 * po/sv.po: Likewise.
7703 * po/tr.po: Likewise.
7704 * po/zh_CN.po: Likewise.
7705 * po/zh_TW.po: Likewise.
7708 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7709 Patch by Roland Bless <roland@bless.de>.
7711 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7713 * elf/Makefile (routines): Add dl-sysdep.
7714 (elide-routines.os): Likewise.
7716 2008-03-07 Ulrich Drepper <drepper@redhat.com>
7719 * elf/dl-sysdep.c: Undefine ROUND after use.
7720 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7721 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7722 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7723 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7725 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7726 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7728 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7730 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7731 _dl_tls_get_addr_soft element.
7732 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7733 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7734 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7736 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7737 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7738 of internal_function.
7740 * stdlib/Makefile (aux): Add tens_in_limb.
7741 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7742 * stdlib/tens_in_limb.c: ...here. New file.
7745 * sysdeps/unix/sysv/linux/pathconf.h: Declare
7746 __statfs_chown_restricted.
7747 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7748 for _PC_CHOWN_RESTRICTED.
7749 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7750 Implement __statfs_chown_restricted.
7751 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7752 _POSIX_CHOWN_RESTRICTED value to zero.
7753 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7756 * sysdeps/x86_64/rtld-memset.c: New file.
7758 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
7760 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7762 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7763 Barcelona machine. Make default fall through branch of
7764 __x86_64_preferred_memory_instruction check as the integer code path.
7766 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7768 * sysdeps/x86_64/cacheinfo.c
7769 (__x86_64_preferred_memory_instruction): New variable.
7770 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7772 * sysdeps/x86_64/memset.S: Rewrite.
7774 2008-03-04 Jakub Jelinek <jakub@redhat.com>
7776 * include/stdio.h (__asprintf_chk, __dprintf_chk,
7777 __obstack_printf_chk): New prototypes.
7778 (__vasprintf_chk, __vdprintf_chk,
7779 __obstack_vprintf_chk): Likewise.
7780 Add libc_hidden_proto.
7782 (_IO_obstack_jumps): No longer static, add attribute_hidden.
7783 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7784 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7785 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7786 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7787 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7788 __obstack_vprintf_chk): New prototypes.
7789 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7790 obstack_vprintf): New inlines.
7791 * debug/dprintf_chk.c: New file.
7792 * debug/vdprintf_chk.c: New file.
7793 * debug/asprintf_chk.c: New file.
7794 * debug/vasprintf_chk.c: New file.
7795 * debug/obprintf_chk.c: New file.
7796 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7797 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7798 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7800 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7801 vdprintf_chk and obprintf_chk, set CFLAGS for them.
7802 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7803 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7805 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7806 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7807 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7808 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7809 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7811 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7812 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7813 obstack_vprintf_chk.
7814 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7815 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7816 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7817 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7818 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7819 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7821 2008-03-04 Ulrich Drepper <drepper@redhat.com>
7824 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7825 Patch by Roy Marples <roy@marples.name>.
7828 * malloc/malloc.c: Fix typo in comment.
7831 * locale/iso-639.def: Add Shuswap.
7833 2008-02-25 Jakub Jelinek <jakub@redhat.com>
7836 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7837 overwrite *h_errnop/*errnop values from getanswer_r in case of
7840 2008-03-03 Ulrich Drepper <drepper@redhat.com>
7843 * nscd/connections.c (dbs): Add initializers for .suggested_module.
7844 (verify_persistent_db): Remove one unnecessary test and add a new one
7845 for bad configuration.
7846 (nscd_init): Improve error reported when persistent database cannot
7848 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7849 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7850 .suggested_module and .max_db_size and case config file says the
7852 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7855 * nis/ypclnt.c (yp_order): Fix handling of return value of
7857 Patch by Jeff Moyer <jmoyer@redhat.com>.
7859 * po/fr.po: Update from translation team.
7861 2008-02-22 Andreas Jaeger <aj@suse.de>,
7862 Carlos O'Donell <carlos@systemhalted.org>
7865 * FAQ.in: Describe why glibc needs to be compiled with
7868 2008-02-19 Roland McGrath <roland@redhat.com>
7870 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7872 2008-02-15 Ulrich Drepper <drepper@redhat.com>
7875 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7876 __USE_MISC is defined.
7878 2008-02-10 Ulrich Drepper <drepper@redhat.com>
7880 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7881 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7883 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7884 timerfd_gettime, timerfd_settime.
7885 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7886 timerfd_gettime, timerfd_settime for GLIBC_2.8.
7888 2008-02-08 Roland McGrath <roland@redhat.com>
7890 * elf/elf.h (NT_PPC_SPE): New macro.
7892 2008-02-06 Roland McGrath <roland@redhat.com>
7894 * Makerules ($(common-objpfx)sysd-rules):
7895 Depend on $(sysdep-makeconfigs).
7897 2008-01-31 Roland McGrath <roland@redhat.com>
7900 * configure.in: Use -print-file-name if it yields a directory,
7901 for each of include and include-fixed.
7902 * configure: Regenerated.
7904 * Makeconfig (sysd-rules-targets): New variable.
7905 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7906 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7908 2008-01-30 Roland McGrath <roland@redhat.com>
7910 * manual/libc.texinfo: Update back-cover text.
7912 * elf/elf.h (NT_386_TLS): New macro.
7914 2008-01-29 Roland McGrath <roland@redhat.com>
7916 * Makeconfig (sysd-rules-patterns): New variable.
7917 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7918 (check-inhibit-asm): New canned sequence, replaces ...
7919 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7920 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7921 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7922 (CFLAGS-rtld): Variable removed.
7924 2008-01-24 Roland McGrath <roland@redhat.com>
7926 * configure.in: Let configure fragments set base_os.
7927 * configure: Regenerated.
7929 2008-01-22 Ulrich Drepper <drepper@redhat.com>
7931 * po/ko.po: Update from translation team.
7933 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
7935 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7937 2008-01-12 Andreas Jaeger <aj@suse.de>
7940 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7943 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
7945 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7946 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7947 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7949 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
7951 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7952 * elf/dl-close.c (_dl_close): Check for it.
7953 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7954 (_dl_allocate_static_tls): Likewise.
7955 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7956 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7958 * elf/tst-tls16.c: New file.
7959 * elf/tst-tlsmod16a.c: New file.
7960 * elf/tst-tlsmod16b.c: New file.
7961 * elf/Makefile: Add rules to build and run tst-tls16.
7963 2008-01-16 Ulrich Drepper <drepper@redhat.com>
7966 * bits/shm.h: Fix comment describing shmid_ds.
7967 * sysdeps/gnu/bits/shm.h: Likewise.
7968 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7969 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7970 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7971 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7972 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7973 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7974 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7975 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7976 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7979 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7981 * conform/data/limits.h-data: Adjust limits changed in v6 and add
7982 additional suffixes.
7983 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7984 Add optional functions mq_timedreceive and mq_timedsend.
7985 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7986 * conform/data/pthread.h-data: Fix prototype of
7987 pthread_condattr_setclock. pthread_sigmask is not required in v6.
7988 * conform/data/semaphore.h-data: Allow time.h definitions.
7989 * conform/data/signal.h-data: Likewise.
7990 * conform/data/stdio.h-data: getw and putw are not required in v6.
7991 * conform/data/stdlib.h-data: Change setstate prototype.
7992 * conform/data/string.h-data: Fix strerror_r prototype.
7993 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7994 * conform/data/unistd.h-data: pthread_atfork not required in v6.
7995 Fix readlink prototype.
7996 * conform/data/netinet/in.h-data: Add const to in6addr_any and
7998 * inet/netinet/in.h: Cleanup namespace.
7999 * posix/regex.h: Likewise.
8000 * resolv/netdb.h: Likewise.
8001 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
8002 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8003 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8004 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
8005 of names of in in6_addr.
8006 (default_precedence): Likewise.
8007 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
8010 2008-01-15 Ulrich Drepper <drepper@redhat.com>
8012 * conform/data/fmtmsg.h-data: Add missing allows.
8013 * conform/data/ftw.h-data: Likewise.
8014 * conform/data/inttypes.h-data: Likewise.
8015 * conform/data/math.h-data: Likewise.
8016 * conform/data/signal.h-data: Likewise.
8017 * conform/data/net/if.h-data: Likewise.
8018 * conform/data/netinet/in.h-data: Likewise.
8019 * conform/data/sys/socket.h-data: Likewise.
8022 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
8023 (__strtok_r): Simplify.
8024 * string/tester.c (test_strtok_r): Add test case for futile search
8025 with single-character seach string.
8027 2008-01-12 Ulrich Drepper <drepper@redhat.com>
8029 * po/ko.po: Update from translation team.
8031 2008-01-11 Andreas Jaeger <aj@suse.de>
8034 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8035 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
8038 2008-01-10 Ulrich Drepper <drepper@redhat.com>
8040 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
8041 native interface lookup in all the relevant places.
8043 2008-01-10 Jakub Jelinek <jakub@redhat.com>
8044 Ulrich Drepper <drepper@redhat.com>
8046 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
8047 field. Use sockaddr_in6 for source_addr.
8048 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
8049 (match_prefix): Likewise.
8050 (get_label): Likewise.
8051 (get_precedence): Likewise.
8052 (rfc3484_sort): Change to use indirect access to results array.
8053 Adjust to use of sockaddr_in6. Replace service_order test with
8054 simple index comparison.
8055 (getaddrinfo): Define order array. Initialize it. Don't initialize
8056 service_order field. Adjust qsort_t calls. Access sorted result
8057 array indirectly through order array.
8058 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
8059 * posix/tst-rfc3484-2.c: Likewise.
8060 * posix/tst-rfc3484-3.c: Likewise.
8062 2008-01-09 Ulrich Drepper <drepper@redhat.com>
8065 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
8067 Patch by André Cruz.
8070 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
8071 (clnt_spcreateerror): Likewise.
8074 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
8075 (public_mEMALIGn): Likewise.
8076 Patch mostly by Daniel Jacobowitz.
8078 2008-01-09 Jakub Jelinek <jakub@redhat.com>
8080 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
8081 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
8082 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
8083 * stdlib/tst-makecontext2.c: New test.
8085 2008-01-08 Jakub Jelinek <jakub@redhat.com>
8087 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
8089 (REINIT_PARAMS): Likewise. Undefine before end of file.
8090 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
8091 transliteration hooks and REINIT_PARAMS afterwards.
8092 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
8094 (REINIT_PARAMS): Define.
8095 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
8096 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
8097 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
8098 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
8099 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
8100 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
8101 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
8102 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
8103 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
8104 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
8105 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
8106 * iconvdata/tst-iconv7.c: New test.
8108 2008-01-07 Ulrich Drepper <drepper@redhat.com>
8110 * libio/stdio.h (vscanf): Fix definition for loser compilers.
8112 2008-01-05 Jakub Jelinek <jakub@redhat.com>
8115 * nscd/connections.c (restart): Fix condition.
8117 2008-01-03 Jakub Jelinek <jakub@redhat.com>
8119 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
8120 __ctype_toupper_loc): Add __THROW.
8122 2008-01-02 Ulrich Drepper <drepper@redhat.com>
8124 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
8125 recognition of interface family.
8127 * posix/getconf.c: Update copyright year.
8128 * nss/getent.c: Likewise.
8129 * iconv/iconvconfig.c: Likewise.
8130 * iconv/iconv_prog.c: Likewise.
8131 * elf/ldconfig.c: Likewise.
8132 * catgets/gencat.c: Likewise.
8133 * csu/version.c: Likewise.
8134 * elf/ldd.bash.in: Likewise.
8135 * elf/sprof.c (print_version): Likewise.
8136 * locale/programs/locale.c: Likewise.
8137 * locale/programs/localedef.c: Likewise.
8138 * nscd/nscd.c (print_version): Likewise.
8139 * debug/xtrace.sh: Likewise.
8140 * malloc/memusage.sh: Likewise.
8141 * malloc/mtrace.pl: Likewise.
8142 * debug/catchsegv.sh: Likewise.
8144 2007-12-26 Ulrich Drepper <drepper@redhat.com>
8146 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
8149 2007-12-23 Ulrich Drepper <drepper@redhat.com>
8151 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
8152 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8154 2007-12-17 Roland McGrath <roland@redhat.com>
8156 * inet/ether_line.c (ether_line): Remove unused variable.
8158 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
8160 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
8162 * login/openpty.c (openpty): Likewise.
8163 * login/pty.h (openpty, forkpty): Likewise.
8164 * manual/terminal.texi (openpty, forkpty): Likewise.
8166 2007-12-17 Ulrich Drepper <drepper@redhat.com>
8168 * malloc/malloc.c (public_cALLOc): For arenas other than
8169 main_arena, count all bytes inside the mprotect_size range of the
8170 heap as uninitialized.
8172 2007-12-16 Ulrich Drepper <drepper@redhat.com>
8174 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
8177 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
8178 mTRIm for all of them.
8179 (mTRIm): Additionally iterate over all free blocks and use madvise
8180 to free memory for all those blocks which contain at least one
8182 * malloc/tst-trim1.c: New file.
8183 * malloc/Makefile (tests): Add tst-trim1.
8185 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
8187 2007-12-14 Ulrich Drepper <drepper@redhat.com>
8189 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
8190 First cast argument to long
8191 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
8193 (__vdso_clock_gettime): Likewise.
8194 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
8197 2007-12-13 Ulrich Drepper <drepper@redhat.com>
8199 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
8200 * locale/nl_langinfo_l.c: Real implementation, copied from
8202 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
8204 2007-12-01 Jim Meyering <meyering@redhat.com>
8206 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8207 that would inhibit utf8-optimization of a regexp containing line-
8208 or buffer-anchors, e.g., `^', `$'.
8210 2007-12-12 Ulrich Drepper <drepper@redhat.com>
8212 * time/bug-getdate1.c (do_test): Don't use century values which
8213 aren't valid on 32-bit systems.
8215 2007-12-12 Jakub Jelinek <jakub@redhat.com>
8217 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
8218 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
8219 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
8220 __strcat_g, __strncat_g): Add __asm__.
8222 2007-12-12 Ulrich Drepper <drepper@redhat.com>
8225 * io/fchmodat.c: Fix typo in stub_warning use.
8226 Patch by Petr Salinger.
8228 2007-12-11 Ulrich Drepper <drepper@redhat.com>
8230 * iconvdata/hp-thai8.c: New file.
8231 * iconvdata/Makefile: Add rules for hp-thai8.c.
8232 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
8233 * iconvdata/gconv-modules: Likewise.
8236 * iconvdata/hp-greek8.c: New file.
8237 * iconvdata/Makefile: Add rules for hp-greek8.c.
8238 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
8239 * iconvdata/gconv-modules: Likewise.
8242 * iconvdata/hp-turkish8.c: New file.
8243 * iconvdata/Makefile: Add rules for hp-turkish8.c.
8244 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
8245 * iconvdata/gconv-modules: Likewise.
8247 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
8248 (shrink_heap): ... this new function.
8249 (heap_trim): Call shrink_heap instead of grow_heap.
8251 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
8252 case don't call alloc_perturb.
8254 2007-12-10 Ulrich Drepper <drepper@redhat.com>
8256 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
8258 * sysdeps/unix/sysv/linux/kernel-features.h
8259 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
8260 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
8262 2007-12-08 Ulrich Drepper <drepper@redhat.com>
8265 * stdio-common/vfprintf.c: Do not overflow when adding to done.
8266 * stdio-common/Makefile (tests): Add bug22.
8267 * stdio-common/bug22.c: New file.
8270 * time/getdate.c: Fix filling in default values.
8271 * time/bug-getdate1.c: New file.
8272 * time/Makefile: Add rules to build and run bug-getdate1.
8274 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
8275 * iconvdata/ebcdic-es.c: Likewise.
8276 * iconvdata/ebcdic-es-a.c: Likewise.
8277 * iconvdata/ebcdic-uk.c: Likewise.
8278 * iconvdata/iso8859-16.c: Likewise.
8279 * iconvdata/viscii.c: Likewise.
8280 * iconvdata/iso8859-9e.c: Likewise.
8281 * iconvdata/Makefile: Adjust appropriately.
8284 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
8287 2007-12-07 Ulrich Drepper <drepper@redhat.com>
8290 * iconvdata/hp-roman9.c: New file.
8291 * iconvdata/Makefile: Add rules for hp-roman9.c.
8292 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
8293 * iconvdata/gconv-modules: Likewise.
8295 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
8296 * iconvdata/Makefile: Adjust appropriately.
8299 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
8300 structure, it's allocated with alloca.
8301 * stdio-common/Makefile (tests): Add bug21.
8302 * stdio-common/bug21.c: New file.
8304 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
8307 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
8308 keyword for gcc's braced-groups.
8310 2007-12-07 Ulrich Drepper <drepper@redhat.com>
8313 * inet/ether_line.c: Strip hostname of whitespaces.
8314 * inet/Makefile (tests): Add tst-ether_line.
8315 * inet/tst-ether_line.c: New file.
8317 2007-12-03 Ulrich Drepper <drepper@redhat.com>
8320 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
8323 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
8325 * stdlib/tst-setcontext.c: Catch the case where the links gets
8326 messed up and we do not reach main again.
8328 * po/ca.po: Update from translation team.
8330 2007-11-26 Ulrich Drepper <drepper@redhat.com>
8332 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
8333 * posix/regex.h (REG_ENOSYS): Likewise.
8334 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
8336 2007-11-25 Ulrich Drepper <drepper@redhat.com>
8338 * nscd/nscd.h (MAX_STACK_USE): Define.
8339 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
8340 (gc): Initialize stack_used based on allocation in prune_cache.
8341 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
8342 Clear array before use.
8344 * nscd/aicache.c (addhstaiX): Update statistics counter in case
8345 memory allocation failed.
8346 * nscd/hstcache.c (cache_addhst): Likewise.
8347 * nscd/grpcache.c (cache_addgr): Likewise.
8348 * nscd/servicescache.c (cache_addserv): Likewise.
8349 * nscd/pwdcache.c (cache_addpw): Likewise.
8350 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8352 2007-11-23 Ulrich Drepper <drepper@redhat.com>
8354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
8355 and creat system calls.
8357 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
8359 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
8361 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
8363 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
8364 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
8366 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
8367 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
8368 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
8370 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
8372 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
8373 strncat): Define as macros to avoid compile errors.
8375 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
8378 2007-11-22 Ulrich Drepper <drepper@redhat.com>
8381 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
8382 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
8383 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
8385 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8387 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
8388 Return zero in case the thread library is not NPTL.
8391 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
8392 initializing interface list.
8395 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
8396 use result of nss_getgrgid_r if nothing was found. For other
8397 error return with a failure.
8398 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8400 * locale/programs/ld-collate.c (collate_read): Fix loop to match
8403 2007-11-19 Ulrich Drepper <drepper@redhat.com>
8405 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
8406 (get_scope): For IPv4 scope, use scopes table.
8407 (fini): Free scopes table if necessary.
8408 (free_scopelist): New function.
8409 (scopecmp): New function.
8410 (gaiconf_init): Also handle scopev4 entries.
8411 * posix/tst-rfc3484.c (do_test): Initialize scopes.
8412 * posix/tst-rfc3484-2.c (do_test): Likewise.
8413 * posix/gai.conf: Document scopev4 defaults.
8414 * posix/Makefile (tests): Add tst-rfc3484-3.
8415 * posix/tst-rfc3484-3.c: New file.
8417 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
8419 * posix/gai.conf: Update for current default tables.
8421 2007-11-19 Ulrich Drepper <drepper@redhat.com>
8423 * po/tr.po: Update from translation team.
8425 2007-11-18 Roland McGrath <roland@frob.com>
8427 * manual/arith.texi (Remainder Functions): Spelling fix.
8428 From Shaun Silk <genix@mysoul.com.au>.
8430 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
8432 2007-11-17 Ulrich Drepper <drepper@redhat.com>
8434 * po/zh_CN.po: Update from translation team.
8436 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8437 Add sys/signalfd.h and sys/eventfd.h.
8439 2007-11-15 Bruno Haible <bruno@clisp.org>
8442 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
8444 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
8445 (DCIGETTEXT): Change the allocation of the 'search' variable so that
8446 it needs only fixed stack space. Delay the initialization of
8447 msgid_len until it is needed.
8449 2007-11-15 Andreas Jaeger <aj@suse.de>
8451 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
8452 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
8454 2007-11-15 Ulrich Drepper <drepper@redhat.com>
8456 * po/ko.po: Update from translation team.
8458 2007-11-14 Ulrich Drepper <drepper@redhat.com>
8460 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
8461 significantly. The device type is also part of the ifinfomsg data.
8463 * po/sv.po: Update from translation team.
8464 * po/nl.po: Likewise.
8466 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
8467 to wake up in 24 hours.
8469 * nscd/gai.c (__ioctl): Define. Include check_native.c.
8471 2007-11-13 Ulrich Drepper <drepper@redhat.com>
8473 * po/cs.po: Update from translation team.
8474 * po/pl.po: Likewise.
8476 * include/ifaddrs.h: Remove in6ai_temporary.
8477 (struct in6addrinfo): Add index element.
8478 Declare __check_native.
8479 * inet/Makefile (aux): Add check_native.
8480 * sysdeps/unix/sysv/linux/check_native.c: New file.
8481 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
8482 IFA_F_TEMPORARY. Pass back ifa_index.
8483 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
8484 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
8485 call __check_native if necessary.
8486 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
8487 to sort addresses. Pass information about the results.
8488 * posix/tst-rfc3484.c: Adjust for addition of index field and change
8489 of rfc3484_sort interface.
8490 * posix/tst-rfc3484-2.c: Likewise.
8492 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
8493 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
8495 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
8496 (qsort_r): Renamed from qsort. Take additional parameter and pass it
8497 on as third parameter to compare function and _quicksort.
8498 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
8499 to the compare function.
8500 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
8501 * Versions.def: Add GLIBC_2.8 for libc.
8503 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
8504 * posix/tst-rfc3484-2.c: Likewise.
8506 * include/kernel-features.h: Moved to...
8507 * sysdeps/mach/hurd/kernel-features.h: ...here.
8509 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
8511 * sysdeps/i386/i586/memcpy_chk.S: New file.
8512 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
8513 * sysdeps/i386/i586/memset_chk.S: Likewise.
8515 2007-11-12 Ulrich Drepper <drepper@redhat.com>
8517 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8518 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8519 list of interfaces. Also store prefix length.
8520 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8521 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8522 prefix if source and destination address are in the same subnet.
8523 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
8524 Always look for matching record in in6ai list.
8525 Correct source_addr_len value for IPv6->IPv4 converted records.
8527 2007-11-11 Roland McGrath <roland@frob.com>
8529 * include/kernel-features.h: New file.
8531 2007-11-10 Ulrich Drepper <drepper@redhat.com>
8533 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8534 complications for 64-bit platforms.
8536 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8537 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
8538 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8540 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8542 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8543 * sysdeps/wordsize-64/alphasort.c: New file.
8544 * sysdeps/wordsize-64/alphasort64.c: New file.
8545 * sysdeps/wordsize-64/fseeko.c: New file.
8546 * sysdeps/wordsize-64/fseeko64.c: New file.
8547 * sysdeps/wordsize-64/ftello.c: New file.
8548 * sysdeps/wordsize-64/ftello64.c: New file.
8549 * sysdeps/wordsize-64/ftw.c: New file.
8550 * sysdeps/wordsize-64/ftw64.c: New file.
8551 * sysdeps/wordsize-64/iofgetpos.c: New file.
8552 * sysdeps/wordsize-64/iofgetpos64.c: New file.
8553 * sysdeps/wordsize-64/iofopen.c: New file.
8554 * sysdeps/wordsize-64/iofopen64.c: New file.
8555 * sysdeps/wordsize-64/iofsetpos.c: New file.
8556 * sysdeps/wordsize-64/iofsetpos64.c: New file.
8557 * sysdeps/wordsize-64/lockf.c: New file.
8558 * sysdeps/wordsize-64/lockf64.c: New file.
8559 * sysdeps/wordsize-64/mkostemp.c: New file.
8560 * sysdeps/wordsize-64/mkostemp64.c: New file.
8561 * sysdeps/wordsize-64/mkstemp.c: New file.
8562 * sysdeps/wordsize-64/mkstemp64.c: New file.
8563 * sysdeps/wordsize-64/scandir.c: New file.
8564 * sysdeps/wordsize-64/scandir64.c: New file.
8565 * sysdeps/wordsize-64/tmpfile.c: New file.
8566 * sysdeps/wordsize-64/tmpfile64.c: New file.
8567 * sysdeps/wordsize-64/versionsort.c: New file.
8568 * sysdeps/wordsize-64/versionsort64.c: New file.
8569 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8570 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8571 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8572 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8573 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8574 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8575 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8576 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8577 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8578 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8579 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8580 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8582 * crypt/sha256-crypt.c: Fix a comment.
8583 * crypt/sha512-crypt.c: Likewise.
8585 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
8587 * sysdeps/x86_64/memset.S: Add sfence after movnti.
8589 2007-11-07 Ulrich Drepper <drepper@redhat.com>
8592 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8593 because output buffer is too small break, don't loop.
8594 * iconvdata/Makefile (tests): Add bug-iconv6.
8595 * iconvdata/bug-iconv6.c: New file.
8597 2007-11-06 Ulrich Drepper <drepper@redhat.com>
8599 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8601 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8602 size_t. Add casts where needed.
8604 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8605 old headers, don't call avc_has_perm if we don't have the
8606 permission information.
8608 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
8610 * elf/rtld.c (dl_main): Use the page size to find the map start.
8612 2007-11-05 Ulrich Drepper <drepper@redhat.com>
8614 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8615 Patch by Szymon Siwek <sls@poczta.wp.pl>.
8617 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8618 when the lookup call failed.
8620 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8621 Add prune_cond and wakeup_time.
8622 (CACHE_PRUNE_INTERNAL): Define.
8623 Update declarations of prune_cache and setup_thread.
8624 * nscd/connections.c (dbs): Update initializers.
8625 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8626 (nscd_init): Default number of threads is now 4.
8627 (invalidate_cache): Take lock before calling prune_cache.
8628 (handle_request): If SELinux forbids the request, say so.
8629 (readylist_cond): Use static initializer.
8630 (nscd_run_prune): New function. Used only by pruning threads.
8631 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
8633 (fd_ready): Update nscd_run reference.
8634 (start_threads): No need to initialize readylist_cond.
8635 Start pruning threads separately.
8636 * nscd/nscd_setup_thread.c: Change return value type to int and always
8638 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8639 to int and return nonzero value if we can use the TID address hack.
8640 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8641 the database is later than the new entry's timeout, update the
8642 wakeup time and wake the cleanup thread.
8643 (prune_cache): Return seconds the next entry in the database is still
8644 valid. Remove locking for pruning here.
8645 * nscd/nscd.conf: Document default number of threads.
8647 2007-10-31 Ulrich Drepper <drepper@redhat.com>
8649 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8650 stack is properly aligned for the target function.
8651 Correct unwind info.
8653 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8654 when using auditing libraries.
8656 2007-10-29 Ulrich Drepper <drepper@redhat.com>
8658 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8659 _nss_dns_getnetbyaddr2_r.
8660 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
8661 extra parameter to getanswer_r.
8662 (_nss_dns_getnetbyaddr_r): Now a wrapper around
8663 _nss_dns_getnetbyaddr2_r.
8665 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8667 * nscd/gethstbynm2_r.c: Remove.
8668 * nscd/gethstbynm3_r.c: New file.
8669 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8671 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
8672 __gethostbyaddr_r compatibility wrapper.
8673 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
8674 determining timeout of entry.
8675 (lookup): Take new parameter and pass it to __gethostbyname3_r and
8677 (addhstbyX): Pass reference to variable for TTL to lookup and
8679 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8680 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8681 and __nss_next2. Remove __nss_services_lookup.
8682 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
8684 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8686 * nss/getXXent_r.c: Likewise.
8687 * nss/getnssent_r.c: Likewise.
8688 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
8689 does not exist in module, try the optional second name.
8690 (__nss_next2): New function.
8691 (__nss_next): Now wrapper around __nss_next2.
8692 * nss/nsswitch.h: Adjust __nss_lookup prototype.
8693 Declare __nss_next2.
8694 Adjust definition of db_lookup_function type.
8695 * nss/service-lookup.c: Define NO_COMPAT.
8696 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8697 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8698 * inet/ether_ntoh.c: Likewise.
8699 * sunrpc/netname.c: Likewise.
8700 * sunrpc/publickey.c: Likewise.
8701 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
8702 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8703 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8704 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8705 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8707 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8709 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8711 2007-10-28 Ulrich Drepper <drepper@redhat.com>
8714 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8715 * crypt/sha512c-test.c: Likewise.
8718 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8719 to keep track of end of %[ format string element.
8720 * stdio-common/Makefile (tests): Add bug20.
8721 * stdio-common/bug20.c: New file.
8724 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8725 path elements in counting mode.
8727 2007-10-27 Andreas Jaeger <aj@suse.de>
8730 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8733 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8734 (__cleanup): Free shared library when exiting.
8735 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8736 (__cleanup): Free shared library when exiting.
8738 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
8741 * math/libm-test.inc (check_float_internal): Support
8742 denormalized return.
8744 2007-10-23 Andreas Jaeger <aj@suse.de>
8747 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8748 __LONG_LONG_PAIR to handle little endian byte order.
8749 Suggested by abhishekrai@google.com
8751 2007-10-27 Ulrich Drepper <drepper@redhat.com>
8753 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8755 2007-10-26 Ulrich Drepper <drepper@redhat.com>
8757 * nscd/cache.c (prune_cache): Move test for modified file outside
8760 2007-10-21 Andreas Jaeger <aj@suse.de>
8762 * manual/texinfo.tex: Update to latest version.
8764 * manual/sysinfo.texi (System Parameters): Fix Formatting.
8766 * manual/arith.texi (Status bit operations): Fix formatting.
8768 * manual/errno.texi (Error Messages): Fix formatting.
8770 * manual/sysinfo.texi (System Parameters): Fix formatting.
8772 * manual/libc.texinfo: Update VERSION and UPDATED.
8774 2007-10-19 Roland McGrath <roland@redhat.com>
8776 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8778 2007-10-06 David S. Miller <davem@davemloft.net>
8780 * configure.in: Add sparcv9v2 and sparc64v2.
8781 * scripts/config.sub: Likewise.
8782 * configure: Regenerate.
8783 * elf/elf.h (HWCAP_SPARC_N2): New.
8784 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8785 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8786 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8787 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8788 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8789 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8790 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8792 2007-10-18 Ulrich Drepper <drepper@redhat.com>
8794 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8795 even if the poll result indicates there is data to read.
8796 Patch by Jeff Moyer <jmoyer@redhat.com>.
8798 2007-10-18 Roland McGrath <roland@redhat.com>
8800 * elf/elf.h (NT_PPC_VMX): New macro.
8802 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8804 * version.h (VERSION): Set to 2.7.90.
8806 2007-10-17 Jakub Jelinek <jakub@redhat.com>
8808 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
8811 2007-10-17 Roland McGrath <roland@frob.com>
8813 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8814 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8816 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8818 * version.h (VERSION): Bump to 2.7.
8819 * include/features.h (__GLIBC_MINOR__): Bump to 7.
8822 * time/tzset.c (__tz_convert): Don't force testing for a change of
8823 TZ if not called from localtime. But then also see whether the
8824 file changed, in case __use_tzfile is set.
8826 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8827 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8828 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8829 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8830 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8831 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8832 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8833 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8835 2007-10-17 Jakub Jelinek <jakub@redhat.com>
8837 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8838 and admin selects to be able to replace the gai.conf file, lock
8839 data structures around the qsort call.
8841 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8843 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8845 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
8846 too high for the improvements. Implement bzero unconditionally for
8849 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8850 Jakub Jelinek <jakub@redhat.com>
8852 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8853 even when time_t is 32-bit.
8854 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8855 timezone data read by __tzfile_default. Ensure __tzname[0] is
8856 always set after the search.
8858 2007-10-16 Ulrich Drepper <drepper@redhat.com>
8860 * time/tzfile.c (__tzfile_read): Help the compiler recognize
8861 unreachable code on 32-bit machines.
8863 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8866 * time/strftime_l.c: Include stdbool.h.
8867 (my_strftime): New wrapper, old function renamed to...
8868 (__strftime_internal): ... new function. Add tzset_called
8869 argument, pass it down to recursive calls, don't call tzset ()
8870 if already true, set to true after call to tzset ().
8872 2007-10-16 Ulrich Drepper <drepper@redhat.com>
8874 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8875 into account when copying TZ string.
8877 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8879 * time/tzfile.c (__tzfile_compute): For use_last case set i to
8880 num_transition rather than num_transitions - 1.
8882 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8884 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8887 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8888 a local label rather than HIDDEN_JUMPTARGET.
8890 2007-10-15 Ulrich Drepper <drepper@redhat.com>
8892 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8893 (init_cacheinfo): Initialize it.
8894 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8895 Always define bzero.
8896 Remove non-glibc code.
8897 * sysdeps/x86_64/bzero.S: Make an empty file.
8899 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
8901 * sysdeps/x86_64/cacheinfo.c
8902 (__x86_64_preferred_memory_instruction): New.
8903 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8905 * sysdeps/x86_64/memset.S: Rewrite.
8907 2007-10-15 Roland McGrath <roland@redhat.com>
8909 * po/libc.pot: Regenerated.
8911 2007-10-15 Ulrich Drepper <drepper@redhat.com>
8913 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8917 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8918 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8919 address record to T_A/T_AAAA requests.
8921 2007-10-14 Ulrich Drepper <drepper@redhat.com>
8923 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8925 * posix/glob.c: Add some branch prediction throughout.
8927 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8930 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8932 (rfc3484_sort): Make sure that even if qsort doesn't support
8933 stable sorting out sorting here is stable by comparing service_order.
8934 (getaddrinfo): Initialize service_order.
8935 * posix/tst-rfc3484.c (do_test): Adjust for addition of
8936 service_order field to sorting structure.
8937 * posix/tst-rfc3484-2.c (do_test): Likewise.
8939 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8940 * time/tzset.c (tzset_internal): Break TZ string parsing out into
8941 __tzset_parse_tz and updating of daylight, timezone, tzname into
8943 (__tz_compute): Renamed from tz_compute. Take additional parameters.
8944 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8945 happens in __tz_compute.
8946 * time/tzfile.c (__tzfile_read): Also read TZ string.
8947 (find_transition): Fold into __tzfile_compute.
8948 (__tzfile_compute): For times beyond the last transition try to
8950 * timezone/tst-timezone.c: Information in daylight and tzname does
8951 change for Asia/Tokyo timezone with more concrete information.
8954 * include/stdio.h: Add libc_hidden_proto for ftello.
8955 * libio/ftello.c: Add libc_hidden_def.
8958 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8959 on the specified time and not the last entries in the file. Move
8960 code to determine tzname[] to...
8961 (find_transition): ...here. Add ugly guess for times before the
8964 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8967 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8969 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8970 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8971 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8972 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8974 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8975 read mechanism when there are no group members and avoid no-op
8976 read syscall in this case.
8979 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8980 (__readall): If reading failed due to EAGAIN error wait a bit
8981 and possibly try again.
8982 (__readvall): Likewise.
8984 2007-10-13 Bruno Haible <bruno@clisp.org>
8986 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8987 when we cannot recode the message.
8989 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8992 * libio/__freading.c (__freading): Don't return true for
8993 write-only streams. For read/write streams, check whether we
8994 performed a read operation already.
8995 * libio/Makefile (tests): Add tst-ext2.
8996 * libio/tst-ext2.c: New file.
8998 2007-10-12 Ulrich Drepper <drepper@redhat.com>
9000 * locale/programs/repertoire.c (repertoire_read): Always free
9001 memory for repertoire file name [Coverity CID 270].
9003 * elf/cache.c (save_aux_cache): Free memory allocated for
9004 temporary file name [Coverity CID 267].
9006 2007-10-12 Jakub Jelinek <jakub@redhat.com>
9008 * misc/Makefile (headers): Add bits/error.h.
9010 2007-10-12 Ulrich Drepper <drepper@redhat.com>
9012 * posix/fnmatch_loop.c: Take rule index returned as part of
9013 findidx return value into account when accessing weights.
9014 * posix/regcomp.c: Likewise.
9015 * posix/regexec.c: Likewise.
9017 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
9018 (skip_to): Fix problems with parameter of elifdef/elifndef.
9020 2007-10-11 Ulrich Drepper <drepper@redhat.com>
9022 * iconv/gconv_simple.c: Add some branch prediction.
9024 2007-10-12 Jakub Jelinek <jakub@redhat.com>
9026 * locale/programs/ld-collate.c (collate_read): If ignore_content
9027 and nowtok is tok_define, eat any tok_eol tokens.
9029 2007-10-11 Jakub Jelinek <jakub@redhat.com>
9031 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
9032 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
9034 * inet/netinet/in.h: Don't include bits/socket.h.
9035 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
9037 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9039 2007-10-10 Ulrich Drepper <drepper@redhat.com>
9041 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
9043 * locale/programs/locfile-kw.gperf: Likewise.
9044 * locale/programs/ld-collate.c: Implement primitive preprocessor.
9046 2007-10-10 Jakub Jelinek <jakub@redhat.com>
9048 * stdio-common/printf-parse.h: Include string.h and wchar.h.
9049 (__find_specwc): Change into __extern_always_inline function.
9050 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
9051 (__parse_one_specmb): Remove ps argument.
9052 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
9053 Adjust __find_specmb and __parse_one_specmb callers.
9054 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9055 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
9057 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
9060 2007-10-09 Ulrich Drepper <drepper@redhat.com>
9062 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
9063 with some Pentium Ds.
9065 2007-10-08 Ulrich Drepper <drepper@redhat.com>
9067 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
9069 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
9072 2007-10-07 Ulrich Drepper <drepper@redhat.com>
9075 * locale/C-time.c: Set week_1stday data to 19971201.
9076 * locale/programs/ld-time.c (time_finish): Default for
9077 first_workday is Monday.
9080 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
9083 * posix/glob.c (glob): Recognize patterns starting \/.
9084 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
9085 (main): Add test for pattern starting \/.
9087 * misc/error.h: Use __const instead of const.
9088 * misc/bits/error.h: Likewise.
9090 2007-10-07 Andreas Jaeger <aj@suse.de>
9092 * include/bits/error.h: New file.
9094 * misc/bits/error.h (error_at_line): Fix prototype.
9096 2007-10-06 Ulrich Drepper <drepper@redhat.com>
9099 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
9100 more little bugs in creating the stack frame when pltexit has to
9103 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
9104 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
9107 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
9108 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9109 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9110 * math/libm-test.inc: Add test for this case.
9113 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
9114 (svc_register): Initialize sc_mapped. Set to TRUE if call to
9115 map service succeeded.
9116 (svc_is_mapped): New function.
9117 (svc_unregister): Use it before trying to unmap service.
9119 2007-10-05 Ulrich Drepper <drepper@redhat.com>
9121 * timezone/zic.c: Update from tzcode2007h.
9124 * timezone/africa: Update from tzdata2007h.
9125 * timezone/antarctica: Likewise.
9126 * timezone/asia: Likewise.
9127 * timezone/australasia: Likewise.
9128 * timezone/europe: Likewise.
9129 * timezone/leapseconds: Likewise.
9130 * timezone/northamerica: Likewise.
9131 * timezone/southamerica: Likewise.
9132 * timzeone/zone.tab: Likewise.
9135 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
9138 * string/bits/string2.h (__strdup): Cast parameters to calloc to
9139 avoid warning with -Wconversion.
9140 (__strndup): Likewise.
9141 Half the patch by Christian Iseli <christian.iseli@licr.org>.
9144 * nscd/connections.c (restart): Don't resync if database is
9145 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
9147 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
9148 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
9150 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
9151 evetnfd_read, eventfd_write.
9152 * sysdeps/unix/sysv/linux/eventfd.c: New file.
9153 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
9154 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
9155 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
9156 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
9157 eventfd_write for GLIBC_2.7.
9159 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
9160 * sysdeps/unix/sysv/linux/signalfd.c: New file.
9161 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
9162 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
9164 2007-10-04 Jakub Jelinek <jakub@redhat.com>
9166 * stdlib/msort.c: Include stdint.h.
9167 (struct msort_param): New type.
9168 (msort_with_tmp): Use struct msort_param pointer for unchanging
9169 parameters. Add optimized handling for several common sizes
9170 and indirect sorting mode.
9171 (qsort): Adjust msort_with_tmp callers. For big S use indirect
9173 Suggested by Belazougui Djamel .
9175 * stdlib/Makefile (tests): Add tst-qsort2.
9176 * stdlib/tst-qsort2.c: New test.
9178 2007-10-04 Ulrich Drepper <drepper@redhat.com>
9180 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
9181 for dup2 in case another thread races with the current one. Retry
9184 * misc/error.h: Remove support for use outside of libc. We have to
9185 include <features.h> now. Include <bits/error.h> if possible.
9186 * misc/bits/error.h: New file.
9188 2007-10-03 Jakub Jelinek <jakub@redhat.com>
9190 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
9191 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
9192 __extern_always_inline functions unconditionally, drop macros.
9194 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
9195 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
9196 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
9198 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
9199 add __artificial__ attribute.
9201 2007-10-02 Ulrich Drepper <drepper@redhat.com>
9203 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
9204 backward to forward direction.
9206 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
9209 * locale/programs/ld-collate.c (collate_finish): Compare against last
9210 used section which is known to have rules defined.
9211 (collate_read): After order_start, correctly record order of sections
9212 and queue sections up.
9214 2007-10-01 Ulrich Drepper <drepper@redhat.com>
9217 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
9218 the same number of pages.
9219 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
9221 * locale/programs/ld-collate.c (collate_read): After initial copy
9222 statement, continue in state 0.
9224 * include/stdio_ext.h (__fsetlocking): Define as macro.
9226 2007-09-30 Ulrich Drepper <drepper@redhat.com>
9228 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
9231 * po/pt_BR.po: Fix typo.
9233 2007-09-29 Ulrich Drepper <drepper@redhat.com>
9235 * iconvdata/Makefile (modules): Add ISO8859-9E.
9236 (distribute): Add iso8859-9e.c.
9237 (gen-8bit-gap-modules): Add iso8859-9e.
9238 * iconvdata/iso8859-9e.c: New file.
9239 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
9240 * iconvdata/TESTS: Likewise.
9241 * iconvdata/tst-tables.sh: Likewise.
9243 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
9245 * locale/iso-639.def: Add several new entries.
9247 2007-09-24 Jakub Jelinek <jakub@redhat.com>
9249 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
9250 void * pointers instead of struct link_map **.
9251 (_dl_scope_free): Change argument type to void *.
9252 * include/link.h (struct link_map): Change type of l_reldeps
9253 to struct link_map_reldeps, move l_reldepsact into that
9255 * elf/dl-deps.c: Include atomic.h.
9256 (_dl_map_object_deps): Only change l->l_initfini when it is
9257 fully populated, use _dl_scope_free for freeing it. Optimize
9258 removal of libs from reldeps by using l_reserved flag, when
9259 some removal is needed, allocate a new list instead of
9260 reallocating and free the old with _dl_scope_free. Adjust
9261 for l_reldeps and l_reldepsact changes.
9262 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
9263 searching in l_initfini and l_reldeps without holding dl_load_lock.
9264 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
9265 l_reldepsact changes.
9266 * elf/dl-close.c (_dl_close_worker): Likewise.
9267 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
9269 2007-09-28 Ulrich Drepper <drepper@redhat.com>
9271 * iconvdata/Makefile (modules): Add KOI8-RU.
9272 (distribute): Add koi8-ru.c.
9273 (gen-8bit-gap-modules): Add koi8-ru.
9274 * iconvdata/koi8-ru.c: New file.
9275 * iconvdata/gconv-modules: Add entries for KOI8-RU.
9276 * iconvdata/TESTS: Likewise.
9277 * iconvdata/tst-tables.sh: Likewise.
9279 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
9281 2007-09-26 Jakub Jelinek <jakub@redhat.com>
9283 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
9284 with __warning__/__error__ attributes.
9285 (__warnattr): Define.
9286 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
9287 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
9289 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
9290 of __*_chk if compile time detectable overflow is found.
9291 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
9292 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
9294 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
9295 instead of __*_chk if compile time detectable overflow is found.
9296 (__gets_alias): Rename to...
9297 (__gets_warn): ... this. Add __warnattr.
9298 (gets): Call __gets_warn instead of __gets_alias.
9299 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
9300 aliases with __warnattr.
9301 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
9302 time detectable overflow is found.
9303 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
9304 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
9305 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
9306 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
9307 __getdomainname_chk_warn): New aliases with __warnattr.
9308 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
9309 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
9310 __*_chk_warn instead of __*_chk if compile time detectable overflow
9312 (__getgroups_chk): Rename argument to __listlen from listlen.
9313 (__getwd_alias): Rename to...
9314 (__getwd_warn): ... this. Add __warnattr.
9315 (getwd): Call __getwd_warn instead of __getwd_alias.
9316 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
9317 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
9318 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
9319 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
9320 __wcsnrtombs_chk_warn): New aliases with __warnattr.
9321 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
9322 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
9323 compile time detectable overflow is found.
9324 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
9325 to use __*_chk or not.
9326 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
9327 in comparisons which function should be called and in __*_chk*
9328 arguments. Call __*_chk_warn instead of __*_chk if compile time
9329 detectable overflow is found.
9330 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
9332 * debug/tst-chk1.c (do_test): Add a few more tests.
9334 2007-09-24 Ulrich Drepper <drepper@redhat.com>
9337 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
9338 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
9339 (_nl_unload_domain): Finalize conversions_lock.
9340 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
9341 handling table of known conversions.
9343 2007-09-24 Jakub Jelinek <jakub@redhat.com>
9345 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
9346 close_not_cancel_no_status instead of close.
9348 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
9351 * posix/regcomp.c (lookup_collation_sequence_value): Check that
9352 nrules != 0 for multibyte chars.
9354 2007-09-23 Ulrich Drepper <drepper@redhat.com>
9356 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
9357 Provide better error message in case the type is unknown.
9360 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
9361 * string/stratcliff.c: Make usable to test wide char functions.
9362 * wcsmbs/wcsatcliff.c: New file.
9363 * wcsmbs/Makefiel (tests): Add wcsatcliff.
9366 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
9367 (distribute): Add mac-centraleurope.c.
9368 (gen-8bit-gap-modules): Add mac-centraleurope.
9369 * iconvdata/mac-centraleurope.c: New file.
9370 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
9371 * iconvdata/TESTS: Likewise.
9372 * iconvdata/tst-tables.sh: Likewise.
9375 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
9377 2007-09-21 Ulrich Drepper <drepper@redhat.com>
9379 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
9380 from __x86_64_core_cache_size_half.
9381 (init_cacheinfo): Compute shared cache size for AMD processors with
9382 shared L3 correctly.
9383 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
9385 Patch in large parts by Evandro Menezes.
9387 2007-09-19 Ulrich Drepper <drepper@redhat.com>
9389 * elf/dl-lookup.c (add_dependency): Handle failing memory
9390 allocation for dependency list. Remove unnecessary check.
9392 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
9393 open/close when determining source addresses.
9395 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
9396 sha512-crypt, and sha512.
9397 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
9398 (distribute): Add sha256.h and sha512.h.
9399 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
9400 and call the appropriate code.
9401 * crypt/sha256-crypt.c: New file.
9402 * crypt/sha256.c: New file.
9403 * crypt/sha256.h: New file.
9404 * crypt/sha256c-test.c: New file.
9405 * crypt/sha256test.c: New file.
9406 * crypt/sha512-crypt.c: New file.
9407 * crypt/sha512.c: New file.
9408 * crypt/sha512.h: New file.
9409 * crypt/sha512c-test.c: New file.
9410 * crypt/sha512test.c: New file.
9412 2007-09-19 Jakub Jelinek <jakub@redhat.com>
9414 * misc/bits/syslog.h (syslog): Remove extraneous argument from
9415 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
9418 2007-09-18 Jakub Jelinek <jakub@redhat.com>
9420 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
9421 %as in fscanf format strings.
9423 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
9424 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9425 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
9427 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
9430 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
9431 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
9432 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
9433 * elf/dl-sym.c (do_sym): Likewise.
9434 * include/link.h (struct link_map): Add l_serial field.
9435 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
9436 * elf/dl-lookup.c (add_dependency): Add flags argument.
9437 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
9438 flags, use THREAD_GSCOPE_RESET_FLAG before and
9439 THREAD_GSCOPE_SET_FLAG after
9440 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
9441 Don't dereference map until it has been found on some list.
9442 If map->l_serial changed, return -1.
9444 2007-09-17 Jakub Jelinek <jakub@redhat.com>
9446 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
9447 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
9448 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
9450 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
9451 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
9452 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
9453 add libc_hidden_proto.
9454 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9455 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9456 conformance requested.
9457 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
9458 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9459 conformance requested.
9460 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9461 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
9462 conformance requested.
9463 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
9464 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
9465 ISO C99 or POSIX conformance requested.
9466 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
9467 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
9468 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
9469 and __isoc99_vsscanf@@GLIBC_2.7.
9470 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
9471 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
9472 (tests): Add scanf14.
9473 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
9474 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
9475 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
9476 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
9477 CFLAGS-isoc99_scanf.c): Add $(exceptions).
9478 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
9479 from using internal headers.
9480 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
9481 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
9482 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
9483 and __isoc99_vswscanf@@GLIBC_2.7.
9484 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
9485 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
9486 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
9487 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
9488 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
9489 * stdio-common/isoc99_scanf.c: New file.
9490 * stdio-common/isoc99_vsscanf.c: New file.
9491 * stdio-common/isoc99_vscanf.c: New file.
9492 * stdio-common/isoc99_vfscanf.c: New file.
9493 * stdio-common/isoc99_fscanf.c: New file.
9494 * stdio-common/isoc99_sscanf.c: New file.
9495 * wcsmbs/isoc99_fwscanf.c: New file.
9496 * wcsmbs/isoc99_vswscanf.c: New file.
9497 * wcsmbs/isoc99_swscanf.c: New file.
9498 * wcsmbs/isoc99_wscanf.c: New file.
9499 * wcsmbs/isoc99_vwscanf.c: New file.
9500 * wcsmbs/isoc99_vfwscanf.c: New file.
9501 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
9502 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
9503 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
9504 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
9505 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
9506 * stdio-common/scanf14.c: New test.
9507 * stdio-common/scanf15.c: New test.
9508 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9509 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
9510 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
9511 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
9512 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
9513 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
9514 __nldbl___isoc99_scanf@@GLIBC_2.7,
9515 __nldbl___isoc99_fscanf@@GLIBC_2.7,
9516 __nldbl___isoc99_sscanf@@GLIBC_2.7,
9517 __nldbl___isoc99_vscanf@@GLIBC_2.7,
9518 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9519 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9520 __nldbl___isoc99_wscanf@@GLIBC_2.7,
9521 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9522 __nldbl___isoc99_swscanf@@GLIBC_2.7,
9523 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9524 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9525 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9526 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9527 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9528 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9529 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9530 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9531 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9532 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9533 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9534 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9535 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9536 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9537 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9539 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9540 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9541 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9542 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9543 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9544 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9545 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9546 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9547 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9548 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9549 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9550 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9552 * stdio-common/Makefile (tests): Add scanf13.
9554 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9555 m modifier followed by l.
9556 (STRING_ARG): Add width argument.
9557 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9558 <case L_('C')>: Handle %mlc and %mC.
9559 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9561 * stdio-common/scanf13.c: New test.
9563 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9564 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9566 2007-09-18 Ulrich Drepper <drepper@redhat.com>
9568 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9569 type and __THROW marker of splice, vmsplice, and tee.
9570 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9571 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9572 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9573 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9574 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9575 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9576 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9577 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9578 as cancellation points.
9580 2003-11-01 Daniel Jacobowitz <dan@debian.org>
9582 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9583 parse more than three parts of the version number.
9585 2007-09-15 Ulrich Drepper <drepper@redhat.com>
9587 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9588 modifier. Patch by Jakub Jelinek.
9590 2007-08-26 Jakub Jelinek <jakub@redhat.com>
9592 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9593 call_fallocate in misc subdir.
9594 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9595 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9596 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9597 instead of __fallocate64.
9598 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9600 2007-09-15 Jakub Jelinek <jakub@redhat.com>
9602 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9603 * rt/Makefile (headers): Add bits/mqueue2.h.
9604 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9605 optimizing with GCC and __va_arg_pack_len is defined.
9606 * rt/bits/mqueue2.h: New file.
9607 * rt/mq_open.c (__mq_open): Renamed from mq_open.
9608 (mq_open): New strong_alias.
9609 (__mq_open_2): New function.
9610 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9611 (mq_open): New strong_alias.
9612 (__mq_open_2): New function.
9613 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9614 * Versions.def (librt): Add GLIBC_2.7 version.
9615 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9616 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9618 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9619 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9620 is defined rather than when not C++.
9621 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9622 __openat64_alias): New redirects.
9623 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9624 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9625 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9626 (open, open64, openat, openat64): Rewrite as __extern_always_inline
9627 functions instead of function-like macros.
9629 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
9631 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9632 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9633 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9635 2007-09-15 Mike Frysinger <vapier@gentoo.org>
9637 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9638 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9640 2007-09-14 Mike Frysinger <vapier@gentoo.org>
9642 * inet/tst-network.c: Increment ERRORS for failing tests.
9644 2007-09-07 Jakub Jelinek <jakub@redhat.com>
9646 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9647 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9648 implement as __extern_always_inline function.
9649 (vsyslog): Define as __extern_always_inline function unconditionally.
9650 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9651 When __va_arg_pack is defined, implement as __extern_always_inline
9653 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9654 __extern_always_inline functions unconditionally.
9655 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9656 bits/stdio2.h will be included.
9657 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9658 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9659 implement as __extern_always_inline functions.
9660 (vswprintf, vwprintf, vfwprintf): Define as
9661 __extern_always_inline functions unconditionally.
9662 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9664 2007-09-03 Jakub Jelinek <jakub@redhat.com>
9666 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9667 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9669 * include/features.h (__USE_EXTERN_INLINES): Define only when
9670 __extern_inline is defined.
9671 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9672 is defined instead of when not __cplusplus.
9673 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9674 is defined instead of when not __cplusplus.
9675 * socket/sys/socket.h: Include bits/socket2.h when
9676 __extern_always_inline is defined instead of when not __cplusplus.
9677 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9678 is defined instead of when not __cplusplus.
9679 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9680 is defined instead of when not __cplusplus.
9681 * string/string.h: Include bits/string3.h when __extern_always_inline
9682 is defined instead of when not __cplusplus.
9683 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9684 is defined instead of when not __cplusplus.
9685 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9686 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9688 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9689 defined __extern_always_inline instead of !defined __cplusplus.
9690 * libio/bits/stdio-ldbl.h: Likewise.
9691 * wcsmbs/bits/wchar-ldbl.h: Likewise.
9692 * misc/bits/syslog.h (syslog): Don't define for C++.
9693 (vsyslog): Use __extern_always_inline function for C++ instead of
9695 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9696 whenever that macro is defined.
9697 (vprintf): Don't provide the inline for C++.
9698 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9699 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9700 define the macros for C++.
9701 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9702 __extern_always_inline functions for C++.
9703 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9704 stat64, lstat64, fstat64, fstatat64): Don't define if not
9705 __USE_EXTERN_INLINES.
9706 * wcsmbs/bits/wchar2.h: Fix #error message.
9707 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9708 (vswprintf, vwprintf, vfwprintf): Define using
9709 __extern_always_inline functions for C++.
9710 * string/bits/string3.h: Don't #undef macros if __cplusplus.
9711 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9712 strncpy, strcat, strncat): Define as __extern_always_inline
9713 functions instead of macros for C++.
9714 * math/bits/cmathcalls.h: Guard __extern_inline routines with
9715 defined __extern_inline.
9716 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9717 to __extern_inline whenever that macro is defined.
9718 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9719 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9720 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9721 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9722 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9723 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9724 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9725 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9726 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9727 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9728 prototypes. Only provide __extern_inline routines if
9729 __USE_EXTERN_INLINES.
9730 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9732 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9733 For now avoid some *printf tests in C++. Skip all testing
9734 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9736 * debug/tst-chk4.cc: New file.
9737 * debug/tst-chk5.cc: New file.
9738 * debug/tst-chk6.cc: New file.
9739 * debug/tst-lfschk4.cc: New file.
9740 * debug/tst-lfschk5.cc: New file.
9741 * debug/tst-lfschk6.cc: New file.
9742 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9744 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9745 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9746 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9748 2007-09-13 Ulrich Drepper <drepper@redhat.com>
9750 * po/cs.po: Update from translation team.
9752 2007-09-11 Roland McGrath <roland@redhat.com>
9754 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9757 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9759 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9761 2007-09-05 Roland McGrath <roland@redhat.com>
9763 * manual/signal.texi (Signaling Another Process): Typo fix.
9764 From Karl Berry <karl@freefriends.org>.
9766 2007-08-29 Ulrich Drepper <drepper@redhat.com>
9768 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9769 zero if not defined.
9770 (make_request): Recognize optimistic addresses and treat them like
9771 deprecated addresses.
9772 Reported by Neil Horman <nhorman@redhat.com>.
9774 2007-08-28 Ulrich Drepper <drepper@redhat.com>
9776 * nscd/connections.c (send_ro_fd): Also transfer file size.
9777 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9778 file size don't call fstat.
9780 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9781 ahead and map the file. This should always be correct and we can
9782 catch problems later.
9784 2007-08-28 Jakub Jelinek <jakub@redhat.com>
9786 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9788 (__fread_alias, __fread_unlocked_alias): New aliases.
9789 (fread): New extern inline.
9790 (fread_unlocked): Likewise. Undef macro before definition of
9791 the inline function.
9792 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9793 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9794 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9795 and __fread_unlocked_chk@@GLIBC_2.7.
9796 * debug/fread_chk.c: New file.
9797 * debug/fread_u_chk.c: New file.
9798 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9800 2007-08-27 Jakub Jelinek <jakub@redhat.com>
9802 * sysdeps/unix/sysv/linux/syscalls.list
9803 (personality): Change caller to EXTRA.
9805 2007-08-25 Ulrich Drepper <drepper@redhat.com>
9807 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9809 * iconvdata/iso-2022-cn.c (BODY): Likewise.
9811 * locale/programs/ld-collate.c (collate_output): Avoid warning if
9814 * Makerules: Use -p option with mkdir.
9816 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9817 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9818 (_xdr_directory_obj): Likewise.
9819 (xdr_entry_obj): Likewise.
9820 (xdr_group_obj): Likewise.
9821 (xdr_link_obj): Likewise.
9822 (xdr_table_obj): Likewise.
9823 (_xdr_nis_result): Likewise.
9824 (_xdr_ns_request): Likewise.
9825 (_xdr_ib_request): Likewise.
9826 (_xdr_nis_taglist): Likewise.
9827 (xdr_cback_data): Likewise.
9828 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9829 (xdr_ypresp_maplist): Likewise.
9831 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9833 * posix/regex_internal.h: Prevent some declarations and definitions
9834 to be seen when used in tests.
9836 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9837 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9839 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9841 * config.make.in (datarootdir): Add to shut up configure.
9843 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9844 associativity for fully-associative caches.
9846 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9847 requests. Fill on more associativity values for L2.
9848 Patch mostly by Evandro Menezes.
9850 2007-08-24 Ulrich Drepper <drepper@redhat.com>
9852 * sysdeps/unix/sysv/linux/x86_64/init-first.c
9853 (_libc_vdso_platform_setup): Avoid using exported variable by using
9856 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9858 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9859 fallocate64 as EXTRA. It is not referenced if the symbol isn't
9862 2007-08-23 Ulrich Drepper <drepper@redhat.com>
9864 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9865 align stack for call if pltexit is to be used.
9868 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9869 align for function call in case pltexit has to be called later.
9871 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9872 implicit atomic operation when storing function pointer.
9873 (_dl_runtime_profile): Likewise.
9875 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9877 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9880 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9883 * string/strtok.c: Fix typo in comment.
9886 * debug/segfault.c: Fix typos in comments.
9889 * stdio-common/tempnam.c: Fix comment, it is not checked that
9890 TMPDIR points to a writable directory.
9893 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9894 memory allocated for the name server address.
9897 * nscd/connections.c (handle_request): Using sendfile always
9898 requires that mmap is used for the database.
9899 Patch by Petr Baudis <pasky@suse.cz>.
9902 * nscd/hstcache.c (cache_addhst): When reloading an entry which
9903 suddenly has two or more addresses, ignore it and remove the old
9907 * resolv/res_hconf.c: Prepare for compiling outside libc.
9908 * nscd/res_hconf.c: New file.
9909 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
9911 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9912 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9914 * nscd/hstcache.c (cache_addhst): Minimal optimization.
9917 * debug/pcprofiledump.c: Turn on internationalization by calling
9918 setlocale. Patch mostly by Benno Schulenberg.
9921 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9923 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9924 * iconvdata/bug-iconv5.c: New file.
9926 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
9929 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9930 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9931 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9932 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9933 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9934 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9935 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9936 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9938 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9941 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9942 lookup loop. Suggested by John Reiser.
9944 2007-08-21 Jakub Jelinek <jakub@redhat.com>
9946 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9948 2007-08-20 Ulrich Drepper <drepper@redhat.com>
9950 * csu/libc-start.c: Don't handle VDSO_SETUP here.
9951 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9952 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9953 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
9954 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9956 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
9958 2007-08-18 Ulrich Drepper <drepper@redhat.com>
9960 * po/nl.po: Update from translation team.
9962 2007-08-16 Andreas Jaeger <aj@suse.de>
9964 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9965 Reported by Peter Festner <peter.festner@ewetel.net>.
9967 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9969 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9971 2007-08-16 Jakub Jelinek <jakub@redhat.com>
9973 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9974 to check for undefined symbols.
9976 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9977 If the syscall fails, set errno to the actual returned error number
9979 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9980 arguments are incorrect, set errno to EINVAL, if the syscall
9981 fails, set errno to the actual returned error number.
9983 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9984 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9986 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9987 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
9989 (ASI_PNF, ASI_BLK_P): Don't define.
9990 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9991 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
9993 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9994 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
9997 2007-08-15 Jakub Jelinek <jakub@redhat.com>
9999 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
10000 FE_UNDERFLOW on Niagara CPUs.
10002 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
10005 2007-08-14 Jakub Jelinek <jakub@redhat.com>
10007 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
10008 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
10009 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
10010 flush should be used or not inside of the function.
10011 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
10013 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
10014 __thread_start): Use HIDDEN_JUMPTARGET.
10015 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
10016 __thread_start): Likewise.
10017 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
10019 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
10020 Add libc_hidden_proto.
10021 (STRTOF): Add libc_hidden_proto.
10022 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
10023 (strtold_l, wcstold_l): Use them as second argument for
10024 long_double_symbol.
10026 2007-08-14 Ulrich Drepper <drepper@redhat.com>
10028 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
10030 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10032 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
10034 2007-08-14 Ulrich Drepper <drepper@redhat.com>
10036 * po/bg.po: New file. From the translation team.
10038 2007-08-13 Jakub Jelinek <jakub@redhat.com>
10040 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
10041 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
10042 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
10043 when each feature was introduced.
10045 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
10046 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
10047 (CHECK_HASH): New macro.
10048 (PREPARE_VERSION): Use it.
10050 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
10051 prototype if not __ASSUME_PSELECT.
10052 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
10053 prototype if not __ASSUME_PPOLL.
10055 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
10057 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
10058 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
10061 2007-08-13 Ulrich Drepper <drepper@redhat.com>
10063 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
10064 (_libc_vdso_platform_setup): If vDSO is not available point
10065 __vdso_gettimeofday to the vsyscall.
10066 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
10067 __vdso_gettimeofday instead of vsyscall.
10069 2007-08-13 Jakub Jelinek <jakub@redhat.com>
10071 * nscd/servicescache.c: Include kernel-features.h.
10072 * nscd/gai.c: Likewise.
10073 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
10074 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
10075 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
10076 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
10077 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
10078 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
10079 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
10080 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
10081 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
10083 2007-08-12 Ulrich Drepper <drepper@redhat.com>
10085 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
10086 and _dl_get_origin defines anymore.
10088 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
10089 Build fix for systems which might lack POSIX timer support.
10091 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
10092 (_libc_vdso_platform_setup): Mangle function pointers before storing
10094 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
10095 Demangle vdso pointer before use.
10096 (INTERNAL_VSYSCALL): Likewise.
10098 * elf/cache.c (primes): Mark as const.
10099 Noted by Roland McGrath.
10101 2007-08-01 Andreas Jaeger <aj@suse.de>
10102 Jakub Jelinek <jakub@redhat.com>
10104 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
10105 (options): Add option.
10106 (parse_opt): Handle option.
10107 (manual_link): Adjust process_file caller. Call implicit_soname.
10108 (search_dir): Formatting. Use and populate auxiliary cache.
10109 (main): Load and save auxiliary cache.
10110 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
10111 stat64 from fstat64 to caller.
10112 (implicit_soname): New function.
10113 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
10114 leave *soname as NULL.
10115 * elf/cache.c: Include libgen.h.
10116 (print_entry, print_cache, compare, save_cache, add_to_cache):
10117 Formatting and cleanups.
10118 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
10119 aux_cache_file): New structures.
10120 (AUX_CACHEMAGIC): Define.
10121 (primes): New array.
10122 (aux_hash_size, aux_hash): New variables.
10123 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
10124 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
10125 load_aux_cache, save_aux_cache): New functions.
10126 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
10127 (init_aux_cache, search_aux_cache, add_to_aux_cache,
10128 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
10129 (process_file): Adjust prototype.
10131 2007-08-12 Jakub Jelinek <jakub@redhat.com>
10133 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
10134 with __need_size_t.
10136 2007-08-12 Ulrich Drepper <drepper@redhat.com>
10138 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
10139 r_found_version structure as second parameter.
10140 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
10141 (_dl_vdso_vsym): Change type of second parameter accordingly.
10142 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
10143 (_libc_vdso_platform_setup): Adjust.
10144 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10145 (_libc_vdso_platform_setup): Likewise.
10147 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
10148 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
10149 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
10150 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
10151 * csu/libc-start.c: Pretty printing.
10152 Use VDSO_SETUP if defined.
10153 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
10154 and let generic code call into _libc_vdso_platform_setup.
10155 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
10156 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
10157 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
10158 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
10159 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
10161 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
10162 (sysdep_rountines): Add dl-vdso.
10164 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
10167 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
10168 attribute_hidden to __vdso_gettimeofday prototype.
10170 2007-08-12 Roland McGrath <roland@redhat.com>
10172 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
10173 From: Karl Berry <karl@freefriends.org>.
10175 2007-08-11 Ulrich Drepper <drepper@redhat.com>
10177 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
10178 an atime update for the files we read.
10180 2007-08-10 Ulrich Drepper <drepper@redhat.com>
10182 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
10184 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
10185 instead of mkstemp.
10187 * misc/Makefile (routines): Add mkostemp and mkostemp64.
10188 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
10189 * misc/mkostemp.c: New file.
10190 * misc/mkostemp64.c: New file.
10191 * stdlib/stdlib.h: Declare the new functions.
10192 * sysdeps/posix/tempname.c: Add new parameter which is added to
10193 the flags for open. Remove __GT_BIGFILE handling.
10194 * stdio-common/tempname.c: Likewise.
10195 * include/stdio.h: Adjust __gen_tempname prototype.
10196 Renumber __GT_* constants.
10197 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
10198 * misc/mkdtemp.c: Likewise.
10199 * misc/mkstemp.c: Likewise.
10200 * misc/mkstemp64.c: Likewise.
10201 * misc/mktemp.c: Likewise.
10202 * stdio-common/tempnam.c: Likewise.
10203 * stdio-common/tmpfile.c: Likewise.
10204 * stdio-common/tmpfile64.c: Likewise.
10205 * stdio-common/tmpnam.c: Likewise.
10206 * stdio-common/tmpnam_r.c: Likewise.
10208 2007-08-10 Roland McGrath <roland@frob.com>
10210 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
10212 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
10213 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10215 2007-08-10 Ulrich Drepper <drepper@redhat.com>
10217 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
10219 * nss/nss_files/files-alias.c (internal_setent): Likewise.
10220 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
10221 * nss/nss_files/files-have_o_cloexec.c: New file.
10223 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
10226 2007-08-10 Jakub Jelinek <jakub@redhat.com>
10228 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
10229 ___new_wcstold_l): New weak aliases.
10230 (strtold_l, wcstold_l): Use them as second argument for
10231 long_double_symbol.
10233 2007-08-09 Ulrich Drepper <drepper@redhat.com>
10235 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
10236 register in test for error.
10238 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
10239 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
10241 * po/sv.po: Update from translation team.
10243 2007-08-06 Roland McGrath <roland@redhat.com>
10245 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
10246 Remove __strto*_l inlines.
10247 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
10248 * stdlib/strtod.c: Add libc_hidden_def.
10249 * stdlib/strtod_l.c: Likewise.
10250 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
10251 for __new_strtold and __new_wcstold.
10252 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
10254 * stdlib/strtol.c: Add libc_hidden_def.
10255 * stdlib/strtol_l.c: Likewise.
10256 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
10259 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
10261 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
10262 * scripts/data/localplt-generic.data: ... here.
10263 * elf/Makefile (check-data): Get generic file if no other.
10264 ($(objpfx)check-localplt.out): Make target unconditional.
10266 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
10269 2007-08-05 Ulrich Drepper <drepper@redhat.com>
10271 * po/zh_CN.po: Updated translation from translation team.
10273 2007-08-05 Jakub Jelinek <jakub@redhat.com>
10275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
10276 Don't use CGOTSETUP and CGOTRESTORE macros.
10278 2007-08-04 Roland McGrath <roland@redhat.com>
10280 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
10282 2007-08-04 Jakub Jelinek <jakub@redhat.com>
10284 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
10285 __extension__ around the whole statement expression.
10287 2007-08-04 Ulrich Drepper <drepper@redhat.com>
10289 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
10290 elements during initialization.
10292 * po/pl.po: Updated translation from translation team.
10293 * po/tr.po: Likewise.
10294 * po/nl.po: Likewise.
10296 2007-08-03 Ulrich Drepper <drepper@redhat.com>
10298 * rt/aio.h: Add __nonnull attributes.
10300 2007-08-03 Jakub Jelinek <jakub@redhat.com>
10302 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
10303 * stdlib/Makefile (tests): Add tst-strtod5.
10304 (tst-strtod5-ENV): New.
10305 * stdlib/tst-strtod5.c: New file.
10307 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
10309 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
10312 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
10315 2007-08-03 Jakub Jelinek <jakub@redhat.com>
10317 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
10320 2007-08-02 Ulrich Drepper <drepper@redhat.com>
10322 * io/Makefile (aux): Add have_o_cloexec.
10323 * include/fcntl.h: Declare __have_o_cloexec.
10324 * io/have_o_cloexec.c: New file.
10325 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
10326 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
10327 fcntl call if not necessary.
10328 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
10331 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
10332 Avoid memset, add explicit initialization.
10333 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
10334 to the end and change into zero-sized array.
10335 Move lock member to fill a hole on 64-bit platforms.
10337 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
10339 * include/stdlib.h: Add __strto*_internal prototypes here.
10340 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
10342 * include/wchar.h: Add __wcsto*_internal prototypes.
10343 * sysdeps/generic/inttypes.h: No need to protect the declaration
10344 of the __strto*_internal and __wcsto*_internal members here.
10346 * rt/mqueue.h: Change const to __const and add nonnull attributes.
10348 2007-08-02 Roland McGrath <roland@redhat.com>
10350 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
10351 $(inst_bindir)/getconf if possible.
10353 * posix/Makefile ($(objpfx)getconf.speclist): New target.
10354 (generated): Add it.
10355 ($(inst_libexecdir)/getconf): Use it.
10357 2007-08-01 Ulrich Drepper <drepper@redhat.com>
10359 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
10360 /proc is faster and sufficient. /sys is still needed for
10363 2007-08-01 Jakub Jelinek <jakub@redhat.com>
10365 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
10366 syscall as __fallocate64.
10367 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
10368 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
10370 2007-07-30 Jakub Jelinek <jakub@redhat.com>
10372 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
10375 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
10376 if off_t is different rank from size_t.
10378 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
10379 uw_frame_state_for): Avoid type punning warnings.
10380 * sysdeps/generic/unwind-dw2-fde-glibc.c
10381 (_Unwind_IteratePhdrCallback): Likewise.
10382 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
10383 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
10384 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
10387 2007-07-31 Ulrich Drepper <drepper@redhat.com>
10389 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
10390 total processors using sysfs.
10391 (__get_nprocs): Use sysfs to determine which processors are online.
10393 2007-07-31 Jakub Jelinek <jakub@redhat.com>
10395 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
10396 syscall arguments count.
10398 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
10400 2007-07-30 Roland McGrath <roland@redhat.com>
10402 * manual/libc.texinfo: Update copyrights, formatting magic, and
10403 @dircategory. From Karl Berry <karl@freefriends.org>.
10405 2007-07-29 Ulrich Drepper <drepper@redhat.com>
10408 * io/Makefile (headers): Add bits/fcntl2.h.
10410 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
10412 (__CPU_EQUAL_S): Likewise.
10414 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
10415 (tests): Add tst-cpuset.
10416 * posix/sched_cpualloc.c: New file.
10417 * posix/sched_cpufree.c: New file.
10418 * posix/tst-cpuset.c: New file.
10419 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
10421 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
10422 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
10423 macros. Define CPU_*_S macros.
10425 2007-07-28 Ulrich Drepper <drepper@redhat.com>
10427 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
10431 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
10432 #.0g and value rounded to 1.0.
10433 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
10435 2007-07-26 Jakub Jelinek <jakub@redhat.com>
10437 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
10438 for int_frac_digits and frac_digits.
10440 * login/logout.c (logout): Avoid aliasing violation.
10441 * login/logwtmp.c (logwtmp): Likewise.
10443 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
10445 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
10447 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
10449 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
10451 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
10454 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
10456 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
10458 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
10459 char * to avoid warning.
10460 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
10462 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
10464 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
10465 allocate_arrays): Cast second argument to charmap_find_symbol
10466 to char * to avoid warnings.
10468 * locale/programs/repertoire.c (repertoire_new_char): Change
10469 from_nr, to_nr and cnt to unsigned long, adjust printf format
10472 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
10473 Cast second argument to new_element to char * to avoid warnings.
10475 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
10477 * intl/gettextP.h (struct loaded_domain): Change plural to const
10478 struct expression *.
10479 * intl/plural-eval.c (plural_eval): Change first argument to
10480 const struct expression *.
10481 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
10482 argument to const struct expression **.
10483 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
10485 * intl/loadmsgcat (_nl_unload_domain): Cast away const
10486 in call to __gettext_free_exp.
10488 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
10489 unitialized wstring/wpattern var warnings.
10491 * posix/runtests.c (struct a_test): Make data field const char *.
10493 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
10494 vars if not LDBL_MANT_DIG >= 106.
10496 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
10498 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
10499 __find_specmb to avoid warning.
10501 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
10503 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
10506 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
10509 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
10510 tv var when it will be actually used.
10512 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
10515 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
10516 char array resp. pointer.
10517 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10519 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10520 to const unsigned char **.
10521 (ucs4_to_cns11643): Change second argument to unsigned char *.
10522 * iconvdata/euc-tw.c (BODY): Change endp type to
10523 const unsigned char *.
10524 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10525 to unsigned char *.
10526 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10527 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10528 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10529 types to unsigned char pointers/arrays instead of char.
10530 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10531 to unsigned char *.
10532 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10533 * iconvdata/jis0212.h: Include assert.h.
10534 (ucs4_to_jisx0212): Change second argument to unsigned char *.
10535 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10536 of trying to handle that.
10537 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10539 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10540 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10541 two dimensional const unsigned char arrays.
10542 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10543 Initialize endp to inptr to shut up a warning.
10545 2007-07-20 Jakub Jelinek <jakub@redhat.com>
10548 * time/strptime_l.c (__strptime_internal): Silently ignore
10549 strftime modifiers and field width in recursive calls.
10551 * include/time.h (enum ptime_locale_status): Remove.
10552 (__strptime_internal): Remove decided and era_cnt arguments,
10553 add statep argument.
10554 * time/strptime_l.c (__strptime_internal): Remove decided
10555 and era_cnt arguments, add statep argument. Don't recompute
10556 any fields in recursive calls, only update caller's tm
10557 and state, if recursive call fails, don't change tm nor
10559 (get_alt_number): Adjust.
10560 (recursive): Adjust caller.
10561 (strptime): Likewise.
10562 * time/strptime.c (strptime): Likewise.
10564 2007-07-19 Jakub Jelinek <jakub@redhat.com>
10566 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10567 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10568 if from and to charsets are the same.
10569 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10570 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10571 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10573 2007-07-17 Jakub Jelinek <jakub@redhat.com>
10575 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10576 Don't define wint_t when __need_mbstate_t unless it
10578 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10579 in the typedef if possible.
10580 * wctype/wctype.h (wint_t): Define by including
10581 wchar.h with __need_wint_t instead of including stddef.h
10582 with __need_wint_t and as fallback definining it ourselves.
10583 * iconv/gconv.h (__need_wint_t): Define before including
10585 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10586 or _GLIBCPP_USE_WCHAR_T.
10587 (__need_wchar_t): Don't define
10588 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10589 (__need_wint_t): Don't define before including stddef.h,
10590 define before including wchar.h only if _LIBC or
10591 _GLIBCPP_USE_WCHAR_T.
10592 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10593 * sysdeps/mach/hurd/_G_config.h: Likewise.
10594 * sysdeps/generic/_G_config.h: Likewise.
10595 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10596 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10597 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10598 if _LIBC or _GLIBCPP_USE_WCHAR_T.
10600 2007-07-28 Ulrich Drepper <drepper@redhat.com>
10602 * sysdeps/posix/posix_fallocate64.c: Undefine
10603 __posix_fallocate64_l64 before alias handling.
10604 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10605 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10606 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10607 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10609 * io/tst-posix_fallocate.c: Include <fcntl.h>.
10611 2007-07-23 Jakub Jelinek <jakub@redhat.com>
10613 * locale/programs/ld-collate.c (atwc): New variable.
10614 (add_to_tablewc): New toplevel function, moved from collate_output.
10615 (collate_output): Remove add_to_tablewc nested function.
10617 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10618 (name_insert): New function.
10619 (write_output): Remove hash_table and hash_size vars and name_insert
10622 2007-07-24 Roland McGrath <roland@redhat.com>
10624 * Makerules (install-others-programs-nosubdir): New target.
10625 (install-no-libc.a-nosubdir): Depend on it.
10627 * iconv/Makefile (install-others-programs): Set this instead of
10629 * login/Makefile (install-others-programs): Likewise.
10630 * posix/Makefile (install-others-programs): Likewise.
10632 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10635 2007-07-23 Ulrich Drepper <drepper@redhat.com>
10637 * io/Makefile (tests): Add tst-posix_fallocate.
10638 * io/tst-posix_fallocate.c: New file.
10640 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10641 __ASSUME_FALLOCATE.
10643 2007-07-22 Roland McGrath <roland@frob.com>
10645 * hurd/getdport.c: Add missing copyright year update.
10647 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10648 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10650 2007-07-22 Ulrich Drepper <drepper@redhat.com>
10652 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10654 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10655 O_CLOEXEC is needed.
10656 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10657 Avoid additional fcntl to set O_CLOEXEC if not needed.
10658 * nis/nss_compat/compat-initgroups.c: Likewise.
10659 * nis/nss_compat/compat-pwd.c: Likewise.
10660 * nis/nss_compat/compat-spwd.c: Likewise.
10662 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
10665 * manual/errno.texi: Change ECANCELED value to 119.
10668 * mach/lock-intern.h: Include <sys/cdefs.h>.
10671 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10675 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10678 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10680 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
10682 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10684 * sysdeps/mach/hurd/i386/tls.h: Likewise.
10686 2007-07-21 Ulrich Drepper <drepper@redhat.com>
10688 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10689 descriptor received from nscd.
10691 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10693 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10694 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10695 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10696 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10697 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10698 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10700 2007-07-20 Jakub Jelinek <jakub@redhat.com>
10703 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10706 * login/forkpty.c (forkpty): Close master and slave fds on
10707 fork failure. Patch by
10708 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10710 2007-07-18 Jakub Jelinek <jakub@redhat.com>
10712 * include/features.h (__USE_ISOC95): New define.
10713 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10714 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10715 for -std=iso9899:199409.
10716 * CONFORMANCE: Remove comments about unsupported AMD1.
10718 2007-07-17 Jakub Jelinek <jakub@redhat.com>
10720 * sysdeps/ia64/sched_cpucount.c: New file.
10721 * sysdeps/powerpc/sched_cpucount.c: New file.
10723 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10724 __BEGIN_DECLS/__END_DECLS around the prototype.
10725 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
10726 pointer to const cpu_set_t.
10728 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10729 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10730 __need_size_t and include stddef.h.
10731 * sysvipc/sys/msg.h: Likewise.
10732 * posix/sched.h: Likewise.
10733 * hurd/hurd/signal.h (__need_size_t): Define.
10735 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10736 neither does signal.h in pedantic ISO C namespaces. stdio.h
10737 no longer defines wint_t or wchar_t.
10739 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10740 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10741 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10742 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10743 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10744 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10745 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10746 * debug/printf_chk.c (__printf_chk): Likewise.
10747 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10748 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10750 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10753 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10754 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10756 2007-07-16 Jakub Jelinek <jakub@redhat.com>
10759 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10760 * malloc/malloc.h (realloc): Likewise.
10762 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10763 if one of proc_file_chain streams has that fileno.
10764 * stdio-common/Makefile (tests): Add tst-popen2.
10765 * stdio-common/tst-popen2.c: New test.
10767 2007-07-14 Jakub Jelinek <jakub@redhat.com>
10769 * elf/ldconfig.c: Allow GPLv2 or any later version.
10770 * elf/readlib.c: Likewise.
10771 * elf/chroot_canon.c: Likewise.
10772 * elf/cache.c: Likewise.
10773 * nscd/mem.c: Likewise.
10774 * nscd/getpwuid_r.c: Likewise.
10775 * nscd/grpcache.c: Likewise.
10776 * nscd/aicache.c: Likewise.
10777 * nscd/getsrvbynm_r.c: Likewise.
10778 * nscd/nscd.c: Likewise.
10779 * nscd/servicescache.c: Likewise.
10780 * nscd/getsrvbypt_r.c: Likewise.
10781 * nscd/initgrcache.c: Likewise.
10782 * nscd/gethstbyad_r.c: Likewise.
10783 * nscd/gethstbynm2_r.c: Likewise.
10784 * nscd/getgrnam_r.c: Likewise.
10785 * nscd/nscd_setup_thread.c: Likewise.
10786 * nscd/getpwnam_r.c: Likewise.
10787 * nscd/gai.c: Likewise.
10788 * nscd/connections.c: Likewise.
10789 * nscd/dbg_log.c: Likewise.
10790 * nscd/cache.c: Likewise.
10791 * nscd/hstcache.c: Likewise.
10792 * nscd/nscd_conf.c: Likewise.
10793 * nscd/getgrgid_r.c: Likewise.
10794 * nscd/pwdcache.c: Likewise.
10795 * catgets/gencat.c: Likewise.
10796 * locale/programs/linereader.h: Likewise.
10797 * locale/programs/locarchive.c: Likewise.
10798 * locale/programs/ld-paper.c: Likewise.
10799 * locale/programs/locfile-kw.h: Likewise.
10800 * locale/programs/ld-address.c: Likewise.
10801 * locale/programs/xmalloc.c: Likewise.
10802 * locale/programs/ld-time.c: Likewise.
10803 * locale/programs/localedef.c: Likewise.
10804 * locale/programs/simple-hash.c: Likewise.
10805 * locale/programs/xstrdup.c: Likewise.
10806 * locale/programs/ld-numeric.c: Likewise.
10807 * locale/programs/locfile-kw.gperf: Likewise.
10808 * locale/programs/ld-collate.c: Likewise.
10809 * locale/programs/charmap-kw.gperf: Likewise.
10810 * locale/programs/charmap.h: Likewise.
10811 * locale/programs/charmap-kw.h: Likewise.
10812 * locale/programs/config.h: Likewise.
10813 * locale/programs/locfile.c: Likewise.
10814 * locale/programs/ld-ctype.c: Likewise.
10815 * locale/programs/charmap.c: Likewise.
10816 * locale/programs/ld-messages.c: Likewise.
10817 * locale/programs/repertoire.h: Likewise.
10818 * locale/programs/locale.c: Likewise.
10819 * locale/programs/ld-name.c: Likewise.
10820 * locale/programs/linereader.c: Likewise.
10821 * locale/programs/locfile.h: Likewise.
10822 * locale/programs/3level.h: Likewise.
10823 * locale/programs/ld-monetary.c: Likewise.
10824 * locale/programs/ld-measurement.c: Likewise.
10825 * locale/programs/charmap-dir.c: Likewise.
10826 * locale/programs/ld-identification.c: Likewise.
10827 * locale/programs/localedef.h: Likewise.
10828 * locale/programs/charmap-dir.h: Likewise.
10829 * locale/programs/repertoire.c: Likewise.
10830 * locale/programs/simple-hash.h: Likewise.
10831 * locale/programs/ld-telephone.c: Likewise.
10832 * locale/programs/locale-spec.c: Likewise.
10833 * locale/programs/locfile-token.h: Likewise.
10834 * posix/getconf.c: Likewise.
10835 * iconv/dummy-repertoire.c: Likewise.
10836 * iconv/iconv_charmap.c: Likewise.
10837 * iconv/iconvconfig.c: Likewise.
10838 * iconv/iconv_prog.c: Likewise.
10839 * malloc/memusagestat.c: Likewise.
10840 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10842 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10844 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10845 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10846 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10847 check for the first argument.
10849 2007-07-12 Jakub Jelinek <jakub@redhat.com>
10852 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10853 (__tgmath_real_type): Fix if expr is const int or other const
10854 qualified integral type.
10855 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10856 expressions and handle const qualified arguments.
10857 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10858 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10859 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10860 statement expressions.
10861 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10862 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10863 (__TGMATH_UNARY_IMAG): Define.
10864 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10865 * math/Makefile (tests): Add test-tgmath2.
10866 (CFLAGS-test-tgmath2.c): Add.
10867 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10868 count_cfloat, count_cldouble): New variables.
10870 (main): Check number of complex calls as well.
10871 (F(compile_test)): Add complex tests and tests with const qualified
10873 (y, z, ccount): Define.
10874 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10875 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10876 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10877 F(cproj)): New functions.
10878 * math/test-tgmath2.c: New test.
10880 2007-07-11 Jakub Jelinek <jakub@redhat.com>
10883 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10884 RPATH etc. as "/" rather than "", don't segfault on empty paths,
10885 instead output ".".
10886 * dlfcn/Makefile (distribute): Add glreflib3.c.
10887 (module-names): Add glreflib3.
10888 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10890 (LDFLAGS_glreflib3.so): New.
10891 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10893 * dlfcn/glreflib3.c: New file.
10895 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10896 returned -1, return NULL.
10897 * intl/explodename.c (_nl_explode_name): Return -1 if
10898 _nl_normalize_codeset failed.
10900 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
10902 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10903 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
10904 and avoid branch misspredicts for > 31 bytes memset case.
10905 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10906 Remove toc ref to __cache_line_size.
10908 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10909 to get ISA-V2.0 branch hints.
10910 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10911 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10912 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10913 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10914 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10915 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10916 Remove toc ref to __cache_line_size.
10918 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10919 Include math_ldbl_opt.h.
10921 2007-07-10 Ulrich Drepper <drepper@redhat.com>
10924 * time/strptime_l.c (__strptime_internal): Implement greedy
10925 matching of weekday and month names.
10927 2007-07-09 Roland McGrath <roland@redhat.com>
10929 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10930 (ELF_NOTE_ABI): Use it.
10931 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10933 2007-07-09 Ulrich Drepper <drepper@redhat.com>
10935 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10936 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10938 2007-07-07 Ulrich Drepper <drepper@redhat.com>
10941 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10942 in loop to look for conversion specifier to avoid testing of
10944 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10945 * stdio-common/bug18.c: New file.
10946 * stdio-common/bug18a.c: New file.
10947 * stdio-common/bug19.c: New file.
10948 * stdio-common/bug19a.c: New file.
10950 2007-07-05 Mike Frysinger <vapier@gentoo.org>
10952 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10953 running awk script.
10955 2007-07-01 Jakub Jelinek <jakub@redhat.com>
10957 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10958 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
10959 Return NULL if mmap failed instead of asserting it does not.
10960 (calloc): Check for integer overflow.
10962 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10963 than LONG_MAX / 10.
10965 2007-07-03 Jakub Jelinek <jakub@redhat.com>
10968 * nis/nss-default.c: Include errno.h.
10969 (init): Preserve errno.
10971 2007-07-02 Ulrich Drepper <drepper@redhat.com>
10973 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10975 2007-06-30 Ulrich Drepper <drepper@redhat.com>
10977 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10979 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10981 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10983 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10985 * sysdeps/s390/dl-procinfo.c: New file.
10986 * sysdeps/s390/dl-procinfo.h: New file.
10987 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10989 2007-06-29 Jakub Jelinek <jakub@redhat.com>
10991 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10992 in PT_NOTE segments with multiple notes.
10993 * elf/readelflib.c (process_elf_file): Likewise.
10995 2007-06-22 Ulrich Drepper <drepper@redhat.com>
10997 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
11000 2007-06-19 Ulrich Drepper <drepper@redhat.com>
11002 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
11004 2007-06-13 Jakub Jelinek <jakub@redhat.com>
11006 * include/link.h: Don't include rtld-lowlevel.h.
11007 (struct link_map): Remove l_scope_lock.
11008 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
11009 (_dl_scope_free_list): New field (variable) in _rtld_global.
11010 (DL_LOOKUP_SCOPE_LOCK): Remove.
11011 (_dl_scope_free): New prototype.
11012 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
11013 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
11014 (_dl_profile_fixup): Likewise.
11015 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
11016 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
11017 THREAD_GSCOPE_RESET_FLAG around it.
11018 * elf/dl-close.c (_dl_close_worker): Don't use
11019 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
11020 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
11021 scopes were queued or if l_scope_mem has been abandoned.
11022 * elf/dl-open.c (_dl_scope_free): New function.
11023 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
11024 * elf/dl-support.c (_dl_scope_free_list): New variable.
11025 * elf/dl-lookup.c (add_dependency): Remove flags argument.
11026 Remove DL_LOOKUP_SCOPE_LOCK handling.
11027 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
11029 * elf/dl-object.c (_dl_new_object): Don't use
11030 __rtld_mrlock_initialize.
11032 2007-06-19 Ulrich Drepper <drepper@redhat.com>
11034 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
11036 (rtld_global_ro): Likewise.
11038 2007-06-18 Jakub Jelinek <jakub@redhat.com>
11040 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
11041 Move PT_LOAD checking to...
11042 (_dl_addr_inside_object): ... here, new function.
11043 * elf/dl-sym.c (do_sym): If not l_contiguous,
11044 call _dl_addr_inside_object.
11045 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
11046 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
11047 * elf/dl-open.c (dl_open_worker): Likewise.
11048 (_dl_addr_inside_object): New function if IS_IN_rtld.
11049 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
11050 holes are present or are PROT_NONE protected.
11051 * include/link.h (struct link_map): Add l_contiguous field.
11052 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
11054 2007-06-18 Jakub Jelinek <jakub@redhat.com>
11055 Tomas Janousek <tjanouse@redhat.com>
11056 Ulrich Drepper <drepper@redhat.com>
11059 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
11060 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
11062 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
11063 unused member a bitmap.
11064 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
11065 servers are configured.
11067 2007-06-18 Jakub Jelinek <jakub@redhat.com>
11069 * elf/rtld.c (dl_main): Don't call init_tls more than once.
11071 2007-06-17 Andreas Schwab <schwab@suse.de>
11073 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
11075 2007-06-16 Andreas Jaeger <aj@suse.de>
11078 * sysdeps/unix/sysv/linux/sys/ptrace.h
11079 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
11080 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
11081 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
11082 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
11083 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
11085 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11086 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11087 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11088 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11090 2007-06-16 Ulrich Drepper <drepper@redhat.com>
11093 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
11094 determining whether there are IPv4/IPv6 addresses, ignore loopback
11097 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
11099 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
11100 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
11101 as the return type. Change type of "r" variable to CMPtype.
11102 * soft-fp/eqsf2.c (__eqsf2): Likewise.
11103 * soft-fp/eqtf2.c (__eqtf2): Likewise.
11104 * soft-fp/gedf2.c (__gedf2): Likewise.
11105 * soft-fp/gesf2.c (__gesf2): Likewise.
11106 * soft-fp/getf2.c (__getf2): Likewise.
11107 * soft-fp/ledf2.c (__ledf2): Likewise.
11108 * soft-fp/lesf2.c (__lesf2): Likewise.
11109 * soft-fp/letf2.c (__letf2): Likewise.
11110 * soft-fp/unorddf2 (__unorddf2): Likewise.
11111 * soft-fp/unordsf2 (__unordsf2): Likewise.
11112 * soft-fp/unordtf2 (__unordtf2): Likewise.
11114 2007-06-09 Ulrich Drepper <drepper@redhat.com>
11116 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
11117 make sure gcc doesn't mess around with this.
11119 2007-06-08 Ulrich Drepper <drepper@redhat.com>
11121 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
11123 2007-06-08 Jakub Jelinek <jakub@redhat.com>
11125 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
11126 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
11127 at most once per _dl_close_worker.
11129 2007-06-08 Ulrich Drepper <drepper@redhat.com>
11131 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
11132 __sched_cpucount as const.
11133 * posix/sched_cpucount.c: Adjust.
11135 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
11136 instruction for counting bits.
11137 * sysdeps/x86_64/sched_cpucount.c: New file.
11139 2007-06-07 Ulrich Drepper <drepper@redhat.com>
11141 * configure.in: Avoid variable named BASH.
11142 * config.make.in: Likewise.
11143 Patch in part by Mike Frysinger.
11145 2007-06-06 Jakub Jelinek <jakub@redhat.com>
11148 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
11149 pseudo-zeros as zero.
11150 * sysdeps/x86_64/ldbl2mpn.c: New file.
11151 * sysdeps/ia64/ldbl2mpn.c: New file.
11153 2007-06-04 Jakub Jelinek <jakub@redhat.com>
11155 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
11156 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
11157 Remove unreachable code at the end.
11159 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
11161 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
11162 ldbl-128ibm in comment.
11163 (fpclassifyl): Correct classification of denormals.
11164 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
11165 return value for MIN denormal. Rewrite using long double math too
11166 correctly handle denormals and canonicalize the results.
11168 2007-06-05 Jakub Jelinek <jakub@redhat.com>
11170 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
11171 (__mpn_construct_long_double): Fix conversion where result ought
11172 to be smaller than __LDBL_MIN__, or the low double should be
11173 denormal. Fix decision where to negate low double - honor round
11175 * stdio-common/tst-sprintf2.c: Include string.h.
11176 (COMPARE_LDBL): Define.
11177 (TEST): Also test whether a string hexadecimal float representation
11178 can be parsed back to the number.
11179 (main): Add a couple of further tests.
11181 2007-06-04 Jakub Jelinek <jakub@redhat.com>
11183 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
11184 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
11185 is non-zero, but smaller than 2 * __DBL_MIN__.
11186 * stdio-common/tst-sprintf2.c: New test.
11187 * stdio-common/Makefile (tests): Add tst-sprintf2.
11189 * math/test-misc.c (main): Don't run last batch of tests with
11190 IBM long double format.
11192 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
11194 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
11195 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
11196 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
11197 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
11198 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
11199 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
11200 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
11201 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
11202 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
11203 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
11204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
11205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
11207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
11209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
11211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
11213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
11215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
11216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
11218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
11220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
11222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
11224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
11227 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
11229 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
11230 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
11231 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
11232 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
11233 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
11234 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
11235 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
11236 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
11238 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
11240 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
11241 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11242 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
11243 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11244 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
11245 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11246 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
11247 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11249 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
11251 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
11252 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
11253 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
11254 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
11256 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
11258 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
11259 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
11261 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
11263 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
11264 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
11265 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
11266 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
11268 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
11270 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
11271 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
11273 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
11275 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
11276 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
11278 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
11279 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
11280 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
11281 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11283 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
11285 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
11286 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
11287 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
11288 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
11290 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
11292 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
11293 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
11294 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
11295 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
11296 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
11297 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
11299 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
11301 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
11302 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
11303 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
11304 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
11306 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
11308 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
11309 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
11310 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
11311 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
11312 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
11313 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
11314 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
11315 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
11316 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
11317 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
11318 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
11319 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
11320 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
11321 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
11322 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
11323 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
11325 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
11327 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
11328 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
11330 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
11332 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
11333 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
11335 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
11337 * sysdeps/powerpc/powerpc32/970/Implies: New file.
11338 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
11339 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
11340 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
11341 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
11342 * sysdeps/powerpc/powerpc64/970/Implies: New file.
11343 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
11344 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
11345 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
11346 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
11348 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
11350 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
11352 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
11354 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
11355 branch miss-predicts. Ensure that cache line crossing does not impact
11358 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
11360 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
11361 "../../powerpc32/power4/memcopy.h".
11362 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
11363 "../../powerpc32/power4/wordcopy.c".
11365 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
11367 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
11368 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
11369 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
11370 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
11371 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
11372 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
11374 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
11376 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
11378 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
11380 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
11381 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
11382 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
11383 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
11384 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
11385 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
11386 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
11387 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
11389 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
11391 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
11393 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
11395 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
11396 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
11397 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
11398 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
11399 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
11400 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
11401 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
11403 2007-05-29 Roland McGrath <roland@redhat.com>
11405 * po/Makefile (po-sed-cmd): New variable.
11406 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
11408 2007-05-29 Ulrich Drepper <drepper@redhat.com>
11410 * crypt/md5-crypt.c: Fix comment.
11412 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
11413 of crashing. When this is the case or if the reply is malformed,
11414 don't try to close the new file descriptor since it does not
11416 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
11418 2007-05-28 Jakub Jelinek <jakub@redhat.com>
11420 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
11421 if __NR_utimensat is not defined.
11423 2007-05-26 Ulrich Drepper <drepper@redhat.com>
11425 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
11427 2007-05-25 Jakub Jelinek <jakub@redhat.com>
11429 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
11430 (open): Fix comment typos. Don't call __open_2 if flags
11431 is a compile time constant without O_CREAT.
11432 (__open64_2): Add nonnull attribute.
11433 (open64): Fix comment typos. Don't call __open64_2 if flags
11434 is a compile time constant without O_CREAT.
11435 (__openat_2): Add nonnull attribute, fix nonnull attribute
11437 (openat): Fix comment typos. Don't call __openat_2 if flags
11438 is a compile time constant without O_CREAT.
11439 (__openat64_2): Add nonnull attribute, fix nonnull attribute
11441 (openat64): Fix comment typos. Don't call __openat64_2 if flags
11442 is a compile time constant without O_CREAT.
11444 2007-05-24 Ulrich Drepper <drepper@redhat.com>
11446 * Makerules (sysd-rules): Define PTW for ptw-* files.
11447 * Versions: Define GLIBC_2.7 for libc.
11448 * include/stdio.h: Declare __fortify_fail.
11449 * debug/fortify_fail.c: New file.
11450 * debug/Makefile (routines): Add fortify_fail.
11451 * debug/chk_fail.c: Use __fortify_fail.
11452 * debug/stack_chk_fail.c: Likewise.
11453 * io/Versions: Export __open_2, __open64_2, __openat_2, and
11454 __openat64_2 for GLIBC_2.7.
11455 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
11456 * io/open.c: Define *_2 variant of function which checks for O_CREAT
11457 and fails if necessary.
11458 * io/open64.c: Likewise.
11459 * io/openat.c: Likewise.
11460 * io/openat64.c: Likewise.
11461 * sysdeps/unix/sysv/linux/open64.c: Likewise.
11462 * sysdeps/unix/sysv/linux/openat.c: Likewise.
11463 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
11464 * io/bits/fcntl2.h: New file.
11465 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
11467 * include/bits/fcntl2.h: New file.
11468 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11470 * sysdeps/unix/sysv/linux/open_2.c: New file.
11472 2007-05-21 Ulrich Drepper <drepper@redhat.com>
11474 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
11475 as second parameter to handle_intel.
11477 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
11480 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
11482 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
11483 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11485 * sysdeps/x86_64/memcpy.S: Complete rewrite.
11486 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
11487 Patch by Evandro Menezes <evandro.menezes@amd.com>.
11489 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
11491 2007-05-21 Jakub Jelinek <jakub@redhat.com>
11494 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
11495 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
11496 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
11498 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
11501 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
11502 reinitialize workend at the start of each do_positional format spec
11503 loop, free workstart before do_positional loops.
11504 (printf_unknown): Fix size of work_buffer.
11505 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
11507 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
11508 (public_sET_STATe): If ms->version < 3, put all chunks into
11509 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
11512 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
11513 * malloc/hooks.c: Likewise.
11514 * malloc/arena.c: Likewise.
11515 * malloc/malloc.c (do_check_malloc_state): Don't assert
11516 n_mmaps is not greater than n_mmaps_max. This removes the need
11517 for the previous change.
11519 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11522 2007-05-19 Ulrich Drepper <drepper@redhat.com>
11524 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11525 Define for kernel >= 2.6.22.
11527 2007-05-18 Ulrich Drepper <drepper@redhat.com>
11529 * elf/dl-close.c (_dl_close_worker): When removing object from
11530 global scope, wait for all lookups to finish afterwards.
11531 * elf/dl-open.c (add_to_global): When global scope array must
11532 grow, allocate a new one and free old array only after all
11534 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11535 (_dl_lookup_symbol_x): Likewise.
11536 * elf/dl-support.c: Define _dl_wait_lookup_done.
11537 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11538 _dl_wait_lookup_done.
11540 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11541 not overlapping with arena.
11543 * malloc/mcheck.c (reallochook): If size==0, free the block.
11545 * rt/tst-shm.c: Use fstat64 instead of fstat.
11547 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11548 __NR_sync_file_range is not defined.
11550 2007-05-17 Ulrich Drepper <drepper@redhat.com>
11552 Dummy files to prevent stub versions from being used.
11553 * sysdeps/x86_64/fpu/k_cosl.c: New file.
11554 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11555 * sysdeps/x86_64/fpu/k_sinl.c: New file.
11556 * sysdeps/x86_64/fpu/k_tanl.c: New file.
11558 * version.h (VERSION): Set to 2.6.90.
11560 2007-05-14 Ulrich Drepper <drepper@redhat.com>
11562 * version.h (VERSION): Define to 2.6.
11563 * include/features.h (__GLIBC_MINOR__): Define to 6.
11565 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11567 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11570 2007-05-13 Ulrich Drepper <drepper@redhat.com>
11572 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11573 number of mmaps. n_mmaps_max is the target.
11574 * malloc/hooks.c: Likewise.
11575 * malloc/arena.c: Likewise.
11577 2007-05-12 Andreas Jaeger <aj@suse.de>
11579 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11582 2007-05-11 Ulrich Drepper <drepper@redhat.com>
11584 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11585 adding new variables.
11587 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11588 optimize. Completely extend global scope array before making the
11589 new entries visible.
11591 2007-05-10 Ulrich Drepper <drepper@redhat.com>
11593 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11594 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11597 * include/link.h: Move l_version and l_nversion members around to
11600 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11602 * sysdeps/unix/sysv/linux/sched_setaffinity.c
11603 (__sched_setaffinity_new): If syscall was successful and
11604 RESET_VGETCPU_CACHE is defined, use it before returning.
11605 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11607 * io/sys/stat.h: Make sure struct timespec is defined for
11610 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11612 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11613 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11614 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11615 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11616 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11617 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11618 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11619 * io/sys/stat.h: Declare utimensat, futimens.
11620 * io/utimensat.c: New file.
11621 * io/futimens.c: New file.
11622 * sysdeps/unix/sysv/linux/utimensat.c: New file.
11623 * sysdeps/unix/sysv/linux/futimens.c: New file.
11624 * io/Makefile (routines): Add utimensat, futimens.
11625 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11626 * sysdeps/unix/sysv/linux/lutimes.c: New file.
11627 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11630 * include/sys/cdefs.h: Redefine __nonnull so that test for
11631 incorrect parameters in the libc code itself are not omitted.
11633 2007-05-09 Jakub Jelinek <jakub@redhat.com>
11635 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11636 exception in addition to inexact when asked to raise only FE_INEXACT.
11639 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11642 2007-05-07 Ulrich Drepper <drepper@redhat.com>
11645 * string/strfry.c (strfry): Make result more random.
11647 2007-05-07 Richard Henderson <rth@redhat.com>
11649 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11650 if __NO_LONG_DOUBLE_MATH.
11651 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11652 available in the compiler, add .arch directive to the assembly.
11654 2007-05-07 Jakub Jelinek <jakub@redhat.com>
11656 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11657 compat_symbol to GLIBC_2_1.
11658 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11659 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11660 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11661 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11662 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11663 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11664 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11666 (__isnanl): New compat_symbol.
11668 2007-05-07 Ulrich Drepper <drepper@redhat.com>
11669 Jakub Jelinek <jakub@redhat.com>
11671 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11672 (new_heap): Initialize mprotect_size.
11673 (grow_heap): When growing, only mprotect from mprotect_size till
11674 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
11675 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11677 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
11678 Peter Bergner <bergner@us.ibm.com>
11680 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11681 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
11682 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11683 * sysdeps/powerpc/fpu/fe_mask.c: New file.
11684 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11685 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11686 Call __fe_mask_env() if all FP exceptions disabled.
11687 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11688 from old FPSCR to new fenv to propagate DFP rounding modes.
11689 Call __fe_mask_env() if FP exceptions previously enabled.
11690 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11691 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
11692 transitioning from all exceptions disabled to any exception enabled
11694 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11695 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
11696 when transitioning from all exceptions disabled to any exception
11697 enabled or visa versa.
11698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11705 2007-05-06 Ulrich Drepper <drepper@redhat.com>
11708 * posix/unistd.h: Remove __THROW from fdatasync.
11710 2007-05-06 Mike Frysinger <vapier@gentoo.org>
11713 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11715 2007-05-06 Ulrich Drepper <drepper@redhat.com>
11717 * stdio-common/vfprintf.c (process_string_arg): Optimize
11718 ridiculous precision in wide char code printing multi-byte string.
11719 Reported by Jim Meyering <jim@meyering.net>.
11722 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11723 boundaries to work around systems with overlapping binary loading.
11724 Based on a patch by Suzuki <suzuki@in.ibm.com>.
11726 2007-05-04 Ulrich Drepper <drepper@redhat.com>
11728 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11729 __mbsnrtowcs after last change.
11731 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11732 (get_ident): Likewise.
11734 2007-05-03 Jakub Jelinek <jakub@redhat.com>
11736 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11737 with setting the sticky bit.
11738 * math/test-misc.c (main): Add more truncation tests.
11740 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
11742 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11743 double in the function declaration.
11744 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11745 double in the function declaration.
11746 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11747 float in the function declaration.
11748 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11749 float in the function declaration.
11751 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11752 denormal operands. Do not generate FP_EX_DENORM exception.
11753 (FP_UNPACK_RAW_EP): Ditto.
11754 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11755 undefined _FP_UNPACK_RAW_E.
11756 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11757 undefined _FP_UNPACK_RAW_EP.
11758 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11759 undefined _FP_PACK_RAW_E.
11760 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11761 undefined _FP_PACK_RAW_EP.
11763 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11765 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11768 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
11769 Jakub Jelinek <jakub@redhat.com>
11771 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11772 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
11774 * soft-fp/op-common.h (FP_TRUNC): Ditto.
11776 2007-05-03 Jakub Jelinek <jakub@redhat.com>
11778 * math/test-misc.c (main): Add tests for rounding long double
11779 values close to smallest double denormalized value to double.
11781 2007-04-30 Joseph Myers <joseph@codesourcery.com>
11783 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11784 condition for truncating to 0. Set sticky bit for such
11787 2007-05-02 Jakub Jelinek <jakub@redhat.com>
11789 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11790 fixed length array for ignore.
11792 2007-04-30 Ulrich Drepper <drepper@redhat.com>
11795 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11796 stack for large precisions.
11797 * stdio-common/test-vfprintf.c (main): Add test for large
11800 2007-04-30 Jakub Jelinek <jakub@redhat.com>
11802 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11804 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11807 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11808 account in the size check.
11809 * resolv/tst-inet_ntop.c: New test.
11810 * resolv/Makefile (tests): Add tst-inet_ntop.
11812 2007-04-30 Ulrich Drepper <drepper@redhat.com>
11813 Jakub Jelinek <jakub@redhat.com>
11816 * malloc/malloc.c: Keep separate list for first blocks on the bin
11817 lists with a given size. This helps skipping over list elements
11818 we know won't fit in two places.
11819 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11821 2007-04-28 Ulrich Drepper <drepper@redhat.com>
11824 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11825 label to Teredo tunnel addresses 2001://32.
11827 2007-04-27 Ulrich Drepper <drepper@redhat.com>
11829 * locale/programs/ld-collate.c (collate_read): Allow order_start
11832 * locale/programs/ld-collate.c (collate_read): Fix printing of
11836 * locale/C-translit.h.in: Add entry for U2044.
11839 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11840 hexa-decimal floats without exponent.
11841 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11843 2007-04-25 Ulrich Drepper <drepper@redhat.com>
11845 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11846 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11847 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11848 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11850 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11853 2007-04-25 Jakub Jelinek <jakub@redhat.com>
11855 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11856 of 0 after the out_fail label.
11858 2007-04-25 Ulrich Drepper <drepper@redhat.com>
11861 * iconv/gconv_charset.h (strip): Allow ':'.
11862 * iconv/iconv_open.c (iconv_open): Adjust comment.
11864 2007-04-25 Jakub Jelinek <jakub@redhat.com>
11866 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11869 2007-04-23 Jakub Jelinek <jakub@redhat.com>
11872 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11873 alignment of buffer and tmp_buffer.
11874 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11875 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11876 alignment of buffer.
11877 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
11878 bigger than INT_MAX.
11879 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
11880 h_errnop arguments. Fail if buflen is too small.
11881 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11883 2007-04-23 Jakub Jelinek <jakub@redhat.com>
11886 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11887 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
11889 2007-04-22 Roland McGrath <roland@redhat.com>
11891 * elf/elf.h (NT_PRXFPREG): New macro.
11893 2007-04-19 Andreas Jaeger <aj@suse.de>
11896 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11897 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11900 2007-04-19 Ulrich Drepper <drepper@redhat.com>
11902 * include/sys/mman.h: Mark madvise hidden.
11903 * misc/madvise.c: Add libc_hidden_def.
11905 2007-04-06 Jakub Jelinek <jakub@redhat.com>
11907 * nis/nis_domain_of.c (__nis_domain_of): New function.
11908 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11909 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11910 * nis/nis_call.c (rec_dirsearch): Likewise.
11911 (first_shoot): Likewise. Remove search_parent_first argument.
11912 (struct nis_server_cache): Rename search_parent_first field
11914 (nis_server_cache_search, nis_server_cache_add): Rename
11915 search_parent_first argument to search_parent.
11916 (__nisfind_server): Likewise. If search_parent, call
11919 2007-04-18 Ulrich Drepper <drepper@redhat.com>
11921 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11923 2007-04-17 Ulrich Drepper <drepper@redhat.com>
11926 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11928 2007-04-16 Jakub Jelinek <jakub@redhat.com>
11930 * locale/programs/locarchive.c (add_alias, insert_name): Remove static.
11932 2007-04-16 Ulrich Drepper <drepper@redhat.com>
11935 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11937 2007-04-15 Jakub Jelinek <jakub@redhat.com>
11939 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11940 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11941 current number of locales in SUPPORTED.
11942 (create_archive): Initialize serial.
11943 (enlarge_archive): Preserve aliases rather than duplicating
11946 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11948 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11949 after _IO_un_link, not before it.
11951 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11952 special case handling when wcp == wstartp + 1. Fix a comment typo.
11953 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11955 2007-03-30 Jakub Jelinek <jakub@redhat.com>
11957 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11958 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11959 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11961 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11962 _IO_file_xsgetn_maybe_mmap): Likewise.
11963 * libio/oldfileops.c (old_do_write): Likewise.
11964 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11965 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11966 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11967 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11968 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11969 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11970 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11971 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11972 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11973 _IO_file_underflow, _IO_file_underflow_mmap,
11974 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11975 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11976 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11977 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11978 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11979 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11980 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11981 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11982 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11983 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11984 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11985 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11986 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11987 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11988 _IO_adjust_column_internal, _IO_default_uflow_internal,
11989 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11990 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11991 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11992 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11993 _IO_file_close_it_internal, _IO_file_underflow_internal,
11994 _IO_file_overflow_internal, _IO_file_attach_internal,
11995 _IO_file_fopen_internal, _IO_file_sync_internal,
11996 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11997 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11998 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11999 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
12000 _IO_seekpos_unlocked): Likewise.
12001 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
12002 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
12004 2007-04-16 Jakub Jelinek <jakub@redhat.com>
12006 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
12007 argument in xmalloc size computation.
12009 2007-04-01 Jakub Jelinek <jakub@redhat.com>
12011 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
12012 math_opt_barrier and math_force_eval macros.
12014 2007-03-27 Jakub Jelinek <jakub@redhat.com>
12017 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
12018 * sysdeps/i386/fpu/math_private.h: New file.
12019 * sysdeps/x86_64/fpu/math_private.h: New file.
12020 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
12021 math_force_eval macros. Use "+m" constraint on asm rather than
12023 * math/s_nextafter.c (__nextafter): Likewise.
12024 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
12026 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
12027 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
12028 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
12029 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
12030 math_opt_barrier and math_force_eval macros.
12031 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
12032 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
12033 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
12034 (__nexttoward): Use math_opt_barrier and
12035 math_force_eval macros. Use "+m" constraint on asm rather than
12036 "=m" and "m". Only use asm to force double result if
12037 FLT_EVAL_METHOD is 2.
12038 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
12039 (__nexttowardf): Use math_opt_barrier and
12040 math_force_eval macros. Use "+m" constraint on asm rather than
12041 "=m" and "m". Only use asm to force double result if
12042 FLT_EVAL_METHOD is not 0.
12043 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
12044 (__nexttowardf): Use math_opt_barrier and
12045 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
12046 x to float using asm.
12047 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
12048 (__nldbl_nexttowardf): Use math_opt_barrier and
12049 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
12050 x to float using asm.
12051 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
12052 (__nexttowardf): Use math_opt_barrier and math_force_eval
12053 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
12054 * math/bug-nextafter.c (zero, inf): New variables.
12055 (main): Add new tests.
12056 * math/bug-nexttoward.c (zero, inf): New variables.
12057 (main): Add new tests.
12059 2007-03-22 Jakub Jelinek <jakub@redhat.com>
12062 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
12063 exceptions both in SW and MXCSR.
12064 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
12065 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
12066 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
12067 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
12068 in MXCSR if SSE is available.
12069 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
12071 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
12073 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
12074 Return 0 rather than 1.
12075 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
12076 Remove incorrect part of a comment. Fix argument to feraiseexcept.
12077 * math/test-fenv.c (feholdexcept_tests): New function.
12080 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
12083 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
12086 2007-04-13 Jakub Jelinek <jakub@redhat.com>
12089 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
12090 Reported by David Anderson <davea42@earthlink.net>.
12092 2007-04-07 Ulrich Drepper <drepper@redhat.com>
12094 * posix/sys/wait.h: Remove unnecessary forward declaration.
12096 2007-04-05 Jakub Jelinek <jakub@redhat.com>
12098 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
12099 with obj->do_servers after first_shoot.
12101 2007-04-03 Ulrich Drepper <drepper@redhat.com>
12103 * posix/Makefile (routines): Add sched_cpucount.
12104 (tests): Add tst-cpucount.
12105 * posix/sched_cpucount.c: New file.
12106 * posix/tst-cpucount.c: New file.
12107 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
12108 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
12109 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12110 * posix/sched.h: Define CPU_COUNT.
12112 2007-03-27 Jakub Jelinek <jakub@redhat.com>
12114 * posix/fnmatch.c (STRUCT): Define.
12115 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
12116 * posix/fnmatch_loop.c (struct STRUCT): New type.
12117 (FCT): Add ends argument. If ends != NULL and normal * is
12118 seen in the pattern, store current pattern and string pointers
12119 and return. Adjust recursive calls.
12120 (EXT): Adjust FCT callers.
12121 (STRUCT): Undef at the end of the file.
12122 * posix/Makefile (tests): Add tst-fnmatch2.
12123 * posix/tst-fnmatch2.c: New test.
12125 2007-04-01 Jakub Jelinek <jakub@redhat.com>
12127 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
12130 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
12131 Change last argument to unsigned int.
12133 2007-03-23 Jakub Jelinek <jakub@redhat.com>
12135 * scripts/check-local-headers.sh: Filter out sys/capability.h.
12137 2007-03-22 Jakub Jelinek <jakub@redhat.com>
12139 * config.h.in (HAVE_LIBCAP): Add.
12140 * nscd/selinux.h: Include sys/capability.h rather than non-existent
12141 sys/capabilities.h.
12142 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
12143 free_caps. Cast away const from 4th cap_set_flag argument.
12145 2007-03-26 Ulrich Drepper <drepper@redhat.com>
12147 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
12149 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12150 Add sync_file_range.
12151 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
12153 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
12155 * sysdeps/powerpc/bits/atomic.h
12156 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
12157 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
12158 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
12159 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
12160 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
12161 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
12162 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
12163 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
12164 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
12165 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
12166 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
12167 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
12168 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
12169 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
12170 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
12171 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
12172 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
12173 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
12174 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
12175 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
12177 2007-03-20 Jakub Jelinek <jakub@redhat.com>
12179 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
12180 (__cache_line_size): Define the variable here. Add
12181 attribute_hidden, remove weak_extern.
12182 (__libc_start_main): Set __cache_line_size
12184 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
12185 (__cache_line_size): Define the variable here. Add
12186 attribute_hidden, remove weak_extern.
12187 (DL_PLATFORM_AUXV): Set __cache_line_size
12189 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
12190 weak_extern, add attribute_hidden.
12191 (__elf_machine_runtime_setup): Assume __cache_line_size is always
12193 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
12195 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
12197 2007-03-26 Jakub Jelinek <jakub@redhat.com>
12200 * timezone/africa: Update from tzdata2007d.
12201 * timezone/asia: Likewise.
12202 * timezone/australasia: Likewise.
12203 * timezone/backward: Likewise.
12204 * timezone/europe: Likewise.
12205 * timezone/iso3166.tab: Likewise.
12206 * timezone/leapseconds: Likewise.
12207 * timezone/northamerica: Likewise.
12208 * timezone/southamerica: Likewise.
12209 * timezone/zone.tab: Likewise.
12211 * timezone/private.h: Update from tzcode2007d.
12212 * timezone/zdump.c: Likewise.
12213 * timezone/zic.c: Likewise.
12215 2007-03-21 Jakub Jelinek <jakub@redhat.com>
12217 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
12218 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
12220 (nis_server_cache_search, nis_server_cache_add): New functions.
12221 (__nisfind_server): Use them. Add dbp and flags argument, if
12222 call __nisbind_create.
12223 (__nisbind_create): Add server_used and current_ep arguments,
12224 only call __nis_findfastest if server_used is ~0.
12225 (__do_niscall2, __prepare_niscall): Adjust callers.
12226 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
12227 ckey_cache_euid, ckey_cache_lock): New variables.
12228 (get_ckey): New function.
12229 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
12230 __pmap_getnisport. Save __pmap_getnisport result in
12231 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
12233 * nis/nis_lookup.c (nis_lookup): Likewise.
12234 * nis/nis_table.c (nis_list): Likewise.
12235 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
12238 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
12239 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
12240 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
12241 _nss_nisplus_getservbyport_r): Likewise.
12242 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
12243 _nss_nisplus_getnetbyaddr_r): Likewise.
12244 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
12245 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
12246 _nss_nisplus_getntohost_r): Likewise.
12247 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
12248 _nss_nisplus_getrpcbynumber_r): Likewise.
12250 2007-03-20 Jakub Jelinek <jakub@redhat.com>
12252 * configure.in (libc_cv_gnu89_inline): Only do compile test.
12253 * configure: Rebuilt.
12255 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
12257 * soft-fp/extended.h (_FP_UNION_E): Likewise.
12259 2006-06-07 Joseph Myers <joseph@codesourcery.com>
12262 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
12265 2007-03-18 Jakub Jelinek <jakub@redhat.com>
12267 * nscd/gai.c: Include alloca.h.
12268 (__libc_use_alloca): Define.
12270 2007-03-16 Jakub Jelinek <jakub@redhat.com>
12272 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
12274 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
12275 (DL_DST_REQUIRED): Adjust user.
12277 * include/dlfcn.h (struct link_map): New forward decl.
12279 * inet/getnameinfo.c: Include stddef.h.
12280 (getnameinfo): Use offsetof.
12282 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
12284 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
12286 * string/strerror_l.c: Include stdlib.h.
12288 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
12289 * config.make.in (gnu89-inline-CFLAGS): New variable.
12290 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
12292 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
12293 * argp/argp.h: Use it.
12294 * bits/mathinline.h: Likewise.
12295 * bits/sigset.h: Likewise.
12296 * bits/string.h: Likewise.
12297 * ctype/ctype.h: Likewise.
12298 * hurd/hurd.h: Likewise.
12299 * hurd/hurd/fd.h: Likewise.
12300 * hurd/hurd/port.h: Likewise.
12301 * hurd/hurd/signal.h: Likewise.
12302 * hurd/hurd/threadvar.h: Likewise.
12303 * hurd/hurd/userlink.h: Likewise.
12304 * io/sys/stat.h: Likewise.
12305 * libio/bits/stdio.h: Likewise.
12306 * libio/bits/stdio2.h: Likewise.
12307 * mach/lock-intern.h: Likewise.
12308 * mach/mach/mig_support.h: Likewise.
12309 * math/bits/cmathcalls.h: Likewise.
12310 * posix/bits/unistd.h: Likewise.
12311 * socket/bits/socket2.h: Likewise.
12312 * stdlib/bits/stdlib.h: Likewise.
12313 * stdlib/stdlib.h: Likewise.
12314 * string/argz.h: Likewise.
12315 * string/bits/string2.h: Likewise.
12316 * string/bits/string3.h: Likewise.
12317 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
12318 * sysdeps/generic/inttypes.h: Likewise.
12319 * sysdeps/generic/machine-lock.h: Likewise.
12320 * sysdeps/generic/machine-sp.h: Likewise.
12321 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
12322 * sysdeps/i386/i486/bits/string.h: Likewise.
12323 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
12324 * sysdeps/mach/alpha/machine-lock.h: Likewise.
12325 * sysdeps/mach/alpha/machine-sp.h: Likewise.
12326 * sysdeps/mach/i386/machine-lock.h: Likewise.
12327 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
12328 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
12329 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
12330 * sysdeps/s390/bits/string.h: Likewise.
12331 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
12332 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12333 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
12334 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12335 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12336 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
12337 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12338 * wcsmbs/bits/wchar2.h: Likewise.
12339 * wcsmbs/wchar.h: Likewise.
12340 * stdlib/gmp.h: Likewise. Include <features.h> to get
12341 __extern_inline definition.
12343 2007-03-15 Jakub Jelinek <jakub@redhat.com>
12345 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
12349 * math/libm-test.inc (log_test): Test -Inf and NaN.
12350 (log10_test, log1p_test, log2_test): Test -Inf.
12351 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
12352 FE_INVALID when argument is qNaN.
12353 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
12354 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
12355 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
12356 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
12357 andb $1, %ah with testb $1, %ah, don't test for parity, instead
12358 testb $4, %ah and jump if non-zero.
12359 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
12360 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
12363 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
12364 ancestors with the same depths.
12365 Patch by Niels Moeller <nisse@lysator.liu.se>.
12366 (filter_doc): Don't crash if argp is NULL.
12367 * argp/Makefile (tests): Add tst-argp2.
12368 * argp/tst-argp2.c: New test.
12371 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
12373 (updwtmp_file): Likewise.
12376 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
12377 (inet6_opt_append): Don't check extlen is big enough if extbuf
12379 (inet6_opt_finish): Likewise.
12380 * inet/Makefile (tests): Add test-inet6_opt.
12381 * inet/test-inet6_opt.c: New test.
12383 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
12384 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
12385 NLMSG_ERR. Instead use a page sized buffer.
12386 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
12389 2007-03-14 Richard Henderson <rth@redhat.com>
12391 * sysdeps/alpha/fpu/s_llround.c: New file.
12392 * sysdeps/alpha/fpu/s_llroundf.c: New file.
12393 * sysdeps/alpha/fpu/s_lround.c: New file.
12394 * sysdeps/alpha/fpu/s_lroundf.c: New file.
12395 * sysdeps/alpha/fpu/s_round.c: New file.
12396 * sysdeps/alpha/fpu/s_roundf.c: New file.
12397 * sysdeps/alpha/fpu/s_trunc.c: New file.
12398 * sysdeps/alpha/fpu/s_truncf.c: New file.
12400 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
12401 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12402 * sysdeps/alpha/fpu/s_floor.c: Likewise.
12403 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12404 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12405 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12407 * sysdeps/alpha/fpu/s_fmax.S: New file.
12408 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
12409 * sysdeps/alpha/fpu/s_fmin.S: New file.
12410 * sysdeps/alpha/fpu/s_fminf.S: New file.
12411 * sysdeps/alpha/fpu/s_isnan.c: New file.
12412 * sysdeps/alpha/fpu/s_isnanf.c: New file.
12413 * sysdeps/alpha/fpu/s_llrint.c: New file.
12414 * sysdeps/alpha/fpu/s_llrintf.c: New file.
12415 * sysdeps/alpha/fpu/s_lrint.c: New file.
12416 * sysdeps/alpha/fpu/s_lrintf.c: New file.
12417 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
12418 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
12420 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
12421 (__fdimf, fdimf, __fdim, fdim): Remove.
12422 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
12423 (__isnanf, __isnan, __isnanl): New.
12425 2007-03-13 Richard Henderson <rth@redhat.com>
12427 * sysdeps/ieee754/ldbl-128/Makefile: New file.
12429 2007-03-13 Richard Henderson <rth@redhat.com>
12431 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
12432 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
12433 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
12434 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
12435 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
12436 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
12438 2007-03-13 Richard Henderson <rth@redhat.com>
12440 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
12441 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
12442 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
12443 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
12444 Move to dl-auxv.h; initialize instead of extern weak.
12445 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
12447 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
12448 Extern instead of initialized.
12450 2007-03-13 Richard Henderson <rth@redhat.com>
12452 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
12453 __sigsuspend_nocancel.
12455 2007-03-06 Ulrich Drepper <drepper@redhat.com>
12457 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
12458 172.16/12 address range.
12460 2007-03-02 Jakub Jelinek <jakub@redhat.com>
12462 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
12463 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
12466 2007-03-01 Jakub Jelinek <jakub@redhat.com>
12469 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
12471 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
12473 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
12474 for x qNaN and y either +-inf or non-integer value.
12475 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
12476 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12477 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12479 2007-02-10 Mike Frysinger <vapier@gentoo.org>
12481 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
12482 from sysdep_headers.
12484 2007-02-28 Jakub Jelinek <jakub@redhat.com>
12486 * time/tzfile.c (find_transition): Instead of a linear search try to
12487 guess the transition index, use a linear search if the result is at
12488 most 10 transitions away from the guess or binary search otherwise.
12490 2007-02-27 Jakub Jelinek <jakub@redhat.com>
12492 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
12493 memory reallocation.
12495 2007-02-21 Ulrich Drepper <drepper@redhat.com>
12497 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
12498 and fix some typos.
12499 Optimize use of TOLOWER.
12502 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
12503 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12504 * sysdeps/i386/fpu/e_fmod.S: Likewise.
12507 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
12508 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
12511 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
12512 (open_dir_stream): Likewise.
12513 * io/Makefile (tests): Add bug-ftw5.
12514 * io/bug-ftw5.c: New file.
12516 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
12517 * nscd/servicescache.c (cache_addserv): Likewise.
12519 * nscd/grpcache.c (cache_addgr): In case a record changed on
12520 refresh, adjust key_copy.
12523 * nscd/pwdcache.c (cache_addpw): In case a record changed on
12524 refresh, adjust key_copy.
12527 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12529 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12531 2007-02-19 Ulrich Drepper <drepper@redhat.com>
12533 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12536 * stdio-common/vfscanf.c: Small cleanups throughout.
12538 2007-02-18 Ulrich Drepper <drepper@redhat.com>
12541 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12542 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12543 * sysdeps/i386/fpu/e_fmod.S: Likewise.
12544 Patch by Jared Casper <jaredcasper@gmail.com>.
12546 * sysdeps/unix/closedir.c: Outside libc don't use locking.
12547 * sysdeps/unix/opendir.c: Likewise.
12548 * sysdeps/unix/readdir.c: Likewise.
12551 * stdio-common/vfscanf.c: Handle localized digits etc for floating
12553 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12555 * stdio-common/vfscanf.c: Fix problems in width accounting.
12556 * stdio-common/tst-sscanf.c (double_tests): New tests.
12557 (main): Hook them up.
12559 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12560 More simplifications of floating-point reader.
12562 * stdio-common/Makefile (tests): Add tst-swscanf.
12563 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12565 * stdio-common/tst-swscanf.c: New file.
12567 2007-02-17 Ulrich Drepper <drepper@redhat.com>
12570 * libio/stdio.h: Define struct _IO_FILE in global namespace.
12571 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12572 Remove using for __jmp_buf_tag.
12573 * locale/locale.h (struct lconv): Also define in std namespace.
12574 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12577 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12578 using __libc_enable_secure.
12581 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12584 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12585 of names for ellipsises.
12588 * malloc/memusage.sh: Cleanups.
12589 * debug/xtrace.sh: Quoting and trap changes.
12591 2007-02-16 Ulrich Drepper <drepper@redhat.com>
12593 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12595 * locale/iso-3166.def: Update entry for Serbia.
12596 * locale/iso-4217.def: Define RSD, remove CSD.
12598 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12599 and 64-bit operations.
12602 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12605 * nscd/nscd.c (parse_opt): One more conversion to use send instead
12608 2007-02-15 Ulrich Drepper <drepper@redhat.com>
12611 * assert/assert.h (assert): Simplify.
12612 (assert_perror): Likewise.
12613 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12615 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12618 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12619 change: don't pass NULL in place of an integer.
12621 2007-02-02 Bruno Haible <bruno@clisp.org>
12624 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12625 Add mapping for U+327E.
12626 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12627 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12628 mapping of 0xD9 0xE8.
12629 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12631 Reported by Jungshik Shin <jungshik@google.com>.
12634 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12635 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12636 Reported by Jungshik Shin <jungshik@google.com>.
12638 2007-02-14 Ulrich Drepper <drepper@redhat.com>
12640 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12644 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12645 byte variants. Patch mostly be tom@tommay.net.
12647 2007-02-14 Jakub Jelinek <jakub@redhat.com>
12650 * posix/glob.c (attribute_hidden): Define if not defined.
12651 (glob): Unescape dirname, filename or username when needed and not
12652 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
12653 is NULL. Handle unescaped [ in pattern without closing ].
12654 Don't pass GLOB_CHECK down to recursive glob for directories.
12655 (__glob_pattern_type): New function.
12656 (__glob_pattern_p): Implement using __glob_pattern_type.
12657 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12658 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12659 Remove unreachable code.
12660 * posix/globtest.sh: Add a couple of new tests.
12662 2007-02-13 Ulrich Drepper <drepper@redhat.com>
12664 * po/ru.po: Update from translation team.
12666 2007-02-12 Jakub Jelinek <jakub@redhat.com>
12668 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12669 to the list of i486+ CPUs.
12670 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12672 2007-02-12 Ulrich Drepper <drepper@redhat.com>
12674 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12675 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12678 2007-02-09 Ulrich Drepper <drepper@redhat.com>
12680 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12682 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12683 * resolv/res_mkquery.c: Define __res_nopt.
12684 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12685 try adding EDNS0 record.
12686 * resolv/res_send.c (send_dg): If request failed with FORMERR and
12687 EDNS0 record was send make sure we don't try it again.
12688 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12689 * include/resolv.h: Declare __res_nopt.
12691 2007-02-08 Jakub Jelinek <jakub@redhat.com>
12694 * time/strptime_l.c (__strptime_internal): Set have_mon for
12695 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
12696 have been computed from tm_yday and tm_year. Don't crash
12697 in day_of_the_week or day_of_the_year if not have_mon
12698 and tm_mon contains bogus value.
12699 * time/Makefile (tests): Add tst-strptime3.
12700 * time/tst-strptime3.c: New test.
12702 2007-02-05 Jakub Jelinek <jakub@redhat.com>
12705 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12706 bit for RE_HAT_LISTS_NOT_NEWLINE.
12707 (build_charclass_op): Remove bogus comment.
12708 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12709 * posix/bug-regex27.c: New test.
12710 * posix/bug-regex28.c: New test.
12712 2007-02-03 Ulrich Drepper <drepper@redhat.com>
12714 * po/sv.po: Update from translation team.
12716 2007-02-02 Ulrich Drepper <drepper@redhat.com>
12718 * nscd/nscd_helper.c (open_socket): Minor size optimization.
12720 2007-02-02 Jakub Jelinek <jakub@redhat.com>
12722 * include/locale.h (__uselocale): Add libc_hidden_proto.
12723 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12725 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12728 2007-02-01 Ulrich Drepper <drepper@redhat.com>
12730 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12732 (PTR_DEMANGLE): Real definition now that it's not the same as
12733 PRT_MANGLE anymore.
12734 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12736 * string/strerror_l.c: New file.
12737 * string/Makefile (routines): Add strerror_l.
12738 * string/string.h: Declare strerror_l.
12739 * string/Versions: Export strerror_l for GLIBC_2.6.
12741 2007-01-31 Ulrich Drepper <drepper@redhat.com>
12743 * nscd/nscd_helper.c (open_socket): Now takes request type and key
12744 as parameter. Construct request record. Try sending request
12745 before the first poll use, it usually succeeds. Adjust all
12747 * nscd/nscd-client.h: Define MAXKEYLEN.
12748 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12750 2007-01-31 Jakub Jelinek <jakub@redhat.com>
12752 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12754 * nscd/nscd_helper.c: Include string.h.
12755 (__nscd_cache_search): Remove const qualifier from return value.
12756 On strict alignment architectures check hash entry and data head
12758 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12759 mmapped data during GC cycle contains garbage. If
12760 __nscd_drop_map_ref fails, decrement mapped->counter when returning
12761 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12763 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12764 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12765 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12766 * nscd/nscd_getai.c (__nscd_getai): Likewise.
12767 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12769 2007-01-30 Ulrich Drepper <drepper@redhat.com>
12771 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12773 2007-01-26 Ulrich Drepper <drepper@redhat.com>
12775 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12776 names not numbers in cfi_*.
12778 2007-01-26 Andreas Jaeger <aj@suse.de>
12780 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12781 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12782 Correct values of PER_HPUX and PER_OSF4.
12784 2007-01-24 Ulrich Drepper <drepper@redhat.com>
12786 * elf/dl-minimal.c: Undefine _itoa first.
12787 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12788 * malloc/mtrace.c: Revert last change.
12789 * posix/wordexp.c: Likewise.
12791 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12793 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12794 and __geode__ to the list of i486+ CPUs.
12795 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12797 2007-01-23 Ulrich Drepper <drepper@redhat.com>
12799 * stdio-common/_itoa.c: Include <limits.h>.
12800 * stdio-common/_itowa.c: Likewise.
12802 2007-01-22 Ulrich Drepper <drepper@redhat.com>
12804 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12806 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12808 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12810 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12814 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12815 * stdio-common/Makefile (tests): Add bug17.
12816 * stdio-common/bug17.c: New file.
12818 2007-01-19 Ulrich Drepper <drepper@redhat.com>
12820 * iconvdata/brf.c: New file.
12821 * iconvdata/testdata/BRF: New file.
12822 * iconvdata/testdata/BRF..UTF8: New file.
12823 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12824 * iconvdata/Makefile: Add rules to build BRF.
12825 * iconvdata/TESTS: Add BRF entry.
12826 * iconvdata/gconv-modules: Likewise.
12827 * iconvdata/tst-tables.sh: Likewise.
12829 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
12831 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12832 type `long long int', not `long int'.
12833 (wcstoq): Likewise.
12835 2007-01-18 Ulrich Drepper <drepper@redhat.com>
12837 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12838 of values on 64-bit platforms which are too large.
12840 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
12841 Joe Kerian <jkerian@us.us.ibm.com>
12844 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12845 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
12846 (__copysignl): Use signbit() for comparison.
12847 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12848 SET_LDOUBLE_WORDS64.
12851 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12852 (__ceill): Remove calls to fegetround(), fesetround().
12853 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12854 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12855 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12857 2007-01-17 Jakub Jelinek <jakub@redhat.com>
12859 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12861 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12863 2007-01-17 Ulrich Drepper <drepper@redhat.com>
12865 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12867 * csu/libc-start.c: Likewise.
12869 2007-01-16 Ulrich Drepper <drepper@redhat.com>
12871 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12872 really work anyway.
12874 2007-01-15 Ulrich Drepper <drepper@redhat.com>
12876 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
12878 (handle_request): Remove unnecessary tests.
12880 * nscd/cache.c (cache_add): Record the failure to add to the cache.
12882 2007-01-15 Jakub Jelinek <jakub@redhat.com>
12884 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12885 workbits in semi-raw fraction.
12887 * math/test-misc.c: Add new tests.
12889 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
12891 * math/basic-test.c: Include test-skeleton.c.
12892 (TEST_TRUNC): Define.
12893 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12894 (main): Rename to ...
12895 (do_test): ...this. Run new tests.
12896 (TEST_FUNCTION): Define.
12898 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
12899 Joe Kerian <jkerian@us.us.ibm.com>
12902 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12903 handling for high words.
12904 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12905 and overflow for infinity.
12907 2007-01-15 Ulrich Drepper <drepper@redhat.com>
12909 * nscd/connections.c (handle_request): Add a __builtin_expect.
12911 * nscd/connections.c (serv2db): Change type into structure which
12912 also says whether this is a request for data. Renamed to
12913 servinfo. All users changed.
12914 (handle_request): Much simpler test whether we should search the cache.
12916 * nscd/connections.c (handle_request): Fix thinko in selinux test
12919 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12920 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12921 it before getting dl_load_lock and then relock.
12922 (_dl_lookup_symbol_x): Pass flags to add_dependency.
12923 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12924 case we unlocked the scope.
12925 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12926 _dl_lookup_symbol_x in case we locked the scope.
12927 (_dl_profile_fixup): Likewise.
12928 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12929 set DL_LOOKUP_SCOPE_LOCK.
12931 2007-01-13 Ulrich Drepper <drepper@redhat.com>
12933 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12934 CFLAGS-getsrvbynpt_r.c.
12935 * nscd/getsrvbynm_r.c: New file.
12936 * nscd/getsrvbypt_r.c: New file.
12937 * nscd/nscd_getserv_r.c: New file.
12938 * nscd/servicescache.c: New file.
12939 * nscd/Makefile (routines): Add nscd_getserv_r.
12940 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12941 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12942 CFLAGS-getsrvbypt_r.c.
12943 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12944 table. Add entries for services database.
12945 * nscd/connections.c (serv2str): Mark as const. Add entries for
12947 (dbs): Add .reset_res and servdb initialization.
12948 (serv2db): Add entries for services database.
12949 (verify_persistent_db): Accept dbnr == servdb.
12950 (invalidate_cache): Rewrite database name recognition to use a table.
12951 Call res_init() if .reset_res is set for database.
12952 (handle_request): Add code to handle services database.
12953 * nscd/gai.c: Don't define __getservbyname_r.
12954 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12955 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12956 (serv_response_header): Define.
12957 (struct datahead): Add serv_response_header member.
12958 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12960 * nscd/nscd.conf: Add entries for services database.
12961 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12962 Declare serv_iov_disabled.
12963 Declare addservbyname, readdservbyname, addservbyport, and
12965 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
12966 (find_db): Fix error message.
12967 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12968 __nscd_getservbyname_r, and __nscd_getservbyport_r.
12969 * nscd/selinux.c (perms): Add entries for services database.
12970 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12971 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12973 * nscd/grpcache.c: Remove obsolete code. Cleanups.
12974 * nscd/hstcache.c: Likewise.
12975 * nscd/pwdcache.c: Likewise.
12977 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12978 computation of keylen.
12980 * include/string.h: Only redefine strndupa if this is really for
12983 2007-01-12 Ulrich Drepper <drepper@redhat.com>
12985 * nscd/nscd_gethst_r.c: Minor cleanups.
12987 * nscd/connections.c (handle_request): Check selinux permissions
12988 for all non-admin commands.
12990 * sysdeps/i386/i486/bits/atomic.h: Define
12991 atomic_compare_and_exchange_val_acq,
12992 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12993 using __sync_* built-ins for gcc >= 4.1.
12994 * sysdeps/x86_64/bits/atomic.h: Likewise.
12997 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
13000 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
13002 * stdlib/tst-makecontext.c: Include errno.h. Change main()
13003 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
13004 (do_test): Check errno and exit(0) if ENOSYS.
13006 2007-01-11 Jakub Jelinek <jakub@redhat.com>
13008 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
13009 thousands separators.
13010 * stdlib/Makefile: Add rules to build and run tst-strtod4.
13011 * stdlib/tst-strtod4.c: New test.
13014 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
13015 hexadecimal digit should accept just the initial 0.
13016 * stdlib/tst-strtod2.c (tests): New variable.
13017 (do_test): Run several tests rather than just one.
13019 2007-01-11 Jakub Jelinek <jakub@redhat.com>
13021 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
13022 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
13024 2007-01-10 Ulrich Drepper <drepper@redhat.com>
13026 * io/fts.c: Make sure fts_cur is always valid after return from
13028 Patch by Miloslav Trmac <mitr@redhat.com>.
13030 2006-10-27 Richard Sandiford <richard@codesourcery.com>
13032 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
13033 (R_MIPS_NUM): Bump by 1.
13035 2007-01-03 Jakub Jelinek <jakub@redhat.com>
13037 * posix/execvp.c: Include alloca.h.
13038 (allocate_scripts_argv): Renamed to...
13039 (scripts_argv): ... this. Don't allocate buffer here nor count
13041 (execvp): Use alloca if possible.
13042 * posix/Makefile: Add rules to build and run tst-vfork3 test.
13043 * posix/tst-vfork3.c: New test.
13045 2007-01-03 Ulrich Drepper <drepper@redhat.com>
13047 * string/Makefile (tst-strxfrm2-ENV): Define.
13048 * stdlib/Makefile (tst-strtod3-ENV): Define.
13050 2007-01-02 Ulrich Drepper <drepper@redhat.com>
13052 * posix/getconf.c: Update copyright year.
13053 * nss/getent.c: Likewise.
13054 * iconv/iconvconfig.c: Likewise.
13055 * iconv/iconv_prog.c: Likewise.
13056 * elf/ldconfig.c: Likewise.
13057 * catgets/gencat.c: Likewise.
13058 * csu/version.c: Likewise.
13059 * elf/ldd.bash.in: Likewise.
13060 * elf/sprof.c (print_version): Likewise.
13061 * locale/programs/locale.c: Likewise.
13062 * locale/programs/localedef.c: Likewise.
13063 * nscd/nscd.c (print_version): Likewise.
13064 * debug/xtrace.sh: Likewise.
13065 * malloc/memusage.sh: Likewise.
13066 * malloc/mtrace.pl: Likewise.
13067 * debug/catchsegv.sh: Likewise.
13069 2006-12-24 Ulrich Drepper <drepper@redhat.com>
13071 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
13074 2006-12-23 Ulrich Drepper <drepper@redhat.com>
13076 * posix/wordexp.c: Remove some unnecessary tests.
13078 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
13080 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
13081 blacklist the group till after we look it up.
13083 2006-12-21 Ulrich Drepper <drepper@redhat.com>
13085 * include/atomic.h (atomic_forced_read): New macro.
13087 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
13089 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
13091 2006-12-19 Jakub Jelinek <jakub@redhat.com>
13093 * nss/getXXbyYY_r.c: Include atomic.h.
13094 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
13095 add atomic_write_barrier () in between.
13097 * stdlib/Makefile (tests): Add tst-makecontext.
13098 * stdlib/tst-makecontext.c: New test.
13100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
13101 (__makecontext): Don't realign uc_mcontext.uc_regs.
13103 2006-11-28 Jakub Jelinek <jakub@redhat.com>
13105 * elf/dl-support.c: Include dl-procinfo.h.
13106 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
13107 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
13108 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
13110 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
13111 hardcoded constants.
13112 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
13113 PPC_PLATFORM_* macros for array designators.
13115 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
13117 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
13118 names to the beginning.
13119 (_dl_powerpc_platforms): Add "power6x".
13120 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13121 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
13122 (_DL_PLATFORMS_COUNT): Increase.
13123 (_dl_string_platform): Handle power6x case.
13124 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
13125 PPC_FEATURE_POWER6_EXT): Define.
13126 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
13128 2006-12-18 Jakub Jelinek <jakub@redhat.com>
13131 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
13132 [-2^31 .. 2^31) range.
13133 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
13135 * stdlib/tst-rand48-2.c: New test.
13136 * stdlib/Makefile (tests): Add tst-rand48-2.
13138 2006-12-14 Jakub Jelinek <jakub@redhat.com>
13140 * misc/tst-pselect.c (do_test): Fix sigblock argument.
13142 2006-12-14 Ulrich Drepper <drepper@redhat.com>
13144 * misc/tst-pselect.c (do_test): Make sure the helper process is
13145 terminating when the test is aborted.
13147 2006-12-13 Ulrich Drepper <drepper@redhat.com>
13149 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
13150 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13151 Handle relatime mount option.
13154 * libio/Makefile (tests): Add tst-setvbuf1.
13155 * libio/tst-setvbuf1.c: New file.
13157 2006-12-08 Jakub Jelinek <jakub@redhat.com>
13160 * libio/genops.c (__uflow): Fix a typo.
13161 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
13162 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
13163 the narrow buffer size.
13165 2006-11-24 Jakub Jelinek <jakub@redhat.com>
13168 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
13169 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
13170 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
13172 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
13173 _IO_wstr_finish): Likewise.
13174 * libio/wmemstream.c (open_wmemstream): Likewise.
13175 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
13176 even for wide streams.
13178 2006-12-13 Jakub Jelinek <jakub@redhat.com>
13180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
13183 2006-12-11 Ulrich Drepper <drepper@redhat.com>
13185 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
13186 separators also if no non-zero digits found.
13187 * stdlib/Makefile (tests): Add tst-strtod3.
13189 2006-12-10 Jakub Jelinek <jakub@redhat.com>
13191 * sysdeps/unix/sysv/linux/netlinkaccess.h: Include linux/if_addr.h
13192 if IFA_MAX is not defined.
13193 (IFA_RTA, IFA_PAYLOAD, IFLA_RTA, IFLA_PAYLOAD): Define if not
13195 * sysdeps/unix/sysv/linux/check_pf.c: Include netlinkaccess.h
13196 instead of asm/types.h, linux/netlink.h and linux/rtnetlink.h.
13198 2006-12-09 Ulrich Drepper <drepper@redhat.com>
13201 * include/features.h: Fix comment about default value for
13205 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
13206 empty parsed strings.
13207 * stdlib/Makefile (tests): Add tst-strtod2.
13208 * stdlib/tst-strtod2.c: New file.
13211 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
13213 * stdlib/Makefile (tests): Add tst-atof2.
13214 * stdlib/tst-atof2.c: New file.
13217 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
13218 correctly if removing trailing zero of hex-float.
13219 * stdlib/Makefile (tests): Add tst-atof1.
13220 * stdlib/tst-atof1.c: New file.
13222 2006-12-09 Jakub Jelinek <jakub@redhat.com>
13224 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
13225 Start searching for next comma at p rather than rest.
13226 * misc/Makefile (tests): Add tst-mntent2.
13227 * misc/tst-mntent2.c: New test.
13229 * misc/getusershell.c (initshells): Check for integer overflows.
13230 Make strings buffer one bigger as fgets always succeeds when second
13231 argument is 1. Don't use calloc for shells array. Disallow
13234 2006-12-08 Ulrich Drepper <drepper@redhat.com>
13236 * malloc/memusage.c: Handle realloc with new size of zero and
13237 non-NULL pointer correctly.
13238 (me): Really write first record twice.
13239 (struct entry): Make format bi-arch safe.
13240 (dest): Write out more realloc statistics.
13241 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
13243 2006-12-05 Jakub Jelinek <jakub@redhat.com>
13245 * nis/nis_subr.c (nis_getnames): Revert last change.
13247 2006-12-04 Jakub Jelinek <jakub@redhat.com>
13249 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
13250 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
13251 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
13252 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
13254 * io/Makefile: Add rules to build and run tst-ttyname_r test.
13255 * io/tst-ttyname_r.c: New test.
13257 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
13259 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
13261 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
13263 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
13264 jump table entries.
13266 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
13268 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
13269 `clone' function to ensure proper unwinding stop of gdb.
13270 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
13272 2006-12-01 Ulrich Drepper <drepper@redhat.com>
13274 * nscd/nscd.init: Remove obsolete and commented-out -S option
13277 2006-11-23 Jakub Jelinek <jakub@redhat.com>
13280 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
13283 * manual/string.texi (strtok): Remove duplicate paragraph.
13285 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13287 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
13288 libgcc not supporting `rflags' unwinding (register # >= 17).
13290 2006-11-30 Jakub Jelinek <jakub@redhat.com>
13292 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
13295 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
13296 Jakub Jelinek <jakub@redhat.com>
13297 Jan Kratochvil <jan.kratochvil@redhat.com>
13299 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
13300 unwind information.
13301 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
13302 'restore_rt' even in the 'signal' directory.
13303 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
13305 2006-11-27 Jakub Jelinek <jakub@redhat.com>
13308 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
13309 malloc crashed. Don't allocate memory unnecessarily in each
13312 2006-10-21 Jakub Jelinek <jakub@redhat.com>
13314 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
13316 2006-11-20 Ulrich Drepper <drepper@redhat.com>
13318 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
13320 2006-11-18 Bruno Haible <bruno@clisp.org>
13322 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
13323 __sysconf only after having tried to call getgroups32.
13325 2006-11-19 Ulrich Drepper <drepper@redhat.com>
13327 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
13328 addresses for IPv4 queries if they can be mapped.
13330 2006-11-16 Jakub Jelinek <jakub@redhat.com>
13332 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
13333 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
13334 (signmask): Add .size directive.
13335 (othermask): Add .type directive.
13337 2006-11-14 Ulrich Drepper <drepper@redhat.com>
13339 * po/nl.po: Update from translation team.
13341 * timezone/zdump.c: Redo fix for BZ #3137.
13343 2006-11-14 Jakub Jelinek <jakub@redhat.com>
13345 * nss/nss_files/files-alias.c (get_next_alias): Set line back
13346 to first_unused after parsing :include: file.
13348 2006-11-10 Ulrich Drepper <drepper@redhat.com>
13350 * timezone/africa: Update from tzdata2006o.
13351 * timezone/antarctica: Likewise.
13352 * timezone/asia: Likewise.
13353 * timezone/australasia: Likewise.
13354 * timezone/backward: Likewise.
13355 * timezone/europe: Likewise.
13356 * timezone/iso3166.tab: Likewise.
13357 * timezone/northamerica: Likewise.
13358 * timezone/southamerica: Likewise.
13359 * timezone/zone.tab: Likewise.
13361 * time/tzfile.c (__tzfile_read): Extend to handle new file format
13362 on machines with 64-bit time_t.
13364 * timezone/checktab.awk: Update from tzcode2006o.
13365 * timezone/ialloc.c: Likewise.
13366 * timezone/private.h: Likewise.
13367 * timezone/scheck.c: Likewise.
13368 * timezone/tzfile.h: Likewise.
13369 * timezone/tzselect.ksh: Likewise.
13370 * timezone/zdump.c: Likewise.
13371 * timezone/zic.c: Likewise.
13374 * elf/ldconfig.c (main): Call setlocale and textdomain.
13375 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13378 * manual/argp.texi: Fix typos.
13379 * manual/charset.texi: Likewise.
13380 * manual/errno.texi: Likewise.
13381 * manual/filesys.texi: Likewise.
13382 * manual/lang.texi: Likewise.
13383 * manual/maint.texi: Likewise.
13384 * manual/memory.texi: Likewise.
13385 * manual/message.texi: Likewise.
13386 * manual/resource.texi: Likewise.
13387 * manual/search.texi: Likewise.
13388 * manual/signal.texi: Likewise.
13389 * manual/startup.texi: Likewise.
13390 * manual/stdio.texi: Likewise.
13391 * manual/sysinfo.texi: Likewise.
13392 * manual/syslog.texi: Likewise.
13393 * manual/time.texi: Likewise.
13394 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13397 * sunrpc/clnt_raw.c: Minimal message improvements.
13398 * sunrpc/pm_getmaps.c: Likewise.
13399 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
13400 * nis/nis_print_group_entry.c: Likewise.
13401 * locale/programs/repertoire.c: Likewise.
13402 * locale/programs/charmap.c: Likewise.
13403 * malloc/memusage.sh: Likewise.
13404 * elf/dl-deps.c: Likewise.
13405 * locale/programs/ld-collate.c: Likewise.
13406 * libio/vswprintf.c: Likewise.
13407 * malloc/memusagestat.c: Likewise.
13408 * sunrpc/auth_unix.c: Likewise.
13409 * sunrpc/rpc_main.c: Likewise.
13410 * nscd/cache.c: Likewise.
13411 * locale/programs/repertoire.c: Unify output messages.
13412 * locale/programs/charmap.c: Likewise.
13413 * locale/programs/ld-ctype.c: Likewise.
13414 * locale/programs/ld-monetary.c: Likewise.
13415 * locale/programs/ld-numeric.c: Likewise.
13416 * locale/programs/ld-time.c: Likewise.
13417 * elf/ldconfig.c: Likewise.
13418 * nscd/selinux.c: Likewise.
13419 * elf/cache.c: Likewise.
13420 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13423 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
13427 2006-11-10 Jakub Jelinek <jakub@redhat.com>
13429 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
13430 if N is one bigger than return value.
13431 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
13432 and l1 last arguments, if buf is defined, verify the return value
13433 equals to strlen (buf) and verify no byte beyond passed length
13436 2006-11-10 Ulrich Drepper <drepper@redhat.com>
13438 * po/sv.po: Update from translation team.
13440 2006-11-09 Ulrich Drepper <drepper@redhat.com>
13442 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
13443 noinline attribute.
13445 2006-11-10 Jakub Jelinek <jakub@redhat.com>
13447 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
13448 noinline attribute.
13450 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
13451 Use __new_sys_siglist instead of _sys_siglist_internal as
13452 second macro argument.
13453 (_old_sys_siglist): Use declare_symbol_alias macro instead of
13456 2006-11-09 Ulrich Drepper <drepper@redhat.com>
13459 * posix/unistd.h (sysconf): Remove const attribute.
13461 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
13462 temporary or deprecated addresses.
13463 Patch by Sridhar Samudrala <sri@us.ibm.com>.
13465 * string/Makefile (tests): Add tst-strxfrm2.
13466 * string/tst-strxfrm2.c: New file.
13468 2006-10-09 Jakub Jelinek <jakub@redhat.com>
13470 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
13471 rather than r->r_brk.
13473 2006-11-08 Jakub Jelinek <jakub@redhat.com>
13475 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
13476 optimization even if needed > n.
13478 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
13479 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
13480 return false, otherwise return true.
13481 (cache_rpath): Return decompose_rpath return value.
13483 2006-11-07 Jakub Jelinek <jakub@redhat.com>
13485 * include/libc-symbols.h (declare_symbol): Rename to...
13486 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
13487 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
13489 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
13491 * sysdeps/gnu/siglist.c: Likewise.
13493 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
13495 * sysdeps/powerpc/fpu/bits/mathinline.h
13496 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
13497 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
13499 2006-11-05 Ulrich Drepper <drepper@redhat.com>
13501 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13502 Update handling of cache descriptor 0x49 for new models.
13503 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
13506 2006-11-02 Jakub Jelinek <jakub@redhat.com>
13508 * malloc/memusage.c (dest): Reset not_me back to false after
13509 printing statistics.
13511 2006-11-02 Ulrich Drepper <drepper@redhat.com>
13513 * configure.in: Work around ld --help change and avoid -z relro
13514 test completely if the architecture doesn't care about security.
13516 2006-11-01 Ulrich Drepper <drepper@redhat.com>
13518 * po/sv.po: Update from translation team.
13520 2006-10-31 Ulrich Drepper <drepper@redhat.com>
13522 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
13523 generate compatibility version.
13525 2006-10-29 Ulrich Drepper <drepper@redhat.com>
13527 * configure.in: Relax -z relro requirement a bit.
13529 * po/sv.po: Update from translation team.
13531 2006-10-29 Jakub Jelinek <jakub@redhat.com>
13533 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13534 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13535 * elf/dl-close.c (_dl_close_worker): Likewise.
13536 * elf/dl-open.c (_dl_open_worker): Likewise.
13537 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13539 2006-10-27 Ulrich Drepper <drepper@redhat.com>
13541 * configure.in: Require assembler support for visibility, compiler
13542 support for visibility and aliases, linker support for various -z
13544 * Makeconfig: Remove conditional code which now is unnecessary.
13545 * config.h.in: Likewise.
13546 * config.make.in: Likewise.
13547 * dlfcn/Makefile: Likewise.
13548 * elf/Makefile: Likewise.
13549 * elf/dl-load.c: Likewise.
13550 * elf/rtld.c: Likewise.
13551 * include/libc-symbols.h: Likewise.
13552 * include/stdio.h: Likewise.
13553 * io/Makefile: Likewise.
13554 * io/fstat.c: Likewise.
13555 * io/fstat64.c: Likewise.
13556 * io/fstatat.c: Likewise.
13557 * io/fstatat64.c: Likewise.
13558 * io/lstat.c: Likewise.
13559 * io/lstat64.c: Likewise.
13560 * io/mknod.c: Likewise.
13561 * io/mknodat.c: Likewise.
13562 * io/stat.c: Likewise.
13563 * io/stat64.c: Likewise.
13564 * libio/stdio.c: Likewise.
13565 * nscd/Makefile: Likewise.
13566 * stdlib/Makefile: Likewise.
13567 * stdlib/atexit.c: Likewise.
13568 * sysdeps/generic/ldsodefs.h: Likewise.
13569 * sysdeps/i386/dl-machine.h: Likewise.
13570 * sysdeps/i386/sysdep.h: Likewise.
13571 * sysdeps/i386/i686/memcmp.S: Likewise.
13572 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13573 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13574 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13576 * Makerules: USE_TLS support is now default.
13577 * tls.make.c: Likewise.
13578 * csu/Versions: Likewise.
13579 * csu/libc-start.c: Likewise.
13580 * csu/libc-tls.c: Likewise.
13581 * csu/version.c: Likewise.
13582 * dlfcn/dlinfo.c: Likewise.
13583 * elf/dl-addr.c: Likewise.
13584 * elf/dl-cache.c: Likewise.
13585 * elf/dl-close.c: Likewise.
13586 * elf/dl-iteratephdr.c: Likewise.
13587 * elf/dl-load.c: Likewise.
13588 * elf/dl-lookup.c: Likewise.
13589 * elf/dl-object.c: Likewise.
13590 * elf/dl-open.c: Likewise.
13591 * elf/dl-reloc.c: Likewise.
13592 * elf/dl-support.c: Likewise.
13593 * elf/dl-sym.c: Likewise.
13594 * elf/dl-sysdep.c: Likewise.
13595 * elf/dl-tls.c: Likewise.
13596 * elf/ldconfig.c: Likewise.
13597 * elf/rtld.c: Likewise.
13598 * elf/tst-tls-dlinfo.c: Likewise.
13599 * elf/tst-tls1.c: Likewise.
13600 * elf/tst-tls10.h: Likewise.
13601 * elf/tst-tls14.c: Likewise.
13602 * elf/tst-tls2.c: Likewise.
13603 * elf/tst-tls3.c: Likewise.
13604 * elf/tst-tls4.c: Likewise.
13605 * elf/tst-tls5.c: Likewise.
13606 * elf/tst-tls6.c: Likewise.
13607 * elf/tst-tls7.c: Likewise.
13608 * elf/tst-tls8.c: Likewise.
13609 * elf/tst-tls9.c: Likewise.
13610 * elf/tst-tlsmod1.c: Likewise.
13611 * elf/tst-tlsmod13.c: Likewise.
13612 * elf/tst-tlsmod13a.c: Likewise.
13613 * elf/tst-tlsmod14a.c: Likewise.
13614 * elf/tst-tlsmod2.c: Likewise.
13615 * elf/tst-tlsmod3.c: Likewise.
13616 * elf/tst-tlsmod4.c: Likewise.
13617 * elf/tst-tlsmod5.c: Likewise.
13618 * elf/tst-tlsmod6.c: Likewise.
13619 * include/errno.h: Likewise.
13620 * include/link.h: Likewise.
13621 * include/tls.h: Likewise.
13622 * locale/global-locale.c: Likewise.
13623 * locale/localeinfo.h: Likewise.
13624 * malloc/arena.c: Likewise.
13625 * malloc/hooks.c: Likewise.
13626 * malloc/malloc.c: Likewise.
13627 * resolv/Versions: Likewise.
13628 * sysdeps/alpha/dl-machine.h: Likewise.
13629 * sysdeps/alpha/libc-tls.c: Likewise.
13630 * sysdeps/generic/ldsodefs.h: Likewise.
13631 * sysdeps/generic/tls.h: Likewise.
13632 * sysdeps/i386/dl-machine.h: Likewise.
13633 * sysdeps/ia64/dl-machine.h: Likewise.
13634 * sysdeps/ia64/libc-tls.c: Likewise.
13635 * sysdeps/mach/hurd/fork.c: Likewise.
13636 * sysdeps/mach/hurd/i386/tls.h: Likewise.
13637 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13638 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13639 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13640 * sysdeps/s390/libc-tls.c: Likewise.
13641 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13642 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13643 * sysdeps/sh/dl-machine.h: Likewise.
13644 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13645 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13646 * sysdeps/x86_64/dl-machine.h: Likewise.
13648 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13649 split out locking and parameter checking.
13650 (_dl_close): Call _dl_close_worker after locking and checking.
13651 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13653 * elf/Makefile: Add rules to build and run tst-thrlock.
13654 * elf/tst-thrlock.c: New file.
13657 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13661 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13662 we are sure we do not need it anymore for _dl_close. Also move
13663 the asserts inside the lock region.
13664 Patch mostly by Suzuki <suzuki@in.ibm.com>.
13666 2006-10-27 Jakub Jelinek <jakub@redhat.com>
13668 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13670 (_dl_lookup_symbol_x): Adjust caller.
13672 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13674 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13676 * elf/dl-libc.c: Revert l_scope name changes.
13677 * elf/dl-load.c: Likewise.
13678 * elf/dl-object.c: Likewise.
13679 * elf/rtld.c: Likewise.
13680 * elf/dl-close.c (_dl_close): Likewise.
13681 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
13682 always use __rtld_mrlock_{change,done}. Always free old scope list
13683 here if not l_scope_mem.
13684 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13685 change. Never free scope list here. Just __rtld_mrlock_lock before
13686 the lookup and __rtld_mrlock_unlock it after the lookup.
13687 * elf/dl-sym.c: Likewise.
13688 * include/link.h (struct r_scoperec): Remove.
13689 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13690 with l_scope_mem and l_scoperec_lock with l_scope_lock.
13692 2006-10-25 Ulrich Drepper <drepper@redhat.com>
13694 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13696 2006-10-18 Ulrich Drepper <drepper@redhat.com>
13698 * configure.in: Disable building profile libraries by default.
13700 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13702 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13703 as signed longs, check for x_base + pos overflow.
13704 * sunrpc/Makefile (tests): Add tst-xdrmem2.
13705 * sunrpc/tst-xdrmem2.c: New test.
13707 2006-10-18 Ulrich Drepper <drepper@redhat.com>
13709 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13710 _dl_lookup_symbol_x code.
13712 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13714 * elf/dl-runtime.c: Include sysdep-cancel.h.
13715 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13716 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
13717 instead of catomic_* macros.
13718 * elf/dl-sym.c: Include sysdep-cancel.h.
13719 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13720 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
13721 * elf/dl-close.c: Include sysdep-cancel.h.
13722 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13723 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
13724 * elf/dl-open.c: Include sysdep-cancel.h.
13725 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13726 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
13728 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13731 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13732 fastbin rather than end of fastbin array.
13734 2006-10-18 Ulrich Drepper <drepper@redhat.com>
13736 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13738 * sysdeps/x86_64/bits/atomic.h
13739 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13740 (catomic_decrement): Use correct body macro.
13742 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13744 * include/atomic.h: Add a unique prefix to all local variables
13746 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13748 2006-10-16 Ulrich Drepper <drepper@redhat.com>
13751 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13754 2006-10-14 Ulrich Drepper <drepper@redhat.com>
13756 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13758 2006-10-13 Ulrich Drepper <drepper@redhat.com>
13761 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13762 determine highest fast bin to consolidate, always look into all of
13764 (do_check_malloc_state): Only require for empty bins for large
13765 sizes in main arena.
13767 * libio/stdio.h: Add more __wur attributes.
13769 * elf/dl-minimal.c (realloc): Optimize last patch.
13771 2006-10-12 Richard Sandiford <richard@codesourcery.com>
13774 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13775 and use memcpy() if it does.
13777 2006-11-12 Andreas Jaeger <aj@suse.de>
13780 * manual/search.texi (Hash Search Function): Clarify.
13781 (Array Search Function): Clarify.
13783 2006-11-12 Joseph Myers <joseph@codesourcery.com>
13786 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13788 * math/atest-exp2.c (read_mpn_hex): Likewise.
13789 * math/atest-sincos.c (main): Likewise.
13791 2006-10-11 Ulrich Drepper <drepper@redhat.com>
13793 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13794 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13795 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13797 * Versions.def: Add GLIBC_2.6 for libc.
13799 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13801 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13803 2006-10-11 Jakub Jelinek <jakub@redhat.com>
13805 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13807 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13809 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13810 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13812 2006-10-11 Ulrich Drepper <drepper@redhat.com>
13814 * include/atomic.c: Define catomic_* operations.
13815 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
13816 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13817 * malloc/memusage.c: Likewise.
13818 * gmon/mcount.c: Likewise.
13819 * elf/dl-close.c: Likewise.
13820 * elf/dl-open.c: Likewise.
13821 * elf/dl-profile.c: Likewise.
13822 * elf/dl-sym.c: Likewise.
13823 * elf/dl-runtime.c: Likewise.
13824 * elf/dl-fptr.c: Likewise.
13825 * resolv/res_libc.c: Likewise.
13827 2006-10-10 Ulrich Drepper <drepper@redhat.com>
13829 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13830 components which lack them.
13832 * nis/nis_subr.c (nis_getnames): Make sure that we always return
13833 at least one entry consisting of the parameter concatenated with
13836 2006-10-10 Roland McGrath <roland@frob.com>
13838 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13839 * sysdeps/mach/hurd/futimes.c: Likewise.
13840 * sysdeps/mach/hurd/lutimes.c: Likewise.
13842 2006-10-09 Ulrich Drepper <drepper@redhat.com>
13843 Jakub Jelinek <jakub@redhat.com>
13845 Implement reference counting of scope records.
13846 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13847 from the list in objects which remain. Always allocate new scope
13849 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13850 don't resize, allocate a new one.
13851 * elf/dl-runtime.c: Update reference counters before using a scope
13853 * elf/dl-sym.c: Likewise.
13854 * elf/dl-libc.c: Adjust for l_scope name change.
13855 * elf/dl-load.c: Likewise.
13856 * elf/dl-object.c: Likewise.
13857 * elf/rtld.c: Likewise.
13858 * include/link.h: Include <rtld-lowlevel.h>. Define struct
13859 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
13860 Add l_scoperec_lock.
13861 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13862 * sysdeps/generic/rtld-lowlevel.h: New file.
13864 * include/atomic.h: Rename atomic_and to atomic_and_val and
13865 atomic_or to atomic_or_val. Define new macros atomic_and and
13866 atomic_or which do not return values.
13867 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13869 * sysdeps/i386/i486/bits/atomic.h: Likewise.
13871 * po/sv.po: Update from translation team.
13873 2006-10-07 Ulrich Drepper <drepper@redhat.com>
13875 * Versions.def: Add GLIBC_2.6 to libpthread.
13877 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13878 (versioned_symbol): Likewise.
13879 (compat_symbol): Likewise.
13881 * po/tr.po: Update from translation team.
13883 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13885 * nis/Banner: Removed. It's been integral part forever and the
13886 author info is incomplete anyway.
13887 * libio/Banner: Likewise.
13889 * nis/nis_table.c (nis_list): If __follow_path fails in the new
13890 code, make sure the nis_freeresult call doesn't crash and that the
13891 result is reported correctly.
13893 2006-09-27 Jakub Jelinek <jakub@redhat.com>
13895 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13896 when callback is NULL.
13898 * nis/Versions (libnss_nisplus): Add
13899 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13900 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13901 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13902 _nss_create_tablename): Rename to...
13903 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13904 ... these. No longer static.
13905 (internal_setgrent): Adjust users.
13906 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13907 Don't use locking around _nss_grp_create_tablename call.
13908 * nis/nss_nisplus/nisplus-initgroups.c: New file.
13910 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13912 * version.h (VERSION): Bump to 2.5.90 for new development tree.
13914 2006-10-06 Andreas Jaeger <aj@suse.de>
13916 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13918 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13920 * po/pl.po: Update from translation team.
13922 * nscd/nscd.c (main): Fix typo in message.
13923 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13925 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13928 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13929 errno.h, signal.h, unistd.h and sysdep-cancel.h.
13930 (__sigprocmask): Define.
13932 2006-10-02 Ulrich Drepper <drepper@redhat.com>
13934 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13937 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13939 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13940 in oldtotal and newtotal calculation.
13941 * nscd/nscd-client.h (struct mapped_database): Add datasize
13943 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13944 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13946 (__nscd_cache_search): Add checks to make sure we never reference
13947 data beyond the current mapping.
13949 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
13951 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13952 variables const to avoid compiler warnings.
13954 * io/fts.c (fts_close): Remove redundant checks.
13955 (fts_build): Likewise.
13956 (fts_palloc): Likewise.
13958 * manual/message.texi (Advanced gettext functions,
13959 Using gettextized software): Fix typos.
13961 2006-09-30 Ulrich Drepper <drepper@redhat.com>
13963 * posix/glob.c (glob_in_dir): Add some comments and asserts to
13964 explain why there are no leaks.
13966 2006-09-29 Ulrich Drepper <drepper@redhat.com>
13968 * libio/wmemstream.c: Include <wchar.h>.
13969 * libio/bug-wmemstream1.c: Likewise.
13970 * libio/tst-wmemstream1.c: Likewise.
13971 * libio/tst-wmemstream2.c: Likewise.
13973 * version.h (RELEASE): Bump to 2.5.
13974 * README: Regenerated.
13976 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13979 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13980 found no group members.
13981 Patch by Petr Baudis.
13983 2006-09-29 Jakub Jelinek <jakub@redhat.com>
13985 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13986 assert bootstrap_map.l_tls_modid is zero.
13987 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13990 2006-09-27 Ulrich Drepper <drepper@redhat.com>
13992 * libio/stdio.h: Move open_wmemstream prototype to ...
13993 * wcsmbs/wchar.h: ... here.
13995 2006-09-25 Jakub Jelinek <jakub@redhat.com>
13998 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13999 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
14000 __{,l}chown to handle the rest.
14001 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
14002 fchownat syscall and __ASSUME_32BITUIDS case inline, call
14003 __{,l}chown to handle the rest.
14004 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
14006 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
14007 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
14010 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
14011 time, rather allocate increasingly bigger arrays of pointers, if
14012 possible with alloca, if too large with malloc.
14014 2006-09-24 Jakub Jelinek <jakub@redhat.com>
14016 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
14018 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
14020 2006-09-24 Ulrich Drepper <drepper@redhat.com>
14022 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
14024 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
14025 IFA_F_HOMEADDRESS flag for interfaces.
14026 * include/ifaddrs.h (struct in6addrinfo): Define
14029 2006-09-21 Jakub Jelinek <jakub@redhat.com>
14032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
14033 PTR_DEMANGLE3): Define.
14034 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
14035 PTR_DEMANGLE3): Likewise.
14036 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
14037 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
14039 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
14041 2006-09-20 Jakub Jelinek <jakub@redhat.com>
14043 * po/libc.pot: Regenerated.
14044 * po/be.po: Updated.
14045 * po/ca.po: Likewise.
14046 * po/cs.po: Likewise.
14047 * po/da.po: Likewise.
14048 * po/de.po: Likewise.
14049 * po/el.po: Likewise.
14050 * po/en_GB.po: Likewise.
14051 * po/es.po: Likewise.
14052 * po/fi.po: Likewise.
14053 * po/fr.po: Likewise.
14054 * po/gl.po: Likewise.
14055 * po/hr.po: Likewise.
14056 * po/hu.po: Likewise.
14057 * po/ja.po: Likewise.
14058 * po/ko.po: Likewise.
14059 * po/nb.po: Likewise.
14060 * po/nl.po: Likewise.
14061 * po/pl.po: Likewise.
14062 * po/pt_BR.po: Likewise.
14063 * po/ru.po: Likewise.
14064 * po/rw.po: Likewise.
14065 * po/sk.po: Likewise.
14066 * po/sv.po: Likewise.
14067 * po/tr.po: Likewise.
14068 * po/zh_CN.po: Likewise.
14069 * po/zh_TW.po: Likewise.
14072 * iconv/iconv_prog.c (main): Fix spelling in error message.
14073 * iconv/iconvconfig.c (main): Likewise.
14074 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
14075 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
14076 * locale/programs/localedef.c (main): Likewise.
14077 * locale/programs/repertoire.c (repertoire_read): Likewise.
14078 * timezone/zdump.c (main): Likewise.
14079 * nscd/connections.c (handle_request): Fix spelling in log message.
14080 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
14082 2006-09-20 Ulrich Drepper <drepper@redhat.com>
14084 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
14087 2006-09-20 Andreas Jaeger <aj@suse.de>
14089 * math/libm-test.inc (lrint_test_upward): Fix typo.
14091 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
14094 * math/libm-test.inc (lrint_test_tonearest): New function.
14095 (lrint_test_towardzero): New function.
14096 (lrint_test_downward): New function.
14097 (lrint_test_upward): New function.
14098 (main): Run these new tests.
14099 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
14100 of values near to 0.
14101 (two52): Use double not long double.
14102 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
14103 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
14104 (two23): Use float not double.
14105 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
14106 (two23): Use float not double.
14107 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
14108 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
14109 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
14110 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
14112 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
14114 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
14115 Cast sp to unsigned long to avoid compiler warning.
14116 Use __makecontext_ret function instead of a trampoline on the stack.
14117 (__makecontext_ret): New function.
14118 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
14120 2006-09-19 Jakub Jelinek <jakub@redhat.com>
14122 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
14123 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
14126 2006-09-19 Ulrich Drepper <drepper@redhat.com>
14128 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
14129 sure no reference to the unloaded map's search list remains in the
14130 dependency's scope.
14132 2006-09-16 Jakub Jelinek <jakub@redhat.com>
14134 * elf/Makefile: Add rules to build and run unload7 test.
14135 * elf/unload7.c: New test.
14136 * elf/unload7mod1.c: New file.
14137 * elf/unload7mod2.c: New file.
14139 2006-09-18 Jakub Jelinek <jakub@redhat.com>
14141 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
14142 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
14143 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
14144 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
14145 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
14146 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
14147 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
14148 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
14149 PTRACE_GETEVENTMSG): Likewise.
14150 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
14153 2006-09-17 Mike Frysinger <vapier@gentoo.org>
14155 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
14156 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
14157 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
14158 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
14160 2006-09-16 Jakub Jelinek <jakub@redhat.com>
14162 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
14163 write '\0' to the fd.
14164 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
14165 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
14166 Change regs to unsigned long pointer from unsigned int, fix fscr
14169 2006-09-14 Jakub Jelinek <jakub@redhat.com>
14171 * io/Makefile (CFLAGS-fstatat.c): Set.
14172 (CFLAGS-fstatat64.c): Likewise.
14173 (CFLAGS-mknodat.c): Likewise.
14175 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
14176 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14177 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
14178 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
14180 2006-09-14 Jakub Jelinek <jakub@redhat.com>
14181 Steven Munroe <sjmunroe@us.ibm.com>
14183 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
14184 names to the beginning. Rename "cell" to "cellbe".
14185 (_dl_powerpc_platforms): New.
14186 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
14187 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
14188 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
14189 (_DL_HWCAP_PLATFORM): Define to new mask.
14190 (_dl_platform_string, _dl_string_platform): New functions.
14191 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
14192 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
14194 2006-09-12 Jakub Jelinek <jakub@redhat.com>
14197 * README.libm: Fix a thinko in sqrt algorithm description.
14200 * manual/string.texi (argz_delete): Fix prototype.
14201 Patch by <alpt@freaknet.org>.
14203 2006-08-26 Joseph Myers <joseph@codesourcery.com>
14206 * io/test-lfs.c (do_prepare): Give name_len type size_t.
14207 * io/tst-fcntl.c (do_prepare): Likewise.
14208 * posix/tst-exec.c (do_prepare): Likewise.
14209 * posix/tst-preadwrite.c (do_prepare): Likewise.
14210 * posix/tst-spawn.c (do_prepare): Likewise.
14211 * posix/tst-truncate.c (do_prepare): Likewise.
14212 * rt/tst-aio.c (do_prepare): Likewise.
14213 * rt/tst-aio64.c (do_prepare): Likewise.
14214 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
14217 2006-09-09 Ulrich Drepper <drepper@redhat.com>
14220 * time/mktime.c (guess_time_tm): Fix overflow detection.
14221 * time/Makefile (tests): Add bug-mktime1.
14222 * time/bug-mktime1.c: New file.
14225 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
14226 (mremap): Likewise.
14228 2006-09-07 Jakub Jelinek <jakub@redhat.com>
14231 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14232 Ensure relocation doesn't clobber any bits outside of the
14233 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
14234 R_SPARC_HI22 and R_SPARC_H44.
14237 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
14238 (long) (MINSIZE + nb - old_size) is positive.
14240 * malloc/arena.c (grow_heap): When growing bail even if new_size
14244 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
14247 2006-09-06 Jakub Jelinek <jakub@redhat.com>
14249 * posix/regex_internal.c (re_string_reconstruct): Handle
14250 offset < pstr->valid_raw_len && pstr->offsets_needed case.
14251 Ensure no bytes read before raw_mbs array. Pass a saved copy of
14252 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
14253 re_string_context_at.
14254 * posix/Makefile: Add rules to build and run bug-regex26 test.
14255 * posix/bug-regex26.c: New test.
14257 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
14258 rather than col_sym_free. Move seqp declaration earlier.
14260 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
14262 2006-09-05 Jakub Jelinek <jakub@redhat.com>
14264 * nscd/initgrcache.c (addinitgroupsX): Move any_success
14265 decl before first goto out.
14267 2006-09-04 Jakub Jelinek <jakub@redhat.com>
14269 * Makerules (shlib.lds): If have-hash-style, put .hash section
14270 at the end of the RO segment.
14272 2006-09-04 Ulrich Drepper <drepper@redhat.com>
14274 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
14275 style hash table format is used.
14277 2006-09-04 Jakub Jelinek <jakub@redhat.com>
14279 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
14280 randomization rather than before.
14281 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
14283 2006-08-31 Jakub Jelinek <jakub@redhat.com>
14285 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
14287 * malloc/malloc.c (_int_malloc): Use full list insert and not
14288 shortcut which assumes the list is empty for large requests
14291 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
14293 2006-08-30 Jakub Jelinek <jakub@redhat.com>
14295 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
14296 and offout arguments to the prototype.
14297 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
14298 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
14299 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
14300 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
14301 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
14302 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
14303 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
14304 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
14306 2006-08-28 Ulrich Drepper <drepper@redhat.com>
14308 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
14310 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
14313 2006-08-28 Jakub Jelinek <jakub@redhat.com>
14315 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
14316 only if herrno is NETDB_INTERNAL. Handle errors other than
14317 ERANGE outside of the loops, handle TRY_AGAIN.
14319 * locale/programs/ld-ctype.c (translit_flatten): Issue error
14320 if other's ctype category was missing.
14321 * locale/programs/ld-collate.c (collate_read): Return if
14322 copy_locale's collate category is missing.
14324 2006-08-27 Ulrich Drepper <drepper@redhat.com>
14327 * malloc/malloc.c (public_rEALLOc): Try harder by using other
14328 arenas if allocation failed.
14329 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
14331 2006-08-26 Ulrich Drepper <drepper@redhat.com>
14333 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
14335 (malloc_state): Reduce bins size by 2.
14336 (_int_malloc): Fix test for large enough buffer for early termination.
14337 When no unsorted block matches perfectly and an exiting block has
14338 to be split, use full list insert and not shortcut which assumes
14341 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
14344 2006-08-24 Ulrich Drepper <drepper@redhat.com>
14346 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
14349 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
14350 symbol require exact match (these are PLTs).
14351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
14352 (_dl_ppc64_addr_sym_match): Likewise.
14355 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
14356 If symbol has a value use it.
14357 * elf/tst-dladdr1.c: New file.
14358 * elf/Makefile: Add rules to build and run tst-addr1.
14360 2006-08-24 Jakub Jelinek <jakub@redhat.com>
14362 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
14363 keeps failing and heap growth or new heap creation isn't
14365 * malloc/tst-malloc.c (main): Add new tests.
14367 2006-08-24 Ulrich Drepper <drepper@redhat.com>
14370 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
14371 as in the x86-64 code to use bswap.
14373 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
14376 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
14378 * posix/bits/unistd.h: Likewise.
14380 2006-05-15 Mike Frysinger <vapier@gentoo.org>
14383 * string/strchr.c: Add cast to avoid warning.
14385 2006-08-21 Ulrich Drepper <drepper@redhat.com>
14387 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
14388 platforms define as 512K. For 64-bit platforms as 32MB. The lower
14389 limit is needed to avoid the exploding of the address space
14390 requirement for secondary heaps.
14391 * malloc/arena.c (HEAP_MAX_SIZE): Define using
14392 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
14394 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
14397 * Makerules (depfiles): Handle extra-test-objs the same as
14399 (common-mostlyclean): Likewise.
14400 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
14402 * elf/Makefile (extra-objs): Likewise.
14403 * stdlib/Makefile (extra-objs): Likewise.
14405 2006-08-14 Eric Blake <ebb9@byu.net>
14408 * misc/error.h: Assume C89 or better.
14409 * misc/error.c: Likewise.
14411 2006-08-21 Ulrich Drepper <drepper@redhat.com>
14414 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
14415 __ASSUME_ATFCTS is defined.
14417 2006-08-19 Ulrich Drepper <drepper@redhat.com>
14419 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
14420 to sort in each call.
14422 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
14423 is empty simply return and use next service.
14424 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
14426 * locale/programs/charmap.c (charmap_read): Add new parameter. It
14427 tells us when not finding a charmap file is an error.
14428 * locale/programs/charmap.h: Adjust charmap_read prototype.
14429 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
14430 cannot find a charmap.
14431 * locale/programs/localedef.c (main): Adjust charmap_read call.
14433 2006-08-15 Jakub Jelinek <jakub@redhat.com>
14435 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
14436 sysdeps/posix/pause.c implementation instead.
14438 2006-08-09 Jakub Jelinek <jakub@redhat.com>
14440 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
14443 2006-08-13 Andreas Schwab <schwab@suse.de>
14445 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
14446 Don't clobber caller's LRSAVE.
14447 (_dl_prof_resolve): Likewise.
14449 2006-08-14 Ulrich Drepper <drepper@redhat.com>
14452 * libio/memstream.c (open_memstream): Allocate initial buffer with
14454 * libio/wmemstream.c (open_wmemstream): Likewise.
14455 * libio/strops.c: Pretty printing.
14456 (_IO_str_overflow): Clear uninitialized part of the new buffer.
14457 (enlarge_userbuf): New function.
14458 (_IO_str_seekoff): Call it if seek position is larger than current
14460 * libio/wstrops.c: Likewise.
14461 * libio/vasprintf.c: Add comment as to why we do not have to use
14462 calloc instead of malloc to allocate initial buffer.
14463 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
14464 * libio/bug-memstream1.c: New file.
14465 * libio/bug-wmemstream1.c: New file.
14467 2006-08-13 Ulrich Drepper <drepper@redhat.com>
14469 * libio/wstrops.c: Remove dead macro definitions and comments.
14470 * libio/strops.c: Likewise.
14473 * login/utmpname.c (__utmpname): Remove unnecessary test.
14475 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
14478 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
14481 2006-08-13 Ulrich Drepper <drepper@redhat.com>
14484 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
14486 * sysdeps/unix/clock_settime.c: Add support for platform-specific
14487 setting of CPU clocks.
14489 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
14492 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
14493 since C99 requires the result to promote to 'int' when uint_least8_t
14494 and uint_least16_t promote to 'int'.
14496 2006-08-12 Ulrich Drepper <drepper@redhat.com>
14499 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
14500 lenght of one output field, correct bitmask creation.
14501 * locale/programs/ld-time.c: Add alignment.
14504 * misc/error.c: Add space between program name and message if file
14507 2006-08-03 Eric Blake <ebb9@byu.net>
14510 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
14512 2006-08-09 Ulrich Drepper <drepper@redhat.com>
14514 * malloc/memusagestat.c: Silence warnings.
14516 * malloc/malloc.c: Dynamically size mmap treshold if the program
14517 frees mmaped blocks.
14518 Patch by Valerie Henson and Arjan van de Ven.
14520 2006-08-08 Jakub Jelinek <jakub@redhat.com>
14522 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
14525 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
14526 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
14527 (DEF): Don't put the var into .gnu.linkonce.r.* section.
14528 Only provide var definitions in strtol_l (or for *ull*
14531 * stdio-common/bug16.c (tests): New array.
14532 (do_tests): Allow the first hexadecimal digit
14533 to be 1, 2, 4 or 8. Do 3 additional tests.
14535 * sysdeps/s390/fpu/libm-test-ulps: Update.
14537 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14538 fchownat syscall if available.
14539 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14540 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14541 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14543 2006-08-07 Ulrich Drepper <drepper@redhat.com>
14545 * nis/nis_xdr.c: Avoid some function calls.
14547 2006-08-07 Jakub Jelinek <jakub@redhat.com>
14548 Ulrich Drepper <drepper@redhat.com>
14550 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14551 short cut if only one name component is stripped away.
14553 2006-08-07 Ulrich Drepper <drepper@redhat.com>
14555 * nis/nis_call.c: Minor cleanups throughout.
14556 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14557 (first_shoot): Add search_parent_first parameter. Only if it is set
14558 search parent server first.
14559 If directory for table found through cold start cache is not the same
14560 as referenced in the cache, don't use it.
14561 (__nisfind_server): Take additional parameter. Pass it on to
14563 (__prepare_niscall): Adjust __nisfind_server call.
14564 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14565 * nis/nis_table.c: Adjust __nisfind_server call.
14566 * nis/nis_lookup.c: Likewise.
14567 (nis_lookup): Don't loop endlessly if name is reduced to ".".
14569 2006-08-03 Ulrich Drepper <drepper@redhat.com>
14572 * math/s_cacosh.c: Return values from positive branch.
14573 * math/s_cacoshf.c: Likewise.
14574 * math/s_cacoshl.c: Likewise.
14577 * sysvipc/sys/msg.h: Change return value to ssize_t.
14578 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14579 * sysvipc/msgrcv.c: Likewise.
14580 * include/sys/msg.h: Likewise.
14582 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14583 test introduced in patch for bz #661.
14584 (getgrouplist): Simplify code a bit. Don't allocate one additional
14585 element for NEWGROUPS.
14588 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14589 'f', use '1' as leading digit not '\1'.
14590 * stdio-common/Makefile (tests): Add bug16.
14591 * stdio-common/bug16.c: New file.
14594 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14595 and don't try to open it. The patch introducing the macro
14596 contained a bug and used the same file name as the new file
14597 instead of using /var/adm/hostid. Nobody complaint so I'm taking
14598 this out completely.
14601 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14602 Patch by Jerry James <Jerry.James@usu.edu>.
14604 * rt/Makefile (tests): Add tst-clock2.
14605 * rt/tst-clock2.c: New file.
14608 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14609 function and its parameters and pass it to new thread.
14610 (__gai_notify): Add support for alternative waiting for completion.
14611 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14612 waiting for completion.
14613 * resolv/getaddrinfo_a.c: Likewise.
14614 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14615 waiting for completion is used.
14616 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14617 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14618 * resolv/gai_error.c: Likewise.
14619 * resolv/gai_sigqueue.c: Likewise.
14621 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
14623 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14624 errno to EBADF and return MACH_PORT_NULL.
14626 2006-06-23 Joseph Myers <joseph@codesourcery.com>
14629 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14631 2006-08-02 Ulrich Drepper <drepper@redhat.com>
14633 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14634 walk them instead of the symbol table.
14636 2006-08-01 Ulrich Drepper <drepper@redhat.com>
14639 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14640 status of NSS calls, not the number of returned entries.
14642 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14643 request_key, keyctl.
14645 2006-07-31 Ulrich Drepper <drepper@redhat.com>
14647 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14649 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
14651 * elf/tst-auditmod1.c: Fix typo in #error.
14653 2006-07-31 Ulrich Drepper <drepper@redhat.com>
14655 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14657 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14659 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
14661 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14662 that the directory is empty even on non-POSIX filesystems.
14664 2006-07-31 Ulrich Drepper <drepper@redhat.com>
14666 * elf/dl-open.c (dl_open_worker): Add branch prediction.
14668 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14669 the backend NSS module. If backend setgrent call failed, don't have
14670 internal_setgrent fail. Just remember this until it is needed.
14671 * nis/nss_compat/compat-pwd.c: Likewise.
14672 * nis/nss_compat/compat-spwd.c: Likewise.
14674 2006-07-30 Roland McGrath <roland@redhat.com>
14676 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14677 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14678 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14679 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14681 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14682 (nanosleep_not_cancel): New macro.
14683 (sigsuspend_not_cancel): new macro.
14684 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14685 (do_sigsuspend): Define as inline.
14686 (__sigsuspend): Always use do_sigsuspend.
14687 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14688 * include/signal.h: Declare __sigsuspend_nocancel.
14689 * sysdeps/posix/pause.c
14690 [! NO_CANCELLATION] (__pause_nocancel): New function.
14692 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14693 * include/time.h (__nanosleep_nocancel): Likewise.
14695 2006-07-30 Ulrich Drepper <drepper@redhat.com>
14697 * locale/programs/localedef.c (add_to_readlist): Rename local
14698 variables to avoid confusion.
14700 * locale/programs/charmap.c (charmap_read): Emit error message if
14701 charmap couldn't be found or read.
14703 2006-07-28 Ulrich Drepper <drepper@redhat.com>
14705 * sysdeps/unix/sysv/linux/kernel-features.h: Define
14706 __ASSUME_FUTEX_LOCK_PI.
14707 * include/time.h: Declare __nanosleep_nocancel.
14708 * include/unistd.h: Declare __pause_nocancel.
14710 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14711 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
14712 get the __stack_chk_fail_local definition when it's needed.
14714 2006-07-26 Ulrich Drepper <drepper@redhat.com>
14716 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14717 * dlfcn/bug-atexit3.c: New file.
14718 * dlfcn/bug-atexit3-lib.cc: New file.
14720 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14721 used when the namespace is not the base namespace.
14723 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
14725 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14726 (__new_exitfn): Bump it in every successful call.
14727 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14728 more exit handlers, call them right away.
14729 * stdlib/exit.h: Declare __new_exitfn_called.
14731 2006-07-25 Ulrich Drepper <drepper@redhat.com>
14733 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14734 calling registered handler.
14736 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14737 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14738 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14739 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14740 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14741 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14742 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14743 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14745 2006-07-10 Ulrich Drepper <drepper@redhat.com>
14747 * elf/dl-lookup.c (dl_new_hash): New functions.
14748 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14749 value here. Compute new-style hash value. Pass new hash value
14750 and reference to variable with the old value to do_lookup_x.
14751 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14752 old-style hash table.
14753 (_dl_debug_bindings): Pass new hash value and reference to variable
14754 with the old value to do_lookup_x.
14755 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14756 new-style hash value and change old-style hash value parameter to
14757 be a reference. Reoganize functions to determine whether
14758 new-style hash table is available. Only fall back on old-style
14759 table. If old-style hash value is needed, compute it here.
14760 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14762 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14763 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
14764 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14765 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14766 * Makeconfig: If linker supports --hash-style option add it to all
14767 linker command lines to build DSOs.
14768 * config.make.in: Define have-hash-style.
14769 * configure.in: Test whether linker supports --hash-style option.
14771 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14772 * sysdeps/generic/ldsodefs.h: Adjust prototype.
14774 2006-06-27 Ulrich Drepper <drepper@redhat.com>
14776 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14779 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14780 RPATH of main map twice.
14782 2006-06-22 Ulrich Drepper <drepper@redhat.com>
14784 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14785 look further, return original strings.
14786 (_nl_find_msg): Do not return found translation if the conversion
14787 failed. Either signal the string is unusable or that something went
14788 wrong and the original should be used.
14790 2006-06-21 Ulrich Drepper <drepper@redhat.com>
14792 * string/_strerror.c (__strerror_r): Add __builtin_expect.
14794 2006-06-14 Jakub Jelinek <jakub@redhat.com>
14797 * misc/insremque.c (insque): Handle prev == NULL.
14798 * misc/Makefile (tests): Add tst-insremque.
14799 * misc/tst-insremque.c: New test.
14801 2006-06-17 Ulrich Drepper <drepper@redhat.com>
14804 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14805 conflict with DL_DST_REQUIRED.
14807 2006-06-16 Ulrich Drepper <drepper@redhat.com>
14809 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14810 match what Solaris does.
14812 2006-06-04 Ulrich Drepper <drepper@redhat.com>
14814 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14815 local_setegid instead of seteuid and setegid.
14816 * sysdeps/generic/local-setxid.h: New file.
14817 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14819 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14821 * string/Makefile (tests): Add bug-envz1.
14822 * string/bug-envz1.c: New file.
14824 2006-06-02 Jakub Jelinek <jakub@redhat.com>
14826 * posix/regex_internal.c (re_string_skip_chars): If no character has
14827 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
14828 to the byte which couldn't be converted.
14829 (re_string_reconstruct): Don't clear valid_raw_len before calling
14830 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
14831 tip_context using re_string_context_at.
14832 * posix/Makefile: Add rules to build and run bug-regex25 test.
14833 * posix/bug-regex25.c: New test.
14835 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
14838 * string/envz.c (envz_strip): Correct erroneously reversed src
14839 and dest parameters to memmove() invocation.
14841 2006-05-30 Jakub Jelinek <jakub@redhat.com>
14843 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14844 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14845 to make sure the database has been already invalidated.
14846 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
14847 after the cache has been invalidated. Use pthread_mutex_lock rather
14848 than pthread_mutex_trylock if fd != -1.
14849 * nscd/connections.c (invalidate_cache): Add fd argument, write
14850 response to fd if not calling prune_cache, pass fd to prune_cache.
14851 (handle_request): Adjust invalidate_cache caller.
14852 (nscd_run): Pass -1 as fd to prune_cache.
14854 2006-05-30 Ulrich Drepper <drepper@redhat.com>
14856 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14859 2006-05-29 Ulrich Drepper <drepper@redhat.com>
14861 * nscd/nscd.h (struct database_dyn): Add prunelock field.
14862 * nscd/cache.c (prune_cache): Take prunelock before starting the
14863 work. Just return in case it is already taken.
14864 * nscd/connections.c (dbs): Initialize .prunelock.
14866 2006-05-25 Ulrich Drepper <drepper@redhat.com>
14868 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14869 copying. No need to allocate new array for group members. Just
14870 move the pointers and update the size.
14872 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14873 Avoid memory leak in case realloc fails. Simplification for
14874 better code generation.
14876 Avoid deprecation warning because of libc_hidden_proto for
14877 inet6_option_alloc.
14878 * inet/inet6_option.c (option_alloc): Renamed from
14879 inet6_option_alloc. Made static.
14880 (inet6_option_alloc): Now a simple wrapper around option_alloc.
14881 (inet6_option_append): Call option_alloc.
14882 * include/netinet/in.h: Remove libc_hidden_proto for
14883 inet6_option_alloc.
14885 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14886 for cleanup when cb!=NULL [Coverity CID 233].
14888 2006-05-24 Ulrich Drepper <drepper@redhat.com>
14891 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14892 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14893 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14894 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14895 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14896 and inet6_rth_getaddr.
14897 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14899 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14900 Mark inet6_option_* interfaces as deprecated.
14901 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14902 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14903 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14904 inet6_rth_segments, and inet6_rth_getaddr.
14905 * inet/inet6_opt.c: New file.
14906 * inet/inet6_rth.c: New file.
14908 * inet/netinet/icmp6.h: Pretty printing.
14911 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14913 2006-05-23 Ulrich Drepper <drepper@redhat.com>
14915 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14916 doing it all here. When server does not know the answer do not
14917 fail immediate, try parent first.
14919 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14922 2006-05-20 Ulrich Drepper <drepper@redhat.com>
14924 * nis/nis_call.c (__prepare_niscall): New function. Split out
14926 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14928 (__follow_path): New function. Split out from nis_list.
14929 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14931 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14933 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14935 * nis/Versions: Export __prepare_niscall, __create_ib_request,
14936 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14937 from libnsl for version GLIBC_PRIVATE.
14938 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14939 Remove entry parameter from _nss_nisplus_parse_pwent and
14940 _nss_nisplus_parse_grent.
14941 * nis/nss_nisplus/nisplus-parser.c: Likewise.
14942 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14943 again. Rewrite getpwent handling to not use nis_first_entry and
14944 nis_next_entry. Roll out own niscall handling.
14945 * nis/nss_nisplus/nisplus-grp.c: Likewise.
14947 * sunrpc/xdr_rec.c: Fix typo in comment.
14949 2006-05-19 Ulrich Drepper <drepper@redhat.com>
14951 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14954 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14955 to allocate memory for my_pollfd. Better initialization of
14956 cb_is_running. Use TEMP_FAILURE_RETRY.
14958 * malloc/memusage.sh (memusageso): Add quotes.
14959 (memusagestat): Likewise.
14960 * debug/xtrace.sh (pcprofileso): Likewise.
14961 (pcprofiledump): Likewise.
14962 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14964 * malloc/Makefile ($(objpfx)memusage): Likewise.
14966 * nis/nis_callback.c (__nis_create_callback): Calls to
14967 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
14968 asprintf call fails.
14970 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14971 no uninitialized memory is passed to sendto.
14973 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14975 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14976 of snprintf+strdup. Handle OOM.
14977 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14978 cb->serv together. Remove now obsolete free calls.
14979 (__nis_destroy_callback): Remove now obsolete free call.
14981 2006-05-18 David Woodhouse <dwmw2@redhat.com>
14983 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14984 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14985 and ULA respectively). Set precedence for IPv4 address to 10 as
14986 defined in RFC3484 for preferring IPv6.
14987 * posix/gai.conf: Update to match the new default tables.
14989 2006-05-18 Jakub Jelinek <jakub@redhat.com>
14991 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14992 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14993 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14994 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14996 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14998 (init_nss_interface): Remove initialization of these variables.
15000 2006-05-18 Ulrich Drepper <drepper@redhat.com>
15002 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
15003 nis_free_directory forward to avoid duplication.
15005 2006-05-17 Ulrich Drepper <drepper@redhat.com>
15007 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
15008 rec_dirsearch returning NULL.
15009 (first_shoot): Handle __nis_finddirectory returning NULL.
15010 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
15012 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
15013 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
15015 2006-05-17 Jakub Jelinek <jakub@redhat.com>
15017 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
15020 2006-05-15 Ulrich Drepper <drepper@redhat.com>
15022 * include/rpc/pmap_prot.h: Mark all functions as hidden.
15024 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
15025 * nscd/nscd_getgr_r.c: Likewise.
15027 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
15029 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
15030 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
15032 * stdlib/longlong.h (__clz_tab): Mark as hidden.
15034 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
15036 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
15038 * include/rpc/auth.h: Mark xdr_des_block_internal and
15039 xdr_opaque_auth_internal as hidden.
15041 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
15044 * include/rpc/xdr.h: Mark all _internal functions as hidden.
15046 * misc/getusershell.c (okshells): Don't use static initializers,
15049 * stdlib/fmtmsg.c (keywords): Change type of len element to
15050 uint32_t to not waste space on 64bit machines.
15052 * locale/setlocale.c: Change _nl_category_names into a string.
15053 Add new _nl_category_name_idxs. Change all users.
15054 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
15055 Declare _nl_category_name_idxs.
15056 * locale/findlocale.c: Adjust for _nl_category_names change.
15057 * locale/loadlocale.c: Likewise.
15058 * locale/newlocale.c: Likewise.
15059 * intl/dcigettext.c: Likewise.
15061 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
15062 (add_alias2): ...here. New function.
15063 (__gconv_read_conf): Simplify builtin alias handling.
15064 (builtin_aliases): Convert to string to avoid relocations.
15065 * iconv/gconv_builtin.h: Add comment about correct formatting.
15067 2006-05-15 Jakub Jelinek <jakub@redhat.com>
15069 * resolv/res_debug.c (loc_ntoa): Make error const.
15071 2006-05-14 Andreas Schwab <schwab@suse.de>
15073 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
15075 2006-05-12 Jakub Jelinek <jakub@redhat.com>
15077 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
15078 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
15079 sizeof (cpu_set_t).
15081 2006-05-11 Ulrich Drepper <drepper@redhat.com>
15083 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
15085 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
15087 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
15088 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
15090 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
15091 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
15093 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
15094 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
15097 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
15098 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
15101 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
15102 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
15104 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
15105 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
15107 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
15108 * include/rpcsvc/nis_callback.h: New file.
15110 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
15111 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
15113 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
15114 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
15116 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
15117 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
15119 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
15120 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
15122 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
15123 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
15126 * nis/nis_xdr.h: Mark all functions as hidden. Remove
15127 __BEGIN_DECLS and __END_DECLS, the header is not installed.
15129 * nis/nis_error.c: Remove table of strings. Use position
15130 independent mechanism.
15131 * nis/nis_error.h: New file.
15133 2006-05-11 Jakub Jelinek <jakub@redhat.com>
15135 * locale/programs/ld-time.c (time_finish): If wide era name or
15136 format aren't provided, set both wname and wformat to L"".
15138 2006-05-10 Ulrich Drepper <drepper@redhat.com>
15140 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
15141 results if the call was succesful.
15143 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
15145 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
15148 2006-05-10 Jakub Jelinek <jakub@redhat.com>
15150 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
15152 2006-05-10 Ulrich Drepper <drepper@redhat.com>
15154 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
15155 caller makes sure this is not the case.
15156 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
15158 2006-05-09 Ulrich Drepper <drepper@redhat.com>
15160 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
15163 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
15164 [Coverity CID 229, 230]
15166 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
15168 (hol_help): Likewise. [Coverity CID 226, 227]
15170 * string/argz-replace.c (__argz_replace): Unconditionally call
15171 free on SRC. [Coverity CID 225]
15173 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
15174 the return value of __nis_default_owner and __nis_default_group,
15175 it has been especially allocated. [Coverity CID 224]
15177 * nis/nis_defaults.c (searchXYX): New functions. Used by both
15178 searchgroup and searchowner. Significantly simplified.
15179 (__nis_default_owner): Remove duplication. Do not locally copy the
15180 string before duplicating it.
15181 (__nis_default_group): Likewise.
15183 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
15184 we must clear the variable before calling __nisfind_server.
15186 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
15187 nis_getnames. [Coverity CID 223]
15189 * locale/programs/locfile.c (locfile_read): Use alloca instead of
15190 xmalloc to allocate local repertoire name. [Coverity CID 222]
15192 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
15193 allocate memory for the input to add_bytes. [Coverity CID 221]
15195 * posix/wordexp.c (w_addword): Free word if realloc fails and it
15196 was allocated here. [Coverity CID 219, 220]
15198 * posix/getconf.c (print_all): Free confstr data after printing.
15201 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
15202 list allocation fails. [Coverity CID 215]
15204 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
15207 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
15208 string is NULL. [Coverity CID 212]
15209 * argp/Makefile: Add rules to build and run bug-argp1.
15210 * argp/bug-argp1.c: New file.
15212 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
15214 * stdlib/canonicalize.c (__realpath): Likewise.
15216 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
15217 pointer. [Coverity CID 206]
15219 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
15220 in statically linked code.
15221 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
15222 statically built code, be prepared to have no link map.
15225 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
15226 dgettext calls. [Coverity CID 204]
15228 * argp/argp-help.c (struct uparams): Remove valid member. Change
15230 (uparam_names): Reduce size. Avoid relative relocations.
15231 Moved to read-only segment.
15232 (fill_in_uparams): Update for new layout.
15234 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
15235 assumed to always be != NULL. [Coverity CID 202]
15237 * argp/argp-help.c (hol_entry_help): Remove some dead code
15238 [Coverity CID 200].
15240 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
15241 away a few more unconditional yperr2nss calls.
15242 (_nss_nis_getservbyname_r): Likewise.
15244 2006-05-06 Ulrich Drepper <drepper@redhat.com>
15246 * sysdeps/generic/ldsodefs.h: Remove support for non-core
15249 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
15250 that unused memory passed to sendto is nevertheless initialized.
15253 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
15254 possibly unaligned memory accesses.
15256 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
15257 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
15258 and __putlong respectively. Correct buffer overflow check for
15261 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
15263 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
15264 (send_dg): Rewrite error handling to be more compact and avoid
15265 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
15267 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
15269 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
15270 instead of ns_get16.
15271 (res_queriesmatch): Likewise. Minor optimization.
15274 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
15275 __libc_res_nsend might reallocate the buffer for the answer. In
15276 this case we have to reload the HP pointer.
15278 2006-05-05 Ulrich Drepper <drepper@redhat.com>
15280 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
15281 some branch prediction hints.
15283 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
15284 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15285 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15286 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15287 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15288 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15289 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
15290 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
15292 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
15294 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
15295 by a GOT relocation to make Scrt1.o position independent.
15296 * sysdeps/s390/s390-64/elf/start.S: Likewise.
15298 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
15299 six system call parameters.
15300 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
15302 2006-05-05 Ulrich Drepper <drepper@redhat.com>
15304 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
15307 * sunrpc/svc_udp.c (BZERO): Remove definition.
15309 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
15311 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
15312 (des_SPtrans): Use uint32_t type.
15313 (des_skb): Likewise.
15315 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
15317 2006-05-05 Jakub Jelinek <jakub@redhat.com>
15320 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
15323 2006-05-05 Ulrich Drepper <drepper@redhat.com>
15325 * locale/programs/ld-address.c (address_finish): Fix one more
15326 place where the iso639 array might be accessed beyond the limits.
15328 2006-05-04 Ulrich Drepper <drepper@redhat.com>
15330 * nis/nis_table.c (nis_list): Avoid clearing res twice before
15331 filling it for the first time.
15333 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
15334 Adjust all callers.
15335 Free res object content before returning.
15337 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
15339 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
15342 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
15343 cleanup for initial thread, just the free call on TVP.
15345 * nscd/gai.c (__getline): Define.
15348 See ChangeLog.16 for earlier changes.