1 2010-04-14 H.J. Lu <hongjiu.lu@intel.com>
3 * sysdeps/x86_64/elf/configure.in: Move AVX test to ....
4 * sysdeps/i386/configure.in: ...here.
5 * sysdeps/i386/i686/multiarch/Makefile (libm-sysdep_routines): Define.
6 (CFLAGS-s_fma-fma.c): Define.
7 (CFLAGS-s_fmaf-fma.c): Define.
8 * sysdeps/i386/i686/multiarch/Versions: New file.
9 * sysdeps/i386/i686/multiarch/s_fma-fma.c: New file.
10 * sysdeps/i386/i686/multiarch/s_fma.c: New file.
11 * sysdeps/i386/i686/multiarch/s_fmaf-fma.c: New file.
12 * sysdeps/i386/i686/multiarch/s_fmaf.c: New file.
14 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Check
15 DATA_CACHE_SIZE_HALF instead of SHARED_CACHE_SIZE_HALF.
17 2010-04-14 Andreas Schwab <schwab@redhat.com>
19 * elf/dl-version.c (_dl_check_map_versions): Avoid index overflow
20 when dependencies are missing.
22 2010-04-14 H.J. Lu <hongjiu.lu@intel.com>
24 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Optimized for unaligned
27 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
29 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31 * sysdeps/x86_64/multiarch/memcmp-sse4.S: New file.
32 * sysdeps/x86_64/multiarch/memcmp.S: New file.
33 * sysdeps/x86_64/multiarch/rtld-memcmp.c: New file.
35 2010-04-13 Ulrich Drepper <drepper@redhat.com>
37 * sysdeps/x86_64/multiarch/init-arch.h: Pretty printing.
40 2010-04-10 Matt Fleming <matt@console-pimps.org>
42 * elf/elf.h: Add SH specific ELF header flags.
44 2010-04-13 Andreas Schwab <schwab@redhat.com>
46 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Fix setup of
48 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
50 2010-04-12 Andreas Schwab <schwab@redhat.com>
52 * stdlib/tst-makecontext3.c (main): Initialize ucontext_t objects
53 only with getcontext. Test for unimplemented makecontext by
56 2010-04-09 Ulrich Drepper <drepper@redhat.com>
58 * nscd/aicache.c (addhstaiX): Correct passing memory to address
59 list to gethostbyname4_r functions.
61 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Optimize
64 2010-04-09 Roland McGrath <roland@redhat.com>
66 * Makerules ($(common-objpfx)libc-abis.h): Depend on libc-abis.stamp.
67 ($(common-objpfx)libc-abis.stamp): New target, rule moved from
68 libc-abis.h target. Use a stamp file to avoid repeating no-op
69 move-if-change on every run.
71 * posix/Makefile (tst-chmod-ARGS): Pass $(objdir), not `pwd`.
73 2010-04-08 Ulrich Drepper <drepper@redhat.com>
76 * nscd/nscd_stat.c (struct statdata): Add reload_count field.
77 (send_stats): Fill in reload_count.
78 (receive_print_stats): Print reload_count.
80 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): When
81 reading the loginuid file use a buffer which is always large enough.
82 NUL-terminate the string.
84 * malloc/malloc.c (_int_malloc): Return NULL if printing error message
87 2010-04-07 Andreas Schwab <schwab@redhat.com>
89 * sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
90 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
92 2010-04-08 Andreas Jaeger <aj@suse.de>
95 * math/s_cprojl.c (__cprojl): Fix implementation to follow C99
97 * math/s_cprojf.c (__cprojf): Likewise.
98 * math/s_cproj.c (__cproj): Likewise.
99 * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
100 * math/libm-test.inc (cproj_test): Fix test.
102 2010-04-08 Roland McGrath <roland@redhat.com>
104 * Makerules (libc-abis): Variable removed.
105 ($(common-objpfx)libc-abis.h): Depend on Makerules too.
106 Use automatic variables in commands.
107 Depend on first libc-abis from $(sysdirs) or $(..).
109 2010-04-07 Ulrich Drepper <drepper@redhat.com>
111 * posix/bug-getopt1.c: New file.
112 * posix/bug-getopt2.c: New file.
113 * posix/bug-getopt3.c: New file.
114 * posix/bug-getopt4.c: New file.
115 * posix/bug-getopt5.c: New file.
117 2009-12-01 Eric Blake <ebb9@byu.net>
120 * posix/getopt.c (_getopt_internal_r): Skip optional - or + before
121 checking lead byte of optstring for :.
124 * posix/getopt.c (_getopt_internal_r): Reject '-;' as short
125 option, since it conflicts with "W;" optstring extension.
127 2009-12-02 Eric Blake <ebb9@byu.net>
130 * posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
131 to '--foo', with optional argument or non-ambiguous prefix.
133 2010-04-07 Ulrich Drepper <drepper@redhat.com>
136 * nis/libnsl.h (NSS_FLAG_ADJUNCT_AS_SHADOW): Define.
137 * nis/nss: Document new ADJUNCT_AS_SHADOW variable.
138 * nis/nss-default.c: Handle ADJUNCT_AS_SHADOW variable.
139 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Minor cleanups.
140 (internal_nis_getpwent_r): Don't fill in password from adjunct table
141 if NSS_FLAG_ADJUNCT_AS_SHADOW is set.
142 (_nss_nis_getpwnam_r): Likewise.
143 (_nss_nis_getpwuid_r): Likewise.
144 * nis/nss_nis/nis-spwd.c (ent_adjunct_used): New global variable.
145 (_nss_nis_setspent): Also reset ent_adjunct_used.
146 (internal_nis_getspent_r): If new_start is set and shadow.byname table
147 does not exist and NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get
148 passwd.adjunct.byname table. If new_start is not set get next entry
149 from the initially used table. Synthesize shadow.byname table if
150 necessary by adding two empty fields.
151 (_nss_nis_getspnam_r): If shadow.byname table does not exist and
152 NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get passwd.adjunct.byname
153 table and synthesize shadow.byname table.
155 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
157 * Makerules (libc-abis): Add $(..) to libc-abis.
159 2010-04-06 Joseph Myers <joseph@codesourcery.com>
161 * Makerules (libc-abis): Fix search for libc-abis in add-ons.
163 2010-04-05 Thomas Schwinge <thomas@schwinge.name>
165 * sysdeps/gnu/unwind-resume.c: New, moved from nptl/sysdeps/pthread/.
166 * sysdeps/gnu/rt-unwind-resume.c: Likewise.
167 * sysdeps/gnu/Makefile: Add sections for csu and rt subdirs to
168 build unwind-resume code, previously in nptl/sysdeps/pthread/Makefile.
170 2010-04-05 Roland McGrath <roland@redhat.com>
172 * elf/dl-cache.c (_dl_load_cache_lookup): Obey dl_hwcap_mask.
174 * elf/dl-support.c (_dl_hwcap_mask): New variable.
176 * elf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast.
178 2010-03-30 Paul Pluzhnikov <ppluzhnikov@google.com>
180 * Makeconfig: Propagate -fdebug-prefix-map from CFLAGS to ASFLAGS.
182 2010-03-30 Joseph Myers <joseph@codesourcery.com>
184 * elf/elf.h (ELFOSABI_ARM_AEABI): Define.
186 2010-04-05 Ulrich Drepper <drepper@redhat.com>
188 * po/nl.po: Update from translation team.
191 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Handle
192 timeouts from servers.
195 * elf/ldconfig.c (main): Respect chroot setting when looking for
198 2010-04-04 Ulrich Drepper <drepper@redhat.com>
201 * posix/getopt.c (_getopt_internal_r): Fix arguments printed in error
205 * resolv/netdb.h: Declare iruserok and iruserok_af.
207 * argp/Makefile: Add rules to build and run bug-argp2.
208 * argp/bug-argp2.c: New file.
210 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
213 * argp/argp-parse.c (convert_options): Fix improper use of `|'
214 between character values.
216 2010-04-04 Ulrich Drepper <drepper@redhat.com>
219 * sysdeps/posix/remove.c (IS_NO_DIRECTORY_ERROR): Define.
220 (remove): Use IS_NO_DIRECTORY_ERROR to check for file being no
222 * sysdeps/unix/sysv/linux/remove.c: New file.
224 * conform/data/sys/stat.h-data: Fix testing of S_IS* macros.
227 * io/sys/stat.h: Always define S_ISSOCK for XPG6 and up.
230 * csu/Makefile ($(objpfx)version-info.h): Handle newer kernel headers
231 which don't define UTS_RELEASE.
233 2010-04-04 H.J. Lu <hongjiu.lu@intel.com>
234 Ulrich Drepper <drepper@redhat.com>
237 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Allow
238 concurrent initialization and use of __cpu_features.
240 2010-04-04 Ulrich Drepper <drepper@redhat.com>
242 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add tag to
245 2010-04-03 Ulrich Drepper <drepper@redhat.com>
248 * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
249 which include unnecessary padding in d_reclen.
250 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
254 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
255 unknown interface, return -1.
256 (getifaddrs_internal): Rename from getifaddrs. Handle errors in
257 map_newlink be returning -EAGAIN.
258 (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
261 2010-03-25 Ryan S. Arnold <rsa@us.ibm.com>
263 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
264 redundant and incorrect else block which overwrites current line
265 with the partial next line.
267 2010-04-03 Ulrich Drepper <drepper@redhat.com>
270 * posix/gai.conf: Document problems with IPv4 site-local addresses and
274 * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
275 small_tables_initialized.
277 * malloc/malloc.c (_int_free): Add one more sanity check for fastbins.
279 * malloc/malloc.c (set_max_fast): Fix computation of the value.
281 2010-03-30 David S. Miller <davem@davemloft.net>
283 * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Fix
284 MMAP2_PAGE_SHIFT test.
286 2010-03-29 Ulrich Drepper <drepper@redhat.com>
288 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_WAITFORONE.
290 2010-03-28 Thomas Schwinge <thomas@schwinge.name>
292 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Adapt to auxv
293 changes in the generic code.
294 * elf/rtld.c (dl_main): Conditionalize the code that dereferences auxv
295 to [HAVE_AUX_VECTOR].
297 2010-03-27 Ulrich Drepper <drepper@redhat.com>
299 * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): If
300 __ASSUME_AT_PAGESIZE we can rely on the value being set.
302 * include/wchar.h: Undefine __need_mbstate_t and __need_wint_t
303 unconditionally in the end.
305 * posix/glob.c (glob): Initialize oldcount early, too.
307 2010-03-26 Ulrich Drepper <drepper@redhat.com>
309 * sysdeps/unix/sysv/linux/i386/fcntl.c: Define miss_F_GETOWN_EX
311 Patch mostly by Paul Pluzhnikov <ppluzhnikov@google.com>.
313 2010-03-26 Richard Henderson <rth@redhat.com>
315 * sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro;
317 * stdio-common/psiginfo.c (psiginfo): Fix printf format
320 * locale/setlocale.c (free_category): Finish renaming
321 struct locale_data to __locale_data.
323 * csu/gmon-start.c (ENTRY_POINT, etext): Declare as char[], not void.
324 * elf/dl-sysdep.c (_end): Likewise.
325 * sysdeps/unix/sysv/dl-sysdep.c (frob_brk): Likewise with locally
326 declared _end, and associated variables.
328 2010-03-26 Ulrich Drepper <drepper@redhat.com>
330 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't assume success always
331 means aborting the loop over the NSS methods.
333 2010-03-25 Andreas Schwab <schwab@redhat.com>
336 * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
339 2010-03-26 Ulrich Drepper <drepper@redhat.com>
341 * malloc/malloc.c: Remove stale reference to website.
343 2010-03-24 Ulrich Drepper <drepper@redhat.com>
346 * bits/time.h: Define CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and
347 CLOCK_MONOTONIC_COARSE.
348 * sysdeps/unix/sysv/linux/clock_getres.c: Handle CLOCK_MONOTONIC_RAW,
349 CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE.
350 * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
351 * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
353 2010-03-25 Andreas Schwab <schwab@redhat.com>
355 * sysdeps/posix/cuserid.c: Fix typo.
357 2010-03-16 Chris Demetriou <cgd@google.com>
360 * locale/programs/simple-hash.c: Include inttypes.h.
361 (hashval_t): Defined to be uint32_t.
362 * locale/programs/simple_hash.h: Include inttypes.h.
363 (compute_hashval): Change return type to uint32_t.
365 2010-03-24 Ulrich Drepper <drepper@redhat.com>
367 * sysdeps/unix/sysv/linux/getlogin_r.c: New file.
368 * sysdeps/unix/sysv/linux/getlogin.c: New file.
369 * sysdeps/unix/getlogin_r.c: Allow compiling getlogin as static
371 * sysdeps/unix/getlogin.c: Likewise. Move name variable to toplevel.
372 * include/unistd.h: Declare __getlogin_r_loginuid.
375 * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
377 Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
379 * sysdeps/unix/sysv/linux/mmap64.c: Allow variable shift values.
381 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
383 * sysdeps/x86_64/multiarch/strpbrk-c.c: Define only if SHARED
386 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
388 * string/test-memcmp.c (check_result): New function.
389 (do_one_test): Use it.
390 (check1): New function.
393 2010-03-24 Ulrich Drepper <drepper@redhat.com>
395 * posix/tst-gnuglob.c: Add tests with empty patterns. For this
396 rewrite the tests to add support for failing glob calls.
397 Some other minor cleanups.
398 * posix/bug-glob3.c: New file.
399 * posix/Makefile (tests): Add bug-glob3.
401 2010-03-24 Ulrich Drepper <drepper@redhat.com>
402 Andreas Schwab <andreas@redhat.com>
404 * posix/glob.c (glob): Clean up gl_pathc and gl_pathv earlier.
405 If pattern is "" bail out early
407 2010-03-23 Jakub Jelinek <jakub@redhat.com>
409 * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
410 but tab->size != 0, just unlock and goto success, without
411 allocating anything or entering anything into the hash table.
412 (_dl_debug_bindings): Temporarily set tab->entries to NULL
413 around do_lookup_x in undef_map->l_local_scope[0]. If
414 undef_map->l_symbolic_in_local_scope, lookup also in
415 symbolic_searchlist of following libraries in l_local_scope
416 that have DT_SYMBOLIC set.
417 * elf/dl-deps.c (_dl_map_object_deps): Compute
418 l_symbolic_in_local_scope.
419 * include/link.h (struct link_map): Add l_symbolic_in_local_scope
422 2010-03-24 Ulrich Drepper <drepper@redhat.com>
425 * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
427 * wcsmbs/wchar.h: Correct preprocessor directive indentation. Move
428 C++ prototype handling to a better place.
430 2010-03-18 Ulrich Drepper <drepper@redhat.com>
432 * elf/dl-load.c (open_verify): Extend expected to the full size of the
433 e_ident array. When loading, check that the fields in e_ident we don't
434 know are zero to allow future extensions.
436 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
438 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
441 2010-03-16 Andreas Schwab <schwab@redhat.com>
443 * resolv/res_send.c (__libc_res_nsend): Fix printing of server
444 address in debug statement.
445 (send_dg): Pass correct buffer pointer to DprintQ.
447 2010-03-17 Ulrich Drepper <drepper@redhat.com>
449 * libc-abis: Add a few more entries.
451 2010-03-16 Ulrich Drepper <drepper@redhat.com>
453 * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
455 (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
457 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
458 additional osabi parameter. Only acceept nonzero ABI versions if osabi
461 (expected2): Don't explicitly initialize EI_ABIVERSION byte.
463 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
464 definition to follow generic code.
466 2010-03-15 Ulrich Drepper <drepper@redhat.com>
468 * posix/getconf.c: Update copyright year.
469 * nss/getent.c: Likewise.
470 * iconv/iconvconfig.c: Likewise.
471 * iconv/iconv_prog.c: Likewise.
472 * elf/ldconfig.c: Likewise.
473 * catgets/gencat.c: Likewise.
474 * csu/version.c: Likewise.
475 * elf/ldd.bash.in: Likewise.
476 * elf/sprof.c (print_version): Likewise.
477 * locale/programs/locale.c: Likewise.
478 * locale/programs/localedef.c: Likewise.
479 * nscd/nscd.c (print_version): Likewise.
480 * debug/xtrace.sh: Likewise.
481 * malloc/memusage.sh: Likewise.
482 * malloc/mtrace.pl: Likewise.
483 * debug/catchsegv.sh: Likewise.
485 * Makerules: Add rule for libc-abis.h.
486 * csu/version.c: Use LIBC_ABIS_STRING string if available.
487 * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
488 (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
489 Add extra call to VALID_ELF_ABIVERSION.
491 2010-03-12 Ulrich Drepper <drepper@redhat.com>
493 * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
495 2010-03-12 Andreas Schwab <schwab@redhat.com>
497 * elf/dl-dst.h: Include "trusted-dirs.h".
498 (DL_DST_REQUIRED): Take $LIB into account.
500 2010-03-11 Roland McGrath <roland@redhat.com>
502 * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
503 (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
505 2010-03-10 Luis Machado <luisgpm@br.ibm.com>
507 * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
508 * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
510 2010-03-09 David S. Miller <davem@davemloft.net>
512 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
513 of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
516 * sysdeps/sparc/sparc32/memcpy.S: Fix build.
518 * sysdeps/sparc/sparc32/strlen.S: Optimize.
519 * sysdeps/sparc/sparc64/strlen.S: Likewise.
520 * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
521 XCC): Delete definitions, not needed.
523 2010-03-07 Ulrich Drepper <drepper@redhat.com>
525 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
526 Little follow-up patch from last change.
528 2010-03-06 Ulrich Drepper <drepper@redhat.com>
530 * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
531 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
533 2010-02-18 Yann Droneaud <yann@droneaud.fr>
535 * resolv/res_send.c: Fixed DEBUG statements.
536 Moved tmpbuf declaration to block beginning and
537 updated pointer names used in multiple DprintQ() calls
539 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
541 * config.make.in (config-asflags-i686): Define.
542 * configure.in: Substitute libc_cv_as_i686.
543 * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
544 * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
545 if assembler supports -mtune=i686.
546 (ASFLAGS-.oX): Likewise.
548 2010-03-04 Ulrich Drepper <drepper@redhat.com>
550 * elf/elf.h (R_X86_64_SIZE32): Define.
551 (R_X86_64_SIZE64): Define.
553 2010-03-02 Richard Guenther <rguenther@suse.de>
555 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
558 2010-03-03 Ulrich Drepper <drepper@redhat.com>
560 * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
563 2010-03-04 David S. Miller <davem@davemloft.net>
565 * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
567 * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
568 * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
570 2010-03-03 David S. Miller <davem@davemloft.net>
572 * math/math_private.h (INSERT_WORDS64): Fix argument order.
574 2010-03-03 Aurelien Jarno <aurelien@aurel32.net>
576 * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
578 2010-03-03 David S. Miller <davem@davemloft.net>
580 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
581 pass '1' for 't' argument to sparc_fixup_plt.
582 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
584 * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
585 (sparc_fixup_plt): Document 't' argument. Enable branch
586 optimization and use v9 branches when possible. Explain why we
587 cannot unconditionally patch the branch into the first PLT
589 * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
590 argument. Use v9 branches when possible. Explain why we can in
591 fact unconditionally use a branch in the first PLT instruction
594 2010-02-28 Roland McGrath <roland@redhat.com>
596 * elf/elf.h (NT_X86_XSTATE): New macro.
598 2010-02-25 David S. Miller <davem@davemloft.net>
600 * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
601 * sysdeps/sparc/sparc64/align-cpy.S: New.
602 * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
603 __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
604 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
605 __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
607 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
608 __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
610 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
611 __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
614 * sysdeps/sparc/sparc32/bcopy.c: Delete.
615 * sysdeps/sparc/sparc32/memmove.c: Delete.
616 * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
617 * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
618 * sysdeps/sparc/sparc64/bcopy.c: Delete.
619 * sysdeps/sparc/sparc64/memmove.c: Delete.
620 * sysdeps/sparc/sparc64/memcopy.h: New.
621 * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
622 * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
623 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
624 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
625 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
627 * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
628 * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
629 gen-as-const-headers.
630 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
631 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
632 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
633 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
634 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
635 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
636 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
637 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
638 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
639 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
640 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
641 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
642 * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
643 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
644 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
645 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
646 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
647 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
648 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
649 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
650 * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
651 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
652 * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
653 * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
655 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
658 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
659 and cfi_restore_state only if USE_AS_STRNCMP is defined.
661 2010-02-24 Ulrich Drepper <drepper@redhat.com>
663 * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
665 2010-02-24 H.J. Lu <hongjiu.lu@intel.com>
667 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
668 (bk_write_less32bytes_2): Renamed to ...
669 (bk_write_less48bytes): This.
670 Use unsigned conditional jumps.
672 Use add/sub instead of lea if possible.
673 (shl_0_gobble_cache_loop_tail): Removed.
674 (large_page): Properly adjust ECX.
676 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
680 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
682 Use unsigned conditional jumps.
683 (128bytesormore_nt): Renamed to ...
684 (128bytesormore_endof_L1): This.
685 Use add instead of lea if possible.
687 * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
689 Use unsigned conditional jumps.
690 Use add instead of lea if possible.
693 2010-02-24 Ulrich Drepper <drepper@redhat.com>
696 * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
697 undoing the stream because _IO_FINISH doesn't report failures.
700 * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
701 (public_pVALLOc): Likewise.
702 Patch by Petr Baudis.
704 2010-02-22 Jim Meyering <meyering@redhat.com>
706 * manual/math.texi (BSD Random): Fix a typo: s/are/is/
708 * manual/charset.texi: Adjust grammar.
710 * manual/errno.texi (Error Messages): Fix doubled-words and typos.
711 * manual/charset.texi (Selecting the Conversion): Likewise.
712 * manual/getopt.texi (Getopt Long Options): Likewise.
713 * manual/memory.texi (Resizing the Data Segment): Likewise.
714 * manual/message.texi (GUI program problems): Likewise.
715 * manual/resource.texi (CPU Affinity): Likewise.
716 * manual/stdio.texi (Streams and Threads): Likewise.
717 * manual/time.texi (High Accuracy Clock): Likewise.
719 2009-02-20 David S. Miller <davem@davemloft.net>
721 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
722 Adjust rela->r_offset by l->l_addr when rewriting PLT.
724 * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
727 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
728 (__makecontext): Adjust arg counter properly when copying arg
731 2009-02-20 Joseph Myers <joseph@codesourcery.com>
733 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
734 Adjust rela->r_offset by l->l_addr when rewriting PLT.
736 2010-02-19 Carl Fredrik Hammar <hammy.lite@gmail.com>
738 * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
739 non-existent `tiocsctty_port'.
741 2010-02-16 H.J. Lu <hongjiu.lu@intel.com>
743 * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
744 instead of FEATURE_OFFSET.
745 * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
747 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
748 Fix one unwind info problem.
750 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
752 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
754 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
755 Ulrich Drepper <drepper@redhat.com>
757 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
760 2010-02-17 Carl Fredrik Hammar <hammy.lite@gmail.com>
762 * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
763 (tiocsctty_port): ...this new function.
765 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
768 2010-02-15 Ulrich Drepper <drepper@redhat.com>
770 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
771 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
772 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
773 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
775 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
778 2010-02-12 H.J. Lu <hongjiu.lu@intel.com>
780 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
781 strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
782 memcmp-c, memcmp-ssse3, and memcmp-sse4.
783 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
784 * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
785 * sysdeps/i386/i686/multiarch/memcmp.S: New file.
786 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
787 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
788 * sysdeps/i386/i686/multiarch/strcmp.S: New file.
789 * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
790 * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
791 * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
792 * sysdeps/i386/i686/multiarch/strncmp.S: New file.
794 2010-02-12 Luis Machado <luisgpm@br.ibm.com>
796 * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
797 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
798 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
799 * sysdeps/powerpc/powerpc32/memset.S: Likewise.
800 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
801 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
802 * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
804 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
805 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
806 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
807 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
808 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
809 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
810 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
811 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
812 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
813 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
814 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
815 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
816 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
817 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
818 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
819 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
820 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
831 2010-02-12 Alan Modra <amodra@gmail.com>
833 * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
834 Define and use for __powerpc64__ too.
835 [__powerpc__] (TLS_LD): Add r3 to clobbers.
836 [__powerpc__] (TLS_GD): Set asm output. Make __result r3 reg.
837 [__powerpc64__] (TLS_GD): Make __result r3 reg.
838 [__powerpc64__] (TLS_IE): Relax output constraint.
840 2010-02-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
842 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
843 instructions cu21 and cu24. Add well-formedness checking
844 parameter and adjust the software implementation.
845 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
847 2010-02-10 Ulrich Drepper <drepper@redhat.com>
850 * io/ftw.c (ftw_startup): Close descriptor for initial directory
851 after changing back to it.
853 2010-02-05 David S. Miller <davem@davemloft.net>
855 * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
856 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
858 (elf_machine_lazy_rel): Likewise.
859 (sparc_fixup_plt): Pull out to...
860 * sysdeps/sparc/sparc32/dl-plt.h: ...here.
861 * sysdeps/sparc/sparc32/dl-irel.h: New file.
862 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
864 (elf_machine_lazy_rel): Likewise.
865 (sparc64_fixup_plt): Pull out to...
866 * sysdeps/sparc/sparc64/dl-plt.h: ...here.
867 * sysdeps/sparc/sparc64/dl-irel.h: New file.
869 2010-02-09 Maxim Kuvyrkov <maxim@codesourcery.com>
871 * elf/elf.h: Define m68k TLS relocations.
873 2010-02-10 Luis Machado <luisgpm@br.ibm.com>
875 * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
876 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
877 * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
878 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
880 64-bit power7 fpu path.
881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
882 32-bit power7 fpu math.
884 2010-02-09 Ulrich Drepper <drepper@redhat.com>
886 * sysdeps/i386/rshift.S: More compact unwind information.
888 * sysdeps/i386/lshift.S: Fix unwind information.
890 2010-02-08 Luis Machado <luisgpm@br.ibm.com>
892 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
893 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
894 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
895 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
896 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
897 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
898 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
899 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
900 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
901 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
902 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
903 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
905 2010-02-08 Andreas Schwab <schwab@redhat.com>
907 * include/fenv.h: Add hidden proto for fegetenv.
908 * math/fegetenv.c: Add hidden alias.
909 * sysdeps/i386/fpu/fegetenv.c: Likewise.
910 * sysdeps/ia64/fpu/fegetenv.c: Likewise.
911 * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
912 * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
913 * sysdeps/sparc/fpu/fegetenv.c: Likewise.
914 * sysdeps/x86_64/fpu/fegetenv.c: Likewise
915 * sysdeps/s390/fpu/fegetenv.c: Likewise. Remove unused headers.
917 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
920 * sysdeps/ia64/memchr.S: Don't read beyond the last byte
923 2010-01-26 Andreas Schwab <schwab@redhat.com>
925 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
927 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
928 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
931 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
934 2010-02-03 Ulrich Drepper <drepper@redhat.com>
937 * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
938 S_IMMUTABLE. Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
939 MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
940 MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
941 MS_ACTIVE, and MS_NOUSER.
942 (MS_RMT_MASK): Update according to current kernels.
945 * misc/getusershell.c (initshells): Allocate one more byte in input
946 buffer so that fgets doesn't loop undefinitely.
948 2010-02-02 Ulrich Drepper <drepper@redhat.com>
950 * stdlib/setenv.c (__add_to_environ): Don't use alloca if
951 __libc_use_alloca tells us not to. Fix memory leak in an error
952 situation. Based partially on patch by Jim Meyering.
954 2010-01-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
956 * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
957 get_phys_pages, get_avphys_pages): Add weak aliases.
959 2010-01-25 Andreas Schwab <schwab@redhat.com>
961 * iconv/iconv_prog.c (write_output): Fix check for open failure.
963 2010-01-22 Ulrich Drepper <drepper@redhat.com>
966 * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
967 mmap resource problem. Patch by Joe Landers <jlanders@vmware.com>.
969 2010-01-22 Jim Meyering <jim@meyering.net>
972 * posix/regexec.c (extend_buffers): Avoid overflow in realloc
973 buffer length computation.
976 * posix/regexec.c (re_copy_regs): Don't leak when allocation
977 of the start buffer succeeds but allocation of the "end" one fails.
980 * posix/regexec.c (re_search_2_stub): Check for overflow
981 when adding the sizes of the two strings.
984 * posix/regexec.c (re_search_internal): Avoid overflow
985 in computing re_malloc buffer size.
988 * posix/regexec.c (prune_impossible_nodes): Avoid overflow
989 in computing re_malloc buffer size.
992 * posix/regexec.c (build_trtable): Avoid arithmetic overflow
996 * posix/regexec.c (re_search_2_stub): Use simpler method than
997 boolean for freeing internal storage.
999 2010-01-22 Ulrich Drepper <drepper@redhat.com>
1001 * posix/regex_internal.c (re_string_skip_chars): Simplify test for
1002 failed mbrtowc call.
1004 2010-01-22 Jim Meyering <jim@meyering.net>
1007 * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
1008 fits in wchar_t. Problem reported by Eric Blake.
1011 * posix/regex_internal.c (re_string_reconstruct): Remove declaration
1012 and stores into set-but-not-used local, "q".
1015 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
1016 detection test. Patch by Paul Eggert.
1019 * posix/regex_internal.c (re_string_realloc_buffers):
1020 Detect and handle internal overflow. Patch by Paul Eggert
1022 2010-01-20 Andreas Schwab <schwab@redhat.com>
1024 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
1025 (CHECK_SP): Fix check for alternate stack.
1026 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
1027 (CHECK_SP): Likewise.
1029 2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
1031 * sysdeps/i386/i686/multiarch/memmove.S: Also check
1032 bit_Fast_Rep_String when SHARED isn't defined.
1034 2010-01-19 Ulrich Drepper <drepper@redhat.com>
1037 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
1039 2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
1041 * sysdeps/mach/hurd/bits/libc-lock.h
1042 (__rtld_lock_recursive_t): New type.
1043 (__rtld_lock_initialize): New macro.
1045 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
1047 * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
1048 * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
1049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
1050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
1052 2010-01-18 Andreas Schwab <schwab@redhat.com>
1054 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
1055 definitions of O_DSYNC and O_RSYNC.
1057 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
1060 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
1061 dynamic entry types.
1063 2010-01-16 Jakub Jelinek <jakub@redhat.com>
1065 * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
1067 * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
1068 * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
1070 * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
1072 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
1073 math_opt_barrier and math_force_eval macros.
1075 2010-01-15 Ulrich Drepper <drepper@redhat.com>
1077 * posix/regcomp.c: Fix a few more cases of ignored return values.
1078 * posix/regex_internal.c: Likewise.
1079 * posix/regexec.c: Likewise.
1081 * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
1082 used without _XOPEN_SOURCE. Don't base any decisions on this macro
1083 if _XOPEN_SOURCE is not defined as well.
1085 2010-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1087 * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
1088 high gprs kernel facility.
1089 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
1090 Added high gprs check for DSOs.
1091 * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
1092 new elf header flag.
1094 2010-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1096 * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
1098 * elf/dl-open.c (_dl_sysdep_start): Likewise..
1099 * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
1100 * elf/rtld.c (dl_main): Added new parameter auxv. Adjust the
1101 AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
1104 2010-01-14 Ulrich Drepper <drepper@redhat.com>
1107 * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
1109 Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1112 * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
1116 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
1117 re_node_set_insert failure; return REG_ESPACE.
1118 Patch by Paul Eggert.
1121 * bits/confname.h: Make pre-C99-safe.
1123 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
1125 * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
1126 $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
1127 files are found by GCC.
1129 2010-01-14 Ulrich Drepper <drepper@redhat.com>
1131 * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
1134 * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
1137 * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
1139 * Versions.def: Add GLIBC_2.12 for libpthread.
1142 * malloc/malloc.c (malloc_info): Initialize malloc if not already
1143 done. Handle empty bin lists.
1145 * posix/unistd.h: Change getpagesize and getdtablesize declaration
1146 visibility some more.
1148 * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
1150 * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
1153 * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
1154 needed outside libc.
1156 2010-01-13 Ulrich Drepper <drepper@redhat.com>
1158 * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
1160 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
1162 * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
1164 2010-01-13 Ulrich Drepper <drepper@redhat.com>
1166 * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
1168 2010-01-12 Ulrich Drepper <drepper@redhat.com>
1170 * conform/data/complex.h-data: Test for POSIX2008.
1172 * conform/data/ctype.h-data: Fix POSIX testing.
1174 * conform/data/dirent.h-data: ino_t only needed for XSI.
1176 * grp/grp.h: Declare getgrent and endgrent for XPG7.
1178 * conform/data/inttypes.h-data: Use same types as the headers.
1180 * resolv/netdb.h: Don't define old resolver macros for XPG7.
1182 * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
1184 * conform/conformtest.pl: Implement tag for allow-header.
1185 Fix newline handling in allow-header implementation.
1187 * conform/data/time.h-data: Use allow-header instead of duplicating
1190 * conform/data/time.h-data: Allow sigevent tag.
1192 * posix/sched.h: Define time_t and pid_t for XPG7.
1194 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
1196 * sysdeps/i386/i686/bcopy.S: New file.
1198 * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
1200 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
1202 * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
1203 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
1204 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
1206 * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
1208 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1209 bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
1210 memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
1211 bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
1212 * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
1213 * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
1214 * sysdeps/i386/i686/multiarch/bcopy.S: New file.
1215 * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
1216 * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
1217 * sysdeps/i386/i686/multiarch/bzero.S: New file.
1218 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
1219 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
1220 * sysdeps/i386/i686/multiarch/memcpy.S: New file.
1221 * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
1222 * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
1223 * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
1224 * sysdeps/i386/i686/multiarch/memmove.S: New file.
1225 * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
1226 * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
1227 * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
1228 * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
1229 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
1230 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
1231 * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
1232 * sysdeps/i386/i686/multiarch/memset.S: New file.
1233 * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
1235 * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
1236 (END_CHK): Likewise.
1238 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
1239 FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
1240 * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
1242 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
1244 (__x86_64_data_cache_size): New.
1245 (init_cacheinfo): Set __x86_64_data_cache_size.
1247 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
1248 on bit_Fast_Rep_String for Intel Core i7.
1250 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
1251 (index_Fast_Rep_String): Likewise.
1252 (FEATURE_INDEX_1): Likewise.
1253 (FEATURE_INDEX_MAX): Likewise.
1254 (cpu_features): Add feature.
1256 2010-01-12 Ulrich Drepper <drepper@redhat.com>
1258 * conform/data/sys/select.h-data: Fix up for XPG7.
1260 2010-01-12 Jakub Jelinek <jakub@redhat.com>
1262 * posix/sys/wait.h: Don't define W* macros etc. if
1263 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
1265 2010-01-11 Ulrich Drepper <drepper@redhat.com>
1267 * io/sys/stat.h: Declare fchmod for XPG7.
1268 * conform/data/sys/stat.h-data: Fix up for XPG7.
1270 * termios/termios.h: Define pid_t for XPG7.
1272 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
1273 * conform/data/tgmath.h-data: Likewise.
1275 * conform/data/time.h-data: Fix POSIX tests.
1277 * conform/data/wchar.h-data: Fix up XPG7 tests.
1279 * include/features.h: Fix __USE_ISOC95 handling.
1281 * conform/data/wordexp.h-data: Fix typo in last change.
1283 * conform/data/unistd.h-data: Fix up older POSIX tests.
1285 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
1286 * posix/unistd.h: Likewise.
1288 * posix/unistd.h: Include environments.h also for XPG6 and up.
1289 Define intptr_t for XPG6 and up.
1291 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
1293 * conform/data/sys/types.h-data: Fix up for XPG7.
1295 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
1296 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1297 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1298 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1299 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1300 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1301 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1302 * sysdeps/unix/sysv/bits/stat.h: Likewise.
1303 * sysdeps/mach/hurd/bits/stat.h: Likewise.
1305 * bits/confname.h: Fix typo in last change.
1307 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
1309 2010-01-10 Ulrich Drepper <drepper@redhat.com>
1311 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
1312 and SA_RESETHAND now available in Base.
1313 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
1314 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
1315 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1316 * conform/data/signal.h-data: Update for XPG7.
1318 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
1320 * string/strings.h: Don't declare obsolete functions for XPG7.
1321 Declare ffs only for XSI.
1322 * conform/data/strings.h-data: Update for XPG7.
1324 2010-01-10 Jakub Jelinek <jakub@redhat.com>
1327 * libio/stdio.h: Define va_list, off_t, and ssize_t.
1329 * posix/glob.h: Define size_t.
1331 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
1333 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
1335 2010-01-10 Ulrich Drepper <drepper@redhat.com>
1337 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
1340 * conform/data/stdio.h-data: Expect off_t and ssize_t.
1342 2010-01-09 Ulrich Drepper <drepper@redhat.com>
1344 * libio/stdio.h: Define va_list also for XPG7.
1346 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
1347 * conform/data/ctype.h-data: Likewise.
1348 * conform/data/dirent.h-data: Likewise.
1349 * conform/data/errno.h-data: Likewise.
1350 * conform/data/fcntl.h-data: Likewise.
1351 * conform/data/fmtmsg.h-data: Likewise.
1352 * conform/data/fnmatch.h-data: Likewise.
1353 * conform/data/ftw.h-data: Likewise.
1354 * conform/data/glob.h-data: Likewise.
1355 * conform/data/grp.h-data: Likewise.
1356 * conform/data/iconv.h-data: Likewise.
1357 * conform/data/langinfo.h-data: Likewise.
1358 * conform/data/libgen.h-data: Likewise.
1359 * conform/data/limits.h-data: Likewise.
1360 * conform/data/locale.h-data: Likewise.
1361 * conform/data/math.h-data: Likewise.
1362 * conform/data/monetary.h-data: Likewise.
1363 * conform/data/mqueue.h-data: Likewise.
1364 * conform/data/ndbm.h-data: Likewise.
1365 * conform/data/netdb.h-data: Likewise.
1366 * conform/data/pthread.h-data: Likewise.
1367 * conform/data/pwd.h-data: Likewise.
1368 * conform/data/regex.h-data: Likewise.
1369 * conform/data/sched.h-data: Likewise.
1370 * conform/data/search.h-data: Likewise.
1371 * conform/data/semaphore.h-data: Likewise.
1372 * conform/data/setjmp.h-data: Likewise.
1373 * conform/data/signal.h-data: Likewise.
1374 * conform/data/spawn.h-data: Likewise.
1375 * conform/data/stdio.h-data: Likewise.
1376 * conform/data/stdlib.h-data: Likewise.
1377 * conform/data/string.h-data: Likewise.
1378 * conform/data/strings.h-data: Likewise.
1379 * conform/data/sys/ipc.h-data: Likewise.
1380 * conform/data/sys/msg.h-data: Likewise.
1381 * conform/data/sys/resource.h-data: Likewise.
1382 * conform/data/sys/sem.h-data: Likewise.
1383 * conform/data/sys/shm.h-data: Likewise.
1384 * conform/data/sys/socket.h-data: Likewise.
1385 * conform/data/sys/stat.h-data: Likewise.
1386 * conform/data/sys/time.h-data: Likewise.
1387 * conform/data/sys/types.h-data: Likewise.
1388 * conform/data/sys/uio.h-data: Likewise.
1389 * conform/data/sys/wait.h-data: Likewise.
1390 * conform/data/syslog.h-data: Likewise.
1391 * conform/data/tar.h-data: Likewise.
1392 * conform/data/termios.h-data: Likewise.
1393 * conform/data/time.h-data: Likewise.
1394 * conform/data/ulimit.h-data: Likewise.
1395 * conform/data/unistd.h-data: Likewise.
1396 * conform/data/utmpx.h-data: Likewise.
1397 * conform/data/wchar.h-data: Likewise.
1398 * conform/data/wctype.h-data: Likewise.
1399 * conform/data/wordexp.h-data: Likewise.
1401 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
1402 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
1403 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1404 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1405 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1406 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1407 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1408 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1409 * sysdeps/unix/sysv/bits/stat.h: Likewise.
1410 * sysdeps/mach/hurd/bits/stat.h: Likewise.
1412 * stdlib/stdlib.h: Define wait-related bits for XPG7.
1413 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
1414 Declare mkstemp and getsubopt for XPG7.
1415 Declare posix_openpt for XPG6 XSI.
1417 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1418 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1420 * string/string.h: Declare strdup for XPG7.
1422 2010-01-08 Ulrich Drepper <drepper@redhat.com>
1424 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1425 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1427 * dirent/dirent.h: Really fix feature selection.
1429 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1431 * locale/C-address.c: Fix all users.
1432 * locale/C-collate.c: Likewise.
1433 * locale/C-ctype.c: Likewise.
1434 * locale/C-identification.c: Likewise.
1435 * locale/C-measurement.c: Likewise.
1436 * locale/C-messages.c: Likewise.
1437 * locale/C-monetary.c: Likewise.
1438 * locale/C-name.c: Likewise.
1439 * locale/C-numeric.c: Likewise.
1440 * locale/C-paper.c: Likewise.
1441 * locale/C-telephone.c: Likewise.
1442 * locale/C-time.c: Likewise.
1443 * locale/findlocale.c: Likewise.
1444 * locale/global-locale.c: Likewise.
1445 * locale/loadarchive.c: Likewise.
1446 * locale/loadlocale.c: Likewise.
1447 * locale/nl_langinfo_l.c: Likewise.
1448 * locale/setlocale.c: Likewise.
1449 * locale/xlocale.c: Likewise.
1450 * locale/xlocale.h: Likewise.
1451 * stdio-common/vfscanf.c: Likewise.
1452 * stdlib/strfmon_l.c: Likewise.
1453 * stdlib/strtod_l.c: Likewise.
1454 * stdlib/strtol_l.c: Likewise.
1455 * string/strcoll_l.c: Likewise.
1456 * string/strxfrm_l.c: Likewise.
1457 * time/alt_digit.c: Likewise.
1458 * time/asctime.c: Likewise.
1459 * time/era.c: Likewise.
1460 * time/lc-time-cleanup.c: Likewise.
1461 * time/strftime_l.c: Likewise.
1462 * time/strptime_l.c: Likewise.
1463 * wcsmbs/wcsmbsload.c: Likewise.
1464 * wcsmbs/wcsmbsload.h: Likewise.
1466 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1467 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1469 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1470 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1471 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1472 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1473 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1474 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1476 2010-01-07 Roland McGrath <roland@redhat.com>
1478 * elf/elf.h (PN_XNUM): New macro.
1480 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1483 2010-01-06 Ulrich Drepper <drepper@redhat.com>
1485 * dirent/dirent.h: Fix typo in feature selection macro use.
1487 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
1490 * stdlib/tst-makecontext3.c: New file.
1491 * stdlib/Makefile (tests): Add new test.
1493 * stdlib/tst-setcontext.c (check_called): Fix a typo.
1495 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
1497 * configure.in: Enable multi-arch by default if the assembler
1498 supports gnu_indirect_function symbol type and the architecture
1501 2009-12-23 Ulrich Drepper <drepper@redhat.com>
1503 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1506 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1508 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1509 MACH_PORT_NULL when id != cttyid.
1511 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
1513 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1514 __mach_port_deallocate on rootdevid.
1516 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
1518 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1519 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1520 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1521 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1523 2009-12-21 Ulrich Drepper <drepper@redhat.com>
1526 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1527 Patch by Eric Blake <ebb9@byu.net>.
1529 2009-12-15 Ulrich Drepper <drepper@redhat.com>
1532 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1533 POLLWRBAND also for POSIX 2008.
1534 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1535 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1537 * include/link.h (struct link_map): Move l_used into its own word.
1538 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1540 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1543 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
1545 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1546 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
1547 check processor feature.
1548 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1549 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1550 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1551 (index_SSE2): Likewise.
1553 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
1555 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1556 if __ASSEMBLER__ is defined.
1557 (bit_SSSE3): New. Defined for __ASSEMBLER__.
1558 (bit_SSE4_2): Likewise.
1559 (index_SSSE3): Likewise.
1560 (index_SSE4_2): Likewise.
1561 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1562 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
1563 check processor feature.
1564 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1565 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1566 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1567 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1568 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1569 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1570 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1572 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1574 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1576 2009-12-01 Mike Frysinger <vapier@gentoo.org>
1578 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1580 2009-12-11 Ulrich Drepper <drepper@redhat.com>
1582 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1583 O_DSYNC to match 2.6.33+ kernels.
1584 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1585 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1586 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1587 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1588 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1589 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1591 2009-12-10 Ulrich Drepper <drepper@redhat.com>
1594 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1595 *herrnop before returning.
1596 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1598 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1599 TRYAGAIN errors separately.
1600 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1601 *name4_r after functions.
1603 2009-12-09 Ulrich Drepper <drepper@redhat.com>
1606 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1609 2009-11-05 Bruno Haible <bruno@clisp.org>
1612 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1613 argv argument as non-NULL.
1614 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1616 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
1618 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1620 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1621 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1623 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1625 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1627 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1628 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1629 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1631 2009-11-30 Ulrich Drepper <drepper@redhat.com>
1633 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1634 SCHED_RESET_ON_FORK.
1636 2009-11-26 Ulrich Drepper <drepper@redhat.com>
1638 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1639 only used on truly ancient kernel if configuration requires a more
1642 2009-11-24 Ulrich Drepper <drepper@redhat.com>
1645 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1646 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1648 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1649 pass it on to __ptsname_internal.
1650 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
1651 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1652 All the code from __ptsname_r but take additional parameter. Use that
1653 instead of pointer to local stat64 variable.
1654 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1656 * include/stdlib.h: Declare __ptsname_internal.
1658 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1660 * sysdeps/unix/sysv/linux/grantpt.c: New file.
1661 * login/programs/pt_chown.c (main): Don't print message on errors
1662 when doing real work.
1664 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1667 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
1668 irel relocations split out from...
1669 (__libc_csu_init): ...here.
1670 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1672 2009-11-23 Andreas Schwab <schwab@redhat.com>
1674 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1675 for timestamps also if __USE_XOPEN2K8.
1676 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1677 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1678 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1679 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1681 2009-11-22 Ulrich Drepper <drepper@redhat.com>
1683 * nscd/connections.c (restart): Try harder to re-exec.
1685 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1687 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
1688 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1689 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1690 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1691 some placeholders. Redirect ntp_gettime to ntp_gettimex.
1692 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1694 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1696 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1698 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
1701 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1702 than software pipeline. Properly recover from shorter read.
1704 2009-11-19 Ulrich Drepper <drepper@redhat.com>
1707 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1708 initialized before using it.
1709 (_IO_putwc_unlocked): Likewise.
1712 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1713 in cast to not throw away const-ness of parameters.
1714 (__CPU_EQUAL_S): Likewise.
1715 (__CPU_OP_S): Likewise.
1717 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1718 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
1719 this gratuitous change and we have to keep compatibility.
1720 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1721 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1722 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1723 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1724 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1725 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1727 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1729 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1730 of parameters of sync_file_range.
1731 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1732 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1733 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1734 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1735 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1736 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1738 2009-11-16 Jakub Jelinek <jakub@redhat.com>
1740 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1741 Implement using sync_file_range2 syscall if __NR_sync_file_range2
1743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1746 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
1748 * posix/bug-regex30.c: New file.
1749 * posix/Makefile: Add rules to build and run bug-regex30.
1750 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1751 character lead bytes when there is a range in a COMPLEX_BRACKET.
1752 Reported by Oleg Bylatov.
1754 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1757 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1758 * locale/tst-duplocale.c: New file.
1759 * locale/Makefile (tests): Add tst-duplocale.
1762 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1763 Patch by Bruno Haible <bruno@clisp.org>.
1764 * locale/tst-locname.c: New file.
1765 * locale/Makefile (tests): Add tst-locname.
1768 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1769 constants from recent kernels.
1770 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1771 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1772 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1773 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1774 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1775 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1777 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
1780 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1783 2009-11-09 Mike Frysinger <vapier@gentoo.org>
1785 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1786 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1787 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1789 2009-11-06 Mike Frysinger <vapier@gentoo.org>
1791 * posix/bug-regex29.c: Include stdio.h.
1793 2009-11-14 Ulrich Drepper <drepper@redhat.com>
1796 * Versions.def: Define GLIBC_2.12 for libc.
1797 * manual/errno.texi: Add ERFKILL entry.
1798 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1800 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1801 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1803 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1804 F_GETOWN_EX definitions according to corrected kernel definitions.
1805 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1806 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1807 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1808 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1809 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1810 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1812 2009-11-12 Ulrich Drepper <drepper@redhat.com>
1814 * version.h: Bump for 2.12 development.
1816 2009-11-10 Andreas Schwab <schwab@redhat.com>
1818 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1819 out of buffer space.
1820 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1821 map_v4v6_hostent running out of space.
1823 2009-11-10 Ulrich Drepper <drepper@redhat.com>
1825 * string/bits/string3.h (memset): If the second parameter is constant
1826 and zero there is likely no transposition.
1827 Patch by Caolan McNamara <caolanm@redhat.com.
1829 2009-11-04 Philippe De Muyter <phdm@macqel.be>
1831 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1832 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1834 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
1836 * malloc/memusagestat.c (main): Fix spelling in an error message.
1838 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
1840 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1841 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1843 2009-11-03 Andreas Schwab <schwab@redhat.com>
1845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1848 2009-11-03 Jakub Jelinek <jakub@redhat.com>
1850 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1851 relocate opd entry when resolving prelink conflicts.
1853 2009-11-04 Jakub Jelinek <jakub@redhat.com>
1855 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1856 when -D_FILE_OFFSET_BITS=64.
1858 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1859 of last two arguments when -D_FILE_OFFSET_BITS=64.
1860 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1861 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1862 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1863 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1864 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1865 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1867 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
1870 * sysdeps/generic/libgcc_s.h: New file.
1871 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1873 2009-11-01 Ulrich Drepper <drepper@redhat.com>
1875 * malloc/hooks.c (free_check): Restore locking and call _int_free
1878 2009-10-30 Ulrich Drepper <drepper@redhat.com>
1880 * version.h (VERSION): Bump for 2.11 release.
1881 * include/features.h (__GLIBC_MINOR__): Bump to 11.
1883 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1885 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1887 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1889 * stdlib/tst-strtoll.c (tests): Likewise.
1892 * time/strftime_l.c (__strftime_internal): Allow %OC.
1894 * misc/mkostemps.c: New file.
1895 * misc/mkostemps64.c: New file.
1897 2009-10-30 Andreas Schwab <schwab@redhat.com>
1899 * locale/programs/locale-spec.c: Include <error.h> and
1902 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1904 2009-10-28 Roland McGrath <roland@redhat.com>
1906 * Makefile (dist-prepare): New target.
1907 (tag-for-dist): Target removed.
1908 (glibc-%.tar): Pattern rule removed.
1909 (%.tar): New pattern rule, does simple use of git archive.
1910 (dist-version): Remove variable definition.
1911 (dist): Just depend on that. Add .tar.xz dependency.
1912 If dist-version variable not set on command line, depend on
1913 dist-prepare, re-invoke with dist-version set via git describe.
1915 * Makerules (%.xz): New pattern rule.
1917 2009-10-28 Alan Modra <amodra@bigpond.net.au>
1919 * elf/ifuncdep2.c: Include ifunc-sel.h.
1921 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1922 * elf/ifuncmain1.c (global): Delete.
1923 * elf/ifuncmain1vis.c: Likewise.
1924 * elf/ifuncmain2.c: Likewise.
1925 * elf/ifuncmain5.c: Likewise.
1926 * elf/ifuncmod3.c: Likewise.
1927 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1928 (foo_ifunc): Use ifunc_one.
1929 * elf/ifuncmain7.c: Likewise.
1930 * elf/ifuncmod1.c: Include ifunc-sel.h.
1931 (global): Define protected var.
1932 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1933 * elf/ifuncmod5.c: Likewise.
1934 * sysdeps/generic/elf/ifunc-sel.h: New file.
1935 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1937 2009-07-30 Alan Modra <amodra@bigpond.net.au>
1939 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1940 (R_PPC_REL16*): Correct comments.
1941 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1942 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1943 R_PPC64_REL16_HA): Define.
1944 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1945 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1946 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1947 Delete unused "reloc" param.
1948 (__process_machine_rela): Handle R_PPC_IRELATIVE.
1949 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1950 Delete "reloc" param.
1951 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1953 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1954 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1957 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
1960 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1961 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1962 UDP_ENCAP_L2TPINUDP.
1965 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1966 parameter, specifying length of prefix.
1967 * stdio-common/tempname.c: Likewise.
1968 * include/stdio.h: Adjust prototypes.
1969 * libio/oldtmpfile.c: Adjust caller.
1970 * misc/mkdtemp.c: Likewise.
1971 * misc/mkostemp.c: Likewise.
1972 * misc/mkostemp64.c: Likewise.
1973 * misc/mkstemp.c: Likewise.
1974 * misc/mkstemp64.c: Likewise.
1975 * misc/mktemp.c: Likewise.
1976 * stdio-common/tempnam.c: Likewise.
1977 * stdio-common/tmpfile.c: Likewise.
1978 * stdio-common/tmpnam.c: Likewise.
1979 * stdio-common/tmpnam_r.c: Likewise.
1980 * misc/mkstemps.c: New file.
1981 * misc/mkstemps64.c: New file.
1982 * stdlib/stdlib.h: Add prototypes.
1983 * misc/Makefile (routines): Add mkstemps and mkstemps64.
1984 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1986 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1988 * locale/iso-639.def: Add sml entry.
1991 * resolv/res_send.c (send_dg): Initialize resplen.
1994 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1995 definition to the kernel's.
1996 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1998 2009-08-18 Anders Johansson <ajohansson@novell.com>
2000 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
2001 offsets and record sizes in assert()s and response sending.
2002 * nscd/grpcache.c: Likewise.
2003 * nscd/hstcache.c: Likewise.
2004 * nscd/initgrcache.c: Likewise.
2005 * nscd/pwdcache.c: Likewise.
2007 2009-10-29 Ulrich Drepper <drepper@redhat.com>
2010 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
2011 /etc/hosts does not exist set errnop and herrnop appropriately.
2012 Patch by Steve Langasek <vorlon@debian.org>.
2015 * malloc/malloc.c (malloc_info): Fix typos in format strings.
2016 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
2019 * login/utmp_file.c (TIMEOUT): Increase to 10.
2022 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
2023 for file names in case the syscall is not available.
2024 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
2025 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
2026 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
2027 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
2028 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
2029 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
2030 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
2031 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
2032 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
2033 * sysdeps/unix/sysv/linux/openat.c: Likewise.
2034 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
2035 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
2036 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
2037 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
2038 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
2039 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
2040 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
2043 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
2044 creation filed, remove the request from the 'requests' list and signal
2045 the caller that the request is finished.
2048 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
2049 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
2052 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
2053 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
2056 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
2057 overflows the int return type.
2060 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
2061 have to compute maxsize_total, we have to update the variables, and
2062 the also_total handling must happen after the repair.
2065 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
2066 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
2068 2009-10-27 Andreas Schwab <schwab@redhat.com>
2070 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
2071 errno is always set when returning unsuccessfully.
2073 2009-10-29 Andreas Schwab <schwab@redhat.com>
2075 * malloc/memusage.c (update_data): Fix index wraparound handling
2076 so that buffer_cnt is actually reset.
2078 2009-10-29 Ulrich Drepper <drepper@redhat.com>
2081 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
2082 of the directory we look at into the static buffer if there is one
2083 at the start of the loop.
2086 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
2087 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
2090 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2091 __ASSUME_F_GETOWN_EX.
2092 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
2094 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2096 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
2098 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2099 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2100 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2101 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2102 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2103 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2106 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
2110 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
2111 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
2113 2009-10-24 Joseph Myers <joseph@codesourcery.com>
2115 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
2117 2009-10-27 Jakub Jelinek <jakub@redhat.com>
2120 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
2121 Reported by Ray Chason.
2123 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
2125 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2127 * sysdeps/x86_64/multiarch/strchr.S: New file.
2128 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
2129 * sysdeps/x86_64/multiarch/strrchr.S: New file.
2131 2009-10-21 Andreas Schwab <schwab@redhat.com>
2133 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
2135 2009-10-19 Andreas Schwab <schwab@redhat.com>
2137 * include/math.h: Add hidden protos for __exp/__expf/__expl.
2138 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
2139 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
2140 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
2141 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
2142 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
2143 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
2144 __ieee751_expl to handle overflow.
2146 2009-10-14 David S. Miller <davem@davemloft.net>
2148 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
2149 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
2151 2009-10-13 Andreas Schwab <schwab@redhat.com>
2153 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
2156 2009-10-08 Ulrich Drepper <drepper@redhat.com>
2159 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
2160 Patch in part by Steve Ward <planet36@gmail.com>.
2163 * stdlib/rand_r.c: Fix typo.
2165 * po/cs.po: Update from translation team.
2167 2009-10-06 Andreas Schwab <schwab@redhat.com>
2169 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
2170 returning if RTLD_NOLOAD.
2172 2009-10-06 Roland McGrath <roland@redhat.com>
2174 * sysdeps/x86_64/multiarch/strstr-c.c
2175 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
2177 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
2178 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
2180 * sysdeps/x86_64/multiarch/init-arch.h
2181 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
2182 (HAS_CPU_FEATURE): New macro.
2183 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
2184 * sysdeps/x86_64/multiarch/init-arch.c
2185 (__get_cpu_features): #undef it before definition.
2187 2009-10-05 Andreas Schwab <schwab@redhat.com>
2189 * locale/C-time.c: Revert week-1stday back to 19971130 and set
2190 first_weekday to 1 and first_workday to 2.
2192 2009-10-01 Ulrich Drepper <drepper@redhat.com>
2194 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
2196 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2197 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2198 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2199 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2200 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2201 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2203 2009-09-28 Andreas Schwab <schwab@redhat.com>
2205 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
2206 * stdio-common/vfprintf.c: Likewise.
2208 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2210 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
2211 (mkdirat): Call __directory_name_split_at instead of
2212 __directory_name_split.
2214 2009-09-28 Ulrich Drepper <drepper@redhat.com>
2216 * locale/programs/locale-spec.c (locale_special): If nothing matches
2217 fail with an appropriate message.
2219 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
2221 * configure.in: Exclude binutils 2.X. Support binutils 2.100
2224 2009-09-25 Andreas Schwab <schwab@redhat.com>
2226 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
2227 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
2229 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2231 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
2233 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
2235 * iconvdata/iso646.c (gconv_init): Correctly initialize the
2236 character size elements in step data.
2238 2009-09-20 Ulrich Drepper <drepper@redhat.com>
2240 * po/hu.po: Update from translation team.
2241 * po/vi.po: Likewise.
2243 2009-09-19 Roland McGrath <roland@redhat.com>
2245 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
2247 2009-09-15 Roland McGrath <roland@redhat.com>
2249 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
2250 * nptl/sysdeps/pthread/configure: Regenerated.
2251 * nptl/sysdeps/x86_64/configure: Regenerated.
2252 * sysdeps/unix/sysv/linux/configure: Regenerated.
2253 * sysdeps/x86_64/elf/configure: Regenerated.
2255 * Makefile (autoconf-it): Set execute bit only on top-level configure.
2257 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
2258 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
2259 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
2260 * configure: Regenerated.
2262 2009-09-09 Ulrich Drepper <drepper@redhat.com>
2264 * posix/getconf.c (main): Handle -- on command line.
2266 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
2268 * configure.in: Support binutils 2.100 and 3.0.
2270 2009-09-08 Jakub Jelinek <jakub@redhat.com>
2272 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
2273 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
2274 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
2275 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
2277 2009-09-07 Ulrich Drepper <drepper@redhat.com>
2279 * locale/programs/ld-collate.c (struct locale_collate_t): Add
2280 unnamed_section_defined field.
2281 (collate_read): Test and set unnamed_section_defined.
2283 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
2286 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
2288 * configure.in: Support binutils 2.20.
2290 2009-09-03 Ulrich Drepper <drepper@redhat.com>
2292 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
2293 __strstr_ia32): Add attribute_hidden.
2295 2009-09-01 Andreas Schwab <schwab@redhat.com>
2297 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
2298 parsing of group entry.
2300 2009-09-02 Andreas Schwab <schwab@redhat.com>
2302 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
2303 external buffer. Always discard readahead in internal buffer.
2304 * libio/Makefile (tests): Add bug-wsetpos.
2305 * libio/bug-wsetpos.c: New file.
2307 2009-09-02 Jakub Jelinek <jakub@redhat.com>
2309 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
2310 Add attribute_hidden.
2311 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
2312 __strcasestr_sse2): Likewise.
2313 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
2314 (__fma_fma): Make static.
2315 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
2316 (__fmaf_fma): Make static.
2318 2009-08-31 Andreas Schwab <schwab@redhat.com>
2320 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
2321 reformulate in-buffer optimisation check to match code in
2322 _IO_new_file_seekoff.
2324 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
2326 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
2327 to srwi in 32-bit memcpy for power6.
2329 2009-09-01 Andreas Schwab <schwab@redhat.com>
2331 * include/stdio.h: Declare hidden proto for fflush.
2332 * libio/iofflush.c: Add hidden weak alias for fflush.
2334 2009-09-01 Jakub Jelinek <jakub@redhat.com>
2336 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
2337 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
2339 2009-08-31 Andreas Schwab <schwab@redhat.com>
2341 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
2343 2009-08-31 Ulrich Drepper <drepper@redhat.com>
2346 * malloc/malloc.c: Add local assert definition to avoid problems with
2347 memory allocation in the real one.
2349 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
2351 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
2353 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
2354 turn off SSSE3 on Atom.
2356 2009-08-28 Ulrich Drepper <drepper@redhat.com>
2358 * stdlib/tst-strtol.c (tests): More tests.
2359 * stdlib/tst-strtoll.c (tests): Likewise.
2361 2009-08-26 Ulrich Drepper <drepper@redhat.com>
2363 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
2365 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
2367 2009-08-25 Ulrich Drepper <drepper@redhat.com>
2369 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
2370 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
2372 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
2374 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
2376 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
2378 2009-08-25 Joseph Myers <joseph@codesourcery.com>
2380 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
2382 2009-08-25 Ulrich Drepper <drepper@redhat.com>
2384 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
2385 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
2387 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
2389 * sysdeps/x86_64/fpu/s_signbit.S: New file.
2390 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
2392 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
2393 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
2395 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
2396 leftover YMM_SIZE definition.
2398 2009-08-24 Ulrich Drepper <drepper@redhat.com>
2400 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
2402 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
2403 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
2405 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2407 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2408 and SET_FLOAT_WORD definitions.
2410 2009-08-24 Roland McGrath <roland@redhat.com>
2412 * sysdeps/unix/syscall-template.S: New file.
2413 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2414 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2415 (compile-syscall): Pass mkdep and -g options as normal.
2416 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2417 (common-generated): Don't add them here.
2419 2009-08-24 Ulrich Drepper <drepper@redhat.com>
2421 * math/s_fdim.c: In case of overflows set errno.
2422 * math/s_fdimf.c: Likewise.
2423 * math/s_fdiml.c: Likewise.
2425 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2426 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2427 are using the inline optimizations.
2429 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2430 (__signbitf): Likewise.
2432 2009-08-23 Ulrich Drepper <drepper@redhat.com>
2434 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2436 * posix/Makefile (tests): Add bug-regex29.
2437 * posix/bug-regex29.c: New file.
2439 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2440 older POSIX versions are selected.
2442 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2444 * stdio-common/printf_fphex.c: Likewise.
2445 * stdio-common/tstdiomisc.c: Add more tests.
2447 * locale/locale.h: Include xlocale.h and the thread-local locale
2448 declarations for XPG7, not XPG6.
2450 2009-08-21 Andreas Schwab <schwab@redhat.com>
2452 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2453 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2454 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2456 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2457 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2459 2009-08-20 Roland McGrath <roland@redhat.com>
2461 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2462 Use l_addr instead of l_map_start (dli_fbase).
2463 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2464 address when there is no proximate symbol.
2465 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2468 2009-08-16 Ulrich Drepper <drepper@redhat.com>
2470 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2472 2009-08-14 Ulrich Drepper <drepper@redhat.com>
2474 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2475 Also handle SIGINT. In that case only do the cleanup and then
2476 re-raise the signal.
2477 (main): Install handler for SIGINT.
2479 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2481 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2484 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
2486 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2487 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2489 (tests): Add tst-audit6 tst-audit7.
2490 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2491 tst-auditmod7a tst-auditmod7b.
2492 ($(objpfx)tst-audit6): New.
2493 ($(objpfx)tst-audit6.out): Likewise.
2494 ($(objpfx)tst-audit7): Likewise.
2495 ($(objpfx)tst-audit7.out): Likewise.
2496 (tst-audit6-ENV): Likewise.
2497 (tst-audit7-ENV): Likewise.
2498 (CFLAGS-tst-auditmod6b.c): Likewise.
2499 (CFLAGS-tst-auditmod6c.c): Likewise.
2500 (CFLAGS-tst-auditmod7b.c): Likewise.
2501 * elf/tst-audit6.c: New file.
2502 * elf/tst-audit7.c: New file.
2503 * elf/tst-auditmod6a.c: New file.
2504 * elf/tst-auditmod6b.c: New file.
2505 * elf/tst-auditmod6c.c: New file.
2506 * elf/tst-auditmod7a.c: New file.
2507 * elf/tst-auditmod7b.c: New file.
2508 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2509 saving and restoring SSE/AVX registers to ...
2510 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2512 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
2514 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2515 only if SHARED is defined.
2516 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2518 2009-08-03 Jim Meyering <meyering@redhat.com>
2520 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2522 2009-08-08 Ulrich Drepper <drepper@redhat.com>
2524 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2525 section as the other functions for this architecture.
2526 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2528 2009-08-07 Ulrich Drepper <drepper@redhat.com>
2530 * sysdeps/x86_64/strcmp.S: Add support to compile with
2531 USE_SSSE3. In this case palignr is used.
2532 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2533 available but SSSE3 is, pick __str{,n}cmp_ssse3.
2534 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2535 Add strcmp-ssse3 and strncmp-ssse3.
2536 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2537 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2539 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2540 warning through fake initialization.
2542 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
2544 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2546 2009-08-07 Andreas Schwab <schwab@redhat.com>
2548 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2551 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
2553 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2554 EBX from EAX = 1. Handle EAX = 11.
2556 2009-08-07 Andreas Schwab <schwab@redhat.com>
2558 * Makefile (TAGS): Use separate sed -e expressions to avoid \
2561 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
2563 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2564 hidden IFUNC functions.
2565 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2567 * sysdeps/i386/i686/multiarch/strlen.S: New file.
2569 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2570 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2572 (CFLAGS-strcspn-c.c): Define.
2573 (CFLAGS-strpbrk-c.c): Define.
2574 (CFLAGS-strspn-c.c): Define.
2575 (CFLAGS-strstr.c): Define.
2576 (CFLAGS-strcasestr.c): Define.
2577 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2578 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2579 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2580 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2581 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2582 * sysdeps/i386/i686/multiarch/strspn.S: New file.
2583 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2584 * sysdeps/i386/i686/multiarch/strstr.c: New file.
2585 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2586 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2587 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2588 -16L instead of 0xfffffffffffffff0L.
2589 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2591 2009-08-02 Ulrich Drepper <drepper@redhat.com>
2593 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2595 2009-07-31 Ulrich Drepper <drepper@redhat.com>
2597 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2598 another rewrite. Much smaller and faster.
2599 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2601 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2602 ss_flags from the correct location.
2604 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
2606 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2607 * sysdeps/i386/i686/cacheinfo.c: New file.
2608 * sysdeps/i386/i686/multiarch/Makefile: New file.
2609 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2610 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2611 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2612 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2613 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2614 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2615 (__cpuid_count): New. Provide the default.
2616 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2617 (__x86_64_preferred_memory_instruction): Define only if
2618 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2619 (intel_check_word): Use __cpuid.
2620 (handle_intel): Likewise.
2621 (handle_amd): Likewise.
2622 (__cache_sysconf): Likewise.
2623 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
2624 (__cache_sysconf): Likewise.
2625 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
2626 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2627 (get_common_indeces): Use __cpuid.
2628 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
2629 if ENABLE_SSSE3_ON_ATOM is not defined.
2630 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2631 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2632 popcnt instead of popcntq.
2634 2009-07-31 Jakub Jelinek <jakub@redhat.com>
2636 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2638 2009-07-30 Ulrich Drepper <drepper@redhat.com>
2640 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2641 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
2642 which always causes a compile error.
2644 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2646 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
2648 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
2649 which always causes a compile error.
2651 * debug/Makefile (tests): Add tst-longjmp_chk2.
2652 * debug/tst-longjmp_chk2.c: New file.
2654 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
2655 Remove incorrect use of BP_SYM.
2656 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
2657 here now since it is more complex than just a simple check.
2659 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2660 we make no more progress.
2662 2009-07-29 Ulrich Drepper <drepper@redhat.com>
2664 * math/s_fma.c: Don't define alias if __fma is a macro.
2665 * math/s_fmaf.c: Likewise.
2666 * sysdeps/x86_64/multiarch/s_fma.c: New file.
2667 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2668 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2670 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2671 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2673 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2675 * include/libc-symbols.h (libm_ifunc): Define.
2676 * sysdeps/x86_64/multiarch/Versions: New file.
2678 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2680 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
2682 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2684 2009-07-29 Ulrich Drepper <drepper@redhat.com>
2686 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2687 call that registers used in calling conventions need to be preserved.
2688 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2689 to preserve register content if necessary.
2690 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2691 (_dl_x86_64_restore_sse): New function.
2692 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2693 is allowed to modify xmm/ymm registers.
2695 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
2696 application's perspective.
2697 * stdio-common/scanf17.c: Likewise.
2699 2009-07-28 Ulrich Drepper <drepper@redhat.com>
2701 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2703 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2705 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2706 two steps to catch bugs.
2708 2009-07-27 Ulrich Drepper <drepper@redhat.com>
2710 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
2711 determines which files are used in runtime lookups and only checks
2713 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
2715 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2716 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2717 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2720 * elf/dl-open.c: Move _dl_scope_free to...
2721 * elf/dl-scope.c: ...here. New file.
2722 * elf/Makefile (dl-routines): Add scope.
2724 * resolv/resolv.h (RES_USE_DNSSEC): Define.
2725 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2727 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2728 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2729 all the places we handled RES_USE_EDNS0 only before.
2730 Patch by Adam Tkac <atkac@redhat.com>.
2732 2009-07-27 Jakub Jelinek <jakub@redhat.com>
2734 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2735 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
2736 Update size when reallocating.
2738 2009-07-26 Ulrich Drepper <drepper@redhat.com>
2740 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
2741 functions used in ld.so modify xmm/ymm registers.
2742 * sysdeps/x86_64/Makefile: Hook new test up.
2743 * sysdeps/x86_64/rtld-memchr.c: New file.
2744 * sysdeps/x86_64/rtld-memcmp.c: New file.
2745 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2746 * sysdeps/x86_64/rtld-strchr.S: New file.
2747 * sysdeps/x86_64/rtld-strlen.S: New file.
2748 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2749 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2751 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
2753 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2755 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2763 (next_8_bytes): Likewise.
2764 (Byte0): Remove commented out codes.
2765 (unaligned_table): Align jump table at 8 bytes.
2766 Add _sse4_2 to all labels. Always include "../strcmp.S".
2767 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2768 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2769 * sysdeps/x86_64/strncmp.S: New file.
2771 2009-07-26 Ulrich Drepper <drepper@redhat.com>
2774 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2775 kernels, dropped when eventfd2 support was added.
2776 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2777 kernels, dropped when signalfd4 support was added.
2778 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2782 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2785 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2787 2009-07-25 Ulrich Drepper <drepper@redhat.com>
2789 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2790 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
2793 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2794 callback we must touch the status to avoid using stale value.
2796 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2799 2009-07-24 Ulrich Drepper <drepper@redhat.com>
2801 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2802 /lib/modules/* headers anymore. We have sane headers in the standard
2805 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2807 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2808 "etf3enh" and "highgprs" added.
2809 (_dl_s390_platforms): "z10" added.
2810 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2811 Increased for the new entries.
2812 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2813 HWCAP_S390_HIGH_GPRS added.
2815 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2816 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2817 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2818 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2819 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2821 2009-07-23 Ulrich Drepper <drepper@redhat.com>
2823 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2824 avoid additional cpuid instructions. Most of the information is
2827 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2829 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2831 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2832 SSSE3 bit for Atoms.
2833 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2836 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2837 structure before copying it to avoid warning.
2838 * posix/tst-rfc3484-2.c (do_test): Likewise.
2839 * posix/tst-rfc3484-3.c (do_test): Likewise.
2842 * include/unistd.h: Make header file suitable for C++ test cases.
2843 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2845 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2846 stack alignment in the exit code.
2848 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2849 potentially be zero.
2851 * elf/tst-unique1.c: Extend test to check for unloading DSO with
2852 unique symbol definition.
2853 Patch by Jakub Jelinek.
2854 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2855 make sure the object with the definition cannot be unloaded. Adjust
2857 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2858 the unique symbol hash table should not be const.
2860 2009-07-21 Ulrich Drepper <drepper@redhat.com>
2862 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
2863 unnecesary variables. Comment fixes.
2865 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2867 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2868 Use NONASCII_CASE information provided by the locale to determine
2869 whether optimized string load function can be used. Minor cleanups.
2871 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
2873 * string/strcasestr.c (STRCASESTR): New macro.
2874 (__strcasestr): Renamed to ..
2875 (STRCASESTR): ...this.
2876 * string/strstr.c (STRSTR): New macro.
2877 (strstr): Renamed to ..
2879 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2880 strstr-c strcasestr-c
2881 (CFLAGS-strstr.c): New.
2882 (CFLAGS-strcasestr.c): Likewise.
2883 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2884 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2885 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2886 * sysdeps/x86_64/multiarch/strstr.c: New file.
2888 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2890 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2891 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2892 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2893 _NL_CTYPE_NONASCII_CASE.
2894 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2896 (ctype_finish): Check whether there are any 8-bit characters outside
2897 the range ASCII has or whether the mapping isn't the same as for
2898 ASCII (±0x20). Set nonascii_case appropriately.
2899 (ctype_output): Add output handler for nonascii_case.
2901 2009-07-17 Ulrich Drepper <drepper@redhat.com>
2903 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2904 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2906 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2909 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2910 0xffff in the EDNS0 record.
2912 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2914 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2915 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2916 is written before the list head update.
2917 Patch by Andreas Schwab <aschwab@redhat.com>.
2919 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2920 Jakub Jelinek <jakub@redhat.com>
2922 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2923 corruption thread-safe.
2925 2009-07-13 Jakub Jelinek <jakub@redhat.com>
2927 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2928 overrides atomic_compare_and_exchange_val_rel, define to
2929 atomic_compare_and_exchange_val_rel by default, otherwise default
2930 to catomic_compare_and_exchange_val_acq.
2931 (catomic_compare_and_exchange_bool_rel): If arch overrides
2932 atomic_compare_and_exchange_bool_rel, define to
2933 atomic_compare_and_exchange_bool_rel by default.
2934 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2935 Use catomic_compare_and_exchange_val_rel instead of
2936 catomic_compare_and_exchange_val_acq.
2938 2009-07-16 Ulrich Drepper <drepper@redhat.com>
2940 * sysdeps/generic/ldsodefs.h: Add prototype for
2941 _dl_higher_prime_number.
2942 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2944 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2945 restoring of ymm registers a bit.
2947 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
2949 * sysdeps/x86_64/memcmp.S: New file.
2951 2009-07-15 Ulrich Drepper <drepper@redhat.com>
2953 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2954 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
2955 pointers in writable memory.
2957 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
2959 * config.h.in: Add HAVE_AVX_SUPPORT entry.
2960 * config.make.in: Add config-cflags-avx entry.
2961 * configure.in: Substitute libc_cv_cc_avx.
2962 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2963 * elf/tst-audit4.c: New file.
2964 * elf/tst-audit5.c: New file.
2965 * elf/tst-auditmod4a.c: New file.
2966 * elf/tst-auditmod4b.c: New file.
2967 * elf/tst-auditmod5a.c: New file.
2968 * elf/tst-auditmod5b.c: New file.
2969 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2971 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2972 (La_x86_64_vector): Likewise.
2973 (La_x86_64_regs): Append lr_vector.
2974 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2975 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2976 saving and restoring SSE registers to ...
2977 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2978 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2980 (_dl_runtime_profile): Use LR_SIZE to allocate space for
2981 La_x86_64_regs. Allocate extra space and jump to memory at
2982 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2983 (save_and_restore_vector_sse): New.
2984 (save_and_restore_vector_avx): Likewise.
2985 (check_avx): Likewise.
2986 (save_and_restore_vector): Likewise.
2987 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2989 * sysdeps/x86_64/link-defines.sym: New file.
2991 2009-07-10 Ulrich Drepper <drepper@redhat.com>
2993 * elf/do-lookup.h: Removed after folding content into...
2994 * elf/dl-lookup.c: ...here.
2996 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2998 2009-07-09 Ulrich Drepper <drepper@redhat.com>
3000 * configure.in: Check for gnu_unique_symbol symbol type.
3001 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
3002 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
3003 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
3004 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
3006 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
3007 unique symbol table.
3008 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
3009 for first namespace.
3010 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
3011 unique symbol hash table.
3012 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
3013 * elf/tst-unique1.c: New file.
3014 * elf/tst-unique1mod1.c: New file.
3015 * elf/tst-unique1mod2.c: New file.
3016 * elf/tst-unique2.c: New file.
3017 * elf/tst-unique2mod1.c: New file.
3018 * elf/tst-unique2mod2.c: New file.
3020 2009-07-07 Ulrich Drepper <drepper@redhat.com>
3022 * elf/elf.h (STB_GNU_UNIQUE): Define.
3024 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
3026 * include/inline-hashtab.h: ...here.
3027 (htab_expand): Adjust for renamed function. Correct memory handling.
3029 2009-07-06 Ulrich Drepper <drepper@redhat.com>
3031 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
3033 2009-07-03 Andreas Schwab <aschwab@redhat.com>
3035 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
3036 (PPC_FEATURE_HAS_VSX): Likewise.
3038 2009-07-03 Ulrich Drepper <drepper@redhat.com>
3040 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
3041 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
3043 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
3044 aligned to 16 byte boundaries.
3045 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
3046 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
3047 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
3049 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
3051 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
3052 * config.make.in (config-cflags-sse4): New variable.
3053 * configure.in: Substitute libc_cv_cc_sse4.
3054 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
3056 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3057 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
3058 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
3059 * sysdeps/x86_64/multiarch/strcspn.S: New file.
3060 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
3061 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
3062 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
3063 * sysdeps/x86_64/multiarch/strspn.S: New file.
3065 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
3067 * elf/Makefile (distribute): Remove tst-audit.sh. Add
3068 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
3069 (tests): Add tst-audit3 for x86_64.
3070 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
3071 ($(objpfx)tst-audit3): Define.
3072 ($(objpfx)tst-audit3.out): Define.
3073 (tst-audit3-ENV): Define.
3074 * elf/tst-audit3.c: New file.
3075 * elf/tst-auditmod3a.c: New file.
3076 * elf/tst-auditmod3b.c: New file.
3077 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
3080 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
3081 (__stpncpy): Renamed to ...
3083 (stpncpy): Create alias only if STPNCPY is not defined.
3084 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
3086 (strncpy): Renamed to ...
3088 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3089 stpncpy-c strncpy-c for string.
3090 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
3091 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
3092 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
3093 * sysdeps/x86_64/multiarch/strcpy.S: New file.
3094 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
3095 * sysdeps/x86_64/multiarch/strncpy.S: New file.
3097 2009-07-02 Ulrich Drepper <drepper@redhat.com>
3099 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
3100 adding to fast bin list.
3102 2009-07-01 Ulrich Drepper <drepper@redhat.com>
3104 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
3105 inet_makeaddr. This worked only with class-based networks.
3106 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
3109 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
3110 recognize all types.
3111 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
3112 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
3113 be in host byte order.
3115 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
3117 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
3118 (MODEL_OFFSET): Define.
3119 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
3121 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
3122 out common code into new function get_common_indeces. Determine
3123 extended family and model for Intel processors.
3125 2009-06-26 Ulrich Drepper <drepper@redhat.com>
3127 * resolv/resolv.h: Define RES_SNGLKUPREOP.
3128 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
3130 * resolv/res_send.c (reopen): New function. Broken out of...
3131 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
3132 fallback mechanism. If single-request fails switch to
3133 single-request-reopen mode which opens a new socket for the second
3136 2009-06-25 Andreas Schwab <aschwab@redhat.com>
3138 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
3141 2009-06-24 Andreas Schwab <aschwab@redhat.com>
3143 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
3144 for saved registers.
3145 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3146 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3147 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3149 2009-06-23 Andreas Schwab <aschwab@redhat.com>
3151 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
3153 2009-06-22 Ulrich Drepper <drepper@redhat.com>
3155 * po/id.po: Update from translation team.
3157 * po/bg.po: Update from translation team.
3159 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
3161 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
3163 (strncmp): Renamed to STRNCMP.
3164 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3165 strncmp-c for string.
3166 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
3167 * sysdeps/x86_64/multiarch/strcmp.S: New file.
3168 * sysdeps/x86_64/multiarch/strncmp.S: New file.
3169 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
3171 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
3173 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
3174 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
3175 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
3176 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
3177 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
3179 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
3180 ifuncmain7static, and ifuncmain7picstatic.
3181 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
3182 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
3183 $(objpfx)ifuncmain7pie.out.
3184 (modules-names): Add ifuncmod5 ifuncmod6
3185 (ifuncmod5.so-no-z-defs): Define.
3186 (ifuncmod6.so-no-z-defs): Define.
3187 (CFLAGS-ifuncmain5pic.c): Define.
3188 (CFLAGS-ifuncmain5picstatic.c): Define.
3189 (CFLAGS-ifuncmain5staticpic.c): Define.
3190 (CFLAGS-ifuncdep5pic.c): Define.
3191 (CFLAGS-ifuncmain7pic.c): Define.
3192 (CFLAGS-ifuncmain7picstatic.c): Define.
3193 (CFLAGS-ifuncmain1staticpie.c): Define.
3194 (CFLAGS-ifuncmain5pie.c): Define.
3195 (CFLAGS-ifuncmain6pie.c): Define.
3196 (CFLAGS-ifuncmain7pie.c): Define.
3197 ($(objpfx)ifuncmain1staticpie.out): Define.
3198 ($(objpfx)ifuncmain1staticpie): Define.
3199 ($(objpfx)ifuncmain5pie.out): Define.
3200 ($(objpfx)ifuncmain5pie): Define.
3201 ($(objpfx)ifuncmain6pie.out): Define.
3202 ($(objpfx)ifuncmain6pie): Define.
3203 ($(objpfx)ifuncmain5): Define.
3204 ($(objpfx)ifuncmain5pic): Define.
3205 ($(objpfx)ifuncmain5static): Define.
3206 ($(objpfx)ifuncmain5staticpic): Define.
3207 ($(objpfx)ifuncmain5picstatic): Define.
3208 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
3209 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
3211 * elf/b/elf/ifuncmain1staticpie.c: New file.
3212 * elf/ifuncdep5.c: New file.
3213 * elf/ifuncdep5pic.c: New file.
3214 * elf/ifuncmain5.c: New file.
3215 * elf/ifuncmain5pic.c: New file.
3216 * elf/ifuncmain5picstatic.c: New file.
3217 * elf/ifuncmain5pie.c: New file.
3218 * elf/ifuncmain5static.c: New file.
3219 * elf/ifuncmain5staticpic.c: New file.
3220 * elf/ifuncmain6pie.c: New file.
3221 * elf/ifuncmain7.c: New file.
3222 * elf/ifuncmain7pic.c: New file.
3223 * elf/ifuncmain7picstatic.c: New file.
3224 * elf/ifuncmain7pie.c: New file.
3225 * elf/ifuncmain7static.c: New file.
3226 * elf/ifuncmod5.c: New file.
3227 * elf/ifuncmod6.c: New file.
3229 2009-06-20 Ulrich Drepper <drepper@redhat.com>
3232 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
3233 (nss_endgrent): New variable.
3234 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
3235 fields. Change type of files to bool and adjust all users.
3236 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
3237 (internal_endgrent): Call nss_endgrent if necessary.
3238 (add_group): New function. Broken out of...
3239 (check_and_add_group): ...here.
3240 (getgrent_next_nss): Remove test that any callback is available.
3241 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
3242 callback. If there is no blacklist we can trust the results returned
3243 by the initgroups_dyn callback. In case there is a callback and we
3244 find a group entry for the group ID but it doesn't contain the
3245 correct member, switch to the slow mode and use getgrent_r.
3246 (internal_getgrent_r): When we see a +: entry, determine whether
3247 there is any callback and which we can use the initgroups_dyn
3250 2009-06-18 Ulrich Drepper <drepper@redhat.com>
3252 * malloc/malloc.c (_int_malloc): Add some consistency checks.
3253 (_int_free): Likewise.
3255 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
3257 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3258 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
3259 and ARPHRD_IEEE802154_PHY.
3261 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
3262 relative to generic Linux version.
3264 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
3266 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
3267 ($(objpfx)ifuncmain1vispie): Likewise.
3269 2009-06-16 Ulrich Drepper <drepper@redhat.com>
3271 * login/Makefile: Build pt_chown as PIE.
3273 2009-06-15 Andreas Schwab <aschwab@redhat.com>
3275 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
3277 * elf/sln.c (usage): Likewise.
3278 * malloc/memusage.sh (do_help): Likewise.
3279 * nss/getent.c (more_help): Likewise.
3280 * posix/getconf.c (main): Likewise.
3281 * sunrpc/rpcinfo.c (usage): Likewise.
3282 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3284 2009-06-16 Ulrich Drepper <drepper@redhat.com>
3286 * login/programs/pt_chown.c: Use libcap to drop privileges other than
3288 * login/Makefile: If necessary link pt_chown with -lcap.
3289 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
3290 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
3292 2009-06-16 Jakub Jelinek <jakub@redhat.com>
3294 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
3296 * string/test-memchr.c (do_random_tests): Test very large lengths
3299 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
3301 * Makeconfig (+link-pie): Define.
3302 (+prectorS): Define.
3303 (+postctorS): Define.
3304 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
3305 * nscd/Makefile ($(objpfx)nscd): Likewise.
3307 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
3310 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
3312 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3314 2009-06-16 Ulrich Drepper <drepper@redhat.com>
3316 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
3318 * sysdeps/unix/grantpt.c: ...here.
3320 2009-06-15 Ulrich Drepper <drepper@redhat.com>
3322 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
3323 chmod if it is necessary.
3326 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
3327 when the slave device is in devpts or devfs.
3330 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
3333 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
3334 of nd_opt_home_agent_info_preference to uint16_t.
3335 Patch by Arnaud Ebalard <arno@natisbad.org>.
3338 * nss/getent.c: Add support for printing gshadow data.
3341 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
3342 not just the currently used one and those which follow.
3343 Patch by Joe Landers <jlanders@vmware.com>.
3346 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
3347 * libio/Makefile: Run tst-fgetwc with necessary envvar.
3348 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
3351 * stdlib/abort.c: Define variable __abort_msg.
3352 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
3353 * include/stdlib.h: Declare __abort_msg.
3354 * assert/assert-perr.c: Don't free buffer for message immediately.
3355 Store atomically in __abort_msg and free old buffer if necessary.
3356 * assert/assert.c: Likewise.
3357 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
3358 store pointer in __abort_msg, and possibly free old string.
3359 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
3361 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
3364 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
3365 handle leap seconds if they are available.
3366 Patch by Akinori Hattori <hattya@gentoo.org>.
3368 * timezone/tzselect.ksh: Update from tzcode2009i.
3369 * timezone/zdump.c: Likewise.
3370 * timezone/zic.c: Likewise.
3372 * timezone/africa: Update from tzdata2009i.
3373 * timezone/antarctica: Likewise.
3374 * timezone/asia: Likewise.
3375 * timezone/australasia: Likewise.
3376 * timezone/backward: Likewise.
3377 * timezone/etcetera: Likewise.
3378 * timezone/europe: Likewise.
3379 * timezone/factory: Likewise.
3380 * timezone/iso3166.tab: Likewise.
3381 * timezone/leapseconds: Likewise.
3382 * timezone/northamerica: Likewise.
3383 * timezone/pacificnew: Likewise.
3384 * timezone/solar87: Likewise.
3385 * timezone/solar88: Likewise.
3386 * timezone/solar89: Likewise.
3387 * timezone/southamerica: Likewise.
3388 * timezone/systemv: Likewise.
3389 * timezone/yearistype: Likewise.
3390 * timezone/zone.tab: Likewise.
3392 2009-06-15 Jakub Jelinek <jakub@redhat.com>
3394 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
3395 STT_GNU_IFUNC symbol or in 8 into type_class.
3397 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
3398 instead of Elf64_Addr.
3400 2009-06-14 Ulrich Drepper <drepper@redhat.com>
3402 * po/sv.po: Update from translation team.
3405 * misc/sys/select.h (__NFDBITS): Expression should have type int.
3406 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3407 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
3410 2009-06-12 Ulrich Drepper <drepper@redhat.com>
3412 * Versions.def: Add GLIBC_2.11 for libpthread.
3414 2009-06-11 Ulrich Drepper <drepper@redhat.com>
3416 * resolv/res_send.c (send_dg): Remember we switched to
3417 single-request mode.
3419 2009-06-09 Ulrich Drepper <drepper@redhat.com>
3421 * dlfcn/dlfcn.h: Remove comma at end of enum.
3422 Patch by J.H.M. Dassen <rdassen@redhat.com>.
3424 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3425 parsing mode string.
3427 2009-06-05 Ulrich Drepper <drepper@redhat.com>
3429 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3431 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3433 * sysdeps/x86_64/multiarch/strlen.S: New file.
3434 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3435 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3436 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3439 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3442 2009-06-04 Ulrich Drepper <drepper@redhat.com>
3444 * sysdeps/x86_64/strlen.S: Minor optimizations.
3446 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
3448 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3449 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3450 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3451 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3452 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3453 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3454 ifuncmain3.c, ifuncmod3.c,.
3455 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3456 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3457 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3458 ifuncmain4picstatic.
3459 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3460 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3461 ifuncmain3, ifuncmain4.
3462 (tests): Depend on $(objpfx)ifuncmain1pie.out and
3463 $(objpfx)ifuncmain1vispie.out.
3464 (modules-names): Add ifuncmod1 ifuncmod3.
3465 (generated): Add ifuncmain1pie ifuncmain1pie.out
3466 ifuncmain1vispie ifuncmain1vispie.out.
3467 Define rules to build and run the tests.
3468 * elf/ifuncdep1.c: New file.
3469 * elf/ifuncdep1pic.c: New file.
3470 * elf/ifuncdep2.c: New file.
3471 * elf/ifuncdep2pic.c: New file.
3472 * elf/ifuncmain1.c: New file.
3473 * elf/ifuncmain1pic.c: New file.
3474 * elf/ifuncmain1picstatic.c: New file.
3475 * elf/ifuncmain1pie.c: New file.
3476 * elf/ifuncmain1static.c: New file.
3477 * elf/ifuncmain1staticpic.c: New file.
3478 * elf/ifuncmain1vis.c: New file..
3479 * elf/ifuncmain1vispic.c: New file..
3480 * elf/ifuncmain1vispie.c: New file.
3481 * elf/ifuncmain2.c: New file.
3482 * elf/ifuncmain2pic.c: New file.
3483 * elf/ifuncmain2picstatic.c: New file.
3484 * elf/ifuncmain2static.c: New file.
3485 * elf/ifuncmain3.c: New file.
3486 * elf/ifuncmain4.c: New file.
3487 * elf/ifuncmain4picstatic.c: New file.
3488 * elf/ifuncmain4static.c: New file.
3489 * elf/ifuncmod1.c: New file.
3490 * elf/ifuncmod3.c: New file.
3492 2009-06-03 Ulrich Drepper <drepper@redhat.com>
3494 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3496 2009-06-02 Ulrich Drepper <drepper@redhat.com>
3499 * posix/Makefile (routines): Add execvpe.
3500 * posix/Versions: Export execvpe for GLIBC_2.11.
3501 * posix/execvp.c: Now only a wrapper. Move code to...
3502 * posix/execvpe.c: ...here. New file.
3503 * posix/unistd.h: Declare execvpe.
3505 2009-06-01 Ulrich Drepper <drepper@redhat.com>
3507 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3508 for STT_GNU_IFUNC handling for efficiency.
3509 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3511 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3513 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3515 2009-05-31 Ulrich Drepper <drepper@redhat.com>
3517 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3520 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
3522 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3524 (__rela_iplt_start): New declaration.
3525 (__rela_iplt_end): Likewise.
3526 (__rel_iplt_start): Likewise.
3527 (__rel_iplt_end): Likewise.
3528 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3529 * elf/elf.h (R_386_IRELATIVE): New macro.
3530 (R_X86_64_IRELATIVE): New macro.
3531 (R_386_NUM): Updated.
3532 (R_X86_64_NUM): Likewise.
3533 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3534 (libc_ifunc_hidden_def): New macro.
3535 * sysdeps/generic/dl-irel.h: New file.
3536 * sysdeps/i386/dl-irel.h: New file.
3537 * sysdeps/x86_64/dl-irel.h: New file.
3538 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3539 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3540 Handle R_386_IRELATIVE.
3541 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3542 (elf_machine_lazy_rela): Likewise.
3543 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3545 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3547 2009-05-31 Ulrich Drepper <drepper@redhat.com>
3549 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3550 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
3551 are no differences. If an architecture has bits in CPUID index 1
3552 meaning different things the values for the COMMON_CPUID_INDEX_1
3553 index must not be set.
3554 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3555 (HAS_POPCOUNT): ...this. New macro.
3556 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3557 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
3558 to set the value for Intel and AMD architectures.
3559 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3560 INTEL_CPUID_INDEX_1.
3561 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3564 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
3566 * configure.in: Move AC_CANONICAL_HOST before first use of $host
3569 2009-05-29 Jakub Jelinek <jakub@redhat.com>
3571 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3572 (__expm1l): Set errno to ERANGE on overflow.
3573 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3574 (__tanl): Set errno to EDOM for ±Inf.
3575 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3576 (__cosl): Set errno to EDOM for ±Inf.
3577 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3578 (__sinl): Set errno to EDOM for ±Inf.
3580 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3582 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3583 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3584 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3586 2009-05-29 Ulrich Drepper <drepper@redhat.com>
3588 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
3590 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3592 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
3594 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
3595 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3596 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3597 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3599 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3600 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3601 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3603 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3604 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3606 2009-05-22 Jakub Jelinek <jakub@redhat.com>
3608 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3609 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3610 is, either do nothing at all if __ASSUME_ACCEPT4, or
3611 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3612 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3613 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3615 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3616 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3617 internal_accept4 in socket directory.
3619 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
3621 * sysdeps/ia64/configure.in: New file.
3623 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
3626 * sysdeps/ia64/memchr.S: Use speculative load.
3628 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3629 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3632 * sysdeps/i386/__longjmp.S: Add .text.
3633 * sysdeps/x86_64/__longjmp.S: Likewise.
3635 2009-05-21 Ulrich Drepper <drepper@redhat.com>
3637 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3638 __ASSUME_ACCEPT4 for IA-64.
3640 2009-05-21 Jakub Jelinek <jakub@redhat.com>
3642 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3644 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3645 (SOCKOP_accept4): Define.
3647 2009-05-20 Ulrich Drepper <drepper@redhat.com>
3649 Sun approved the change of the license.
3650 * sunrpc/auth_des.c: Replace license text.
3651 * sunrpc/auth_none.c: Likewise.
3652 * sunrpc/auth_unix.c: Likewise.
3653 * sunrpc/authdes_prot.c: Likewise.
3654 * sunrpc/authuxprot.c: Likewise.
3655 * sunrpc/bindrsvprt.c: Likewise.
3656 * sunrpc/clnt_gen.c: Likewise.
3657 * sunrpc/clnt_perr.c: Likewise.
3658 * sunrpc/clnt_raw.c: Likewise.
3659 * sunrpc/clnt_simp.c: Likewise.
3660 * sunrpc/clnt_tcp.c: Likewise.
3661 * sunrpc/clnt_udp.c: Likewise.
3662 * sunrpc/clnt_unix.c: Likewise.
3663 * sunrpc/des_crypt.c: Likewise.
3664 * sunrpc/des_soft.c: Likewise.
3665 * sunrpc/get_myaddr.c: Likewise.
3666 * sunrpc/getrpcport.c: Likewise.
3667 * sunrpc/key_call.c: Likewise.
3668 * sunrpc/key_prot.c: Likewise.
3669 * sunrpc/openchild.c: Likewise.
3670 * sunrpc/pm_getmaps.c: Likewise.
3671 * sunrpc/pm_getport.c: Likewise.
3672 * sunrpc/pmap_clnt.c: Likewise.
3673 * sunrpc/pmap_prot.c: Likewise.
3674 * sunrpc/pmap_prot2.c: Likewise.
3675 * sunrpc/pmap_rmt.c: Likewise.
3676 * sunrpc/rpc/auth.h: Likewise.
3677 * sunrpc/rpc/auth_unix.h: Likewise.
3678 * sunrpc/rpc/clnt.h: Likewise.
3679 * sunrpc/rpc/des_crypt.h: Likewise.
3680 * sunrpc/rpc/key_prot.h: Likewise.
3681 * sunrpc/rpc/netdb.h: Likewise.
3682 * sunrpc/rpc/pmap_clnt.h: Likewise.
3683 * sunrpc/rpc/pmap_prot.h: Likewise.
3684 * sunrpc/rpc/pmap_rmt.h: Likewise.
3685 * sunrpc/rpc/rpc.h: Likewise.
3686 * sunrpc/rpc/rpc_des.h: Likewise.
3687 * sunrpc/rpc/rpc_msg.h: Likewise.
3688 * sunrpc/rpc/svc.h: Likewise.
3689 * sunrpc/rpc/svc_auth.h: Likewise.
3690 * sunrpc/rpc/types.h: Likewise.
3691 * sunrpc/rpc/xdr.h: Likewise.
3692 * sunrpc/rpc_clntout.c: Likewise.
3693 * sunrpc/rpc_cmsg.c: Likewise.
3694 * sunrpc/rpc_common.c: Likewise.
3695 * sunrpc/rpc_cout.c: Likewise.
3696 * sunrpc/rpc_dtable.c: Likewise.
3697 * sunrpc/rpc_hout.c: Likewise.
3698 * sunrpc/rpc_main.c: Likewise.
3699 * sunrpc/rpc_parse.c: Likewise.
3700 * sunrpc/rpc_parse.h: Likewise.
3701 * sunrpc/rpc_prot.c: Likewise.
3702 * sunrpc/rpc_sample.c: Likewise.
3703 * sunrpc/rpc_scan.c: Likewise.
3704 * sunrpc/rpc_scan.h: Likewise.
3705 * sunrpc/rpc_svcout.c: Likewise.
3706 * sunrpc/rpc_tblout.c: Likewise.
3707 * sunrpc/rpc_util.c: Likewise.
3708 * sunrpc/rpc_util.h: Likewise.
3709 * sunrpc/rpcinfo.c: Likewise.
3710 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3711 * sunrpc/rpcsvc/key_prot.x: Likewise.
3712 * sunrpc/rpcsvc/klm_prot.x: Likewise.
3713 * sunrpc/rpcsvc/mount.x: Likewise.
3714 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3715 * sunrpc/rpcsvc/rex.x: Likewise.
3716 * sunrpc/rpcsvc/rstat.x: Likewise.
3717 * sunrpc/rpcsvc/rusers.x: Likewise.
3718 * sunrpc/rpcsvc/sm_inter.x: Likewise.
3719 * sunrpc/rpcsvc/spray.x: Likewise.
3720 * sunrpc/rpcsvc/yppasswd.x: Likewise.
3721 * sunrpc/rtime.c: Likewise.
3722 * sunrpc/svc.c: Likewise.
3723 * sunrpc/svc_auth.c: Likewise.
3724 * sunrpc/svc_authux.c: Likewise.
3725 * sunrpc/svc_raw.c: Likewise.
3726 * sunrpc/svc_run.c: Likewise.
3727 * sunrpc/svc_simple.c: Likewise.
3728 * sunrpc/svc_tcp.c: Likewise.
3729 * sunrpc/svc_udp.c: Likewise.
3730 * sunrpc/svc_unix.c: Likewise.
3731 * sunrpc/svcauth_des.c: Likewise.
3732 * sunrpc/xcrypt.c: Likewise.
3733 * sunrpc/xdr.c: Likewise.
3734 * sunrpc/xdr_array.c: Likewise.
3735 * sunrpc/xdr_float.c: Likewise.
3736 * sunrpc/xdr_mem.c: Likewise.
3737 * sunrpc/xdr_rec.c: Likewise.
3738 * sunrpc/xdr_ref.c: Likewise.
3739 * sunrpc/xdr_sizeof.c: Likewise.
3740 * sunrpc/xdr_stdio.c: Likewise.
3742 * po/da.po: Update from translation team.
3744 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3746 * sysdeps/sh/____longjmp_chk.S: New file.
3747 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3748 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3750 2009-05-18 Jakub Jelinek <jakub@redhat.com>
3751 Ulrich Drepper <drepper@redhat.com>
3753 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3754 (__nscd_cache_search): Assume each entry in the
3755 hash chain needs one hashentry and half of datahead. Use
3756 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3758 2009-05-16 Ulrich Drepper <drepper@redhat.com>
3760 * posix/sys/wait.h: Fix typos. Pretty printing.
3761 * stdlib/stdlib.h: Likewise. Correct comments.
3764 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3766 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3769 2009-05-15 Ulrich Drepper <drepper@redhat.com>
3771 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3772 Use it if we absolutely cannot reach any more correct list elements
3773 because that many do not fit into the currently mapped database.
3775 2009-05-14 Jakub Jelinek <jakub@redhat.com>
3777 * nscd/nscd_helper.c: Include stddef.h.
3778 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
3779 in a couple of places. Return NULL if trail is not less than
3780 datasize, don't consider dataheads with length smaller than
3781 offsetof (struct datahead, data) + datalen.
3782 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3783 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3784 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3785 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3786 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3787 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3788 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3790 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3792 (fallocate64): ... to this.
3793 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3795 (fallocate64): ... to this.
3796 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3797 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3798 fallocate64@@GLIBC_2.10.
3799 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3800 fallocate64@@GLIBC_2.11.
3801 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3803 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3804 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3806 * nscd/selinux.c (nscd_avc_destroy): Removed.
3807 * nscd/selinux.h (nscd_avc_destroy): Likewise.
3808 * nscd/nscd.c (termination_handler): Don't call
3811 2009-05-12 Jakub Jelinek <jakub@redhat.com>
3813 * include/atomic.h: Formatting.
3814 (catomic_compare_and_exchange_val_acq): Don't define if already
3815 defined by bits/atomic.h.
3817 2009-05-15 Ulrich Drepper <drepper@redhat.com>
3819 * math/libm-test.inc (expm1_test): Add test for range error.
3821 * Versions.def: Add GLIBC_2.11 for libc.
3822 * debug/Makefile (routines): Add longjmp_chk.
3823 Add rules to build and run tst-longjmp_chk.
3824 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3825 * debug/longjmp_chk.c: New file.
3826 * debug/tst-longjmp_chk.c: New file.
3827 * include/bits/setjmp2.: New file.
3828 * include/stdio.h: Mark __fortify_fail as internal_function.
3829 * setjmp/Makefile (headers): Add bits/setjmp2.h.
3830 * setjmp/bits/setjmp2.h: New file.
3831 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3833 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3835 * sysdeps/i386/____longjmp_chk.S: New file.
3836 * sysdeps/x86_64/____longjmp_chk.S: New file.
3837 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3838 * sysdeps/x86_64/__longjmp.S: Likewise.
3840 * version.h: Bump for 2.11 development.
3842 * elf/check-execstack.c: New file.
3843 * elf/Makefile: Add rules to build and run check-execstack.
3845 2009-05-10 Ulrich Drepper <drepper@redhat.com>
3847 * version.h (VERSION): Bump to 2.10.1.
3849 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3850 compatibility functions.
3851 * nss/getXXent_r.c: Likewise.
3852 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3853 * gshadow/getsgnam_r.c: Likewise.
3854 * gshadow/Version: Remove duplicate entries.
3856 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3857 for recent processor.
3858 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3861 2009-05-09 Ulrich Drepper <drepper@redhat.com>
3863 * version.h (VERSION): Bump for 2.10 release.
3864 * include/features.h (__GLIBC_MINOR__): Bump to 10.
3866 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
3867 same place we add ASFLAGS-config.
3869 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
3872 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3873 or FORMERR and the other NOERROR, don't raise an error.
3875 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
3878 * Makeconfig (+asflags): New variable based upon ASFLAG or
3880 (ASFLAGS): Add override to set ASFLAGS to +asflags.
3881 * config.make.in (asflags-cpu): Add variable based upon
3882 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3885 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3886 recognizes power6 instruction set due to passing -mcpu=power6 from
3887 --with-cpu=power6 when compiling .S files.
3888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3895 2009-05-09 Jakub Jelinek <jakub@redhat.com>
3897 * string/stratcliff.c (do_test): Test for zero length
3898 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3899 at the end of the page.
3901 2009-05-08 Ulrich Drepper <drepper@redhat.com>
3903 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3905 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3908 * po/da.po: Update from translation team.
3910 2009-05-05 Jakub Jelinek <jakub@redhat.com>
3912 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3913 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3915 2009-05-05 Ulrich Drepper <drepper@redhat.com>
3917 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3918 and READ_IMPLIES_EXEC.
3920 2009-05-04 Ulrich Drepper <drepper@redhat.com>
3922 * po/da.po: Update from translation team.
3924 2009-04-29 Jakub Jelinek <jakub@redhat.com>
3926 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3929 2009-04-27 Jakub Jelinek <jakub@redhat.com>
3931 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3932 to MAP_ANON in PROT_NONE mmap64 call.
3933 (open_archive): Likewise.
3934 (file_data_available_p): Use mmap64 instead of mremap.
3935 (enlarge_archive): Likewise. Update head if ah->addr changed.
3936 Attempt to reserve address space after mmap64 region.
3938 2009-04-26 Ulrich Drepper <drepper@redhat.com>
3940 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3941 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3942 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3944 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3945 atanh should set ERANGE.
3948 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3949 result of lookup to make call to implement STT_GNU_IFUNC.
3950 (_dl_profile_fixup): Likewise.
3951 Patch by H.J. Lu <hjl.tools@gmail.com>.
3953 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3956 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3959 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3960 label if it is not used.
3962 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3963 of gmon_hist_hdr and gmon_hdr structures and use them.
3964 * elf/sprof.c: Likewise.
3966 * elf/dl-load.c (open_verify): Add temporary variable to avoid
3969 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3971 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3974 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3975 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3977 (iruserok_af): Use ss_family instead of casts.
3979 * gmon/gmon.c (write_hist): Define real-type variant of
3980 gmon_hist_hdr structure and use it.
3981 (write_gmon): Likewise for gmon_hdr.
3983 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3984 function if we are not going to define it.
3985 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3987 * inet/inet6_option.c (option_alloc): Add temporary variable to
3990 * libio/strfile.h (struct _IO_streambuf): Use correct type and
3991 name of VTable element.
3992 * libio/iovsprintf.c: Avoid casts to avoid warnings.
3993 * libio/iovsscanf.c: Likewise.
3994 * libio/vasprintf.c: Likewise.
3995 * libio/vsnprintf.c: Likewise.
3996 * stdio-common/isoc99_vsscanf.c: Likewise.
3997 * stdlib/strfmon_l.c: Likewise.
3998 * debug/vasprintf_chk.c: Likewise.
3999 * debug/vsnprintf_chk.c: Likewise.
4000 * debug/vsprintf_chk.c: Likewise.
4002 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
4005 2009-04-26 Jakub Jelinek <jakub@redhat.com>
4007 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
4009 2009-04-25 Ulrich Drepper <drepper@redhat.com>
4011 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
4013 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
4014 * sysdeps/i386/fpu/s_tanf.S: Likewise.
4015 * sysdeps/i386/fpu/s_tanl.S: Likewise.
4016 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4017 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4018 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
4019 * math/libm-test.inc: Add tests for errno after tan calls with
4022 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
4023 errno value vor pow(+-0,neg).
4024 * math/libm-test.inc (pow_test): Add tests for errno value for
4027 * math/w_fmod.c: Also handle x=±Inf as error.
4028 * math/w_fmodf.c: Likewise.
4029 * math/w_fmodl.c: Likewise.
4030 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
4033 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
4034 * sysdeps/i386/fpu/s_cosf.S: Likewise.
4035 * sysdeps/i386/fpu/s_cosl.S: Likewise.
4036 * sysdeps/i386/fpu/s_sin.S: Likewise.
4037 * sysdeps/i386/fpu/s_sinf.S: Likewise.
4038 * sysdeps/i386/fpu/s_sinl.S: Likewise.
4039 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4040 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4041 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4042 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4043 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4044 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
4045 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
4046 * math/libm-test.inc: Add tests for errno after sin/cos calls with
4049 * stdlib/strtod_l.c (round_and_return): We have to set errno to
4050 ERANGE for underflows.
4051 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
4053 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
4056 * libio/tst-widetext.input: Remove surrogates.
4058 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
4060 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
4061 for lgamma should set errno to ERANGE, not EDOM.
4062 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
4064 2009-04-24 Ulrich Drepper <drepper@redhat.com>
4067 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
4070 * locale/programs/locarchive.c (enlarge_archive): Conserve address
4071 space when temporarily mapping the whole content of the old file.
4074 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
4077 2009-04-24 Jakub Jelinek <jakub@redhat.com>
4079 * iconvdata/sjis.c (BODY): Don't advance inptr before
4080 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
4081 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
4084 2009-04-24 Ulrich Drepper <drepper@redhat.com>
4086 * locale/locarchive.h (struct locarhandle): Rename len field to
4087 mmaped and add new reserved field.
4088 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
4089 (create_archive): Reserve address space and then map file into it.
4090 (open_archive): Likewise.
4091 (file_data_available_p): New function.
4092 (compare_from_file): New function.
4093 (close_archive): Adjust to member name changes.
4094 (add_locale): Before comparing locale data, check it is mapped.
4095 Otherwise fall back to reading from the file.
4097 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
4099 * stdio-common/psiginfo.c: Include <errno.h>.
4101 2009-04-23 Ulrich Drepper <drepper@redhat.com>
4104 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
4105 to get consistency between 32 and 64 bit architectures.
4108 * sysdeps/unix/make-syscalls.sh: Add rule to create target
4109 directory for dummy syscall rules.
4110 Patch by Chris Steinbroner <hesh@pobox.com>.
4112 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
4115 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
4118 2009-04-23 Ulrich Drepper <drepper@redhat.com>
4120 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
4121 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4123 2009-04-23 Jakub Jelinek <jakub@redhat.com>
4125 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
4126 data from vector to temporary buffer and call PWRITEV after it
4127 instead of vice versa.
4128 * sysdeps/posix/preadv.c: Fix up comment.
4129 * misc/preadv.c: Likewise.
4130 * misc/preadv64.c: Likewise.
4131 * misc/pwritev.c: Likewise.
4132 * misc/pwritev64.c: Likewise.
4133 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
4135 2009-04-23 Ulrich Drepper <drepper@redhat.com>
4137 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
4139 * shadow/Makefile (tests): Add tst-shadow.
4140 * shadow/tst-shadow.c: New file.
4143 * gshadow/Makefile: New file.
4144 * gshadow/Versions: New file.
4145 * gshadow/fgetsgent.c: New file.
4146 * gshadow/fgetsgent_r.c: New file.
4147 * gshadow/getsgent.c: New file.
4148 * gshadow/getsgent_r.c: New file.
4149 * gshadow/getsgnam.c: New file.
4150 * gshadow/getsgnam_r.c: New file.
4151 * gshadow/gshadow.h: New file.
4152 * gshadow/putsgent.c: New file.
4153 * gshadow/sgetsgent.c: New file.
4154 * gshadow/sgetsgent_r.c: New file.
4155 * gshadow/tst-gshadow.c: New file.
4156 * include/gshadow.h: New file.
4157 * Makeconfig (all-subdirs): Add gshadow.
4158 * Makefile (installed-headers): Add gshadow/gshadow.h.
4159 * nss/Makefile (databases): Add sgrp.
4160 * nss/Versions: Add gshadow functions as private exports.
4161 * nss/nsswitch.conf: Add gshadow entry.
4162 * nss/sgrp-lookup.c: New file.
4163 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
4164 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
4165 * nss/nss_files/files-sgrp.c: New file.
4166 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
4167 * sysdeps/unix/sysv/linux/paths.h: Likewise.
4169 2009-04-22 Ulrich Drepper <drepper@redhat.com>
4171 * stdio-common/printf.h: Add missing const to register_printf_modifier.
4172 * stdio-common/reg-modifier.c: Likewise.
4174 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
4176 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
4179 2009-04-20 Ulrich Drepper <drepper@redhat.com>
4182 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
4183 headers up to 2.6.30.
4185 * po/ca.po: Update from translation team.
4187 2009-04-19 Ulrich Drepper <drepper@redhat.com>
4190 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
4191 an object that uses static TLS if the TLS modid is higher than the
4192 reserve we always allocate. At least for multi-threaded code.
4194 2009-04-18 Ulrich Drepper <drepper@redhat.com>
4196 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
4197 Numerically stable check for valid width.
4199 * locale/programs/locarchive.c (open_archive): Map the entire file
4200 and not just the administrative data.
4201 (add_locale): When we find a hash sum match compare the content
4204 * malloc/malloc.c (malloc_info): Output address space information.
4206 2009-04-17 Ulrich Drepper <drepper@redhat.com>
4208 * malloc/malloc.c (malloc_info): Also output system memory information.
4210 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
4211 architectures have preadv/pwritev in 2.6.30.
4213 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
4214 * sysdeps/posix/readv.c: Likewise.
4215 Reported by Markus Armbruster <armbru@redhat.com>.
4217 * malloc/hooks.c (top_check): Force hook value into register.
4219 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
4221 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
4222 calls to _dl_relocate_object.
4224 2009-04-16 Ulrich Drepper <drepper@redhat.com>
4227 * malloc/malloc.c (force_reg): Define.
4228 (sYSMALLOc): Load hook variable into variable
4229 before test and force into register.
4230 (sYSTRIm): Likewise.
4231 (public_mALLOc): Force hook value into register.
4232 (public_fREe): Likewise.
4233 (public_rEALLOc): Likewise.
4234 (public_mEMALIGn): Likewise.
4235 (public_vALLOc): Likewise.
4236 (public_pVALLOc): Likewise.
4237 (public_cALLOc): Likewise.
4238 (__posix_memalign): Likewise.
4239 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
4240 before test and force into register.
4241 * malloc/hooks.c (top_check): Likewise.
4242 (public_sET_STATe): Pretty printing.
4244 * resolv/res_send.c (send_dg): Don't just ignore the result we got
4245 in case we only receive one reply in single-request mode.
4247 2009-04-16 Jakub Jelinek <jakub@redhat.com>
4249 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
4250 are dlopened in statically linked program even for __LM_ID_CALLER.
4252 2009-04-16 Ulrich Drepper <drepper@redhat.com>
4254 * resolv/res_send.c (send_dg): Don't switch into single-request
4255 mode if we already are in it.
4257 2009-04-15 Ulrich Drepper <drepper@redhat.com>
4259 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
4260 are always at least 4 bytes in the returned line.
4262 2009-04-15 Jakub Jelinek <jakub@redhat.com>
4264 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
4265 __libc_use_alloca (8192), if the stack is too small use 512 bytes
4266 instead of 8K. Stop searching in /proc/stat after hitting first
4267 line not starting with cpu.
4268 (next_line): Truncate too long
4269 lines at buffer size * 3/4 instead of pretending there were line
4270 breaks inside of large lines.
4272 2009-04-14 Ulrich Drepper <drepper@redhat.com>
4274 * sysdeps/x86_64/mp_clz_tab.c: New file.
4276 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
4277 Ulrich Drepper <drepper@redhat.com>
4279 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
4280 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
4281 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
4283 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
4285 * sysdeps/sh/libc-tls.c: New file.
4287 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
4289 2009-04-14 Roland McGrath <roland@redhat.com>
4291 * elf/elf.h: Add various missing ARM constants, to match binutils.
4293 2009-04-14 Ulrich Drepper <drepper@redhat.com>
4295 Optimizations from GMP.
4296 * sysdeps/x86_64/add_n.S: New file.
4297 * sysdeps/x86_64/addmul_1.S: New file.
4298 * sysdeps/x86_64/lshift.S: New file.
4299 * sysdeps/x86_64/mul_1.S: New file.
4300 * sysdeps/x86_64/rshift.S: New file.
4301 * sysdeps/x86_64/sub_n.S: New file.
4302 * sysdeps/x86_64/submul_1.S: New file.
4304 2009-04-14 Jakub Jelinek <jakub@redhat.com>
4306 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
4307 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4308 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4309 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4311 2009-04-14 Ulrich Drepper <drepper@redhat.com>
4313 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
4316 2009-04-13 Ulrich Drepper <drepper@redhat.com>
4318 * sysdeps/x86-64/strrchr.S: New file.
4320 2009-04-10 Ulrich Drepper <drepper@redhat.com>
4322 * stdio-common/printf.h (struct printf_info): Add user element.
4323 New types printf_arginfo_size_function, printf_va_arg_function.
4324 Declare register_printf_specifier, register_printf_modifier,
4325 register_printf_type.
4326 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
4327 (union printf_arg): Add pa_user element.
4328 Adjust __printf_arginfo_table type.
4329 Add __printf_va_arg_table, __printf_modifier_table,
4330 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
4332 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
4333 If registered arginfo call failed try normal specifier.
4334 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
4336 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
4337 * stdio-common/Versions: Export register_printf_modifier,
4338 register_printf_type, and register_printf_specifier for GLIBC_2.10.
4339 * stdio-common/reg-modifier.c: New file.
4340 * stdio-common/reg-type.c: New file.
4341 * stdio-common/reg-printf.c (__register_printf_specifier): New
4342 function. Mostly the old __register_printf_function function but
4343 uses locking and type of third parameter changed.
4344 (__register_printf_function): Implement using
4345 __register_printf_specifier.
4346 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
4347 calls to arginfo functions. Allocate enough memory for user-defined
4348 types. Call new va_arg functions to get user-defined types.
4349 Try installed handlers even for existing format specifiers first.
4351 2009-04-09 Ulrich Drepper <drepper@redhat.com>
4353 * sysdeps/x86_64/rawmemchr.S: New file.
4355 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
4356 Simplified code and possible copy problem fixed.
4358 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
4359 function if it is not defined. Add some necessary casts.
4360 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4362 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
4363 have preadv/pwritev in 2.6.30.
4365 2009-04-08 Ulrich Drepper <drepper@redhat.com>
4367 * malloc/malloc.c (malloc_info): New function.
4368 * malloc/malloc.h: Declare it.
4369 * malloc/Versions: Export malloc_info for GLIBC_2.10.
4371 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
4374 * malloc/malloc.c (_int_realloc): Add parameter with old block
4375 size. Remove duplicated test. Don't handle mmap'ed blocks here.
4377 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
4379 2009-04-07 Ulrich Drepper <drepper@redhat.com>
4381 * sysdeps/x86_64/strchrnul.S: New file.
4383 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
4384 depending libcrypt on -lfreebl3.
4386 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
4387 preadv/pwritev in 2.6.30.
4389 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
4390 instead of __strcasecmp.
4392 * string/stratcliff.c (do_test): Add memchr tests..
4393 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
4394 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
4395 first read quad word.
4397 2009-04-06 Ulrich Drepper <drepper@redhat.com>
4399 * string/strverscmp.c (__strverscmp): Fix last cleanups.
4400 * string/tst-svc.input: Add new test case.
4401 * string/tst-svc.expect: Adjust.
4402 * string/Makefile: Don't ignore tst-svc error.
4404 * sysdeps/x86_64/memchr.S: New file.
4406 * resolv/resolv.h (RES_SNGLKUP): Define.
4407 * resolv/res_init.c (res_setoptions): Recognize single-request option.
4408 * resolv/res_send.c (send_dg): If we sent two requests at once and
4409 only get one reply before timeout switch to mode where we send the
4410 second request only after the first answer has been received.
4412 2009-04-05 Ulrich Drepper <drepper@redhat.com>
4414 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4415 * sysdeps/x86_64/strchr.S: Likewise.
4417 2009-04-03 Ulrich Drepper <drepper@redhat.com>
4419 * configure.in: We need to test for the compiler earlier.
4421 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4422 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4424 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4425 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4427 * misc/preadv.c: New file.
4428 * misc/preadv64.c: New file.
4429 * misc/pwritev.c: New file.
4430 * misc/pwritev64.c: New file.
4431 * sysdeps/posx/preadv.c: New file.
4432 * sysdeps/posx/preadv64.c: New file.
4433 * sysdeps/posx/pwritev.c: New file.
4434 * sysdeps/posx/pwritev64.c: New file.
4435 * sysdeps/unix/sysv/linux/preadv.c: New file.
4436 * sysdeps/unix/sysv/linux/preadv64.c: New file.
4437 * sysdeps/unix/sysv/linux/pwritev.c: New file.
4438 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4439 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4440 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4442 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4444 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4446 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4447 __ASSUME_COMPLETE_READV_WRITEV.
4448 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4449 with modern kernels.
4450 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4452 * sysdeps/posix/readv.c: Since read is a cancellation point we have
4453 to free a possible malloced buffer in case of cancellation.
4454 * sysdeps/posix/writev.c: Likewise for write.
4456 2009-04-02 Ulrich Drepper <drepper@redhat.com>
4458 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4460 * configure.in: Recognize --enable-nss-crypt.
4461 * config.make.in: Add nss-crypt entry.
4462 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4463 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
4464 and include path for NSS directory to compiler for md5-crypt,
4465 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
4466 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4467 function implementation, use NSS. Introduce wrappers around the
4468 hash function calls. Little code size optimization.
4469 * crypt/sha256-crypt.c: Likewise.
4470 * crypt/sha512-crypt.c: Likewise.
4471 * scripts/check-local-headers.sh: Ignore nss3 directory.
4473 * configure.in: Rename pic_default to libc_cv_pic_default.
4474 * config.make.in: Likewise.
4476 2009-04-01 Roland McGrath <roland@redhat.com>
4478 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4479 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4480 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4481 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4482 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4483 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4484 (R_SPARC_NUM): Update.
4485 From Dave Miller <davem@davemloft.net>.
4487 2009-04-01 Ulrich Drepper <drepper@redhat.com>
4489 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4491 2009-03-31 Ulrich Drepper <drepper@redhat.com>
4493 * elf/dl-open.c: Keep track of used name spaces and only iterate over
4494 those which are used.
4495 * elf/dl-addr.c: Likewise.
4496 * elf/dl-caller.c: Likewise.
4497 * elf/dl-fini.c: Likewise.
4498 * elf/dl-iteratephdr.c: Likewise.
4499 * elf/dl-libc.c: Likewise.
4500 * elf/dl-load.c: Likewise.
4501 * elf/dl-support.c: Likewise.
4502 * elf/dl-sym.c: Likewise.
4503 * elf/rtld.c: Likewise.
4504 * sysdeps/generic/ldsodefs.h: Likewise.
4506 * elf/dl-load.c: Remove support for systems without MAP_ANON.
4507 * elf/dl-minimal.c: Likewise.
4508 * elf/dl-misc.c: Likewise.
4509 * elf/rtld.c: Likewise.
4510 * sysdeps/generic/ldsodefs.h: Likewise.
4512 2009-03-30 Ulrich Drepper <drepper@redhat.com>
4514 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4515 Avoid reuse of complex expression.
4517 * po/fr.po: Update from translation team.
4519 2009-03-16 Ulrich Drepper <drepper@redhat.com>
4521 * include/dirent.h: Yet more changes to match sort function type
4523 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4524 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4525 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4527 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
4529 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4531 2009-03-16 Ulrich Drepper <drepper@redhat.com>
4533 * nscd/connections.c (restart): Try to preserve the process name
4534 by reading the /proc/self/exe symlink and using the return name.
4535 Patch by Jeff Bastian <jbastian@redhat.com>.
4537 2009-03-15 Ulrich Drepper <drepper@redhat.com>
4540 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4541 if we are not loading a new audit library.
4542 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4543 Only use profiling trampoline for auditing if we are not relocating
4545 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4546 * elf/rtld.c: Likewise.
4547 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4549 * elf/rtld.c (dl_main): Extend help message for --audit option.
4552 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4553 alphasort64, versionsort, and versionsort64 to POSIX 2008.
4554 * dirent/alphasort.c: Adjust implementation to type change.
4555 * dirent/alphasort64.c: Likewise.
4556 * dirent/scandir.c: Likewise.
4557 * dirent/versionsort.c: Likewise.
4558 * dirent/versionsort64.c: Likewise.
4559 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4561 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4565 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4566 correctly. Set segleft member in output as required.
4567 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4568 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4571 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4572 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4573 * inet/Makefile (tests): Add tst-inet6_rth.
4574 * inet/tst-inet6_rth.c: New file.
4577 * string/strlen.c (strlen): Fix omission in the expression to test
4580 2009-03-14 Ulrich Drepper <drepper@redhat.com>
4582 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4584 * elf/dl-runtime.c (reloc_offset): Define.
4585 (reloc_index): Define.
4586 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4587 (_dl_fixup_profile): Likewise. Use reloc_index instead of
4588 computing index from reloc_offset.
4589 (_dl_call_pltexit): Likewise.
4590 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4591 the relocation index to _dl_fixup.
4592 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4594 * sysdeps/x86_64/dl-runtime.c: New file.
4597 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4598 alignment of La_x86_64_regs. Store xmm parameters.
4599 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4602 * string/strverscmp.c (__strverscmp): Fix case of different digits
4603 in fractional part of string.
4604 Patch by Jingyu Liu <jyliu@fortinet.com>.
4605 * string/Makefile (tests): Add tst-svc2.
4606 * string/tst-svc2.c: New file.
4608 * string/strverscmp.c (__strverscmp): Optimize size of tables.
4610 * locale/iso-639.def: Add Min Nan.
4612 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4615 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4617 2009-03-14 Ulrich Drepper <drepper@redhat.com>
4619 * elf/dl-sysdep.c (auxvars): Compress data structure.
4621 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4622 STT_GNU_IFUNC handling.
4623 (elf_machine_rela): Likewise.
4625 2009-03-13 Ulrich Drepper <drepper@redhat.com>
4627 * config.h.in (USE_MULTIARCH): Define.
4628 * configure.in: Handle --enable-multi-arch.
4629 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4630 (_dl_fixup_profile): Likewise.
4631 * elf/do-lookup.c (dl_lookup_x): Likewise.
4632 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4633 * elf/elf.h (STT_GNU_IFUNC): Define.
4634 * include/libc-symbols.h (libc_ifunc): Define.
4635 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4636 framework in init-arch.h to get CPUID values.
4637 * sysdeps/x86_64/multiarch/Makefile: New file.
4638 * sysdeps/x86_64/multiarch/init-arch.c: New file.
4639 * sysdeps/x86_64/multiarch/init-arch.h: New file.
4640 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4642 * config.make.in (experimental-malloc): Define.
4643 * configure.in: Handle --enable-experimental-malloc.
4644 * malloc/Makefile: Handle experimental-malloc flag.
4645 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4646 * malloc/arena.c: Likewise.
4647 * malloc/hooks.c: Likewise.
4648 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4650 2009-03-11 Ulrich Drepper <drepper@redhat.com>
4652 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4653 prediction. A few size optimizations.
4655 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4657 * time/tzset.c: Optimize a bit for size.
4659 2009-03-10 Jakub Jelinek <jakub@redhat.com>
4661 * include/stdio.h (fmemopen): Add libc_hidden_proto.
4662 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4664 * elf/sprof.c: Avoid warning about multi-line comment.
4666 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4668 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4670 * time/tst-posixtz.c: Add tests for quoted timezone names.
4672 2009-03-10 Jakub Jelinek <jakub@redhat.com>
4674 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4675 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4676 200809L instead of 200112L.
4677 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4678 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4680 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4681 instead of __quick_exit_funcs to __run_exit_handlers.
4682 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4683 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4684 (__cxa_at_quick_exit): Remove attribute_hidden.
4685 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4686 to __run_exit_handlers.
4687 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4690 2009-03-10 Ulrich Drepper <drepper@redhat.com>
4692 * po/id.po: Update from translation team.
4694 2009-02-18 Jakub Jelinek <jakub@redhat.com>
4696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4697 .machine push; .machine "power6" and .machine pop around mtfsf
4698 insns outside of _ARCH_PWR6 define.
4699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4704 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4705 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4706 relax_fenv_state): Likewise.
4708 2009-03-08 Ulrich Drepper <drepper@redhat.com>
4710 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4712 (static-only-routines): Add at_quick_exit.
4713 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4715 * stdlib/quick_exit.c: New file.
4716 * stdlib/at_quick_exit.c: New file.
4717 * stdlib/cxa_at_quick_exit.c: New file.
4718 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
4720 (__internal_atexit): New function.
4721 (__new_exitfn): Now takes parameter to point to the list to use.
4722 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4723 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
4724 (exit): ...here. Just call __run_exit_handlers appropriately.
4725 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4726 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
4727 * stdlib/on_exit.c: Adjust call to __new_exitfn.
4728 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4730 * po/id.po: Update from translation team.
4732 2009-03-07 Ulrich Drepper <drepper@redhat.com>
4734 * po/ru.po: Update from translation team.
4736 2009-03-04 Ulrich Drepper <drepper@redhat.com>
4738 * po/nl.po: Update from translation team.
4740 2009-03-03 Ulrich Drepper <drepper@redhat.com>
4742 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4743 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4744 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4745 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4746 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4747 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4748 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4750 * po/pl.po: Update from translation team.
4752 2009-03-02 Ulrich Drepper <drepper@redhat.com>
4755 * sysdeps/unix/sysv/linux/fallocate.c: New file.
4756 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4757 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4758 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4759 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4760 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4761 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4763 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4764 Add fallocate and fallocate64.
4766 * io/fcntl.h: Pretty printing.
4768 2009-03-02 Richard Guenther <rguenther@suse.de>
4770 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4771 attribute also for non-C99 inline semantics variant.
4773 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4775 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4776 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4777 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4778 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4781 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4784 2009-03-02 Ulrich Drepper <drepper@redhat.com>
4786 * po/cs.po: Update from translation team.
4788 2009-02-28 Ulrich Drepper <drepper@redhat.com>
4790 * po/bg.po: Update from translation team.
4791 * po/sv.po: Likewise.
4792 * po/fi.po: Likewise.
4793 * po/vi.po: Likewise.
4795 2009-02-27 Roland McGrath <roland@redhat.com>
4797 * Makeconfig (%.v.i): Depend on Makeconfig.
4798 Exclude % lines from initial #-comment removal.
4800 2009-02-27 Ulrich Drepper <drepper@redhat.com>
4802 * po/ko.po: Update from translation team.
4804 2009-02-26 Roland McGrath <roland@redhat.com>
4806 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4807 avoids unused warning.
4809 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
4810 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4812 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4813 sys/ucontext.h and asm/elf.h. Include sys/user.h.
4814 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4815 and asm/user.h. Include asm/ptrace.h.
4816 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4817 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4818 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4820 (start_thread): Don't undefine.
4821 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4824 2009-02-26 Ulrich Drepper <drepper@redhat.com>
4826 * wctype/wctype.h: The *_l functions are in POSIX 2008.
4827 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4828 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4829 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4830 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4832 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4833 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4834 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4835 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4836 _SC_THREAD_ROBUST_PRIO_PROTECT.
4837 * posix/unistd.h: fexecve is in POSIX 2008.
4838 * time/time.h: strftime_l is in POSIX 2008.
4839 * io/sys/stat.h: futimens is in POSIX 2008.
4840 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4841 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4842 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4843 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4844 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4845 open_memstream, and vdprintf are in POSIX 2008.
4847 2009-02-25 Ulrich Drepper <drepper@redhat.com>
4849 * include/features.h: Define macros for XPG7/POSIX 2008.
4850 * ctype/ctype.h: The *_l functions are in POSIX 2008.
4851 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4853 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4854 * locale/xlocale.h: Define locale_t type.
4855 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4856 in POSIX 2008. Don't define locale_t here.
4857 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4858 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4859 UTIME_OMIT only with __USE_ATFILE.
4860 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4861 * stdio-common/psiginfo.c: New file.
4862 * stdio-common/psiginfo-data.h: New file.
4863 * stdio-common/psiginfo-define.h: New file.
4864 * stdio-common/Makefile (routines): Add psiginfo.
4865 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4866 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4867 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4868 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4869 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4870 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4871 * io/sys/stat.h: Move mknodat definition into same conditional as
4873 * time/sys/time.h: futimesat is not among the functions accepted
4874 into the POSIX standard.
4876 * include/features.h: If no feature selection given and we select
4877 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4878 * posix/Versions: Export __posix_getopt.
4879 * posix/getopt.c (_getopt_initialize): Take additional parameter.
4880 Use it to alternatively initialize __posixly_correct.
4881 (_getopt_internal_r): Take addition parameter. Pass on to
4883 (_getopt_internal): Take addition parameter. Pass on to
4885 (getopt): Pass additional zero to _getopt_internal.
4886 (__posix_getopt): New function.
4887 * posix/getopt.h: Add redirection for getopt.
4888 * posix/getopt1.c (getopt_long): Pass additional zero to
4890 (getopt_long_only): Likewise.
4891 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4892 (_getopt_long_only_r): Likewise.
4893 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4896 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4898 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4899 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4900 * sysdeps/posix/sysconf.c (__sysconf): Handle
4901 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4902 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4904 2009-02-24 Roland McGrath <roland@redhat.com>
4907 * README.template: Reworded not to use substituted version number.
4909 * README: ... here (no longer generated).
4910 * Makefile (README): Target removed.
4912 2009-02-24 Ulrich Drepper <drepper@redhat.com>
4914 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4915 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4918 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4920 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4922 2009-02-22 Ulrich Drepper <drepper@redhat.com>
4924 * po/bg.po: Update from translation team.
4926 2009-02-16 Jakub Jelinek <jakub@redhat.com>
4928 * stdlib/monetary.h: Uglify function parameter names.
4929 * sunrpc/rpc/pmap_clnt.h: Likewise.
4930 * sunrpc/rpc/svc.h: Likewise.
4931 * sunrpc/rpc/xdr.h: Likewise.
4932 * sunrpc/rpc/clnt.h: Likewise.
4933 * resolv/netdb.h: Likewise.
4934 * resolv/arpa/nameser.h: Likewise.
4935 * resolv/resolv.h: Likewise.
4936 * argp/argp.h: Likewise.
4937 * locale/langinfo.h: Likewise.
4938 * io/sys/stat.h: Likewise.
4939 * posix/spawn.h: Likewise.
4940 * nis/rpcsvc/nislib.h: Likewise.
4941 * malloc/obstack.h: Likewise.
4942 * sysdeps/ia64/bits/link.h: Likewise.
4943 * sysdeps/i386/bits/link.h: Likewise.
4944 * sysdeps/s390/bits/link.h: Likewise.
4945 * sysdeps/powerpc/bits/link.h: Likewise.
4946 * sysdeps/x86_64/bits/link.h: Likewise.
4947 * sysdeps/sparc/bits/link.h: Likewise.
4948 * sysdeps/sh/bits/link.h: Likewise.
4949 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4950 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4951 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4952 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4954 2008-12-01 Fredrik Unger <fred@tree.se>
4956 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4957 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4958 _FP_UNPACK_RAW_2, fix up first argument.
4960 2009-02-15 Ulrich Drepper <drepper@redhat.com>
4962 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4963 (GET_NPROCS_PARSER): Change parameters and use next_line.
4964 (__get_nprocs): Rewrite to not use stdio routines.
4965 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4966 Change parameters and use next_line.
4968 2009-02-13 Ulrich Drepper <drepper@redhat.com>
4971 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4972 Change mempool_alloc prototype.
4973 * nscd/mem.c (gc): Don't handle mem_in_flight.
4974 (mempool_alloc): Third parameter now only indicates whether this is the
4975 first call (to allocate data) or not. If it is, get db rdlock.
4976 Release it on error. Don't handle mem_in_flight.
4977 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4978 Adjust third parameter of mempool_alloc calls.
4979 Nothing to do here in case mempool_alloc fails.
4980 Avoid local variable shadowing parameter. No need to get db rdlock
4981 before calling cache_add.
4982 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
4983 no mem_in_flight array anymore.
4984 * nscd/connections.c: Remove definition and handling of mem_in_flight.
4985 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4986 mempool_alloc calls. Mark he parameter as const. Nothing to do here
4987 in case mempool_alloc fails. No need to get db rdlock before calling
4989 * nscd/hstcache.c (cache_addhst): Likewise.
4990 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4991 * nscd/servicescache.c (cache_addserv): Likewise.
4992 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
4994 2009-02-11 Ulrich Drepper <drepper@redhat.com>
4996 * po/lt.po: Update from translation team.
4998 2009-02-10 Ulrich Drepper <drepper@redhat.com>
5000 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
5001 defined, allow additional data to be added using the optional
5002 MORE_ELF_HEADER_DATA macro.
5003 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
5004 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
5006 2009-02-08 Ulrich Drepper <drepper@redhat.com>
5008 * include/atomic.h: Define catomic_and if not already defined.
5009 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
5010 * sysdeps/i386/i486/bits/atomic.h: Likewise.
5012 2009-02-07 Ulrich Drepper <drepper@redhat.com>
5014 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
5016 (_int_realloc): Likewise. Third argument is now padded size
5017 All _int_* functions are now static.
5019 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
5020 * malloc/arena.c: Likewise.
5021 * include/malloc.h: Remove now unnecessary declarations of the _int_*
5024 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
5027 * malloc/malloc.c: Add branch prediction for use of the hooks.
5029 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
5031 2009-02-06 Ulrich Drepper <drepper@redhat.com>
5034 * bits/confname.h: Add SUSv7 macros for getconf environments.
5035 * bits/environments.h: Likewise.
5036 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
5037 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
5038 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
5039 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
5040 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
5041 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
5042 * posix/getconf.c: Likewise.
5043 * posix/sysconf.c: Likewise.
5044 * sysdeps/posix/sysconf.c: Likewise.
5045 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
5048 2009-01-16 Petr Baudis <pasky@suse.cz>
5051 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
5052 even if we currently have zero nscount.
5054 2009-02-06 Ulrich Drepper <drepper@redhat.com>
5057 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
5058 the input line is too long.
5060 * po/Makefile (libc.pot): Add f_print as function taking c-format
5063 * debug/xtrace.sh: Unify translatable messages.
5064 * elf/ldd.bash.in: Likewise.
5065 * elf/sprof.c: Likewise.
5066 * locale/programs/locale.c: Likewise.
5067 * malloc/memusage.sh: Likewise.
5068 * nss/getent.c: Likewise.
5070 2009-02-06 Joseph Myers <joseph@codesourcery.com>
5072 * debug/pcprofiledump.c (print_version,
5073 argp_program_version_hook): New function.
5074 * elf/ldconfig.c (more_help): New function.
5076 * elf/sln.c (usage): New function.
5077 (main): Support --help and --version.
5078 * malloc/memusagestat.c (print_version): New function.
5079 (argp_program_version_hook): New variable.
5080 * nscd/nscd.c (more_help): New function.
5082 * posix/getconf.c (main): Send --version output to stdout.
5084 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
5085 arguments. All callers changed.
5086 (print_version): New function.
5087 (parseargs): Support --help and --version.
5088 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
5090 (print_version): New function.
5091 (main): Use getopt_long. Support --help and --version.
5092 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
5095 2009-02-06 Ulrich Drepper <drepper@redhat.com>
5097 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
5098 (update_data): Fix handling of wrapping back
5099 to the beginning of the buffer.
5102 * stdio-common/psignal.c (psignal): Fix test for empty string.
5104 2009-02-05 Ulrich Drepper <drepper@redhat.com>
5106 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
5107 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
5108 move _null_auth to .rodata.
5110 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
5113 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
5115 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
5116 today than when the original code was written. Use larger
5117 buffers. This also makes it unnecessary to have stat information,
5118 if this causes extra efforts.
5119 (__opendir): In case O_DIRECTORY works, don't call fstat just for
5122 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
5124 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
5126 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
5127 * sysdeps/sh/sh4/__longjmp.S: Likewise.
5128 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
5129 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
5130 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
5131 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
5133 2009-02-04 Ulrich Drepper <drepper@redhat.com>
5135 * po/ru.po: Update from translation team.
5137 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
5139 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
5140 Add _tid slot to maintain consistency with kernel.
5142 2009-02-04 Ulrich Drepper <drepper@redhat.com>
5144 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
5145 incomplete characters at end of input buffer.
5146 * libio/Makefile (tests): Add tst-fgetwc.
5147 * libio/tst-fgetwc.c: New file.
5148 * libio/tst-fgetwc.input: New file.
5150 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
5152 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
5154 2009-02-02 Ulrich Drepper <drepper@redhat.com>
5157 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
5158 *OUTBUFSTART unless the whole output fit into the buffer.
5159 * iconv/Makefile (tests): Add tst-iconv4.
5160 * iconv/tst-iconv4.c: New file.
5162 2009-02-01 Ulrich Drepper <drepper@redhat.com>
5164 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
5165 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5167 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
5169 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
5170 newer linker scripts.
5172 2009-01-30 Ulrich Drepper <drepper@redhat.com>
5175 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
5176 inotify_rm_watch should have type int.
5178 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
5180 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5181 Make aligned_restore_vmx a local symbol.
5182 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
5185 2009-01-30 Andreas Jaeger <aj@suse.de>
5187 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
5188 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
5189 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
5190 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
5191 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
5192 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
5193 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
5195 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
5198 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
5199 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
5201 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
5204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5205 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
5206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5207 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
5209 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
5211 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
5212 memcpy instead of memcmp.
5213 (_dl_setup_pointer_guard): Likewise.
5215 2009-01-30 Ulrich Drepper <drepper@redhat.com>
5217 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
5218 manipulated brk, use malloc_printerr.
5219 * misc/sbrk.c (__sbrk): Better error handling for nonsense
5222 2009-01-30 Jakub Jelinek <jakub@redhat.com>
5224 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
5225 rindex): For C++ add inlines so that they can be recognized as
5227 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
5229 2009-01-29 Ulrich Drepper <drepper@redhat.com>
5230 Jakub Jelinek <jakub@redhat.com>
5232 * string/string.h: Define correct C++ prototypes for gcc 4.4.
5233 * wcsmbs/wchar.h: Likewise.
5235 2009-01-29 Ulrich Drepper <drepper@redhat.com>
5237 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
5238 (stackinfo_sub_sp): Define.
5240 2009-01-28 Ulrich Drepper <drepper@redhat.com>
5243 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
5244 * include/alloca.h (alloca_account): Define.
5245 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
5246 (stackinfo_sub_sp): Define.
5248 * nscd/connections.c (nscd_init): If database file access fails
5249 check whether this is due to permission problems and bail in that
5253 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
5254 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
5256 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5258 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
5259 Add "t" to clobber list.
5260 (INTERNAL_SYSCALL_NCS): Likewise.
5262 2009-01-28 Ulrich Drepper <drepper@redhat.com>
5264 * nss/getent.c (print_networks): Don't print comma between aliases.
5266 2009-01-23 Ulrich Drepper <drepper@redhat.com>
5268 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
5270 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
5272 * misc/Makefile (tests): Add bug-hsearch1.
5273 * misc/bug-hsearch1.c: New file.
5275 2009-01-22 Roland McGrath <roland@redhat.com>
5277 * Makeconfig (%.v.i): Strip trailing # comments,
5278 not only whole-line comments.
5280 2009-01-10 Ulrich Drepper <drepper@redhat.com>
5282 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
5283 one parameter. If non-NULL use it to initialize return value.
5284 (_dl_setup_pointer_guard): New function.
5285 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5286 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
5287 * elf/rtld.c (security_init): Pass _dl_random to
5288 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
5290 * elf/dl-sysdep.c (_dl_random): New variable.
5291 (_dl_sysdep_start): Handle AT_RANDOM.
5292 (_dl_show_auxv): Likewise.
5293 * elf/dl-support.c (_dl_random): New variable.
5294 (_dl_aux_init): Handle AT_RANDOM.
5295 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
5296 to _dl_setup_stack_chk_guard.
5298 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
5300 2009-01-10 Roland McGrath <roland@redhat.com>
5302 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
5304 2009-01-08 Ulrich Drepper <drepper@redhat.com>
5306 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
5309 * nss/nss_files/files-parse.c (strtou32): New function.
5310 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
5311 across 32-bit and 64-bit platforms.
5312 (INT_FIELD_MAYBE_NULL): Likewise.
5314 2009-01-08 Jakub Jelinek <jakub@redhat.com>
5317 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
5318 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
5319 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
5322 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
5325 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5326 being NULL also if there are no backreferences.
5327 * posix/rxspencer/tests: Add testcases.
5329 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
5332 * posix/bug-regex17.c: Add testcases.
5333 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5336 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
5338 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
5339 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
5340 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
5341 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
5343 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
5344 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
5345 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
5346 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
5347 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5348 * sysdeps/unix/sysv/linux/s390/Versions: New file.
5350 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
5352 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5353 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5354 re_string_skip_chars, re_string_reconstruct): Likewise.
5355 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5357 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
5359 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
5360 adjust the buffer alignment.
5362 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5364 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
5365 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
5368 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
5369 flavor to description only when flavor is not NULL.
5371 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
5372 mutex after SIGIO/SIGURG lookup loop.
5374 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5376 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
5378 2009-01-03 Ulrich Drepper <drepper@redhat.com>
5380 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
5383 2009-01-02 Ulrich Drepper <drepper@redhat.com>
5385 * sysdeps/unix/sysv/linux/kernel-features.h
5386 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
5388 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
5389 if no output is written.
5391 * version.h: Bump to 2.10 development.
5393 * posix/getconf.c: Update copyright year.
5394 * nss/getent.c: Likewise.
5395 * iconv/iconvconfig.c: Likewise.
5396 * iconv/iconv_prog.c: Likewise.
5397 * elf/ldconfig.c: Likewise.
5398 * catgets/gencat.c: Likewise.
5399 * csu/version.c: Likewise.
5400 * elf/ldd.bash.in: Likewise.
5401 * elf/sprof.c (print_version): Likewise.
5402 * locale/programs/locale.c: Likewise.
5403 * locale/programs/localedef.c: Likewise.
5404 * nscd/nscd.c (print_version): Likewise.
5405 * debug/xtrace.sh: Likewise.
5406 * malloc/memusage.sh: Likewise.
5407 * malloc/mtrace.pl: Likewise.
5408 * debug/catchsegv.sh: Likewise.
5410 2008-12-29 Mike Frysinger <vapier@gentoo.org>
5412 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5415 2008-12-29 Ulrich Drepper <drepper@redhat.com>
5417 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5418 gethostbyname4_r function call succeeded, just leave the loop.
5421 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5423 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5424 * wctype/Makefile (tests): Add bug-wctypeh.
5425 * wctype/bug-wctypeh.c: New file.
5427 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5428 LOCALDOMAIN is defined.
5429 * nscd/nscd_getai.c (__nscd_getai): Likewise.
5431 * sysdeps/x86_64/bits/select.h: New file.
5433 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5435 2008-12-21 Bruno Haible <bruno@clisp.org>
5438 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5439 if no output is written.
5441 2008-12-13 Klaus Dittrich <kladit@arcor.de>
5443 * login/utmp_file.c (pututline_file): Replace call to dup2 with
5444 libc internal symbol __dup2 to avoid access through the PLT.
5446 2008-12-08 Ulrich Drepper <drepper@redhat.com>
5449 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5450 available only for __USE_GNU.
5452 * inet/Makefile (tests): Add tst-getni2.
5453 * inet/tst-getni2.c: New file.
5456 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5457 NULL when NI_NAMEREQD is set.
5458 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5459 * inet/Makefile (tests): Add tst-getni1.
5460 * inet/tst-getni1.c: New file.
5462 2008-12-03 Petr Baudis <pasky@suse.cz>
5465 * nscd/connections.c (invalidate_cache): Use prune_run_lock
5466 instead of prune_lock.
5467 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5468 * nscd/nscd.h (database_dyn): Add prune_run_cache.
5470 2008-12-07 Ulrich Drepper <drepper@redhat.com>
5472 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5475 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5478 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5479 after reading name server list.
5482 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5483 handling for host name aliases.
5485 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
5487 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5488 instead of doing things manually.
5490 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
5492 * posix/regex_internal.h (build_wcs_upper_buffer):
5493 Return type is reg_error_t.
5495 2008-12-05 Ulrich Drepper <drepper@redhat.com>
5497 * posix/globtest.sh: Use mktemp to create temporary file and
5500 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5502 (__CPU_CLR_S): Likewise.
5503 (__CPU_ISSET_S): Likewise.
5505 2008-12-05 Joseph Myers <joseph@codesourcery.com>
5506 Ulrich Drepper <drepper@redhat.com>
5508 * scripts/firstversion.awk: Use custom comparison function to compare
5510 * scripts/versions.awk: Use sort invocation which can handle
5511 multi-digit sub-version numbers.
5513 2008-12-04 Ulrich Drepper <drepper@redhat.com>
5515 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5516 * locale/iso-639.def: Add Chhattisgarhi entry.
5518 2008-12-02 Ulrich Drepper <drepper@redhat.com>
5520 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5522 (_nss_dns_gethostbyname4_r): Likewise.
5523 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5524 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5525 gethostbyname4_r, we don't have a separate IPv6 status, so copy
5526 the no_data variable.
5528 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5529 information at the correct index.
5531 * socket/sys/socket.h: Declare accept4.
5532 * socket/accept4.c: New file.
5533 * sysdeps/unix/sysv/linux/accept4.c: New file.
5534 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5535 * socket/Makefile (routines): Add accept4.
5536 * socket/Versions: Export accept4 with version GLIBC_2.10.
5537 * socket/paccept.c: Removed.
5538 * sysdeps/unix/sysv/linux/paccept.c: Removed.
5539 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5540 * Versions.def: Define GLIBC_2.10 for libc.
5541 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5543 * nscd/connections.c: Use accept4.
5545 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5547 2008-12-01 Ulrich Drepper <drepper@redhat.com>
5549 * resolv/res_send.c (send_dg): Create sockets with non-blocking
5552 * stdlib/setenv.c (unsetenv): Don't search environment if it does
5554 * stdlib/Makefile (tests): Add tst-unsetenv1.
5555 * stdlib/tst-unsetenv1.c: New file.
5557 2008-11-29 Ulrich Drepper <drepper@redhat.com>
5559 * login/utmp_file.c (file_writable): New variable.
5560 (setutent_file): Don't try to open file for writing.
5561 (pututline_file): Before writing, make descriptor writable if
5564 2008-11-26 Ulrich Drepper <drepper@redhat.com>
5566 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5567 to IPv4 or IPv6 if an interface has been found.
5569 2008-11-26 Roland McGrath <roland@redhat.com>
5571 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5572 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5574 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5575 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5576 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5578 * elf/elf.h (NT_386_IOPERM): New macro.
5579 (NT_PPC_VSX): New macro.
5581 2008-11-25 Roland McGrath <roland@redhat.com>
5583 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5584 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5585 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5586 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5587 Subdirectories moved to ports repository.
5588 * configure.in (base_machine): Remove alpha case.
5590 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
5592 * sysdeps/mach/strerror_l.c: New file.
5594 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
5597 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5598 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5600 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5601 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5602 (relax_fenv_state): Same as above.
5603 (FPSCR_29): Reserve bit in ISA 2.05.
5604 (FPSCR_NI): Provide define for compat.
5605 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5607 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5609 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
5610 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5611 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5612 access to hwcap to account for hwcap size increase to uint64_t.
5613 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5616 (*setcontext): Likewise.
5617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5622 (*setcontext): dynamically select mtfsf insn based on
5623 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5624 increase to uint64_t.
5625 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5626 (*swapcontext): dynamically select mtfsf insn based on
5627 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5628 increase to uint64_t.
5629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5634 (*setcontext): dynamically select mtfsf insn based on
5635 PPC_FEATURE_HAS_DFP.
5636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5637 (*swapcontext): dynamically select mtfsf insn based on
5638 PPC_FEATURE_HAS_DFP.
5640 2008-11-13 Ulrich Drepper <drepper@redhat.com>
5642 * version.h: Bump for 2.9 release.
5643 * include/features.h (__GLIBC_MINOR__): Bump to 9.
5646 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5647 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5650 2008-11-11 Ulrich Drepper <drepper@redhat.com>
5653 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5654 unknown request types for now.
5656 2008-11-11 Roland McGrath <roland@redhat.com>
5658 * sysdeps/x86_64/configure: New file.
5660 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5661 * configure: Regenerated.
5663 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5665 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5666 correct instruction to remove the stack frame.
5668 2008-11-03 Michael Matz <matz@suse.de>
5670 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5671 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5673 2008-11-07 Jakub Jelinek <jakub@redhat.com>
5675 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5678 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5679 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5680 of the thread variable instead of void *.
5681 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5682 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5683 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5684 __libc_tsd_define arguments.
5685 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5686 __libc_tsd_address arguments. Remove union hack.
5687 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5688 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5689 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5690 Adjust __libc_tsd_{set,get} arguments.
5691 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5692 __libc_tsd_define arguments.
5693 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5695 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5696 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5697 (LOCALE): Adjust __libc_tsd_define arguments.
5698 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5700 (LOCALE): Adjust __libc_tsd_define arguments.
5701 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5703 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5706 2008-11-02 Ulrich Drepper <drepper@redhat.com>
5708 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5709 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5711 2008-11-01 Ulrich Drepper <drepper@redhat.com>
5714 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5716 2008-10-24 Joseph Myers <joseph@codesourcery.com>
5717 Ulrich Drepper <drepper@redhat.com>
5719 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5720 definition for GCC 3.1 and later.
5722 2008-10-31 Jakub Jelinek <jakub@redhat.com>
5724 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5725 refetch dtv, as it might have changed.
5726 * elf/Makefile: Add rules to build and run tst-tls18.
5727 * elf/tst-tls18.c: New test.
5728 * elf/tst-tlsmod18a.c: New file.
5730 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
5733 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5735 2008-10-31 Ulrich Drepper <drepper@redhat.com>
5738 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5741 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5742 Fix length of copy operation.
5744 2008-10-02 Pierre Habouzit <madcoder@debian.org>
5746 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5747 and fix its calling convention.
5749 2008-10-07 Andreas Schwab <schwab@suse.de>
5752 * resolv/res_send.c (send_vc): Fix last change.
5753 (send_dg): Align here as well.
5755 2008-10-31 Ulrich Drepper <drepper@redhat.com>
5757 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5758 return value in case rlimit is RLIM_INFINITY.
5761 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5763 * resource/Makefile (tests): Add bug-ulimit1.
5764 * resource/bug-ulimit1.c: New file.
5767 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5768 without dot. Properly terminate the string with a null byte.
5769 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5772 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5774 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5778 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5780 2008-10-30 Ulrich Drepper <drepper@redhat.com>
5782 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5783 abort if there is no initgroups_dyn function.
5785 * resolv/res_send.c (send_dg): On timeout, only return nonzero
5786 result if any of the queries really provided an answer.
5788 2008-10-28 Ulrich Drepper <drepper@redhat.com>
5790 * po/lt.po: Update from translation team.
5792 2008-10-26 Ulrich Drepper <drepper@redhat.com>
5794 * po/id.po: Update from translation team.
5796 2008-10-24 Ulrich Drepper <drepper@redhat.com>
5798 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5799 Fix tests for existence of second reply.
5801 2008-10-23 Ulrich Drepper <drepper@redhat.com>
5803 * po/id.po: New file.
5804 Contributed by the Indonesian translation team.
5806 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
5808 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5811 2008-10-17 Jakub Jelinek <jakub@redhat.com>
5813 * elf/Makefile: Add rules to build and run tst-tls17.
5814 * elf/tst-tls17.c: New test.
5815 * elf/tst-tlsmod17a.c: New file.
5816 * elf/tst-tlsmod17b.c: Likewise.
5818 2008-10-17 Ulrich Drepper <drepper@redhat.com>
5820 * stdlib/divmod_1.c: Use correct type for dummy variable.
5821 * stdlib/mod_1.c: Likewise.
5823 2008-10-16 Ulrich Drepper <drepper@redhat.com>
5825 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5827 2008-10-16 Jakub Jelinek <jakub@redhat.com>
5829 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5830 __nonnull order for C++.
5831 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5832 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5834 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
5836 * stdlib/longlong.h: Update from GCC.
5838 2008-10-09 Jakub Jelinek <jakub@redhat.com>
5839 David S. Miller <davem@davemloft.net>
5841 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5842 make sure any registers used with 64-bit 'branch-on-register'
5843 instructions have their top 32-bits clear.
5844 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5845 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5847 2008-09-18 Andreas Schwab <schwab@suse.de>
5850 * resolv/res_send.c (send_vc): Fix use of unaligned address.
5851 Properly handle partial reads.
5853 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
5855 * elf/elf.h (STO_MIPS_PLT): New.
5857 (R_MIPS_JUMP_SLOT): New.
5858 (R_MIPS_NUM): Redefine to 128.
5859 (DT_MIPS_PLTGOT): New.
5860 (DT_MIPS_RWPLT): New.
5861 (DT_MIPS_NUM): Redefine to 0x35.
5863 2008-10-01 Ulrich Drepper <drepper@redhat.com>
5865 * timezone/africa: Update from tzdata2008f.
5866 * timezone/asia: Likewise.
5867 * timezone/australasia: Likewise.
5868 * timezone/europe: Likewise.
5869 * timezone/leapseconds: Likewise.
5870 * timezone/northamerica: Likewise.
5871 * timezone/southamerica: Likewise.
5872 * timezone/zone.tab: Likewise.
5874 2008-09-30 Ulrich Drepper <drepper@redhat.com>
5876 * nscd/connections.c: Disable use of paccept for now.
5878 2008-09-29 Ulrich Drepper <drepper@redhat.com>
5880 * socket/Versions: Remove paccept export for GLIBC_2.9.
5881 * socket/Makefile (routines): Remove paccept.
5882 * socket/sys/socket.h: Remove paccept declaration.
5884 * po/sv.po: Update from translation team.
5886 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
5888 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5889 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5891 2008-09-16 Ulrich Drepper <drepper@redhat.com>
5893 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5894 Patch by Olivier Fourdan <ofourdan@redhat.com>.
5896 2008-09-15 Ulrich Drepper <drepper@redhat.com>
5898 * sunrpc/rpc/svc.h: Declare svcfd_create.
5899 Patch by Michael Solberg <msolberg@redhat.com>.
5901 2008-09-12 Flavio Leitner <fleitner@redhat.com>
5902 Ulrich Drepper <drepper@redhat.com>
5904 * malloc/malloc.c (public_vALLOc): Try other arenas in case
5906 (public_pVALLOc): Likewise.
5908 2008-09-02 Andreas Jaeger <aj@suse.de>
5910 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5913 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
5916 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5918 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
5920 * Makefile (check-data): Check data directory in add-ons.
5921 * elf/Makefile (check-data): Likewise.
5923 2008-08-18 Roland McGrath <roland@redhat.com>
5925 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5926 * configure: Regenerated.
5927 * config.make.in (cflags-cpu): New substituted variable.
5928 (with-cpu): Variable removed.
5929 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5931 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
5934 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5935 __signbitl definition and __LONG_DOUBLE_128__ guard from:
5936 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5937 redundant. Functions which call floating point assembler operations
5938 should go into a sysdeps powerpc/fpu directory.
5940 2008-08-15 Ulrich Drepper <drepper@redhat.com>
5942 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5943 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5945 2008-08-14 Ulrich Drepper <drepper@redhat.com>
5947 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5949 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5950 change related to AT_EXECFN. We cannot use that string.
5951 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5953 * elf/dl-support.c: Remove _dl_execfn variable.
5954 (_dl_aux_init): Remove handling of AT_EXECFN.
5955 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5956 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5958 2008-08-13 Ulrich Drepper <drepper@redhat.com>
5961 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
5962 byte gets added to writes and seeks from the end use the length of
5963 the buffer and not the currently terminating NUL byte.
5966 * login/utmp_file.c (getutent_r_file): Take additional parameter.
5967 Set to true if locking failed.
5968 (getutid_r_file): Adjust caller.
5969 (pututline_file): Likewise. Return NULL in this case.
5970 Patch mostly by halesh.s@gmail.com.
5972 2008-08-12 Ulrich Drepper <drepper@redhat.com>
5975 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5977 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5979 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
5982 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5983 macro since it is now available in elf/dynamic-link.h.
5985 2008-08-12 Roland McGrath <roland@frob.com>
5987 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5988 in case used outside of libc.
5989 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5991 2008-08-11 Ulrich Drepper <drepper@redhat.com>
5993 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5994 directly instead of going through dn_comp.
5996 2008-08-11 Aurelien Jarno <aurel32@debian.org>
5998 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5999 Fix asm constraints.
6001 2008-08-07 Ulrich Drepper <drepper@redhat.com>
6004 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
6005 (IPV6_PMTUDISC_PROBE): Likewise.
6007 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
6010 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
6012 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
6013 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6016 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
6017 Added the members 'vsx' and 'arch_2_06'.
6018 (_dl_powerpc_platforms): Add the member 'power7'.
6019 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
6020 to reflect the changes required by VSX and ISA 2.06.
6021 Modify _DL_PLATFORMS_COUNT to reflect the addition of
6023 Defined PPC_PLATFORM_POWER7.
6024 (_dl_string_platform): Add support for POWER7.
6025 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
6026 capability and ISA 2.06.
6028 2008-08-07 Ulrich Drepper <drepper@redhat.com>
6031 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
6032 macro to detect use of 128 bit long double.
6033 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
6035 2008-08-05 Ulrich Drepper <drepper@redhat.com>
6037 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
6040 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
6042 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
6043 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
6045 2008-08-03 Ulrich Drepper <drepper@redhat.com>
6047 * nscd/connections.c (main_loop_poll): Pass a buffer which is
6048 guaranteed to be large enough to read inotify event. Ignore
6049 EAGAIN error. Better error message. Add branch predicition.
6050 (main_loop_epoll): Likewise.
6052 2008-08-02 Roland McGrath <roland@frob.com>
6054 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
6055 Add memory clobbers.
6057 2008-08-02 Ulrich Drepper <drepper@redhat.com>
6059 * manual/arith.texi: Avoid @strong{Note:}.
6060 * manual/creature.texi: Likewise.
6061 * manual/filesys.texi: Likewise.
6062 * manual/math.texi: Likewise.
6063 * manual/memory.texi: Likewise.
6064 * manual/resource.texi: Likewise.
6065 * manual/syslog.texi: Likewise.
6066 * manual/time.texi: Likewise.
6068 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
6071 2008-08-01 Ulrich Drepper <drepper@redhat.com>
6073 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
6074 new epoll_create1 interface.
6075 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6076 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
6077 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6079 * include/arpa/nameser.h (NS_GET16): Use const pointer.
6080 (NS_GET32): Likewise.
6082 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
6085 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
6086 use the AT_EXECFN value if it is no absolute path.
6087 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
6090 * Versions.def: Add GLIBC_2.9 to libresolv.
6091 * include/resolv.h: Remove hidden proto declarations for __ns_*
6092 functions. Add them for __dn_count_labels and __p_secstodate.
6093 * include/arpa/nameser.h: Add a number of hidden proto declarations.
6094 Define ns_msg_getflags macro here.
6095 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
6097 * resolv/Versions: Export functions from <arpa/nameser.h> from
6098 libresolv in version GLIBC_2.9.
6099 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
6101 * resolv/ns_netint.c: Likewise.
6102 * resolv/ns_parse.c: Likewise.
6103 * resolv/ns_print.c: Likewise.
6104 * resolv/ns_samedomain.c: Likewise.
6105 * resolv/ns_ttl.c: Likewise.
6106 * resolv/arpa/nameser_compat.h: Likewise.
6107 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
6109 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
6110 instead of ns_get16.
6111 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
6112 __ns_get32 instead of ns_get16 and ns_get32 respectively.
6113 (gaih_getanswer_slice): Likewise.
6114 * resolv/Makefile (libresolv-routines): Add ns_date.
6115 * resolv/ns_date.c: New file.
6117 * elf/Makefile (check-localplt.out): Also check libresolv and
6120 2008-07-31 Ulrich Drepper <drepper@redhat.com>
6122 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6125 2008-07-30 Ulrich Drepper <drepper@redhat.com>
6127 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
6128 buffer passed to NSS functions.
6130 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
6132 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
6135 * misc/syslog.c (openlog_internal): Fix compile problem.
6137 2008-07-28 Roland McGrath <roland@redhat.com>
6139 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
6141 2008-07-28 Ulrich Drepper <drepper@redhat.com>
6143 * io/ftw.c (add_object): Remove inline to avoid warning.
6145 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
6147 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
6148 Use it instead of locally defined resplen2 variable.
6149 (res_nsend): Adjust for __libc_res_nsend interface change.
6150 (send_vc): Initialize *resplen2 if necessary. Read length of
6151 package into an appropriately aligned variable. Store converted length
6152 in new variable and use it appropriately.
6153 Add branch prediction help.
6154 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
6155 and pass it on to __libc_res_nsend. Adjust all callers.
6156 (__libc_res_nsearch): Likewise.
6157 (__libc_res_nqeurydomain): Likewise.
6158 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
6160 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
6161 Define resplen2 variable and pass it to __libc_res_nsearch and then
6163 (getanswer_r): In case of incorrect DNS data don't overread buffer.
6164 Add branch prediction.
6165 (gaih_getanswer_slice): Likewise. Check for invalid data types.
6166 (gaih_getanswer): Don't decode second slice if first one failed due
6167 to a too small buffer. Don't let not found status of second
6168 decoder shadow results of the first.
6169 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
6170 and __libc_res_nquery interface changes
6171 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
6172 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
6173 __libc_res_nsearch, and __libc_res_nsend.
6174 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
6176 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
6177 __libc_res_nsearch interface changes.
6179 2008-07-27 Ulrich Drepper <drepper@redhat.com>
6181 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
6183 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
6184 file descriptors with close-on-exec set.
6185 (exec_comm_child): Fix the case where the write end of the pipe is
6186 STDOUT_FILENO already. In case it is, clear close-on-exec.
6188 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
6189 * io/pipe2.c: Likewise.
6190 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
6191 instead of __ASSUME_PACCEPT.
6192 * include/unistd.h: Declare __have_pipe2.
6193 * libio/iopopen.c: Implement "e" flag.
6194 * libio/Makefile (tests): Add tst-popen1.
6195 * libio/tst-popen1.c: New file.
6197 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
6198 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6200 2008-07-26 Ulrich Drepper <drepper@redhat.com>
6203 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
6204 success call of _IO_SEEKOFF or calls which failed because the
6205 descriptor is for a pipe.
6207 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
6210 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
6212 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
6213 F_SETFD use if we know fopen set the flag.
6215 * login/utmp_file.c (setutent_file): Minor optimization in case
6216 O_CLOEXEC is available.
6218 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
6220 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
6221 * elf/Makefile: Use pie-ccflag variable.
6222 * nscd/Makefile: Likewise.
6223 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
6225 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
6228 * Versions.def: Add GLIBC_2.9 version tag for libutil.
6229 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
6230 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
6231 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
6232 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
6233 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
6234 utmp32, utmpx32 and login32.
6235 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
6236 versions of struct utmp functions to libc and libutil.
6237 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
6238 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
6239 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
6240 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
6241 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
6242 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
6243 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
6244 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
6245 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
6246 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
6247 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
6248 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
6249 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
6250 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
6251 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
6252 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
6253 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
6254 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
6255 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
6256 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
6257 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
6258 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
6260 2008-07-26 Ulrich Drepper <drepper@redhat.com>
6262 * scripts/gen-as-const.awk: Generate more widely usable code by
6263 using 64-bit arithmetic.
6265 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
6266 the same treatment as narrow output code in last patch.
6268 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
6271 * elf/dl-load.c (local_strdup): Remove inline.
6272 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
6273 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
6276 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
6278 2008-07-25 Ulrich Drepper <drepper@redhat.com>
6280 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
6281 the new syscalls, too.
6283 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
6284 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
6287 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
6288 parameter for end of buffer. If temporary copy is too large use
6290 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
6292 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
6293 string rewrite when allocating buffer.
6295 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
6298 * nscd/connections.c (nscd_init): Clean up fcntl call.
6300 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
6301 SOCK_NONBLOCK if possible.
6303 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
6304 SOCK_CLOEXEC if available.
6306 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
6307 __libc_clntudp_bufcreate_internal.
6308 * include/sys/socket.h: Declare __have_sock_cloexec.
6309 * socket/Makefile (aux): Add have_sock_cloexec.
6310 * socket/have_sock_cloexec.c: New file.
6311 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
6312 __libc_clntudp_bufcreate.
6313 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
6314 which takes an additional parameter. Create socket with non-blocking
6315 mode and close-on-exec flag set, if wanted.
6316 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
6317 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
6318 instead of clntudp_create. The socket has already the close-on-exec
6319 flag set if SOCK_CLOEXEC is defined.
6321 2008-07-24 Ulrich Drepper <drepper@redhat.com>
6323 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6324 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
6326 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
6327 non-blocking mode by using socket, paccept, and inotify_init1.
6329 * Versions.def (glibc): Add GLIBC_2.9.
6330 * io/Makefile (routines): Add dup3 and pipe2.
6331 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
6332 * io/dup3.c: New file.
6333 * io/pipe2.c: New file.
6334 * posix/unistd.h: Declare dup3 and pipe2.
6335 * socket/Makefile (routines): Add paccept.
6336 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
6337 * socket/paccept.c: New file.
6338 * socket/sys/socket.h: Declare paccept.
6339 * sysdeps/unix/syscalls.list: Add entry for dup3.
6340 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
6341 epoll_create2 and inotify_init1.
6342 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
6343 * sysdeps/unix/sysv/linux/paccept.c: New file.
6344 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
6346 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
6347 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
6348 inotify_init1, and pipe2 entries.
6349 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
6350 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
6351 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
6352 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
6353 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
6354 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
6356 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
6357 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
6358 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
6359 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
6360 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
6361 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
6362 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
6363 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
6364 EPOLL_NONBLOCK. Declare epoll_create2.
6365 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
6367 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
6368 IN_NONBLOCK. Declare inotify_init1.
6369 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
6371 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
6374 * elf/elf.h: Define AT_EXECFN.
6375 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
6377 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
6378 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
6379 if __ASSUME_AT_EXECFN is defined.
6380 (_dl_aux_init): Handle AT_EXECFN.
6381 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
6383 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
6384 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
6385 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
6386 _dl_execfn if available and avoid compatibility code if
6387 __ASSUME_AT_EXECFN is defined.
6389 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
6390 _dl_discover_osversion only for older kernels.
6392 2008-07-22 Roland McGrath <roland@frob.com>
6394 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
6396 2008-07-21 Roland McGrath <roland@frob.com>
6398 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
6399 returned too much data out of line.
6401 2008-07-20 Ulrich Drepper <drepper@redhat.com>
6403 * locale/setlocale.c (setname): Remove inline to avoid compiler
6407 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6409 2008-07-15 Ulrich Drepper <drepper@redhat.com>
6411 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6412 doesn't manage to write anything, fail.
6414 * malloc/hooks.c (__malloc_check_init): Remove printf.
6416 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6418 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6420 2008-07-12 Ulrich Drepper <drepper@redhat.com>
6422 * nscd/connections.c (main_loop_poll): Fix handling of read errors
6424 (main_loop_epoll): Likewise.
6426 2008-07-09 Ulrich Drepper <drepper@redhat.com>
6428 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6430 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6431 if DEBUG is defined.
6433 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6434 query. Adjust buffer size computation for padding.
6436 2008-07-08 Ulrich Drepper <drepper@redhat.com>
6438 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6439 * stdio-common/tst-setvbuf1.c: New file.
6440 * stdio-common/tst-setvbuf1.expect: New file.
6443 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6444 when selecting fully-buffered stream.
6445 Patch by Wang Xin <wxinee@gmail.com>.
6447 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
6449 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6450 (__open_2): New function.
6451 (__open64_2): New alias to __open_2.
6452 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6453 (__openat_2): New function.
6454 (__openat64_2): New alias to __openat_2.
6456 2008-07-06 Ulrich Drepper <drepper@redhat.com>
6459 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6461 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6463 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6464 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6465 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6467 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6468 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6469 * sysdeps/mach/hurd/send.c (__send): Likewise.
6470 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6471 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6473 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
6475 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6476 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6477 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6478 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6479 * hurd/get-host.c (_hurd_get_host_config): Likewise.
6480 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6482 2008-06-27 Ulrich Drepper <drepper@redhat.com>
6485 * time/strptime_l.c: Don't clear s.era_cnt after successful match
6487 Patch by Petr Baudis.
6489 2008-06-26 Ulrich Drepper <drepper@redhat.com>
6491 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6492 Patch by Peter Jones <pjones@redhat.com>.
6494 2008-06-25 Ulrich Drepper <drepper@redhat.com>
6497 * stdlib/canonicalize.c (__realpath): readlink can write too much
6498 into the buffer on platforms without PATH_MAX.
6500 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
6503 * posix/tst-regex.c (main): Rename to...
6504 (do_test): ... this. Remove cmdline option processing.
6506 (TEST_FUNCTION): Define.
6507 (CMDLINE_OPTIONS): Define.
6509 2008-06-25 Ulrich Drepper <drepper@redhat.com>
6512 * configure.in: Add -Werror to -fstack-protector test to catch
6513 unsupported architectures.
6514 Patch by Gilles Esponasse <g.esp@free.fr>.
6516 2008-06-17 Joseph Myers <joseph@codesourcery.com>
6518 * stdlib/tst-setcontext.c: Set back_in_main before exit if
6519 getcontext returns ENOSYS.
6521 2008-06-18 Ulrich Drepper <drepper@redhat.com>
6523 * nscd/connections.c (main_loop_poll): Fix test for read error.
6524 (main_loop_epoll): Likewise.
6526 2008-06-13 Ulrich Drepper <drepper@redhat.com>
6528 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6529 better place so it is not called when nscd is used.
6531 * nscd/connections.c: Also recognize and handle changes to the
6532 resolver configuration file.
6534 2008-06-12 Ulrich Drepper <drepper@redhat.com>
6536 * time/strftime.c: Pass reference to tzset_called around to handle
6540 * time/strftime.c (__strftime_internal): Call tzset() only
6541 when printing timezone-dependent values.
6542 Based on a patch by Petr Baudis <pasky@suse.cz>.
6544 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6545 unconditionally use second gaih_getanswer_slice result.
6547 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6548 (getaddrinfo): RES must always be non-NULL.
6550 2008-06-12 Jakub Jelinek <jakub@redhat.com>
6552 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6554 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6555 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6557 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6560 2008-06-12 Ulrich Drepper <drepper@redhat.com>
6562 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6564 * nscd/connections.c (inotify_fd): New variable.
6565 (nscd_init): Try to open an inotify descriptor.
6566 If successful, watch files for databases using inotify instead of
6567 having prune threads stat the files.
6568 (nscd_run_prune): Recognize clear_cache flag being set and call
6569 prune_cache appropriately.
6570 (main_loop_poll): Add inotify descriptor to wait set and handle the
6572 (main_loop_epoll): Likewise.
6573 * nscd/cache.c (prune_cache): Don't stat files for databases if
6575 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6576 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6578 * nscd/grpcache.c (cache_addgr): Correctly compute size of
6579 fixed-size portion of the record.
6580 * nscd/servicescache.c (cache_addserv): Likewise.
6581 * nscd/pwdcache.c (cache_addpw): Likewise.
6582 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6584 2008-06-11 Ulrich Drepper <drepper@redhat.com>
6586 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6587 out we don't use uninitialized memory.
6589 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6592 2008-06-10 Ulrich Drepper <drepper@redhat.com>
6594 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6595 ignore T_DNAME messages.
6596 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6598 2008-06-05 Jakub Jelinek <jakub@redhat.com>
6600 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6601 Avoid segfault if first GETC returns eof/'\0'/'\n'.
6603 2008-06-03 Jakub Jelinek <jakub@redhat.com>
6605 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6606 instead of portstr to nscd_getserv_r. Patch by
6607 Roman Kagan <rkagan@mail.ru>.
6609 2008-05-26 Jim Meyering <meyering@redhat.com>
6611 Remove more useless "if" tests before "free".
6612 * include/inline-hashtab.h (htab_delete): Likewise.
6613 * libio/freopen.c (freopen): Likewise.
6614 * libio/freopen64.c (freopen64): Likewise.
6615 * locale/programs/ld-collate.c (collate_read): Likewise.
6616 * misc/fstab.c (libc_freeres_fn): Likewise.
6617 * posix/glob.c (globfree): Likewise.
6619 2008-05-24 Ulrich Drepper <drepper@redhat.com>
6621 * string/Makefile (strop-tests): Add memmem.
6622 * string/test-memmem.c: New file.
6623 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6624 (test_init): Size buf1 according to BUF1PAGES.
6626 2008-05-24 Jakub Jelinek <jakub@redhat.com>
6628 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6629 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6630 (CFLAGS-scanf17.c): New.
6631 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6632 * stdio-common/scanf15.c (main): Likewise.
6633 * stdio-common/scanf16.c: New file.
6634 * stdio-common/scanf17.c: New file.
6636 2008-05-24 Ulrich Drepper <drepper@redhat.com>
6638 * resolv/res_send.c (send_dg): If we already have one of two
6639 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6640 use the one answer insted of failing.
6642 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
6644 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6645 being executed on PowerPC as the expected result exceeds IBM
6646 long double 128 __LDBL_MAX__.
6648 2008-05-21 Roland McGrath <roland@redhat.com>
6650 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6652 * Makefile (check-data): Use $(abi-name) before other guesses.
6653 Look in $(add-ons) dirs before scripts/data/.
6654 * elf/Makefile (check-data): Likewise.
6656 * scripts/soversions.awk: Grok ABI line.
6657 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6658 Emit definition for abi-name variable.
6660 2008-05-21 Ulrich Drepper <drepper@redhat.com>
6662 * string/endian.h: Define new fixed-size hto* and *toh macros only
6665 * iconvdata/Depend: Add localedata.
6667 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6669 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6671 2008-05-08 David S. Miller <davem@davemloft.net>
6673 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6675 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6676 (__SYSCALL_CLOBBERS): Remove %g* registers.
6677 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6678 (__SYSCALL_CLOBBERS): Likewise.
6679 * scripts/data/localplt-sparc-linux-gnu.data: New file.
6680 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6682 2008-05-21 Jakub Jelinek <jakub@redhat.com>
6684 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6685 (CALL_ERRNO_LOCATION): Define.
6686 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6687 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6688 (CALL_ERRNO_LOCATION): Define.
6689 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6690 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6691 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6693 2008-05-20 Ulrich Drepper <drepper@redhat.com>
6695 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6698 2008-05-20 Jakub Jelinek <jakub@redhat.com>
6700 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6701 (FIRST_FRAME_POINTER): Define.
6703 2008-05-09 David S. Miller <davem@davemloft.net>
6705 * sysdeps/sparc/sparc64/backtrace.c: New file.
6707 2008-05-14 David S. Miller <davem@davemloft.net>
6709 * sysdeps/sparc/machine-gmon.h: New file.
6710 * sysdeps/sparc/sparc-mcount.S: Likewise.
6711 * sysdeps/sparc/Makefile: Add sparc-mcount target to
6712 sysdep_routines in gmon directory.
6714 2008-05-19 Jakub Jelinek <jakub@redhat.com>
6716 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6718 2008-05-19 Ulrich Drepper <drepper@redhat.com>
6720 * resolv/res_query.c (__libc_res_nquery): In case one of two
6721 answer was too short don't try to read that answer's header.
6723 * resolv/res_send.c (send_dg): In case of timeout and there are
6724 two queries and one has been answered, return value indicating
6727 2008-05-18 Ulrich Drepper <drepper@redhat.com>
6729 * nscd/cache.c (cache_add): Take additional parameter specifying
6730 whether this is in response of a cache refill. Check alignment
6731 of package data. Revamp waking of pruning thread.
6732 (prune_cache): Small optimization.
6733 * nscd/nscd.h: Adjust cache_add prototypes.
6734 * nscd/aicache.c: Adjust cache_add calls.
6735 * nscd/grpcache.c: Likewise.
6736 * nscd/hstcache.c: Likewise.
6737 * nscd/initgrcache.c: Likewise.
6738 * nscd/pwdcache.c: Likewise.
6739 * nscd/servicescache.c: Likewise.
6740 * nscd/connections.c (restart): Really disable cache use before
6741 exec attempt. If it fails, reenable cache.
6742 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
6743 time to max to be able to notice concurrent cache additions. Unlock
6744 prune_lock while performing gc. Afterwards compute wakeup time with
6745 current wakeup_time value in mind.
6747 2008-05-17 Ulrich Drepper <drepper@redhat.com>
6749 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6751 * nscd/mem.c (gc): Correctly determine highest used array element
6754 * nscd/mem.c (markrange): Add assert to check entries are all
6755 aligned. Small cleanup in bitmap use.
6757 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6758 blockoff of type nscd_ssize_t.
6759 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6760 (mempoll_alloc): Record block offset and not address.
6762 * nscd/mem.c (gc): Fix test for stack overuse.
6764 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6767 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6768 entry is available, believe it.
6770 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6771 no answers return NSS_STATUS_NOTFOUND.
6772 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6773 buffer does not have any content.
6775 2008-05-16 Ulrich Drepper <drepper@redhat.com>
6777 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6779 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6780 lookup, don't assign canon unconditionally.
6782 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6784 * string/Makefile (distribute): Add str-two-way.h.
6786 2008-03-29 Eric Blake <ebb9@byu.net>
6788 Rewrite string searches to O(n) rather than O(n^2).
6789 * string/str-two-way.h: New file. For linear fixed-allocation
6791 * string/memmem.c: New implementation.
6792 * string/strstr.c: New implementation.
6793 * string/strcasestr.c: New implementation.
6795 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
6797 * posix/regcomp.c (optimize_utf8): Add a note on why we test
6799 (calc_first): Initialize constraint field.
6800 (duplicate_node_closure): Use it instead of special casing ANCHORS.
6801 Use search_duplicated_node to avoid loops. Fix grammar.
6802 (duplicate_node): Merge constraint field for all node types.
6803 (calc_eclosure_iter): Look at constraint field for all node types.
6804 * posix/regex_internal.c (create_cd_newstate): Don't look at
6807 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6810 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6813 * string/endian.h: Add macros for fixed-size endian conversion.
6814 * bits/byteswap.h: Allow inclusion from <endian.h>.
6815 * sysdeps/i386/bits/byteswap.h: Likewise.
6816 * sysdeps/ia64/bits/byteswap.h: Likewise.
6817 * sysdeps/s390/bits/byteswap.h: Likewise.
6818 * sysdeps/x86_64/bits/byteswap.h: Likewise.
6819 * string/Makefile (tests): Add tst-endian.
6820 * string/tst-endian.c: New file.
6822 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6823 Patch by Reuben Thomas.
6825 2008-05-14 Joseph Myers <joseph@codesourcery.com>
6827 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6829 2008-05-14 Ulrich Drepper <drepper@redhat.com>
6831 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6834 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6836 (BODY for __gconv_transform_internal_ascii): Likewise.
6839 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6840 to be treated like link-local addresses.
6841 (match_prefix): Don't treat IPv4 loopback address special when
6842 converting to v4 mapped addressed.
6844 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6846 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6847 * posix/tst-rfc3484-2.c: Likewise.
6848 * posix/tst-rfc3484-3.c: Likewise.
6850 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6853 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6855 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6857 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6859 2008-05-13 Ulrich Drepper <drepper@redhat.com>
6861 * po/lt.po: New file. From Lituanian translation team.
6863 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
6865 Introduce TLS descriptors for i386 and x86_64.
6866 * include/inline-hashtab.h: New file, copied from 2005's
6867 libiberty, with fix for memory leak imported afterwards by
6868 Glauber de Oliveira Costa.
6869 * elf/tlsdeschtab.h: New file.
6870 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6871 (_dl_allocate_static_tls): ... here. Rearrange failure path.
6872 (CHECK_STATIC_TLS): Move to...
6873 * elf/dynamic-link.h: ... this file.
6874 (TRY_STATIC_TLS): New macro.
6875 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6876 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6877 R_386_TLS_DESC): Define.
6878 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6880 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6881 R_X86_64_TLSDESC): Define.
6882 (R_386_NUM, R_X86_64_NUM): Adjust.
6883 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6884 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6885 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6886 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6887 release tlsdesc_table.
6888 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6889 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6890 (elf_machine_rel): Handle R_386_TLS_DESC.
6891 (elf_machine_rela): Likewise.
6892 (elf_machine_lazy_rel): Likewise.
6893 (elf_machine_lazy_rela): Likewise.
6894 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6895 * sysdeps/i386/dl-tlsdesc.S: New file.
6896 * sysdeps/i386/dl-tlsdesc.h: New file.
6897 * sysdeps/i386/tlsdesc.c: New file.
6898 * sysdeps/i386/tlsdesc.sym: New file.
6899 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6901 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6902 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6903 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6904 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
6905 release tlsdesc_table.
6906 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6907 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6908 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6909 (elf_machine_rel): Handle R_X86_64_TLSDESC.
6910 (elf_machine_rela): Likewise.
6911 (elf_machine_lazy_rel): Likewise.
6912 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6913 (__tls_get_addr): Do not declare for non-shared compiles.
6914 * sysdeps/x86_64/dl-tlsdesc.S: New file.
6915 * sysdeps/x86_64/dl-tlsdesc.h: New file.
6916 * sysdeps/x86_64/tlsdesc.c: New file.
6917 * sysdeps/x86_64/tlsdesc.sym: New file.
6918 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6919 tlsdesc_table for both 32- and 64-bit structs.
6921 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6923 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6924 its own function. This reduces the frame setup costs and more.
6926 2008-02-11 Joseph Myers <joseph@codesourcery.com>
6929 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6930 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6932 2008-05-11 Ulrich Drepper <drepper@redhat.com>
6934 * io/openat.c (__openat_2): Also pass fd to __openat.
6935 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6936 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6938 * string/tester.c (test_memcmp): Add a few more tests.
6939 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6941 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6943 * nscd/cache.c (cache_add): Before returning with failure and this
6944 is the first use of the record, mark it as unusable.
6945 * nscd/aicache.c: Don't touch the dataset after cache_add returns
6946 reporting a failure.
6947 * nscd/grpcache.c: Likewise
6948 * nscd/hstcache.c: Likewise.
6949 * nscd/initgrcache.c: Likewise.
6950 * nscd/pwdcache.c: Likewise.
6951 * nscd/servicescache.c: Likewise.
6953 2008-05-10 Roland McGrath <roland@redhat.com>
6956 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6958 2008-05-08 David S. Miller <davem@davemloft.net>
6960 * misc/truncate64.c (truncate64): Use __truncate not truncate.
6962 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6963 (__ieee754_y0l): Likewise.
6964 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6965 (__ieee754_y1l): Likewise.
6966 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6967 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6968 frexpl and ldexpl. math_private.h provides them and the latter
6970 (__log1pl): Use __frexpl.
6972 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6974 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6976 * include/arpa/nameser_compat.h: Define T_UNSPEC.
6977 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6978 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6979 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6981 (_nss_nis_gethostbyname4_r): New function.
6982 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6983 Change to also handle af==AF_UNSPEC.
6984 (get_tablename): New function. Use it to avoid duplication.
6985 (_nss_nisplus_gethostbyname4_r): New function.
6986 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6988 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6989 * nss/nss.h: Define struct gaih_addrtuple.
6990 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6992 (_nss_files_gethostbyname4_r): New function.
6993 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6994 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6996 * resolv/res_query.c (__libc_res_nquery): Take two additional
6997 parameters for second answer buffer. Handle type=T_UNSPEC to mean
6998 look up IPv4 and IPv6.
7000 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
7001 for an additional query and answer buffer. Pass to send_vc and
7003 (send_vc): Send possibly two requests and receive two answers.
7004 (send_dg): Likewise.
7005 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
7007 (_nss_dns_gethostbyname4_r): New function.
7008 (gaih_getanswer_slice): Likewise.
7009 (gaih_getanswer): Likewise.
7010 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
7011 __libc_res_nquery call.
7012 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7013 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
7014 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
7017 2008-05-05 David S. Miller <davem@davemloft.net>
7019 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
7020 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
7022 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7024 Fix termios bit macros.
7025 Move *DLY definitions where they belong, in termios.h.
7026 Add *[0-3] definitions.
7027 Fixes confusion between VT and FF.
7028 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
7029 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
7030 are already defined to avoid collision with termios.h.
7031 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
7032 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
7033 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
7034 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
7035 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
7036 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
7037 VTDLY, VT0, VT1): New macros.
7038 [__USE_GNU] (OLCUC): Change value of macro.
7039 [__USE_XOPEN] (OFILL): New macro.
7040 [__USE_BSD] (CRTSCTS): Change value.
7041 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
7042 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
7043 (B7200, B14400, B28800, B76800): New macros.
7045 2008-05-01 David S. Miller <davem@davemloft.net>
7047 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
7048 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
7049 (gen-as-const-headers): Add it.
7050 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
7051 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
7052 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
7053 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
7055 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
7056 six system call parameters.
7057 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
7059 2008-04-30 Ulrich Drepper <drepper@redhat.com>
7061 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
7063 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
7064 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
7066 2008-04-30 Jakub Jelinek <jakub@redhat.com>
7068 * stdlib/tst-setcontext.c: Include unistd.h.
7070 2008-04-25 David S. Miller <davem@davemloft.net>
7072 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
7073 Pass "union semun" properly in to sys_ipc, it must be passed
7074 by value, not by reference.
7076 2008-04-22 Jakub Jelinek <jakub@redhat.com>
7078 * nscd/Makefile (nscd-cflags): Set back to -fpie.
7079 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
7080 * nscd/connections.c (mem_in_flight): Likewise.
7082 * nscd/nscd.h (dbs): Make hidden.
7084 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
7085 Avoid returning -1, return 0 instead.
7087 2008-04-19 Ulrich Drepper <drepper@redhat.com>
7089 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
7091 2008-04-15 Ulrich Drepper <drepper@redhat.com>
7094 * sysdeps/unix/sysv/linux/times.c: New file.
7097 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
7098 mem_in_flight_list variables. Add new parameter to mempool_alloc
7100 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
7101 appropriate mem_in_flight element.
7102 (gc): Take allocations which have not yet been committed to the
7103 database into account.
7104 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
7105 Reset mem_in_flight before returning.
7106 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
7107 cue it up in mem_in_flight_list.
7108 * nscd/aicache.c: Adjust mempool_alloc call.
7109 * nscd/grpcache.c: Likewise.
7110 * nscd/hstcache.c: Likewise.
7111 * nscd/initgrcache.c: Likewise.
7112 * nscd/pwdcache.c: Likewise.
7113 * nscd/servicescache.c: Likewise.
7114 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
7117 * nscd/connections.c (handle_request): Provide better error message
7118 in case SELinux forbids the service.
7120 * version.h (VERSION): Bump to 2.8.90.
7122 2008-04-17 Jakub Jelinek <jakub@redhat.com>
7124 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
7126 2008-04-11 Ulrich Drepper <drepper@redhat.com>
7128 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
7129 Also use for 32-bit.
7130 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
7131 __nextafter instead of nextafter to avoid local PLT.
7132 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
7133 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7135 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
7137 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
7139 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
7140 <fenv_libc.h> instead of <fenv.h>.
7141 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
7142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
7144 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
7146 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
7147 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
7148 function from fegetexcept and make old name weak alias.
7149 * include/fenv.h: Declare __fegetexcept.
7150 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
7152 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
7153 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
7155 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
7156 instead of frexpl to avoid local PLT.
7157 * math/s_significandl.c (__significandl): Use __ilogbl instead of
7158 ilogbl to avoid local PLT.
7159 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
7160 instead of ldexpl to avoid local PLT.
7161 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
7162 __roundl not roundl to avoid local PLT.
7163 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
7164 local PLTs. Use __sincosl instead of separate sinl and cosl
7166 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7168 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
7169 version for ppc64 to 2.4.21 since without it makecontext will fail.
7171 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
7173 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
7175 [__powerpc64__] (TLS_GD): Likewise.
7177 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
7180 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
7181 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
7183 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
7184 Likewise. Also account for when x is an odd number between 2^52
7186 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
7187 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
7188 * math/libm-test.inc (lround_test, llround_test): Added test cases to
7189 detect aforementioned erroneous conditions.
7191 2008-04-11 Jakub Jelinek <jakub@redhat.com>
7193 * configure.in: Check for -fno-section-anchors in addition to
7194 -fno-toplevel-reorder.
7196 2008-04-11 Ulrich Drepper <drepper@redhat.com>
7198 * include/features.h (__GLIBC_MINOR__): Bump to 8.
7200 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
7201 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
7202 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
7203 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
7204 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
7205 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
7207 2008-04-11 Jakub Jelinek <jakub@redhat.com>
7210 * time/era.c: Transform __libc_setlocale_lock into rwlock.
7211 * time/alt_digit.c: Likewise.
7212 * wcsmbs/wcsmbsload.c: Likewise.
7214 2008-04-10 Ulrich Drepper <drepper@redhat.com>
7216 * version.h (VERSION): Bump to 2.8.
7218 * timzeone/asia: Update from tzdata2008b.
7219 * timezone/backward: Likewise.
7220 * timezone/europe: Likewise.
7221 * timezone/northamerica: Likewise.
7222 * timezone/southamerica: Likewise.
7223 * timezone/iso3166.tab: Likewise.
7224 * timezone/leapseconds: Likewise.
7225 * timezone/zone.tab: Likewise.
7226 * timezone/private.h: Update from tzcode2008a.
7227 * timezone/zdump.c: Likewise.
7228 * timezone/zic.c: Likewise.
7230 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
7233 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
7234 Define additonal Data Cache Block instruction macros.
7235 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
7236 Replace dcbst with dcbf and sync with sync/isync.
7238 2008-02-21 Alan Modra <amodra@bigpond.net.au>
7240 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
7241 Always set ELF_RTYPE_CLASS_PLT.
7242 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
7244 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
7246 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
7247 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
7248 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
7249 For ISA 2.01 and later replace mftb with mfspr 268.
7251 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
7254 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
7255 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
7257 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
7260 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
7261 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
7262 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
7263 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
7265 2008-04-10 Jakub Jelinek <jakub@redhat.com>
7267 * stdlib/tst-makecontext.c (othervar): New variable.
7268 (cf): Test sign extending the argument to long.
7270 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
7272 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
7273 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
7274 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
7275 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
7276 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
7277 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
7278 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
7280 2008-02-22 Alan Modra <amodra@bigpond.net.au>
7282 * elf/Makefile (tests): Substitute tests-vis-yes here.
7283 (tests-vis-yes): Delete.
7284 (modules-name, modules-vis-yes): Similarly.
7286 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
7289 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7290 Preserve sign in signgamp when x is zero.
7292 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
7294 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
7295 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
7296 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
7297 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
7298 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
7299 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
7301 2008-04-09 Ulrich Drepper <drepper@redhat.com>
7304 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
7308 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
7309 a reserved error value.
7311 * stdlib/tst-makecontext.c: Change parameter to cf to negative
7312 value to check for correct sign extension.
7315 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7316 Copy 64-bit parameter values even though this is not required in
7319 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
7322 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
7324 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
7327 2008-04-09 Jakub Jelinek <jakub@redhat.com>
7329 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
7331 2008-04-09 Ulrich Drepper <drepper@redhat.com>
7334 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
7335 in line-buffered stream failed.
7336 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7338 2008-04-08 Ulrich Drepper <drepper@redhat.com>
7341 * scripts/abi-versions.awk: If the version specified by
7342 --enable-oldest-abi is older than the first version for this
7343 architecture, use the default version.
7345 * locale/programs/ld-collate.c (collate_read): Ignore script lines
7346 as well when ignoring the whole category.
7348 2008-04-07 Ulrich Drepper <drepper@redhat.com>
7351 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
7352 ETHERTYPE_* definitions.
7353 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
7355 2008-04-07 Jakub Jelinek <jakub@redhat.com>
7357 * stdlib/mbtowc.c (__no_r_state): Remove.
7358 (mbtowc): New static state variable. Use it instead of
7360 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
7361 (__wctomb_state): New hidden variable.
7362 (wctomb): Use __wctomb_state instead of __no_r_state.
7363 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
7364 (__wctomb_state): New extern decl.
7365 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
7367 2008-04-07 Ulrich Drepper <drepper@redhat.com>
7370 * resolv/res_init.c: Handle scope IDs in resolv.conf.
7372 2008-04-07 Jakub Jelinek <jakub@redhat.com>
7374 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
7376 2008-04-06 Ulrich Drepper <drepper@redhat.com>
7378 * po/nl.po: Update from translation team.
7380 2008-03-31 Ulrich Drepper <drepper@redhat.com>
7383 * string/strfry.c: Handle empty strings again.
7385 2008-03-30 Ulrich Drepper <drepper@redhat.com>
7388 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
7389 before looking for translation.
7390 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
7391 * locale/freelocale.c: Likewise.
7392 * locale/newlocale.c: Likewise.
7393 * locale/setlocale.c: Likewise.
7394 Based partially on a patch by ryo@np.css.fujitsu.com.
7396 2008-03-30 Jakub Jelinek <jakub@redhat.com>
7398 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
7399 acquiring wrlock. Do conv_tab allocation while holding lock.
7400 * intl/Makefile: Add rules to build and run tst-gettext6.
7401 * intl/tst-gettext6.c: New test.
7402 * intl/tst-gettext6.sh: New file.
7404 2008-03-30 Ulrich Drepper <drepper@redhat.com>
7406 * po/nl.po: Update from translation team.
7408 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7409 provided through st_blksize, try the default size before giving up.
7411 2008-03-29 Ulrich Drepper <drepper@redhat.com>
7413 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7416 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7418 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7419 error message. POSIX today does not require the messages to be in
7420 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
7423 * sunrpc/auth_unix.c: Unify printed strings.
7424 * sunrpc/clnt_tcp.c: Likewise.
7425 * sunrpc/clnt_udp.c: Likewise.
7426 * sunrpc/clnt_unix.c: Likewise.
7427 * sunrpc/svc_tcp.c: Likewise.
7428 * sunrpc/svc_udp.c: Likewise.
7429 * sunrpc/svc_unix.c: Likewise.
7430 * sunrpc/xdr.c: Likewise.
7431 * sunrpc/xdr_array.c: Likewise.
7432 * sunrpc/xdr_rec.c: Likewise.
7433 * sunrpc/xdr_ref.c: Likewise.
7434 * locale/programs/ld-time.c (time_finish): Unify messages.
7435 * locale/programs/locfile.c (handle_copy): Fix typo.
7436 * nscd/nscd.c (options): Fix typo.
7439 * stdlib/strtod_l.c: Use correct sign for result in one more
7441 Patch by Eric Blake <ebb9@byu.net>.
7443 2008-03-27 Jakub Jelinek <jakub@redhat.com>
7445 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7446 and creat system calls.
7447 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7449 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7452 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7453 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7455 2008-03-27 Ulrich Drepper <drepper@redhat.com>
7457 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7458 <linux/limits.h> has defined it.
7459 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7460 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7462 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7463 it instead of ARG_MAX.
7465 2008-03-25 Jakub Jelinek <jakub@redhat.com>
7467 * posix/gai.conf: Fix comment for scope nullbits.
7468 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7469 default to 128 bits for v4 mapped addresses.
7471 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
7473 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7474 ptrace call to get the ieee_instruction_pointer from the kernel.
7475 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7476 ptrace call to set the ieee_instructtion_pointer.
7477 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7478 Add comment that ieee_instruction_pointer is always 0.
7480 2008-03-09 Andreas Jaeger <aj@suse.de>
7483 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7484 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7485 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7487 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7488 (rint_test): Likewise.
7490 2008-03-24 Ulrich Drepper <drepper@redhat.com>
7492 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7494 (__nisfind_server): Similar for open readColdStartFile call.
7495 Patch partially by Jim Meyering.
7496 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7497 around internal_setent call.
7499 * po/vi.po: New Vietnamese translation.
7501 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7504 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7505 remove CLONE_STOPPED.
7507 2008-02-10 Jim Meyering <meyering@redhat.com>
7509 Remove useless "if" before "free":
7510 * elf/ldconfig.c (parse_conf_include): Likewise.
7511 * gmon/gmon.c (weak_alias): Likewise.
7512 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7513 * inet/rcmd.c (__validuser2_sa): Likewise.
7514 * intl/bindtextdom.c (set_binding_values): Likewise.
7515 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7516 * libio/genops.c (save_for_backup): Likewise.
7517 * libio/wgenops.c (save_for_wbackup): Likewise.
7518 * locale/programs/ld-collate.c (collate_read): Likewise.
7519 * locale/programs/linereader.c (get_string): Likewise.
7520 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7521 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7522 * resolv/res_debug.c (do_section): Likewise.
7523 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7524 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7525 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7526 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7527 * time/tzset.c (tzset_internal): Likewise.
7529 2008-03-18 Jakub Jelinek <jakub@redhat.com>
7531 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7534 2008-03-11 Ulrich Drepper <drepper@redhat.com>
7537 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7538 not stream for output file. Open output file here.
7539 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7540 and output file name.
7541 (process_fd): Likewise.
7542 (process_file): Likewise.
7543 (main): Adjust callers of changed functions.
7544 * iconv/iconv_prog.h: Adjust prototype.
7546 2008-03-09 Andreas Jaeger <aj@suse.de>
7549 * sysdeps/ia64/ieee754.h: Use protected namespace
7550 __BIG_ENDIAN/__LITTLE_ENDIAN.
7551 * sysdeps/ieee754/ieee754.h: Likewise.
7552 Patch by Aurelien Jarno <aurelien@aurel32.net>.
7554 2008-03-08 Roland McGrath <roland@frob.com>
7556 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7557 ignore a signal that came from a machine exception, treat it as a
7558 fatal core-dump signal instead.
7559 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7561 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7562 Clear DF bit in thread state's eflags.
7563 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7565 2008-03-08 Ulrich Drepper <drepper@redhat.com>
7568 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7569 of NAN(...) sequence.
7570 * stdlib/Makefile (tests): Add tst-strtod6.
7571 * stdlib/tst-strtod6.c: New file.
7573 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7576 * posix/getopt.c (_getopt_internal_r): Clarify error message by
7577 putting offending option character in quotes. Clean up error
7579 * po/be.po: Adjust msgstr in translation file.
7580 * po/bg.po: Likewise.
7581 * po/ca.po: Likewise.
7582 * po/cs.po: Likewise.
7583 * po/da.po: Likewise.
7584 * po/de.po: Likewise.
7585 * po/es.po: Likewise.
7586 * po/fr.po: Likewise.
7587 * po/hr.po: Likewise.
7588 * po/ko.po: Likewise.
7589 * po/nl.po: Likewise.
7590 * po/rw.po: Likewise.
7591 * po/sk.po: Likewise.
7592 * po/sv.po: Likewise.
7593 * po/tr.po: Likewise.
7594 * po/zh_CN.po: Likewise.
7595 * po/zh_TW.po: Likewise.
7598 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7599 Patch by Roland Bless <roland@bless.de>.
7601 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7603 * elf/Makefile (routines): Add dl-sysdep.
7604 (elide-routines.os): Likewise.
7606 2008-03-07 Ulrich Drepper <drepper@redhat.com>
7609 * elf/dl-sysdep.c: Undefine ROUND after use.
7610 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7611 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7612 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7613 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7615 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7616 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7618 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7620 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7621 _dl_tls_get_addr_soft element.
7622 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7623 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7624 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7626 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7627 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7628 of internal_function.
7630 * stdlib/Makefile (aux): Add tens_in_limb.
7631 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7632 * stdlib/tens_in_limb.c: ...here. New file.
7635 * sysdeps/unix/sysv/linux/pathconf.h: Declare
7636 __statfs_chown_restricted.
7637 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7638 for _PC_CHOWN_RESTRICTED.
7639 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7640 Implement __statfs_chown_restricted.
7641 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7642 _POSIX_CHOWN_RESTRICTED value to zero.
7643 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7646 * sysdeps/x86_64/rtld-memset.c: New file.
7648 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
7650 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7652 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7653 Barcelona machine. Make default fall through branch of
7654 __x86_64_preferred_memory_instruction check as the integer code path.
7656 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7658 * sysdeps/x86_64/cacheinfo.c
7659 (__x86_64_preferred_memory_instruction): New variable.
7660 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7662 * sysdeps/x86_64/memset.S: Rewrite.
7664 2008-03-04 Jakub Jelinek <jakub@redhat.com>
7666 * include/stdio.h (__asprintf_chk, __dprintf_chk,
7667 __obstack_printf_chk): New prototypes.
7668 (__vasprintf_chk, __vdprintf_chk,
7669 __obstack_vprintf_chk): Likewise.
7670 Add libc_hidden_proto.
7672 (_IO_obstack_jumps): No longer static, add attribute_hidden.
7673 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7674 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7675 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7676 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7677 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7678 __obstack_vprintf_chk): New prototypes.
7679 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7680 obstack_vprintf): New inlines.
7681 * debug/dprintf_chk.c: New file.
7682 * debug/vdprintf_chk.c: New file.
7683 * debug/asprintf_chk.c: New file.
7684 * debug/vasprintf_chk.c: New file.
7685 * debug/obprintf_chk.c: New file.
7686 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7687 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7688 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7690 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7691 vdprintf_chk and obprintf_chk, set CFLAGS for them.
7692 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7693 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7695 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7696 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7697 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7698 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7699 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7701 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7702 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7703 obstack_vprintf_chk.
7704 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7705 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7706 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7707 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7708 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7709 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7711 2008-03-04 Ulrich Drepper <drepper@redhat.com>
7714 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7715 Patch by Roy Marples <roy@marples.name>.
7718 * malloc/malloc.c: Fix typo in comment.
7721 * locale/iso-639.def: Add Shuswap.
7723 2008-02-25 Jakub Jelinek <jakub@redhat.com>
7726 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7727 overwrite *h_errnop/*errnop values from getanswer_r in case of
7730 2008-03-03 Ulrich Drepper <drepper@redhat.com>
7733 * nscd/connections.c (dbs): Add initializers for .suggested_module.
7734 (verify_persistent_db): Remove one unnecessary test and add a new one
7735 for bad configuration.
7736 (nscd_init): Improve error reported when persistent database cannot
7738 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7739 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7740 .suggested_module and .max_db_size and case config file says the
7742 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7745 * nis/ypclnt.c (yp_order): Fix handling of return value of
7747 Patch by Jeff Moyer <jmoyer@redhat.com>.
7749 * po/fr.po: Update from translation team.
7751 2008-02-22 Andreas Jaeger <aj@suse.de>,
7752 Carlos O'Donell <carlos@systemhalted.org>
7755 * FAQ.in: Describe why glibc needs to be compiled with
7758 2008-02-19 Roland McGrath <roland@redhat.com>
7760 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7762 2008-02-15 Ulrich Drepper <drepper@redhat.com>
7765 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7766 __USE_MISC is defined.
7768 2008-02-10 Ulrich Drepper <drepper@redhat.com>
7770 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7771 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7773 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7774 timerfd_gettime, timerfd_settime.
7775 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7776 timerfd_gettime, timerfd_settime for GLIBC_2.8.
7778 2008-02-08 Roland McGrath <roland@redhat.com>
7780 * elf/elf.h (NT_PPC_SPE): New macro.
7782 2008-02-06 Roland McGrath <roland@redhat.com>
7784 * Makerules ($(common-objpfx)sysd-rules):
7785 Depend on $(sysdep-makeconfigs).
7787 2008-01-31 Roland McGrath <roland@redhat.com>
7790 * configure.in: Use -print-file-name if it yields a directory,
7791 for each of include and include-fixed.
7792 * configure: Regenerated.
7794 * Makeconfig (sysd-rules-targets): New variable.
7795 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7796 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7798 2008-01-30 Roland McGrath <roland@redhat.com>
7800 * manual/libc.texinfo: Update back-cover text.
7802 * elf/elf.h (NT_386_TLS): New macro.
7804 2008-01-29 Roland McGrath <roland@redhat.com>
7806 * Makeconfig (sysd-rules-patterns): New variable.
7807 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7808 (check-inhibit-asm): New canned sequence, replaces ...
7809 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7810 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7811 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7812 (CFLAGS-rtld): Variable removed.
7814 2008-01-24 Roland McGrath <roland@redhat.com>
7816 * configure.in: Let configure fragments set base_os.
7817 * configure: Regenerated.
7819 2008-01-22 Ulrich Drepper <drepper@redhat.com>
7821 * po/ko.po: Update from translation team.
7823 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
7825 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7827 2008-01-12 Andreas Jaeger <aj@suse.de>
7830 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7833 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
7835 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7836 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7837 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7839 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
7841 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7842 * elf/dl-close.c (_dl_close): Check for it.
7843 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7844 (_dl_allocate_static_tls): Likewise.
7845 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7846 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7848 * elf/tst-tls16.c: New file.
7849 * elf/tst-tlsmod16a.c: New file.
7850 * elf/tst-tlsmod16b.c: New file.
7851 * elf/Makefile: Add rules to build and run tst-tls16.
7853 2008-01-16 Ulrich Drepper <drepper@redhat.com>
7856 * bits/shm.h: Fix comment describing shmid_ds.
7857 * sysdeps/gnu/bits/shm.h: Likewise.
7858 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7859 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7860 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7861 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7862 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7863 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7864 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7865 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7866 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7869 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7871 * conform/data/limits.h-data: Adjust limits changed in v6 and add
7872 additional suffixes.
7873 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7874 Add optional functions mq_timedreceive and mq_timedsend.
7875 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7876 * conform/data/pthread.h-data: Fix prototype of
7877 pthread_condattr_setclock. pthread_sigmask is not required in v6.
7878 * conform/data/semaphore.h-data: Allow time.h definitions.
7879 * conform/data/signal.h-data: Likewise.
7880 * conform/data/stdio.h-data: getw and putw are not required in v6.
7881 * conform/data/stdlib.h-data: Change setstate prototype.
7882 * conform/data/string.h-data: Fix strerror_r prototype.
7883 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7884 * conform/data/unistd.h-data: pthread_atfork not required in v6.
7885 Fix readlink prototype.
7886 * conform/data/netinet/in.h-data: Add const to in6addr_any and
7888 * inet/netinet/in.h: Cleanup namespace.
7889 * posix/regex.h: Likewise.
7890 * resolv/netdb.h: Likewise.
7891 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7892 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7893 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7894 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7895 of names of in in6_addr.
7896 (default_precedence): Likewise.
7897 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7900 2008-01-15 Ulrich Drepper <drepper@redhat.com>
7902 * conform/data/fmtmsg.h-data: Add missing allows.
7903 * conform/data/ftw.h-data: Likewise.
7904 * conform/data/inttypes.h-data: Likewise.
7905 * conform/data/math.h-data: Likewise.
7906 * conform/data/signal.h-data: Likewise.
7907 * conform/data/net/if.h-data: Likewise.
7908 * conform/data/netinet/in.h-data: Likewise.
7909 * conform/data/sys/socket.h-data: Likewise.
7912 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7913 (__strtok_r): Simplify.
7914 * string/tester.c (test_strtok_r): Add test case for futile search
7915 with single-character seach string.
7917 2008-01-12 Ulrich Drepper <drepper@redhat.com>
7919 * po/ko.po: Update from translation team.
7921 2008-01-11 Andreas Jaeger <aj@suse.de>
7924 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7925 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7928 2008-01-10 Ulrich Drepper <drepper@redhat.com>
7930 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7931 native interface lookup in all the relevant places.
7933 2008-01-10 Jakub Jelinek <jakub@redhat.com>
7934 Ulrich Drepper <drepper@redhat.com>
7936 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7937 field. Use sockaddr_in6 for source_addr.
7938 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
7939 (match_prefix): Likewise.
7940 (get_label): Likewise.
7941 (get_precedence): Likewise.
7942 (rfc3484_sort): Change to use indirect access to results array.
7943 Adjust to use of sockaddr_in6. Replace service_order test with
7944 simple index comparison.
7945 (getaddrinfo): Define order array. Initialize it. Don't initialize
7946 service_order field. Adjust qsort_t calls. Access sorted result
7947 array indirectly through order array.
7948 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7949 * posix/tst-rfc3484-2.c: Likewise.
7950 * posix/tst-rfc3484-3.c: Likewise.
7952 2008-01-09 Ulrich Drepper <drepper@redhat.com>
7955 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7957 Patch by André Cruz.
7960 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7961 (clnt_spcreateerror): Likewise.
7964 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7965 (public_mEMALIGn): Likewise.
7966 Patch mostly by Daniel Jacobowitz.
7968 2008-01-09 Jakub Jelinek <jakub@redhat.com>
7970 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7971 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7972 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7973 * stdlib/tst-makecontext2.c: New test.
7975 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7977 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7979 (REINIT_PARAMS): Likewise. Undefine before end of file.
7980 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7981 transliteration hooks and REINIT_PARAMS afterwards.
7982 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7984 (REINIT_PARAMS): Define.
7985 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7986 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7987 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7988 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7989 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7990 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7991 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7992 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7993 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7994 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7995 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7996 * iconvdata/tst-iconv7.c: New test.
7998 2008-01-07 Ulrich Drepper <drepper@redhat.com>
8000 * libio/stdio.h (vscanf): Fix definition for loser compilers.
8002 2008-01-05 Jakub Jelinek <jakub@redhat.com>
8005 * nscd/connections.c (restart): Fix condition.
8007 2008-01-03 Jakub Jelinek <jakub@redhat.com>
8009 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
8010 __ctype_toupper_loc): Add __THROW.
8012 2008-01-02 Ulrich Drepper <drepper@redhat.com>
8014 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
8015 recognition of interface family.
8017 * posix/getconf.c: Update copyright year.
8018 * nss/getent.c: Likewise.
8019 * iconv/iconvconfig.c: Likewise.
8020 * iconv/iconv_prog.c: Likewise.
8021 * elf/ldconfig.c: Likewise.
8022 * catgets/gencat.c: Likewise.
8023 * csu/version.c: Likewise.
8024 * elf/ldd.bash.in: Likewise.
8025 * elf/sprof.c (print_version): Likewise.
8026 * locale/programs/locale.c: Likewise.
8027 * locale/programs/localedef.c: Likewise.
8028 * nscd/nscd.c (print_version): Likewise.
8029 * debug/xtrace.sh: Likewise.
8030 * malloc/memusage.sh: Likewise.
8031 * malloc/mtrace.pl: Likewise.
8032 * debug/catchsegv.sh: Likewise.
8034 2007-12-26 Ulrich Drepper <drepper@redhat.com>
8036 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
8039 2007-12-23 Ulrich Drepper <drepper@redhat.com>
8041 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
8042 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8044 2007-12-17 Roland McGrath <roland@redhat.com>
8046 * inet/ether_line.c (ether_line): Remove unused variable.
8048 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
8050 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
8052 * login/openpty.c (openpty): Likewise.
8053 * login/pty.h (openpty, forkpty): Likewise.
8054 * manual/terminal.texi (openpty, forkpty): Likewise.
8056 2007-12-17 Ulrich Drepper <drepper@redhat.com>
8058 * malloc/malloc.c (public_cALLOc): For arenas other than
8059 main_arena, count all bytes inside the mprotect_size range of the
8060 heap as uninitialized.
8062 2007-12-16 Ulrich Drepper <drepper@redhat.com>
8064 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
8067 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
8068 mTRIm for all of them.
8069 (mTRIm): Additionally iterate over all free blocks and use madvise
8070 to free memory for all those blocks which contain at least one
8072 * malloc/tst-trim1.c: New file.
8073 * malloc/Makefile (tests): Add tst-trim1.
8075 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
8077 2007-12-14 Ulrich Drepper <drepper@redhat.com>
8079 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
8080 First cast argument to long
8081 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
8083 (__vdso_clock_gettime): Likewise.
8084 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
8087 2007-12-13 Ulrich Drepper <drepper@redhat.com>
8089 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
8090 * locale/nl_langinfo_l.c: Real implementation, copied from
8092 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
8094 2007-12-01 Jim Meyering <meyering@redhat.com>
8096 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8097 that would inhibit utf8-optimization of a regexp containing line-
8098 or buffer-anchors, e.g., `^', `$'.
8100 2007-12-12 Ulrich Drepper <drepper@redhat.com>
8102 * time/bug-getdate1.c (do_test): Don't use century values which
8103 aren't valid on 32-bit systems.
8105 2007-12-12 Jakub Jelinek <jakub@redhat.com>
8107 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
8108 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
8109 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
8110 __strcat_g, __strncat_g): Add __asm__.
8112 2007-12-12 Ulrich Drepper <drepper@redhat.com>
8115 * io/fchmodat.c: Fix typo in stub_warning use.
8116 Patch by Petr Salinger.
8118 2007-12-11 Ulrich Drepper <drepper@redhat.com>
8120 * iconvdata/hp-thai8.c: New file.
8121 * iconvdata/Makefile: Add rules for hp-thai8.c.
8122 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
8123 * iconvdata/gconv-modules: Likewise.
8126 * iconvdata/hp-greek8.c: New file.
8127 * iconvdata/Makefile: Add rules for hp-greek8.c.
8128 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
8129 * iconvdata/gconv-modules: Likewise.
8132 * iconvdata/hp-turkish8.c: New file.
8133 * iconvdata/Makefile: Add rules for hp-turkish8.c.
8134 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
8135 * iconvdata/gconv-modules: Likewise.
8137 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
8138 (shrink_heap): ... this new function.
8139 (heap_trim): Call shrink_heap instead of grow_heap.
8141 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
8142 case don't call alloc_perturb.
8144 2007-12-10 Ulrich Drepper <drepper@redhat.com>
8146 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
8148 * sysdeps/unix/sysv/linux/kernel-features.h
8149 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
8150 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
8152 2007-12-08 Ulrich Drepper <drepper@redhat.com>
8155 * stdio-common/vfprintf.c: Do not overflow when adding to done.
8156 * stdio-common/Makefile (tests): Add bug22.
8157 * stdio-common/bug22.c: New file.
8160 * time/getdate.c: Fix filling in default values.
8161 * time/bug-getdate1.c: New file.
8162 * time/Makefile: Add rules to build and run bug-getdate1.
8164 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
8165 * iconvdata/ebcdic-es.c: Likewise.
8166 * iconvdata/ebcdic-es-a.c: Likewise.
8167 * iconvdata/ebcdic-uk.c: Likewise.
8168 * iconvdata/iso8859-16.c: Likewise.
8169 * iconvdata/viscii.c: Likewise.
8170 * iconvdata/iso8859-9e.c: Likewise.
8171 * iconvdata/Makefile: Adjust appropriately.
8174 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
8177 2007-12-07 Ulrich Drepper <drepper@redhat.com>
8180 * iconvdata/hp-roman9.c: New file.
8181 * iconvdata/Makefile: Add rules for hp-roman9.c.
8182 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
8183 * iconvdata/gconv-modules: Likewise.
8185 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
8186 * iconvdata/Makefile: Adjust appropriately.
8189 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
8190 structure, it's allocated with alloca.
8191 * stdio-common/Makefile (tests): Add bug21.
8192 * stdio-common/bug21.c: New file.
8194 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
8197 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
8198 keyword for gcc's braced-groups.
8200 2007-12-07 Ulrich Drepper <drepper@redhat.com>
8203 * inet/ether_line.c: Strip hostname of whitespaces.
8204 * inet/Makefile (tests): Add tst-ether_line.
8205 * inet/tst-ether_line.c: New file.
8207 2007-12-03 Ulrich Drepper <drepper@redhat.com>
8210 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
8213 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
8215 * stdlib/tst-setcontext.c: Catch the case where the links gets
8216 messed up and we do not reach main again.
8218 * po/ca.po: Update from translation team.
8220 2007-11-26 Ulrich Drepper <drepper@redhat.com>
8222 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
8223 * posix/regex.h (REG_ENOSYS): Likewise.
8224 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
8226 2007-11-25 Ulrich Drepper <drepper@redhat.com>
8228 * nscd/nscd.h (MAX_STACK_USE): Define.
8229 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
8230 (gc): Initialize stack_used based on allocation in prune_cache.
8231 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
8232 Clear array before use.
8234 * nscd/aicache.c (addhstaiX): Update statistics counter in case
8235 memory allocation failed.
8236 * nscd/hstcache.c (cache_addhst): Likewise.
8237 * nscd/grpcache.c (cache_addgr): Likewise.
8238 * nscd/servicescache.c (cache_addserv): Likewise.
8239 * nscd/pwdcache.c (cache_addpw): Likewise.
8240 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8242 2007-11-23 Ulrich Drepper <drepper@redhat.com>
8244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
8245 and creat system calls.
8247 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
8249 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
8251 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
8253 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
8254 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
8256 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
8257 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
8258 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
8260 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
8262 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
8263 strncat): Define as macros to avoid compile errors.
8265 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
8268 2007-11-22 Ulrich Drepper <drepper@redhat.com>
8271 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
8272 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
8273 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
8275 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8277 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
8278 Return zero in case the thread library is not NPTL.
8281 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
8282 initializing interface list.
8285 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
8286 use result of nss_getgrgid_r if nothing was found. For other
8287 error return with a failure.
8288 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8290 * locale/programs/ld-collate.c (collate_read): Fix loop to match
8293 2007-11-19 Ulrich Drepper <drepper@redhat.com>
8295 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
8296 (get_scope): For IPv4 scope, use scopes table.
8297 (fini): Free scopes table if necessary.
8298 (free_scopelist): New function.
8299 (scopecmp): New function.
8300 (gaiconf_init): Also handle scopev4 entries.
8301 * posix/tst-rfc3484.c (do_test): Initialize scopes.
8302 * posix/tst-rfc3484-2.c (do_test): Likewise.
8303 * posix/gai.conf: Document scopev4 defaults.
8304 * posix/Makefile (tests): Add tst-rfc3484-3.
8305 * posix/tst-rfc3484-3.c: New file.
8307 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
8309 * posix/gai.conf: Update for current default tables.
8311 2007-11-19 Ulrich Drepper <drepper@redhat.com>
8313 * po/tr.po: Update from translation team.
8315 2007-11-18 Roland McGrath <roland@frob.com>
8317 * manual/arith.texi (Remainder Functions): Spelling fix.
8318 From Shaun Silk <genix@mysoul.com.au>.
8320 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
8322 2007-11-17 Ulrich Drepper <drepper@redhat.com>
8324 * po/zh_CN.po: Update from translation team.
8326 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8327 Add sys/signalfd.h and sys/eventfd.h.
8329 2007-11-15 Bruno Haible <bruno@clisp.org>
8332 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
8334 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
8335 (DCIGETTEXT): Change the allocation of the 'search' variable so that
8336 it needs only fixed stack space. Delay the initialization of
8337 msgid_len until it is needed.
8339 2007-11-15 Andreas Jaeger <aj@suse.de>
8341 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
8342 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
8344 2007-11-15 Ulrich Drepper <drepper@redhat.com>
8346 * po/ko.po: Update from translation team.
8348 2007-11-14 Ulrich Drepper <drepper@redhat.com>
8350 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
8351 significantly. The device type is also part of the ifinfomsg data.
8353 * po/sv.po: Update from translation team.
8354 * po/nl.po: Likewise.
8356 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
8357 to wake up in 24 hours.
8359 * nscd/gai.c (__ioctl): Define. Include check_native.c.
8361 2007-11-13 Ulrich Drepper <drepper@redhat.com>
8363 * po/cs.po: Update from translation team.
8364 * po/pl.po: Likewise.
8366 * include/ifaddrs.h: Remove in6ai_temporary.
8367 (struct in6addrinfo): Add index element.
8368 Declare __check_native.
8369 * inet/Makefile (aux): Add check_native.
8370 * sysdeps/unix/sysv/linux/check_native.c: New file.
8371 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
8372 IFA_F_TEMPORARY. Pass back ifa_index.
8373 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
8374 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
8375 call __check_native if necessary.
8376 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
8377 to sort addresses. Pass information about the results.
8378 * posix/tst-rfc3484.c: Adjust for addition of index field and change
8379 of rfc3484_sort interface.
8380 * posix/tst-rfc3484-2.c: Likewise.
8382 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
8383 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
8385 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
8386 (qsort_r): Renamed from qsort. Take additional parameter and pass it
8387 on as third parameter to compare function and _quicksort.
8388 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
8389 to the compare function.
8390 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
8391 * Versions.def: Add GLIBC_2.8 for libc.
8393 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
8394 * posix/tst-rfc3484-2.c: Likewise.
8396 * include/kernel-features.h: Moved to...
8397 * sysdeps/mach/hurd/kernel-features.h: ...here.
8399 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
8401 * sysdeps/i386/i586/memcpy_chk.S: New file.
8402 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
8403 * sysdeps/i386/i586/memset_chk.S: Likewise.
8405 2007-11-12 Ulrich Drepper <drepper@redhat.com>
8407 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8408 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8409 list of interfaces. Also store prefix length.
8410 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8411 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8412 prefix if source and destination address are in the same subnet.
8413 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
8414 Always look for matching record in in6ai list.
8415 Correct source_addr_len value for IPv6->IPv4 converted records.
8417 2007-11-11 Roland McGrath <roland@frob.com>
8419 * include/kernel-features.h: New file.
8421 2007-11-10 Ulrich Drepper <drepper@redhat.com>
8423 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8424 complications for 64-bit platforms.
8426 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8427 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
8428 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8430 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8432 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8433 * sysdeps/wordsize-64/alphasort.c: New file.
8434 * sysdeps/wordsize-64/alphasort64.c: New file.
8435 * sysdeps/wordsize-64/fseeko.c: New file.
8436 * sysdeps/wordsize-64/fseeko64.c: New file.
8437 * sysdeps/wordsize-64/ftello.c: New file.
8438 * sysdeps/wordsize-64/ftello64.c: New file.
8439 * sysdeps/wordsize-64/ftw.c: New file.
8440 * sysdeps/wordsize-64/ftw64.c: New file.
8441 * sysdeps/wordsize-64/iofgetpos.c: New file.
8442 * sysdeps/wordsize-64/iofgetpos64.c: New file.
8443 * sysdeps/wordsize-64/iofopen.c: New file.
8444 * sysdeps/wordsize-64/iofopen64.c: New file.
8445 * sysdeps/wordsize-64/iofsetpos.c: New file.
8446 * sysdeps/wordsize-64/iofsetpos64.c: New file.
8447 * sysdeps/wordsize-64/lockf.c: New file.
8448 * sysdeps/wordsize-64/lockf64.c: New file.
8449 * sysdeps/wordsize-64/mkostemp.c: New file.
8450 * sysdeps/wordsize-64/mkostemp64.c: New file.
8451 * sysdeps/wordsize-64/mkstemp.c: New file.
8452 * sysdeps/wordsize-64/mkstemp64.c: New file.
8453 * sysdeps/wordsize-64/scandir.c: New file.
8454 * sysdeps/wordsize-64/scandir64.c: New file.
8455 * sysdeps/wordsize-64/tmpfile.c: New file.
8456 * sysdeps/wordsize-64/tmpfile64.c: New file.
8457 * sysdeps/wordsize-64/versionsort.c: New file.
8458 * sysdeps/wordsize-64/versionsort64.c: New file.
8459 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8460 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8461 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8462 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8463 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8464 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8465 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8466 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8467 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8468 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8469 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8470 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8472 * crypt/sha256-crypt.c: Fix a comment.
8473 * crypt/sha512-crypt.c: Likewise.
8475 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
8477 * sysdeps/x86_64/memset.S: Add sfence after movnti.
8479 2007-11-07 Ulrich Drepper <drepper@redhat.com>
8482 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8483 because output buffer is too small break, don't loop.
8484 * iconvdata/Makefile (tests): Add bug-iconv6.
8485 * iconvdata/bug-iconv6.c: New file.
8487 2007-11-06 Ulrich Drepper <drepper@redhat.com>
8489 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8491 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8492 size_t. Add casts where needed.
8494 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8495 old headers, don't call avc_has_perm if we don't have the
8496 permission information.
8498 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
8500 * elf/rtld.c (dl_main): Use the page size to find the map start.
8502 2007-11-05 Ulrich Drepper <drepper@redhat.com>
8504 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8505 Patch by Szymon Siwek <sls@poczta.wp.pl>.
8507 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8508 when the lookup call failed.
8510 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8511 Add prune_cond and wakeup_time.
8512 (CACHE_PRUNE_INTERNAL): Define.
8513 Update declarations of prune_cache and setup_thread.
8514 * nscd/connections.c (dbs): Update initializers.
8515 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8516 (nscd_init): Default number of threads is now 4.
8517 (invalidate_cache): Take lock before calling prune_cache.
8518 (handle_request): If SELinux forbids the request, say so.
8519 (readylist_cond): Use static initializer.
8520 (nscd_run_prune): New function. Used only by pruning threads.
8521 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
8523 (fd_ready): Update nscd_run reference.
8524 (start_threads): No need to initialize readylist_cond.
8525 Start pruning threads separately.
8526 * nscd/nscd_setup_thread.c: Change return value type to int and always
8528 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8529 to int and return nonzero value if we can use the TID address hack.
8530 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8531 the database is later than the new entry's timeout, update the
8532 wakeup time and wake the cleanup thread.
8533 (prune_cache): Return seconds the next entry in the database is still
8534 valid. Remove locking for pruning here.
8535 * nscd/nscd.conf: Document default number of threads.
8537 2007-10-31 Ulrich Drepper <drepper@redhat.com>
8539 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8540 stack is properly aligned for the target function.
8541 Correct unwind info.
8543 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8544 when using auditing libraries.
8546 2007-10-29 Ulrich Drepper <drepper@redhat.com>
8548 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8549 _nss_dns_getnetbyaddr2_r.
8550 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
8551 extra parameter to getanswer_r.
8552 (_nss_dns_getnetbyaddr_r): Now a wrapper around
8553 _nss_dns_getnetbyaddr2_r.
8555 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8557 * nscd/gethstbynm2_r.c: Remove.
8558 * nscd/gethstbynm3_r.c: New file.
8559 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8561 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
8562 __gethostbyaddr_r compatibility wrapper.
8563 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
8564 determining timeout of entry.
8565 (lookup): Take new parameter and pass it to __gethostbyname3_r and
8567 (addhstbyX): Pass reference to variable for TTL to lookup and
8569 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8570 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8571 and __nss_next2. Remove __nss_services_lookup.
8572 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
8574 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8576 * nss/getXXent_r.c: Likewise.
8577 * nss/getnssent_r.c: Likewise.
8578 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
8579 does not exist in module, try the optional second name.
8580 (__nss_next2): New function.
8581 (__nss_next): Now wrapper around __nss_next2.
8582 * nss/nsswitch.h: Adjust __nss_lookup prototype.
8583 Declare __nss_next2.
8584 Adjust definition of db_lookup_function type.
8585 * nss/service-lookup.c: Define NO_COMPAT.
8586 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8587 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8588 * inet/ether_ntoh.c: Likewise.
8589 * sunrpc/netname.c: Likewise.
8590 * sunrpc/publickey.c: Likewise.
8591 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
8592 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8593 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8594 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8595 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8597 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8599 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8601 2007-10-28 Ulrich Drepper <drepper@redhat.com>
8604 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8605 * crypt/sha512c-test.c: Likewise.
8608 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8609 to keep track of end of %[ format string element.
8610 * stdio-common/Makefile (tests): Add bug20.
8611 * stdio-common/bug20.c: New file.
8614 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8615 path elements in counting mode.
8617 2007-10-27 Andreas Jaeger <aj@suse.de>
8620 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8623 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8624 (__cleanup): Free shared library when exiting.
8625 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8626 (__cleanup): Free shared library when exiting.
8628 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
8631 * math/libm-test.inc (check_float_internal): Support
8632 denormalized return.
8634 2007-10-23 Andreas Jaeger <aj@suse.de>
8637 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8638 __LONG_LONG_PAIR to handle little endian byte order.
8639 Suggested by abhishekrai@google.com
8641 2007-10-27 Ulrich Drepper <drepper@redhat.com>
8643 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8645 2007-10-26 Ulrich Drepper <drepper@redhat.com>
8647 * nscd/cache.c (prune_cache): Move test for modified file outside
8650 2007-10-21 Andreas Jaeger <aj@suse.de>
8652 * manual/texinfo.tex: Update to latest version.
8654 * manual/sysinfo.texi (System Parameters): Fix Formatting.
8656 * manual/arith.texi (Status bit operations): Fix formatting.
8658 * manual/errno.texi (Error Messages): Fix formatting.
8660 * manual/sysinfo.texi (System Parameters): Fix formatting.
8662 * manual/libc.texinfo: Update VERSION and UPDATED.
8664 2007-10-19 Roland McGrath <roland@redhat.com>
8666 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8668 2007-10-06 David S. Miller <davem@davemloft.net>
8670 * configure.in: Add sparcv9v2 and sparc64v2.
8671 * scripts/config.sub: Likewise.
8672 * configure: Regenerate.
8673 * elf/elf.h (HWCAP_SPARC_N2): New.
8674 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8675 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8676 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8677 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8678 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8679 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8680 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8682 2007-10-18 Ulrich Drepper <drepper@redhat.com>
8684 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8685 even if the poll result indicates there is data to read.
8686 Patch by Jeff Moyer <jmoyer@redhat.com>.
8688 2007-10-18 Roland McGrath <roland@redhat.com>
8690 * elf/elf.h (NT_PPC_VMX): New macro.
8692 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8694 * version.h (VERSION): Set to 2.7.90.
8696 2007-10-17 Jakub Jelinek <jakub@redhat.com>
8698 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
8701 2007-10-17 Roland McGrath <roland@frob.com>
8703 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8704 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8706 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8708 * version.h (VERSION): Bump to 2.7.
8709 * include/features.h (__GLIBC_MINOR__): Bump to 7.
8712 * time/tzset.c (__tz_convert): Don't force testing for a change of
8713 TZ if not called from localtime. But then also see whether the
8714 file changed, in case __use_tzfile is set.
8716 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8717 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8718 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8719 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8720 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8721 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8722 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8723 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8725 2007-10-17 Jakub Jelinek <jakub@redhat.com>
8727 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8728 and admin selects to be able to replace the gai.conf file, lock
8729 data structures around the qsort call.
8731 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8733 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8735 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
8736 too high for the improvements. Implement bzero unconditionally for
8739 2007-10-17 Ulrich Drepper <drepper@redhat.com>
8740 Jakub Jelinek <jakub@redhat.com>
8742 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8743 even when time_t is 32-bit.
8744 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8745 timezone data read by __tzfile_default. Ensure __tzname[0] is
8746 always set after the search.
8748 2007-10-16 Ulrich Drepper <drepper@redhat.com>
8750 * time/tzfile.c (__tzfile_read): Help the compiler recognize
8751 unreachable code on 32-bit machines.
8753 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8756 * time/strftime_l.c: Include stdbool.h.
8757 (my_strftime): New wrapper, old function renamed to...
8758 (__strftime_internal): ... new function. Add tzset_called
8759 argument, pass it down to recursive calls, don't call tzset ()
8760 if already true, set to true after call to tzset ().
8762 2007-10-16 Ulrich Drepper <drepper@redhat.com>
8764 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8765 into account when copying TZ string.
8767 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8769 * time/tzfile.c (__tzfile_compute): For use_last case set i to
8770 num_transition rather than num_transitions - 1.
8772 2007-10-16 Jakub Jelinek <jakub@redhat.com>
8774 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8777 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8778 a local label rather than HIDDEN_JUMPTARGET.
8780 2007-10-15 Ulrich Drepper <drepper@redhat.com>
8782 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8783 (init_cacheinfo): Initialize it.
8784 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8785 Always define bzero.
8786 Remove non-glibc code.
8787 * sysdeps/x86_64/bzero.S: Make an empty file.
8789 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
8791 * sysdeps/x86_64/cacheinfo.c
8792 (__x86_64_preferred_memory_instruction): New.
8793 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8795 * sysdeps/x86_64/memset.S: Rewrite.
8797 2007-10-15 Roland McGrath <roland@redhat.com>
8799 * po/libc.pot: Regenerated.
8801 2007-10-15 Ulrich Drepper <drepper@redhat.com>
8803 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8807 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8808 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8809 address record to T_A/T_AAAA requests.
8811 2007-10-14 Ulrich Drepper <drepper@redhat.com>
8813 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8815 * posix/glob.c: Add some branch prediction throughout.
8817 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8820 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8822 (rfc3484_sort): Make sure that even if qsort doesn't support
8823 stable sorting out sorting here is stable by comparing service_order.
8824 (getaddrinfo): Initialize service_order.
8825 * posix/tst-rfc3484.c (do_test): Adjust for addition of
8826 service_order field to sorting structure.
8827 * posix/tst-rfc3484-2.c (do_test): Likewise.
8829 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8830 * time/tzset.c (tzset_internal): Break TZ string parsing out into
8831 __tzset_parse_tz and updating of daylight, timezone, tzname into
8833 (__tz_compute): Renamed from tz_compute. Take additional parameters.
8834 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8835 happens in __tz_compute.
8836 * time/tzfile.c (__tzfile_read): Also read TZ string.
8837 (find_transition): Fold into __tzfile_compute.
8838 (__tzfile_compute): For times beyond the last transition try to
8840 * timezone/tst-timezone.c: Information in daylight and tzname does
8841 change for Asia/Tokyo timezone with more concrete information.
8844 * include/stdio.h: Add libc_hidden_proto for ftello.
8845 * libio/ftello.c: Add libc_hidden_def.
8848 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8849 on the specified time and not the last entries in the file. Move
8850 code to determine tzname[] to...
8851 (find_transition): ...here. Add ugly guess for times before the
8854 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8857 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8859 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8860 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8861 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8862 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8864 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8865 read mechanism when there are no group members and avoid no-op
8866 read syscall in this case.
8869 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8870 (__readall): If reading failed due to EAGAIN error wait a bit
8871 and possibly try again.
8872 (__readvall): Likewise.
8874 2007-10-13 Bruno Haible <bruno@clisp.org>
8876 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8877 when we cannot recode the message.
8879 2007-10-13 Ulrich Drepper <drepper@redhat.com>
8882 * libio/__freading.c (__freading): Don't return true for
8883 write-only streams. For read/write streams, check whether we
8884 performed a read operation already.
8885 * libio/Makefile (tests): Add tst-ext2.
8886 * libio/tst-ext2.c: New file.
8888 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8890 * locale/programs/repertoire.c (repertoire_read): Always free
8891 memory for repertoire file name [Coverity CID 270].
8893 * elf/cache.c (save_aux_cache): Free memory allocated for
8894 temporary file name [Coverity CID 267].
8896 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8898 * misc/Makefile (headers): Add bits/error.h.
8900 2007-10-12 Ulrich Drepper <drepper@redhat.com>
8902 * posix/fnmatch_loop.c: Take rule index returned as part of
8903 findidx return value into account when accessing weights.
8904 * posix/regcomp.c: Likewise.
8905 * posix/regexec.c: Likewise.
8907 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8908 (skip_to): Fix problems with parameter of elifdef/elifndef.
8910 2007-10-11 Ulrich Drepper <drepper@redhat.com>
8912 * iconv/gconv_simple.c: Add some branch prediction.
8914 2007-10-12 Jakub Jelinek <jakub@redhat.com>
8916 * locale/programs/ld-collate.c (collate_read): If ignore_content
8917 and nowtok is tok_define, eat any tok_eol tokens.
8919 2007-10-11 Jakub Jelinek <jakub@redhat.com>
8921 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8922 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8924 * inet/netinet/in.h: Don't include bits/socket.h.
8925 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8927 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8929 2007-10-10 Ulrich Drepper <drepper@redhat.com>
8931 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8933 * locale/programs/locfile-kw.gperf: Likewise.
8934 * locale/programs/ld-collate.c: Implement primitive preprocessor.
8936 2007-10-10 Jakub Jelinek <jakub@redhat.com>
8938 * stdio-common/printf-parse.h: Include string.h and wchar.h.
8939 (__find_specwc): Change into __extern_always_inline function.
8940 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
8941 (__parse_one_specmb): Remove ps argument.
8942 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8943 Adjust __find_specmb and __parse_one_specmb callers.
8944 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8945 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8947 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8950 2007-10-09 Ulrich Drepper <drepper@redhat.com>
8952 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8953 with some Pentium Ds.
8955 2007-10-08 Ulrich Drepper <drepper@redhat.com>
8957 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8959 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8962 2007-10-07 Ulrich Drepper <drepper@redhat.com>
8965 * locale/C-time.c: Set week_1stday data to 19971201.
8966 * locale/programs/ld-time.c (time_finish): Default for
8967 first_workday is Monday.
8970 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8973 * posix/glob.c (glob): Recognize patterns starting \/.
8974 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8975 (main): Add test for pattern starting \/.
8977 * misc/error.h: Use __const instead of const.
8978 * misc/bits/error.h: Likewise.
8980 2007-10-07 Andreas Jaeger <aj@suse.de>
8982 * include/bits/error.h: New file.
8984 * misc/bits/error.h (error_at_line): Fix prototype.
8986 2007-10-06 Ulrich Drepper <drepper@redhat.com>
8989 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8990 more little bugs in creating the stack frame when pltexit has to
8993 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8994 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8997 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8998 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8999 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9000 * math/libm-test.inc: Add test for this case.
9003 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
9004 (svc_register): Initialize sc_mapped. Set to TRUE if call to
9005 map service succeeded.
9006 (svc_is_mapped): New function.
9007 (svc_unregister): Use it before trying to unmap service.
9009 2007-10-05 Ulrich Drepper <drepper@redhat.com>
9011 * timezone/zic.c: Update from tzcode2007h.
9014 * timezone/africa: Update from tzdata2007h.
9015 * timezone/antarctica: Likewise.
9016 * timezone/asia: Likewise.
9017 * timezone/australasia: Likewise.
9018 * timezone/europe: Likewise.
9019 * timezone/leapseconds: Likewise.
9020 * timezone/northamerica: Likewise.
9021 * timezone/southamerica: Likewise.
9022 * timzeone/zone.tab: Likewise.
9025 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
9028 * string/bits/string2.h (__strdup): Cast parameters to calloc to
9029 avoid warning with -Wconversion.
9030 (__strndup): Likewise.
9031 Half the patch by Christian Iseli <christian.iseli@licr.org>.
9034 * nscd/connections.c (restart): Don't resync if database is
9035 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
9037 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
9038 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
9040 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
9041 evetnfd_read, eventfd_write.
9042 * sysdeps/unix/sysv/linux/eventfd.c: New file.
9043 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
9044 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
9045 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
9046 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
9047 eventfd_write for GLIBC_2.7.
9049 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
9050 * sysdeps/unix/sysv/linux/signalfd.c: New file.
9051 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
9052 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
9054 2007-10-04 Jakub Jelinek <jakub@redhat.com>
9056 * stdlib/msort.c: Include stdint.h.
9057 (struct msort_param): New type.
9058 (msort_with_tmp): Use struct msort_param pointer for unchanging
9059 parameters. Add optimized handling for several common sizes
9060 and indirect sorting mode.
9061 (qsort): Adjust msort_with_tmp callers. For big S use indirect
9063 Suggested by Belazougui Djamel .
9065 * stdlib/Makefile (tests): Add tst-qsort2.
9066 * stdlib/tst-qsort2.c: New test.
9068 2007-10-04 Ulrich Drepper <drepper@redhat.com>
9070 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
9071 for dup2 in case another thread races with the current one. Retry
9074 * misc/error.h: Remove support for use outside of libc. We have to
9075 include <features.h> now. Include <bits/error.h> if possible.
9076 * misc/bits/error.h: New file.
9078 2007-10-03 Jakub Jelinek <jakub@redhat.com>
9080 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
9081 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
9082 __extern_always_inline functions unconditionally, drop macros.
9084 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
9085 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
9086 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
9088 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
9089 add __artificial__ attribute.
9091 2007-10-02 Ulrich Drepper <drepper@redhat.com>
9093 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
9094 backward to forward direction.
9096 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
9099 * locale/programs/ld-collate.c (collate_finish): Compare against last
9100 used section which is known to have rules defined.
9101 (collate_read): After order_start, correctly record order of sections
9102 and queue sections up.
9104 2007-10-01 Ulrich Drepper <drepper@redhat.com>
9107 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
9108 the same number of pages.
9109 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
9111 * locale/programs/ld-collate.c (collate_read): After initial copy
9112 statement, continue in state 0.
9114 * include/stdio_ext.h (__fsetlocking): Define as macro.
9116 2007-09-30 Ulrich Drepper <drepper@redhat.com>
9118 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
9121 * po/pt_BR.po: Fix typo.
9123 2007-09-29 Ulrich Drepper <drepper@redhat.com>
9125 * iconvdata/Makefile (modules): Add ISO8859-9E.
9126 (distribute): Add iso8859-9e.c.
9127 (gen-8bit-gap-modules): Add iso8859-9e.
9128 * iconvdata/iso8859-9e.c: New file.
9129 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
9130 * iconvdata/TESTS: Likewise.
9131 * iconvdata/tst-tables.sh: Likewise.
9133 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
9135 * locale/iso-639.def: Add several new entries.
9137 2007-09-24 Jakub Jelinek <jakub@redhat.com>
9139 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
9140 void * pointers instead of struct link_map **.
9141 (_dl_scope_free): Change argument type to void *.
9142 * include/link.h (struct link_map): Change type of l_reldeps
9143 to struct link_map_reldeps, move l_reldepsact into that
9145 * elf/dl-deps.c: Include atomic.h.
9146 (_dl_map_object_deps): Only change l->l_initfini when it is
9147 fully populated, use _dl_scope_free for freeing it. Optimize
9148 removal of libs from reldeps by using l_reserved flag, when
9149 some removal is needed, allocate a new list instead of
9150 reallocating and free the old with _dl_scope_free. Adjust
9151 for l_reldeps and l_reldepsact changes.
9152 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
9153 searching in l_initfini and l_reldeps without holding dl_load_lock.
9154 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
9155 l_reldepsact changes.
9156 * elf/dl-close.c (_dl_close_worker): Likewise.
9157 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
9159 2007-09-28 Ulrich Drepper <drepper@redhat.com>
9161 * iconvdata/Makefile (modules): Add KOI8-RU.
9162 (distribute): Add koi8-ru.c.
9163 (gen-8bit-gap-modules): Add koi8-ru.
9164 * iconvdata/koi8-ru.c: New file.
9165 * iconvdata/gconv-modules: Add entries for KOI8-RU.
9166 * iconvdata/TESTS: Likewise.
9167 * iconvdata/tst-tables.sh: Likewise.
9169 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
9171 2007-09-26 Jakub Jelinek <jakub@redhat.com>
9173 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
9174 with __warning__/__error__ attributes.
9175 (__warnattr): Define.
9176 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
9177 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
9179 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
9180 of __*_chk if compile time detectable overflow is found.
9181 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
9182 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
9184 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
9185 instead of __*_chk if compile time detectable overflow is found.
9186 (__gets_alias): Rename to...
9187 (__gets_warn): ... this. Add __warnattr.
9188 (gets): Call __gets_warn instead of __gets_alias.
9189 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
9190 aliases with __warnattr.
9191 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
9192 time detectable overflow is found.
9193 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
9194 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
9195 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
9196 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
9197 __getdomainname_chk_warn): New aliases with __warnattr.
9198 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
9199 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
9200 __*_chk_warn instead of __*_chk if compile time detectable overflow
9202 (__getgroups_chk): Rename argument to __listlen from listlen.
9203 (__getwd_alias): Rename to...
9204 (__getwd_warn): ... this. Add __warnattr.
9205 (getwd): Call __getwd_warn instead of __getwd_alias.
9206 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
9207 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
9208 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
9209 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
9210 __wcsnrtombs_chk_warn): New aliases with __warnattr.
9211 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
9212 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
9213 compile time detectable overflow is found.
9214 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
9215 to use __*_chk or not.
9216 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
9217 in comparisons which function should be called and in __*_chk*
9218 arguments. Call __*_chk_warn instead of __*_chk if compile time
9219 detectable overflow is found.
9220 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
9222 * debug/tst-chk1.c (do_test): Add a few more tests.
9224 2007-09-24 Ulrich Drepper <drepper@redhat.com>
9227 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
9228 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
9229 (_nl_unload_domain): Finalize conversions_lock.
9230 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
9231 handling table of known conversions.
9233 2007-09-24 Jakub Jelinek <jakub@redhat.com>
9235 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
9236 close_not_cancel_no_status instead of close.
9238 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
9241 * posix/regcomp.c (lookup_collation_sequence_value): Check that
9242 nrules != 0 for multibyte chars.
9244 2007-09-23 Ulrich Drepper <drepper@redhat.com>
9246 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
9247 Provide better error message in case the type is unknown.
9250 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
9251 * string/stratcliff.c: Make usable to test wide char functions.
9252 * wcsmbs/wcsatcliff.c: New file.
9253 * wcsmbs/Makefiel (tests): Add wcsatcliff.
9256 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
9257 (distribute): Add mac-centraleurope.c.
9258 (gen-8bit-gap-modules): Add mac-centraleurope.
9259 * iconvdata/mac-centraleurope.c: New file.
9260 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
9261 * iconvdata/TESTS: Likewise.
9262 * iconvdata/tst-tables.sh: Likewise.
9265 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
9267 2007-09-21 Ulrich Drepper <drepper@redhat.com>
9269 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
9270 from __x86_64_core_cache_size_half.
9271 (init_cacheinfo): Compute shared cache size for AMD processors with
9272 shared L3 correctly.
9273 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
9275 Patch in large parts by Evandro Menezes.
9277 2007-09-19 Ulrich Drepper <drepper@redhat.com>
9279 * elf/dl-lookup.c (add_dependency): Handle failing memory
9280 allocation for dependency list. Remove unnecessary check.
9282 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
9283 open/close when determining source addresses.
9285 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
9286 sha512-crypt, and sha512.
9287 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
9288 (distribute): Add sha256.h and sha512.h.
9289 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
9290 and call the appropriate code.
9291 * crypt/sha256-crypt.c: New file.
9292 * crypt/sha256.c: New file.
9293 * crypt/sha256.h: New file.
9294 * crypt/sha256c-test.c: New file.
9295 * crypt/sha256test.c: New file.
9296 * crypt/sha512-crypt.c: New file.
9297 * crypt/sha512.c: New file.
9298 * crypt/sha512.h: New file.
9299 * crypt/sha512c-test.c: New file.
9300 * crypt/sha512test.c: New file.
9302 2007-09-19 Jakub Jelinek <jakub@redhat.com>
9304 * misc/bits/syslog.h (syslog): Remove extraneous argument from
9305 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
9308 2007-09-18 Jakub Jelinek <jakub@redhat.com>
9310 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
9311 %as in fscanf format strings.
9313 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
9314 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9315 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
9317 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
9320 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
9321 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
9322 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
9323 * elf/dl-sym.c (do_sym): Likewise.
9324 * include/link.h (struct link_map): Add l_serial field.
9325 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
9326 * elf/dl-lookup.c (add_dependency): Add flags argument.
9327 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
9328 flags, use THREAD_GSCOPE_RESET_FLAG before and
9329 THREAD_GSCOPE_SET_FLAG after
9330 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
9331 Don't dereference map until it has been found on some list.
9332 If map->l_serial changed, return -1.
9334 2007-09-17 Jakub Jelinek <jakub@redhat.com>
9336 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
9337 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
9338 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
9340 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
9341 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
9342 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
9343 add libc_hidden_proto.
9344 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9345 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9346 conformance requested.
9347 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
9348 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9349 conformance requested.
9350 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9351 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
9352 conformance requested.
9353 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
9354 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
9355 ISO C99 or POSIX conformance requested.
9356 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
9357 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
9358 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
9359 and __isoc99_vsscanf@@GLIBC_2.7.
9360 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
9361 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
9362 (tests): Add scanf14.
9363 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
9364 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
9365 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
9366 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
9367 CFLAGS-isoc99_scanf.c): Add $(exceptions).
9368 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
9369 from using internal headers.
9370 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
9371 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
9372 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
9373 and __isoc99_vswscanf@@GLIBC_2.7.
9374 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
9375 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
9376 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
9377 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
9378 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
9379 * stdio-common/isoc99_scanf.c: New file.
9380 * stdio-common/isoc99_vsscanf.c: New file.
9381 * stdio-common/isoc99_vscanf.c: New file.
9382 * stdio-common/isoc99_vfscanf.c: New file.
9383 * stdio-common/isoc99_fscanf.c: New file.
9384 * stdio-common/isoc99_sscanf.c: New file.
9385 * wcsmbs/isoc99_fwscanf.c: New file.
9386 * wcsmbs/isoc99_vswscanf.c: New file.
9387 * wcsmbs/isoc99_swscanf.c: New file.
9388 * wcsmbs/isoc99_wscanf.c: New file.
9389 * wcsmbs/isoc99_vwscanf.c: New file.
9390 * wcsmbs/isoc99_vfwscanf.c: New file.
9391 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
9392 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
9393 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
9394 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
9395 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
9396 * stdio-common/scanf14.c: New test.
9397 * stdio-common/scanf15.c: New test.
9398 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9399 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
9400 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
9401 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
9402 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
9403 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
9404 __nldbl___isoc99_scanf@@GLIBC_2.7,
9405 __nldbl___isoc99_fscanf@@GLIBC_2.7,
9406 __nldbl___isoc99_sscanf@@GLIBC_2.7,
9407 __nldbl___isoc99_vscanf@@GLIBC_2.7,
9408 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9409 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9410 __nldbl___isoc99_wscanf@@GLIBC_2.7,
9411 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9412 __nldbl___isoc99_swscanf@@GLIBC_2.7,
9413 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9414 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9415 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9416 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9417 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9418 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9419 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9420 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9421 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9422 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9423 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9424 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9425 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9426 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9427 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9429 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9430 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9431 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9432 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9433 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9434 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9435 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9436 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9437 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9438 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9439 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9440 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9442 * stdio-common/Makefile (tests): Add scanf13.
9444 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9445 m modifier followed by l.
9446 (STRING_ARG): Add width argument.
9447 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9448 <case L_('C')>: Handle %mlc and %mC.
9449 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9451 * stdio-common/scanf13.c: New test.
9453 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9454 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9456 2007-09-18 Ulrich Drepper <drepper@redhat.com>
9458 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9459 type and __THROW marker of splice, vmsplice, and tee.
9460 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9461 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9462 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9463 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9464 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9465 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9466 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9467 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9468 as cancellation points.
9470 2003-11-01 Daniel Jacobowitz <dan@debian.org>
9472 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9473 parse more than three parts of the version number.
9475 2007-09-15 Ulrich Drepper <drepper@redhat.com>
9477 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9478 modifier. Patch by Jakub Jelinek.
9480 2007-08-26 Jakub Jelinek <jakub@redhat.com>
9482 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9483 call_fallocate in misc subdir.
9484 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9485 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9486 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9487 instead of __fallocate64.
9488 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9490 2007-09-15 Jakub Jelinek <jakub@redhat.com>
9492 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9493 * rt/Makefile (headers): Add bits/mqueue2.h.
9494 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9495 optimizing with GCC and __va_arg_pack_len is defined.
9496 * rt/bits/mqueue2.h: New file.
9497 * rt/mq_open.c (__mq_open): Renamed from mq_open.
9498 (mq_open): New strong_alias.
9499 (__mq_open_2): New function.
9500 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9501 (mq_open): New strong_alias.
9502 (__mq_open_2): New function.
9503 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9504 * Versions.def (librt): Add GLIBC_2.7 version.
9505 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9506 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9508 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9509 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9510 is defined rather than when not C++.
9511 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9512 __openat64_alias): New redirects.
9513 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9514 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9515 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9516 (open, open64, openat, openat64): Rewrite as __extern_always_inline
9517 functions instead of function-like macros.
9519 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
9521 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9522 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9523 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9525 2007-09-15 Mike Frysinger <vapier@gentoo.org>
9527 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9528 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9530 2007-09-14 Mike Frysinger <vapier@gentoo.org>
9532 * inet/tst-network.c: Increment ERRORS for failing tests.
9534 2007-09-07 Jakub Jelinek <jakub@redhat.com>
9536 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9537 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9538 implement as __extern_always_inline function.
9539 (vsyslog): Define as __extern_always_inline function unconditionally.
9540 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9541 When __va_arg_pack is defined, implement as __extern_always_inline
9543 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9544 __extern_always_inline functions unconditionally.
9545 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9546 bits/stdio2.h will be included.
9547 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9548 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9549 implement as __extern_always_inline functions.
9550 (vswprintf, vwprintf, vfwprintf): Define as
9551 __extern_always_inline functions unconditionally.
9552 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9554 2007-09-03 Jakub Jelinek <jakub@redhat.com>
9556 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9557 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9559 * include/features.h (__USE_EXTERN_INLINES): Define only when
9560 __extern_inline is defined.
9561 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9562 is defined instead of when not __cplusplus.
9563 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9564 is defined instead of when not __cplusplus.
9565 * socket/sys/socket.h: Include bits/socket2.h when
9566 __extern_always_inline is defined instead of when not __cplusplus.
9567 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9568 is defined instead of when not __cplusplus.
9569 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9570 is defined instead of when not __cplusplus.
9571 * string/string.h: Include bits/string3.h when __extern_always_inline
9572 is defined instead of when not __cplusplus.
9573 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9574 is defined instead of when not __cplusplus.
9575 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9576 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9578 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9579 defined __extern_always_inline instead of !defined __cplusplus.
9580 * libio/bits/stdio-ldbl.h: Likewise.
9581 * wcsmbs/bits/wchar-ldbl.h: Likewise.
9582 * misc/bits/syslog.h (syslog): Don't define for C++.
9583 (vsyslog): Use __extern_always_inline function for C++ instead of
9585 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9586 whenever that macro is defined.
9587 (vprintf): Don't provide the inline for C++.
9588 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9589 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9590 define the macros for C++.
9591 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9592 __extern_always_inline functions for C++.
9593 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9594 stat64, lstat64, fstat64, fstatat64): Don't define if not
9595 __USE_EXTERN_INLINES.
9596 * wcsmbs/bits/wchar2.h: Fix #error message.
9597 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9598 (vswprintf, vwprintf, vfwprintf): Define using
9599 __extern_always_inline functions for C++.
9600 * string/bits/string3.h: Don't #undef macros if __cplusplus.
9601 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9602 strncpy, strcat, strncat): Define as __extern_always_inline
9603 functions instead of macros for C++.
9604 * math/bits/cmathcalls.h: Guard __extern_inline routines with
9605 defined __extern_inline.
9606 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9607 to __extern_inline whenever that macro is defined.
9608 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9609 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9610 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9611 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9612 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9613 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9614 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9615 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9616 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9617 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9618 prototypes. Only provide __extern_inline routines if
9619 __USE_EXTERN_INLINES.
9620 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9622 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9623 For now avoid some *printf tests in C++. Skip all testing
9624 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9626 * debug/tst-chk4.cc: New file.
9627 * debug/tst-chk5.cc: New file.
9628 * debug/tst-chk6.cc: New file.
9629 * debug/tst-lfschk4.cc: New file.
9630 * debug/tst-lfschk5.cc: New file.
9631 * debug/tst-lfschk6.cc: New file.
9632 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9634 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9635 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9636 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9638 2007-09-13 Ulrich Drepper <drepper@redhat.com>
9640 * po/cs.po: Update from translation team.
9642 2007-09-11 Roland McGrath <roland@redhat.com>
9644 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9647 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9649 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9651 2007-09-05 Roland McGrath <roland@redhat.com>
9653 * manual/signal.texi (Signaling Another Process): Typo fix.
9654 From Karl Berry <karl@freefriends.org>.
9656 2007-08-29 Ulrich Drepper <drepper@redhat.com>
9658 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9659 zero if not defined.
9660 (make_request): Recognize optimistic addresses and treat them like
9661 deprecated addresses.
9662 Reported by Neil Horman <nhorman@redhat.com>.
9664 2007-08-28 Ulrich Drepper <drepper@redhat.com>
9666 * nscd/connections.c (send_ro_fd): Also transfer file size.
9667 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9668 file size don't call fstat.
9670 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9671 ahead and map the file. This should always be correct and we can
9672 catch problems later.
9674 2007-08-28 Jakub Jelinek <jakub@redhat.com>
9676 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9678 (__fread_alias, __fread_unlocked_alias): New aliases.
9679 (fread): New extern inline.
9680 (fread_unlocked): Likewise. Undef macro before definition of
9681 the inline function.
9682 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9683 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9684 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9685 and __fread_unlocked_chk@@GLIBC_2.7.
9686 * debug/fread_chk.c: New file.
9687 * debug/fread_u_chk.c: New file.
9688 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9690 2007-08-27 Jakub Jelinek <jakub@redhat.com>
9692 * sysdeps/unix/sysv/linux/syscalls.list
9693 (personality): Change caller to EXTRA.
9695 2007-08-25 Ulrich Drepper <drepper@redhat.com>
9697 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9699 * iconvdata/iso-2022-cn.c (BODY): Likewise.
9701 * locale/programs/ld-collate.c (collate_output): Avoid warning if
9704 * Makerules: Use -p option with mkdir.
9706 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9707 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9708 (_xdr_directory_obj): Likewise.
9709 (xdr_entry_obj): Likewise.
9710 (xdr_group_obj): Likewise.
9711 (xdr_link_obj): Likewise.
9712 (xdr_table_obj): Likewise.
9713 (_xdr_nis_result): Likewise.
9714 (_xdr_ns_request): Likewise.
9715 (_xdr_ib_request): Likewise.
9716 (_xdr_nis_taglist): Likewise.
9717 (xdr_cback_data): Likewise.
9718 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9719 (xdr_ypresp_maplist): Likewise.
9721 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9723 * posix/regex_internal.h: Prevent some declarations and definitions
9724 to be seen when used in tests.
9726 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9727 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9729 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9731 * config.make.in (datarootdir): Add to shut up configure.
9733 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9734 associativity for fully-associative caches.
9736 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9737 requests. Fill on more associativity values for L2.
9738 Patch mostly by Evandro Menezes.
9740 2007-08-24 Ulrich Drepper <drepper@redhat.com>
9742 * sysdeps/unix/sysv/linux/x86_64/init-first.c
9743 (_libc_vdso_platform_setup): Avoid using exported variable by using
9746 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9748 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9749 fallocate64 as EXTRA. It is not referenced if the symbol isn't
9752 2007-08-23 Ulrich Drepper <drepper@redhat.com>
9754 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9755 align stack for call if pltexit is to be used.
9758 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9759 align for function call in case pltexit has to be called later.
9761 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9762 implicit atomic operation when storing function pointer.
9763 (_dl_runtime_profile): Likewise.
9765 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9767 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9770 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9773 * string/strtok.c: Fix typo in comment.
9776 * debug/segfault.c: Fix typos in comments.
9779 * stdio-common/tempnam.c: Fix comment, it is not checked that
9780 TMPDIR points to a writable directory.
9783 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9784 memory allocated for the name server address.
9787 * nscd/connections.c (handle_request): Using sendfile always
9788 requires that mmap is used for the database.
9789 Patch by Petr Baudis <pasky@suse.cz>.
9792 * nscd/hstcache.c (cache_addhst): When reloading an entry which
9793 suddenly has two or more addresses, ignore it and remove the old
9797 * resolv/res_hconf.c: Prepare for compiling outside libc.
9798 * nscd/res_hconf.c: New file.
9799 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
9801 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9802 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9804 * nscd/hstcache.c (cache_addhst): Minimal optimization.
9807 * debug/pcprofiledump.c: Turn on internationalization by calling
9808 setlocale. Patch mostly by Benno Schulenberg.
9811 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9813 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9814 * iconvdata/bug-iconv5.c: New file.
9816 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
9819 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9820 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9821 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9822 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9823 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9824 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9825 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9826 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9828 2007-08-21 Ulrich Drepper <drepper@redhat.com>
9831 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9832 lookup loop. Suggested by John Reiser.
9834 2007-08-21 Jakub Jelinek <jakub@redhat.com>
9836 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9838 2007-08-20 Ulrich Drepper <drepper@redhat.com>
9840 * csu/libc-start.c: Don't handle VDSO_SETUP here.
9841 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9842 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9843 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
9844 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9846 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
9848 2007-08-18 Ulrich Drepper <drepper@redhat.com>
9850 * po/nl.po: Update from translation team.
9852 2007-08-16 Andreas Jaeger <aj@suse.de>
9854 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9855 Reported by Peter Festner <peter.festner@ewetel.net>.
9857 2007-08-17 Jakub Jelinek <jakub@redhat.com>
9859 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9861 2007-08-16 Jakub Jelinek <jakub@redhat.com>
9863 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9864 to check for undefined symbols.
9866 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9867 If the syscall fails, set errno to the actual returned error number
9869 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9870 arguments are incorrect, set errno to EINVAL, if the syscall
9871 fails, set errno to the actual returned error number.
9873 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9874 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9876 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9877 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
9879 (ASI_PNF, ASI_BLK_P): Don't define.
9880 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9881 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
9883 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9884 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
9887 2007-08-15 Jakub Jelinek <jakub@redhat.com>
9889 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9890 FE_UNDERFLOW on Niagara CPUs.
9892 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9895 2007-08-14 Jakub Jelinek <jakub@redhat.com>
9897 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9898 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9899 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9900 flush should be used or not inside of the function.
9901 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9903 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9904 __thread_start): Use HIDDEN_JUMPTARGET.
9905 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9906 __thread_start): Likewise.
9907 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9909 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9910 Add libc_hidden_proto.
9911 (STRTOF): Add libc_hidden_proto.
9912 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9913 (strtold_l, wcstold_l): Use them as second argument for
9916 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9918 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
9920 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9922 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
9924 2007-08-14 Ulrich Drepper <drepper@redhat.com>
9926 * po/bg.po: New file. From the translation team.
9928 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9930 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9931 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9932 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9933 when each feature was introduced.
9935 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9936 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9937 (CHECK_HASH): New macro.
9938 (PREPARE_VERSION): Use it.
9940 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9941 prototype if not __ASSUME_PSELECT.
9942 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9943 prototype if not __ASSUME_PPOLL.
9945 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9947 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9948 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9951 2007-08-13 Ulrich Drepper <drepper@redhat.com>
9953 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9954 (_libc_vdso_platform_setup): If vDSO is not available point
9955 __vdso_gettimeofday to the vsyscall.
9956 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9957 __vdso_gettimeofday instead of vsyscall.
9959 2007-08-13 Jakub Jelinek <jakub@redhat.com>
9961 * nscd/servicescache.c: Include kernel-features.h.
9962 * nscd/gai.c: Likewise.
9963 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9964 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9965 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9966 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9967 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9968 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9969 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9970 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9971 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9973 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9975 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9976 and _dl_get_origin defines anymore.
9978 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9979 Build fix for systems which might lack POSIX timer support.
9981 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9982 (_libc_vdso_platform_setup): Mangle function pointers before storing
9984 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9985 Demangle vdso pointer before use.
9986 (INTERNAL_VSYSCALL): Likewise.
9988 * elf/cache.c (primes): Mark as const.
9989 Noted by Roland McGrath.
9991 2007-08-01 Andreas Jaeger <aj@suse.de>
9992 Jakub Jelinek <jakub@redhat.com>
9994 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9995 (options): Add option.
9996 (parse_opt): Handle option.
9997 (manual_link): Adjust process_file caller. Call implicit_soname.
9998 (search_dir): Formatting. Use and populate auxiliary cache.
9999 (main): Load and save auxiliary cache.
10000 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
10001 stat64 from fstat64 to caller.
10002 (implicit_soname): New function.
10003 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
10004 leave *soname as NULL.
10005 * elf/cache.c: Include libgen.h.
10006 (print_entry, print_cache, compare, save_cache, add_to_cache):
10007 Formatting and cleanups.
10008 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
10009 aux_cache_file): New structures.
10010 (AUX_CACHEMAGIC): Define.
10011 (primes): New array.
10012 (aux_hash_size, aux_hash): New variables.
10013 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
10014 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
10015 load_aux_cache, save_aux_cache): New functions.
10016 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
10017 (init_aux_cache, search_aux_cache, add_to_aux_cache,
10018 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
10019 (process_file): Adjust prototype.
10021 2007-08-12 Jakub Jelinek <jakub@redhat.com>
10023 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
10024 with __need_size_t.
10026 2007-08-12 Ulrich Drepper <drepper@redhat.com>
10028 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
10029 r_found_version structure as second parameter.
10030 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
10031 (_dl_vdso_vsym): Change type of second parameter accordingly.
10032 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
10033 (_libc_vdso_platform_setup): Adjust.
10034 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10035 (_libc_vdso_platform_setup): Likewise.
10037 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
10038 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
10039 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
10040 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
10041 * csu/libc-start.c: Pretty printing.
10042 Use VDSO_SETUP if defined.
10043 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
10044 and let generic code call into _libc_vdso_platform_setup.
10045 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
10046 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
10047 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
10048 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
10049 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
10051 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
10052 (sysdep_rountines): Add dl-vdso.
10054 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
10057 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
10058 attribute_hidden to __vdso_gettimeofday prototype.
10060 2007-08-12 Roland McGrath <roland@redhat.com>
10062 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
10063 From: Karl Berry <karl@freefriends.org>.
10065 2007-08-11 Ulrich Drepper <drepper@redhat.com>
10067 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
10068 an atime update for the files we read.
10070 2007-08-10 Ulrich Drepper <drepper@redhat.com>
10072 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
10074 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
10075 instead of mkstemp.
10077 * misc/Makefile (routines): Add mkostemp and mkostemp64.
10078 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
10079 * misc/mkostemp.c: New file.
10080 * misc/mkostemp64.c: New file.
10081 * stdlib/stdlib.h: Declare the new functions.
10082 * sysdeps/posix/tempname.c: Add new parameter which is added to
10083 the flags for open. Remove __GT_BIGFILE handling.
10084 * stdio-common/tempname.c: Likewise.
10085 * include/stdio.h: Adjust __gen_tempname prototype.
10086 Renumber __GT_* constants.
10087 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
10088 * misc/mkdtemp.c: Likewise.
10089 * misc/mkstemp.c: Likewise.
10090 * misc/mkstemp64.c: Likewise.
10091 * misc/mktemp.c: Likewise.
10092 * stdio-common/tempnam.c: Likewise.
10093 * stdio-common/tmpfile.c: Likewise.
10094 * stdio-common/tmpfile64.c: Likewise.
10095 * stdio-common/tmpnam.c: Likewise.
10096 * stdio-common/tmpnam_r.c: Likewise.
10098 2007-08-10 Roland McGrath <roland@frob.com>
10100 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
10102 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
10103 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10105 2007-08-10 Ulrich Drepper <drepper@redhat.com>
10107 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
10109 * nss/nss_files/files-alias.c (internal_setent): Likewise.
10110 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
10111 * nss/nss_files/files-have_o_cloexec.c: New file.
10113 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
10116 2007-08-10 Jakub Jelinek <jakub@redhat.com>
10118 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
10119 ___new_wcstold_l): New weak aliases.
10120 (strtold_l, wcstold_l): Use them as second argument for
10121 long_double_symbol.
10123 2007-08-09 Ulrich Drepper <drepper@redhat.com>
10125 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
10126 register in test for error.
10128 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
10129 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
10131 * po/sv.po: Update from translation team.
10133 2007-08-06 Roland McGrath <roland@redhat.com>
10135 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
10136 Remove __strto*_l inlines.
10137 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
10138 * stdlib/strtod.c: Add libc_hidden_def.
10139 * stdlib/strtod_l.c: Likewise.
10140 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
10141 for __new_strtold and __new_wcstold.
10142 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
10144 * stdlib/strtol.c: Add libc_hidden_def.
10145 * stdlib/strtol_l.c: Likewise.
10146 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
10149 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
10151 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
10152 * scripts/data/localplt-generic.data: ... here.
10153 * elf/Makefile (check-data): Get generic file if no other.
10154 ($(objpfx)check-localplt.out): Make target unconditional.
10156 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
10159 2007-08-05 Ulrich Drepper <drepper@redhat.com>
10161 * po/zh_CN.po: Updated translation from translation team.
10163 2007-08-05 Jakub Jelinek <jakub@redhat.com>
10165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
10166 Don't use CGOTSETUP and CGOTRESTORE macros.
10168 2007-08-04 Roland McGrath <roland@redhat.com>
10170 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
10172 2007-08-04 Jakub Jelinek <jakub@redhat.com>
10174 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
10175 __extension__ around the whole statement expression.
10177 2007-08-04 Ulrich Drepper <drepper@redhat.com>
10179 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
10180 elements during initialization.
10182 * po/pl.po: Updated translation from translation team.
10183 * po/tr.po: Likewise.
10184 * po/nl.po: Likewise.
10186 2007-08-03 Ulrich Drepper <drepper@redhat.com>
10188 * rt/aio.h: Add __nonnull attributes.
10190 2007-08-03 Jakub Jelinek <jakub@redhat.com>
10192 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
10193 * stdlib/Makefile (tests): Add tst-strtod5.
10194 (tst-strtod5-ENV): New.
10195 * stdlib/tst-strtod5.c: New file.
10197 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
10199 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
10202 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
10205 2007-08-03 Jakub Jelinek <jakub@redhat.com>
10207 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
10210 2007-08-02 Ulrich Drepper <drepper@redhat.com>
10212 * io/Makefile (aux): Add have_o_cloexec.
10213 * include/fcntl.h: Declare __have_o_cloexec.
10214 * io/have_o_cloexec.c: New file.
10215 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
10216 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
10217 fcntl call if not necessary.
10218 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
10221 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
10222 Avoid memset, add explicit initialization.
10223 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
10224 to the end and change into zero-sized array.
10225 Move lock member to fill a hole on 64-bit platforms.
10227 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
10229 * include/stdlib.h: Add __strto*_internal prototypes here.
10230 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
10232 * include/wchar.h: Add __wcsto*_internal prototypes.
10233 * sysdeps/generic/inttypes.h: No need to protect the declaration
10234 of the __strto*_internal and __wcsto*_internal members here.
10236 * rt/mqueue.h: Change const to __const and add nonnull attributes.
10238 2007-08-02 Roland McGrath <roland@redhat.com>
10240 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
10241 $(inst_bindir)/getconf if possible.
10243 * posix/Makefile ($(objpfx)getconf.speclist): New target.
10244 (generated): Add it.
10245 ($(inst_libexecdir)/getconf): Use it.
10247 2007-08-01 Ulrich Drepper <drepper@redhat.com>
10249 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
10250 /proc is faster and sufficient. /sys is still needed for
10253 2007-08-01 Jakub Jelinek <jakub@redhat.com>
10255 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
10256 syscall as __fallocate64.
10257 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
10258 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
10260 2007-07-30 Jakub Jelinek <jakub@redhat.com>
10262 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
10265 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
10266 if off_t is different rank from size_t.
10268 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
10269 uw_frame_state_for): Avoid type punning warnings.
10270 * sysdeps/generic/unwind-dw2-fde-glibc.c
10271 (_Unwind_IteratePhdrCallback): Likewise.
10272 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
10273 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
10274 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
10277 2007-07-31 Ulrich Drepper <drepper@redhat.com>
10279 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
10280 total processors using sysfs.
10281 (__get_nprocs): Use sysfs to determine which processors are online.
10283 2007-07-31 Jakub Jelinek <jakub@redhat.com>
10285 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
10286 syscall arguments count.
10288 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
10290 2007-07-30 Roland McGrath <roland@redhat.com>
10292 * manual/libc.texinfo: Update copyrights, formatting magic, and
10293 @dircategory. From Karl Berry <karl@freefriends.org>.
10295 2007-07-29 Ulrich Drepper <drepper@redhat.com>
10298 * io/Makefile (headers): Add bits/fcntl2.h.
10300 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
10302 (__CPU_EQUAL_S): Likewise.
10304 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
10305 (tests): Add tst-cpuset.
10306 * posix/sched_cpualloc.c: New file.
10307 * posix/sched_cpufree.c: New file.
10308 * posix/tst-cpuset.c: New file.
10309 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
10311 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
10312 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
10313 macros. Define CPU_*_S macros.
10315 2007-07-28 Ulrich Drepper <drepper@redhat.com>
10317 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
10321 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
10322 #.0g and value rounded to 1.0.
10323 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
10325 2007-07-26 Jakub Jelinek <jakub@redhat.com>
10327 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
10328 for int_frac_digits and frac_digits.
10330 * login/logout.c (logout): Avoid aliasing violation.
10331 * login/logwtmp.c (logwtmp): Likewise.
10333 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
10335 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
10337 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
10339 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
10341 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
10344 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
10346 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
10348 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
10349 char * to avoid warning.
10350 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
10352 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
10354 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
10355 allocate_arrays): Cast second argument to charmap_find_symbol
10356 to char * to avoid warnings.
10358 * locale/programs/repertoire.c (repertoire_new_char): Change
10359 from_nr, to_nr and cnt to unsigned long, adjust printf format
10362 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
10363 Cast second argument to new_element to char * to avoid warnings.
10365 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
10367 * intl/gettextP.h (struct loaded_domain): Change plural to const
10368 struct expression *.
10369 * intl/plural-eval.c (plural_eval): Change first argument to
10370 const struct expression *.
10371 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
10372 argument to const struct expression **.
10373 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
10375 * intl/loadmsgcat (_nl_unload_domain): Cast away const
10376 in call to __gettext_free_exp.
10378 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
10379 unitialized wstring/wpattern var warnings.
10381 * posix/runtests.c (struct a_test): Make data field const char *.
10383 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
10384 vars if not LDBL_MANT_DIG >= 106.
10386 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
10388 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
10389 __find_specmb to avoid warning.
10391 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
10393 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
10396 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
10399 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
10400 tv var when it will be actually used.
10402 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
10405 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
10406 char array resp. pointer.
10407 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10409 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10410 to const unsigned char **.
10411 (ucs4_to_cns11643): Change second argument to unsigned char *.
10412 * iconvdata/euc-tw.c (BODY): Change endp type to
10413 const unsigned char *.
10414 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10415 to unsigned char *.
10416 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10417 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10418 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10419 types to unsigned char pointers/arrays instead of char.
10420 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10421 to unsigned char *.
10422 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10423 * iconvdata/jis0212.h: Include assert.h.
10424 (ucs4_to_jisx0212): Change second argument to unsigned char *.
10425 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10426 of trying to handle that.
10427 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10429 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10430 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10431 two dimensional const unsigned char arrays.
10432 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10433 Initialize endp to inptr to shut up a warning.
10435 2007-07-20 Jakub Jelinek <jakub@redhat.com>
10438 * time/strptime_l.c (__strptime_internal): Silently ignore
10439 strftime modifiers and field width in recursive calls.
10441 * include/time.h (enum ptime_locale_status): Remove.
10442 (__strptime_internal): Remove decided and era_cnt arguments,
10443 add statep argument.
10444 * time/strptime_l.c (__strptime_internal): Remove decided
10445 and era_cnt arguments, add statep argument. Don't recompute
10446 any fields in recursive calls, only update caller's tm
10447 and state, if recursive call fails, don't change tm nor
10449 (get_alt_number): Adjust.
10450 (recursive): Adjust caller.
10451 (strptime): Likewise.
10452 * time/strptime.c (strptime): Likewise.
10454 2007-07-19 Jakub Jelinek <jakub@redhat.com>
10456 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10457 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10458 if from and to charsets are the same.
10459 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10460 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10461 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10463 2007-07-17 Jakub Jelinek <jakub@redhat.com>
10465 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10466 Don't define wint_t when __need_mbstate_t unless it
10468 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10469 in the typedef if possible.
10470 * wctype/wctype.h (wint_t): Define by including
10471 wchar.h with __need_wint_t instead of including stddef.h
10472 with __need_wint_t and as fallback definining it ourselves.
10473 * iconv/gconv.h (__need_wint_t): Define before including
10475 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10476 or _GLIBCPP_USE_WCHAR_T.
10477 (__need_wchar_t): Don't define
10478 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10479 (__need_wint_t): Don't define before including stddef.h,
10480 define before including wchar.h only if _LIBC or
10481 _GLIBCPP_USE_WCHAR_T.
10482 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10483 * sysdeps/mach/hurd/_G_config.h: Likewise.
10484 * sysdeps/generic/_G_config.h: Likewise.
10485 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10486 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10487 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10488 if _LIBC or _GLIBCPP_USE_WCHAR_T.
10490 2007-07-28 Ulrich Drepper <drepper@redhat.com>
10492 * sysdeps/posix/posix_fallocate64.c: Undefine
10493 __posix_fallocate64_l64 before alias handling.
10494 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10495 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10496 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10497 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10499 * io/tst-posix_fallocate.c: Include <fcntl.h>.
10501 2007-07-23 Jakub Jelinek <jakub@redhat.com>
10503 * locale/programs/ld-collate.c (atwc): New variable.
10504 (add_to_tablewc): New toplevel function, moved from collate_output.
10505 (collate_output): Remove add_to_tablewc nested function.
10507 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10508 (name_insert): New function.
10509 (write_output): Remove hash_table and hash_size vars and name_insert
10512 2007-07-24 Roland McGrath <roland@redhat.com>
10514 * Makerules (install-others-programs-nosubdir): New target.
10515 (install-no-libc.a-nosubdir): Depend on it.
10517 * iconv/Makefile (install-others-programs): Set this instead of
10519 * login/Makefile (install-others-programs): Likewise.
10520 * posix/Makefile (install-others-programs): Likewise.
10522 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10525 2007-07-23 Ulrich Drepper <drepper@redhat.com>
10527 * io/Makefile (tests): Add tst-posix_fallocate.
10528 * io/tst-posix_fallocate.c: New file.
10530 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10531 __ASSUME_FALLOCATE.
10533 2007-07-22 Roland McGrath <roland@frob.com>
10535 * hurd/getdport.c: Add missing copyright year update.
10537 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10538 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10540 2007-07-22 Ulrich Drepper <drepper@redhat.com>
10542 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10544 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10545 O_CLOEXEC is needed.
10546 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10547 Avoid additional fcntl to set O_CLOEXEC if not needed.
10548 * nis/nss_compat/compat-initgroups.c: Likewise.
10549 * nis/nss_compat/compat-pwd.c: Likewise.
10550 * nis/nss_compat/compat-spwd.c: Likewise.
10552 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
10555 * manual/errno.texi: Change ECANCELED value to 119.
10558 * mach/lock-intern.h: Include <sys/cdefs.h>.
10561 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10565 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10568 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10570 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
10572 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10574 * sysdeps/mach/hurd/i386/tls.h: Likewise.
10576 2007-07-21 Ulrich Drepper <drepper@redhat.com>
10578 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10579 descriptor received from nscd.
10581 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10583 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10584 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10585 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10586 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10587 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10588 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10590 2007-07-20 Jakub Jelinek <jakub@redhat.com>
10593 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10596 * login/forkpty.c (forkpty): Close master and slave fds on
10597 fork failure. Patch by
10598 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10600 2007-07-18 Jakub Jelinek <jakub@redhat.com>
10602 * include/features.h (__USE_ISOC95): New define.
10603 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10604 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10605 for -std=iso9899:199409.
10606 * CONFORMANCE: Remove comments about unsupported AMD1.
10608 2007-07-17 Jakub Jelinek <jakub@redhat.com>
10610 * sysdeps/ia64/sched_cpucount.c: New file.
10611 * sysdeps/powerpc/sched_cpucount.c: New file.
10613 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10614 __BEGIN_DECLS/__END_DECLS around the prototype.
10615 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
10616 pointer to const cpu_set_t.
10618 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10619 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10620 __need_size_t and include stddef.h.
10621 * sysvipc/sys/msg.h: Likewise.
10622 * posix/sched.h: Likewise.
10623 * hurd/hurd/signal.h (__need_size_t): Define.
10625 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10626 neither does signal.h in pedantic ISO C namespaces. stdio.h
10627 no longer defines wint_t or wchar_t.
10629 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10630 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10631 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10632 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10633 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10634 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10635 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10636 * debug/printf_chk.c (__printf_chk): Likewise.
10637 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10638 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10640 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10643 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10644 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10646 2007-07-16 Jakub Jelinek <jakub@redhat.com>
10649 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10650 * malloc/malloc.h (realloc): Likewise.
10652 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10653 if one of proc_file_chain streams has that fileno.
10654 * stdio-common/Makefile (tests): Add tst-popen2.
10655 * stdio-common/tst-popen2.c: New test.
10657 2007-07-14 Jakub Jelinek <jakub@redhat.com>
10659 * elf/ldconfig.c: Allow GPLv2 or any later version.
10660 * elf/readlib.c: Likewise.
10661 * elf/chroot_canon.c: Likewise.
10662 * elf/cache.c: Likewise.
10663 * nscd/mem.c: Likewise.
10664 * nscd/getpwuid_r.c: Likewise.
10665 * nscd/grpcache.c: Likewise.
10666 * nscd/aicache.c: Likewise.
10667 * nscd/getsrvbynm_r.c: Likewise.
10668 * nscd/nscd.c: Likewise.
10669 * nscd/servicescache.c: Likewise.
10670 * nscd/getsrvbypt_r.c: Likewise.
10671 * nscd/initgrcache.c: Likewise.
10672 * nscd/gethstbyad_r.c: Likewise.
10673 * nscd/gethstbynm2_r.c: Likewise.
10674 * nscd/getgrnam_r.c: Likewise.
10675 * nscd/nscd_setup_thread.c: Likewise.
10676 * nscd/getpwnam_r.c: Likewise.
10677 * nscd/gai.c: Likewise.
10678 * nscd/connections.c: Likewise.
10679 * nscd/dbg_log.c: Likewise.
10680 * nscd/cache.c: Likewise.
10681 * nscd/hstcache.c: Likewise.
10682 * nscd/nscd_conf.c: Likewise.
10683 * nscd/getgrgid_r.c: Likewise.
10684 * nscd/pwdcache.c: Likewise.
10685 * catgets/gencat.c: Likewise.
10686 * locale/programs/linereader.h: Likewise.
10687 * locale/programs/locarchive.c: Likewise.
10688 * locale/programs/ld-paper.c: Likewise.
10689 * locale/programs/locfile-kw.h: Likewise.
10690 * locale/programs/ld-address.c: Likewise.
10691 * locale/programs/xmalloc.c: Likewise.
10692 * locale/programs/ld-time.c: Likewise.
10693 * locale/programs/localedef.c: Likewise.
10694 * locale/programs/simple-hash.c: Likewise.
10695 * locale/programs/xstrdup.c: Likewise.
10696 * locale/programs/ld-numeric.c: Likewise.
10697 * locale/programs/locfile-kw.gperf: Likewise.
10698 * locale/programs/ld-collate.c: Likewise.
10699 * locale/programs/charmap-kw.gperf: Likewise.
10700 * locale/programs/charmap.h: Likewise.
10701 * locale/programs/charmap-kw.h: Likewise.
10702 * locale/programs/config.h: Likewise.
10703 * locale/programs/locfile.c: Likewise.
10704 * locale/programs/ld-ctype.c: Likewise.
10705 * locale/programs/charmap.c: Likewise.
10706 * locale/programs/ld-messages.c: Likewise.
10707 * locale/programs/repertoire.h: Likewise.
10708 * locale/programs/locale.c: Likewise.
10709 * locale/programs/ld-name.c: Likewise.
10710 * locale/programs/linereader.c: Likewise.
10711 * locale/programs/locfile.h: Likewise.
10712 * locale/programs/3level.h: Likewise.
10713 * locale/programs/ld-monetary.c: Likewise.
10714 * locale/programs/ld-measurement.c: Likewise.
10715 * locale/programs/charmap-dir.c: Likewise.
10716 * locale/programs/ld-identification.c: Likewise.
10717 * locale/programs/localedef.h: Likewise.
10718 * locale/programs/charmap-dir.h: Likewise.
10719 * locale/programs/repertoire.c: Likewise.
10720 * locale/programs/simple-hash.h: Likewise.
10721 * locale/programs/ld-telephone.c: Likewise.
10722 * locale/programs/locale-spec.c: Likewise.
10723 * locale/programs/locfile-token.h: Likewise.
10724 * posix/getconf.c: Likewise.
10725 * iconv/dummy-repertoire.c: Likewise.
10726 * iconv/iconv_charmap.c: Likewise.
10727 * iconv/iconvconfig.c: Likewise.
10728 * iconv/iconv_prog.c: Likewise.
10729 * malloc/memusagestat.c: Likewise.
10730 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10732 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10734 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10735 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10736 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10737 check for the first argument.
10739 2007-07-12 Jakub Jelinek <jakub@redhat.com>
10742 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10743 (__tgmath_real_type): Fix if expr is const int or other const
10744 qualified integral type.
10745 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10746 expressions and handle const qualified arguments.
10747 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10748 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10749 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10750 statement expressions.
10751 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10752 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10753 (__TGMATH_UNARY_IMAG): Define.
10754 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10755 * math/Makefile (tests): Add test-tgmath2.
10756 (CFLAGS-test-tgmath2.c): Add.
10757 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10758 count_cfloat, count_cldouble): New variables.
10760 (main): Check number of complex calls as well.
10761 (F(compile_test)): Add complex tests and tests with const qualified
10763 (y, z, ccount): Define.
10764 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10765 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10766 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10767 F(cproj)): New functions.
10768 * math/test-tgmath2.c: New test.
10770 2007-07-11 Jakub Jelinek <jakub@redhat.com>
10773 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10774 RPATH etc. as "/" rather than "", don't segfault on empty paths,
10775 instead output ".".
10776 * dlfcn/Makefile (distribute): Add glreflib3.c.
10777 (module-names): Add glreflib3.
10778 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10780 (LDFLAGS_glreflib3.so): New.
10781 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10783 * dlfcn/glreflib3.c: New file.
10785 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10786 returned -1, return NULL.
10787 * intl/explodename.c (_nl_explode_name): Return -1 if
10788 _nl_normalize_codeset failed.
10790 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
10792 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10793 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
10794 and avoid branch misspredicts for > 31 bytes memset case.
10795 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10796 Remove toc ref to __cache_line_size.
10798 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10799 to get ISA-V2.0 branch hints.
10800 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10801 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10802 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10803 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10804 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10805 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10806 Remove toc ref to __cache_line_size.
10808 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10809 Include math_ldbl_opt.h.
10811 2007-07-10 Ulrich Drepper <drepper@redhat.com>
10814 * time/strptime_l.c (__strptime_internal): Implement greedy
10815 matching of weekday and month names.
10817 2007-07-09 Roland McGrath <roland@redhat.com>
10819 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10820 (ELF_NOTE_ABI): Use it.
10821 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10823 2007-07-09 Ulrich Drepper <drepper@redhat.com>
10825 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10826 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10828 2007-07-07 Ulrich Drepper <drepper@redhat.com>
10831 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10832 in loop to look for conversion specifier to avoid testing of
10834 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10835 * stdio-common/bug18.c: New file.
10836 * stdio-common/bug18a.c: New file.
10837 * stdio-common/bug19.c: New file.
10838 * stdio-common/bug19a.c: New file.
10840 2007-07-05 Mike Frysinger <vapier@gentoo.org>
10842 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10843 running awk script.
10845 2007-07-01 Jakub Jelinek <jakub@redhat.com>
10847 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10848 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
10849 Return NULL if mmap failed instead of asserting it does not.
10850 (calloc): Check for integer overflow.
10852 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10853 than LONG_MAX / 10.
10855 2007-07-03 Jakub Jelinek <jakub@redhat.com>
10858 * nis/nss-default.c: Include errno.h.
10859 (init): Preserve errno.
10861 2007-07-02 Ulrich Drepper <drepper@redhat.com>
10863 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10865 2007-06-30 Ulrich Drepper <drepper@redhat.com>
10867 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10869 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10871 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10873 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
10875 * sysdeps/s390/dl-procinfo.c: New file.
10876 * sysdeps/s390/dl-procinfo.h: New file.
10877 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10879 2007-06-29 Jakub Jelinek <jakub@redhat.com>
10881 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10882 in PT_NOTE segments with multiple notes.
10883 * elf/readelflib.c (process_elf_file): Likewise.
10885 2007-06-22 Ulrich Drepper <drepper@redhat.com>
10887 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10890 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10892 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10894 2007-06-13 Jakub Jelinek <jakub@redhat.com>
10896 * include/link.h: Don't include rtld-lowlevel.h.
10897 (struct link_map): Remove l_scope_lock.
10898 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10899 (_dl_scope_free_list): New field (variable) in _rtld_global.
10900 (DL_LOOKUP_SCOPE_LOCK): Remove.
10901 (_dl_scope_free): New prototype.
10902 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10903 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10904 (_dl_profile_fixup): Likewise.
10905 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
10906 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10907 THREAD_GSCOPE_RESET_FLAG around it.
10908 * elf/dl-close.c (_dl_close_worker): Don't use
10909 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
10910 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
10911 scopes were queued or if l_scope_mem has been abandoned.
10912 * elf/dl-open.c (_dl_scope_free): New function.
10913 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
10914 * elf/dl-support.c (_dl_scope_free_list): New variable.
10915 * elf/dl-lookup.c (add_dependency): Remove flags argument.
10916 Remove DL_LOOKUP_SCOPE_LOCK handling.
10917 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
10919 * elf/dl-object.c (_dl_new_object): Don't use
10920 __rtld_mrlock_initialize.
10922 2007-06-19 Ulrich Drepper <drepper@redhat.com>
10924 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10926 (rtld_global_ro): Likewise.
10928 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10930 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10931 Move PT_LOAD checking to...
10932 (_dl_addr_inside_object): ... here, new function.
10933 * elf/dl-sym.c (do_sym): If not l_contiguous,
10934 call _dl_addr_inside_object.
10935 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10936 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10937 * elf/dl-open.c (dl_open_worker): Likewise.
10938 (_dl_addr_inside_object): New function if IS_IN_rtld.
10939 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10940 holes are present or are PROT_NONE protected.
10941 * include/link.h (struct link_map): Add l_contiguous field.
10942 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10944 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10945 Tomas Janousek <tjanouse@redhat.com>
10946 Ulrich Drepper <drepper@redhat.com>
10949 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
10950 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10952 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
10953 unused member a bitmap.
10954 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10955 servers are configured.
10957 2007-06-18 Jakub Jelinek <jakub@redhat.com>
10959 * elf/rtld.c (dl_main): Don't call init_tls more than once.
10961 2007-06-17 Andreas Schwab <schwab@suse.de>
10963 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10965 2007-06-16 Andreas Jaeger <aj@suse.de>
10968 * sysdeps/unix/sysv/linux/sys/ptrace.h
10969 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10970 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10971 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10972 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10973 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10975 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10976 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10977 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10978 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10980 2007-06-16 Ulrich Drepper <drepper@redhat.com>
10983 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10984 determining whether there are IPv4/IPv6 addresses, ignore loopback
10987 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10989 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10990 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10991 as the return type. Change type of "r" variable to CMPtype.
10992 * soft-fp/eqsf2.c (__eqsf2): Likewise.
10993 * soft-fp/eqtf2.c (__eqtf2): Likewise.
10994 * soft-fp/gedf2.c (__gedf2): Likewise.
10995 * soft-fp/gesf2.c (__gesf2): Likewise.
10996 * soft-fp/getf2.c (__getf2): Likewise.
10997 * soft-fp/ledf2.c (__ledf2): Likewise.
10998 * soft-fp/lesf2.c (__lesf2): Likewise.
10999 * soft-fp/letf2.c (__letf2): Likewise.
11000 * soft-fp/unorddf2 (__unorddf2): Likewise.
11001 * soft-fp/unordsf2 (__unordsf2): Likewise.
11002 * soft-fp/unordtf2 (__unordtf2): Likewise.
11004 2007-06-09 Ulrich Drepper <drepper@redhat.com>
11006 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
11007 make sure gcc doesn't mess around with this.
11009 2007-06-08 Ulrich Drepper <drepper@redhat.com>
11011 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
11013 2007-06-08 Jakub Jelinek <jakub@redhat.com>
11015 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
11016 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
11017 at most once per _dl_close_worker.
11019 2007-06-08 Ulrich Drepper <drepper@redhat.com>
11021 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
11022 __sched_cpucount as const.
11023 * posix/sched_cpucount.c: Adjust.
11025 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
11026 instruction for counting bits.
11027 * sysdeps/x86_64/sched_cpucount.c: New file.
11029 2007-06-07 Ulrich Drepper <drepper@redhat.com>
11031 * configure.in: Avoid variable named BASH.
11032 * config.make.in: Likewise.
11033 Patch in part by Mike Frysinger.
11035 2007-06-06 Jakub Jelinek <jakub@redhat.com>
11038 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
11039 pseudo-zeros as zero.
11040 * sysdeps/x86_64/ldbl2mpn.c: New file.
11041 * sysdeps/ia64/ldbl2mpn.c: New file.
11043 2007-06-04 Jakub Jelinek <jakub@redhat.com>
11045 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
11046 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
11047 Remove unreachable code at the end.
11049 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
11051 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
11052 ldbl-128ibm in comment.
11053 (fpclassifyl): Correct classification of denormals.
11054 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
11055 return value for MIN denormal. Rewrite using long double math too
11056 correctly handle denormals and canonicalize the results.
11058 2007-06-05 Jakub Jelinek <jakub@redhat.com>
11060 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
11061 (__mpn_construct_long_double): Fix conversion where result ought
11062 to be smaller than __LDBL_MIN__, or the low double should be
11063 denormal. Fix decision where to negate low double - honor round
11065 * stdio-common/tst-sprintf2.c: Include string.h.
11066 (COMPARE_LDBL): Define.
11067 (TEST): Also test whether a string hexadecimal float representation
11068 can be parsed back to the number.
11069 (main): Add a couple of further tests.
11071 2007-06-04 Jakub Jelinek <jakub@redhat.com>
11073 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
11074 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
11075 is non-zero, but smaller than 2 * __DBL_MIN__.
11076 * stdio-common/tst-sprintf2.c: New test.
11077 * stdio-common/Makefile (tests): Add tst-sprintf2.
11079 * math/test-misc.c (main): Don't run last batch of tests with
11080 IBM long double format.
11082 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
11084 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
11085 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
11086 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
11087 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
11088 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
11089 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
11090 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
11091 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
11092 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
11093 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
11094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
11095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
11097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
11099 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
11101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
11103 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
11105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
11106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
11108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
11110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
11112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
11114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
11117 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
11119 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
11120 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
11121 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
11122 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
11123 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
11124 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
11125 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
11126 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
11128 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
11130 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
11131 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11132 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
11133 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11134 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
11135 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11136 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
11137 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
11139 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
11141 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
11142 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
11143 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
11144 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
11146 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
11148 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
11149 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
11151 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
11153 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
11154 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
11155 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
11156 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
11158 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
11160 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
11161 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
11163 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
11165 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
11166 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
11168 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
11169 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
11170 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
11171 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11173 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
11175 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
11176 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
11177 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
11178 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
11180 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
11182 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
11183 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
11184 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
11185 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
11186 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
11187 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
11189 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
11191 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
11192 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
11193 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
11194 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
11196 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
11198 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
11199 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
11200 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
11201 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
11202 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
11203 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
11204 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
11205 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
11206 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
11207 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
11208 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
11209 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
11210 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
11211 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
11212 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
11213 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
11215 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
11217 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
11218 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
11220 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
11222 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
11223 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
11225 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
11227 * sysdeps/powerpc/powerpc32/970/Implies: New file.
11228 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
11229 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
11230 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
11231 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
11232 * sysdeps/powerpc/powerpc64/970/Implies: New file.
11233 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
11234 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
11235 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
11236 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
11238 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
11240 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
11242 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
11244 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
11245 branch miss-predicts. Ensure that cache line crossing does not impact
11248 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
11250 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
11251 "../../powerpc32/power4/memcopy.h".
11252 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
11253 "../../powerpc32/power4/wordcopy.c".
11255 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
11257 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
11258 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
11259 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
11260 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
11261 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
11262 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
11264 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
11266 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
11268 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
11270 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
11271 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
11272 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
11273 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
11274 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
11275 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
11276 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
11277 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
11279 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
11281 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
11283 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
11285 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
11286 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
11287 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
11288 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
11289 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
11290 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
11291 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
11293 2007-05-29 Roland McGrath <roland@redhat.com>
11295 * po/Makefile (po-sed-cmd): New variable.
11296 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
11298 2007-05-29 Ulrich Drepper <drepper@redhat.com>
11300 * crypt/md5-crypt.c: Fix comment.
11302 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
11303 of crashing. When this is the case or if the reply is malformed,
11304 don't try to close the new file descriptor since it does not
11306 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
11308 2007-05-28 Jakub Jelinek <jakub@redhat.com>
11310 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
11311 if __NR_utimensat is not defined.
11313 2007-05-26 Ulrich Drepper <drepper@redhat.com>
11315 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
11317 2007-05-25 Jakub Jelinek <jakub@redhat.com>
11319 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
11320 (open): Fix comment typos. Don't call __open_2 if flags
11321 is a compile time constant without O_CREAT.
11322 (__open64_2): Add nonnull attribute.
11323 (open64): Fix comment typos. Don't call __open64_2 if flags
11324 is a compile time constant without O_CREAT.
11325 (__openat_2): Add nonnull attribute, fix nonnull attribute
11327 (openat): Fix comment typos. Don't call __openat_2 if flags
11328 is a compile time constant without O_CREAT.
11329 (__openat64_2): Add nonnull attribute, fix nonnull attribute
11331 (openat64): Fix comment typos. Don't call __openat64_2 if flags
11332 is a compile time constant without O_CREAT.
11334 2007-05-24 Ulrich Drepper <drepper@redhat.com>
11336 * Makerules (sysd-rules): Define PTW for ptw-* files.
11337 * Versions: Define GLIBC_2.7 for libc.
11338 * include/stdio.h: Declare __fortify_fail.
11339 * debug/fortify_fail.c: New file.
11340 * debug/Makefile (routines): Add fortify_fail.
11341 * debug/chk_fail.c: Use __fortify_fail.
11342 * debug/stack_chk_fail.c: Likewise.
11343 * io/Versions: Export __open_2, __open64_2, __openat_2, and
11344 __openat64_2 for GLIBC_2.7.
11345 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
11346 * io/open.c: Define *_2 variant of function which checks for O_CREAT
11347 and fails if necessary.
11348 * io/open64.c: Likewise.
11349 * io/openat.c: Likewise.
11350 * io/openat64.c: Likewise.
11351 * sysdeps/unix/sysv/linux/open64.c: Likewise.
11352 * sysdeps/unix/sysv/linux/openat.c: Likewise.
11353 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
11354 * io/bits/fcntl2.h: New file.
11355 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
11357 * include/bits/fcntl2.h: New file.
11358 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11360 * sysdeps/unix/sysv/linux/open_2.c: New file.
11362 2007-05-21 Ulrich Drepper <drepper@redhat.com>
11364 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
11365 as second parameter to handle_intel.
11367 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
11370 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
11372 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
11373 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11375 * sysdeps/x86_64/memcpy.S: Complete rewrite.
11376 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
11377 Patch by Evandro Menezes <evandro.menezes@amd.com>.
11379 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
11381 2007-05-21 Jakub Jelinek <jakub@redhat.com>
11384 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
11385 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
11386 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
11388 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
11391 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
11392 reinitialize workend at the start of each do_positional format spec
11393 loop, free workstart before do_positional loops.
11394 (printf_unknown): Fix size of work_buffer.
11395 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
11397 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
11398 (public_sET_STATe): If ms->version < 3, put all chunks into
11399 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
11402 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
11403 * malloc/hooks.c: Likewise.
11404 * malloc/arena.c: Likewise.
11405 * malloc/malloc.c (do_check_malloc_state): Don't assert
11406 n_mmaps is not greater than n_mmaps_max. This removes the need
11407 for the previous change.
11409 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11412 2007-05-19 Ulrich Drepper <drepper@redhat.com>
11414 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11415 Define for kernel >= 2.6.22.
11417 2007-05-18 Ulrich Drepper <drepper@redhat.com>
11419 * elf/dl-close.c (_dl_close_worker): When removing object from
11420 global scope, wait for all lookups to finish afterwards.
11421 * elf/dl-open.c (add_to_global): When global scope array must
11422 grow, allocate a new one and free old array only after all
11424 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11425 (_dl_lookup_symbol_x): Likewise.
11426 * elf/dl-support.c: Define _dl_wait_lookup_done.
11427 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11428 _dl_wait_lookup_done.
11430 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11431 not overlapping with arena.
11433 * malloc/mcheck.c (reallochook): If size==0, free the block.
11435 * rt/tst-shm.c: Use fstat64 instead of fstat.
11437 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11438 __NR_sync_file_range is not defined.
11440 2007-05-17 Ulrich Drepper <drepper@redhat.com>
11442 Dummy files to prevent stub versions from being used.
11443 * sysdeps/x86_64/fpu/k_cosl.c: New file.
11444 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11445 * sysdeps/x86_64/fpu/k_sinl.c: New file.
11446 * sysdeps/x86_64/fpu/k_tanl.c: New file.
11448 * version.h (VERSION): Set to 2.6.90.
11450 2007-05-14 Ulrich Drepper <drepper@redhat.com>
11452 * version.h (VERSION): Define to 2.6.
11453 * include/features.h (__GLIBC_MINOR__): Define to 6.
11455 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11457 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11460 2007-05-13 Ulrich Drepper <drepper@redhat.com>
11462 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11463 number of mmaps. n_mmaps_max is the target.
11464 * malloc/hooks.c: Likewise.
11465 * malloc/arena.c: Likewise.
11467 2007-05-12 Andreas Jaeger <aj@suse.de>
11469 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11472 2007-05-11 Ulrich Drepper <drepper@redhat.com>
11474 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11475 adding new variables.
11477 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11478 optimize. Completely extend global scope array before making the
11479 new entries visible.
11481 2007-05-10 Ulrich Drepper <drepper@redhat.com>
11483 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11484 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11487 * include/link.h: Move l_version and l_nversion members around to
11490 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11492 * sysdeps/unix/sysv/linux/sched_setaffinity.c
11493 (__sched_setaffinity_new): If syscall was successful and
11494 RESET_VGETCPU_CACHE is defined, use it before returning.
11495 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11497 * io/sys/stat.h: Make sure struct timespec is defined for
11500 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11502 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11503 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11504 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11505 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11506 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11507 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11508 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11509 * io/sys/stat.h: Declare utimensat, futimens.
11510 * io/utimensat.c: New file.
11511 * io/futimens.c: New file.
11512 * sysdeps/unix/sysv/linux/utimensat.c: New file.
11513 * sysdeps/unix/sysv/linux/futimens.c: New file.
11514 * io/Makefile (routines): Add utimensat, futimens.
11515 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11516 * sysdeps/unix/sysv/linux/lutimes.c: New file.
11517 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11520 * include/sys/cdefs.h: Redefine __nonnull so that test for
11521 incorrect parameters in the libc code itself are not omitted.
11523 2007-05-09 Jakub Jelinek <jakub@redhat.com>
11525 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11526 exception in addition to inexact when asked to raise only FE_INEXACT.
11529 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11532 2007-05-07 Ulrich Drepper <drepper@redhat.com>
11535 * string/strfry.c (strfry): Make result more random.
11537 2007-05-07 Richard Henderson <rth@redhat.com>
11539 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11540 if __NO_LONG_DOUBLE_MATH.
11541 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11542 available in the compiler, add .arch directive to the assembly.
11544 2007-05-07 Jakub Jelinek <jakub@redhat.com>
11546 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11547 compat_symbol to GLIBC_2_1.
11548 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11549 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11550 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11551 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11552 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11553 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11554 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11556 (__isnanl): New compat_symbol.
11558 2007-05-07 Ulrich Drepper <drepper@redhat.com>
11559 Jakub Jelinek <jakub@redhat.com>
11561 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11562 (new_heap): Initialize mprotect_size.
11563 (grow_heap): When growing, only mprotect from mprotect_size till
11564 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
11565 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11567 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
11568 Peter Bergner <bergner@us.ibm.com>
11570 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11571 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
11572 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11573 * sysdeps/powerpc/fpu/fe_mask.c: New file.
11574 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11575 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11576 Call __fe_mask_env() if all FP exceptions disabled.
11577 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11578 from old FPSCR to new fenv to propagate DFP rounding modes.
11579 Call __fe_mask_env() if FP exceptions previously enabled.
11580 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11581 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
11582 transitioning from all exceptions disabled to any exception enabled
11584 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11585 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
11586 when transitioning from all exceptions disabled to any exception
11587 enabled or visa versa.
11588 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11589 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11591 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11595 2007-05-06 Ulrich Drepper <drepper@redhat.com>
11598 * posix/unistd.h: Remove __THROW from fdatasync.
11600 2007-05-06 Mike Frysinger <vapier@gentoo.org>
11603 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11605 2007-05-06 Ulrich Drepper <drepper@redhat.com>
11607 * stdio-common/vfprintf.c (process_string_arg): Optimize
11608 ridiculous precision in wide char code printing multi-byte string.
11609 Reported by Jim Meyering <jim@meyering.net>.
11612 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11613 boundaries to work around systems with overlapping binary loading.
11614 Based on a patch by Suzuki <suzuki@in.ibm.com>.
11616 2007-05-04 Ulrich Drepper <drepper@redhat.com>
11618 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11619 __mbsnrtowcs after last change.
11621 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11622 (get_ident): Likewise.
11624 2007-05-03 Jakub Jelinek <jakub@redhat.com>
11626 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11627 with setting the sticky bit.
11628 * math/test-misc.c (main): Add more truncation tests.
11630 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
11632 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11633 double in the function declaration.
11634 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11635 double in the function declaration.
11636 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11637 float in the function declaration.
11638 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11639 float in the function declaration.
11641 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11642 denormal operands. Do not generate FP_EX_DENORM exception.
11643 (FP_UNPACK_RAW_EP): Ditto.
11644 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11645 undefined _FP_UNPACK_RAW_E.
11646 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11647 undefined _FP_UNPACK_RAW_EP.
11648 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11649 undefined _FP_PACK_RAW_E.
11650 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11651 undefined _FP_PACK_RAW_EP.
11653 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11655 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11658 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
11659 Jakub Jelinek <jakub@redhat.com>
11661 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11662 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
11664 * soft-fp/op-common.h (FP_TRUNC): Ditto.
11666 2007-05-03 Jakub Jelinek <jakub@redhat.com>
11668 * math/test-misc.c (main): Add tests for rounding long double
11669 values close to smallest double denormalized value to double.
11671 2007-04-30 Joseph Myers <joseph@codesourcery.com>
11673 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11674 condition for truncating to 0. Set sticky bit for such
11677 2007-05-02 Jakub Jelinek <jakub@redhat.com>
11679 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11680 fixed length array for ignore.
11682 2007-04-30 Ulrich Drepper <drepper@redhat.com>
11685 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11686 stack for large precisions.
11687 * stdio-common/test-vfprintf.c (main): Add test for large
11690 2007-04-30 Jakub Jelinek <jakub@redhat.com>
11692 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11694 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11697 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11698 account in the size check.
11699 * resolv/tst-inet_ntop.c: New test.
11700 * resolv/Makefile (tests): Add tst-inet_ntop.
11702 2007-04-30 Ulrich Drepper <drepper@redhat.com>
11703 Jakub Jelinek <jakub@redhat.com>
11706 * malloc/malloc.c: Keep separate list for first blocks on the bin
11707 lists with a given size. This helps skipping over list elements
11708 we know won't fit in two places.
11709 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11711 2007-04-28 Ulrich Drepper <drepper@redhat.com>
11714 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11715 label to Teredo tunnel addresses 2001://32.
11717 2007-04-27 Ulrich Drepper <drepper@redhat.com>
11719 * locale/programs/ld-collate.c (collate_read): Allow order_start
11722 * locale/programs/ld-collate.c (collate_read): Fix printing of
11726 * locale/C-translit.h.in: Add entry for U2044.
11729 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11730 hexa-decimal floats without exponent.
11731 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11733 2007-04-25 Ulrich Drepper <drepper@redhat.com>
11735 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11736 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11737 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11738 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11740 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11743 2007-04-25 Jakub Jelinek <jakub@redhat.com>
11745 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11746 of 0 after the out_fail label.
11748 2007-04-25 Ulrich Drepper <drepper@redhat.com>
11751 * iconv/gconv_charset.h (strip): Allow ':'.
11752 * iconv/iconv_open.c (iconv_open): Adjust comment.
11754 2007-04-25 Jakub Jelinek <jakub@redhat.com>
11756 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11759 2007-04-23 Jakub Jelinek <jakub@redhat.com>
11762 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11763 alignment of buffer and tmp_buffer.
11764 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11765 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11766 alignment of buffer.
11767 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
11768 bigger than INT_MAX.
11769 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
11770 h_errnop arguments. Fail if buflen is too small.
11771 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11773 2007-04-23 Jakub Jelinek <jakub@redhat.com>
11776 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11777 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
11779 2007-04-22 Roland McGrath <roland@redhat.com>
11781 * elf/elf.h (NT_PRXFPREG): New macro.
11783 2007-04-19 Andreas Jaeger <aj@suse.de>
11786 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11787 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11790 2007-04-19 Ulrich Drepper <drepper@redhat.com>
11792 * include/sys/mman.h: Mark madvise hidden.
11793 * misc/madvise.c: Add libc_hidden_def.
11795 2007-04-06 Jakub Jelinek <jakub@redhat.com>
11797 * nis/nis_domain_of.c (__nis_domain_of): New function.
11798 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11799 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11800 * nis/nis_call.c (rec_dirsearch): Likewise.
11801 (first_shoot): Likewise. Remove search_parent_first argument.
11802 (struct nis_server_cache): Rename search_parent_first field
11804 (nis_server_cache_search, nis_server_cache_add): Rename
11805 search_parent_first argument to search_parent.
11806 (__nisfind_server): Likewise. If search_parent, call
11809 2007-04-18 Ulrich Drepper <drepper@redhat.com>
11811 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11813 2007-04-17 Ulrich Drepper <drepper@redhat.com>
11816 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11818 2007-04-16 Ulrich Drepper <drepper@redhat.com>
11821 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11823 2007-04-15 Jakub Jelinek <jakub@redhat.com>
11825 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11826 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11827 current number of locales in SUPPORTED.
11828 (create_archive): Initialize serial.
11829 (enlarge_archive): Preserve aliases rather than duplicating
11832 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11834 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11835 after _IO_un_link, not before it.
11837 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11838 special case handling when wcp == wstartp + 1. Fix a comment typo.
11839 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11841 2007-03-30 Jakub Jelinek <jakub@redhat.com>
11843 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11844 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11845 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11847 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11848 _IO_file_xsgetn_maybe_mmap): Likewise.
11849 * libio/oldfileops.c (old_do_write): Likewise.
11850 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11851 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11852 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11853 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11854 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11855 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11856 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11857 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11858 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11859 _IO_file_underflow, _IO_file_underflow_mmap,
11860 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11861 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11862 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11863 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11864 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11865 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11866 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11867 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11868 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11869 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11870 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11871 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11872 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11873 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11874 _IO_adjust_column_internal, _IO_default_uflow_internal,
11875 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11876 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11877 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11878 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11879 _IO_file_close_it_internal, _IO_file_underflow_internal,
11880 _IO_file_overflow_internal, _IO_file_attach_internal,
11881 _IO_file_fopen_internal, _IO_file_sync_internal,
11882 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11883 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11884 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11885 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11886 _IO_seekpos_unlocked): Likewise.
11887 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11888 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11890 2007-04-16 Jakub Jelinek <jakub@redhat.com>
11892 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11893 argument in xmalloc size computation.
11895 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11897 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11898 math_opt_barrier and math_force_eval macros.
11900 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11903 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11904 * sysdeps/i386/fpu/math_private.h: New file.
11905 * sysdeps/x86_64/fpu/math_private.h: New file.
11906 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11907 math_force_eval macros. Use "+m" constraint on asm rather than
11909 * math/s_nextafter.c (__nextafter): Likewise.
11910 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11912 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11913 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11914 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11915 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11916 math_opt_barrier and math_force_eval macros.
11917 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11918 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11919 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11920 (__nexttoward): Use math_opt_barrier and
11921 math_force_eval macros. Use "+m" constraint on asm rather than
11922 "=m" and "m". Only use asm to force double result if
11923 FLT_EVAL_METHOD is 2.
11924 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11925 (__nexttowardf): Use math_opt_barrier and
11926 math_force_eval macros. Use "+m" constraint on asm rather than
11927 "=m" and "m". Only use asm to force double result if
11928 FLT_EVAL_METHOD is not 0.
11929 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11930 (__nexttowardf): Use math_opt_barrier and
11931 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11932 x to float using asm.
11933 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11934 (__nldbl_nexttowardf): Use math_opt_barrier and
11935 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
11936 x to float using asm.
11937 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11938 (__nexttowardf): Use math_opt_barrier and math_force_eval
11939 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
11940 * math/bug-nextafter.c (zero, inf): New variables.
11941 (main): Add new tests.
11942 * math/bug-nexttoward.c (zero, inf): New variables.
11943 (main): Add new tests.
11945 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11948 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11949 exceptions both in SW and MXCSR.
11950 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11951 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11952 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11953 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11954 in MXCSR if SSE is available.
11955 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11957 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11959 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11960 Return 0 rather than 1.
11961 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11962 Remove incorrect part of a comment. Fix argument to feraiseexcept.
11963 * math/test-fenv.c (feholdexcept_tests): New function.
11966 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
11969 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11972 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11975 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11976 Reported by David Anderson <davea42@earthlink.net>.
11978 2007-04-07 Ulrich Drepper <drepper@redhat.com>
11980 * posix/sys/wait.h: Remove unnecessary forward declaration.
11982 2007-04-05 Jakub Jelinek <jakub@redhat.com>
11984 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11985 with obj->do_servers after first_shoot.
11987 2007-04-03 Ulrich Drepper <drepper@redhat.com>
11989 * posix/Makefile (routines): Add sched_cpucount.
11990 (tests): Add tst-cpucount.
11991 * posix/sched_cpucount.c: New file.
11992 * posix/tst-cpucount.c: New file.
11993 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11994 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
11995 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11996 * posix/sched.h: Define CPU_COUNT.
11998 2007-03-27 Jakub Jelinek <jakub@redhat.com>
12000 * posix/fnmatch.c (STRUCT): Define.
12001 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
12002 * posix/fnmatch_loop.c (struct STRUCT): New type.
12003 (FCT): Add ends argument. If ends != NULL and normal * is
12004 seen in the pattern, store current pattern and string pointers
12005 and return. Adjust recursive calls.
12006 (EXT): Adjust FCT callers.
12007 (STRUCT): Undef at the end of the file.
12008 * posix/Makefile (tests): Add tst-fnmatch2.
12009 * posix/tst-fnmatch2.c: New test.
12011 2007-04-01 Jakub Jelinek <jakub@redhat.com>
12013 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
12016 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
12017 Change last argument to unsigned int.
12019 2007-03-23 Jakub Jelinek <jakub@redhat.com>
12021 * scripts/check-local-headers.sh: Filter out sys/capability.h.
12023 2007-03-22 Jakub Jelinek <jakub@redhat.com>
12025 * config.h.in (HAVE_LIBCAP): Add.
12026 * nscd/selinux.h: Include sys/capability.h rather than non-existent
12027 sys/capabilities.h.
12028 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
12029 free_caps. Cast away const from 4th cap_set_flag argument.
12031 2007-03-26 Ulrich Drepper <drepper@redhat.com>
12033 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
12035 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12036 Add sync_file_range.
12037 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
12039 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
12041 * sysdeps/powerpc/bits/atomic.h
12042 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
12043 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
12044 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
12045 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
12046 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
12047 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
12048 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
12049 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
12050 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
12051 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
12052 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
12053 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
12054 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
12055 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
12056 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
12057 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
12058 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
12059 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
12060 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
12061 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
12063 2007-03-20 Jakub Jelinek <jakub@redhat.com>
12065 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
12066 (__cache_line_size): Define the variable here. Add
12067 attribute_hidden, remove weak_extern.
12068 (__libc_start_main): Set __cache_line_size
12070 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
12071 (__cache_line_size): Define the variable here. Add
12072 attribute_hidden, remove weak_extern.
12073 (DL_PLATFORM_AUXV): Set __cache_line_size
12075 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
12076 weak_extern, add attribute_hidden.
12077 (__elf_machine_runtime_setup): Assume __cache_line_size is always
12079 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
12081 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
12083 2007-03-26 Jakub Jelinek <jakub@redhat.com>
12086 * timezone/africa: Update from tzdata2007d.
12087 * timezone/asia: Likewise.
12088 * timezone/australasia: Likewise.
12089 * timezone/backward: Likewise.
12090 * timezone/europe: Likewise.
12091 * timezone/iso3166.tab: Likewise.
12092 * timezone/leapseconds: Likewise.
12093 * timezone/northamerica: Likewise.
12094 * timezone/southamerica: Likewise.
12095 * timezone/zone.tab: Likewise.
12097 * timezone/private.h: Update from tzcode2007d.
12098 * timezone/zdump.c: Likewise.
12099 * timezone/zic.c: Likewise.
12101 2007-03-21 Jakub Jelinek <jakub@redhat.com>
12103 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
12104 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
12106 (nis_server_cache_search, nis_server_cache_add): New functions.
12107 (__nisfind_server): Use them. Add dbp and flags argument, if
12108 call __nisbind_create.
12109 (__nisbind_create): Add server_used and current_ep arguments,
12110 only call __nis_findfastest if server_used is ~0.
12111 (__do_niscall2, __prepare_niscall): Adjust callers.
12112 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
12113 ckey_cache_euid, ckey_cache_lock): New variables.
12114 (get_ckey): New function.
12115 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
12116 __pmap_getnisport. Save __pmap_getnisport result in
12117 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
12119 * nis/nis_lookup.c (nis_lookup): Likewise.
12120 * nis/nis_table.c (nis_list): Likewise.
12121 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
12124 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
12125 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
12126 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
12127 _nss_nisplus_getservbyport_r): Likewise.
12128 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
12129 _nss_nisplus_getnetbyaddr_r): Likewise.
12130 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
12131 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
12132 _nss_nisplus_getntohost_r): Likewise.
12133 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
12134 _nss_nisplus_getrpcbynumber_r): Likewise.
12136 2007-03-20 Jakub Jelinek <jakub@redhat.com>
12138 * configure.in (libc_cv_gnu89_inline): Only do compile test.
12139 * configure: Rebuilt.
12141 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
12143 * soft-fp/extended.h (_FP_UNION_E): Likewise.
12145 2006-06-07 Joseph Myers <joseph@codesourcery.com>
12148 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
12151 2007-03-18 Jakub Jelinek <jakub@redhat.com>
12153 * nscd/gai.c: Include alloca.h.
12154 (__libc_use_alloca): Define.
12156 2007-03-16 Jakub Jelinek <jakub@redhat.com>
12158 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
12160 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
12161 (DL_DST_REQUIRED): Adjust user.
12163 * include/dlfcn.h (struct link_map): New forward decl.
12165 * inet/getnameinfo.c: Include stddef.h.
12166 (getnameinfo): Use offsetof.
12168 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
12170 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
12172 * string/strerror_l.c: Include stdlib.h.
12174 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
12175 * config.make.in (gnu89-inline-CFLAGS): New variable.
12176 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
12178 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
12179 * argp/argp.h: Use it.
12180 * bits/mathinline.h: Likewise.
12181 * bits/sigset.h: Likewise.
12182 * bits/string.h: Likewise.
12183 * ctype/ctype.h: Likewise.
12184 * hurd/hurd.h: Likewise.
12185 * hurd/hurd/fd.h: Likewise.
12186 * hurd/hurd/port.h: Likewise.
12187 * hurd/hurd/signal.h: Likewise.
12188 * hurd/hurd/threadvar.h: Likewise.
12189 * hurd/hurd/userlink.h: Likewise.
12190 * io/sys/stat.h: Likewise.
12191 * libio/bits/stdio.h: Likewise.
12192 * libio/bits/stdio2.h: Likewise.
12193 * mach/lock-intern.h: Likewise.
12194 * mach/mach/mig_support.h: Likewise.
12195 * math/bits/cmathcalls.h: Likewise.
12196 * posix/bits/unistd.h: Likewise.
12197 * socket/bits/socket2.h: Likewise.
12198 * stdlib/bits/stdlib.h: Likewise.
12199 * stdlib/stdlib.h: Likewise.
12200 * string/argz.h: Likewise.
12201 * string/bits/string2.h: Likewise.
12202 * string/bits/string3.h: Likewise.
12203 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
12204 * sysdeps/generic/inttypes.h: Likewise.
12205 * sysdeps/generic/machine-lock.h: Likewise.
12206 * sysdeps/generic/machine-sp.h: Likewise.
12207 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
12208 * sysdeps/i386/i486/bits/string.h: Likewise.
12209 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
12210 * sysdeps/mach/alpha/machine-lock.h: Likewise.
12211 * sysdeps/mach/alpha/machine-sp.h: Likewise.
12212 * sysdeps/mach/i386/machine-lock.h: Likewise.
12213 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
12214 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
12215 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
12216 * sysdeps/s390/bits/string.h: Likewise.
12217 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
12218 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12219 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
12220 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12221 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12222 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
12223 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12224 * wcsmbs/bits/wchar2.h: Likewise.
12225 * wcsmbs/wchar.h: Likewise.
12226 * stdlib/gmp.h: Likewise. Include <features.h> to get
12227 __extern_inline definition.
12229 2007-03-15 Jakub Jelinek <jakub@redhat.com>
12231 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
12235 * math/libm-test.inc (log_test): Test -Inf and NaN.
12236 (log10_test, log1p_test, log2_test): Test -Inf.
12237 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
12238 FE_INVALID when argument is qNaN.
12239 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
12240 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
12241 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
12242 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
12243 andb $1, %ah with testb $1, %ah, don't test for parity, instead
12244 testb $4, %ah and jump if non-zero.
12245 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
12246 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
12249 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
12250 ancestors with the same depths.
12251 Patch by Niels Moeller <nisse@lysator.liu.se>.
12252 (filter_doc): Don't crash if argp is NULL.
12253 * argp/Makefile (tests): Add tst-argp2.
12254 * argp/tst-argp2.c: New test.
12257 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
12259 (updwtmp_file): Likewise.
12262 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
12263 (inet6_opt_append): Don't check extlen is big enough if extbuf
12265 (inet6_opt_finish): Likewise.
12266 * inet/Makefile (tests): Add test-inet6_opt.
12267 * inet/test-inet6_opt.c: New test.
12269 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
12270 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
12271 NLMSG_ERR. Instead use a page sized buffer.
12272 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
12275 2007-03-14 Richard Henderson <rth@redhat.com>
12277 * sysdeps/alpha/fpu/s_llround.c: New file.
12278 * sysdeps/alpha/fpu/s_llroundf.c: New file.
12279 * sysdeps/alpha/fpu/s_lround.c: New file.
12280 * sysdeps/alpha/fpu/s_lroundf.c: New file.
12281 * sysdeps/alpha/fpu/s_round.c: New file.
12282 * sysdeps/alpha/fpu/s_roundf.c: New file.
12283 * sysdeps/alpha/fpu/s_trunc.c: New file.
12284 * sysdeps/alpha/fpu/s_truncf.c: New file.
12286 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
12287 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12288 * sysdeps/alpha/fpu/s_floor.c: Likewise.
12289 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12290 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12291 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12293 * sysdeps/alpha/fpu/s_fmax.S: New file.
12294 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
12295 * sysdeps/alpha/fpu/s_fmin.S: New file.
12296 * sysdeps/alpha/fpu/s_fminf.S: New file.
12297 * sysdeps/alpha/fpu/s_isnan.c: New file.
12298 * sysdeps/alpha/fpu/s_isnanf.c: New file.
12299 * sysdeps/alpha/fpu/s_llrint.c: New file.
12300 * sysdeps/alpha/fpu/s_llrintf.c: New file.
12301 * sysdeps/alpha/fpu/s_lrint.c: New file.
12302 * sysdeps/alpha/fpu/s_lrintf.c: New file.
12303 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
12304 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
12306 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
12307 (__fdimf, fdimf, __fdim, fdim): Remove.
12308 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
12309 (__isnanf, __isnan, __isnanl): New.
12311 2007-03-13 Richard Henderson <rth@redhat.com>
12313 * sysdeps/ieee754/ldbl-128/Makefile: New file.
12315 2007-03-13 Richard Henderson <rth@redhat.com>
12317 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
12318 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
12319 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
12320 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
12321 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
12322 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
12324 2007-03-13 Richard Henderson <rth@redhat.com>
12326 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
12327 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
12328 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
12329 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
12330 Move to dl-auxv.h; initialize instead of extern weak.
12331 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
12333 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
12334 Extern instead of initialized.
12336 2007-03-13 Richard Henderson <rth@redhat.com>
12338 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
12339 __sigsuspend_nocancel.
12341 2007-03-06 Ulrich Drepper <drepper@redhat.com>
12343 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
12344 172.16/12 address range.
12346 2007-03-02 Jakub Jelinek <jakub@redhat.com>
12348 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
12349 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
12352 2007-03-01 Jakub Jelinek <jakub@redhat.com>
12355 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
12357 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
12359 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
12360 for x qNaN and y either +-inf or non-integer value.
12361 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
12362 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12363 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12365 2007-02-10 Mike Frysinger <vapier@gentoo.org>
12367 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
12368 from sysdep_headers.
12370 2007-02-28 Jakub Jelinek <jakub@redhat.com>
12372 * time/tzfile.c (find_transition): Instead of a linear search try to
12373 guess the transition index, use a linear search if the result is at
12374 most 10 transitions away from the guess or binary search otherwise.
12376 2007-02-27 Jakub Jelinek <jakub@redhat.com>
12378 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
12379 memory reallocation.
12381 2007-02-21 Ulrich Drepper <drepper@redhat.com>
12383 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
12384 and fix some typos.
12385 Optimize use of TOLOWER.
12388 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
12389 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12390 * sysdeps/i386/fpu/e_fmod.S: Likewise.
12393 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
12394 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
12397 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
12398 (open_dir_stream): Likewise.
12399 * io/Makefile (tests): Add bug-ftw5.
12400 * io/bug-ftw5.c: New file.
12402 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
12403 * nscd/servicescache.c (cache_addserv): Likewise.
12405 * nscd/grpcache.c (cache_addgr): In case a record changed on
12406 refresh, adjust key_copy.
12409 * nscd/pwdcache.c (cache_addpw): In case a record changed on
12410 refresh, adjust key_copy.
12413 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12415 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12417 2007-02-19 Ulrich Drepper <drepper@redhat.com>
12419 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12422 * stdio-common/vfscanf.c: Small cleanups throughout.
12424 2007-02-18 Ulrich Drepper <drepper@redhat.com>
12427 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12428 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12429 * sysdeps/i386/fpu/e_fmod.S: Likewise.
12430 Patch by Jared Casper <jaredcasper@gmail.com>.
12432 * sysdeps/unix/closedir.c: Outside libc don't use locking.
12433 * sysdeps/unix/opendir.c: Likewise.
12434 * sysdeps/unix/readdir.c: Likewise.
12437 * stdio-common/vfscanf.c: Handle localized digits etc for floating
12439 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12441 * stdio-common/vfscanf.c: Fix problems in width accounting.
12442 * stdio-common/tst-sscanf.c (double_tests): New tests.
12443 (main): Hook them up.
12445 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12446 More simplifications of floating-point reader.
12448 * stdio-common/Makefile (tests): Add tst-swscanf.
12449 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12451 * stdio-common/tst-swscanf.c: New file.
12453 2007-02-17 Ulrich Drepper <drepper@redhat.com>
12456 * libio/stdio.h: Define struct _IO_FILE in global namespace.
12457 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12458 Remove using for __jmp_buf_tag.
12459 * locale/locale.h (struct lconv): Also define in std namespace.
12460 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12463 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12464 using __libc_enable_secure.
12467 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12470 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12471 of names for ellipsises.
12474 * malloc/memusage.sh: Cleanups.
12475 * debug/xtrace.sh: Quoting and trap changes.
12477 2007-02-16 Ulrich Drepper <drepper@redhat.com>
12479 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12481 * locale/iso-3166.def: Update entry for Serbia.
12482 * locale/iso-4217.def: Define RSD, remove CSD.
12484 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12485 and 64-bit operations.
12488 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12491 * nscd/nscd.c (parse_opt): One more conversion to use send instead
12494 2007-02-15 Ulrich Drepper <drepper@redhat.com>
12497 * assert/assert.h (assert): Simplify.
12498 (assert_perror): Likewise.
12499 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12501 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12504 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12505 change: don't pass NULL in place of an integer.
12507 2007-02-02 Bruno Haible <bruno@clisp.org>
12510 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12511 Add mapping for U+327E.
12512 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12513 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12514 mapping of 0xD9 0xE8.
12515 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12517 Reported by Jungshik Shin <jungshik@google.com>.
12520 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12521 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12522 Reported by Jungshik Shin <jungshik@google.com>.
12524 2007-02-14 Ulrich Drepper <drepper@redhat.com>
12526 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12530 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12531 byte variants. Patch mostly be tom@tommay.net.
12533 2007-02-14 Jakub Jelinek <jakub@redhat.com>
12536 * posix/glob.c (attribute_hidden): Define if not defined.
12537 (glob): Unescape dirname, filename or username when needed and not
12538 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
12539 is NULL. Handle unescaped [ in pattern without closing ].
12540 Don't pass GLOB_CHECK down to recursive glob for directories.
12541 (__glob_pattern_type): New function.
12542 (__glob_pattern_p): Implement using __glob_pattern_type.
12543 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12544 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12545 Remove unreachable code.
12546 * posix/globtest.sh: Add a couple of new tests.
12548 2007-02-13 Ulrich Drepper <drepper@redhat.com>
12550 * po/ru.po: Update from translation team.
12552 2007-02-12 Jakub Jelinek <jakub@redhat.com>
12554 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12555 to the list of i486+ CPUs.
12556 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12558 2007-02-12 Ulrich Drepper <drepper@redhat.com>
12560 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12561 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12564 2007-02-09 Ulrich Drepper <drepper@redhat.com>
12566 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12568 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12569 * resolv/res_mkquery.c: Define __res_nopt.
12570 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12571 try adding EDNS0 record.
12572 * resolv/res_send.c (send_dg): If request failed with FORMERR and
12573 EDNS0 record was send make sure we don't try it again.
12574 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12575 * include/resolv.h: Declare __res_nopt.
12577 2007-02-08 Jakub Jelinek <jakub@redhat.com>
12580 * time/strptime_l.c (__strptime_internal): Set have_mon for
12581 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
12582 have been computed from tm_yday and tm_year. Don't crash
12583 in day_of_the_week or day_of_the_year if not have_mon
12584 and tm_mon contains bogus value.
12585 * time/Makefile (tests): Add tst-strptime3.
12586 * time/tst-strptime3.c: New test.
12588 2007-02-05 Jakub Jelinek <jakub@redhat.com>
12591 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12592 bit for RE_HAT_LISTS_NOT_NEWLINE.
12593 (build_charclass_op): Remove bogus comment.
12594 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12595 * posix/bug-regex27.c: New test.
12596 * posix/bug-regex28.c: New test.
12598 2007-02-03 Ulrich Drepper <drepper@redhat.com>
12600 * po/sv.po: Update from translation team.
12602 2007-02-02 Ulrich Drepper <drepper@redhat.com>
12604 * nscd/nscd_helper.c (open_socket): Minor size optimization.
12606 2007-02-02 Jakub Jelinek <jakub@redhat.com>
12608 * include/locale.h (__uselocale): Add libc_hidden_proto.
12609 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12611 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12614 2007-02-01 Ulrich Drepper <drepper@redhat.com>
12616 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12618 (PTR_DEMANGLE): Real definition now that it's not the same as
12619 PRT_MANGLE anymore.
12620 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12622 * string/strerror_l.c: New file.
12623 * string/Makefile (routines): Add strerror_l.
12624 * string/string.h: Declare strerror_l.
12625 * string/Versions: Export strerror_l for GLIBC_2.6.
12627 2007-01-31 Ulrich Drepper <drepper@redhat.com>
12629 * nscd/nscd_helper.c (open_socket): Now takes request type and key
12630 as parameter. Construct request record. Try sending request
12631 before the first poll use, it usually succeeds. Adjust all
12633 * nscd/nscd-client.h: Define MAXKEYLEN.
12634 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12636 2007-01-31 Jakub Jelinek <jakub@redhat.com>
12638 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12640 * nscd/nscd_helper.c: Include string.h.
12641 (__nscd_cache_search): Remove const qualifier from return value.
12642 On strict alignment architectures check hash entry and data head
12644 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12645 mmapped data during GC cycle contains garbage. If
12646 __nscd_drop_map_ref fails, decrement mapped->counter when returning
12647 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12649 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12650 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12651 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12652 * nscd/nscd_getai.c (__nscd_getai): Likewise.
12653 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12655 2007-01-30 Ulrich Drepper <drepper@redhat.com>
12657 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12659 2007-01-26 Ulrich Drepper <drepper@redhat.com>
12661 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12662 names not numbers in cfi_*.
12664 2007-01-26 Andreas Jaeger <aj@suse.de>
12666 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12667 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12668 Correct values of PER_HPUX and PER_OSF4.
12670 2007-01-24 Ulrich Drepper <drepper@redhat.com>
12672 * elf/dl-minimal.c: Undefine _itoa first.
12673 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12674 * malloc/mtrace.c: Revert last change.
12675 * posix/wordexp.c: Likewise.
12677 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12679 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12680 and __geode__ to the list of i486+ CPUs.
12681 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12683 2007-01-23 Ulrich Drepper <drepper@redhat.com>
12685 * stdio-common/_itoa.c: Include <limits.h>.
12686 * stdio-common/_itowa.c: Likewise.
12688 2007-01-22 Ulrich Drepper <drepper@redhat.com>
12690 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12692 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12694 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12696 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12700 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12701 * stdio-common/Makefile (tests): Add bug17.
12702 * stdio-common/bug17.c: New file.
12704 2007-01-19 Ulrich Drepper <drepper@redhat.com>
12706 * iconvdata/brf.c: New file.
12707 * iconvdata/testdata/BRF: New file.
12708 * iconvdata/testdata/BRF..UTF8: New file.
12709 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12710 * iconvdata/Makefile: Add rules to build BRF.
12711 * iconvdata/TESTS: Add BRF entry.
12712 * iconvdata/gconv-modules: Likewise.
12713 * iconvdata/tst-tables.sh: Likewise.
12715 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
12717 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12718 type `long long int', not `long int'.
12719 (wcstoq): Likewise.
12721 2007-01-18 Ulrich Drepper <drepper@redhat.com>
12723 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12724 of values on 64-bit platforms which are too large.
12726 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
12727 Joe Kerian <jkerian@us.us.ibm.com>
12730 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12731 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
12732 (__copysignl): Use signbit() for comparison.
12733 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12734 SET_LDOUBLE_WORDS64.
12737 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12738 (__ceill): Remove calls to fegetround(), fesetround().
12739 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12740 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12741 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12743 2007-01-17 Jakub Jelinek <jakub@redhat.com>
12745 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12747 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12749 2007-01-17 Ulrich Drepper <drepper@redhat.com>
12751 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12753 * csu/libc-start.c: Likewise.
12755 2007-01-16 Ulrich Drepper <drepper@redhat.com>
12757 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12758 really work anyway.
12760 2007-01-15 Ulrich Drepper <drepper@redhat.com>
12762 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
12764 (handle_request): Remove unnecessary tests.
12766 * nscd/cache.c (cache_add): Record the failure to add to the cache.
12768 2007-01-15 Jakub Jelinek <jakub@redhat.com>
12770 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12771 workbits in semi-raw fraction.
12773 * math/test-misc.c: Add new tests.
12775 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
12777 * math/basic-test.c: Include test-skeleton.c.
12778 (TEST_TRUNC): Define.
12779 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12780 (main): Rename to ...
12781 (do_test): ...this. Run new tests.
12782 (TEST_FUNCTION): Define.
12784 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
12785 Joe Kerian <jkerian@us.us.ibm.com>
12788 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12789 handling for high words.
12790 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12791 and overflow for infinity.
12793 2007-01-15 Ulrich Drepper <drepper@redhat.com>
12795 * nscd/connections.c (handle_request): Add a __builtin_expect.
12797 * nscd/connections.c (serv2db): Change type into structure which
12798 also says whether this is a request for data. Renamed to
12799 servinfo. All users changed.
12800 (handle_request): Much simpler test whether we should search the cache.
12802 * nscd/connections.c (handle_request): Fix thinko in selinux test
12805 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12806 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12807 it before getting dl_load_lock and then relock.
12808 (_dl_lookup_symbol_x): Pass flags to add_dependency.
12809 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12810 case we unlocked the scope.
12811 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12812 _dl_lookup_symbol_x in case we locked the scope.
12813 (_dl_profile_fixup): Likewise.
12814 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12815 set DL_LOOKUP_SCOPE_LOCK.
12817 2007-01-13 Ulrich Drepper <drepper@redhat.com>
12819 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12820 CFLAGS-getsrvbynpt_r.c.
12821 * nscd/getsrvbynm_r.c: New file.
12822 * nscd/getsrvbypt_r.c: New file.
12823 * nscd/nscd_getserv_r.c: New file.
12824 * nscd/servicescache.c: New file.
12825 * nscd/Makefile (routines): Add nscd_getserv_r.
12826 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12827 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12828 CFLAGS-getsrvbypt_r.c.
12829 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12830 table. Add entries for services database.
12831 * nscd/connections.c (serv2str): Mark as const. Add entries for
12833 (dbs): Add .reset_res and servdb initialization.
12834 (serv2db): Add entries for services database.
12835 (verify_persistent_db): Accept dbnr == servdb.
12836 (invalidate_cache): Rewrite database name recognition to use a table.
12837 Call res_init() if .reset_res is set for database.
12838 (handle_request): Add code to handle services database.
12839 * nscd/gai.c: Don't define __getservbyname_r.
12840 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12841 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12842 (serv_response_header): Define.
12843 (struct datahead): Add serv_response_header member.
12844 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12846 * nscd/nscd.conf: Add entries for services database.
12847 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12848 Declare serv_iov_disabled.
12849 Declare addservbyname, readdservbyname, addservbyport, and
12851 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
12852 (find_db): Fix error message.
12853 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12854 __nscd_getservbyname_r, and __nscd_getservbyport_r.
12855 * nscd/selinux.c (perms): Add entries for services database.
12856 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12857 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12859 * nscd/grpcache.c: Remove obsolete code. Cleanups.
12860 * nscd/hstcache.c: Likewise.
12861 * nscd/pwdcache.c: Likewise.
12863 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12864 computation of keylen.
12866 * include/string.h: Only redefine strndupa if this is really for
12869 2007-01-12 Ulrich Drepper <drepper@redhat.com>
12871 * nscd/nscd_gethst_r.c: Minor cleanups.
12873 * nscd/connections.c (handle_request): Check selinux permissions
12874 for all non-admin commands.
12876 * sysdeps/i386/i486/bits/atomic.h: Define
12877 atomic_compare_and_exchange_val_acq,
12878 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12879 using __sync_* built-ins for gcc >= 4.1.
12880 * sysdeps/x86_64/bits/atomic.h: Likewise.
12883 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12886 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
12888 * stdlib/tst-makecontext.c: Include errno.h. Change main()
12889 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
12890 (do_test): Check errno and exit(0) if ENOSYS.
12892 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12894 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12895 thousands separators.
12896 * stdlib/Makefile: Add rules to build and run tst-strtod4.
12897 * stdlib/tst-strtod4.c: New test.
12900 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12901 hexadecimal digit should accept just the initial 0.
12902 * stdlib/tst-strtod2.c (tests): New variable.
12903 (do_test): Run several tests rather than just one.
12905 2007-01-11 Jakub Jelinek <jakub@redhat.com>
12907 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12908 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12910 2007-01-10 Ulrich Drepper <drepper@redhat.com>
12912 * io/fts.c: Make sure fts_cur is always valid after return from
12914 Patch by Miloslav Trmac <mitr@redhat.com>.
12916 2006-10-27 Richard Sandiford <richard@codesourcery.com>
12918 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12919 (R_MIPS_NUM): Bump by 1.
12921 2007-01-03 Jakub Jelinek <jakub@redhat.com>
12923 * posix/execvp.c: Include alloca.h.
12924 (allocate_scripts_argv): Renamed to...
12925 (scripts_argv): ... this. Don't allocate buffer here nor count
12927 (execvp): Use alloca if possible.
12928 * posix/Makefile: Add rules to build and run tst-vfork3 test.
12929 * posix/tst-vfork3.c: New test.
12931 2007-01-03 Ulrich Drepper <drepper@redhat.com>
12933 * string/Makefile (tst-strxfrm2-ENV): Define.
12934 * stdlib/Makefile (tst-strtod3-ENV): Define.
12936 2007-01-02 Ulrich Drepper <drepper@redhat.com>
12938 * posix/getconf.c: Update copyright year.
12939 * nss/getent.c: Likewise.
12940 * iconv/iconvconfig.c: Likewise.
12941 * iconv/iconv_prog.c: Likewise.
12942 * elf/ldconfig.c: Likewise.
12943 * catgets/gencat.c: Likewise.
12944 * csu/version.c: Likewise.
12945 * elf/ldd.bash.in: Likewise.
12946 * elf/sprof.c (print_version): Likewise.
12947 * locale/programs/locale.c: Likewise.
12948 * locale/programs/localedef.c: Likewise.
12949 * nscd/nscd.c (print_version): Likewise.
12950 * debug/xtrace.sh: Likewise.
12951 * malloc/memusage.sh: Likewise.
12952 * malloc/mtrace.pl: Likewise.
12953 * debug/catchsegv.sh: Likewise.
12955 2006-12-24 Ulrich Drepper <drepper@redhat.com>
12957 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12960 2006-12-23 Ulrich Drepper <drepper@redhat.com>
12962 * posix/wordexp.c: Remove some unnecessary tests.
12964 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
12966 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12967 blacklist the group till after we look it up.
12969 2006-12-21 Ulrich Drepper <drepper@redhat.com>
12971 * include/atomic.h (atomic_forced_read): New macro.
12973 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12975 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12977 2006-12-19 Jakub Jelinek <jakub@redhat.com>
12979 * nss/getXXbyYY_r.c: Include atomic.h.
12980 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12981 add atomic_write_barrier () in between.
12983 * stdlib/Makefile (tests): Add tst-makecontext.
12984 * stdlib/tst-makecontext.c: New test.
12986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12987 (__makecontext): Don't realign uc_mcontext.uc_regs.
12989 2006-11-28 Jakub Jelinek <jakub@redhat.com>
12991 * elf/dl-support.c: Include dl-procinfo.h.
12992 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12993 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12994 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12996 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12997 hardcoded constants.
12998 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12999 PPC_PLATFORM_* macros for array designators.
13001 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
13003 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
13004 names to the beginning.
13005 (_dl_powerpc_platforms): Add "power6x".
13006 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13007 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
13008 (_DL_PLATFORMS_COUNT): Increase.
13009 (_dl_string_platform): Handle power6x case.
13010 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
13011 PPC_FEATURE_POWER6_EXT): Define.
13012 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
13014 2006-12-18 Jakub Jelinek <jakub@redhat.com>
13017 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
13018 [-2^31 .. 2^31) range.
13019 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
13021 * stdlib/tst-rand48-2.c: New test.
13022 * stdlib/Makefile (tests): Add tst-rand48-2.
13024 2006-12-14 Jakub Jelinek <jakub@redhat.com>
13026 * misc/tst-pselect.c (do_test): Fix sigblock argument.
13028 2006-12-14 Ulrich Drepper <drepper@redhat.com>
13030 * misc/tst-pselect.c (do_test): Make sure the helper process is
13031 terminating when the test is aborted.
13033 2006-12-13 Ulrich Drepper <drepper@redhat.com>
13035 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
13036 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13037 Handle relatime mount option.
13040 * libio/Makefile (tests): Add tst-setvbuf1.
13041 * libio/tst-setvbuf1.c: New file.
13043 2006-12-08 Jakub Jelinek <jakub@redhat.com>
13046 * libio/genops.c (__uflow): Fix a typo.
13047 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
13048 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
13049 the narrow buffer size.
13051 2006-11-24 Jakub Jelinek <jakub@redhat.com>
13054 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
13055 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
13056 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
13058 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
13059 _IO_wstr_finish): Likewise.
13060 * libio/wmemstream.c (open_wmemstream): Likewise.
13061 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
13062 even for wide streams.
13064 2006-12-13 Jakub Jelinek <jakub@redhat.com>
13066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
13069 2006-12-11 Ulrich Drepper <drepper@redhat.com>
13071 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
13072 separators also if no non-zero digits found.
13073 * stdlib/Makefile (tests): Add tst-strtod3.
13075 2006-12-09 Ulrich Drepper <drepper@redhat.com>
13078 * include/features.h: Fix comment about default value for
13082 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
13083 empty parsed strings.
13084 * stdlib/Makefile (tests): Add tst-strtod2.
13085 * stdlib/tst-strtod2.c: New file.
13088 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
13090 * stdlib/Makefile (tests): Add tst-atof2.
13091 * stdlib/tst-atof2.c: New file.
13094 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
13095 correctly if removing trailing zero of hex-float.
13096 * stdlib/Makefile (tests): Add tst-atof1.
13097 * stdlib/tst-atof1.c: New file.
13099 2006-12-09 Jakub Jelinek <jakub@redhat.com>
13101 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
13102 Start searching for next comma at p rather than rest.
13103 * misc/Makefile (tests): Add tst-mntent2.
13104 * misc/tst-mntent2.c: New test.
13106 * misc/getusershell.c (initshells): Check for integer overflows.
13107 Make strings buffer one bigger as fgets always succeeds when second
13108 argument is 1. Don't use calloc for shells array. Disallow
13111 2006-12-08 Ulrich Drepper <drepper@redhat.com>
13113 * malloc/memusage.c: Handle realloc with new size of zero and
13114 non-NULL pointer correctly.
13115 (me): Really write first record twice.
13116 (struct entry): Make format bi-arch safe.
13117 (dest): Write out more realloc statistics.
13118 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
13120 2006-12-05 Jakub Jelinek <jakub@redhat.com>
13122 * nis/nis_subr.c (nis_getnames): Revert last change.
13124 2006-12-04 Jakub Jelinek <jakub@redhat.com>
13126 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
13127 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
13128 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
13129 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
13131 * io/Makefile: Add rules to build and run tst-ttyname_r test.
13132 * io/tst-ttyname_r.c: New test.
13134 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
13136 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
13138 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
13140 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
13141 jump table entries.
13143 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
13145 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
13146 `clone' function to ensure proper unwinding stop of gdb.
13147 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
13149 2006-12-01 Ulrich Drepper <drepper@redhat.com>
13151 * nscd/nscd.init: Remove obsolete and commented-out -S option
13154 2006-11-23 Jakub Jelinek <jakub@redhat.com>
13157 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
13160 * manual/string.texi (strtok): Remove duplicate paragraph.
13162 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13164 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
13165 libgcc not supporting `rflags' unwinding (register # >= 17).
13167 2006-11-30 Jakub Jelinek <jakub@redhat.com>
13169 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
13172 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
13173 Jakub Jelinek <jakub@redhat.com>
13174 Jan Kratochvil <jan.kratochvil@redhat.com>
13176 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
13177 unwind information.
13178 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
13179 'restore_rt' even in the 'signal' directory.
13180 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
13182 2006-11-27 Jakub Jelinek <jakub@redhat.com>
13185 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
13186 malloc crashed. Don't allocate memory unnecessarily in each
13189 2006-10-21 Jakub Jelinek <jakub@redhat.com>
13191 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
13193 2006-11-20 Ulrich Drepper <drepper@redhat.com>
13195 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
13197 2006-11-18 Bruno Haible <bruno@clisp.org>
13199 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
13200 __sysconf only after having tried to call getgroups32.
13202 2006-11-19 Ulrich Drepper <drepper@redhat.com>
13204 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
13205 addresses for IPv4 queries if they can be mapped.
13207 2006-11-16 Jakub Jelinek <jakub@redhat.com>
13209 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
13210 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
13211 (signmask): Add .size directive.
13212 (othermask): Add .type directive.
13214 2006-11-14 Ulrich Drepper <drepper@redhat.com>
13216 * po/nl.po: Update from translation team.
13218 * timezone/zdump.c: Redo fix for BZ #3137.
13220 2006-11-14 Jakub Jelinek <jakub@redhat.com>
13222 * nss/nss_files/files-alias.c (get_next_alias): Set line back
13223 to first_unused after parsing :include: file.
13225 2006-11-10 Ulrich Drepper <drepper@redhat.com>
13227 * timezone/africa: Update from tzdata2006o.
13228 * timezone/antarctica: Likewise.
13229 * timezone/asia: Likewise.
13230 * timezone/australasia: Likewise.
13231 * timezone/backward: Likewise.
13232 * timezone/europe: Likewise.
13233 * timezone/iso3166.tab: Likewise.
13234 * timezone/northamerica: Likewise.
13235 * timezone/southamerica: Likewise.
13236 * timezone/zone.tab: Likewise.
13238 * time/tzfile.c (__tzfile_read): Extend to handle new file format
13239 on machines with 64-bit time_t.
13241 * timezone/checktab.awk: Update from tzcode2006o.
13242 * timezone/ialloc.c: Likewise.
13243 * timezone/private.h: Likewise.
13244 * timezone/scheck.c: Likewise.
13245 * timezone/tzfile.h: Likewise.
13246 * timezone/tzselect.ksh: Likewise.
13247 * timezone/zdump.c: Likewise.
13248 * timezone/zic.c: Likewise.
13251 * elf/ldconfig.c (main): Call setlocale and textdomain.
13252 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13255 * manual/argp.texi: Fix typos.
13256 * manual/charset.texi: Likewise.
13257 * manual/errno.texi: Likewise.
13258 * manual/filesys.texi: Likewise.
13259 * manual/lang.texi: Likewise.
13260 * manual/maint.texi: Likewise.
13261 * manual/memory.texi: Likewise.
13262 * manual/message.texi: Likewise.
13263 * manual/resource.texi: Likewise.
13264 * manual/search.texi: Likewise.
13265 * manual/signal.texi: Likewise.
13266 * manual/startup.texi: Likewise.
13267 * manual/stdio.texi: Likewise.
13268 * manual/sysinfo.texi: Likewise.
13269 * manual/syslog.texi: Likewise.
13270 * manual/time.texi: Likewise.
13271 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13274 * sunrpc/clnt_raw.c: Minimal message improvements.
13275 * sunrpc/pm_getmaps.c: Likewise.
13276 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
13277 * nis/nis_print_group_entry.c: Likewise.
13278 * locale/programs/repertoire.c: Likewise.
13279 * locale/programs/charmap.c: Likewise.
13280 * malloc/memusage.sh: Likewise.
13281 * elf/dl-deps.c: Likewise.
13282 * locale/programs/ld-collate.c: Likewise.
13283 * libio/vswprintf.c: Likewise.
13284 * malloc/memusagestat.c: Likewise.
13285 * sunrpc/auth_unix.c: Likewise.
13286 * sunrpc/rpc_main.c: Likewise.
13287 * nscd/cache.c: Likewise.
13288 * locale/programs/repertoire.c: Unify output messages.
13289 * locale/programs/charmap.c: Likewise.
13290 * locale/programs/ld-ctype.c: Likewise.
13291 * locale/programs/ld-monetary.c: Likewise.
13292 * locale/programs/ld-numeric.c: Likewise.
13293 * locale/programs/ld-time.c: Likewise.
13294 * elf/ldconfig.c: Likewise.
13295 * nscd/selinux.c: Likewise.
13296 * elf/cache.c: Likewise.
13297 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13300 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
13304 2006-11-10 Jakub Jelinek <jakub@redhat.com>
13306 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
13307 if N is one bigger than return value.
13308 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
13309 and l1 last arguments, if buf is defined, verify the return value
13310 equals to strlen (buf) and verify no byte beyond passed length
13313 2006-11-10 Ulrich Drepper <drepper@redhat.com>
13315 * po/sv.po: Update from translation team.
13317 2006-11-09 Ulrich Drepper <drepper@redhat.com>
13319 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
13320 noinline attribute.
13322 2006-11-10 Jakub Jelinek <jakub@redhat.com>
13324 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
13325 noinline attribute.
13327 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
13328 Use __new_sys_siglist instead of _sys_siglist_internal as
13329 second macro argument.
13330 (_old_sys_siglist): Use declare_symbol_alias macro instead of
13333 2006-11-09 Ulrich Drepper <drepper@redhat.com>
13336 * posix/unistd.h (sysconf): Remove const attribute.
13338 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
13339 temporary or deprecated addresses.
13340 Patch by Sridhar Samudrala <sri@us.ibm.com>.
13342 * string/Makefile (tests): Add tst-strxfrm2.
13343 * string/tst-strxfrm2.c: New file.
13345 2006-10-09 Jakub Jelinek <jakub@redhat.com>
13347 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
13348 rather than r->r_brk.
13350 2006-11-08 Jakub Jelinek <jakub@redhat.com>
13352 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
13353 optimization even if needed > n.
13355 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
13356 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
13357 return false, otherwise return true.
13358 (cache_rpath): Return decompose_rpath return value.
13360 2006-11-07 Jakub Jelinek <jakub@redhat.com>
13362 * include/libc-symbols.h (declare_symbol): Rename to...
13363 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
13364 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
13366 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
13368 * sysdeps/gnu/siglist.c: Likewise.
13370 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
13372 * sysdeps/powerpc/fpu/bits/mathinline.h
13373 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
13374 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
13376 2006-11-05 Ulrich Drepper <drepper@redhat.com>
13378 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13379 Update handling of cache descriptor 0x49 for new models.
13380 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
13383 2006-11-02 Jakub Jelinek <jakub@redhat.com>
13385 * malloc/memusage.c (dest): Reset not_me back to false after
13386 printing statistics.
13388 2006-11-02 Ulrich Drepper <drepper@redhat.com>
13390 * configure.in: Work around ld --help change and avoid -z relro
13391 test completely if the architecture doesn't care about security.
13393 2006-11-01 Ulrich Drepper <drepper@redhat.com>
13395 * po/sv.po: Update from translation team.
13397 2006-10-31 Ulrich Drepper <drepper@redhat.com>
13399 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
13400 generate compatibility version.
13402 2006-10-29 Ulrich Drepper <drepper@redhat.com>
13404 * configure.in: Relax -z relro requirement a bit.
13406 * po/sv.po: Update from translation team.
13408 2006-10-29 Jakub Jelinek <jakub@redhat.com>
13410 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13411 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13412 * elf/dl-close.c (_dl_close_worker): Likewise.
13413 * elf/dl-open.c (_dl_open_worker): Likewise.
13414 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13416 2006-10-27 Ulrich Drepper <drepper@redhat.com>
13418 * configure.in: Require assembler support for visibility, compiler
13419 support for visibility and aliases, linker support for various -z
13421 * Makeconfig: Remove conditional code which now is unnecessary.
13422 * config.h.in: Likewise.
13423 * config.make.in: Likewise.
13424 * dlfcn/Makefile: Likewise.
13425 * elf/Makefile: Likewise.
13426 * elf/dl-load.c: Likewise.
13427 * elf/rtld.c: Likewise.
13428 * include/libc-symbols.h: Likewise.
13429 * include/stdio.h: Likewise.
13430 * io/Makefile: Likewise.
13431 * io/fstat.c: Likewise.
13432 * io/fstat64.c: Likewise.
13433 * io/fstatat.c: Likewise.
13434 * io/fstatat64.c: Likewise.
13435 * io/lstat.c: Likewise.
13436 * io/lstat64.c: Likewise.
13437 * io/mknod.c: Likewise.
13438 * io/mknodat.c: Likewise.
13439 * io/stat.c: Likewise.
13440 * io/stat64.c: Likewise.
13441 * libio/stdio.c: Likewise.
13442 * nscd/Makefile: Likewise.
13443 * stdlib/Makefile: Likewise.
13444 * stdlib/atexit.c: Likewise.
13445 * sysdeps/generic/ldsodefs.h: Likewise.
13446 * sysdeps/i386/dl-machine.h: Likewise.
13447 * sysdeps/i386/sysdep.h: Likewise.
13448 * sysdeps/i386/i686/memcmp.S: Likewise.
13449 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13450 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13451 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13453 * Makerules: USE_TLS support is now default.
13454 * tls.make.c: Likewise.
13455 * csu/Versions: Likewise.
13456 * csu/libc-start.c: Likewise.
13457 * csu/libc-tls.c: Likewise.
13458 * csu/version.c: Likewise.
13459 * dlfcn/dlinfo.c: Likewise.
13460 * elf/dl-addr.c: Likewise.
13461 * elf/dl-cache.c: Likewise.
13462 * elf/dl-close.c: Likewise.
13463 * elf/dl-iteratephdr.c: Likewise.
13464 * elf/dl-load.c: Likewise.
13465 * elf/dl-lookup.c: Likewise.
13466 * elf/dl-object.c: Likewise.
13467 * elf/dl-open.c: Likewise.
13468 * elf/dl-reloc.c: Likewise.
13469 * elf/dl-support.c: Likewise.
13470 * elf/dl-sym.c: Likewise.
13471 * elf/dl-sysdep.c: Likewise.
13472 * elf/dl-tls.c: Likewise.
13473 * elf/ldconfig.c: Likewise.
13474 * elf/rtld.c: Likewise.
13475 * elf/tst-tls-dlinfo.c: Likewise.
13476 * elf/tst-tls1.c: Likewise.
13477 * elf/tst-tls10.h: Likewise.
13478 * elf/tst-tls14.c: Likewise.
13479 * elf/tst-tls2.c: Likewise.
13480 * elf/tst-tls3.c: Likewise.
13481 * elf/tst-tls4.c: Likewise.
13482 * elf/tst-tls5.c: Likewise.
13483 * elf/tst-tls6.c: Likewise.
13484 * elf/tst-tls7.c: Likewise.
13485 * elf/tst-tls8.c: Likewise.
13486 * elf/tst-tls9.c: Likewise.
13487 * elf/tst-tlsmod1.c: Likewise.
13488 * elf/tst-tlsmod13.c: Likewise.
13489 * elf/tst-tlsmod13a.c: Likewise.
13490 * elf/tst-tlsmod14a.c: Likewise.
13491 * elf/tst-tlsmod2.c: Likewise.
13492 * elf/tst-tlsmod3.c: Likewise.
13493 * elf/tst-tlsmod4.c: Likewise.
13494 * elf/tst-tlsmod5.c: Likewise.
13495 * elf/tst-tlsmod6.c: Likewise.
13496 * include/errno.h: Likewise.
13497 * include/link.h: Likewise.
13498 * include/tls.h: Likewise.
13499 * locale/global-locale.c: Likewise.
13500 * locale/localeinfo.h: Likewise.
13501 * malloc/arena.c: Likewise.
13502 * malloc/hooks.c: Likewise.
13503 * malloc/malloc.c: Likewise.
13504 * resolv/Versions: Likewise.
13505 * sysdeps/alpha/dl-machine.h: Likewise.
13506 * sysdeps/alpha/libc-tls.c: Likewise.
13507 * sysdeps/generic/ldsodefs.h: Likewise.
13508 * sysdeps/generic/tls.h: Likewise.
13509 * sysdeps/i386/dl-machine.h: Likewise.
13510 * sysdeps/ia64/dl-machine.h: Likewise.
13511 * sysdeps/ia64/libc-tls.c: Likewise.
13512 * sysdeps/mach/hurd/fork.c: Likewise.
13513 * sysdeps/mach/hurd/i386/tls.h: Likewise.
13514 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13515 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13516 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13517 * sysdeps/s390/libc-tls.c: Likewise.
13518 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13519 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13520 * sysdeps/sh/dl-machine.h: Likewise.
13521 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13522 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13523 * sysdeps/x86_64/dl-machine.h: Likewise.
13525 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13526 split out locking and parameter checking.
13527 (_dl_close): Call _dl_close_worker after locking and checking.
13528 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13530 * elf/Makefile: Add rules to build and run tst-thrlock.
13531 * elf/tst-thrlock.c: New file.
13534 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13538 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13539 we are sure we do not need it anymore for _dl_close. Also move
13540 the asserts inside the lock region.
13541 Patch mostly by Suzuki <suzuki@in.ibm.com>.
13543 2006-10-27 Jakub Jelinek <jakub@redhat.com>
13545 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13547 (_dl_lookup_symbol_x): Adjust caller.
13549 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13551 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13553 * elf/dl-libc.c: Revert l_scope name changes.
13554 * elf/dl-load.c: Likewise.
13555 * elf/dl-object.c: Likewise.
13556 * elf/rtld.c: Likewise.
13557 * elf/dl-close.c (_dl_close): Likewise.
13558 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
13559 always use __rtld_mrlock_{change,done}. Always free old scope list
13560 here if not l_scope_mem.
13561 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13562 change. Never free scope list here. Just __rtld_mrlock_lock before
13563 the lookup and __rtld_mrlock_unlock it after the lookup.
13564 * elf/dl-sym.c: Likewise.
13565 * include/link.h (struct r_scoperec): Remove.
13566 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13567 with l_scope_mem and l_scoperec_lock with l_scope_lock.
13569 2006-10-25 Ulrich Drepper <drepper@redhat.com>
13571 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13573 2006-10-18 Ulrich Drepper <drepper@redhat.com>
13575 * configure.in: Disable building profile libraries by default.
13577 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13579 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13580 as signed longs, check for x_base + pos overflow.
13581 * sunrpc/Makefile (tests): Add tst-xdrmem2.
13582 * sunrpc/tst-xdrmem2.c: New test.
13584 2006-10-18 Ulrich Drepper <drepper@redhat.com>
13586 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13587 _dl_lookup_symbol_x code.
13589 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13591 * elf/dl-runtime.c: Include sysdep-cancel.h.
13592 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13593 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
13594 instead of catomic_* macros.
13595 * elf/dl-sym.c: Include sysdep-cancel.h.
13596 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13597 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
13598 * elf/dl-close.c: Include sysdep-cancel.h.
13599 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13600 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
13601 * elf/dl-open.c: Include sysdep-cancel.h.
13602 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13603 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
13605 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13608 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13609 fastbin rather than end of fastbin array.
13611 2006-10-18 Ulrich Drepper <drepper@redhat.com>
13613 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13615 * sysdeps/x86_64/bits/atomic.h
13616 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13617 (catomic_decrement): Use correct body macro.
13619 2006-10-17 Jakub Jelinek <jakub@redhat.com>
13621 * include/atomic.h: Add a unique prefix to all local variables
13623 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13625 2006-10-16 Ulrich Drepper <drepper@redhat.com>
13628 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13631 2006-10-14 Ulrich Drepper <drepper@redhat.com>
13633 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13635 2006-10-13 Ulrich Drepper <drepper@redhat.com>
13638 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13639 determine highest fast bin to consolidate, always look into all of
13641 (do_check_malloc_state): Only require for empty bins for large
13642 sizes in main arena.
13644 * libio/stdio.h: Add more __wur attributes.
13646 * elf/dl-minimal.c (realloc): Optimize last patch.
13648 2006-10-12 Richard Sandiford <richard@codesourcery.com>
13651 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13652 and use memcpy() if it does.
13654 2006-11-12 Andreas Jaeger <aj@suse.de>
13657 * manual/search.texi (Hash Search Function): Clarify.
13658 (Array Search Function): Clarify.
13660 2006-11-12 Joseph Myers <joseph@codesourcery.com>
13663 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13665 * math/atest-exp2.c (read_mpn_hex): Likewise.
13666 * math/atest-sincos.c (main): Likewise.
13668 2006-10-11 Ulrich Drepper <drepper@redhat.com>
13670 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13671 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13672 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13674 * Versions.def: Add GLIBC_2.6 for libc.
13676 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13678 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13680 2006-10-11 Jakub Jelinek <jakub@redhat.com>
13682 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13684 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13686 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13687 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13689 2006-10-11 Ulrich Drepper <drepper@redhat.com>
13691 * include/atomic.c: Define catomic_* operations.
13692 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
13693 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13694 * malloc/memusage.c: Likewise.
13695 * gmon/mcount.c: Likewise.
13696 * elf/dl-close.c: Likewise.
13697 * elf/dl-open.c: Likewise.
13698 * elf/dl-profile.c: Likewise.
13699 * elf/dl-sym.c: Likewise.
13700 * elf/dl-runtime.c: Likewise.
13701 * elf/dl-fptr.c: Likewise.
13702 * resolv/res_libc.c: Likewise.
13704 2006-10-10 Ulrich Drepper <drepper@redhat.com>
13706 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13707 components which lack them.
13709 * nis/nis_subr.c (nis_getnames): Make sure that we always return
13710 at least one entry consisting of the parameter concatenated with
13713 2006-10-10 Roland McGrath <roland@frob.com>
13715 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13716 * sysdeps/mach/hurd/futimes.c: Likewise.
13717 * sysdeps/mach/hurd/lutimes.c: Likewise.
13719 2006-10-09 Ulrich Drepper <drepper@redhat.com>
13720 Jakub Jelinek <jakub@redhat.com>
13722 Implement reference counting of scope records.
13723 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13724 from the list in objects which remain. Always allocate new scope
13726 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13727 don't resize, allocate a new one.
13728 * elf/dl-runtime.c: Update reference counters before using a scope
13730 * elf/dl-sym.c: Likewise.
13731 * elf/dl-libc.c: Adjust for l_scope name change.
13732 * elf/dl-load.c: Likewise.
13733 * elf/dl-object.c: Likewise.
13734 * elf/rtld.c: Likewise.
13735 * include/link.h: Include <rtld-lowlevel.h>. Define struct
13736 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
13737 Add l_scoperec_lock.
13738 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13739 * sysdeps/generic/rtld-lowlevel.h: New file.
13741 * include/atomic.h: Rename atomic_and to atomic_and_val and
13742 atomic_or to atomic_or_val. Define new macros atomic_and and
13743 atomic_or which do not return values.
13744 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13746 * sysdeps/i386/i486/bits/atomic.h: Likewise.
13748 * po/sv.po: Update from translation team.
13750 2006-10-07 Ulrich Drepper <drepper@redhat.com>
13752 * Versions.def: Add GLIBC_2.6 to libpthread.
13754 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13755 (versioned_symbol): Likewise.
13756 (compat_symbol): Likewise.
13758 * po/tr.po: Update from translation team.
13760 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13762 * nis/Banner: Removed. It's been integral part forever and the
13763 author info is incomplete anyway.
13764 * libio/Banner: Likewise.
13766 * nis/nis_table.c (nis_list): If __follow_path fails in the new
13767 code, make sure the nis_freeresult call doesn't crash and that the
13768 result is reported correctly.
13770 2006-09-27 Jakub Jelinek <jakub@redhat.com>
13772 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13773 when callback is NULL.
13775 * nis/Versions (libnss_nisplus): Add
13776 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13777 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13778 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13779 _nss_create_tablename): Rename to...
13780 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13781 ... these. No longer static.
13782 (internal_setgrent): Adjust users.
13783 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13784 Don't use locking around _nss_grp_create_tablename call.
13785 * nis/nss_nisplus/nisplus-initgroups.c: New file.
13787 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13789 * version.h (VERSION): Bump to 2.5.90 for new development tree.
13791 2006-10-06 Andreas Jaeger <aj@suse.de>
13793 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13795 2006-10-06 Ulrich Drepper <drepper@redhat.com>
13797 * po/pl.po: Update from translation team.
13799 * nscd/nscd.c (main): Fix typo in message.
13800 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13802 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13805 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13806 errno.h, signal.h, unistd.h and sysdep-cancel.h.
13807 (__sigprocmask): Define.
13809 2006-10-02 Ulrich Drepper <drepper@redhat.com>
13811 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13814 2006-10-02 Jakub Jelinek <jakub@redhat.com>
13816 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13817 in oldtotal and newtotal calculation.
13818 * nscd/nscd-client.h (struct mapped_database): Add datasize
13820 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13821 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13823 (__nscd_cache_search): Add checks to make sure we never reference
13824 data beyond the current mapping.
13826 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
13828 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13829 variables const to avoid compiler warnings.
13831 * io/fts.c (fts_close): Remove redundant checks.
13832 (fts_build): Likewise.
13833 (fts_palloc): Likewise.
13835 * manual/message.texi (Advanced gettext functions,
13836 Using gettextized software): Fix typos.
13838 2006-09-30 Ulrich Drepper <drepper@redhat.com>
13840 * posix/glob.c (glob_in_dir): Add some comments and asserts to
13841 explain why there are no leaks.
13843 2006-09-29 Ulrich Drepper <drepper@redhat.com>
13845 * libio/wmemstream.c: Include <wchar.h>.
13846 * libio/bug-wmemstream1.c: Likewise.
13847 * libio/tst-wmemstream1.c: Likewise.
13848 * libio/tst-wmemstream2.c: Likewise.
13850 * version.h (RELEASE): Bump to 2.5.
13851 * README: Regenerated.
13853 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13856 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13857 found no group members.
13858 Patch by Petr Baudis.
13860 2006-09-29 Jakub Jelinek <jakub@redhat.com>
13862 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13863 assert bootstrap_map.l_tls_modid is zero.
13864 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13867 2006-09-27 Ulrich Drepper <drepper@redhat.com>
13869 * libio/stdio.h: Move open_wmemstream prototype to ...
13870 * wcsmbs/wchar.h: ... here.
13872 2006-09-25 Jakub Jelinek <jakub@redhat.com>
13875 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13876 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13877 __{,l}chown to handle the rest.
13878 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13879 fchownat syscall and __ASSUME_32BITUIDS case inline, call
13880 __{,l}chown to handle the rest.
13881 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13883 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13884 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13887 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13888 time, rather allocate increasingly bigger arrays of pointers, if
13889 possible with alloca, if too large with malloc.
13891 2006-09-24 Jakub Jelinek <jakub@redhat.com>
13893 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13895 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13897 2006-09-24 Ulrich Drepper <drepper@redhat.com>
13899 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13901 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13902 IFA_F_HOMEADDRESS flag for interfaces.
13903 * include/ifaddrs.h (struct in6addrinfo): Define
13906 2006-09-21 Jakub Jelinek <jakub@redhat.com>
13909 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13910 PTR_DEMANGLE3): Define.
13911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13912 PTR_DEMANGLE3): Likewise.
13913 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13914 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13916 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13918 2006-09-20 Jakub Jelinek <jakub@redhat.com>
13920 * po/libc.pot: Regenerated.
13921 * po/be.po: Updated.
13922 * po/ca.po: Likewise.
13923 * po/cs.po: Likewise.
13924 * po/da.po: Likewise.
13925 * po/de.po: Likewise.
13926 * po/el.po: Likewise.
13927 * po/en_GB.po: Likewise.
13928 * po/es.po: Likewise.
13929 * po/fi.po: Likewise.
13930 * po/fr.po: Likewise.
13931 * po/gl.po: Likewise.
13932 * po/hr.po: Likewise.
13933 * po/hu.po: Likewise.
13934 * po/ja.po: Likewise.
13935 * po/ko.po: Likewise.
13936 * po/nb.po: Likewise.
13937 * po/nl.po: Likewise.
13938 * po/pl.po: Likewise.
13939 * po/pt_BR.po: Likewise.
13940 * po/ru.po: Likewise.
13941 * po/rw.po: Likewise.
13942 * po/sk.po: Likewise.
13943 * po/sv.po: Likewise.
13944 * po/tr.po: Likewise.
13945 * po/zh_CN.po: Likewise.
13946 * po/zh_TW.po: Likewise.
13949 * iconv/iconv_prog.c (main): Fix spelling in error message.
13950 * iconv/iconvconfig.c (main): Likewise.
13951 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13952 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13953 * locale/programs/localedef.c (main): Likewise.
13954 * locale/programs/repertoire.c (repertoire_read): Likewise.
13955 * timezone/zdump.c (main): Likewise.
13956 * nscd/connections.c (handle_request): Fix spelling in log message.
13957 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13959 2006-09-20 Ulrich Drepper <drepper@redhat.com>
13961 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13964 2006-09-20 Andreas Jaeger <aj@suse.de>
13966 * math/libm-test.inc (lrint_test_upward): Fix typo.
13968 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
13971 * math/libm-test.inc (lrint_test_tonearest): New function.
13972 (lrint_test_towardzero): New function.
13973 (lrint_test_downward): New function.
13974 (lrint_test_upward): New function.
13975 (main): Run these new tests.
13976 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13977 of values near to 0.
13978 (two52): Use double not long double.
13979 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13980 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13981 (two23): Use float not double.
13982 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13983 (two23): Use float not double.
13984 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13985 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13986 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13987 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13989 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13991 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13992 Cast sp to unsigned long to avoid compiler warning.
13993 Use __makecontext_ret function instead of a trampoline on the stack.
13994 (__makecontext_ret): New function.
13995 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13997 2006-09-19 Jakub Jelinek <jakub@redhat.com>
13999 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
14000 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
14003 2006-09-19 Ulrich Drepper <drepper@redhat.com>
14005 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
14006 sure no reference to the unloaded map's search list remains in the
14007 dependency's scope.
14009 2006-09-16 Jakub Jelinek <jakub@redhat.com>
14011 * elf/Makefile: Add rules to build and run unload7 test.
14012 * elf/unload7.c: New test.
14013 * elf/unload7mod1.c: New file.
14014 * elf/unload7mod2.c: New file.
14016 2006-09-18 Jakub Jelinek <jakub@redhat.com>
14018 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
14019 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
14020 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
14021 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
14022 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
14023 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
14024 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
14025 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
14026 PTRACE_GETEVENTMSG): Likewise.
14027 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
14030 2006-09-17 Mike Frysinger <vapier@gentoo.org>
14032 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
14033 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
14034 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
14035 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
14037 2006-09-16 Jakub Jelinek <jakub@redhat.com>
14039 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
14040 write '\0' to the fd.
14041 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
14042 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
14043 Change regs to unsigned long pointer from unsigned int, fix fscr
14046 2006-09-14 Jakub Jelinek <jakub@redhat.com>
14048 * io/Makefile (CFLAGS-fstatat.c): Set.
14049 (CFLAGS-fstatat64.c): Likewise.
14050 (CFLAGS-mknodat.c): Likewise.
14052 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
14053 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14054 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
14055 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
14057 2006-09-14 Jakub Jelinek <jakub@redhat.com>
14058 Steven Munroe <sjmunroe@us.ibm.com>
14060 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
14061 names to the beginning. Rename "cell" to "cellbe".
14062 (_dl_powerpc_platforms): New.
14063 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
14064 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
14065 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
14066 (_DL_HWCAP_PLATFORM): Define to new mask.
14067 (_dl_platform_string, _dl_string_platform): New functions.
14068 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
14069 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
14071 2006-09-12 Jakub Jelinek <jakub@redhat.com>
14074 * README.libm: Fix a thinko in sqrt algorithm description.
14077 * manual/string.texi (argz_delete): Fix prototype.
14078 Patch by <alpt@freaknet.org>.
14080 2006-08-26 Joseph Myers <joseph@codesourcery.com>
14083 * io/test-lfs.c (do_prepare): Give name_len type size_t.
14084 * io/tst-fcntl.c (do_prepare): Likewise.
14085 * posix/tst-exec.c (do_prepare): Likewise.
14086 * posix/tst-preadwrite.c (do_prepare): Likewise.
14087 * posix/tst-spawn.c (do_prepare): Likewise.
14088 * posix/tst-truncate.c (do_prepare): Likewise.
14089 * rt/tst-aio.c (do_prepare): Likewise.
14090 * rt/tst-aio64.c (do_prepare): Likewise.
14091 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
14094 2006-09-09 Ulrich Drepper <drepper@redhat.com>
14097 * time/mktime.c (guess_time_tm): Fix overflow detection.
14098 * time/Makefile (tests): Add bug-mktime1.
14099 * time/bug-mktime1.c: New file.
14102 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
14103 (mremap): Likewise.
14105 2006-09-07 Jakub Jelinek <jakub@redhat.com>
14108 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14109 Ensure relocation doesn't clobber any bits outside of the
14110 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
14111 R_SPARC_HI22 and R_SPARC_H44.
14114 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
14115 (long) (MINSIZE + nb - old_size) is positive.
14117 * malloc/arena.c (grow_heap): When growing bail even if new_size
14121 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
14124 2006-09-06 Jakub Jelinek <jakub@redhat.com>
14126 * posix/regex_internal.c (re_string_reconstruct): Handle
14127 offset < pstr->valid_raw_len && pstr->offsets_needed case.
14128 Ensure no bytes read before raw_mbs array. Pass a saved copy of
14129 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
14130 re_string_context_at.
14131 * posix/Makefile: Add rules to build and run bug-regex26 test.
14132 * posix/bug-regex26.c: New test.
14134 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
14135 rather than col_sym_free. Move seqp declaration earlier.
14137 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
14139 2006-09-05 Jakub Jelinek <jakub@redhat.com>
14141 * nscd/initgrcache.c (addinitgroupsX): Move any_success
14142 decl before first goto out.
14144 2006-09-04 Jakub Jelinek <jakub@redhat.com>
14146 * Makerules (shlib.lds): If have-hash-style, put .hash section
14147 at the end of the RO segment.
14149 2006-09-04 Ulrich Drepper <drepper@redhat.com>
14151 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
14152 style hash table format is used.
14154 2006-09-04 Jakub Jelinek <jakub@redhat.com>
14156 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
14157 randomization rather than before.
14158 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
14160 2006-08-31 Jakub Jelinek <jakub@redhat.com>
14162 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
14164 * malloc/malloc.c (_int_malloc): Use full list insert and not
14165 shortcut which assumes the list is empty for large requests
14168 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
14170 2006-08-30 Jakub Jelinek <jakub@redhat.com>
14172 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
14173 and offout arguments to the prototype.
14174 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
14175 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
14176 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
14177 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
14178 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
14179 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
14180 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
14181 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
14183 2006-08-28 Ulrich Drepper <drepper@redhat.com>
14185 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
14187 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
14190 2006-08-28 Jakub Jelinek <jakub@redhat.com>
14192 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
14193 only if herrno is NETDB_INTERNAL. Handle errors other than
14194 ERANGE outside of the loops, handle TRY_AGAIN.
14196 * locale/programs/ld-ctype.c (translit_flatten): Issue error
14197 if other's ctype category was missing.
14198 * locale/programs/ld-collate.c (collate_read): Return if
14199 copy_locale's collate category is missing.
14201 2006-08-27 Ulrich Drepper <drepper@redhat.com>
14204 * malloc/malloc.c (public_rEALLOc): Try harder by using other
14205 arenas if allocation failed.
14206 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
14208 2006-08-26 Ulrich Drepper <drepper@redhat.com>
14210 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
14212 (malloc_state): Reduce bins size by 2.
14213 (_int_malloc): Fix test for large enough buffer for early termination.
14214 When no unsorted block matches perfectly and an exiting block has
14215 to be split, use full list insert and not shortcut which assumes
14218 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
14221 2006-08-24 Ulrich Drepper <drepper@redhat.com>
14223 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
14226 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
14227 symbol require exact match (these are PLTs).
14228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
14229 (_dl_ppc64_addr_sym_match): Likewise.
14232 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
14233 If symbol has a value use it.
14234 * elf/tst-dladdr1.c: New file.
14235 * elf/Makefile: Add rules to build and run tst-addr1.
14237 2006-08-24 Jakub Jelinek <jakub@redhat.com>
14239 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
14240 keeps failing and heap growth or new heap creation isn't
14242 * malloc/tst-malloc.c (main): Add new tests.
14244 2006-08-24 Ulrich Drepper <drepper@redhat.com>
14247 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
14248 as in the x86-64 code to use bswap.
14250 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
14253 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
14255 * posix/bits/unistd.h: Likewise.
14257 2006-05-15 Mike Frysinger <vapier@gentoo.org>
14260 * string/strchr.c: Add cast to avoid warning.
14262 2006-08-21 Ulrich Drepper <drepper@redhat.com>
14264 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
14265 platforms define as 512K. For 64-bit platforms as 32MB. The lower
14266 limit is needed to avoid the exploding of the address space
14267 requirement for secondary heaps.
14268 * malloc/arena.c (HEAP_MAX_SIZE): Define using
14269 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
14271 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
14274 * Makerules (depfiles): Handle extra-test-objs the same as
14276 (common-mostlyclean): Likewise.
14277 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
14279 * elf/Makefile (extra-objs): Likewise.
14280 * stdlib/Makefile (extra-objs): Likewise.
14282 2006-08-14 Eric Blake <ebb9@byu.net>
14285 * misc/error.h: Assume C89 or better.
14286 * misc/error.c: Likewise.
14288 2006-08-21 Ulrich Drepper <drepper@redhat.com>
14291 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
14292 __ASSUME_ATFCTS is defined.
14294 2006-08-19 Ulrich Drepper <drepper@redhat.com>
14296 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
14297 to sort in each call.
14299 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
14300 is empty simply return and use next service.
14301 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
14303 * locale/programs/charmap.c (charmap_read): Add new parameter. It
14304 tells us when not finding a charmap file is an error.
14305 * locale/programs/charmap.h: Adjust charmap_read prototype.
14306 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
14307 cannot find a charmap.
14308 * locale/programs/localedef.c (main): Adjust charmap_read call.
14310 2006-08-15 Jakub Jelinek <jakub@redhat.com>
14312 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
14313 sysdeps/posix/pause.c implementation instead.
14315 2006-08-09 Jakub Jelinek <jakub@redhat.com>
14317 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
14320 2006-08-13 Andreas Schwab <schwab@suse.de>
14322 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
14323 Don't clobber caller's LRSAVE.
14324 (_dl_prof_resolve): Likewise.
14326 2006-08-14 Ulrich Drepper <drepper@redhat.com>
14329 * libio/memstream.c (open_memstream): Allocate initial buffer with
14331 * libio/wmemstream.c (open_wmemstream): Likewise.
14332 * libio/strops.c: Pretty printing.
14333 (_IO_str_overflow): Clear uninitialized part of the new buffer.
14334 (enlarge_userbuf): New function.
14335 (_IO_str_seekoff): Call it if seek position is larger than current
14337 * libio/wstrops.c: Likewise.
14338 * libio/vasprintf.c: Add comment as to why we do not have to use
14339 calloc instead of malloc to allocate initial buffer.
14340 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
14341 * libio/bug-memstream1.c: New file.
14342 * libio/bug-wmemstream1.c: New file.
14344 2006-08-13 Ulrich Drepper <drepper@redhat.com>
14346 * libio/wstrops.c: Remove dead macro definitions and comments.
14347 * libio/strops.c: Likewise.
14350 * login/utmpname.c (__utmpname): Remove unnecessary test.
14352 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
14355 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
14358 2006-08-13 Ulrich Drepper <drepper@redhat.com>
14361 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
14363 * sysdeps/unix/clock_settime.c: Add support for platform-specific
14364 setting of CPU clocks.
14366 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
14369 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
14370 since C99 requires the result to promote to 'int' when uint_least8_t
14371 and uint_least16_t promote to 'int'.
14373 2006-08-12 Ulrich Drepper <drepper@redhat.com>
14376 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
14377 lenght of one output field, correct bitmask creation.
14378 * locale/programs/ld-time.c: Add alignment.
14381 * misc/error.c: Add space between program name and message if file
14384 2006-08-03 Eric Blake <ebb9@byu.net>
14387 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
14389 2006-08-09 Ulrich Drepper <drepper@redhat.com>
14391 * malloc/memusagestat.c: Silence warnings.
14393 * malloc/malloc.c: Dynamically size mmap treshold if the program
14394 frees mmaped blocks.
14395 Patch by Valerie Henson and Arjan van de Ven.
14397 2006-08-08 Jakub Jelinek <jakub@redhat.com>
14399 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
14402 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
14403 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
14404 (DEF): Don't put the var into .gnu.linkonce.r.* section.
14405 Only provide var definitions in strtol_l (or for *ull*
14408 * stdio-common/bug16.c (tests): New array.
14409 (do_tests): Allow the first hexadecimal digit
14410 to be 1, 2, 4 or 8. Do 3 additional tests.
14412 * sysdeps/s390/fpu/libm-test-ulps: Update.
14414 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14415 fchownat syscall if available.
14416 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14417 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14418 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14420 2006-08-07 Ulrich Drepper <drepper@redhat.com>
14422 * nis/nis_xdr.c: Avoid some function calls.
14424 2006-08-07 Jakub Jelinek <jakub@redhat.com>
14425 Ulrich Drepper <drepper@redhat.com>
14427 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14428 short cut if only one name component is stripped away.
14430 2006-08-07 Ulrich Drepper <drepper@redhat.com>
14432 * nis/nis_call.c: Minor cleanups throughout.
14433 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14434 (first_shoot): Add search_parent_first parameter. Only if it is set
14435 search parent server first.
14436 If directory for table found through cold start cache is not the same
14437 as referenced in the cache, don't use it.
14438 (__nisfind_server): Take additional parameter. Pass it on to
14440 (__prepare_niscall): Adjust __nisfind_server call.
14441 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14442 * nis/nis_table.c: Adjust __nisfind_server call.
14443 * nis/nis_lookup.c: Likewise.
14444 (nis_lookup): Don't loop endlessly if name is reduced to ".".
14446 2006-08-03 Ulrich Drepper <drepper@redhat.com>
14449 * math/s_cacosh.c: Return values from positive branch.
14450 * math/s_cacoshf.c: Likewise.
14451 * math/s_cacoshl.c: Likewise.
14454 * sysvipc/sys/msg.h: Change return value to ssize_t.
14455 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14456 * sysvipc/msgrcv.c: Likewise.
14457 * include/sys/msg.h: Likewise.
14459 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14460 test introduced in patch for bz #661.
14461 (getgrouplist): Simplify code a bit. Don't allocate one additional
14462 element for NEWGROUPS.
14465 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14466 'f', use '1' as leading digit not '\1'.
14467 * stdio-common/Makefile (tests): Add bug16.
14468 * stdio-common/bug16.c: New file.
14471 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14472 and don't try to open it. The patch introducing the macro
14473 contained a bug and used the same file name as the new file
14474 instead of using /var/adm/hostid. Nobody complaint so I'm taking
14475 this out completely.
14478 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14479 Patch by Jerry James <Jerry.James@usu.edu>.
14481 * rt/Makefile (tests): Add tst-clock2.
14482 * rt/tst-clock2.c: New file.
14485 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14486 function and its parameters and pass it to new thread.
14487 (__gai_notify): Add support for alternative waiting for completion.
14488 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14489 waiting for completion.
14490 * resolv/getaddrinfo_a.c: Likewise.
14491 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14492 waiting for completion is used.
14493 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14494 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14495 * resolv/gai_error.c: Likewise.
14496 * resolv/gai_sigqueue.c: Likewise.
14498 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
14500 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14501 errno to EBADF and return MACH_PORT_NULL.
14503 2006-06-23 Joseph Myers <joseph@codesourcery.com>
14506 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14508 2006-08-02 Ulrich Drepper <drepper@redhat.com>
14510 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14511 walk them instead of the symbol table.
14513 2006-08-01 Ulrich Drepper <drepper@redhat.com>
14516 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14517 status of NSS calls, not the number of returned entries.
14519 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14520 request_key, keyctl.
14522 2006-07-31 Ulrich Drepper <drepper@redhat.com>
14524 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14526 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
14528 * elf/tst-auditmod1.c: Fix typo in #error.
14530 2006-07-31 Ulrich Drepper <drepper@redhat.com>
14532 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14534 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14536 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
14538 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14539 that the directory is empty even on non-POSIX filesystems.
14541 2006-07-31 Ulrich Drepper <drepper@redhat.com>
14543 * elf/dl-open.c (dl_open_worker): Add branch prediction.
14545 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14546 the backend NSS module. If backend setgrent call failed, don't have
14547 internal_setgrent fail. Just remember this until it is needed.
14548 * nis/nss_compat/compat-pwd.c: Likewise.
14549 * nis/nss_compat/compat-spwd.c: Likewise.
14551 2006-07-30 Roland McGrath <roland@redhat.com>
14553 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14554 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14555 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14556 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14558 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14559 (nanosleep_not_cancel): New macro.
14560 (sigsuspend_not_cancel): new macro.
14561 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14562 (do_sigsuspend): Define as inline.
14563 (__sigsuspend): Always use do_sigsuspend.
14564 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14565 * include/signal.h: Declare __sigsuspend_nocancel.
14566 * sysdeps/posix/pause.c
14567 [! NO_CANCELLATION] (__pause_nocancel): New function.
14569 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14570 * include/time.h (__nanosleep_nocancel): Likewise.
14572 2006-07-30 Ulrich Drepper <drepper@redhat.com>
14574 * locale/programs/localedef.c (add_to_readlist): Rename local
14575 variables to avoid confusion.
14577 * locale/programs/charmap.c (charmap_read): Emit error message if
14578 charmap couldn't be found or read.
14580 2006-07-28 Ulrich Drepper <drepper@redhat.com>
14582 * sysdeps/unix/sysv/linux/kernel-features.h: Define
14583 __ASSUME_FUTEX_LOCK_PI.
14584 * include/time.h: Declare __nanosleep_nocancel.
14585 * include/unistd.h: Declare __pause_nocancel.
14587 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14588 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
14589 get the __stack_chk_fail_local definition when it's needed.
14591 2006-07-26 Ulrich Drepper <drepper@redhat.com>
14593 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14594 * dlfcn/bug-atexit3.c: New file.
14595 * dlfcn/bug-atexit3-lib.cc: New file.
14597 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14598 used when the namespace is not the base namespace.
14600 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
14602 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14603 (__new_exitfn): Bump it in every successful call.
14604 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14605 more exit handlers, call them right away.
14606 * stdlib/exit.h: Declare __new_exitfn_called.
14608 2006-07-25 Ulrich Drepper <drepper@redhat.com>
14610 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14611 calling registered handler.
14613 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14614 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14615 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14616 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14617 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14618 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14619 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14620 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14622 2006-07-10 Ulrich Drepper <drepper@redhat.com>
14624 * elf/dl-lookup.c (dl_new_hash): New functions.
14625 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14626 value here. Compute new-style hash value. Pass new hash value
14627 and reference to variable with the old value to do_lookup_x.
14628 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14629 old-style hash table.
14630 (_dl_debug_bindings): Pass new hash value and reference to variable
14631 with the old value to do_lookup_x.
14632 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14633 new-style hash value and change old-style hash value parameter to
14634 be a reference. Reoganize functions to determine whether
14635 new-style hash table is available. Only fall back on old-style
14636 table. If old-style hash value is needed, compute it here.
14637 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14639 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14640 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
14641 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14642 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14643 * Makeconfig: If linker supports --hash-style option add it to all
14644 linker command lines to build DSOs.
14645 * config.make.in: Define have-hash-style.
14646 * configure.in: Test whether linker supports --hash-style option.
14648 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14649 * sysdeps/generic/ldsodefs.h: Adjust prototype.
14651 2006-06-27 Ulrich Drepper <drepper@redhat.com>
14653 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14656 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14657 RPATH of main map twice.
14659 2006-06-22 Ulrich Drepper <drepper@redhat.com>
14661 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14662 look further, return original strings.
14663 (_nl_find_msg): Do not return found translation if the conversion
14664 failed. Either signal the string is unusable or that something went
14665 wrong and the original should be used.
14667 2006-06-21 Ulrich Drepper <drepper@redhat.com>
14669 * string/_strerror.c (__strerror_r): Add __builtin_expect.
14671 2006-06-14 Jakub Jelinek <jakub@redhat.com>
14674 * misc/insremque.c (insque): Handle prev == NULL.
14675 * misc/Makefile (tests): Add tst-insremque.
14676 * misc/tst-insremque.c: New test.
14678 2006-06-17 Ulrich Drepper <drepper@redhat.com>
14681 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14682 conflict with DL_DST_REQUIRED.
14684 2006-06-16 Ulrich Drepper <drepper@redhat.com>
14686 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14687 match what Solaris does.
14689 2006-06-04 Ulrich Drepper <drepper@redhat.com>
14691 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14692 local_setegid instead of seteuid and setegid.
14693 * sysdeps/generic/local-setxid.h: New file.
14694 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14696 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14698 * string/Makefile (tests): Add bug-envz1.
14699 * string/bug-envz1.c: New file.
14701 2006-06-02 Jakub Jelinek <jakub@redhat.com>
14703 * posix/regex_internal.c (re_string_skip_chars): If no character has
14704 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
14705 to the byte which couldn't be converted.
14706 (re_string_reconstruct): Don't clear valid_raw_len before calling
14707 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
14708 tip_context using re_string_context_at.
14709 * posix/Makefile: Add rules to build and run bug-regex25 test.
14710 * posix/bug-regex25.c: New test.
14712 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
14715 * string/envz.c (envz_strip): Correct erroneously reversed src
14716 and dest parameters to memmove() invocation.
14718 2006-05-30 Jakub Jelinek <jakub@redhat.com>
14720 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14721 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14722 to make sure the database has been already invalidated.
14723 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
14724 after the cache has been invalidated. Use pthread_mutex_lock rather
14725 than pthread_mutex_trylock if fd != -1.
14726 * nscd/connections.c (invalidate_cache): Add fd argument, write
14727 response to fd if not calling prune_cache, pass fd to prune_cache.
14728 (handle_request): Adjust invalidate_cache caller.
14729 (nscd_run): Pass -1 as fd to prune_cache.
14731 2006-05-30 Ulrich Drepper <drepper@redhat.com>
14733 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14736 2006-05-29 Ulrich Drepper <drepper@redhat.com>
14738 * nscd/nscd.h (struct database_dyn): Add prunelock field.
14739 * nscd/cache.c (prune_cache): Take prunelock before starting the
14740 work. Just return in case it is already taken.
14741 * nscd/connections.c (dbs): Initialize .prunelock.
14743 2006-05-25 Ulrich Drepper <drepper@redhat.com>
14745 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14746 copying. No need to allocate new array for group members. Just
14747 move the pointers and update the size.
14749 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14750 Avoid memory leak in case realloc fails. Simplification for
14751 better code generation.
14753 Avoid deprecation warning because of libc_hidden_proto for
14754 inet6_option_alloc.
14755 * inet/inet6_option.c (option_alloc): Renamed from
14756 inet6_option_alloc. Made static.
14757 (inet6_option_alloc): Now a simple wrapper around option_alloc.
14758 (inet6_option_append): Call option_alloc.
14759 * include/netinet/in.h: Remove libc_hidden_proto for
14760 inet6_option_alloc.
14762 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14763 for cleanup when cb!=NULL [Coverity CID 233].
14765 2006-05-24 Ulrich Drepper <drepper@redhat.com>
14768 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14769 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14770 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14771 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14772 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14773 and inet6_rth_getaddr.
14774 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14776 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14777 Mark inet6_option_* interfaces as deprecated.
14778 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14779 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14780 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14781 inet6_rth_segments, and inet6_rth_getaddr.
14782 * inet/inet6_opt.c: New file.
14783 * inet/inet6_rth.c: New file.
14785 * inet/netinet/icmp6.h: Pretty printing.
14788 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14790 2006-05-23 Ulrich Drepper <drepper@redhat.com>
14792 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14793 doing it all here. When server does not know the answer do not
14794 fail immediate, try parent first.
14796 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14799 2006-05-20 Ulrich Drepper <drepper@redhat.com>
14801 * nis/nis_call.c (__prepare_niscall): New function. Split out
14803 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14805 (__follow_path): New function. Split out from nis_list.
14806 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14808 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14810 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14812 * nis/Versions: Export __prepare_niscall, __create_ib_request,
14813 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14814 from libnsl for version GLIBC_PRIVATE.
14815 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14816 Remove entry parameter from _nss_nisplus_parse_pwent and
14817 _nss_nisplus_parse_grent.
14818 * nis/nss_nisplus/nisplus-parser.c: Likewise.
14819 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14820 again. Rewrite getpwent handling to not use nis_first_entry and
14821 nis_next_entry. Roll out own niscall handling.
14822 * nis/nss_nisplus/nisplus-grp.c: Likewise.
14824 * sunrpc/xdr_rec.c: Fix typo in comment.
14826 2006-05-19 Ulrich Drepper <drepper@redhat.com>
14828 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14831 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14832 to allocate memory for my_pollfd. Better initialization of
14833 cb_is_running. Use TEMP_FAILURE_RETRY.
14835 * malloc/memusage.sh (memusageso): Add quotes.
14836 (memusagestat): Likewise.
14837 * debug/xtrace.sh (pcprofileso): Likewise.
14838 (pcprofiledump): Likewise.
14839 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14841 * malloc/Makefile ($(objpfx)memusage): Likewise.
14843 * nis/nis_callback.c (__nis_create_callback): Calls to
14844 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
14845 asprintf call fails.
14847 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14848 no uninitialized memory is passed to sendto.
14850 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14852 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14853 of snprintf+strdup. Handle OOM.
14854 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14855 cb->serv together. Remove now obsolete free calls.
14856 (__nis_destroy_callback): Remove now obsolete free call.
14858 2006-05-18 David Woodhouse <dwmw2@redhat.com>
14860 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14861 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14862 and ULA respectively). Set precedence for IPv4 address to 10 as
14863 defined in RFC3484 for preferring IPv6.
14864 * posix/gai.conf: Update to match the new default tables.
14866 2006-05-18 Jakub Jelinek <jakub@redhat.com>
14868 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14869 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14870 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14871 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14873 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14875 (init_nss_interface): Remove initialization of these variables.
14877 2006-05-18 Ulrich Drepper <drepper@redhat.com>
14879 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14880 nis_free_directory forward to avoid duplication.
14882 2006-05-17 Ulrich Drepper <drepper@redhat.com>
14884 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14885 rec_dirsearch returning NULL.
14886 (first_shoot): Handle __nis_finddirectory returning NULL.
14887 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14889 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14890 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14892 2006-05-17 Jakub Jelinek <jakub@redhat.com>
14894 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14897 2006-05-15 Ulrich Drepper <drepper@redhat.com>
14899 * include/rpc/pmap_prot.h: Mark all functions as hidden.
14901 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14902 * nscd/nscd_getgr_r.c: Likewise.
14904 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14906 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14907 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14909 * stdlib/longlong.h (__clz_tab): Mark as hidden.
14911 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14913 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14915 * include/rpc/auth.h: Mark xdr_des_block_internal and
14916 xdr_opaque_auth_internal as hidden.
14918 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14921 * include/rpc/xdr.h: Mark all _internal functions as hidden.
14923 * misc/getusershell.c (okshells): Don't use static initializers,
14926 * stdlib/fmtmsg.c (keywords): Change type of len element to
14927 uint32_t to not waste space on 64bit machines.
14929 * locale/setlocale.c: Change _nl_category_names into a string.
14930 Add new _nl_category_name_idxs. Change all users.
14931 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14932 Declare _nl_category_name_idxs.
14933 * locale/findlocale.c: Adjust for _nl_category_names change.
14934 * locale/loadlocale.c: Likewise.
14935 * locale/newlocale.c: Likewise.
14936 * intl/dcigettext.c: Likewise.
14938 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14939 (add_alias2): ...here. New function.
14940 (__gconv_read_conf): Simplify builtin alias handling.
14941 (builtin_aliases): Convert to string to avoid relocations.
14942 * iconv/gconv_builtin.h: Add comment about correct formatting.
14944 2006-05-15 Jakub Jelinek <jakub@redhat.com>
14946 * resolv/res_debug.c (loc_ntoa): Make error const.
14948 2006-05-14 Andreas Schwab <schwab@suse.de>
14950 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14952 2006-05-12 Jakub Jelinek <jakub@redhat.com>
14954 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14955 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14956 sizeof (cpu_set_t).
14958 2006-05-11 Ulrich Drepper <drepper@redhat.com>
14960 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14962 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14964 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14965 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14967 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14968 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14970 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14971 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14974 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14975 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14978 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14979 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14981 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14982 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14984 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14985 * include/rpcsvc/nis_callback.h: New file.
14987 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14988 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14990 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14991 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14993 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14994 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14996 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14997 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14999 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
15000 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
15003 * nis/nis_xdr.h: Mark all functions as hidden. Remove
15004 __BEGIN_DECLS and __END_DECLS, the header is not installed.
15006 * nis/nis_error.c: Remove table of strings. Use position
15007 independent mechanism.
15008 * nis/nis_error.h: New file.
15010 2006-05-11 Jakub Jelinek <jakub@redhat.com>
15012 * locale/programs/ld-time.c (time_finish): If wide era name or
15013 format aren't provided, set both wname and wformat to L"".
15015 2006-05-10 Ulrich Drepper <drepper@redhat.com>
15017 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
15018 results if the call was succesful.
15020 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
15022 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
15025 2006-05-10 Jakub Jelinek <jakub@redhat.com>
15027 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
15029 2006-05-10 Ulrich Drepper <drepper@redhat.com>
15031 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
15032 caller makes sure this is not the case.
15033 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
15035 2006-05-09 Ulrich Drepper <drepper@redhat.com>
15037 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
15040 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
15041 [Coverity CID 229, 230]
15043 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
15045 (hol_help): Likewise. [Coverity CID 226, 227]
15047 * string/argz-replace.c (__argz_replace): Unconditionally call
15048 free on SRC. [Coverity CID 225]
15050 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
15051 the return value of __nis_default_owner and __nis_default_group,
15052 it has been especially allocated. [Coverity CID 224]
15054 * nis/nis_defaults.c (searchXYX): New functions. Used by both
15055 searchgroup and searchowner. Significantly simplified.
15056 (__nis_default_owner): Remove duplication. Do not locally copy the
15057 string before duplicating it.
15058 (__nis_default_group): Likewise.
15060 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
15061 we must clear the variable before calling __nisfind_server.
15063 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
15064 nis_getnames. [Coverity CID 223]
15066 * locale/programs/locfile.c (locfile_read): Use alloca instead of
15067 xmalloc to allocate local repertoire name. [Coverity CID 222]
15069 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
15070 allocate memory for the input to add_bytes. [Coverity CID 221]
15072 * posix/wordexp.c (w_addword): Free word if realloc fails and it
15073 was allocated here. [Coverity CID 219, 220]
15075 * posix/getconf.c (print_all): Free confstr data after printing.
15078 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
15079 list allocation fails. [Coverity CID 215]
15081 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
15084 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
15085 string is NULL. [Coverity CID 212]
15086 * argp/Makefile: Add rules to build and run bug-argp1.
15087 * argp/bug-argp1.c: New file.
15089 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
15091 * stdlib/canonicalize.c (__realpath): Likewise.
15093 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
15094 pointer. [Coverity CID 206]
15096 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
15097 in statically linked code.
15098 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
15099 statically built code, be prepared to have no link map.
15102 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
15103 dgettext calls. [Coverity CID 204]
15105 * argp/argp-help.c (struct uparams): Remove valid member. Change
15107 (uparam_names): Reduce size. Avoid relative relocations.
15108 Moved to read-only segment.
15109 (fill_in_uparams): Update for new layout.
15111 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
15112 assumed to always be != NULL. [Coverity CID 202]
15114 * argp/argp-help.c (hol_entry_help): Remove some dead code
15115 [Coverity CID 200].
15117 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
15118 away a few more unconditional yperr2nss calls.
15119 (_nss_nis_getservbyname_r): Likewise.
15121 2006-05-06 Ulrich Drepper <drepper@redhat.com>
15123 * sysdeps/generic/ldsodefs.h: Remove support for non-core
15126 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
15127 that unused memory passed to sendto is nevertheless initialized.
15130 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
15131 possibly unaligned memory accesses.
15133 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
15134 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
15135 and __putlong respectively. Correct buffer overflow check for
15138 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
15140 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
15141 (send_dg): Rewrite error handling to be more compact and avoid
15142 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
15144 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
15146 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
15147 instead of ns_get16.
15148 (res_queriesmatch): Likewise. Minor optimization.
15151 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
15152 __libc_res_nsend might reallocate the buffer for the answer. In
15153 this case we have to reload the HP pointer.
15155 2006-05-05 Ulrich Drepper <drepper@redhat.com>
15157 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
15158 some branch prediction hints.
15160 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
15161 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15162 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15163 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15164 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15165 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15166 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
15167 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
15169 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
15171 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
15172 by a GOT relocation to make Scrt1.o position independent.
15173 * sysdeps/s390/s390-64/elf/start.S: Likewise.
15175 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
15176 six system call parameters.
15177 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
15179 2006-05-05 Ulrich Drepper <drepper@redhat.com>
15181 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
15184 * sunrpc/svc_udp.c (BZERO): Remove definition.
15186 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
15188 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
15189 (des_SPtrans): Use uint32_t type.
15190 (des_skb): Likewise.
15192 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
15194 2006-05-05 Jakub Jelinek <jakub@redhat.com>
15197 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
15200 2006-05-05 Ulrich Drepper <drepper@redhat.com>
15202 * locale/programs/ld-address.c (address_finish): Fix one more
15203 place where the iso639 array might be accessed beyond the limits.
15205 2006-05-04 Ulrich Drepper <drepper@redhat.com>
15207 * nis/nis_table.c (nis_list): Avoid clearing res twice before
15208 filling it for the first time.
15210 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
15211 Adjust all callers.
15212 Free res object content before returning.
15214 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
15216 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
15219 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
15220 cleanup for initial thread, just the free call on TVP.
15222 * nscd/gai.c (__getline): Define.
15225 See ChangeLog.16 for earlier changes.