1 2010-04-25 Bruno Haible <bruno@clisp.org>
4 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Upon failure, return
7 2010-04-24 Emilio Pozuelo Monfort <pochu27@gmail.com>
9 * hurd/lookup-at.c (__file_name_lookup_at): Fix error return value.
11 2010-04-14 Andreas Schwab <schwab@redhat.com>
13 * elf/dl-version.c (_dl_check_map_versions): Avoid index overflow
14 when dependencies are missing.
16 2010-04-09 Ulrich Drepper <drepper@redhat.com>
18 * nscd/aicache.c (addhstaiX): Correct passing memory to address
19 list to gethostbyname4_r functions.
21 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Optimize
24 2010-04-07 Andreas Schwab <schwab@redhat.com>
26 * sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
27 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
29 2009-12-01 Eric Blake <ebb9@byu.net>
32 * posix/getopt.c (_getopt_internal_r): Skip optional - or + before
33 checking lead byte of optstring for :.
36 * posix/getopt.c (_getopt_internal_r): Reject '-;' as short
37 option, since it conflicts with "W;" optstring extension.
39 2009-12-02 Eric Blake <ebb9@byu.net>
42 * posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
43 to '--foo', with optional argument or non-ambiguous prefix.
45 2010-04-05 Ulrich Drepper <drepper@redhat.com>
48 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Handle
49 timeouts from servers.
52 * elf/ldconfig.c (main): Respect chroot setting when looking for
55 2010-04-04 Ulrich Drepper <drepper@redhat.com>
58 * posix/getopt.c (_getopt_internal_r): Fix arguments printed in error
62 * resolv/netdb.h: Declare iruserok and iruserok_af.
64 * argp/Makefile: Add rules to build and run bug-argp2.
65 * argp/bug-argp2.c: New file.
67 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
70 * argp/argp-parse.c (convert_options): Fix improper use of `|'
71 between character values.
73 2010-04-04 Ulrich Drepper <drepper@redhat.com>
76 * csu/Makefile ($(objpfx)version-info.h): Handle newer kernel headers
77 which don't define UTS_RELEASE.
79 2010-04-04 H.J. Lu <hongjiu.lu@intel.com>
80 Ulrich Drepper <drepper@redhat.com>
83 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Allow
84 concurrent initialization and use of __cpu_features.
86 2010-04-04 Ulrich Drepper <drepper@redhat.com>
88 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add tag to
91 2010-04-03 Ulrich Drepper <drepper@redhat.com>
94 * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
95 which include unnecessary padding in d_reclen.
96 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
100 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
101 unknown interface, return -1.
102 (getifaddrs_internal): Rename from getifaddrs. Handle errors in
103 map_newlink be returning -EAGAIN.
104 (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
107 2010-04-03 Ulrich Drepper <drepper@redhat.com>
110 * posix/gai.conf: Document problems with IPv4 site-local addresses and
114 * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
115 small_tables_initialized.
117 * malloc/malloc.c (set_max_fast): Fix computation of the value.
119 2010-03-25 Andreas Schwab <schwab@redhat.com>
121 * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
124 2010-03-25 Andreas Schwab <schwab@redhat.com>
126 * sysdeps/posix/cuserid.c: Fix typo.
128 2010-03-24 Ulrich Drepper <drepper@redhat.com>
131 * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
133 Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
135 2010-03-02 Richard Guenther <rguenther@suse.de>
137 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
140 2010-02-24 Ulrich Drepper <drepper@redhat.com>
143 * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
144 undoing the stream because _IO_FINISH doesn't report failures.
147 * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
148 (public_pVALLOc): Likewise.
149 Patch by Petr Baudis.
151 2010-02-22 Jim Meyering <meyering@redhat.com>
153 * manual/math.texi (BSD Random): Fix a typo: s/are/is/
155 * manual/charset.texi: Adjust grammar.
157 * manual/errno.texi (Error Messages): Fix doubled-words and typos.
158 * manual/charset.texi (Selecting the Conversion): Likewise.
159 * manual/getopt.texi (Getopt Long Options): Likewise.
160 * manual/memory.texi (Resizing the Data Segment): Likewise.
161 * manual/message.texi (GUI program problems): Likewise.
162 * manual/resource.texi (CPU Affinity): Likewise.
163 * manual/stdio.texi (Streams and Threads): Likewise.
164 * manual/time.texi (High Accuracy Clock): Likewise.
166 2010-02-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
168 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
169 instructions cu21 and cu24. Add well-formedness checking
170 parameter and adjust the software implementation.
171 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
173 2010-02-10 Ulrich Drepper <drepper@redhat.com>
176 * io/ftw.c (ftw_startup): Close descriptor for initial directory
177 after changing back to it.
179 2010-02-09 Ulrich Drepper <drepper@redhat.com>
181 * sysdeps/i386/lshift.S: Fix unwind information.
183 2010-02-03 Ulrich Drepper <drepper@redhat.com>
186 * misc/getusershell.c (initshells): Allocate one more byte in input
187 buffer so that fgets doesn't loop undefinitely.
189 2010-01-25 Andreas Schwab <schwab@redhat.com>
191 * iconv/iconv_prog.c (write_output): Fix check for open failure.
193 2010-01-22 Ulrich Drepper <drepper@redhat.com>
196 * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
197 mmap resource problem. Patch by Joe Landers <jlanders@vmware.com>.
199 2010-01-22 Jim Meyering <jim@meyering.net>
202 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
203 detection test. Patch by Paul Eggert.
206 * posix/regex_internal.c (re_string_realloc_buffers):
207 Detect and handle internal overflow. Patch by Paul Eggert
209 2010-01-20 Andreas Schwab <schwab@redhat.com>
211 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
212 (CHECK_SP): Fix check for alternate stack.
213 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
214 (CHECK_SP): Likewise.
216 2010-01-19 Ulrich Drepper <drepper@redhat.com>
219 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
221 2010-01-18 Andreas Schwab <schwab@redhat.com>
223 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
226 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
229 2010-01-14 Ulrich Drepper <drepper@redhat.com>
231 * bits/confname.h: Make pre-C99-safe.
233 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
236 * sysdeps/ia64/memchr.S: Don't read beyond the last byte
239 2010-03-25 Ryan S. Arnold <rsa@us.ibm.com>
241 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
242 redundant and incorrect else block which overwrites current line
243 with the partial next line.
245 2010-01-14 Ulrich Drepper <drepper@redhat.com>
248 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
249 re_node_set_insert failure; return REG_ESPACE.
250 Patch by Paul Eggert.
252 2010-01-06 Ulrich Drepper <drepper@redhat.com>
254 * dirent/dirent.h: Fix typo in feature selection macro use.
256 2009-12-15 Ulrich Drepper <drepper@redhat.com>
258 * include/link.h (struct link_map): Move l_used into its own word.
259 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
261 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
264 2009-12-10 Ulrich Drepper <drepper@redhat.com>
267 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
268 *herrnop before returning.
269 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
271 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
272 TRYAGAIN errors separately.
273 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
274 *name4_r after functions.
276 2009-11-24 Ulrich Drepper <drepper@redhat.com>
278 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
280 * sysdeps/unix/sysv/linux/grantpt.c: New file.
281 * login/programs/pt_chown.c (main): Don't print message on errors
282 when doing real work.
284 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
285 irel relocations split out from...
286 (__libc_csu_init): ...here.
287 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
289 2009-11-22 Ulrich Drepper <drepper@redhat.com>
291 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
293 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
296 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
297 than software pipeline. Properly recover from shorter read.
299 2009-11-16 Jakub Jelinek <jakub@redhat.com>
301 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
302 Implement using sync_file_range2 syscall if __NR_sync_file_range2
304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
307 2009-11-19 Ulrich Drepper <drepper@redhat.com>
310 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
311 initialized before using it.
312 (_IO_putwc_unlocked): Likewise.
315 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
316 in cast to not throw away const-ness of parameters.
317 (__CPU_EQUAL_S): Likewise.
318 (__CPU_OP_S): Likewise.
320 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
322 * posix/bug-regex30.c: New file.
323 * posix/Makefile: Add rules to build and run bug-regex30.
324 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
325 character lead bytes when there is a range in a COMPLEX_BRACKET.
326 Reported by Oleg Bylatov.
328 2009-11-17 Ulrich Drepper <drepper@redhat.com>
331 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
332 * locale/tst-duplocale.c: New file.
333 * locale/Makefile (tests): Add tst-duplocale.
336 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
337 Patch by Bruno Haible <bruno@clisp.org>.
338 * locale/tst-locname.c: New file.
339 * locale/Makefile (tests): Add tst-locname.
342 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
343 constants from recent kernels.
344 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
345 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
346 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
347 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
348 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
349 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
351 2009-11-09 Mike Frysinger <vapier@gentoo.org>
353 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
354 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
355 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
357 2009-11-06 Mike Frysinger <vapier@gentoo.org>
359 * posix/bug-regex29.c: Include stdio.h.
361 2009-11-14 Ulrich Drepper <drepper@redhat.com>
363 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
364 F_GETOWN_EX definitions according to corrected kernel definitions.
365 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
366 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
367 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
368 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
369 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
370 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
372 2009-11-10 Andreas Schwab <schwab@redhat.com>
374 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
376 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
377 map_v4v6_hostent running out of space.
379 2009-11-10 Ulrich Drepper <drepper@redhat.com>
381 * string/bits/string3.h (memset): If the second parameter is constant
382 and zero there is likely no transposition.
383 Patch by Caolan McNamara <caolanm@redhat.com.
385 2009-11-04 Philippe De Muyter <phdm@macqel.be>
387 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
388 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
390 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
392 * malloc/memusagestat.c (main): Fix spelling in an error message.
394 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
396 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
397 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
399 2009-11-03 Andreas Schwab <schwab@redhat.com>
401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
404 2009-11-03 Jakub Jelinek <jakub@redhat.com>
406 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
407 relocate opd entry when resolving prelink conflicts.
409 2009-11-04 Jakub Jelinek <jakub@redhat.com>
411 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
412 when -D_FILE_OFFSET_BITS=64.
414 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
415 of last two arguments when -D_FILE_OFFSET_BITS=64.
416 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
417 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
418 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
419 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
420 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
421 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
423 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
426 * sysdeps/generic/libgcc_s.h: New file.
427 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
429 2009-11-01 Ulrich Drepper <drepper@redhat.com>
431 * malloc/hooks.c (free_check): Restore locking and call _int_free
434 2009-10-30 Ulrich Drepper <drepper@redhat.com>
436 * version.h (VERSION): Bump for 2.11 release.
437 * include/features.h (__GLIBC_MINOR__): Bump to 11.
439 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
441 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
443 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
445 * stdlib/tst-strtoll.c (tests): Likewise.
448 * time/strftime_l.c (__strftime_internal): Allow %OC.
450 * misc/mkostemps.c: New file.
451 * misc/mkostemps64.c: New file.
453 2009-10-30 Andreas Schwab <schwab@redhat.com>
455 * locale/programs/locale-spec.c: Include <error.h> and
458 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
460 2009-10-28 Roland McGrath <roland@redhat.com>
462 * Makefile (dist-prepare): New target.
463 (tag-for-dist): Target removed.
464 (glibc-%.tar): Pattern rule removed.
465 (%.tar): New pattern rule, does simple use of git archive.
466 (dist-version): Remove variable definition.
467 (dist): Just depend on that. Add .tar.xz dependency.
468 If dist-version variable not set on command line, depend on
469 dist-prepare, re-invoke with dist-version set via git describe.
471 * Makerules (%.xz): New pattern rule.
473 2009-10-28 Alan Modra <amodra@bigpond.net.au>
475 * elf/ifuncdep2.c: Include ifunc-sel.h.
477 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
478 * elf/ifuncmain1.c (global): Delete.
479 * elf/ifuncmain1vis.c: Likewise.
480 * elf/ifuncmain2.c: Likewise.
481 * elf/ifuncmain5.c: Likewise.
482 * elf/ifuncmod3.c: Likewise.
483 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
484 (foo_ifunc): Use ifunc_one.
485 * elf/ifuncmain7.c: Likewise.
486 * elf/ifuncmod1.c: Include ifunc-sel.h.
487 (global): Define protected var.
488 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
489 * elf/ifuncmod5.c: Likewise.
490 * sysdeps/generic/elf/ifunc-sel.h: New file.
491 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
493 2009-07-30 Alan Modra <amodra@bigpond.net.au>
495 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
496 (R_PPC_REL16*): Correct comments.
497 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
498 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
499 R_PPC64_REL16_HA): Define.
500 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
501 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
502 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
503 Delete unused "reloc" param.
504 (__process_machine_rela): Handle R_PPC_IRELATIVE.
505 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
506 Delete "reloc" param.
507 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
509 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
510 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
513 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
516 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
517 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
521 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
522 parameter, specifying length of prefix.
523 * stdio-common/tempname.c: Likewise.
524 * include/stdio.h: Adjust prototypes.
525 * libio/oldtmpfile.c: Adjust caller.
526 * misc/mkdtemp.c: Likewise.
527 * misc/mkostemp.c: Likewise.
528 * misc/mkostemp64.c: Likewise.
529 * misc/mkstemp.c: Likewise.
530 * misc/mkstemp64.c: Likewise.
531 * misc/mktemp.c: Likewise.
532 * stdio-common/tempnam.c: Likewise.
533 * stdio-common/tmpfile.c: Likewise.
534 * stdio-common/tmpnam.c: Likewise.
535 * stdio-common/tmpnam_r.c: Likewise.
536 * misc/mkstemps.c: New file.
537 * misc/mkstemps64.c: New file.
538 * stdlib/stdlib.h: Add prototypes.
539 * misc/Makefile (routines): Add mkstemps and mkstemps64.
540 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
542 2009-10-29 Ulrich Drepper <drepper@redhat.com>
544 * locale/iso-639.def: Add sml entry.
547 * resolv/res_send.c (send_dg): Initialize resplen.
550 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
551 definition to the kernel's.
552 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
554 2009-08-18 Anders Johansson <ajohansson@novell.com>
556 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
557 offsets and record sizes in assert()s and response sending.
558 * nscd/grpcache.c: Likewise.
559 * nscd/hstcache.c: Likewise.
560 * nscd/initgrcache.c: Likewise.
561 * nscd/pwdcache.c: Likewise.
563 2009-10-29 Ulrich Drepper <drepper@redhat.com>
566 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
567 /etc/hosts does not exist set errnop and herrnop appropriately.
568 Patch by Steve Langasek <vorlon@debian.org>.
571 * malloc/malloc.c (malloc_info): Fix typos in format strings.
572 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
575 * login/utmp_file.c (TIMEOUT): Increase to 10.
578 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
579 for file names in case the syscall is not available.
580 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
581 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
582 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
583 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
584 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
585 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
586 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
587 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
588 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
589 * sysdeps/unix/sysv/linux/openat.c: Likewise.
590 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
591 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
592 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
593 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
594 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
595 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
596 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
599 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
600 creation filed, remove the request from the 'requests' list and signal
601 the caller that the request is finished.
604 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
605 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
608 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
609 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
612 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
613 overflows the int return type.
616 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
617 have to compute maxsize_total, we have to update the variables, and
618 the also_total handling must happen after the repair.
621 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
622 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
624 2009-10-27 Andreas Schwab <schwab@redhat.com>
626 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
627 errno is always set when returning unsuccessfully.
629 2009-10-29 Andreas Schwab <schwab@redhat.com>
631 * malloc/memusage.c (update_data): Fix index wraparound handling
632 so that buffer_cnt is actually reset.
634 2009-10-29 Ulrich Drepper <drepper@redhat.com>
637 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
638 of the directory we look at into the static buffer if there is one
639 at the start of the loop.
642 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
643 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
646 * sysdeps/unix/sysv/linux/kernel-features.h: Define
647 __ASSUME_F_GETOWN_EX.
648 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
650 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
652 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
654 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
655 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
656 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
657 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
658 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
659 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
662 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
666 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
667 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
669 2009-10-24 Joseph Myers <joseph@codesourcery.com>
671 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
673 2009-10-27 Jakub Jelinek <jakub@redhat.com>
676 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
677 Reported by Ray Chason.
679 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
681 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
683 * sysdeps/x86_64/multiarch/strchr.S: New file.
684 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
685 * sysdeps/x86_64/multiarch/strrchr.S: New file.
687 2009-10-21 Andreas Schwab <schwab@redhat.com>
689 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
691 2009-10-19 Andreas Schwab <schwab@redhat.com>
693 * include/math.h: Add hidden protos for __exp/__expf/__expl.
694 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
695 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
696 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
697 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
698 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
699 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
700 __ieee751_expl to handle overflow.
702 2009-10-14 David S. Miller <davem@davemloft.net>
704 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
705 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
707 2009-10-13 Andreas Schwab <schwab@redhat.com>
709 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
712 2009-10-08 Ulrich Drepper <drepper@redhat.com>
715 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
716 Patch in part by Steve Ward <planet36@gmail.com>.
719 * stdlib/rand_r.c: Fix typo.
721 * po/cs.po: Update from translation team.
723 2009-10-06 Andreas Schwab <schwab@redhat.com>
725 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
726 returning if RTLD_NOLOAD.
728 2009-10-06 Roland McGrath <roland@redhat.com>
730 * sysdeps/x86_64/multiarch/strstr-c.c
731 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
733 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
734 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
736 * sysdeps/x86_64/multiarch/init-arch.h
737 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
738 (HAS_CPU_FEATURE): New macro.
739 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
740 * sysdeps/x86_64/multiarch/init-arch.c
741 (__get_cpu_features): #undef it before definition.
743 2009-10-05 Andreas Schwab <schwab@redhat.com>
745 * locale/C-time.c: Revert week-1stday back to 19971130 and set
746 first_weekday to 1 and first_workday to 2.
748 2009-10-01 Ulrich Drepper <drepper@redhat.com>
750 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
752 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
753 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
754 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
755 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
756 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
757 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
759 2009-09-28 Andreas Schwab <schwab@redhat.com>
761 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
762 * stdio-common/vfprintf.c: Likewise.
764 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
766 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
767 (mkdirat): Call __directory_name_split_at instead of
768 __directory_name_split.
770 2009-09-28 Ulrich Drepper <drepper@redhat.com>
772 * locale/programs/locale-spec.c (locale_special): If nothing matches
773 fail with an appropriate message.
775 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
777 * configure.in: Exclude binutils 2.X. Support binutils 2.100
780 2009-09-25 Andreas Schwab <schwab@redhat.com>
782 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
783 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
785 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
787 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
789 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
791 * iconvdata/iso646.c (gconv_init): Correctly initialize the
792 character size elements in step data.
794 2009-09-20 Ulrich Drepper <drepper@redhat.com>
796 * po/hu.po: Update from translation team.
797 * po/vi.po: Likewise.
799 2009-09-19 Roland McGrath <roland@redhat.com>
801 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
803 2009-09-15 Roland McGrath <roland@redhat.com>
805 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
806 * nptl/sysdeps/pthread/configure: Regenerated.
807 * nptl/sysdeps/x86_64/configure: Regenerated.
808 * sysdeps/unix/sysv/linux/configure: Regenerated.
809 * sysdeps/x86_64/elf/configure: Regenerated.
811 * Makefile (autoconf-it): Set execute bit only on top-level configure.
813 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
814 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
815 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
816 * configure: Regenerated.
818 2009-09-09 Ulrich Drepper <drepper@redhat.com>
820 * posix/getconf.c (main): Handle -- on command line.
822 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
824 * configure.in: Support binutils 2.100 and 3.0.
826 2009-09-08 Jakub Jelinek <jakub@redhat.com>
828 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
829 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
830 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
831 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
833 2009-09-07 Ulrich Drepper <drepper@redhat.com>
835 * locale/programs/ld-collate.c (struct locale_collate_t): Add
836 unnamed_section_defined field.
837 (collate_read): Test and set unnamed_section_defined.
839 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
842 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
844 * configure.in: Support binutils 2.20.
846 2009-09-03 Ulrich Drepper <drepper@redhat.com>
848 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
849 __strstr_ia32): Add attribute_hidden.
851 2009-09-01 Andreas Schwab <schwab@redhat.com>
853 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
854 parsing of group entry.
856 2009-09-02 Andreas Schwab <schwab@redhat.com>
858 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
859 external buffer. Always discard readahead in internal buffer.
860 * libio/Makefile (tests): Add bug-wsetpos.
861 * libio/bug-wsetpos.c: New file.
863 2009-09-02 Jakub Jelinek <jakub@redhat.com>
865 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
866 Add attribute_hidden.
867 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
868 __strcasestr_sse2): Likewise.
869 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
870 (__fma_fma): Make static.
871 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
872 (__fmaf_fma): Make static.
874 2009-08-31 Andreas Schwab <schwab@redhat.com>
876 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
877 reformulate in-buffer optimisation check to match code in
878 _IO_new_file_seekoff.
880 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
882 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
883 to srwi in 32-bit memcpy for power6.
885 2009-09-01 Andreas Schwab <schwab@redhat.com>
887 * include/stdio.h: Declare hidden proto for fflush.
888 * libio/iofflush.c: Add hidden weak alias for fflush.
890 2009-09-01 Jakub Jelinek <jakub@redhat.com>
892 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
893 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
895 2009-08-31 Andreas Schwab <schwab@redhat.com>
897 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
899 2009-08-31 Ulrich Drepper <drepper@redhat.com>
902 * malloc/malloc.c: Add local assert definition to avoid problems with
903 memory allocation in the real one.
905 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
907 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
909 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
910 turn off SSSE3 on Atom.
912 2009-08-28 Ulrich Drepper <drepper@redhat.com>
914 * stdlib/tst-strtol.c (tests): More tests.
915 * stdlib/tst-strtoll.c (tests): Likewise.
917 2009-08-26 Ulrich Drepper <drepper@redhat.com>
919 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
921 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
923 2009-08-25 Ulrich Drepper <drepper@redhat.com>
925 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
926 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
928 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
930 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
932 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
934 2009-08-25 Joseph Myers <joseph@codesourcery.com>
936 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
938 2009-08-25 Ulrich Drepper <drepper@redhat.com>
940 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
941 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
943 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
945 * sysdeps/x86_64/fpu/s_signbit.S: New file.
946 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
948 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
949 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
951 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
952 leftover YMM_SIZE definition.
954 2009-08-24 Ulrich Drepper <drepper@redhat.com>
956 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
958 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
959 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
961 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
963 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
964 and SET_FLOAT_WORD definitions.
966 2009-08-24 Roland McGrath <roland@redhat.com>
968 * sysdeps/unix/syscall-template.S: New file.
969 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
970 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
971 (compile-syscall): Pass mkdep and -g options as normal.
972 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
973 (common-generated): Don't add them here.
975 2009-08-24 Ulrich Drepper <drepper@redhat.com>
977 * math/s_fdim.c: In case of overflows set errno.
978 * math/s_fdimf.c: Likewise.
979 * math/s_fdiml.c: Likewise.
981 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
982 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
983 are using the inline optimizations.
985 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
986 (__signbitf): Likewise.
988 2009-08-23 Ulrich Drepper <drepper@redhat.com>
990 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
992 * posix/Makefile (tests): Add bug-regex29.
993 * posix/bug-regex29.c: New file.
995 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
996 older POSIX versions are selected.
998 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1000 * stdio-common/printf_fphex.c: Likewise.
1001 * stdio-common/tstdiomisc.c: Add more tests.
1003 * locale/locale.h: Include xlocale.h and the thread-local locale
1004 declarations for XPG7, not XPG6.
1006 2009-08-21 Andreas Schwab <schwab@redhat.com>
1008 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1009 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1012 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1013 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1015 2009-08-20 Roland McGrath <roland@redhat.com>
1017 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1018 Use l_addr instead of l_map_start (dli_fbase).
1019 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1020 address when there is no proximate symbol.
1021 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1024 2009-08-16 Ulrich Drepper <drepper@redhat.com>
1026 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1028 2009-08-14 Ulrich Drepper <drepper@redhat.com>
1030 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1031 Also handle SIGINT. In that case only do the cleanup and then
1032 re-raise the signal.
1033 (main): Install handler for SIGINT.
1035 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1037 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1040 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1042 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1043 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1045 (tests): Add tst-audit6 tst-audit7.
1046 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1047 tst-auditmod7a tst-auditmod7b.
1048 ($(objpfx)tst-audit6): New.
1049 ($(objpfx)tst-audit6.out): Likewise.
1050 ($(objpfx)tst-audit7): Likewise.
1051 ($(objpfx)tst-audit7.out): Likewise.
1052 (tst-audit6-ENV): Likewise.
1053 (tst-audit7-ENV): Likewise.
1054 (CFLAGS-tst-auditmod6b.c): Likewise.
1055 (CFLAGS-tst-auditmod6c.c): Likewise.
1056 (CFLAGS-tst-auditmod7b.c): Likewise.
1057 * elf/tst-audit6.c: New file.
1058 * elf/tst-audit7.c: New file.
1059 * elf/tst-auditmod6a.c: New file.
1060 * elf/tst-auditmod6b.c: New file.
1061 * elf/tst-auditmod6c.c: New file.
1062 * elf/tst-auditmod7a.c: New file.
1063 * elf/tst-auditmod7b.c: New file.
1064 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1065 saving and restoring SSE/AVX registers to ...
1066 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1068 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1070 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1071 only if SHARED is defined.
1072 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1074 2009-08-03 Jim Meyering <meyering@redhat.com>
1076 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1078 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1080 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1081 section as the other functions for this architecture.
1082 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1084 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1086 * sysdeps/x86_64/strcmp.S: Add support to compile with
1087 USE_SSSE3. In this case palignr is used.
1088 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1089 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1090 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1091 Add strcmp-ssse3 and strncmp-ssse3.
1092 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1093 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1095 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1096 warning through fake initialization.
1098 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1100 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1102 2009-08-07 Andreas Schwab <schwab@redhat.com>
1104 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1107 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1109 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1110 EBX from EAX = 1. Handle EAX = 11.
1112 2009-08-07 Andreas Schwab <schwab@redhat.com>
1114 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1117 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1119 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1120 hidden IFUNC functions.
1121 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1123 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1125 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1126 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1128 (CFLAGS-strcspn-c.c): Define.
1129 (CFLAGS-strpbrk-c.c): Define.
1130 (CFLAGS-strspn-c.c): Define.
1131 (CFLAGS-strstr.c): Define.
1132 (CFLAGS-strcasestr.c): Define.
1133 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1134 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1135 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1136 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1137 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1138 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1139 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1140 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1141 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1142 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1143 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1144 -16L instead of 0xfffffffffffffff0L.
1145 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1147 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1149 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1151 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1153 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1154 another rewrite. Much smaller and faster.
1155 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1157 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1158 ss_flags from the correct location.
1160 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1162 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1163 * sysdeps/i386/i686/cacheinfo.c: New file.
1164 * sysdeps/i386/i686/multiarch/Makefile: New file.
1165 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1166 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1167 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1168 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1169 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1170 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1171 (__cpuid_count): New. Provide the default.
1172 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1173 (__x86_64_preferred_memory_instruction): Define only if
1174 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1175 (intel_check_word): Use __cpuid.
1176 (handle_intel): Likewise.
1177 (handle_amd): Likewise.
1178 (__cache_sysconf): Likewise.
1179 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1180 (__cache_sysconf): Likewise.
1181 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1182 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1183 (get_common_indeces): Use __cpuid.
1184 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1185 if ENABLE_SSSE3_ON_ATOM is not defined.
1186 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1187 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1188 popcnt instead of popcntq.
1190 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1192 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1194 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1196 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1197 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1198 which always causes a compile error.
1200 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1202 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1204 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1205 which always causes a compile error.
1207 * debug/Makefile (tests): Add tst-longjmp_chk2.
1208 * debug/tst-longjmp_chk2.c: New file.
1210 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1211 Remove incorrect use of BP_SYM.
1212 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1213 here now since it is more complex than just a simple check.
1215 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1216 we make no more progress.
1218 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1220 * math/s_fma.c: Don't define alias if __fma is a macro.
1221 * math/s_fmaf.c: Likewise.
1222 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1223 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1224 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1226 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1227 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1229 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1231 * include/libc-symbols.h (libm_ifunc): Define.
1232 * sysdeps/x86_64/multiarch/Versions: New file.
1234 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1236 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1238 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1240 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1242 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1243 call that registers used in calling conventions need to be preserved.
1244 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1245 to preserve register content if necessary.
1246 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1247 (_dl_x86_64_restore_sse): New function.
1248 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1249 is allowed to modify xmm/ymm registers.
1251 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1252 application's perspective.
1253 * stdio-common/scanf17.c: Likewise.
1255 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1257 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1259 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1261 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1262 two steps to catch bugs.
1264 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1266 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1267 determines which files are used in runtime lookups and only checks
1269 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1271 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1272 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1273 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1276 * elf/dl-open.c: Move _dl_scope_free to...
1277 * elf/dl-scope.c: ...here. New file.
1278 * elf/Makefile (dl-routines): Add scope.
1280 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1281 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1283 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1284 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1285 all the places we handled RES_USE_EDNS0 only before.
1286 Patch by Adam Tkac <atkac@redhat.com>.
1288 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1290 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1291 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1292 Update size when reallocating.
1294 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1296 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1297 functions used in ld.so modify xmm/ymm registers.
1298 * sysdeps/x86_64/Makefile: Hook new test up.
1299 * sysdeps/x86_64/rtld-memchr.c: New file.
1300 * sysdeps/x86_64/rtld-memcmp.c: New file.
1301 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1302 * sysdeps/x86_64/rtld-strchr.S: New file.
1303 * sysdeps/x86_64/rtld-strlen.S: New file.
1304 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1305 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1307 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1309 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1311 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1319 (next_8_bytes): Likewise.
1320 (Byte0): Remove commented out codes.
1321 (unaligned_table): Align jump table at 8 bytes.
1322 Add _sse4_2 to all labels. Always include "../strcmp.S".
1323 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1324 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1325 * sysdeps/x86_64/strncmp.S: New file.
1327 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1330 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1331 kernels, dropped when eventfd2 support was added.
1332 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1333 kernels, dropped when signalfd4 support was added.
1334 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1338 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1341 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1343 2009-07-25 Ulrich Drepper <drepper@redhat.com>
1345 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1346 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1349 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1350 callback we must touch the status to avoid using stale value.
1352 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1355 2009-07-24 Ulrich Drepper <drepper@redhat.com>
1357 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1358 /lib/modules/* headers anymore. We have sane headers in the standard
1361 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1363 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1364 "etf3enh" and "highgprs" added.
1365 (_dl_s390_platforms): "z10" added.
1366 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1367 Increased for the new entries.
1368 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1369 HWCAP_S390_HIGH_GPRS added.
1371 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1372 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1373 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1374 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1375 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1377 2009-07-23 Ulrich Drepper <drepper@redhat.com>
1379 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1380 avoid additional cpuid instructions. Most of the information is
1383 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1385 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1387 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1388 SSSE3 bit for Atoms.
1389 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1392 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1393 structure before copying it to avoid warning.
1394 * posix/tst-rfc3484-2.c (do_test): Likewise.
1395 * posix/tst-rfc3484-3.c (do_test): Likewise.
1398 * include/unistd.h: Make header file suitable for C++ test cases.
1399 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1401 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1402 stack alignment in the exit code.
1404 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1405 potentially be zero.
1407 * elf/tst-unique1.c: Extend test to check for unloading DSO with
1408 unique symbol definition.
1409 Patch by Jakub Jelinek.
1410 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1411 make sure the object with the definition cannot be unloaded. Adjust
1413 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1414 the unique symbol hash table should not be const.
1416 2009-07-21 Ulrich Drepper <drepper@redhat.com>
1418 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
1419 unnecesary variables. Comment fixes.
1421 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1423 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1424 Use NONASCII_CASE information provided by the locale to determine
1425 whether optimized string load function can be used. Minor cleanups.
1427 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
1429 * string/strcasestr.c (STRCASESTR): New macro.
1430 (__strcasestr): Renamed to ..
1431 (STRCASESTR): ...this.
1432 * string/strstr.c (STRSTR): New macro.
1433 (strstr): Renamed to ..
1435 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1436 strstr-c strcasestr-c
1437 (CFLAGS-strstr.c): New.
1438 (CFLAGS-strcasestr.c): Likewise.
1439 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1440 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1441 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1442 * sysdeps/x86_64/multiarch/strstr.c: New file.
1444 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1446 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1447 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1448 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1449 _NL_CTYPE_NONASCII_CASE.
1450 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1452 (ctype_finish): Check whether there are any 8-bit characters outside
1453 the range ASCII has or whether the mapping isn't the same as for
1454 ASCII (±0x20). Set nonascii_case appropriately.
1455 (ctype_output): Add output handler for nonascii_case.
1457 2009-07-17 Ulrich Drepper <drepper@redhat.com>
1459 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1460 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1462 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1465 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1466 0xffff in the EDNS0 record.
1468 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1470 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1471 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1472 is written before the list head update.
1473 Patch by Andreas Schwab <aschwab@redhat.com>.
1475 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1476 Jakub Jelinek <jakub@redhat.com>
1478 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1479 corruption thread-safe.
1481 2009-07-13 Jakub Jelinek <jakub@redhat.com>
1483 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1484 overrides atomic_compare_and_exchange_val_rel, define to
1485 atomic_compare_and_exchange_val_rel by default, otherwise default
1486 to catomic_compare_and_exchange_val_acq.
1487 (catomic_compare_and_exchange_bool_rel): If arch overrides
1488 atomic_compare_and_exchange_bool_rel, define to
1489 atomic_compare_and_exchange_bool_rel by default.
1490 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1491 Use catomic_compare_and_exchange_val_rel instead of
1492 catomic_compare_and_exchange_val_acq.
1494 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1496 * sysdeps/generic/ldsodefs.h: Add prototype for
1497 _dl_higher_prime_number.
1498 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1500 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1501 restoring of ymm registers a bit.
1503 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1505 * sysdeps/x86_64/memcmp.S: New file.
1507 2009-07-15 Ulrich Drepper <drepper@redhat.com>
1509 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1510 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1511 pointers in writable memory.
1513 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1515 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1516 * config.make.in: Add config-cflags-avx entry.
1517 * configure.in: Substitute libc_cv_cc_avx.
1518 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1519 * elf/tst-audit4.c: New file.
1520 * elf/tst-audit5.c: New file.
1521 * elf/tst-auditmod4a.c: New file.
1522 * elf/tst-auditmod4b.c: New file.
1523 * elf/tst-auditmod5a.c: New file.
1524 * elf/tst-auditmod5b.c: New file.
1525 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1527 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1528 (La_x86_64_vector): Likewise.
1529 (La_x86_64_regs): Append lr_vector.
1530 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1531 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1532 saving and restoring SSE registers to ...
1533 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1534 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1536 (_dl_runtime_profile): Use LR_SIZE to allocate space for
1537 La_x86_64_regs. Allocate extra space and jump to memory at
1538 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1539 (save_and_restore_vector_sse): New.
1540 (save_and_restore_vector_avx): Likewise.
1541 (check_avx): Likewise.
1542 (save_and_restore_vector): Likewise.
1543 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1545 * sysdeps/x86_64/link-defines.sym: New file.
1547 2009-07-10 Ulrich Drepper <drepper@redhat.com>
1549 * elf/do-lookup.h: Removed after folding content into...
1550 * elf/dl-lookup.c: ...here.
1552 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1554 2009-07-09 Ulrich Drepper <drepper@redhat.com>
1556 * configure.in: Check for gnu_unique_symbol symbol type.
1557 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1558 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1559 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
1560 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1562 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1563 unique symbol table.
1564 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1565 for first namespace.
1566 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1567 unique symbol hash table.
1568 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1569 * elf/tst-unique1.c: New file.
1570 * elf/tst-unique1mod1.c: New file.
1571 * elf/tst-unique1mod2.c: New file.
1572 * elf/tst-unique2.c: New file.
1573 * elf/tst-unique2mod1.c: New file.
1574 * elf/tst-unique2mod2.c: New file.
1576 2009-07-07 Ulrich Drepper <drepper@redhat.com>
1578 * elf/elf.h (STB_GNU_UNIQUE): Define.
1580 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
1582 * include/inline-hashtab.h: ...here.
1583 (htab_expand): Adjust for renamed function. Correct memory handling.
1585 2009-07-06 Ulrich Drepper <drepper@redhat.com>
1587 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1589 2009-07-03 Andreas Schwab <aschwab@redhat.com>
1591 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1592 (PPC_FEATURE_HAS_VSX): Likewise.
1594 2009-07-03 Ulrich Drepper <drepper@redhat.com>
1596 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1597 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1599 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1600 aligned to 16 byte boundaries.
1601 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1602 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1603 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1605 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
1607 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1608 * config.make.in (config-cflags-sse4): New variable.
1609 * configure.in: Substitute libc_cv_cc_sse4.
1610 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1612 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1613 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1614 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1615 * sysdeps/x86_64/multiarch/strcspn.S: New file.
1616 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1617 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1618 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1619 * sysdeps/x86_64/multiarch/strspn.S: New file.
1621 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
1623 * elf/Makefile (distribute): Remove tst-audit.sh. Add
1624 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1625 (tests): Add tst-audit3 for x86_64.
1626 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1627 ($(objpfx)tst-audit3): Define.
1628 ($(objpfx)tst-audit3.out): Define.
1629 (tst-audit3-ENV): Define.
1630 * elf/tst-audit3.c: New file.
1631 * elf/tst-auditmod3a.c: New file.
1632 * elf/tst-auditmod3b.c: New file.
1633 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1636 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
1637 (__stpncpy): Renamed to ...
1639 (stpncpy): Create alias only if STPNCPY is not defined.
1640 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
1642 (strncpy): Renamed to ...
1644 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1645 stpncpy-c strncpy-c for string.
1646 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1647 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1648 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1649 * sysdeps/x86_64/multiarch/strcpy.S: New file.
1650 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1651 * sysdeps/x86_64/multiarch/strncpy.S: New file.
1653 2009-07-02 Ulrich Drepper <drepper@redhat.com>
1655 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1656 adding to fast bin list.
1658 2009-07-01 Ulrich Drepper <drepper@redhat.com>
1660 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1661 inet_makeaddr. This worked only with class-based networks.
1662 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1665 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1666 recognize all types.
1667 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1668 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
1669 be in host byte order.
1671 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1673 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1674 (MODEL_OFFSET): Define.
1675 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1677 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1678 out common code into new function get_common_indeces. Determine
1679 extended family and model for Intel processors.
1681 2009-06-26 Ulrich Drepper <drepper@redhat.com>
1683 * resolv/resolv.h: Define RES_SNGLKUPREOP.
1684 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1686 * resolv/res_send.c (reopen): New function. Broken out of...
1687 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
1688 fallback mechanism. If single-request fails switch to
1689 single-request-reopen mode which opens a new socket for the second
1692 2009-06-25 Andreas Schwab <aschwab@redhat.com>
1694 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1697 2009-06-24 Andreas Schwab <aschwab@redhat.com>
1699 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1700 for saved registers.
1701 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1702 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1703 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1705 2009-06-23 Andreas Schwab <aschwab@redhat.com>
1707 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1709 2009-06-22 Ulrich Drepper <drepper@redhat.com>
1711 * po/id.po: Update from translation team.
1713 * po/bg.po: Update from translation team.
1715 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
1717 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
1719 (strncmp): Renamed to STRNCMP.
1720 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1721 strncmp-c for string.
1722 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1723 * sysdeps/x86_64/multiarch/strcmp.S: New file.
1724 * sysdeps/x86_64/multiarch/strncmp.S: New file.
1725 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1727 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
1729 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1730 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1731 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1732 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1733 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1735 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1736 ifuncmain7static, and ifuncmain7picstatic.
1737 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1738 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1739 $(objpfx)ifuncmain7pie.out.
1740 (modules-names): Add ifuncmod5 ifuncmod6
1741 (ifuncmod5.so-no-z-defs): Define.
1742 (ifuncmod6.so-no-z-defs): Define.
1743 (CFLAGS-ifuncmain5pic.c): Define.
1744 (CFLAGS-ifuncmain5picstatic.c): Define.
1745 (CFLAGS-ifuncmain5staticpic.c): Define.
1746 (CFLAGS-ifuncdep5pic.c): Define.
1747 (CFLAGS-ifuncmain7pic.c): Define.
1748 (CFLAGS-ifuncmain7picstatic.c): Define.
1749 (CFLAGS-ifuncmain1staticpie.c): Define.
1750 (CFLAGS-ifuncmain5pie.c): Define.
1751 (CFLAGS-ifuncmain6pie.c): Define.
1752 (CFLAGS-ifuncmain7pie.c): Define.
1753 ($(objpfx)ifuncmain1staticpie.out): Define.
1754 ($(objpfx)ifuncmain1staticpie): Define.
1755 ($(objpfx)ifuncmain5pie.out): Define.
1756 ($(objpfx)ifuncmain5pie): Define.
1757 ($(objpfx)ifuncmain6pie.out): Define.
1758 ($(objpfx)ifuncmain6pie): Define.
1759 ($(objpfx)ifuncmain5): Define.
1760 ($(objpfx)ifuncmain5pic): Define.
1761 ($(objpfx)ifuncmain5static): Define.
1762 ($(objpfx)ifuncmain5staticpic): Define.
1763 ($(objpfx)ifuncmain5picstatic): Define.
1764 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1765 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1767 * elf/b/elf/ifuncmain1staticpie.c: New file.
1768 * elf/ifuncdep5.c: New file.
1769 * elf/ifuncdep5pic.c: New file.
1770 * elf/ifuncmain5.c: New file.
1771 * elf/ifuncmain5pic.c: New file.
1772 * elf/ifuncmain5picstatic.c: New file.
1773 * elf/ifuncmain5pie.c: New file.
1774 * elf/ifuncmain5static.c: New file.
1775 * elf/ifuncmain5staticpic.c: New file.
1776 * elf/ifuncmain6pie.c: New file.
1777 * elf/ifuncmain7.c: New file.
1778 * elf/ifuncmain7pic.c: New file.
1779 * elf/ifuncmain7picstatic.c: New file.
1780 * elf/ifuncmain7pie.c: New file.
1781 * elf/ifuncmain7static.c: New file.
1782 * elf/ifuncmod5.c: New file.
1783 * elf/ifuncmod6.c: New file.
1785 2009-06-20 Ulrich Drepper <drepper@redhat.com>
1788 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1789 (nss_endgrent): New variable.
1790 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1791 fields. Change type of files to bool and adjust all users.
1792 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1793 (internal_endgrent): Call nss_endgrent if necessary.
1794 (add_group): New function. Broken out of...
1795 (check_and_add_group): ...here.
1796 (getgrent_next_nss): Remove test that any callback is available.
1797 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1798 callback. If there is no blacklist we can trust the results returned
1799 by the initgroups_dyn callback. In case there is a callback and we
1800 find a group entry for the group ID but it doesn't contain the
1801 correct member, switch to the slow mode and use getgrent_r.
1802 (internal_getgrent_r): When we see a +: entry, determine whether
1803 there is any callback and which we can use the initgroups_dyn
1806 2009-06-18 Ulrich Drepper <drepper@redhat.com>
1808 * malloc/malloc.c (_int_malloc): Add some consistency checks.
1809 (_int_free): Likewise.
1811 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1813 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1814 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1815 and ARPHRD_IEEE802154_PHY.
1817 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1818 relative to generic Linux version.
1820 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1822 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1823 ($(objpfx)ifuncmain1vispie): Likewise.
1825 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1827 * login/Makefile: Build pt_chown as PIE.
1829 2009-06-15 Andreas Schwab <aschwab@redhat.com>
1831 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1833 * elf/sln.c (usage): Likewise.
1834 * malloc/memusage.sh (do_help): Likewise.
1835 * nss/getent.c (more_help): Likewise.
1836 * posix/getconf.c (main): Likewise.
1837 * sunrpc/rpcinfo.c (usage): Likewise.
1838 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1840 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1842 * login/programs/pt_chown.c: Use libcap to drop privileges other than
1844 * login/Makefile: If necessary link pt_chown with -lcap.
1845 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1846 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1848 2009-06-16 Jakub Jelinek <jakub@redhat.com>
1850 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1852 * string/test-memchr.c (do_random_tests): Test very large lengths
1855 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1857 * Makeconfig (+link-pie): Define.
1858 (+prectorS): Define.
1859 (+postctorS): Define.
1860 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1861 * nscd/Makefile ($(objpfx)nscd): Likewise.
1863 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
1866 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1868 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1870 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1872 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1874 * sysdeps/unix/grantpt.c: ...here.
1876 2009-06-15 Ulrich Drepper <drepper@redhat.com>
1878 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1879 chmod if it is necessary.
1882 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1883 when the slave device is in devpts or devfs.
1886 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1889 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1890 of nd_opt_home_agent_info_preference to uint16_t.
1891 Patch by Arnaud Ebalard <arno@natisbad.org>.
1894 * nss/getent.c: Add support for printing gshadow data.
1897 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1898 not just the currently used one and those which follow.
1899 Patch by Joe Landers <jlanders@vmware.com>.
1902 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1903 * libio/Makefile: Run tst-fgetwc with necessary envvar.
1904 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1907 * stdlib/abort.c: Define variable __abort_msg.
1908 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1909 * include/stdlib.h: Declare __abort_msg.
1910 * assert/assert-perr.c: Don't free buffer for message immediately.
1911 Store atomically in __abort_msg and free old buffer if necessary.
1912 * assert/assert.c: Likewise.
1913 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1914 store pointer in __abort_msg, and possibly free old string.
1915 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1917 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1920 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1921 handle leap seconds if they are available.
1922 Patch by Akinori Hattori <hattya@gentoo.org>.
1924 * timezone/tzselect.ksh: Update from tzcode2009i.
1925 * timezone/zdump.c: Likewise.
1926 * timezone/zic.c: Likewise.
1928 * timezone/africa: Update from tzdata2009i.
1929 * timezone/antarctica: Likewise.
1930 * timezone/asia: Likewise.
1931 * timezone/australasia: Likewise.
1932 * timezone/backward: Likewise.
1933 * timezone/etcetera: Likewise.
1934 * timezone/europe: Likewise.
1935 * timezone/factory: Likewise.
1936 * timezone/iso3166.tab: Likewise.
1937 * timezone/leapseconds: Likewise.
1938 * timezone/northamerica: Likewise.
1939 * timezone/pacificnew: Likewise.
1940 * timezone/solar87: Likewise.
1941 * timezone/solar88: Likewise.
1942 * timezone/solar89: Likewise.
1943 * timezone/southamerica: Likewise.
1944 * timezone/systemv: Likewise.
1945 * timezone/yearistype: Likewise.
1946 * timezone/zone.tab: Likewise.
1948 2009-06-15 Jakub Jelinek <jakub@redhat.com>
1950 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1951 STT_GNU_IFUNC symbol or in 8 into type_class.
1953 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1954 instead of Elf64_Addr.
1956 2009-06-14 Ulrich Drepper <drepper@redhat.com>
1958 * po/sv.po: Update from translation team.
1961 * misc/sys/select.h (__NFDBITS): Expression should have type int.
1962 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1963 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
1966 2009-06-12 Ulrich Drepper <drepper@redhat.com>
1968 * Versions.def: Add GLIBC_2.11 for libpthread.
1970 2009-06-11 Ulrich Drepper <drepper@redhat.com>
1972 * resolv/res_send.c (send_dg): Remember we switched to
1973 single-request mode.
1975 2009-06-09 Ulrich Drepper <drepper@redhat.com>
1977 * dlfcn/dlfcn.h: Remove comma at end of enum.
1978 Patch by J.H.M. Dassen <rdassen@redhat.com>.
1980 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1981 parsing mode string.
1983 2009-06-05 Ulrich Drepper <drepper@redhat.com>
1985 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1987 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1989 * sysdeps/x86_64/multiarch/strlen.S: New file.
1990 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1991 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1992 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1995 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1998 2009-06-04 Ulrich Drepper <drepper@redhat.com>
2000 * sysdeps/x86_64/strlen.S: Minor optimizations.
2002 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2004 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2005 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2006 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2007 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2008 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2009 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2010 ifuncmain3.c, ifuncmod3.c,.
2011 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2012 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2013 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2014 ifuncmain4picstatic.
2015 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2016 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2017 ifuncmain3, ifuncmain4.
2018 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2019 $(objpfx)ifuncmain1vispie.out.
2020 (modules-names): Add ifuncmod1 ifuncmod3.
2021 (generated): Add ifuncmain1pie ifuncmain1pie.out
2022 ifuncmain1vispie ifuncmain1vispie.out.
2023 Define rules to build and run the tests.
2024 * elf/ifuncdep1.c: New file.
2025 * elf/ifuncdep1pic.c: New file.
2026 * elf/ifuncdep2.c: New file.
2027 * elf/ifuncdep2pic.c: New file.
2028 * elf/ifuncmain1.c: New file.
2029 * elf/ifuncmain1pic.c: New file.
2030 * elf/ifuncmain1picstatic.c: New file.
2031 * elf/ifuncmain1pie.c: New file.
2032 * elf/ifuncmain1static.c: New file.
2033 * elf/ifuncmain1staticpic.c: New file.
2034 * elf/ifuncmain1vis.c: New file..
2035 * elf/ifuncmain1vispic.c: New file..
2036 * elf/ifuncmain1vispie.c: New file.
2037 * elf/ifuncmain2.c: New file.
2038 * elf/ifuncmain2pic.c: New file.
2039 * elf/ifuncmain2picstatic.c: New file.
2040 * elf/ifuncmain2static.c: New file.
2041 * elf/ifuncmain3.c: New file.
2042 * elf/ifuncmain4.c: New file.
2043 * elf/ifuncmain4picstatic.c: New file.
2044 * elf/ifuncmain4static.c: New file.
2045 * elf/ifuncmod1.c: New file.
2046 * elf/ifuncmod3.c: New file.
2048 2009-06-03 Ulrich Drepper <drepper@redhat.com>
2050 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2052 2009-06-02 Ulrich Drepper <drepper@redhat.com>
2055 * posix/Makefile (routines): Add execvpe.
2056 * posix/Versions: Export execvpe for GLIBC_2.11.
2057 * posix/execvp.c: Now only a wrapper. Move code to...
2058 * posix/execvpe.c: ...here. New file.
2059 * posix/unistd.h: Declare execvpe.
2061 2009-06-01 Ulrich Drepper <drepper@redhat.com>
2063 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2064 for STT_GNU_IFUNC handling for efficiency.
2065 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2067 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2069 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2071 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2073 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2076 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2078 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2080 (__rela_iplt_start): New declaration.
2081 (__rela_iplt_end): Likewise.
2082 (__rel_iplt_start): Likewise.
2083 (__rel_iplt_end): Likewise.
2084 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2085 * elf/elf.h (R_386_IRELATIVE): New macro.
2086 (R_X86_64_IRELATIVE): New macro.
2087 (R_386_NUM): Updated.
2088 (R_X86_64_NUM): Likewise.
2089 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2090 (libc_ifunc_hidden_def): New macro.
2091 * sysdeps/generic/dl-irel.h: New file.
2092 * sysdeps/i386/dl-irel.h: New file.
2093 * sysdeps/x86_64/dl-irel.h: New file.
2094 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2095 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2096 Handle R_386_IRELATIVE.
2097 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2098 (elf_machine_lazy_rela): Likewise.
2099 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2101 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2103 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2105 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2106 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2107 are no differences. If an architecture has bits in CPUID index 1
2108 meaning different things the values for the COMMON_CPUID_INDEX_1
2109 index must not be set.
2110 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2111 (HAS_POPCOUNT): ...this. New macro.
2112 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2113 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2114 to set the value for Intel and AMD architectures.
2115 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2116 INTEL_CPUID_INDEX_1.
2117 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2120 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2122 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2125 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2127 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2128 (__expm1l): Set errno to ERANGE on overflow.
2129 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2130 (__tanl): Set errno to EDOM for ±Inf.
2131 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2132 (__cosl): Set errno to EDOM for ±Inf.
2133 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2134 (__sinl): Set errno to EDOM for ±Inf.
2136 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2138 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2139 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2140 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2142 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2144 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2146 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2148 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2150 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2151 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2152 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2153 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2155 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2156 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2157 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2159 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2160 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2162 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2164 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2165 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2166 is, either do nothing at all if __ASSUME_ACCEPT4, or
2167 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2168 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2169 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2171 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2172 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2173 internal_accept4 in socket directory.
2175 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2177 * sysdeps/ia64/configure.in: New file.
2179 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2182 * sysdeps/ia64/memchr.S: Use speculative load.
2184 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2185 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2188 * sysdeps/i386/__longjmp.S: Add .text.
2189 * sysdeps/x86_64/__longjmp.S: Likewise.
2191 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2193 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2194 __ASSUME_ACCEPT4 for IA-64.
2196 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2198 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2200 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2201 (SOCKOP_accept4): Define.
2203 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2205 Sun approved the change of the license.
2206 * sunrpc/auth_des.c: Replace license text.
2207 * sunrpc/auth_none.c: Likewise.
2208 * sunrpc/auth_unix.c: Likewise.
2209 * sunrpc/authdes_prot.c: Likewise.
2210 * sunrpc/authuxprot.c: Likewise.
2211 * sunrpc/bindrsvprt.c: Likewise.
2212 * sunrpc/clnt_gen.c: Likewise.
2213 * sunrpc/clnt_perr.c: Likewise.
2214 * sunrpc/clnt_raw.c: Likewise.
2215 * sunrpc/clnt_simp.c: Likewise.
2216 * sunrpc/clnt_tcp.c: Likewise.
2217 * sunrpc/clnt_udp.c: Likewise.
2218 * sunrpc/clnt_unix.c: Likewise.
2219 * sunrpc/des_crypt.c: Likewise.
2220 * sunrpc/des_soft.c: Likewise.
2221 * sunrpc/get_myaddr.c: Likewise.
2222 * sunrpc/getrpcport.c: Likewise.
2223 * sunrpc/key_call.c: Likewise.
2224 * sunrpc/key_prot.c: Likewise.
2225 * sunrpc/openchild.c: Likewise.
2226 * sunrpc/pm_getmaps.c: Likewise.
2227 * sunrpc/pm_getport.c: Likewise.
2228 * sunrpc/pmap_clnt.c: Likewise.
2229 * sunrpc/pmap_prot.c: Likewise.
2230 * sunrpc/pmap_prot2.c: Likewise.
2231 * sunrpc/pmap_rmt.c: Likewise.
2232 * sunrpc/rpc/auth.h: Likewise.
2233 * sunrpc/rpc/auth_unix.h: Likewise.
2234 * sunrpc/rpc/clnt.h: Likewise.
2235 * sunrpc/rpc/des_crypt.h: Likewise.
2236 * sunrpc/rpc/key_prot.h: Likewise.
2237 * sunrpc/rpc/netdb.h: Likewise.
2238 * sunrpc/rpc/pmap_clnt.h: Likewise.
2239 * sunrpc/rpc/pmap_prot.h: Likewise.
2240 * sunrpc/rpc/pmap_rmt.h: Likewise.
2241 * sunrpc/rpc/rpc.h: Likewise.
2242 * sunrpc/rpc/rpc_des.h: Likewise.
2243 * sunrpc/rpc/rpc_msg.h: Likewise.
2244 * sunrpc/rpc/svc.h: Likewise.
2245 * sunrpc/rpc/svc_auth.h: Likewise.
2246 * sunrpc/rpc/types.h: Likewise.
2247 * sunrpc/rpc/xdr.h: Likewise.
2248 * sunrpc/rpc_clntout.c: Likewise.
2249 * sunrpc/rpc_cmsg.c: Likewise.
2250 * sunrpc/rpc_common.c: Likewise.
2251 * sunrpc/rpc_cout.c: Likewise.
2252 * sunrpc/rpc_dtable.c: Likewise.
2253 * sunrpc/rpc_hout.c: Likewise.
2254 * sunrpc/rpc_main.c: Likewise.
2255 * sunrpc/rpc_parse.c: Likewise.
2256 * sunrpc/rpc_parse.h: Likewise.
2257 * sunrpc/rpc_prot.c: Likewise.
2258 * sunrpc/rpc_sample.c: Likewise.
2259 * sunrpc/rpc_scan.c: Likewise.
2260 * sunrpc/rpc_scan.h: Likewise.
2261 * sunrpc/rpc_svcout.c: Likewise.
2262 * sunrpc/rpc_tblout.c: Likewise.
2263 * sunrpc/rpc_util.c: Likewise.
2264 * sunrpc/rpc_util.h: Likewise.
2265 * sunrpc/rpcinfo.c: Likewise.
2266 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2267 * sunrpc/rpcsvc/key_prot.x: Likewise.
2268 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2269 * sunrpc/rpcsvc/mount.x: Likewise.
2270 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2271 * sunrpc/rpcsvc/rex.x: Likewise.
2272 * sunrpc/rpcsvc/rstat.x: Likewise.
2273 * sunrpc/rpcsvc/rusers.x: Likewise.
2274 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2275 * sunrpc/rpcsvc/spray.x: Likewise.
2276 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2277 * sunrpc/rtime.c: Likewise.
2278 * sunrpc/svc.c: Likewise.
2279 * sunrpc/svc_auth.c: Likewise.
2280 * sunrpc/svc_authux.c: Likewise.
2281 * sunrpc/svc_raw.c: Likewise.
2282 * sunrpc/svc_run.c: Likewise.
2283 * sunrpc/svc_simple.c: Likewise.
2284 * sunrpc/svc_tcp.c: Likewise.
2285 * sunrpc/svc_udp.c: Likewise.
2286 * sunrpc/svc_unix.c: Likewise.
2287 * sunrpc/svcauth_des.c: Likewise.
2288 * sunrpc/xcrypt.c: Likewise.
2289 * sunrpc/xdr.c: Likewise.
2290 * sunrpc/xdr_array.c: Likewise.
2291 * sunrpc/xdr_float.c: Likewise.
2292 * sunrpc/xdr_mem.c: Likewise.
2293 * sunrpc/xdr_rec.c: Likewise.
2294 * sunrpc/xdr_ref.c: Likewise.
2295 * sunrpc/xdr_sizeof.c: Likewise.
2296 * sunrpc/xdr_stdio.c: Likewise.
2298 * po/da.po: Update from translation team.
2300 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2302 * sysdeps/sh/____longjmp_chk.S: New file.
2303 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2304 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2306 2009-05-18 Jakub Jelinek <jakub@redhat.com>
2307 Ulrich Drepper <drepper@redhat.com>
2309 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2310 (__nscd_cache_search): Assume each entry in the
2311 hash chain needs one hashentry and half of datahead. Use
2312 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2314 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2316 * posix/sys/wait.h: Fix typos. Pretty printing.
2317 * stdlib/stdlib.h: Likewise. Correct comments.
2320 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2322 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2325 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2327 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2328 Use it if we absolutely cannot reach any more correct list elements
2329 because that many do not fit into the currently mapped database.
2331 2009-05-14 Jakub Jelinek <jakub@redhat.com>
2333 * nscd/nscd_helper.c: Include stddef.h.
2334 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2335 in a couple of places. Return NULL if trail is not less than
2336 datasize, don't consider dataheads with length smaller than
2337 offsetof (struct datahead, data) + datalen.
2338 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2339 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2340 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2341 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2342 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2343 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2344 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2346 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2348 (fallocate64): ... to this.
2349 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2351 (fallocate64): ... to this.
2352 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2353 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2354 fallocate64@@GLIBC_2.10.
2355 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2356 fallocate64@@GLIBC_2.11.
2357 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2359 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2360 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2362 * nscd/selinux.c (nscd_avc_destroy): Removed.
2363 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2364 * nscd/nscd.c (termination_handler): Don't call
2367 2009-05-12 Jakub Jelinek <jakub@redhat.com>
2369 * include/atomic.h: Formatting.
2370 (catomic_compare_and_exchange_val_acq): Don't define if already
2371 defined by bits/atomic.h.
2373 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2375 * math/libm-test.inc (expm1_test): Add test for range error.
2377 * Versions.def: Add GLIBC_2.11 for libc.
2378 * debug/Makefile (routines): Add longjmp_chk.
2379 Add rules to build and run tst-longjmp_chk.
2380 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2381 * debug/longjmp_chk.c: New file.
2382 * debug/tst-longjmp_chk.c: New file.
2383 * include/bits/setjmp2.: New file.
2384 * include/stdio.h: Mark __fortify_fail as internal_function.
2385 * setjmp/Makefile (headers): Add bits/setjmp2.h.
2386 * setjmp/bits/setjmp2.h: New file.
2387 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2389 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2391 * sysdeps/i386/____longjmp_chk.S: New file.
2392 * sysdeps/x86_64/____longjmp_chk.S: New file.
2393 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2394 * sysdeps/x86_64/__longjmp.S: Likewise.
2396 * version.h: Bump for 2.11 development.
2398 * elf/check-execstack.c: New file.
2399 * elf/Makefile: Add rules to build and run check-execstack.
2401 2009-05-10 Ulrich Drepper <drepper@redhat.com>
2403 * version.h (VERSION): Bump to 2.10.1.
2405 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2406 compatibility functions.
2407 * nss/getXXent_r.c: Likewise.
2408 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2409 * gshadow/getsgnam_r.c: Likewise.
2410 * gshadow/Version: Remove duplicate entries.
2412 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2413 for recent processor.
2414 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2417 2009-05-09 Ulrich Drepper <drepper@redhat.com>
2419 * version.h (VERSION): Bump for 2.10 release.
2420 * include/features.h (__GLIBC_MINOR__): Bump to 10.
2422 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
2423 same place we add ASFLAGS-config.
2425 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
2428 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2429 or FORMERR and the other NOERROR, don't raise an error.
2431 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
2434 * Makeconfig (+asflags): New variable based upon ASFLAG or
2436 (ASFLAGS): Add override to set ASFLAGS to +asflags.
2437 * config.make.in (asflags-cpu): Add variable based upon
2438 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2441 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2442 recognizes power6 instruction set due to passing -mcpu=power6 from
2443 --with-cpu=power6 when compiling .S files.
2444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2451 2009-05-09 Jakub Jelinek <jakub@redhat.com>
2453 * string/stratcliff.c (do_test): Test for zero length
2454 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2455 at the end of the page.
2457 2009-05-08 Ulrich Drepper <drepper@redhat.com>
2459 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2461 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2464 * po/da.po: Update from translation team.
2466 2009-05-05 Jakub Jelinek <jakub@redhat.com>
2468 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2469 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2471 2009-05-05 Ulrich Drepper <drepper@redhat.com>
2473 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2474 and READ_IMPLIES_EXEC.
2476 2009-05-04 Ulrich Drepper <drepper@redhat.com>
2478 * po/da.po: Update from translation team.
2480 2009-04-29 Jakub Jelinek <jakub@redhat.com>
2482 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2485 2009-04-27 Jakub Jelinek <jakub@redhat.com>
2487 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2488 to MAP_ANON in PROT_NONE mmap64 call.
2489 (open_archive): Likewise.
2490 (file_data_available_p): Use mmap64 instead of mremap.
2491 (enlarge_archive): Likewise. Update head if ah->addr changed.
2492 Attempt to reserve address space after mmap64 region.
2494 2009-04-26 Ulrich Drepper <drepper@redhat.com>
2496 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2497 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2498 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2500 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2501 atanh should set ERANGE.
2504 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2505 result of lookup to make call to implement STT_GNU_IFUNC.
2506 (_dl_profile_fixup): Likewise.
2507 Patch by H.J. Lu <hjl.tools@gmail.com>.
2509 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2512 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2515 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2516 label if it is not used.
2518 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2519 of gmon_hist_hdr and gmon_hdr structures and use them.
2520 * elf/sprof.c: Likewise.
2522 * elf/dl-load.c (open_verify): Add temporary variable to avoid
2525 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2527 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2530 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2531 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2533 (iruserok_af): Use ss_family instead of casts.
2535 * gmon/gmon.c (write_hist): Define real-type variant of
2536 gmon_hist_hdr structure and use it.
2537 (write_gmon): Likewise for gmon_hdr.
2539 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2540 function if we are not going to define it.
2541 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2543 * inet/inet6_option.c (option_alloc): Add temporary variable to
2546 * libio/strfile.h (struct _IO_streambuf): Use correct type and
2547 name of VTable element.
2548 * libio/iovsprintf.c: Avoid casts to avoid warnings.
2549 * libio/iovsscanf.c: Likewise.
2550 * libio/vasprintf.c: Likewise.
2551 * libio/vsnprintf.c: Likewise.
2552 * stdio-common/isoc99_vsscanf.c: Likewise.
2553 * stdlib/strfmon_l.c: Likewise.
2554 * debug/vasprintf_chk.c: Likewise.
2555 * debug/vsnprintf_chk.c: Likewise.
2556 * debug/vsprintf_chk.c: Likewise.
2558 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2561 2009-04-26 Jakub Jelinek <jakub@redhat.com>
2563 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2565 2009-04-25 Ulrich Drepper <drepper@redhat.com>
2567 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2569 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
2570 * sysdeps/i386/fpu/s_tanf.S: Likewise.
2571 * sysdeps/i386/fpu/s_tanl.S: Likewise.
2572 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2573 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2574 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2575 * math/libm-test.inc: Add tests for errno after tan calls with
2578 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2579 errno value vor pow(+-0,neg).
2580 * math/libm-test.inc (pow_test): Add tests for errno value for
2583 * math/w_fmod.c: Also handle x=±Inf as error.
2584 * math/w_fmodf.c: Likewise.
2585 * math/w_fmodl.c: Likewise.
2586 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2589 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
2590 * sysdeps/i386/fpu/s_cosf.S: Likewise.
2591 * sysdeps/i386/fpu/s_cosl.S: Likewise.
2592 * sysdeps/i386/fpu/s_sin.S: Likewise.
2593 * sysdeps/i386/fpu/s_sinf.S: Likewise.
2594 * sysdeps/i386/fpu/s_sinl.S: Likewise.
2595 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2596 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2597 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2598 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2599 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2600 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2601 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2602 * math/libm-test.inc: Add tests for errno after sin/cos calls with
2605 * stdlib/strtod_l.c (round_and_return): We have to set errno to
2606 ERANGE for underflows.
2607 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2609 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2612 * libio/tst-widetext.input: Remove surrogates.
2614 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2616 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2617 for lgamma should set errno to ERANGE, not EDOM.
2618 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2620 2009-04-24 Ulrich Drepper <drepper@redhat.com>
2623 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2626 * locale/programs/locarchive.c (enlarge_archive): Conserve address
2627 space when temporarily mapping the whole content of the old file.
2630 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2633 2009-04-24 Jakub Jelinek <jakub@redhat.com>
2635 * iconvdata/sjis.c (BODY): Don't advance inptr before
2636 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2637 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2640 2009-04-24 Ulrich Drepper <drepper@redhat.com>
2642 * locale/locarchive.h (struct locarhandle): Rename len field to
2643 mmaped and add new reserved field.
2644 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2645 (create_archive): Reserve address space and then map file into it.
2646 (open_archive): Likewise.
2647 (file_data_available_p): New function.
2648 (compare_from_file): New function.
2649 (close_archive): Adjust to member name changes.
2650 (add_locale): Before comparing locale data, check it is mapped.
2651 Otherwise fall back to reading from the file.
2653 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
2655 * stdio-common/psiginfo.c: Include <errno.h>.
2657 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2660 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2661 to get consistency between 32 and 64 bit architectures.
2664 * sysdeps/unix/make-syscalls.sh: Add rule to create target
2665 directory for dummy syscall rules.
2666 Patch by Chris Steinbroner <hesh@pobox.com>.
2668 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
2671 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2674 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2676 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
2677 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2679 2009-04-23 Jakub Jelinek <jakub@redhat.com>
2681 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
2682 data from vector to temporary buffer and call PWRITEV after it
2683 instead of vice versa.
2684 * sysdeps/posix/preadv.c: Fix up comment.
2685 * misc/preadv.c: Likewise.
2686 * misc/preadv64.c: Likewise.
2687 * misc/pwritev.c: Likewise.
2688 * misc/pwritev64.c: Likewise.
2689 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2691 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2693 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2695 * shadow/Makefile (tests): Add tst-shadow.
2696 * shadow/tst-shadow.c: New file.
2699 * gshadow/Makefile: New file.
2700 * gshadow/Versions: New file.
2701 * gshadow/fgetsgent.c: New file.
2702 * gshadow/fgetsgent_r.c: New file.
2703 * gshadow/getsgent.c: New file.
2704 * gshadow/getsgent_r.c: New file.
2705 * gshadow/getsgnam.c: New file.
2706 * gshadow/getsgnam_r.c: New file.
2707 * gshadow/gshadow.h: New file.
2708 * gshadow/putsgent.c: New file.
2709 * gshadow/sgetsgent.c: New file.
2710 * gshadow/sgetsgent_r.c: New file.
2711 * gshadow/tst-gshadow.c: New file.
2712 * include/gshadow.h: New file.
2713 * Makeconfig (all-subdirs): Add gshadow.
2714 * Makefile (installed-headers): Add gshadow/gshadow.h.
2715 * nss/Makefile (databases): Add sgrp.
2716 * nss/Versions: Add gshadow functions as private exports.
2717 * nss/nsswitch.conf: Add gshadow entry.
2718 * nss/sgrp-lookup.c: New file.
2719 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
2720 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2721 * nss/nss_files/files-sgrp.c: New file.
2722 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2723 * sysdeps/unix/sysv/linux/paths.h: Likewise.
2725 2009-04-22 Ulrich Drepper <drepper@redhat.com>
2727 * stdio-common/printf.h: Add missing const to register_printf_modifier.
2728 * stdio-common/reg-modifier.c: Likewise.
2730 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
2732 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2735 2009-04-20 Ulrich Drepper <drepper@redhat.com>
2738 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2739 headers up to 2.6.30.
2741 * po/ca.po: Update from translation team.
2743 2009-04-19 Ulrich Drepper <drepper@redhat.com>
2746 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2747 an object that uses static TLS if the TLS modid is higher than the
2748 reserve we always allocate. At least for multi-threaded code.
2750 2009-04-18 Ulrich Drepper <drepper@redhat.com>
2752 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2753 Numerically stable check for valid width.
2755 * locale/programs/locarchive.c (open_archive): Map the entire file
2756 and not just the administrative data.
2757 (add_locale): When we find a hash sum match compare the content
2760 * malloc/malloc.c (malloc_info): Output address space information.
2762 2009-04-17 Ulrich Drepper <drepper@redhat.com>
2764 * malloc/malloc.c (malloc_info): Also output system memory information.
2766 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2767 architectures have preadv/pwritev in 2.6.30.
2769 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2770 * sysdeps/posix/readv.c: Likewise.
2771 Reported by Markus Armbruster <armbru@redhat.com>.
2773 * malloc/hooks.c (top_check): Force hook value into register.
2775 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2777 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2778 calls to _dl_relocate_object.
2780 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2783 * malloc/malloc.c (force_reg): Define.
2784 (sYSMALLOc): Load hook variable into variable
2785 before test and force into register.
2786 (sYSTRIm): Likewise.
2787 (public_mALLOc): Force hook value into register.
2788 (public_fREe): Likewise.
2789 (public_rEALLOc): Likewise.
2790 (public_mEMALIGn): Likewise.
2791 (public_vALLOc): Likewise.
2792 (public_pVALLOc): Likewise.
2793 (public_cALLOc): Likewise.
2794 (__posix_memalign): Likewise.
2795 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2796 before test and force into register.
2797 * malloc/hooks.c (top_check): Likewise.
2798 (public_sET_STATe): Pretty printing.
2800 * resolv/res_send.c (send_dg): Don't just ignore the result we got
2801 in case we only receive one reply in single-request mode.
2803 2009-04-16 Jakub Jelinek <jakub@redhat.com>
2805 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2806 are dlopened in statically linked program even for __LM_ID_CALLER.
2808 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2810 * resolv/res_send.c (send_dg): Don't switch into single-request
2811 mode if we already are in it.
2813 2009-04-15 Ulrich Drepper <drepper@redhat.com>
2815 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2816 are always at least 4 bytes in the returned line.
2818 2009-04-15 Jakub Jelinek <jakub@redhat.com>
2820 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2821 __libc_use_alloca (8192), if the stack is too small use 512 bytes
2822 instead of 8K. Stop searching in /proc/stat after hitting first
2823 line not starting with cpu.
2824 (next_line): Truncate too long
2825 lines at buffer size * 3/4 instead of pretending there were line
2826 breaks inside of large lines.
2828 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2830 * sysdeps/x86_64/mp_clz_tab.c: New file.
2832 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
2833 Ulrich Drepper <drepper@redhat.com>
2835 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2836 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2837 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2839 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
2841 * sysdeps/sh/libc-tls.c: New file.
2843 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2845 2009-04-14 Roland McGrath <roland@redhat.com>
2847 * elf/elf.h: Add various missing ARM constants, to match binutils.
2849 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2851 Optimizations from GMP.
2852 * sysdeps/x86_64/add_n.S: New file.
2853 * sysdeps/x86_64/addmul_1.S: New file.
2854 * sysdeps/x86_64/lshift.S: New file.
2855 * sysdeps/x86_64/mul_1.S: New file.
2856 * sysdeps/x86_64/rshift.S: New file.
2857 * sysdeps/x86_64/sub_n.S: New file.
2858 * sysdeps/x86_64/submul_1.S: New file.
2860 2009-04-14 Jakub Jelinek <jakub@redhat.com>
2862 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2863 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2864 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2865 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2867 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2869 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2872 2009-04-13 Ulrich Drepper <drepper@redhat.com>
2874 * sysdeps/x86-64/strrchr.S: New file.
2876 2009-04-10 Ulrich Drepper <drepper@redhat.com>
2878 * stdio-common/printf.h (struct printf_info): Add user element.
2879 New types printf_arginfo_size_function, printf_va_arg_function.
2880 Declare register_printf_specifier, register_printf_modifier,
2881 register_printf_type.
2882 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2883 (union printf_arg): Add pa_user element.
2884 Adjust __printf_arginfo_table type.
2885 Add __printf_va_arg_table, __printf_modifier_table,
2886 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2888 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2889 If registered arginfo call failed try normal specifier.
2890 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2892 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2893 * stdio-common/Versions: Export register_printf_modifier,
2894 register_printf_type, and register_printf_specifier for GLIBC_2.10.
2895 * stdio-common/reg-modifier.c: New file.
2896 * stdio-common/reg-type.c: New file.
2897 * stdio-common/reg-printf.c (__register_printf_specifier): New
2898 function. Mostly the old __register_printf_function function but
2899 uses locking and type of third parameter changed.
2900 (__register_printf_function): Implement using
2901 __register_printf_specifier.
2902 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2903 calls to arginfo functions. Allocate enough memory for user-defined
2904 types. Call new va_arg functions to get user-defined types.
2905 Try installed handlers even for existing format specifiers first.
2907 2009-04-09 Ulrich Drepper <drepper@redhat.com>
2909 * sysdeps/x86_64/rawmemchr.S: New file.
2911 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2912 Simplified code and possible copy problem fixed.
2914 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2915 function if it is not defined. Add some necessary casts.
2916 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2918 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2919 have preadv/pwritev in 2.6.30.
2921 2009-04-08 Ulrich Drepper <drepper@redhat.com>
2923 * malloc/malloc.c (malloc_info): New function.
2924 * malloc/malloc.h: Declare it.
2925 * malloc/Versions: Export malloc_info for GLIBC_2.10.
2927 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2930 * malloc/malloc.c (_int_realloc): Add parameter with old block
2931 size. Remove duplicated test. Don't handle mmap'ed blocks here.
2933 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2935 2009-04-07 Ulrich Drepper <drepper@redhat.com>
2937 * sysdeps/x86_64/strchrnul.S: New file.
2939 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2940 depending libcrypt on -lfreebl3.
2942 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2943 preadv/pwritev in 2.6.30.
2945 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2946 instead of __strcasecmp.
2948 * string/stratcliff.c (do_test): Add memchr tests..
2949 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2950 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2951 first read quad word.
2953 2009-04-06 Ulrich Drepper <drepper@redhat.com>
2955 * string/strverscmp.c (__strverscmp): Fix last cleanups.
2956 * string/tst-svc.input: Add new test case.
2957 * string/tst-svc.expect: Adjust.
2958 * string/Makefile: Don't ignore tst-svc error.
2960 * sysdeps/x86_64/memchr.S: New file.
2962 * resolv/resolv.h (RES_SNGLKUP): Define.
2963 * resolv/res_init.c (res_setoptions): Recognize single-request option.
2964 * resolv/res_send.c (send_dg): If we sent two requests at once and
2965 only get one reply before timeout switch to mode where we send the
2966 second request only after the first answer has been received.
2968 2009-04-05 Ulrich Drepper <drepper@redhat.com>
2970 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2971 * sysdeps/x86_64/strchr.S: Likewise.
2973 2009-04-03 Ulrich Drepper <drepper@redhat.com>
2975 * configure.in: We need to test for the compiler earlier.
2977 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2978 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2980 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2981 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2983 * misc/preadv.c: New file.
2984 * misc/preadv64.c: New file.
2985 * misc/pwritev.c: New file.
2986 * misc/pwritev64.c: New file.
2987 * sysdeps/posx/preadv.c: New file.
2988 * sysdeps/posx/preadv64.c: New file.
2989 * sysdeps/posx/pwritev.c: New file.
2990 * sysdeps/posx/pwritev64.c: New file.
2991 * sysdeps/unix/sysv/linux/preadv.c: New file.
2992 * sysdeps/unix/sysv/linux/preadv64.c: New file.
2993 * sysdeps/unix/sysv/linux/pwritev.c: New file.
2994 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2995 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2996 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2998 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3000 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3002 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3003 __ASSUME_COMPLETE_READV_WRITEV.
3004 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3005 with modern kernels.
3006 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3008 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3009 to free a possible malloced buffer in case of cancellation.
3010 * sysdeps/posix/writev.c: Likewise for write.
3012 2009-04-02 Ulrich Drepper <drepper@redhat.com>
3014 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3016 * configure.in: Recognize --enable-nss-crypt.
3017 * config.make.in: Add nss-crypt entry.
3018 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3019 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3020 and include path for NSS directory to compiler for md5-crypt,
3021 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3022 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3023 function implementation, use NSS. Introduce wrappers around the
3024 hash function calls. Little code size optimization.
3025 * crypt/sha256-crypt.c: Likewise.
3026 * crypt/sha512-crypt.c: Likewise.
3027 * scripts/check-local-headers.sh: Ignore nss3 directory.
3029 * configure.in: Rename pic_default to libc_cv_pic_default.
3030 * config.make.in: Likewise.
3032 2009-04-01 Roland McGrath <roland@redhat.com>
3034 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3035 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3036 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3037 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3038 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3039 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3040 (R_SPARC_NUM): Update.
3041 From Dave Miller <davem@davemloft.net>.
3043 2009-04-01 Ulrich Drepper <drepper@redhat.com>
3045 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3047 2009-03-31 Ulrich Drepper <drepper@redhat.com>
3049 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3050 those which are used.
3051 * elf/dl-addr.c: Likewise.
3052 * elf/dl-caller.c: Likewise.
3053 * elf/dl-fini.c: Likewise.
3054 * elf/dl-iteratephdr.c: Likewise.
3055 * elf/dl-libc.c: Likewise.
3056 * elf/dl-load.c: Likewise.
3057 * elf/dl-support.c: Likewise.
3058 * elf/dl-sym.c: Likewise.
3059 * elf/rtld.c: Likewise.
3060 * sysdeps/generic/ldsodefs.h: Likewise.
3062 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3063 * elf/dl-minimal.c: Likewise.
3064 * elf/dl-misc.c: Likewise.
3065 * elf/rtld.c: Likewise.
3066 * sysdeps/generic/ldsodefs.h: Likewise.
3068 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3070 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3071 Avoid reuse of complex expression.
3073 * po/fr.po: Update from translation team.
3075 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3077 * include/dirent.h: Yet more changes to match sort function type
3079 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3080 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3081 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3083 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3085 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3087 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3089 * nscd/connections.c (restart): Try to preserve the process name
3090 by reading the /proc/self/exe symlink and using the return name.
3091 Patch by Jeff Bastian <jbastian@redhat.com>.
3093 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3096 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3097 if we are not loading a new audit library.
3098 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3099 Only use profiling trampoline for auditing if we are not relocating
3101 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3102 * elf/rtld.c: Likewise.
3103 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3105 * elf/rtld.c (dl_main): Extend help message for --audit option.
3108 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3109 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3110 * dirent/alphasort.c: Adjust implementation to type change.
3111 * dirent/alphasort64.c: Likewise.
3112 * dirent/scandir.c: Likewise.
3113 * dirent/versionsort.c: Likewise.
3114 * dirent/versionsort64.c: Likewise.
3115 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3117 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3121 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3122 correctly. Set segleft member in output as required.
3123 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3124 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3127 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3128 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3129 * inet/Makefile (tests): Add tst-inet6_rth.
3130 * inet/tst-inet6_rth.c: New file.
3133 * string/strlen.c (strlen): Fix omission in the expression to test
3136 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3138 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3140 * elf/dl-runtime.c (reloc_offset): Define.
3141 (reloc_index): Define.
3142 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3143 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3144 computing index from reloc_offset.
3145 (_dl_call_pltexit): Likewise.
3146 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3147 the relocation index to _dl_fixup.
3148 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3150 * sysdeps/x86_64/dl-runtime.c: New file.
3153 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3154 alignment of La_x86_64_regs. Store xmm parameters.
3155 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3158 * string/strverscmp.c (__strverscmp): Fix case of different digits
3159 in fractional part of string.
3160 Patch by Jingyu Liu <jyliu@fortinet.com>.
3161 * string/Makefile (tests): Add tst-svc2.
3162 * string/tst-svc2.c: New file.
3164 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3166 * locale/iso-639.def: Add Min Nan.
3168 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3171 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3173 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3175 * elf/dl-sysdep.c (auxvars): Compress data structure.
3177 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3178 STT_GNU_IFUNC handling.
3179 (elf_machine_rela): Likewise.
3181 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3183 * config.h.in (USE_MULTIARCH): Define.
3184 * configure.in: Handle --enable-multi-arch.
3185 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3186 (_dl_fixup_profile): Likewise.
3187 * elf/do-lookup.c (dl_lookup_x): Likewise.
3188 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3189 * elf/elf.h (STT_GNU_IFUNC): Define.
3190 * include/libc-symbols.h (libc_ifunc): Define.
3191 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3192 framework in init-arch.h to get CPUID values.
3193 * sysdeps/x86_64/multiarch/Makefile: New file.
3194 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3195 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3196 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3198 * config.make.in (experimental-malloc): Define.
3199 * configure.in: Handle --enable-experimental-malloc.
3200 * malloc/Makefile: Handle experimental-malloc flag.
3201 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3202 * malloc/arena.c: Likewise.
3203 * malloc/hooks.c: Likewise.
3204 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3206 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3208 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3209 prediction. A few size optimizations.
3211 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3213 * time/tzset.c: Optimize a bit for size.
3215 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3217 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3218 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3220 * elf/sprof.c: Avoid warning about multi-line comment.
3222 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3224 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3226 * time/tst-posixtz.c: Add tests for quoted timezone names.
3228 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3230 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3231 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3232 200809L instead of 200112L.
3233 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3234 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3236 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3237 instead of __quick_exit_funcs to __run_exit_handlers.
3238 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3239 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3240 (__cxa_at_quick_exit): Remove attribute_hidden.
3241 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3242 to __run_exit_handlers.
3243 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3246 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3248 * po/id.po: Update from translation team.
3250 2009-02-18 Jakub Jelinek <jakub@redhat.com>
3252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3253 .machine push; .machine "power6" and .machine pop around mtfsf
3254 insns outside of _ARCH_PWR6 define.
3255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3260 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3261 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3262 relax_fenv_state): Likewise.
3264 2009-03-08 Ulrich Drepper <drepper@redhat.com>
3266 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3268 (static-only-routines): Add at_quick_exit.
3269 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3271 * stdlib/quick_exit.c: New file.
3272 * stdlib/at_quick_exit.c: New file.
3273 * stdlib/cxa_at_quick_exit.c: New file.
3274 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3276 (__internal_atexit): New function.
3277 (__new_exitfn): Now takes parameter to point to the list to use.
3278 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3279 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3280 (exit): ...here. Just call __run_exit_handlers appropriately.
3281 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3282 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3283 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3284 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3286 * po/id.po: Update from translation team.
3288 2009-03-07 Ulrich Drepper <drepper@redhat.com>
3290 * po/ru.po: Update from translation team.
3292 2009-03-04 Ulrich Drepper <drepper@redhat.com>
3294 * po/nl.po: Update from translation team.
3296 2009-03-03 Ulrich Drepper <drepper@redhat.com>
3298 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3299 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3300 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3301 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3302 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3303 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3304 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3306 * po/pl.po: Update from translation team.
3308 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3311 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3312 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3313 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3314 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3315 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3316 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3317 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3319 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3320 Add fallocate and fallocate64.
3322 * io/fcntl.h: Pretty printing.
3324 2009-03-02 Richard Guenther <rguenther@suse.de>
3326 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3327 attribute also for non-C99 inline semantics variant.
3329 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3331 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3332 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3333 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3334 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3340 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3342 * po/cs.po: Update from translation team.
3344 2009-02-28 Ulrich Drepper <drepper@redhat.com>
3346 * po/bg.po: Update from translation team.
3347 * po/sv.po: Likewise.
3348 * po/fi.po: Likewise.
3349 * po/vi.po: Likewise.
3351 2009-02-27 Roland McGrath <roland@redhat.com>
3353 * Makeconfig (%.v.i): Depend on Makeconfig.
3354 Exclude % lines from initial #-comment removal.
3356 2009-02-27 Ulrich Drepper <drepper@redhat.com>
3358 * po/ko.po: Update from translation team.
3360 2009-02-26 Roland McGrath <roland@redhat.com>
3362 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3363 avoids unused warning.
3365 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
3366 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3368 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3369 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3370 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3371 and asm/user.h. Include asm/ptrace.h.
3372 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3373 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3374 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3376 (start_thread): Don't undefine.
3377 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3380 2009-02-26 Ulrich Drepper <drepper@redhat.com>
3382 * wctype/wctype.h: The *_l functions are in POSIX 2008.
3383 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3384 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3385 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3386 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3388 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3389 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3390 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3391 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3392 _SC_THREAD_ROBUST_PRIO_PROTECT.
3393 * posix/unistd.h: fexecve is in POSIX 2008.
3394 * time/time.h: strftime_l is in POSIX 2008.
3395 * io/sys/stat.h: futimens is in POSIX 2008.
3396 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3397 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3398 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3399 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3400 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3401 open_memstream, and vdprintf are in POSIX 2008.
3403 2009-02-25 Ulrich Drepper <drepper@redhat.com>
3405 * include/features.h: Define macros for XPG7/POSIX 2008.
3406 * ctype/ctype.h: The *_l functions are in POSIX 2008.
3407 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3409 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3410 * locale/xlocale.h: Define locale_t type.
3411 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3412 in POSIX 2008. Don't define locale_t here.
3413 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3414 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3415 UTIME_OMIT only with __USE_ATFILE.
3416 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3417 * stdio-common/psiginfo.c: New file.
3418 * stdio-common/psiginfo-data.h: New file.
3419 * stdio-common/psiginfo-define.h: New file.
3420 * stdio-common/Makefile (routines): Add psiginfo.
3421 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3422 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3423 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3424 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3425 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3426 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3427 * io/sys/stat.h: Move mknodat definition into same conditional as
3429 * time/sys/time.h: futimesat is not among the functions accepted
3430 into the POSIX standard.
3432 * include/features.h: If no feature selection given and we select
3433 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3434 * posix/Versions: Export __posix_getopt.
3435 * posix/getopt.c (_getopt_initialize): Take additional parameter.
3436 Use it to alternatively initialize __posixly_correct.
3437 (_getopt_internal_r): Take addition parameter. Pass on to
3439 (_getopt_internal): Take addition parameter. Pass on to
3441 (getopt): Pass additional zero to _getopt_internal.
3442 (__posix_getopt): New function.
3443 * posix/getopt.h: Add redirection for getopt.
3444 * posix/getopt1.c (getopt_long): Pass additional zero to
3446 (getopt_long_only): Likewise.
3447 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3448 (_getopt_long_only_r): Likewise.
3449 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3452 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3454 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3455 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3456 * sysdeps/posix/sysconf.c (__sysconf): Handle
3457 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3458 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3460 2009-02-24 Roland McGrath <roland@redhat.com>
3463 * README.template: Reworded not to use substituted version number.
3465 * README: ... here (no longer generated).
3466 * Makefile (README): Target removed.
3468 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3470 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3471 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3474 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3476 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3478 2009-02-22 Ulrich Drepper <drepper@redhat.com>
3480 * po/bg.po: Update from translation team.
3482 2009-02-16 Jakub Jelinek <jakub@redhat.com>
3484 * stdlib/monetary.h: Uglify function parameter names.
3485 * sunrpc/rpc/pmap_clnt.h: Likewise.
3486 * sunrpc/rpc/svc.h: Likewise.
3487 * sunrpc/rpc/xdr.h: Likewise.
3488 * sunrpc/rpc/clnt.h: Likewise.
3489 * resolv/netdb.h: Likewise.
3490 * resolv/arpa/nameser.h: Likewise.
3491 * resolv/resolv.h: Likewise.
3492 * argp/argp.h: Likewise.
3493 * locale/langinfo.h: Likewise.
3494 * io/sys/stat.h: Likewise.
3495 * posix/spawn.h: Likewise.
3496 * nis/rpcsvc/nislib.h: Likewise.
3497 * malloc/obstack.h: Likewise.
3498 * sysdeps/ia64/bits/link.h: Likewise.
3499 * sysdeps/i386/bits/link.h: Likewise.
3500 * sysdeps/s390/bits/link.h: Likewise.
3501 * sysdeps/powerpc/bits/link.h: Likewise.
3502 * sysdeps/x86_64/bits/link.h: Likewise.
3503 * sysdeps/sparc/bits/link.h: Likewise.
3504 * sysdeps/sh/bits/link.h: Likewise.
3505 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3506 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3507 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3508 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3510 2008-12-01 Fredrik Unger <fred@tree.se>
3512 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3513 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3514 _FP_UNPACK_RAW_2, fix up first argument.
3516 2009-02-15 Ulrich Drepper <drepper@redhat.com>
3518 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3519 (GET_NPROCS_PARSER): Change parameters and use next_line.
3520 (__get_nprocs): Rewrite to not use stdio routines.
3521 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3522 Change parameters and use next_line.
3524 2009-02-13 Ulrich Drepper <drepper@redhat.com>
3527 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3528 Change mempool_alloc prototype.
3529 * nscd/mem.c (gc): Don't handle mem_in_flight.
3530 (mempool_alloc): Third parameter now only indicates whether this is the
3531 first call (to allocate data) or not. If it is, get db rdlock.
3532 Release it on error. Don't handle mem_in_flight.
3533 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3534 Adjust third parameter of mempool_alloc calls.
3535 Nothing to do here in case mempool_alloc fails.
3536 Avoid local variable shadowing parameter. No need to get db rdlock
3537 before calling cache_add.
3538 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
3539 no mem_in_flight array anymore.
3540 * nscd/connections.c: Remove definition and handling of mem_in_flight.
3541 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3542 mempool_alloc calls. Mark he parameter as const. Nothing to do here
3543 in case mempool_alloc fails. No need to get db rdlock before calling
3545 * nscd/hstcache.c (cache_addhst): Likewise.
3546 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3547 * nscd/servicescache.c (cache_addserv): Likewise.
3548 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
3550 2009-02-11 Ulrich Drepper <drepper@redhat.com>
3552 * po/lt.po: Update from translation team.
3554 2009-02-10 Ulrich Drepper <drepper@redhat.com>
3556 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3557 defined, allow additional data to be added using the optional
3558 MORE_ELF_HEADER_DATA macro.
3559 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3560 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3562 2009-02-08 Ulrich Drepper <drepper@redhat.com>
3564 * include/atomic.h: Define catomic_and if not already defined.
3565 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3566 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3568 2009-02-07 Ulrich Drepper <drepper@redhat.com>
3570 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3572 (_int_realloc): Likewise. Third argument is now padded size
3573 All _int_* functions are now static.
3575 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3576 * malloc/arena.c: Likewise.
3577 * include/malloc.h: Remove now unnecessary declarations of the _int_*
3580 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3583 * malloc/malloc.c: Add branch prediction for use of the hooks.
3585 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3587 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3590 * bits/confname.h: Add SUSv7 macros for getconf environments.
3591 * bits/environments.h: Likewise.
3592 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3593 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3594 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3595 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3596 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3597 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3598 * posix/getconf.c: Likewise.
3599 * posix/sysconf.c: Likewise.
3600 * sysdeps/posix/sysconf.c: Likewise.
3601 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3604 2009-01-16 Petr Baudis <pasky@suse.cz>
3607 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3608 even if we currently have zero nscount.
3610 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3613 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3614 the input line is too long.
3616 * po/Makefile (libc.pot): Add f_print as function taking c-format
3619 * debug/xtrace.sh: Unify translatable messages.
3620 * elf/ldd.bash.in: Likewise.
3621 * elf/sprof.c: Likewise.
3622 * locale/programs/locale.c: Likewise.
3623 * malloc/memusage.sh: Likewise.
3624 * nss/getent.c: Likewise.
3626 2009-02-06 Joseph Myers <joseph@codesourcery.com>
3628 * debug/pcprofiledump.c (print_version,
3629 argp_program_version_hook): New function.
3630 * elf/ldconfig.c (more_help): New function.
3632 * elf/sln.c (usage): New function.
3633 (main): Support --help and --version.
3634 * malloc/memusagestat.c (print_version): New function.
3635 (argp_program_version_hook): New variable.
3636 * nscd/nscd.c (more_help): New function.
3638 * posix/getconf.c (main): Send --version output to stdout.
3640 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3641 arguments. All callers changed.
3642 (print_version): New function.
3643 (parseargs): Support --help and --version.
3644 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
3646 (print_version): New function.
3647 (main): Use getopt_long. Support --help and --version.
3648 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3651 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3653 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3654 (update_data): Fix handling of wrapping back
3655 to the beginning of the buffer.
3658 * stdio-common/psignal.c (psignal): Fix test for empty string.
3660 2009-02-05 Ulrich Drepper <drepper@redhat.com>
3662 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3663 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
3664 move _null_auth to .rodata.
3666 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3669 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3671 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3672 today than when the original code was written. Use larger
3673 buffers. This also makes it unnecessary to have stat information,
3674 if this causes extra efforts.
3675 (__opendir): In case O_DIRECTORY works, don't call fstat just for
3678 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
3680 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3682 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3683 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3684 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3685 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3686 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3687 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3689 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3691 * po/ru.po: Update from translation team.
3693 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
3695 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3696 Add _tid slot to maintain consistency with kernel.
3698 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3700 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3701 incomplete characters at end of input buffer.
3702 * libio/Makefile (tests): Add tst-fgetwc.
3703 * libio/tst-fgetwc.c: New file.
3704 * libio/tst-fgetwc.input: New file.
3706 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
3708 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3710 2009-02-02 Ulrich Drepper <drepper@redhat.com>
3713 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3714 *OUTBUFSTART unless the whole output fit into the buffer.
3715 * iconv/Makefile (tests): Add tst-iconv4.
3716 * iconv/tst-iconv4.c: New file.
3718 2009-02-01 Ulrich Drepper <drepper@redhat.com>
3720 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3721 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3723 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
3725 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3726 newer linker scripts.
3728 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3731 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3732 inotify_rm_watch should have type int.
3734 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
3736 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3737 Make aligned_restore_vmx a local symbol.
3738 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3741 2009-01-30 Andreas Jaeger <aj@suse.de>
3743 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3744 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3745 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3746 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3747 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3748 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3749 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3751 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
3754 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3755 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3757 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
3760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3761 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3763 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3765 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
3767 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3768 memcpy instead of memcmp.
3769 (_dl_setup_pointer_guard): Likewise.
3771 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3773 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3774 manipulated brk, use malloc_printerr.
3775 * misc/sbrk.c (__sbrk): Better error handling for nonsense
3778 2009-01-30 Jakub Jelinek <jakub@redhat.com>
3780 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3781 rindex): For C++ add inlines so that they can be recognized as
3783 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3785 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3786 Jakub Jelinek <jakub@redhat.com>
3788 * string/string.h: Define correct C++ prototypes for gcc 4.4.
3789 * wcsmbs/wchar.h: Likewise.
3791 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3793 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3794 (stackinfo_sub_sp): Define.
3796 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3799 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3800 * include/alloca.h (alloca_account): Define.
3801 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3802 (stackinfo_sub_sp): Define.
3804 * nscd/connections.c (nscd_init): If database file access fails
3805 check whether this is due to permission problems and bail in that
3809 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3810 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3812 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3814 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3815 Add "t" to clobber list.
3816 (INTERNAL_SYSCALL_NCS): Likewise.
3818 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3820 * nss/getent.c (print_networks): Don't print comma between aliases.
3822 2009-01-23 Ulrich Drepper <drepper@redhat.com>
3824 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3826 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3828 * misc/Makefile (tests): Add bug-hsearch1.
3829 * misc/bug-hsearch1.c: New file.
3831 2009-01-22 Roland McGrath <roland@redhat.com>
3833 * Makeconfig (%.v.i): Strip trailing # comments,
3834 not only whole-line comments.
3836 2009-01-10 Ulrich Drepper <drepper@redhat.com>
3838 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3839 one parameter. If non-NULL use it to initialize return value.
3840 (_dl_setup_pointer_guard): New function.
3841 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3842 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3843 * elf/rtld.c (security_init): Pass _dl_random to
3844 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
3846 * elf/dl-sysdep.c (_dl_random): New variable.
3847 (_dl_sysdep_start): Handle AT_RANDOM.
3848 (_dl_show_auxv): Likewise.
3849 * elf/dl-support.c (_dl_random): New variable.
3850 (_dl_aux_init): Handle AT_RANDOM.
3851 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3852 to _dl_setup_stack_chk_guard.
3854 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3856 2009-01-10 Roland McGrath <roland@redhat.com>
3858 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3860 2009-01-08 Ulrich Drepper <drepper@redhat.com>
3862 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3865 * nss/nss_files/files-parse.c (strtou32): New function.
3866 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3867 across 32-bit and 64-bit platforms.
3868 (INT_FIELD_MAYBE_NULL): Likewise.
3870 2009-01-08 Jakub Jelinek <jakub@redhat.com>
3873 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3874 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3875 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3878 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
3881 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3882 being NULL also if there are no backreferences.
3883 * posix/rxspencer/tests: Add testcases.
3885 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
3888 * posix/bug-regex17.c: Add testcases.
3889 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3892 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3894 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3895 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3896 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3897 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3899 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3900 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3901 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3902 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3903 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3904 * sysdeps/unix/sysv/linux/s390/Versions: New file.
3906 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
3908 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3909 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3910 re_string_skip_chars, re_string_reconstruct): Likewise.
3911 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3913 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
3915 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3916 adjust the buffer alignment.
3918 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3920 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3921 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3924 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3925 flavor to description only when flavor is not NULL.
3927 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3928 mutex after SIGIO/SIGURG lookup loop.
3930 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3932 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3934 2009-01-03 Ulrich Drepper <drepper@redhat.com>
3936 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3939 2009-01-02 Ulrich Drepper <drepper@redhat.com>
3941 * sysdeps/unix/sysv/linux/kernel-features.h
3942 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3944 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3945 if no output is written.
3947 * version.h: Bump to 2.10 development.
3949 * posix/getconf.c: Update copyright year.
3950 * nss/getent.c: Likewise.
3951 * iconv/iconvconfig.c: Likewise.
3952 * iconv/iconv_prog.c: Likewise.
3953 * elf/ldconfig.c: Likewise.
3954 * catgets/gencat.c: Likewise.
3955 * csu/version.c: Likewise.
3956 * elf/ldd.bash.in: Likewise.
3957 * elf/sprof.c (print_version): Likewise.
3958 * locale/programs/locale.c: Likewise.
3959 * locale/programs/localedef.c: Likewise.
3960 * nscd/nscd.c (print_version): Likewise.
3961 * debug/xtrace.sh: Likewise.
3962 * malloc/memusage.sh: Likewise.
3963 * malloc/mtrace.pl: Likewise.
3964 * debug/catchsegv.sh: Likewise.
3966 2008-12-29 Mike Frysinger <vapier@gentoo.org>
3968 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3971 2008-12-29 Ulrich Drepper <drepper@redhat.com>
3973 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3974 gethostbyname4_r function call succeeded, just leave the loop.
3977 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3979 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3980 * wctype/Makefile (tests): Add bug-wctypeh.
3981 * wctype/bug-wctypeh.c: New file.
3983 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3984 LOCALDOMAIN is defined.
3985 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3987 * sysdeps/x86_64/bits/select.h: New file.
3989 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3991 2008-12-21 Bruno Haible <bruno@clisp.org>
3994 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3995 if no output is written.
3997 2008-12-13 Klaus Dittrich <kladit@arcor.de>
3999 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4000 libc internal symbol __dup2 to avoid access through the PLT.
4002 2008-12-08 Ulrich Drepper <drepper@redhat.com>
4005 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4006 available only for __USE_GNU.
4008 * inet/Makefile (tests): Add tst-getni2.
4009 * inet/tst-getni2.c: New file.
4012 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4013 NULL when NI_NAMEREQD is set.
4014 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4015 * inet/Makefile (tests): Add tst-getni1.
4016 * inet/tst-getni1.c: New file.
4018 2008-12-03 Petr Baudis <pasky@suse.cz>
4021 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4022 instead of prune_lock.
4023 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4024 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4026 2008-12-07 Ulrich Drepper <drepper@redhat.com>
4028 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4031 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4034 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4035 after reading name server list.
4038 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4039 handling for host name aliases.
4041 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4043 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4044 instead of doing things manually.
4046 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4048 * posix/regex_internal.h (build_wcs_upper_buffer):
4049 Return type is reg_error_t.
4051 2008-12-05 Ulrich Drepper <drepper@redhat.com>
4053 * posix/globtest.sh: Use mktemp to create temporary file and
4056 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4058 (__CPU_CLR_S): Likewise.
4059 (__CPU_ISSET_S): Likewise.
4061 2008-12-05 Joseph Myers <joseph@codesourcery.com>
4062 Ulrich Drepper <drepper@redhat.com>
4064 * scripts/firstversion.awk: Use custom comparison function to compare
4066 * scripts/versions.awk: Use sort invocation which can handle
4067 multi-digit sub-version numbers.
4069 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4071 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4072 * locale/iso-639.def: Add Chhattisgarhi entry.
4074 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4076 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4078 (_nss_dns_gethostbyname4_r): Likewise.
4079 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4080 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4081 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4082 the no_data variable.
4084 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4085 information at the correct index.
4087 * socket/sys/socket.h: Declare accept4.
4088 * socket/accept4.c: New file.
4089 * sysdeps/unix/sysv/linux/accept4.c: New file.
4090 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4091 * socket/Makefile (routines): Add accept4.
4092 * socket/Versions: Export accept4 with version GLIBC_2.10.
4093 * socket/paccept.c: Removed.
4094 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4095 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4096 * Versions.def: Define GLIBC_2.10 for libc.
4097 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4099 * nscd/connections.c: Use accept4.
4101 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4103 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4105 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4108 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4110 * stdlib/Makefile (tests): Add tst-unsetenv1.
4111 * stdlib/tst-unsetenv1.c: New file.
4113 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4115 * login/utmp_file.c (file_writable): New variable.
4116 (setutent_file): Don't try to open file for writing.
4117 (pututline_file): Before writing, make descriptor writable if
4120 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4122 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4123 to IPv4 or IPv6 if an interface has been found.
4125 2008-11-26 Roland McGrath <roland@redhat.com>
4127 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4128 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4130 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4131 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4132 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4134 * elf/elf.h (NT_386_IOPERM): New macro.
4135 (NT_PPC_VSX): New macro.
4137 2008-11-25 Roland McGrath <roland@redhat.com>
4139 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4140 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4141 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4142 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4143 Subdirectories moved to ports repository.
4144 * configure.in (base_machine): Remove alpha case.
4146 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4148 * sysdeps/mach/strerror_l.c: New file.
4150 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4153 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4154 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4156 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4157 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4158 (relax_fenv_state): Same as above.
4159 (FPSCR_29): Reserve bit in ISA 2.05.
4160 (FPSCR_NI): Provide define for compat.
4161 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4163 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4165 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4166 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4167 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4168 access to hwcap to account for hwcap size increase to uint64_t.
4169 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4172 (*setcontext): Likewise.
4173 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4178 (*setcontext): dynamically select mtfsf insn based on
4179 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4180 increase to uint64_t.
4181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4182 (*swapcontext): dynamically select mtfsf insn based on
4183 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4184 increase to uint64_t.
4185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4189 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4190 (*setcontext): dynamically select mtfsf insn based on
4191 PPC_FEATURE_HAS_DFP.
4192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4193 (*swapcontext): dynamically select mtfsf insn based on
4194 PPC_FEATURE_HAS_DFP.
4196 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4198 * version.h: Bump for 2.9 release.
4199 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4202 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4203 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4206 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4209 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4210 unknown request types for now.
4212 2008-11-11 Roland McGrath <roland@redhat.com>
4214 * sysdeps/x86_64/configure: New file.
4216 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4217 * configure: Regenerated.
4219 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4221 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4222 correct instruction to remove the stack frame.
4224 2008-11-03 Michael Matz <matz@suse.de>
4226 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4227 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4229 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4231 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4234 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4235 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4236 of the thread variable instead of void *.
4237 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4238 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4239 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4240 __libc_tsd_define arguments.
4241 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4242 __libc_tsd_address arguments. Remove union hack.
4243 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4244 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4245 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4246 Adjust __libc_tsd_{set,get} arguments.
4247 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4248 __libc_tsd_define arguments.
4249 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4251 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4252 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4253 (LOCALE): Adjust __libc_tsd_define arguments.
4254 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4256 (LOCALE): Adjust __libc_tsd_define arguments.
4257 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4259 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4262 2008-11-02 Ulrich Drepper <drepper@redhat.com>
4264 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4265 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4267 2008-11-01 Ulrich Drepper <drepper@redhat.com>
4270 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4272 2008-10-24 Joseph Myers <joseph@codesourcery.com>
4273 Ulrich Drepper <drepper@redhat.com>
4275 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4276 definition for GCC 3.1 and later.
4278 2008-10-31 Jakub Jelinek <jakub@redhat.com>
4280 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4281 refetch dtv, as it might have changed.
4282 * elf/Makefile: Add rules to build and run tst-tls18.
4283 * elf/tst-tls18.c: New test.
4284 * elf/tst-tlsmod18a.c: New file.
4286 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
4289 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4291 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4294 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4297 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4298 Fix length of copy operation.
4300 2008-10-02 Pierre Habouzit <madcoder@debian.org>
4302 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4303 and fix its calling convention.
4305 2008-10-07 Andreas Schwab <schwab@suse.de>
4308 * resolv/res_send.c (send_vc): Fix last change.
4309 (send_dg): Align here as well.
4311 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4313 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4314 return value in case rlimit is RLIM_INFINITY.
4317 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4319 * resource/Makefile (tests): Add bug-ulimit1.
4320 * resource/bug-ulimit1.c: New file.
4323 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4324 without dot. Properly terminate the string with a null byte.
4325 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4328 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4330 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4334 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4336 2008-10-30 Ulrich Drepper <drepper@redhat.com>
4338 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4339 abort if there is no initgroups_dyn function.
4341 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4342 result if any of the queries really provided an answer.
4344 2008-10-28 Ulrich Drepper <drepper@redhat.com>
4346 * po/lt.po: Update from translation team.
4348 2008-10-26 Ulrich Drepper <drepper@redhat.com>
4350 * po/id.po: Update from translation team.
4352 2008-10-24 Ulrich Drepper <drepper@redhat.com>
4354 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4355 Fix tests for existence of second reply.
4357 2008-10-23 Ulrich Drepper <drepper@redhat.com>
4359 * po/id.po: New file.
4360 Contributed by the Indonesian translation team.
4362 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4364 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4367 2008-10-17 Jakub Jelinek <jakub@redhat.com>
4369 * elf/Makefile: Add rules to build and run tst-tls17.
4370 * elf/tst-tls17.c: New test.
4371 * elf/tst-tlsmod17a.c: New file.
4372 * elf/tst-tlsmod17b.c: Likewise.
4374 2008-10-17 Ulrich Drepper <drepper@redhat.com>
4376 * stdlib/divmod_1.c: Use correct type for dummy variable.
4377 * stdlib/mod_1.c: Likewise.
4379 2008-10-16 Ulrich Drepper <drepper@redhat.com>
4381 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4383 2008-10-16 Jakub Jelinek <jakub@redhat.com>
4385 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4386 __nonnull order for C++.
4387 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4388 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4390 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
4392 * stdlib/longlong.h: Update from GCC.
4394 2008-10-09 Jakub Jelinek <jakub@redhat.com>
4395 David S. Miller <davem@davemloft.net>
4397 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4398 make sure any registers used with 64-bit 'branch-on-register'
4399 instructions have their top 32-bits clear.
4400 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4401 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4403 2008-09-18 Andreas Schwab <schwab@suse.de>
4406 * resolv/res_send.c (send_vc): Fix use of unaligned address.
4407 Properly handle partial reads.
4409 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
4411 * elf/elf.h (STO_MIPS_PLT): New.
4413 (R_MIPS_JUMP_SLOT): New.
4414 (R_MIPS_NUM): Redefine to 128.
4415 (DT_MIPS_PLTGOT): New.
4416 (DT_MIPS_RWPLT): New.
4417 (DT_MIPS_NUM): Redefine to 0x35.
4419 2008-10-01 Ulrich Drepper <drepper@redhat.com>
4421 * timezone/africa: Update from tzdata2008f.
4422 * timezone/asia: Likewise.
4423 * timezone/australasia: Likewise.
4424 * timezone/europe: Likewise.
4425 * timezone/leapseconds: Likewise.
4426 * timezone/northamerica: Likewise.
4427 * timezone/southamerica: Likewise.
4428 * timezone/zone.tab: Likewise.
4430 2008-09-30 Ulrich Drepper <drepper@redhat.com>
4432 * nscd/connections.c: Disable use of paccept for now.
4434 2008-09-29 Ulrich Drepper <drepper@redhat.com>
4436 * socket/Versions: Remove paccept export for GLIBC_2.9.
4437 * socket/Makefile (routines): Remove paccept.
4438 * socket/sys/socket.h: Remove paccept declaration.
4440 * po/sv.po: Update from translation team.
4442 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
4444 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4445 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4447 2008-09-16 Ulrich Drepper <drepper@redhat.com>
4449 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4450 Patch by Olivier Fourdan <ofourdan@redhat.com>.
4452 2008-09-15 Ulrich Drepper <drepper@redhat.com>
4454 * sunrpc/rpc/svc.h: Declare svcfd_create.
4455 Patch by Michael Solberg <msolberg@redhat.com>.
4457 2008-09-12 Flavio Leitner <fleitner@redhat.com>
4458 Ulrich Drepper <drepper@redhat.com>
4460 * malloc/malloc.c (public_vALLOc): Try other arenas in case
4462 (public_pVALLOc): Likewise.
4464 2008-09-02 Andreas Jaeger <aj@suse.de>
4466 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4469 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
4472 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4474 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
4476 * Makefile (check-data): Check data directory in add-ons.
4477 * elf/Makefile (check-data): Likewise.
4479 2008-08-18 Roland McGrath <roland@redhat.com>
4481 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4482 * configure: Regenerated.
4483 * config.make.in (cflags-cpu): New substituted variable.
4484 (with-cpu): Variable removed.
4485 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4487 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
4490 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4491 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4492 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4493 redundant. Functions which call floating point assembler operations
4494 should go into a sysdeps powerpc/fpu directory.
4496 2008-08-15 Ulrich Drepper <drepper@redhat.com>
4498 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4499 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4501 2008-08-14 Ulrich Drepper <drepper@redhat.com>
4503 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4505 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4506 change related to AT_EXECFN. We cannot use that string.
4507 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4509 * elf/dl-support.c: Remove _dl_execfn variable.
4510 (_dl_aux_init): Remove handling of AT_EXECFN.
4511 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4512 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4514 2008-08-13 Ulrich Drepper <drepper@redhat.com>
4517 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4518 byte gets added to writes and seeks from the end use the length of
4519 the buffer and not the currently terminating NUL byte.
4522 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4523 Set to true if locking failed.
4524 (getutid_r_file): Adjust caller.
4525 (pututline_file): Likewise. Return NULL in this case.
4526 Patch mostly by halesh.s@gmail.com.
4528 2008-08-12 Ulrich Drepper <drepper@redhat.com>
4531 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4533 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4535 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
4538 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4539 macro since it is now available in elf/dynamic-link.h.
4541 2008-08-12 Roland McGrath <roland@frob.com>
4543 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4544 in case used outside of libc.
4545 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4547 2008-08-11 Ulrich Drepper <drepper@redhat.com>
4549 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4550 directly instead of going through dn_comp.
4552 2008-08-11 Aurelien Jarno <aurel32@debian.org>
4554 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4555 Fix asm constraints.
4557 2008-08-07 Ulrich Drepper <drepper@redhat.com>
4560 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4561 (IPV6_PMTUDISC_PROBE): Likewise.
4563 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
4566 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4568 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
4569 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4572 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4573 Added the members 'vsx' and 'arch_2_06'.
4574 (_dl_powerpc_platforms): Add the member 'power7'.
4575 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4576 to reflect the changes required by VSX and ISA 2.06.
4577 Modify _DL_PLATFORMS_COUNT to reflect the addition of
4579 Defined PPC_PLATFORM_POWER7.
4580 (_dl_string_platform): Add support for POWER7.
4581 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4582 capability and ISA 2.06.
4584 2008-08-07 Ulrich Drepper <drepper@redhat.com>
4587 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4588 macro to detect use of 128 bit long double.
4589 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4591 2008-08-05 Ulrich Drepper <drepper@redhat.com>
4593 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4596 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4598 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4599 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4601 2008-08-03 Ulrich Drepper <drepper@redhat.com>
4603 * nscd/connections.c (main_loop_poll): Pass a buffer which is
4604 guaranteed to be large enough to read inotify event. Ignore
4605 EAGAIN error. Better error message. Add branch predicition.
4606 (main_loop_epoll): Likewise.
4608 2008-08-02 Roland McGrath <roland@frob.com>
4610 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4611 Add memory clobbers.
4613 2008-08-02 Ulrich Drepper <drepper@redhat.com>
4615 * manual/arith.texi: Avoid @strong{Note:}.
4616 * manual/creature.texi: Likewise.
4617 * manual/filesys.texi: Likewise.
4618 * manual/math.texi: Likewise.
4619 * manual/memory.texi: Likewise.
4620 * manual/resource.texi: Likewise.
4621 * manual/syslog.texi: Likewise.
4622 * manual/time.texi: Likewise.
4624 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4627 2008-08-01 Ulrich Drepper <drepper@redhat.com>
4629 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4630 new epoll_create1 interface.
4631 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4632 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4633 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4635 * include/arpa/nameser.h (NS_GET16): Use const pointer.
4636 (NS_GET32): Likewise.
4638 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4641 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4642 use the AT_EXECFN value if it is no absolute path.
4643 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4646 * Versions.def: Add GLIBC_2.9 to libresolv.
4647 * include/resolv.h: Remove hidden proto declarations for __ns_*
4648 functions. Add them for __dn_count_labels and __p_secstodate.
4649 * include/arpa/nameser.h: Add a number of hidden proto declarations.
4650 Define ns_msg_getflags macro here.
4651 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4653 * resolv/Versions: Export functions from <arpa/nameser.h> from
4654 libresolv in version GLIBC_2.9.
4655 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
4657 * resolv/ns_netint.c: Likewise.
4658 * resolv/ns_parse.c: Likewise.
4659 * resolv/ns_print.c: Likewise.
4660 * resolv/ns_samedomain.c: Likewise.
4661 * resolv/ns_ttl.c: Likewise.
4662 * resolv/arpa/nameser_compat.h: Likewise.
4663 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
4665 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4666 instead of ns_get16.
4667 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4668 __ns_get32 instead of ns_get16 and ns_get32 respectively.
4669 (gaih_getanswer_slice): Likewise.
4670 * resolv/Makefile (libresolv-routines): Add ns_date.
4671 * resolv/ns_date.c: New file.
4673 * elf/Makefile (check-localplt.out): Also check libresolv and
4676 2008-07-31 Ulrich Drepper <drepper@redhat.com>
4678 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4681 2008-07-30 Ulrich Drepper <drepper@redhat.com>
4683 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4684 buffer passed to NSS functions.
4686 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4688 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4691 * misc/syslog.c (openlog_internal): Fix compile problem.
4693 2008-07-28 Roland McGrath <roland@redhat.com>
4695 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4697 2008-07-28 Ulrich Drepper <drepper@redhat.com>
4699 * io/ftw.c (add_object): Remove inline to avoid warning.
4701 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4703 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4704 Use it instead of locally defined resplen2 variable.
4705 (res_nsend): Adjust for __libc_res_nsend interface change.
4706 (send_vc): Initialize *resplen2 if necessary. Read length of
4707 package into an appropriately aligned variable. Store converted length
4708 in new variable and use it appropriately.
4709 Add branch prediction help.
4710 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4711 and pass it on to __libc_res_nsend. Adjust all callers.
4712 (__libc_res_nsearch): Likewise.
4713 (__libc_res_nqeurydomain): Likewise.
4714 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4716 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4717 Define resplen2 variable and pass it to __libc_res_nsearch and then
4719 (getanswer_r): In case of incorrect DNS data don't overread buffer.
4720 Add branch prediction.
4721 (gaih_getanswer_slice): Likewise. Check for invalid data types.
4722 (gaih_getanswer): Don't decode second slice if first one failed due
4723 to a too small buffer. Don't let not found status of second
4724 decoder shadow results of the first.
4725 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4726 and __libc_res_nquery interface changes
4727 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4728 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4729 __libc_res_nsearch, and __libc_res_nsend.
4730 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4732 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4733 __libc_res_nsearch interface changes.
4735 2008-07-27 Ulrich Drepper <drepper@redhat.com>
4737 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4739 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4740 file descriptors with close-on-exec set.
4741 (exec_comm_child): Fix the case where the write end of the pipe is
4742 STDOUT_FILENO already. In case it is, clear close-on-exec.
4744 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4745 * io/pipe2.c: Likewise.
4746 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4747 instead of __ASSUME_PACCEPT.
4748 * include/unistd.h: Declare __have_pipe2.
4749 * libio/iopopen.c: Implement "e" flag.
4750 * libio/Makefile (tests): Add tst-popen1.
4751 * libio/tst-popen1.c: New file.
4753 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4754 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4756 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4759 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4760 success call of _IO_SEEKOFF or calls which failed because the
4761 descriptor is for a pipe.
4763 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4766 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4768 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
4769 F_SETFD use if we know fopen set the flag.
4771 * login/utmp_file.c (setutent_file): Minor optimization in case
4772 O_CLOEXEC is available.
4774 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
4776 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4777 * elf/Makefile: Use pie-ccflag variable.
4778 * nscd/Makefile: Likewise.
4779 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4781 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4784 * Versions.def: Add GLIBC_2.9 version tag for libutil.
4785 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4786 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
4787 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4788 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
4789 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4790 utmp32, utmpx32 and login32.
4791 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4792 versions of struct utmp functions to libc and libutil.
4793 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4794 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4795 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4796 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4797 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4798 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4799 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4800 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4801 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4802 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4803 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4804 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4805 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4806 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4807 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4808 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4809 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4810 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4811 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4812 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4813 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4814 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4816 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4818 * scripts/gen-as-const.awk: Generate more widely usable code by
4819 using 64-bit arithmetic.
4821 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4822 the same treatment as narrow output code in last patch.
4824 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4827 * elf/dl-load.c (local_strdup): Remove inline.
4828 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4829 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4832 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4834 2008-07-25 Ulrich Drepper <drepper@redhat.com>
4836 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4837 the new syscalls, too.
4839 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4840 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4843 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4844 parameter for end of buffer. If temporary copy is too large use
4846 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4848 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
4849 string rewrite when allocating buffer.
4851 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4854 * nscd/connections.c (nscd_init): Clean up fcntl call.
4856 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4857 SOCK_NONBLOCK if possible.
4859 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4860 SOCK_CLOEXEC if available.
4862 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4863 __libc_clntudp_bufcreate_internal.
4864 * include/sys/socket.h: Declare __have_sock_cloexec.
4865 * socket/Makefile (aux): Add have_sock_cloexec.
4866 * socket/have_sock_cloexec.c: New file.
4867 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4868 __libc_clntudp_bufcreate.
4869 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4870 which takes an additional parameter. Create socket with non-blocking
4871 mode and close-on-exec flag set, if wanted.
4872 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4873 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4874 instead of clntudp_create. The socket has already the close-on-exec
4875 flag set if SOCK_CLOEXEC is defined.
4877 2008-07-24 Ulrich Drepper <drepper@redhat.com>
4879 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4880 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4882 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4883 non-blocking mode by using socket, paccept, and inotify_init1.
4885 * Versions.def (glibc): Add GLIBC_2.9.
4886 * io/Makefile (routines): Add dup3 and pipe2.
4887 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4888 * io/dup3.c: New file.
4889 * io/pipe2.c: New file.
4890 * posix/unistd.h: Declare dup3 and pipe2.
4891 * socket/Makefile (routines): Add paccept.
4892 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4893 * socket/paccept.c: New file.
4894 * socket/sys/socket.h: Declare paccept.
4895 * sysdeps/unix/syscalls.list: Add entry for dup3.
4896 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4897 epoll_create2 and inotify_init1.
4898 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4899 * sysdeps/unix/sysv/linux/paccept.c: New file.
4900 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4902 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4903 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4904 inotify_init1, and pipe2 entries.
4905 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4906 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4907 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4908 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4909 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4910 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4912 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4913 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4914 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4915 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4916 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4917 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4918 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4919 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4920 EPOLL_NONBLOCK. Declare epoll_create2.
4921 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4923 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4924 IN_NONBLOCK. Declare inotify_init1.
4925 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4927 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4930 * elf/elf.h: Define AT_EXECFN.
4931 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4933 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4934 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
4935 if __ASSUME_AT_EXECFN is defined.
4936 (_dl_aux_init): Handle AT_EXECFN.
4937 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4939 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4940 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4941 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4942 _dl_execfn if available and avoid compatibility code if
4943 __ASSUME_AT_EXECFN is defined.
4945 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4946 _dl_discover_osversion only for older kernels.
4948 2008-07-22 Roland McGrath <roland@frob.com>
4950 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4952 2008-07-21 Roland McGrath <roland@frob.com>
4954 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4955 returned too much data out of line.
4957 2008-07-20 Ulrich Drepper <drepper@redhat.com>
4959 * locale/setlocale.c (setname): Remove inline to avoid compiler
4963 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4965 2008-07-15 Ulrich Drepper <drepper@redhat.com>
4967 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4968 doesn't manage to write anything, fail.
4970 * malloc/hooks.c (__malloc_check_init): Remove printf.
4972 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4974 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4976 2008-07-12 Ulrich Drepper <drepper@redhat.com>
4978 * nscd/connections.c (main_loop_poll): Fix handling of read errors
4980 (main_loop_epoll): Likewise.
4982 2008-07-09 Ulrich Drepper <drepper@redhat.com>
4984 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4986 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4987 if DEBUG is defined.
4989 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4990 query. Adjust buffer size computation for padding.
4992 2008-07-08 Ulrich Drepper <drepper@redhat.com>
4994 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4995 * stdio-common/tst-setvbuf1.c: New file.
4996 * stdio-common/tst-setvbuf1.expect: New file.
4999 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5000 when selecting fully-buffered stream.
5001 Patch by Wang Xin <wxinee@gmail.com>.
5003 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5005 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5006 (__open_2): New function.
5007 (__open64_2): New alias to __open_2.
5008 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5009 (__openat_2): New function.
5010 (__openat64_2): New alias to __openat_2.
5012 2008-07-06 Ulrich Drepper <drepper@redhat.com>
5015 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5017 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5019 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5020 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5021 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5023 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5024 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5025 * sysdeps/mach/hurd/send.c (__send): Likewise.
5026 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5027 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5029 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5031 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5032 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5033 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5034 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5035 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5036 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5038 2008-06-27 Ulrich Drepper <drepper@redhat.com>
5041 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5043 Patch by Petr Baudis.
5045 2008-06-26 Ulrich Drepper <drepper@redhat.com>
5047 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5048 Patch by Peter Jones <pjones@redhat.com>.
5050 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5053 * stdlib/canonicalize.c (__realpath): readlink can write too much
5054 into the buffer on platforms without PATH_MAX.
5056 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5059 * posix/tst-regex.c (main): Rename to...
5060 (do_test): ... this. Remove cmdline option processing.
5062 (TEST_FUNCTION): Define.
5063 (CMDLINE_OPTIONS): Define.
5065 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5068 * configure.in: Add -Werror to -fstack-protector test to catch
5069 unsupported architectures.
5070 Patch by Gilles Esponasse <g.esp@free.fr>.
5072 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5074 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5075 getcontext returns ENOSYS.
5077 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5079 * nscd/connections.c (main_loop_poll): Fix test for read error.
5080 (main_loop_epoll): Likewise.
5082 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5084 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5085 better place so it is not called when nscd is used.
5087 * nscd/connections.c: Also recognize and handle changes to the
5088 resolver configuration file.
5090 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5092 * time/strftime.c: Pass reference to tzset_called around to handle
5096 * time/strftime.c (__strftime_internal): Call tzset() only
5097 when printing timezone-dependent values.
5098 Based on a patch by Petr Baudis <pasky@suse.cz>.
5100 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5101 unconditionally use second gaih_getanswer_slice result.
5103 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5104 (getaddrinfo): RES must always be non-NULL.
5106 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5108 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5110 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5111 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5113 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5116 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5118 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5120 * nscd/connections.c (inotify_fd): New variable.
5121 (nscd_init): Try to open an inotify descriptor.
5122 If successful, watch files for databases using inotify instead of
5123 having prune threads stat the files.
5124 (nscd_run_prune): Recognize clear_cache flag being set and call
5125 prune_cache appropriately.
5126 (main_loop_poll): Add inotify descriptor to wait set and handle the
5128 (main_loop_epoll): Likewise.
5129 * nscd/cache.c (prune_cache): Don't stat files for databases if
5131 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5132 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5134 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5135 fixed-size portion of the record.
5136 * nscd/servicescache.c (cache_addserv): Likewise.
5137 * nscd/pwdcache.c (cache_addpw): Likewise.
5138 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5140 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5142 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5143 out we don't use uninitialized memory.
5145 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5148 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5150 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5151 ignore T_DNAME messages.
5152 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5154 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5156 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5157 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5159 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5161 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5162 instead of portstr to nscd_getserv_r. Patch by
5163 Roman Kagan <rkagan@mail.ru>.
5165 2008-05-26 Jim Meyering <meyering@redhat.com>
5167 Remove more useless "if" tests before "free".
5168 * include/inline-hashtab.h (htab_delete): Likewise.
5169 * libio/freopen.c (freopen): Likewise.
5170 * libio/freopen64.c (freopen64): Likewise.
5171 * locale/programs/ld-collate.c (collate_read): Likewise.
5172 * misc/fstab.c (libc_freeres_fn): Likewise.
5173 * posix/glob.c (globfree): Likewise.
5175 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5177 * string/Makefile (strop-tests): Add memmem.
5178 * string/test-memmem.c: New file.
5179 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5180 (test_init): Size buf1 according to BUF1PAGES.
5182 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5184 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5185 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5186 (CFLAGS-scanf17.c): New.
5187 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5188 * stdio-common/scanf15.c (main): Likewise.
5189 * stdio-common/scanf16.c: New file.
5190 * stdio-common/scanf17.c: New file.
5192 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5194 * resolv/res_send.c (send_dg): If we already have one of two
5195 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5196 use the one answer insted of failing.
5198 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5200 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5201 being executed on PowerPC as the expected result exceeds IBM
5202 long double 128 __LDBL_MAX__.
5204 2008-05-21 Roland McGrath <roland@redhat.com>
5206 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5208 * Makefile (check-data): Use $(abi-name) before other guesses.
5209 Look in $(add-ons) dirs before scripts/data/.
5210 * elf/Makefile (check-data): Likewise.
5212 * scripts/soversions.awk: Grok ABI line.
5213 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5214 Emit definition for abi-name variable.
5216 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5218 * string/endian.h: Define new fixed-size hto* and *toh macros only
5221 * iconvdata/Depend: Add localedata.
5223 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5225 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5227 2008-05-08 David S. Miller <davem@davemloft.net>
5229 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5231 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5232 (__SYSCALL_CLOBBERS): Remove %g* registers.
5233 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5234 (__SYSCALL_CLOBBERS): Likewise.
5235 * scripts/data/localplt-sparc-linux-gnu.data: New file.
5236 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5238 2008-05-21 Jakub Jelinek <jakub@redhat.com>
5240 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5241 (CALL_ERRNO_LOCATION): Define.
5242 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5243 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5244 (CALL_ERRNO_LOCATION): Define.
5245 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5246 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5247 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5249 2008-05-20 Ulrich Drepper <drepper@redhat.com>
5251 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5254 2008-05-20 Jakub Jelinek <jakub@redhat.com>
5256 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5257 (FIRST_FRAME_POINTER): Define.
5259 2008-05-09 David S. Miller <davem@davemloft.net>
5261 * sysdeps/sparc/sparc64/backtrace.c: New file.
5263 2008-05-14 David S. Miller <davem@davemloft.net>
5265 * sysdeps/sparc/machine-gmon.h: New file.
5266 * sysdeps/sparc/sparc-mcount.S: Likewise.
5267 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5268 sysdep_routines in gmon directory.
5270 2008-05-19 Jakub Jelinek <jakub@redhat.com>
5272 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5274 2008-05-19 Ulrich Drepper <drepper@redhat.com>
5276 * resolv/res_query.c (__libc_res_nquery): In case one of two
5277 answer was too short don't try to read that answer's header.
5279 * resolv/res_send.c (send_dg): In case of timeout and there are
5280 two queries and one has been answered, return value indicating
5283 2008-05-18 Ulrich Drepper <drepper@redhat.com>
5285 * nscd/cache.c (cache_add): Take additional parameter specifying
5286 whether this is in response of a cache refill. Check alignment
5287 of package data. Revamp waking of pruning thread.
5288 (prune_cache): Small optimization.
5289 * nscd/nscd.h: Adjust cache_add prototypes.
5290 * nscd/aicache.c: Adjust cache_add calls.
5291 * nscd/grpcache.c: Likewise.
5292 * nscd/hstcache.c: Likewise.
5293 * nscd/initgrcache.c: Likewise.
5294 * nscd/pwdcache.c: Likewise.
5295 * nscd/servicescache.c: Likewise.
5296 * nscd/connections.c (restart): Really disable cache use before
5297 exec attempt. If it fails, reenable cache.
5298 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5299 time to max to be able to notice concurrent cache additions. Unlock
5300 prune_lock while performing gc. Afterwards compute wakeup time with
5301 current wakeup_time value in mind.
5303 2008-05-17 Ulrich Drepper <drepper@redhat.com>
5305 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5307 * nscd/mem.c (gc): Correctly determine highest used array element
5310 * nscd/mem.c (markrange): Add assert to check entries are all
5311 aligned. Small cleanup in bitmap use.
5313 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5314 blockoff of type nscd_ssize_t.
5315 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5316 (mempoll_alloc): Record block offset and not address.
5318 * nscd/mem.c (gc): Fix test for stack overuse.
5320 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5323 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5324 entry is available, believe it.
5326 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5327 no answers return NSS_STATUS_NOTFOUND.
5328 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5329 buffer does not have any content.
5331 2008-05-16 Ulrich Drepper <drepper@redhat.com>
5333 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5335 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5336 lookup, don't assign canon unconditionally.
5338 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5340 * string/Makefile (distribute): Add str-two-way.h.
5342 2008-03-29 Eric Blake <ebb9@byu.net>
5344 Rewrite string searches to O(n) rather than O(n^2).
5345 * string/str-two-way.h: New file. For linear fixed-allocation
5347 * string/memmem.c: New implementation.
5348 * string/strstr.c: New implementation.
5349 * string/strcasestr.c: New implementation.
5351 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
5353 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5355 (calc_first): Initialize constraint field.
5356 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5357 Use search_duplicated_node to avoid loops. Fix grammar.
5358 (duplicate_node): Merge constraint field for all node types.
5359 (calc_eclosure_iter): Look at constraint field for all node types.
5360 * posix/regex_internal.c (create_cd_newstate): Don't look at
5363 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5366 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5369 * string/endian.h: Add macros for fixed-size endian conversion.
5370 * bits/byteswap.h: Allow inclusion from <endian.h>.
5371 * sysdeps/i386/bits/byteswap.h: Likewise.
5372 * sysdeps/ia64/bits/byteswap.h: Likewise.
5373 * sysdeps/s390/bits/byteswap.h: Likewise.
5374 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5375 * string/Makefile (tests): Add tst-endian.
5376 * string/tst-endian.c: New file.
5378 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5379 Patch by Reuben Thomas.
5381 2008-05-14 Joseph Myers <joseph@codesourcery.com>
5383 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5385 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5387 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5390 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5392 (BODY for __gconv_transform_internal_ascii): Likewise.
5395 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5396 to be treated like link-local addresses.
5397 (match_prefix): Don't treat IPv4 loopback address special when
5398 converting to v4 mapped addressed.
5400 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5402 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5403 * posix/tst-rfc3484-2.c: Likewise.
5404 * posix/tst-rfc3484-3.c: Likewise.
5406 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5409 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5411 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5413 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5415 2008-05-13 Ulrich Drepper <drepper@redhat.com>
5417 * po/lt.po: New file. From Lituanian translation team.
5419 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
5421 Introduce TLS descriptors for i386 and x86_64.
5422 * include/inline-hashtab.h: New file, copied from 2005's
5423 libiberty, with fix for memory leak imported afterwards by
5424 Glauber de Oliveira Costa.
5425 * elf/tlsdeschtab.h: New file.
5426 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5427 (_dl_allocate_static_tls): ... here. Rearrange failure path.
5428 (CHECK_STATIC_TLS): Move to...
5429 * elf/dynamic-link.h: ... this file.
5430 (TRY_STATIC_TLS): New macro.
5431 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5432 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5433 R_386_TLS_DESC): Define.
5434 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5436 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5437 R_X86_64_TLSDESC): Define.
5438 (R_386_NUM, R_X86_64_NUM): Adjust.
5439 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5440 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5441 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5442 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5443 release tlsdesc_table.
5444 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5445 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5446 (elf_machine_rel): Handle R_386_TLS_DESC.
5447 (elf_machine_rela): Likewise.
5448 (elf_machine_lazy_rel): Likewise.
5449 (elf_machine_lazy_rela): Likewise.
5450 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5451 * sysdeps/i386/dl-tlsdesc.S: New file.
5452 * sysdeps/i386/dl-tlsdesc.h: New file.
5453 * sysdeps/i386/tlsdesc.c: New file.
5454 * sysdeps/i386/tlsdesc.sym: New file.
5455 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5457 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5458 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5459 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5460 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5461 release tlsdesc_table.
5462 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5463 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5464 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5465 (elf_machine_rel): Handle R_X86_64_TLSDESC.
5466 (elf_machine_rela): Likewise.
5467 (elf_machine_lazy_rel): Likewise.
5468 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5469 (__tls_get_addr): Do not declare for non-shared compiles.
5470 * sysdeps/x86_64/dl-tlsdesc.S: New file.
5471 * sysdeps/x86_64/dl-tlsdesc.h: New file.
5472 * sysdeps/x86_64/tlsdesc.c: New file.
5473 * sysdeps/x86_64/tlsdesc.sym: New file.
5474 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5475 tlsdesc_table for both 32- and 64-bit structs.
5477 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5479 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5480 its own function. This reduces the frame setup costs and more.
5482 2008-02-11 Joseph Myers <joseph@codesourcery.com>
5485 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5486 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5488 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5490 * io/openat.c (__openat_2): Also pass fd to __openat.
5491 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5492 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5494 * string/tester.c (test_memcmp): Add a few more tests.
5495 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5497 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5499 * nscd/cache.c (cache_add): Before returning with failure and this
5500 is the first use of the record, mark it as unusable.
5501 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5502 reporting a failure.
5503 * nscd/grpcache.c: Likewise
5504 * nscd/hstcache.c: Likewise.
5505 * nscd/initgrcache.c: Likewise.
5506 * nscd/pwdcache.c: Likewise.
5507 * nscd/servicescache.c: Likewise.
5509 2008-05-10 Roland McGrath <roland@redhat.com>
5512 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5514 2008-05-08 David S. Miller <davem@davemloft.net>
5516 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5518 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5519 (__ieee754_y0l): Likewise.
5520 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5521 (__ieee754_y1l): Likewise.
5522 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5523 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5524 frexpl and ldexpl. math_private.h provides them and the latter
5526 (__log1pl): Use __frexpl.
5528 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5530 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5532 * include/arpa/nameser_compat.h: Define T_UNSPEC.
5533 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5534 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5535 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5537 (_nss_nis_gethostbyname4_r): New function.
5538 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5539 Change to also handle af==AF_UNSPEC.
5540 (get_tablename): New function. Use it to avoid duplication.
5541 (_nss_nisplus_gethostbyname4_r): New function.
5542 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5544 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5545 * nss/nss.h: Define struct gaih_addrtuple.
5546 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5548 (_nss_files_gethostbyname4_r): New function.
5549 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5550 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5552 * resolv/res_query.c (__libc_res_nquery): Take two additional
5553 parameters for second answer buffer. Handle type=T_UNSPEC to mean
5554 look up IPv4 and IPv6.
5556 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5557 for an additional query and answer buffer. Pass to send_vc and
5559 (send_vc): Send possibly two requests and receive two answers.
5560 (send_dg): Likewise.
5561 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5563 (_nss_dns_gethostbyname4_r): New function.
5564 (gaih_getanswer_slice): Likewise.
5565 (gaih_getanswer): Likewise.
5566 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5567 __libc_res_nquery call.
5568 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5569 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5570 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5573 2008-05-05 David S. Miller <davem@davemloft.net>
5575 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5576 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5578 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5580 Fix termios bit macros.
5581 Move *DLY definitions where they belong, in termios.h.
5582 Add *[0-3] definitions.
5583 Fixes confusion between VT and FF.
5584 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5585 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5586 are already defined to avoid collision with termios.h.
5587 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5588 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5589 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5590 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5591 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5592 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5593 VTDLY, VT0, VT1): New macros.
5594 [__USE_GNU] (OLCUC): Change value of macro.
5595 [__USE_XOPEN] (OFILL): New macro.
5596 [__USE_BSD] (CRTSCTS): Change value.
5597 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5598 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5599 (B7200, B14400, B28800, B76800): New macros.
5601 2008-05-01 David S. Miller <davem@davemloft.net>
5603 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5604 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5605 (gen-as-const-headers): Add it.
5606 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5607 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5608 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5609 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5611 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5612 six system call parameters.
5613 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5615 2008-04-30 Ulrich Drepper <drepper@redhat.com>
5617 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5619 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5620 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5622 2008-04-30 Jakub Jelinek <jakub@redhat.com>
5624 * stdlib/tst-setcontext.c: Include unistd.h.
5626 2008-04-25 David S. Miller <davem@davemloft.net>
5628 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5629 Pass "union semun" properly in to sys_ipc, it must be passed
5630 by value, not by reference.
5632 2008-04-22 Jakub Jelinek <jakub@redhat.com>
5634 * nscd/Makefile (nscd-cflags): Set back to -fpie.
5635 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5636 * nscd/connections.c (mem_in_flight): Likewise.
5638 * nscd/nscd.h (dbs): Make hidden.
5640 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5641 Avoid returning -1, return 0 instead.
5643 2008-04-19 Ulrich Drepper <drepper@redhat.com>
5645 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5647 2008-04-15 Ulrich Drepper <drepper@redhat.com>
5650 * sysdeps/unix/sysv/linux/times.c: New file.
5653 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5654 mem_in_flight_list variables. Add new parameter to mempool_alloc
5656 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
5657 appropriate mem_in_flight element.
5658 (gc): Take allocations which have not yet been committed to the
5659 database into account.
5660 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5661 Reset mem_in_flight before returning.
5662 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5663 cue it up in mem_in_flight_list.
5664 * nscd/aicache.c: Adjust mempool_alloc call.
5665 * nscd/grpcache.c: Likewise.
5666 * nscd/hstcache.c: Likewise.
5667 * nscd/initgrcache.c: Likewise.
5668 * nscd/pwdcache.c: Likewise.
5669 * nscd/servicescache.c: Likewise.
5670 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5673 * nscd/connections.c (handle_request): Provide better error message
5674 in case SELinux forbids the service.
5676 * version.h (VERSION): Bump to 2.8.90.
5678 2008-04-17 Jakub Jelinek <jakub@redhat.com>
5680 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5682 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5684 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5685 Also use for 32-bit.
5686 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5687 __nextafter instead of nextafter to avoid local PLT.
5688 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5689 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5691 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5693 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5695 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
5696 <fenv_libc.h> instead of <fenv.h>.
5697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5700 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5702 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5703 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5704 function from fegetexcept and make old name weak alias.
5705 * include/fenv.h: Declare __fegetexcept.
5706 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5708 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5709 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5711 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5712 instead of frexpl to avoid local PLT.
5713 * math/s_significandl.c (__significandl): Use __ilogbl instead of
5714 ilogbl to avoid local PLT.
5715 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5716 instead of ldexpl to avoid local PLT.
5717 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5718 __roundl not roundl to avoid local PLT.
5719 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5720 local PLTs. Use __sincosl instead of separate sinl and cosl
5722 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5724 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5725 version for ppc64 to 2.4.21 since without it makecontext will fail.
5727 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5729 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5731 [__powerpc64__] (TLS_GD): Likewise.
5733 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
5736 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5737 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5739 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5740 Likewise. Also account for when x is an odd number between 2^52
5742 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5743 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5744 * math/libm-test.inc (lround_test, llround_test): Added test cases to
5745 detect aforementioned erroneous conditions.
5747 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5749 * configure.in: Check for -fno-section-anchors in addition to
5750 -fno-toplevel-reorder.
5752 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5754 * include/features.h (__GLIBC_MINOR__): Bump to 8.
5756 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5757 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5758 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5759 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5760 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5761 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5763 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5766 * time/era.c: Transform __libc_setlocale_lock into rwlock.
5767 * time/alt_digit.c: Likewise.
5768 * wcsmbs/wcsmbsload.c: Likewise.
5770 2008-04-10 Ulrich Drepper <drepper@redhat.com>
5772 * version.h (VERSION): Bump to 2.8.
5774 * timzeone/asia: Update from tzdata2008b.
5775 * timezone/backward: Likewise.
5776 * timezone/europe: Likewise.
5777 * timezone/northamerica: Likewise.
5778 * timezone/southamerica: Likewise.
5779 * timezone/iso3166.tab: Likewise.
5780 * timezone/leapseconds: Likewise.
5781 * timezone/zone.tab: Likewise.
5782 * timezone/private.h: Update from tzcode2008a.
5783 * timezone/zdump.c: Likewise.
5784 * timezone/zic.c: Likewise.
5786 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5789 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5790 Define additonal Data Cache Block instruction macros.
5791 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5792 Replace dcbst with dcbf and sync with sync/isync.
5794 2008-02-21 Alan Modra <amodra@bigpond.net.au>
5796 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5797 Always set ELF_RTYPE_CLASS_PLT.
5798 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5800 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5802 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5803 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5804 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5805 For ISA 2.01 and later replace mftb with mfspr 268.
5807 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
5810 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5811 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5813 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
5816 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5817 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5818 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5819 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5821 2008-04-10 Jakub Jelinek <jakub@redhat.com>
5823 * stdlib/tst-makecontext.c (othervar): New variable.
5824 (cf): Test sign extending the argument to long.
5826 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
5828 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5829 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5830 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5831 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5832 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5833 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5834 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5836 2008-02-22 Alan Modra <amodra@bigpond.net.au>
5838 * elf/Makefile (tests): Substitute tests-vis-yes here.
5839 (tests-vis-yes): Delete.
5840 (modules-name, modules-vis-yes): Similarly.
5842 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
5845 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5846 Preserve sign in signgamp when x is zero.
5848 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
5850 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5851 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5852 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5853 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5854 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5855 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5857 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5860 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5864 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5865 a reserved error value.
5867 * stdlib/tst-makecontext.c: Change parameter to cf to negative
5868 value to check for correct sign extension.
5871 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5872 Copy 64-bit parameter values even though this is not required in
5875 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5878 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
5880 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5883 2008-04-09 Jakub Jelinek <jakub@redhat.com>
5885 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5887 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5890 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5891 in line-buffered stream failed.
5892 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5894 2008-04-08 Ulrich Drepper <drepper@redhat.com>
5897 * scripts/abi-versions.awk: If the version specified by
5898 --enable-oldest-abi is older than the first version for this
5899 architecture, use the default version.
5901 * locale/programs/ld-collate.c (collate_read): Ignore script lines
5902 as well when ignoring the whole category.
5904 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5907 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5908 ETHERTYPE_* definitions.
5909 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5911 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5913 * stdlib/mbtowc.c (__no_r_state): Remove.
5914 (mbtowc): New static state variable. Use it instead of
5916 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5917 (__wctomb_state): New hidden variable.
5918 (wctomb): Use __wctomb_state instead of __no_r_state.
5919 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5920 (__wctomb_state): New extern decl.
5921 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5923 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5926 * resolv/res_init.c: Handle scope IDs in resolv.conf.
5928 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5930 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5932 2008-04-06 Ulrich Drepper <drepper@redhat.com>
5934 * po/nl.po: Update from translation team.
5936 2008-03-31 Ulrich Drepper <drepper@redhat.com>
5939 * string/strfry.c: Handle empty strings again.
5941 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5944 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5945 before looking for translation.
5946 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5947 * locale/freelocale.c: Likewise.
5948 * locale/newlocale.c: Likewise.
5949 * locale/setlocale.c: Likewise.
5950 Based partially on a patch by ryo@np.css.fujitsu.com.
5952 2008-03-30 Jakub Jelinek <jakub@redhat.com>
5954 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5955 acquiring wrlock. Do conv_tab allocation while holding lock.
5956 * intl/Makefile: Add rules to build and run tst-gettext6.
5957 * intl/tst-gettext6.c: New test.
5958 * intl/tst-gettext6.sh: New file.
5960 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5962 * po/nl.po: Update from translation team.
5964 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5965 provided through st_blksize, try the default size before giving up.
5967 2008-03-29 Ulrich Drepper <drepper@redhat.com>
5969 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5972 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5974 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5975 error message. POSIX today does not require the messages to be in
5976 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
5979 * sunrpc/auth_unix.c: Unify printed strings.
5980 * sunrpc/clnt_tcp.c: Likewise.
5981 * sunrpc/clnt_udp.c: Likewise.
5982 * sunrpc/clnt_unix.c: Likewise.
5983 * sunrpc/svc_tcp.c: Likewise.
5984 * sunrpc/svc_udp.c: Likewise.
5985 * sunrpc/svc_unix.c: Likewise.
5986 * sunrpc/xdr.c: Likewise.
5987 * sunrpc/xdr_array.c: Likewise.
5988 * sunrpc/xdr_rec.c: Likewise.
5989 * sunrpc/xdr_ref.c: Likewise.
5990 * locale/programs/ld-time.c (time_finish): Unify messages.
5991 * locale/programs/locfile.c (handle_copy): Fix typo.
5992 * nscd/nscd.c (options): Fix typo.
5995 * stdlib/strtod_l.c: Use correct sign for result in one more
5997 Patch by Eric Blake <ebb9@byu.net>.
5999 2008-03-27 Jakub Jelinek <jakub@redhat.com>
6001 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6002 and creat system calls.
6003 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6005 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6007 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6008 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6009 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6011 2008-03-27 Ulrich Drepper <drepper@redhat.com>
6013 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6014 <linux/limits.h> has defined it.
6015 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6016 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6018 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6019 it instead of ARG_MAX.
6021 2008-03-25 Jakub Jelinek <jakub@redhat.com>
6023 * posix/gai.conf: Fix comment for scope nullbits.
6024 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6025 default to 128 bits for v4 mapped addresses.
6027 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6029 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6030 ptrace call to get the ieee_instruction_pointer from the kernel.
6031 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6032 ptrace call to set the ieee_instructtion_pointer.
6033 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6034 Add comment that ieee_instruction_pointer is always 0.
6036 2008-03-09 Andreas Jaeger <aj@suse.de>
6039 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6040 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6041 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6043 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6044 (rint_test): Likewise.
6046 2008-03-24 Ulrich Drepper <drepper@redhat.com>
6048 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6050 (__nisfind_server): Similar for open readColdStartFile call.
6051 Patch partially by Jim Meyering.
6052 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6053 around internal_setent call.
6055 * po/vi.po: New Vietnamese translation.
6057 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6060 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6061 remove CLONE_STOPPED.
6063 2008-02-10 Jim Meyering <meyering@redhat.com>
6065 Remove useless "if" before "free":
6066 * elf/ldconfig.c (parse_conf_include): Likewise.
6067 * gmon/gmon.c (weak_alias): Likewise.
6068 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6069 * inet/rcmd.c (__validuser2_sa): Likewise.
6070 * intl/bindtextdom.c (set_binding_values): Likewise.
6071 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6072 * libio/genops.c (save_for_backup): Likewise.
6073 * libio/wgenops.c (save_for_wbackup): Likewise.
6074 * locale/programs/ld-collate.c (collate_read): Likewise.
6075 * locale/programs/linereader.c (get_string): Likewise.
6076 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6077 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6078 * resolv/res_debug.c (do_section): Likewise.
6079 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6080 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6081 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6082 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6083 * time/tzset.c (tzset_internal): Likewise.
6085 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6087 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6090 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6093 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6094 not stream for output file. Open output file here.
6095 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6096 and output file name.
6097 (process_fd): Likewise.
6098 (process_file): Likewise.
6099 (main): Adjust callers of changed functions.
6100 * iconv/iconv_prog.h: Adjust prototype.
6102 2008-03-09 Andreas Jaeger <aj@suse.de>
6105 * sysdeps/ia64/ieee754.h: Use protected namespace
6106 __BIG_ENDIAN/__LITTLE_ENDIAN.
6107 * sysdeps/ieee754/ieee754.h: Likewise.
6108 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6110 2008-03-08 Roland McGrath <roland@frob.com>
6112 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6113 ignore a signal that came from a machine exception, treat it as a
6114 fatal core-dump signal instead.
6115 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6117 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6118 Clear DF bit in thread state's eflags.
6119 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6121 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6124 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6125 of NAN(...) sequence.
6126 * stdlib/Makefile (tests): Add tst-strtod6.
6127 * stdlib/tst-strtod6.c: New file.
6129 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6132 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6133 putting offending option character in quotes. Clean up error
6135 * po/be.po: Adjust msgstr in translation file.
6136 * po/bg.po: Likewise.
6137 * po/ca.po: Likewise.
6138 * po/cs.po: Likewise.
6139 * po/da.po: Likewise.
6140 * po/de.po: Likewise.
6141 * po/es.po: Likewise.
6142 * po/fr.po: Likewise.
6143 * po/hr.po: Likewise.
6144 * po/ko.po: Likewise.
6145 * po/nl.po: Likewise.
6146 * po/rw.po: Likewise.
6147 * po/sk.po: Likewise.
6148 * po/sv.po: Likewise.
6149 * po/tr.po: Likewise.
6150 * po/zh_CN.po: Likewise.
6151 * po/zh_TW.po: Likewise.
6154 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6155 Patch by Roland Bless <roland@bless.de>.
6157 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6159 * elf/Makefile (routines): Add dl-sysdep.
6160 (elide-routines.os): Likewise.
6162 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6165 * elf/dl-sysdep.c: Undefine ROUND after use.
6166 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6167 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6168 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6169 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6171 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6172 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6174 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6176 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6177 _dl_tls_get_addr_soft element.
6178 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6179 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6180 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6182 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6183 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6184 of internal_function.
6186 * stdlib/Makefile (aux): Add tens_in_limb.
6187 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6188 * stdlib/tens_in_limb.c: ...here. New file.
6191 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6192 __statfs_chown_restricted.
6193 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6194 for _PC_CHOWN_RESTRICTED.
6195 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6196 Implement __statfs_chown_restricted.
6197 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6198 _POSIX_CHOWN_RESTRICTED value to zero.
6199 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6202 * sysdeps/x86_64/rtld-memset.c: New file.
6204 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6206 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6208 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6209 Barcelona machine. Make default fall through branch of
6210 __x86_64_preferred_memory_instruction check as the integer code path.
6212 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6214 * sysdeps/x86_64/cacheinfo.c
6215 (__x86_64_preferred_memory_instruction): New variable.
6216 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6218 * sysdeps/x86_64/memset.S: Rewrite.
6220 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6222 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6223 __obstack_printf_chk): New prototypes.
6224 (__vasprintf_chk, __vdprintf_chk,
6225 __obstack_vprintf_chk): Likewise.
6226 Add libc_hidden_proto.
6228 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6229 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6230 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6231 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6232 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6233 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6234 __obstack_vprintf_chk): New prototypes.
6235 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6236 obstack_vprintf): New inlines.
6237 * debug/dprintf_chk.c: New file.
6238 * debug/vdprintf_chk.c: New file.
6239 * debug/asprintf_chk.c: New file.
6240 * debug/vasprintf_chk.c: New file.
6241 * debug/obprintf_chk.c: New file.
6242 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6243 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6244 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6246 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6247 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6248 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6249 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6251 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6252 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6253 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6254 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6255 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6257 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6258 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6259 obstack_vprintf_chk.
6260 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6261 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6262 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6263 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6264 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6265 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6267 2008-03-04 Ulrich Drepper <drepper@redhat.com>
6270 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6271 Patch by Roy Marples <roy@marples.name>.
6274 * malloc/malloc.c: Fix typo in comment.
6277 * locale/iso-639.def: Add Shuswap.
6279 2008-02-25 Jakub Jelinek <jakub@redhat.com>
6282 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6283 overwrite *h_errnop/*errnop values from getanswer_r in case of
6286 2008-03-03 Ulrich Drepper <drepper@redhat.com>
6289 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6290 (verify_persistent_db): Remove one unnecessary test and add a new one
6291 for bad configuration.
6292 (nscd_init): Improve error reported when persistent database cannot
6294 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6295 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6296 .suggested_module and .max_db_size and case config file says the
6298 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6301 * nis/ypclnt.c (yp_order): Fix handling of return value of
6303 Patch by Jeff Moyer <jmoyer@redhat.com>.
6305 * po/fr.po: Update from translation team.
6307 2008-02-22 Andreas Jaeger <aj@suse.de>,
6308 Carlos O'Donell <carlos@systemhalted.org>
6311 * FAQ.in: Describe why glibc needs to be compiled with
6314 2008-02-19 Roland McGrath <roland@redhat.com>
6316 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6318 2008-02-15 Ulrich Drepper <drepper@redhat.com>
6321 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6322 __USE_MISC is defined.
6324 2008-02-10 Ulrich Drepper <drepper@redhat.com>
6326 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6327 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6329 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6330 timerfd_gettime, timerfd_settime.
6331 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6332 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6334 2008-02-08 Roland McGrath <roland@redhat.com>
6336 * elf/elf.h (NT_PPC_SPE): New macro.
6338 2008-02-06 Roland McGrath <roland@redhat.com>
6340 * Makerules ($(common-objpfx)sysd-rules):
6341 Depend on $(sysdep-makeconfigs).
6343 2008-01-31 Roland McGrath <roland@redhat.com>
6346 * configure.in: Use -print-file-name if it yields a directory,
6347 for each of include and include-fixed.
6348 * configure: Regenerated.
6350 * Makeconfig (sysd-rules-targets): New variable.
6351 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6352 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6354 2008-01-30 Roland McGrath <roland@redhat.com>
6356 * manual/libc.texinfo: Update back-cover text.
6358 * elf/elf.h (NT_386_TLS): New macro.
6360 2008-01-29 Roland McGrath <roland@redhat.com>
6362 * Makeconfig (sysd-rules-patterns): New variable.
6363 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6364 (check-inhibit-asm): New canned sequence, replaces ...
6365 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6366 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6367 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6368 (CFLAGS-rtld): Variable removed.
6370 2008-01-24 Roland McGrath <roland@redhat.com>
6372 * configure.in: Let configure fragments set base_os.
6373 * configure: Regenerated.
6375 2008-01-22 Ulrich Drepper <drepper@redhat.com>
6377 * po/ko.po: Update from translation team.
6379 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
6381 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6383 2008-01-12 Andreas Jaeger <aj@suse.de>
6386 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6389 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6391 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6392 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6393 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6395 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
6397 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6398 * elf/dl-close.c (_dl_close): Check for it.
6399 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6400 (_dl_allocate_static_tls): Likewise.
6401 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6402 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6404 * elf/tst-tls16.c: New file.
6405 * elf/tst-tlsmod16a.c: New file.
6406 * elf/tst-tlsmod16b.c: New file.
6407 * elf/Makefile: Add rules to build and run tst-tls16.
6409 2008-01-16 Ulrich Drepper <drepper@redhat.com>
6412 * bits/shm.h: Fix comment describing shmid_ds.
6413 * sysdeps/gnu/bits/shm.h: Likewise.
6414 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6415 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6416 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6417 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6418 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6419 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6420 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6421 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6422 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6425 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6427 * conform/data/limits.h-data: Adjust limits changed in v6 and add
6428 additional suffixes.
6429 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6430 Add optional functions mq_timedreceive and mq_timedsend.
6431 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6432 * conform/data/pthread.h-data: Fix prototype of
6433 pthread_condattr_setclock. pthread_sigmask is not required in v6.
6434 * conform/data/semaphore.h-data: Allow time.h definitions.
6435 * conform/data/signal.h-data: Likewise.
6436 * conform/data/stdio.h-data: getw and putw are not required in v6.
6437 * conform/data/stdlib.h-data: Change setstate prototype.
6438 * conform/data/string.h-data: Fix strerror_r prototype.
6439 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6440 * conform/data/unistd.h-data: pthread_atfork not required in v6.
6441 Fix readlink prototype.
6442 * conform/data/netinet/in.h-data: Add const to in6addr_any and
6444 * inet/netinet/in.h: Cleanup namespace.
6445 * posix/regex.h: Likewise.
6446 * resolv/netdb.h: Likewise.
6447 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6448 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6449 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6450 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6451 of names of in in6_addr.
6452 (default_precedence): Likewise.
6453 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6456 2008-01-15 Ulrich Drepper <drepper@redhat.com>
6458 * conform/data/fmtmsg.h-data: Add missing allows.
6459 * conform/data/ftw.h-data: Likewise.
6460 * conform/data/inttypes.h-data: Likewise.
6461 * conform/data/math.h-data: Likewise.
6462 * conform/data/signal.h-data: Likewise.
6463 * conform/data/net/if.h-data: Likewise.
6464 * conform/data/netinet/in.h-data: Likewise.
6465 * conform/data/sys/socket.h-data: Likewise.
6468 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6469 (__strtok_r): Simplify.
6470 * string/tester.c (test_strtok_r): Add test case for futile search
6471 with single-character seach string.
6473 2008-01-12 Ulrich Drepper <drepper@redhat.com>
6475 * po/ko.po: Update from translation team.
6477 2008-01-11 Andreas Jaeger <aj@suse.de>
6480 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6481 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6484 2008-01-10 Ulrich Drepper <drepper@redhat.com>
6486 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6487 native interface lookup in all the relevant places.
6489 2008-01-10 Jakub Jelinek <jakub@redhat.com>
6490 Ulrich Drepper <drepper@redhat.com>
6492 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6493 field. Use sockaddr_in6 for source_addr.
6494 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6495 (match_prefix): Likewise.
6496 (get_label): Likewise.
6497 (get_precedence): Likewise.
6498 (rfc3484_sort): Change to use indirect access to results array.
6499 Adjust to use of sockaddr_in6. Replace service_order test with
6500 simple index comparison.
6501 (getaddrinfo): Define order array. Initialize it. Don't initialize
6502 service_order field. Adjust qsort_t calls. Access sorted result
6503 array indirectly through order array.
6504 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6505 * posix/tst-rfc3484-2.c: Likewise.
6506 * posix/tst-rfc3484-3.c: Likewise.
6508 2008-01-09 Ulrich Drepper <drepper@redhat.com>
6511 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6513 Patch by André Cruz.
6516 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6517 (clnt_spcreateerror): Likewise.
6520 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6521 (public_mEMALIGn): Likewise.
6522 Patch mostly by Daniel Jacobowitz.
6524 2008-01-09 Jakub Jelinek <jakub@redhat.com>
6526 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6527 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6528 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6529 * stdlib/tst-makecontext2.c: New test.
6531 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6533 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6535 (REINIT_PARAMS): Likewise. Undefine before end of file.
6536 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6537 transliteration hooks and REINIT_PARAMS afterwards.
6538 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6540 (REINIT_PARAMS): Define.
6541 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6542 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6543 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6544 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6545 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6546 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6547 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6548 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6549 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6550 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6551 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6552 * iconvdata/tst-iconv7.c: New test.
6554 2008-01-07 Ulrich Drepper <drepper@redhat.com>
6556 * libio/stdio.h (vscanf): Fix definition for loser compilers.
6558 2008-01-05 Jakub Jelinek <jakub@redhat.com>
6561 * nscd/connections.c (restart): Fix condition.
6563 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6565 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6566 __ctype_toupper_loc): Add __THROW.
6568 2008-01-02 Ulrich Drepper <drepper@redhat.com>
6570 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6571 recognition of interface family.
6573 * posix/getconf.c: Update copyright year.
6574 * nss/getent.c: Likewise.
6575 * iconv/iconvconfig.c: Likewise.
6576 * iconv/iconv_prog.c: Likewise.
6577 * elf/ldconfig.c: Likewise.
6578 * catgets/gencat.c: Likewise.
6579 * csu/version.c: Likewise.
6580 * elf/ldd.bash.in: Likewise.
6581 * elf/sprof.c (print_version): Likewise.
6582 * locale/programs/locale.c: Likewise.
6583 * locale/programs/localedef.c: Likewise.
6584 * nscd/nscd.c (print_version): Likewise.
6585 * debug/xtrace.sh: Likewise.
6586 * malloc/memusage.sh: Likewise.
6587 * malloc/mtrace.pl: Likewise.
6588 * debug/catchsegv.sh: Likewise.
6590 2007-12-26 Ulrich Drepper <drepper@redhat.com>
6592 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6595 2007-12-23 Ulrich Drepper <drepper@redhat.com>
6597 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6598 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6600 2007-12-17 Roland McGrath <roland@redhat.com>
6602 * inet/ether_line.c (ether_line): Remove unused variable.
6604 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
6606 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6608 * login/openpty.c (openpty): Likewise.
6609 * login/pty.h (openpty, forkpty): Likewise.
6610 * manual/terminal.texi (openpty, forkpty): Likewise.
6612 2007-12-17 Ulrich Drepper <drepper@redhat.com>
6614 * malloc/malloc.c (public_cALLOc): For arenas other than
6615 main_arena, count all bytes inside the mprotect_size range of the
6616 heap as uninitialized.
6618 2007-12-16 Ulrich Drepper <drepper@redhat.com>
6620 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6623 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6624 mTRIm for all of them.
6625 (mTRIm): Additionally iterate over all free blocks and use madvise
6626 to free memory for all those blocks which contain at least one
6628 * malloc/tst-trim1.c: New file.
6629 * malloc/Makefile (tests): Add tst-trim1.
6631 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6633 2007-12-14 Ulrich Drepper <drepper@redhat.com>
6635 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6636 First cast argument to long
6637 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6639 (__vdso_clock_gettime): Likewise.
6640 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6643 2007-12-13 Ulrich Drepper <drepper@redhat.com>
6645 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6646 * locale/nl_langinfo_l.c: Real implementation, copied from
6648 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6650 2007-12-01 Jim Meyering <meyering@redhat.com>
6652 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6653 that would inhibit utf8-optimization of a regexp containing line-
6654 or buffer-anchors, e.g., `^', `$'.
6656 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6658 * time/bug-getdate1.c (do_test): Don't use century values which
6659 aren't valid on 32-bit systems.
6661 2007-12-12 Jakub Jelinek <jakub@redhat.com>
6663 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6664 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6665 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6666 __strcat_g, __strncat_g): Add __asm__.
6668 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6671 * io/fchmodat.c: Fix typo in stub_warning use.
6672 Patch by Petr Salinger.
6674 2007-12-11 Ulrich Drepper <drepper@redhat.com>
6676 * iconvdata/hp-thai8.c: New file.
6677 * iconvdata/Makefile: Add rules for hp-thai8.c.
6678 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6679 * iconvdata/gconv-modules: Likewise.
6682 * iconvdata/hp-greek8.c: New file.
6683 * iconvdata/Makefile: Add rules for hp-greek8.c.
6684 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6685 * iconvdata/gconv-modules: Likewise.
6688 * iconvdata/hp-turkish8.c: New file.
6689 * iconvdata/Makefile: Add rules for hp-turkish8.c.
6690 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6691 * iconvdata/gconv-modules: Likewise.
6693 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6694 (shrink_heap): ... this new function.
6695 (heap_trim): Call shrink_heap instead of grow_heap.
6697 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6698 case don't call alloc_perturb.
6700 2007-12-10 Ulrich Drepper <drepper@redhat.com>
6702 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6704 * sysdeps/unix/sysv/linux/kernel-features.h
6705 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6706 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6708 2007-12-08 Ulrich Drepper <drepper@redhat.com>
6711 * stdio-common/vfprintf.c: Do not overflow when adding to done.
6712 * stdio-common/Makefile (tests): Add bug22.
6713 * stdio-common/bug22.c: New file.
6716 * time/getdate.c: Fix filling in default values.
6717 * time/bug-getdate1.c: New file.
6718 * time/Makefile: Add rules to build and run bug-getdate1.
6720 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6721 * iconvdata/ebcdic-es.c: Likewise.
6722 * iconvdata/ebcdic-es-a.c: Likewise.
6723 * iconvdata/ebcdic-uk.c: Likewise.
6724 * iconvdata/iso8859-16.c: Likewise.
6725 * iconvdata/viscii.c: Likewise.
6726 * iconvdata/iso8859-9e.c: Likewise.
6727 * iconvdata/Makefile: Adjust appropriately.
6730 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6733 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6736 * iconvdata/hp-roman9.c: New file.
6737 * iconvdata/Makefile: Add rules for hp-roman9.c.
6738 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6739 * iconvdata/gconv-modules: Likewise.
6741 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6742 * iconvdata/Makefile: Adjust appropriately.
6745 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6746 structure, it's allocated with alloca.
6747 * stdio-common/Makefile (tests): Add bug21.
6748 * stdio-common/bug21.c: New file.
6750 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
6753 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6754 keyword for gcc's braced-groups.
6756 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6759 * inet/ether_line.c: Strip hostname of whitespaces.
6760 * inet/Makefile (tests): Add tst-ether_line.
6761 * inet/tst-ether_line.c: New file.
6763 2007-12-03 Ulrich Drepper <drepper@redhat.com>
6766 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6769 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6771 * stdlib/tst-setcontext.c: Catch the case where the links gets
6772 messed up and we do not reach main again.
6774 * po/ca.po: Update from translation team.
6776 2007-11-26 Ulrich Drepper <drepper@redhat.com>
6778 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6779 * posix/regex.h (REG_ENOSYS): Likewise.
6780 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6782 2007-11-25 Ulrich Drepper <drepper@redhat.com>
6784 * nscd/nscd.h (MAX_STACK_USE): Define.
6785 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6786 (gc): Initialize stack_used based on allocation in prune_cache.
6787 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6788 Clear array before use.
6790 * nscd/aicache.c (addhstaiX): Update statistics counter in case
6791 memory allocation failed.
6792 * nscd/hstcache.c (cache_addhst): Likewise.
6793 * nscd/grpcache.c (cache_addgr): Likewise.
6794 * nscd/servicescache.c (cache_addserv): Likewise.
6795 * nscd/pwdcache.c (cache_addpw): Likewise.
6796 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6798 2007-11-23 Ulrich Drepper <drepper@redhat.com>
6800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6801 and creat system calls.
6803 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6805 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
6807 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6809 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6810 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6812 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6813 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6814 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6816 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
6818 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6819 strncat): Define as macros to avoid compile errors.
6821 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
6824 2007-11-22 Ulrich Drepper <drepper@redhat.com>
6827 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6828 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6829 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6831 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6833 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6834 Return zero in case the thread library is not NPTL.
6837 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6838 initializing interface list.
6841 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6842 use result of nss_getgrgid_r if nothing was found. For other
6843 error return with a failure.
6844 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6846 * locale/programs/ld-collate.c (collate_read): Fix loop to match
6849 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6851 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6852 (get_scope): For IPv4 scope, use scopes table.
6853 (fini): Free scopes table if necessary.
6854 (free_scopelist): New function.
6855 (scopecmp): New function.
6856 (gaiconf_init): Also handle scopev4 entries.
6857 * posix/tst-rfc3484.c (do_test): Initialize scopes.
6858 * posix/tst-rfc3484-2.c (do_test): Likewise.
6859 * posix/gai.conf: Document scopev4 defaults.
6860 * posix/Makefile (tests): Add tst-rfc3484-3.
6861 * posix/tst-rfc3484-3.c: New file.
6863 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6865 * posix/gai.conf: Update for current default tables.
6867 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6869 * po/tr.po: Update from translation team.
6871 2007-11-18 Roland McGrath <roland@frob.com>
6873 * manual/arith.texi (Remainder Functions): Spelling fix.
6874 From Shaun Silk <genix@mysoul.com.au>.
6876 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6878 2007-11-17 Ulrich Drepper <drepper@redhat.com>
6880 * po/zh_CN.po: Update from translation team.
6882 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6883 Add sys/signalfd.h and sys/eventfd.h.
6885 2007-11-15 Bruno Haible <bruno@clisp.org>
6888 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6890 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6891 (DCIGETTEXT): Change the allocation of the 'search' variable so that
6892 it needs only fixed stack space. Delay the initialization of
6893 msgid_len until it is needed.
6895 2007-11-15 Andreas Jaeger <aj@suse.de>
6897 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6898 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6900 2007-11-15 Ulrich Drepper <drepper@redhat.com>
6902 * po/ko.po: Update from translation team.
6904 2007-11-14 Ulrich Drepper <drepper@redhat.com>
6906 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6907 significantly. The device type is also part of the ifinfomsg data.
6909 * po/sv.po: Update from translation team.
6910 * po/nl.po: Likewise.
6912 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6913 to wake up in 24 hours.
6915 * nscd/gai.c (__ioctl): Define. Include check_native.c.
6917 2007-11-13 Ulrich Drepper <drepper@redhat.com>
6919 * po/cs.po: Update from translation team.
6920 * po/pl.po: Likewise.
6922 * include/ifaddrs.h: Remove in6ai_temporary.
6923 (struct in6addrinfo): Add index element.
6924 Declare __check_native.
6925 * inet/Makefile (aux): Add check_native.
6926 * sysdeps/unix/sysv/linux/check_native.c: New file.
6927 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6928 IFA_F_TEMPORARY. Pass back ifa_index.
6929 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6930 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
6931 call __check_native if necessary.
6932 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
6933 to sort addresses. Pass information about the results.
6934 * posix/tst-rfc3484.c: Adjust for addition of index field and change
6935 of rfc3484_sort interface.
6936 * posix/tst-rfc3484-2.c: Likewise.
6938 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
6939 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6941 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6942 (qsort_r): Renamed from qsort. Take additional parameter and pass it
6943 on as third parameter to compare function and _quicksort.
6944 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6945 to the compare function.
6946 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6947 * Versions.def: Add GLIBC_2.8 for libc.
6949 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6950 * posix/tst-rfc3484-2.c: Likewise.
6952 * include/kernel-features.h: Moved to...
6953 * sysdeps/mach/hurd/kernel-features.h: ...here.
6955 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
6957 * sysdeps/i386/i586/memcpy_chk.S: New file.
6958 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6959 * sysdeps/i386/i586/memset_chk.S: Likewise.
6961 2007-11-12 Ulrich Drepper <drepper@redhat.com>
6963 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6964 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6965 list of interfaces. Also store prefix length.
6966 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6967 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6968 prefix if source and destination address are in the same subnet.
6969 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
6970 Always look for matching record in in6ai list.
6971 Correct source_addr_len value for IPv6->IPv4 converted records.
6973 2007-11-11 Roland McGrath <roland@frob.com>
6975 * include/kernel-features.h: New file.
6977 2007-11-10 Ulrich Drepper <drepper@redhat.com>
6979 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6980 complications for 64-bit platforms.
6982 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6983 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
6984 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6986 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6988 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6989 * sysdeps/wordsize-64/alphasort.c: New file.
6990 * sysdeps/wordsize-64/alphasort64.c: New file.
6991 * sysdeps/wordsize-64/fseeko.c: New file.
6992 * sysdeps/wordsize-64/fseeko64.c: New file.
6993 * sysdeps/wordsize-64/ftello.c: New file.
6994 * sysdeps/wordsize-64/ftello64.c: New file.
6995 * sysdeps/wordsize-64/ftw.c: New file.
6996 * sysdeps/wordsize-64/ftw64.c: New file.
6997 * sysdeps/wordsize-64/iofgetpos.c: New file.
6998 * sysdeps/wordsize-64/iofgetpos64.c: New file.
6999 * sysdeps/wordsize-64/iofopen.c: New file.
7000 * sysdeps/wordsize-64/iofopen64.c: New file.
7001 * sysdeps/wordsize-64/iofsetpos.c: New file.
7002 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7003 * sysdeps/wordsize-64/lockf.c: New file.
7004 * sysdeps/wordsize-64/lockf64.c: New file.
7005 * sysdeps/wordsize-64/mkostemp.c: New file.
7006 * sysdeps/wordsize-64/mkostemp64.c: New file.
7007 * sysdeps/wordsize-64/mkstemp.c: New file.
7008 * sysdeps/wordsize-64/mkstemp64.c: New file.
7009 * sysdeps/wordsize-64/scandir.c: New file.
7010 * sysdeps/wordsize-64/scandir64.c: New file.
7011 * sysdeps/wordsize-64/tmpfile.c: New file.
7012 * sysdeps/wordsize-64/tmpfile64.c: New file.
7013 * sysdeps/wordsize-64/versionsort.c: New file.
7014 * sysdeps/wordsize-64/versionsort64.c: New file.
7015 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7016 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7017 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7018 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7019 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7020 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7021 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7022 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7023 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7024 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7025 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7026 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7028 * crypt/sha256-crypt.c: Fix a comment.
7029 * crypt/sha512-crypt.c: Likewise.
7031 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7033 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7035 2007-11-07 Ulrich Drepper <drepper@redhat.com>
7038 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7039 because output buffer is too small break, don't loop.
7040 * iconvdata/Makefile (tests): Add bug-iconv6.
7041 * iconvdata/bug-iconv6.c: New file.
7043 2007-11-06 Ulrich Drepper <drepper@redhat.com>
7045 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7047 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7048 size_t. Add casts where needed.
7050 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7051 old headers, don't call avc_has_perm if we don't have the
7052 permission information.
7054 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7056 * elf/rtld.c (dl_main): Use the page size to find the map start.
7058 2007-11-05 Ulrich Drepper <drepper@redhat.com>
7060 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7061 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7063 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7064 when the lookup call failed.
7066 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7067 Add prune_cond and wakeup_time.
7068 (CACHE_PRUNE_INTERNAL): Define.
7069 Update declarations of prune_cache and setup_thread.
7070 * nscd/connections.c (dbs): Update initializers.
7071 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7072 (nscd_init): Default number of threads is now 4.
7073 (invalidate_cache): Take lock before calling prune_cache.
7074 (handle_request): If SELinux forbids the request, say so.
7075 (readylist_cond): Use static initializer.
7076 (nscd_run_prune): New function. Used only by pruning threads.
7077 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7079 (fd_ready): Update nscd_run reference.
7080 (start_threads): No need to initialize readylist_cond.
7081 Start pruning threads separately.
7082 * nscd/nscd_setup_thread.c: Change return value type to int and always
7084 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7085 to int and return nonzero value if we can use the TID address hack.
7086 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7087 the database is later than the new entry's timeout, update the
7088 wakeup time and wake the cleanup thread.
7089 (prune_cache): Return seconds the next entry in the database is still
7090 valid. Remove locking for pruning here.
7091 * nscd/nscd.conf: Document default number of threads.
7093 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7095 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7096 stack is properly aligned for the target function.
7097 Correct unwind info.
7099 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7100 when using auditing libraries.
7102 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7104 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7105 _nss_dns_getnetbyaddr2_r.
7106 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7107 extra parameter to getanswer_r.
7108 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7109 _nss_dns_getnetbyaddr2_r.
7111 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7113 * nscd/gethstbynm2_r.c: Remove.
7114 * nscd/gethstbynm3_r.c: New file.
7115 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7117 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7118 __gethostbyaddr_r compatibility wrapper.
7119 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7120 determining timeout of entry.
7121 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7123 (addhstbyX): Pass reference to variable for TTL to lookup and
7125 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7126 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7127 and __nss_next2. Remove __nss_services_lookup.
7128 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7130 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7132 * nss/getXXent_r.c: Likewise.
7133 * nss/getnssent_r.c: Likewise.
7134 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7135 does not exist in module, try the optional second name.
7136 (__nss_next2): New function.
7137 (__nss_next): Now wrapper around __nss_next2.
7138 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7139 Declare __nss_next2.
7140 Adjust definition of db_lookup_function type.
7141 * nss/service-lookup.c: Define NO_COMPAT.
7142 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7143 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7144 * inet/ether_ntoh.c: Likewise.
7145 * sunrpc/netname.c: Likewise.
7146 * sunrpc/publickey.c: Likewise.
7147 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7148 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7149 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7150 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7151 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7153 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7155 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7157 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7160 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7161 * crypt/sha512c-test.c: Likewise.
7164 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7165 to keep track of end of %[ format string element.
7166 * stdio-common/Makefile (tests): Add bug20.
7167 * stdio-common/bug20.c: New file.
7170 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7171 path elements in counting mode.
7173 2007-10-27 Andreas Jaeger <aj@suse.de>
7176 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7179 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7180 (__cleanup): Free shared library when exiting.
7181 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7182 (__cleanup): Free shared library when exiting.
7184 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7187 * math/libm-test.inc (check_float_internal): Support
7188 denormalized return.
7190 2007-10-23 Andreas Jaeger <aj@suse.de>
7193 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7194 __LONG_LONG_PAIR to handle little endian byte order.
7195 Suggested by abhishekrai@google.com
7197 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7199 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7201 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7203 * nscd/cache.c (prune_cache): Move test for modified file outside
7206 2007-10-21 Andreas Jaeger <aj@suse.de>
7208 * manual/texinfo.tex: Update to latest version.
7210 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7212 * manual/arith.texi (Status bit operations): Fix formatting.
7214 * manual/errno.texi (Error Messages): Fix formatting.
7216 * manual/sysinfo.texi (System Parameters): Fix formatting.
7218 * manual/libc.texinfo: Update VERSION and UPDATED.
7220 2007-10-19 Roland McGrath <roland@redhat.com>
7222 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7224 2007-10-06 David S. Miller <davem@davemloft.net>
7226 * configure.in: Add sparcv9v2 and sparc64v2.
7227 * scripts/config.sub: Likewise.
7228 * configure: Regenerate.
7229 * elf/elf.h (HWCAP_SPARC_N2): New.
7230 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7231 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7232 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7233 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7234 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7235 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7236 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7238 2007-10-18 Ulrich Drepper <drepper@redhat.com>
7240 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7241 even if the poll result indicates there is data to read.
7242 Patch by Jeff Moyer <jmoyer@redhat.com>.
7244 2007-10-18 Roland McGrath <roland@redhat.com>
7246 * elf/elf.h (NT_PPC_VMX): New macro.
7248 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7250 * version.h (VERSION): Set to 2.7.90.
7252 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7254 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7257 2007-10-17 Roland McGrath <roland@frob.com>
7259 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7260 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7262 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7264 * version.h (VERSION): Bump to 2.7.
7265 * include/features.h (__GLIBC_MINOR__): Bump to 7.
7268 * time/tzset.c (__tz_convert): Don't force testing for a change of
7269 TZ if not called from localtime. But then also see whether the
7270 file changed, in case __use_tzfile is set.
7272 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7273 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7274 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7275 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7276 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7277 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7278 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7279 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7281 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7283 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7284 and admin selects to be able to replace the gai.conf file, lock
7285 data structures around the qsort call.
7287 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7289 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7291 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
7292 too high for the improvements. Implement bzero unconditionally for
7295 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7296 Jakub Jelinek <jakub@redhat.com>
7298 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7299 even when time_t is 32-bit.
7300 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7301 timezone data read by __tzfile_default. Ensure __tzname[0] is
7302 always set after the search.
7304 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7306 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7307 unreachable code on 32-bit machines.
7309 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7312 * time/strftime_l.c: Include stdbool.h.
7313 (my_strftime): New wrapper, old function renamed to...
7314 (__strftime_internal): ... new function. Add tzset_called
7315 argument, pass it down to recursive calls, don't call tzset ()
7316 if already true, set to true after call to tzset ().
7318 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7320 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7321 into account when copying TZ string.
7323 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7325 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7326 num_transition rather than num_transitions - 1.
7328 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7330 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7333 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7334 a local label rather than HIDDEN_JUMPTARGET.
7336 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7338 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7339 (init_cacheinfo): Initialize it.
7340 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7341 Always define bzero.
7342 Remove non-glibc code.
7343 * sysdeps/x86_64/bzero.S: Make an empty file.
7345 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7347 * sysdeps/x86_64/cacheinfo.c
7348 (__x86_64_preferred_memory_instruction): New.
7349 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7351 * sysdeps/x86_64/memset.S: Rewrite.
7353 2007-10-15 Roland McGrath <roland@redhat.com>
7355 * po/libc.pot: Regenerated.
7357 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7359 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7363 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7364 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7365 address record to T_A/T_AAAA requests.
7367 2007-10-14 Ulrich Drepper <drepper@redhat.com>
7369 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7371 * posix/glob.c: Add some branch prediction throughout.
7373 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7376 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7378 (rfc3484_sort): Make sure that even if qsort doesn't support
7379 stable sorting out sorting here is stable by comparing service_order.
7380 (getaddrinfo): Initialize service_order.
7381 * posix/tst-rfc3484.c (do_test): Adjust for addition of
7382 service_order field to sorting structure.
7383 * posix/tst-rfc3484-2.c (do_test): Likewise.
7385 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7386 * time/tzset.c (tzset_internal): Break TZ string parsing out into
7387 __tzset_parse_tz and updating of daylight, timezone, tzname into
7389 (__tz_compute): Renamed from tz_compute. Take additional parameters.
7390 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7391 happens in __tz_compute.
7392 * time/tzfile.c (__tzfile_read): Also read TZ string.
7393 (find_transition): Fold into __tzfile_compute.
7394 (__tzfile_compute): For times beyond the last transition try to
7396 * timezone/tst-timezone.c: Information in daylight and tzname does
7397 change for Asia/Tokyo timezone with more concrete information.
7400 * include/stdio.h: Add libc_hidden_proto for ftello.
7401 * libio/ftello.c: Add libc_hidden_def.
7404 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7405 on the specified time and not the last entries in the file. Move
7406 code to determine tzname[] to...
7407 (find_transition): ...here. Add ugly guess for times before the
7410 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7413 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7415 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7416 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7417 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7418 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7420 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7421 read mechanism when there are no group members and avoid no-op
7422 read syscall in this case.
7425 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7426 (__readall): If reading failed due to EAGAIN error wait a bit
7427 and possibly try again.
7428 (__readvall): Likewise.
7430 2007-10-13 Bruno Haible <bruno@clisp.org>
7432 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7433 when we cannot recode the message.
7435 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7438 * libio/__freading.c (__freading): Don't return true for
7439 write-only streams. For read/write streams, check whether we
7440 performed a read operation already.
7441 * libio/Makefile (tests): Add tst-ext2.
7442 * libio/tst-ext2.c: New file.
7444 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7446 * locale/programs/repertoire.c (repertoire_read): Always free
7447 memory for repertoire file name [Coverity CID 270].
7449 * elf/cache.c (save_aux_cache): Free memory allocated for
7450 temporary file name [Coverity CID 267].
7452 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7454 * misc/Makefile (headers): Add bits/error.h.
7456 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7458 * posix/fnmatch_loop.c: Take rule index returned as part of
7459 findidx return value into account when accessing weights.
7460 * posix/regcomp.c: Likewise.
7461 * posix/regexec.c: Likewise.
7463 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7464 (skip_to): Fix problems with parameter of elifdef/elifndef.
7466 2007-10-11 Ulrich Drepper <drepper@redhat.com>
7468 * iconv/gconv_simple.c: Add some branch prediction.
7470 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7472 * locale/programs/ld-collate.c (collate_read): If ignore_content
7473 and nowtok is tok_define, eat any tok_eol tokens.
7475 2007-10-11 Jakub Jelinek <jakub@redhat.com>
7477 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7478 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7480 * inet/netinet/in.h: Don't include bits/socket.h.
7481 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7483 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7485 2007-10-10 Ulrich Drepper <drepper@redhat.com>
7487 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7489 * locale/programs/locfile-kw.gperf: Likewise.
7490 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7492 2007-10-10 Jakub Jelinek <jakub@redhat.com>
7494 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7495 (__find_specwc): Change into __extern_always_inline function.
7496 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7497 (__parse_one_specmb): Remove ps argument.
7498 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7499 Adjust __find_specmb and __parse_one_specmb callers.
7500 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7501 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7503 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7506 2007-10-09 Ulrich Drepper <drepper@redhat.com>
7508 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7509 with some Pentium Ds.
7511 2007-10-08 Ulrich Drepper <drepper@redhat.com>
7513 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7515 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7518 2007-10-07 Ulrich Drepper <drepper@redhat.com>
7521 * locale/C-time.c: Set week_1stday data to 19971201.
7522 * locale/programs/ld-time.c (time_finish): Default for
7523 first_workday is Monday.
7526 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7529 * posix/glob.c (glob): Recognize patterns starting \/.
7530 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7531 (main): Add test for pattern starting \/.
7533 * misc/error.h: Use __const instead of const.
7534 * misc/bits/error.h: Likewise.
7536 2007-10-07 Andreas Jaeger <aj@suse.de>
7538 * include/bits/error.h: New file.
7540 * misc/bits/error.h (error_at_line): Fix prototype.
7542 2007-10-06 Ulrich Drepper <drepper@redhat.com>
7545 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7546 more little bugs in creating the stack frame when pltexit has to
7549 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7550 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7553 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7554 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7555 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7556 * math/libm-test.inc: Add test for this case.
7559 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7560 (svc_register): Initialize sc_mapped. Set to TRUE if call to
7561 map service succeeded.
7562 (svc_is_mapped): New function.
7563 (svc_unregister): Use it before trying to unmap service.
7565 2007-10-05 Ulrich Drepper <drepper@redhat.com>
7567 * timezone/zic.c: Update from tzcode2007h.
7570 * timezone/africa: Update from tzdata2007h.
7571 * timezone/antarctica: Likewise.
7572 * timezone/asia: Likewise.
7573 * timezone/australasia: Likewise.
7574 * timezone/europe: Likewise.
7575 * timezone/leapseconds: Likewise.
7576 * timezone/northamerica: Likewise.
7577 * timezone/southamerica: Likewise.
7578 * timzeone/zone.tab: Likewise.
7581 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7584 * string/bits/string2.h (__strdup): Cast parameters to calloc to
7585 avoid warning with -Wconversion.
7586 (__strndup): Likewise.
7587 Half the patch by Christian Iseli <christian.iseli@licr.org>.
7590 * nscd/connections.c (restart): Don't resync if database is
7591 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7593 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7594 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
7596 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7597 evetnfd_read, eventfd_write.
7598 * sysdeps/unix/sysv/linux/eventfd.c: New file.
7599 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7600 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7601 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7602 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7603 eventfd_write for GLIBC_2.7.
7605 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7606 * sysdeps/unix/sysv/linux/signalfd.c: New file.
7607 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7608 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7610 2007-10-04 Jakub Jelinek <jakub@redhat.com>
7612 * stdlib/msort.c: Include stdint.h.
7613 (struct msort_param): New type.
7614 (msort_with_tmp): Use struct msort_param pointer for unchanging
7615 parameters. Add optimized handling for several common sizes
7616 and indirect sorting mode.
7617 (qsort): Adjust msort_with_tmp callers. For big S use indirect
7619 Suggested by Belazougui Djamel .
7621 * stdlib/Makefile (tests): Add tst-qsort2.
7622 * stdlib/tst-qsort2.c: New test.
7624 2007-10-04 Ulrich Drepper <drepper@redhat.com>
7626 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7627 for dup2 in case another thread races with the current one. Retry
7630 * misc/error.h: Remove support for use outside of libc. We have to
7631 include <features.h> now. Include <bits/error.h> if possible.
7632 * misc/bits/error.h: New file.
7634 2007-10-03 Jakub Jelinek <jakub@redhat.com>
7636 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7637 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7638 __extern_always_inline functions unconditionally, drop macros.
7640 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7641 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7642 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7644 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7645 add __artificial__ attribute.
7647 2007-10-02 Ulrich Drepper <drepper@redhat.com>
7649 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7650 backward to forward direction.
7652 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7655 * locale/programs/ld-collate.c (collate_finish): Compare against last
7656 used section which is known to have rules defined.
7657 (collate_read): After order_start, correctly record order of sections
7658 and queue sections up.
7660 2007-10-01 Ulrich Drepper <drepper@redhat.com>
7663 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7664 the same number of pages.
7665 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7667 * locale/programs/ld-collate.c (collate_read): After initial copy
7668 statement, continue in state 0.
7670 * include/stdio_ext.h (__fsetlocking): Define as macro.
7672 2007-09-30 Ulrich Drepper <drepper@redhat.com>
7674 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7677 * po/pt_BR.po: Fix typo.
7679 2007-09-29 Ulrich Drepper <drepper@redhat.com>
7681 * iconvdata/Makefile (modules): Add ISO8859-9E.
7682 (distribute): Add iso8859-9e.c.
7683 (gen-8bit-gap-modules): Add iso8859-9e.
7684 * iconvdata/iso8859-9e.c: New file.
7685 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7686 * iconvdata/TESTS: Likewise.
7687 * iconvdata/tst-tables.sh: Likewise.
7689 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7691 * locale/iso-639.def: Add several new entries.
7693 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7695 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7696 void * pointers instead of struct link_map **.
7697 (_dl_scope_free): Change argument type to void *.
7698 * include/link.h (struct link_map): Change type of l_reldeps
7699 to struct link_map_reldeps, move l_reldepsact into that
7701 * elf/dl-deps.c: Include atomic.h.
7702 (_dl_map_object_deps): Only change l->l_initfini when it is
7703 fully populated, use _dl_scope_free for freeing it. Optimize
7704 removal of libs from reldeps by using l_reserved flag, when
7705 some removal is needed, allocate a new list instead of
7706 reallocating and free the old with _dl_scope_free. Adjust
7707 for l_reldeps and l_reldepsact changes.
7708 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
7709 searching in l_initfini and l_reldeps without holding dl_load_lock.
7710 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7711 l_reldepsact changes.
7712 * elf/dl-close.c (_dl_close_worker): Likewise.
7713 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7715 2007-09-28 Ulrich Drepper <drepper@redhat.com>
7717 * iconvdata/Makefile (modules): Add KOI8-RU.
7718 (distribute): Add koi8-ru.c.
7719 (gen-8bit-gap-modules): Add koi8-ru.
7720 * iconvdata/koi8-ru.c: New file.
7721 * iconvdata/gconv-modules: Add entries for KOI8-RU.
7722 * iconvdata/TESTS: Likewise.
7723 * iconvdata/tst-tables.sh: Likewise.
7725 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7727 2007-09-26 Jakub Jelinek <jakub@redhat.com>
7729 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7730 with __warning__/__error__ attributes.
7731 (__warnattr): Define.
7732 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7733 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7735 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7736 of __*_chk if compile time detectable overflow is found.
7737 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7738 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7740 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7741 instead of __*_chk if compile time detectable overflow is found.
7742 (__gets_alias): Rename to...
7743 (__gets_warn): ... this. Add __warnattr.
7744 (gets): Call __gets_warn instead of __gets_alias.
7745 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7746 aliases with __warnattr.
7747 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7748 time detectable overflow is found.
7749 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7750 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7751 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7752 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7753 __getdomainname_chk_warn): New aliases with __warnattr.
7754 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7755 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7756 __*_chk_warn instead of __*_chk if compile time detectable overflow
7758 (__getgroups_chk): Rename argument to __listlen from listlen.
7759 (__getwd_alias): Rename to...
7760 (__getwd_warn): ... this. Add __warnattr.
7761 (getwd): Call __getwd_warn instead of __getwd_alias.
7762 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7763 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7764 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7765 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7766 __wcsnrtombs_chk_warn): New aliases with __warnattr.
7767 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7768 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7769 compile time detectable overflow is found.
7770 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
7771 to use __*_chk or not.
7772 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7773 in comparisons which function should be called and in __*_chk*
7774 arguments. Call __*_chk_warn instead of __*_chk if compile time
7775 detectable overflow is found.
7776 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7778 * debug/tst-chk1.c (do_test): Add a few more tests.
7780 2007-09-24 Ulrich Drepper <drepper@redhat.com>
7783 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7784 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7785 (_nl_unload_domain): Finalize conversions_lock.
7786 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7787 handling table of known conversions.
7789 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7791 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7792 close_not_cancel_no_status instead of close.
7794 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
7797 * posix/regcomp.c (lookup_collation_sequence_value): Check that
7798 nrules != 0 for multibyte chars.
7800 2007-09-23 Ulrich Drepper <drepper@redhat.com>
7802 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7803 Provide better error message in case the type is unknown.
7806 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7807 * string/stratcliff.c: Make usable to test wide char functions.
7808 * wcsmbs/wcsatcliff.c: New file.
7809 * wcsmbs/Makefiel (tests): Add wcsatcliff.
7812 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7813 (distribute): Add mac-centraleurope.c.
7814 (gen-8bit-gap-modules): Add mac-centraleurope.
7815 * iconvdata/mac-centraleurope.c: New file.
7816 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7817 * iconvdata/TESTS: Likewise.
7818 * iconvdata/tst-tables.sh: Likewise.
7821 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7823 2007-09-21 Ulrich Drepper <drepper@redhat.com>
7825 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7826 from __x86_64_core_cache_size_half.
7827 (init_cacheinfo): Compute shared cache size for AMD processors with
7828 shared L3 correctly.
7829 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7831 Patch in large parts by Evandro Menezes.
7833 2007-09-19 Ulrich Drepper <drepper@redhat.com>
7835 * elf/dl-lookup.c (add_dependency): Handle failing memory
7836 allocation for dependency list. Remove unnecessary check.
7838 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7839 open/close when determining source addresses.
7841 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7842 sha512-crypt, and sha512.
7843 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7844 (distribute): Add sha256.h and sha512.h.
7845 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7846 and call the appropriate code.
7847 * crypt/sha256-crypt.c: New file.
7848 * crypt/sha256.c: New file.
7849 * crypt/sha256.h: New file.
7850 * crypt/sha256c-test.c: New file.
7851 * crypt/sha256test.c: New file.
7852 * crypt/sha512-crypt.c: New file.
7853 * crypt/sha512.c: New file.
7854 * crypt/sha512.h: New file.
7855 * crypt/sha512c-test.c: New file.
7856 * crypt/sha512test.c: New file.
7858 2007-09-19 Jakub Jelinek <jakub@redhat.com>
7860 * misc/bits/syslog.h (syslog): Remove extraneous argument from
7861 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7864 2007-09-18 Jakub Jelinek <jakub@redhat.com>
7866 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7867 %as in fscanf format strings.
7869 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7870 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7871 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7873 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7876 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7877 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7878 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7879 * elf/dl-sym.c (do_sym): Likewise.
7880 * include/link.h (struct link_map): Add l_serial field.
7881 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7882 * elf/dl-lookup.c (add_dependency): Add flags argument.
7883 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7884 flags, use THREAD_GSCOPE_RESET_FLAG before and
7885 THREAD_GSCOPE_SET_FLAG after
7886 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7887 Don't dereference map until it has been found on some list.
7888 If map->l_serial changed, return -1.
7890 2007-09-17 Jakub Jelinek <jakub@redhat.com>
7892 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7893 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7894 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7896 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7897 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7898 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7899 add libc_hidden_proto.
7900 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7901 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7902 conformance requested.
7903 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7904 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7905 conformance requested.
7906 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7907 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7908 conformance requested.
7909 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7910 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7911 ISO C99 or POSIX conformance requested.
7912 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7913 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7914 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7915 and __isoc99_vsscanf@@GLIBC_2.7.
7916 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7917 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7918 (tests): Add scanf14.
7919 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7920 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7921 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7922 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7923 CFLAGS-isoc99_scanf.c): Add $(exceptions).
7924 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7925 from using internal headers.
7926 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7927 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7928 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7929 and __isoc99_vswscanf@@GLIBC_2.7.
7930 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7931 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7932 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7933 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7934 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7935 * stdio-common/isoc99_scanf.c: New file.
7936 * stdio-common/isoc99_vsscanf.c: New file.
7937 * stdio-common/isoc99_vscanf.c: New file.
7938 * stdio-common/isoc99_vfscanf.c: New file.
7939 * stdio-common/isoc99_fscanf.c: New file.
7940 * stdio-common/isoc99_sscanf.c: New file.
7941 * wcsmbs/isoc99_fwscanf.c: New file.
7942 * wcsmbs/isoc99_vswscanf.c: New file.
7943 * wcsmbs/isoc99_swscanf.c: New file.
7944 * wcsmbs/isoc99_wscanf.c: New file.
7945 * wcsmbs/isoc99_vwscanf.c: New file.
7946 * wcsmbs/isoc99_vfwscanf.c: New file.
7947 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7948 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7949 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7950 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7951 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7952 * stdio-common/scanf14.c: New test.
7953 * stdio-common/scanf15.c: New test.
7954 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7955 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7956 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7957 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7958 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7959 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7960 __nldbl___isoc99_scanf@@GLIBC_2.7,
7961 __nldbl___isoc99_fscanf@@GLIBC_2.7,
7962 __nldbl___isoc99_sscanf@@GLIBC_2.7,
7963 __nldbl___isoc99_vscanf@@GLIBC_2.7,
7964 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7965 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7966 __nldbl___isoc99_wscanf@@GLIBC_2.7,
7967 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7968 __nldbl___isoc99_swscanf@@GLIBC_2.7,
7969 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7970 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7971 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7972 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7973 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7974 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7975 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7976 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7977 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7978 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7979 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7980 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7981 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7982 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7983 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7985 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7986 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7987 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7988 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7989 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7990 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7991 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7992 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7993 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7994 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7995 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7996 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7998 * stdio-common/Makefile (tests): Add scanf13.
8000 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8001 m modifier followed by l.
8002 (STRING_ARG): Add width argument.
8003 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8004 <case L_('C')>: Handle %mlc and %mC.
8005 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8007 * stdio-common/scanf13.c: New test.
8009 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8010 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8012 2007-09-18 Ulrich Drepper <drepper@redhat.com>
8014 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8015 type and __THROW marker of splice, vmsplice, and tee.
8016 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8017 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8018 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8019 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8020 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8021 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8022 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8023 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8024 as cancellation points.
8026 2003-11-01 Daniel Jacobowitz <dan@debian.org>
8028 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8029 parse more than three parts of the version number.
8031 2007-09-15 Ulrich Drepper <drepper@redhat.com>
8033 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8034 modifier. Patch by Jakub Jelinek.
8036 2007-08-26 Jakub Jelinek <jakub@redhat.com>
8038 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8039 call_fallocate in misc subdir.
8040 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8041 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8042 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8043 instead of __fallocate64.
8044 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8046 2007-09-15 Jakub Jelinek <jakub@redhat.com>
8048 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8049 * rt/Makefile (headers): Add bits/mqueue2.h.
8050 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8051 optimizing with GCC and __va_arg_pack_len is defined.
8052 * rt/bits/mqueue2.h: New file.
8053 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8054 (mq_open): New strong_alias.
8055 (__mq_open_2): New function.
8056 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8057 (mq_open): New strong_alias.
8058 (__mq_open_2): New function.
8059 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8060 * Versions.def (librt): Add GLIBC_2.7 version.
8061 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8062 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8064 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8065 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8066 is defined rather than when not C++.
8067 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8068 __openat64_alias): New redirects.
8069 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8070 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8071 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8072 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8073 functions instead of function-like macros.
8075 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8077 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8078 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8079 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8081 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8083 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8084 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8086 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8088 * inet/tst-network.c: Increment ERRORS for failing tests.
8090 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8092 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8093 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8094 implement as __extern_always_inline function.
8095 (vsyslog): Define as __extern_always_inline function unconditionally.
8096 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8097 When __va_arg_pack is defined, implement as __extern_always_inline
8099 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8100 __extern_always_inline functions unconditionally.
8101 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8102 bits/stdio2.h will be included.
8103 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8104 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8105 implement as __extern_always_inline functions.
8106 (vswprintf, vwprintf, vfwprintf): Define as
8107 __extern_always_inline functions unconditionally.
8108 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8110 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8112 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8113 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8115 * include/features.h (__USE_EXTERN_INLINES): Define only when
8116 __extern_inline is defined.
8117 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8118 is defined instead of when not __cplusplus.
8119 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8120 is defined instead of when not __cplusplus.
8121 * socket/sys/socket.h: Include bits/socket2.h when
8122 __extern_always_inline is defined instead of when not __cplusplus.
8123 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8124 is defined instead of when not __cplusplus.
8125 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8126 is defined instead of when not __cplusplus.
8127 * string/string.h: Include bits/string3.h when __extern_always_inline
8128 is defined instead of when not __cplusplus.
8129 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8130 is defined instead of when not __cplusplus.
8131 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8132 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8134 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8135 defined __extern_always_inline instead of !defined __cplusplus.
8136 * libio/bits/stdio-ldbl.h: Likewise.
8137 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8138 * misc/bits/syslog.h (syslog): Don't define for C++.
8139 (vsyslog): Use __extern_always_inline function for C++ instead of
8141 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8142 whenever that macro is defined.
8143 (vprintf): Don't provide the inline for C++.
8144 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8145 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8146 define the macros for C++.
8147 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8148 __extern_always_inline functions for C++.
8149 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8150 stat64, lstat64, fstat64, fstatat64): Don't define if not
8151 __USE_EXTERN_INLINES.
8152 * wcsmbs/bits/wchar2.h: Fix #error message.
8153 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8154 (vswprintf, vwprintf, vfwprintf): Define using
8155 __extern_always_inline functions for C++.
8156 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8157 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8158 strncpy, strcat, strncat): Define as __extern_always_inline
8159 functions instead of macros for C++.
8160 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8161 defined __extern_inline.
8162 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8163 to __extern_inline whenever that macro is defined.
8164 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8165 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8166 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8167 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8168 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8169 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8170 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8171 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8172 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8173 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8174 prototypes. Only provide __extern_inline routines if
8175 __USE_EXTERN_INLINES.
8176 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8178 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8179 For now avoid some *printf tests in C++. Skip all testing
8180 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8182 * debug/tst-chk4.cc: New file.
8183 * debug/tst-chk5.cc: New file.
8184 * debug/tst-chk6.cc: New file.
8185 * debug/tst-lfschk4.cc: New file.
8186 * debug/tst-lfschk5.cc: New file.
8187 * debug/tst-lfschk6.cc: New file.
8188 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8190 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8191 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8192 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8194 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8196 * po/cs.po: Update from translation team.
8198 2007-09-11 Roland McGrath <roland@redhat.com>
8200 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8203 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8205 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8207 2007-09-05 Roland McGrath <roland@redhat.com>
8209 * manual/signal.texi (Signaling Another Process): Typo fix.
8210 From Karl Berry <karl@freefriends.org>.
8212 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8214 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8215 zero if not defined.
8216 (make_request): Recognize optimistic addresses and treat them like
8217 deprecated addresses.
8218 Reported by Neil Horman <nhorman@redhat.com>.
8220 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8222 * nscd/connections.c (send_ro_fd): Also transfer file size.
8223 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8224 file size don't call fstat.
8226 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8227 ahead and map the file. This should always be correct and we can
8228 catch problems later.
8230 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8232 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8234 (__fread_alias, __fread_unlocked_alias): New aliases.
8235 (fread): New extern inline.
8236 (fread_unlocked): Likewise. Undef macro before definition of
8237 the inline function.
8238 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8239 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8240 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8241 and __fread_unlocked_chk@@GLIBC_2.7.
8242 * debug/fread_chk.c: New file.
8243 * debug/fread_u_chk.c: New file.
8244 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8246 2007-08-27 Jakub Jelinek <jakub@redhat.com>
8248 * sysdeps/unix/sysv/linux/syscalls.list
8249 (personality): Change caller to EXTRA.
8251 2007-08-25 Ulrich Drepper <drepper@redhat.com>
8253 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8255 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8257 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8260 * Makerules: Use -p option with mkdir.
8262 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8263 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8264 (_xdr_directory_obj): Likewise.
8265 (xdr_entry_obj): Likewise.
8266 (xdr_group_obj): Likewise.
8267 (xdr_link_obj): Likewise.
8268 (xdr_table_obj): Likewise.
8269 (_xdr_nis_result): Likewise.
8270 (_xdr_ns_request): Likewise.
8271 (_xdr_ib_request): Likewise.
8272 (_xdr_nis_taglist): Likewise.
8273 (xdr_cback_data): Likewise.
8274 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8275 (xdr_ypresp_maplist): Likewise.
8277 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8279 * posix/regex_internal.h: Prevent some declarations and definitions
8280 to be seen when used in tests.
8282 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8283 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8285 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8287 * config.make.in (datarootdir): Add to shut up configure.
8289 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8290 associativity for fully-associative caches.
8292 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8293 requests. Fill on more associativity values for L2.
8294 Patch mostly by Evandro Menezes.
8296 2007-08-24 Ulrich Drepper <drepper@redhat.com>
8298 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8299 (_libc_vdso_platform_setup): Avoid using exported variable by using
8302 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8304 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8305 fallocate64 as EXTRA. It is not referenced if the symbol isn't
8308 2007-08-23 Ulrich Drepper <drepper@redhat.com>
8310 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8311 align stack for call if pltexit is to be used.
8314 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8315 align for function call in case pltexit has to be called later.
8317 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8318 implicit atomic operation when storing function pointer.
8319 (_dl_runtime_profile): Likewise.
8321 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8323 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8326 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8329 * string/strtok.c: Fix typo in comment.
8332 * debug/segfault.c: Fix typos in comments.
8335 * stdio-common/tempnam.c: Fix comment, it is not checked that
8336 TMPDIR points to a writable directory.
8339 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8340 memory allocated for the name server address.
8343 * nscd/connections.c (handle_request): Using sendfile always
8344 requires that mmap is used for the database.
8345 Patch by Petr Baudis <pasky@suse.cz>.
8348 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8349 suddenly has two or more addresses, ignore it and remove the old
8353 * resolv/res_hconf.c: Prepare for compiling outside libc.
8354 * nscd/res_hconf.c: New file.
8355 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8357 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8358 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8360 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8363 * debug/pcprofiledump.c: Turn on internationalization by calling
8364 setlocale. Patch mostly by Benno Schulenberg.
8367 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8369 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8370 * iconvdata/bug-iconv5.c: New file.
8372 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8375 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8376 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8377 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8378 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8379 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8380 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8381 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8382 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8384 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8387 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8388 lookup loop. Suggested by John Reiser.
8390 2007-08-21 Jakub Jelinek <jakub@redhat.com>
8392 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8394 2007-08-20 Ulrich Drepper <drepper@redhat.com>
8396 * csu/libc-start.c: Don't handle VDSO_SETUP here.
8397 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8398 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8399 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
8400 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8402 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
8404 2007-08-18 Ulrich Drepper <drepper@redhat.com>
8406 * po/nl.po: Update from translation team.
8408 2007-08-16 Andreas Jaeger <aj@suse.de>
8410 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8411 Reported by Peter Festner <peter.festner@ewetel.net>.
8413 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8415 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8417 2007-08-16 Jakub Jelinek <jakub@redhat.com>
8419 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8420 to check for undefined symbols.
8422 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8423 If the syscall fails, set errno to the actual returned error number
8425 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8426 arguments are incorrect, set errno to EINVAL, if the syscall
8427 fails, set errno to the actual returned error number.
8429 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8430 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8432 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8433 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
8435 (ASI_PNF, ASI_BLK_P): Don't define.
8436 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8437 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
8439 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8440 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
8443 2007-08-15 Jakub Jelinek <jakub@redhat.com>
8445 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8446 FE_UNDERFLOW on Niagara CPUs.
8448 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8451 2007-08-14 Jakub Jelinek <jakub@redhat.com>
8453 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8454 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8455 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8456 flush should be used or not inside of the function.
8457 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8459 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8460 __thread_start): Use HIDDEN_JUMPTARGET.
8461 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8462 __thread_start): Likewise.
8463 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8465 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8466 Add libc_hidden_proto.
8467 (STRTOF): Add libc_hidden_proto.
8468 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8469 (strtold_l, wcstold_l): Use them as second argument for
8472 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8474 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
8476 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8478 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
8480 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8482 * po/bg.po: New file. From the translation team.
8484 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8486 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8487 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8488 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8489 when each feature was introduced.
8491 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8492 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8493 (CHECK_HASH): New macro.
8494 (PREPARE_VERSION): Use it.
8496 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8497 prototype if not __ASSUME_PSELECT.
8498 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8499 prototype if not __ASSUME_PPOLL.
8501 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8503 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8504 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8507 2007-08-13 Ulrich Drepper <drepper@redhat.com>
8509 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8510 (_libc_vdso_platform_setup): If vDSO is not available point
8511 __vdso_gettimeofday to the vsyscall.
8512 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8513 __vdso_gettimeofday instead of vsyscall.
8515 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8517 * nscd/servicescache.c: Include kernel-features.h.
8518 * nscd/gai.c: Likewise.
8519 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8520 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8521 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8522 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8523 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8524 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8525 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8526 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8527 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8529 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8531 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8532 and _dl_get_origin defines anymore.
8534 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8535 Build fix for systems which might lack POSIX timer support.
8537 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8538 (_libc_vdso_platform_setup): Mangle function pointers before storing
8540 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8541 Demangle vdso pointer before use.
8542 (INTERNAL_VSYSCALL): Likewise.
8544 * elf/cache.c (primes): Mark as const.
8545 Noted by Roland McGrath.
8547 2007-08-01 Andreas Jaeger <aj@suse.de>
8548 Jakub Jelinek <jakub@redhat.com>
8550 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8551 (options): Add option.
8552 (parse_opt): Handle option.
8553 (manual_link): Adjust process_file caller. Call implicit_soname.
8554 (search_dir): Formatting. Use and populate auxiliary cache.
8555 (main): Load and save auxiliary cache.
8556 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
8557 stat64 from fstat64 to caller.
8558 (implicit_soname): New function.
8559 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8560 leave *soname as NULL.
8561 * elf/cache.c: Include libgen.h.
8562 (print_entry, print_cache, compare, save_cache, add_to_cache):
8563 Formatting and cleanups.
8564 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8565 aux_cache_file): New structures.
8566 (AUX_CACHEMAGIC): Define.
8567 (primes): New array.
8568 (aux_hash_size, aux_hash): New variables.
8569 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8570 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8571 load_aux_cache, save_aux_cache): New functions.
8572 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8573 (init_aux_cache, search_aux_cache, add_to_aux_cache,
8574 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8575 (process_file): Adjust prototype.
8577 2007-08-12 Jakub Jelinek <jakub@redhat.com>
8579 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8582 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8584 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8585 r_found_version structure as second parameter.
8586 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8587 (_dl_vdso_vsym): Change type of second parameter accordingly.
8588 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8589 (_libc_vdso_platform_setup): Adjust.
8590 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8591 (_libc_vdso_platform_setup): Likewise.
8593 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8594 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8595 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8596 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8597 * csu/libc-start.c: Pretty printing.
8598 Use VDSO_SETUP if defined.
8599 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8600 and let generic code call into _libc_vdso_platform_setup.
8601 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8602 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8603 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8604 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8605 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8607 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8608 (sysdep_rountines): Add dl-vdso.
8610 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8613 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8614 attribute_hidden to __vdso_gettimeofday prototype.
8616 2007-08-12 Roland McGrath <roland@redhat.com>
8618 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8619 From: Karl Berry <karl@freefriends.org>.
8621 2007-08-11 Ulrich Drepper <drepper@redhat.com>
8623 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8624 an atime update for the files we read.
8626 2007-08-10 Ulrich Drepper <drepper@redhat.com>
8628 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8630 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
8633 * misc/Makefile (routines): Add mkostemp and mkostemp64.
8634 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8635 * misc/mkostemp.c: New file.
8636 * misc/mkostemp64.c: New file.
8637 * stdlib/stdlib.h: Declare the new functions.
8638 * sysdeps/posix/tempname.c: Add new parameter which is added to
8639 the flags for open. Remove __GT_BIGFILE handling.
8640 * stdio-common/tempname.c: Likewise.
8641 * include/stdio.h: Adjust __gen_tempname prototype.
8642 Renumber __GT_* constants.
8643 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8644 * misc/mkdtemp.c: Likewise.
8645 * misc/mkstemp.c: Likewise.
8646 * misc/mkstemp64.c: Likewise.
8647 * misc/mktemp.c: Likewise.
8648 * stdio-common/tempnam.c: Likewise.
8649 * stdio-common/tmpfile.c: Likewise.
8650 * stdio-common/tmpfile64.c: Likewise.
8651 * stdio-common/tmpnam.c: Likewise.
8652 * stdio-common/tmpnam_r.c: Likewise.
8654 2007-08-10 Roland McGrath <roland@frob.com>
8656 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8658 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8659 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8661 2007-08-10 Ulrich Drepper <drepper@redhat.com>
8663 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8665 * nss/nss_files/files-alias.c (internal_setent): Likewise.
8666 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8667 * nss/nss_files/files-have_o_cloexec.c: New file.
8669 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8672 2007-08-10 Jakub Jelinek <jakub@redhat.com>
8674 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8675 ___new_wcstold_l): New weak aliases.
8676 (strtold_l, wcstold_l): Use them as second argument for
8679 2007-08-09 Ulrich Drepper <drepper@redhat.com>
8681 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8682 register in test for error.
8684 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8685 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8687 * po/sv.po: Update from translation team.
8689 2007-08-06 Roland McGrath <roland@redhat.com>
8691 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8692 Remove __strto*_l inlines.
8693 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8694 * stdlib/strtod.c: Add libc_hidden_def.
8695 * stdlib/strtod_l.c: Likewise.
8696 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8697 for __new_strtold and __new_wcstold.
8698 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8700 * stdlib/strtol.c: Add libc_hidden_def.
8701 * stdlib/strtol_l.c: Likewise.
8702 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8705 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8707 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8708 * scripts/data/localplt-generic.data: ... here.
8709 * elf/Makefile (check-data): Get generic file if no other.
8710 ($(objpfx)check-localplt.out): Make target unconditional.
8712 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8715 2007-08-05 Ulrich Drepper <drepper@redhat.com>
8717 * po/zh_CN.po: Updated translation from translation team.
8719 2007-08-05 Jakub Jelinek <jakub@redhat.com>
8721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8722 Don't use CGOTSETUP and CGOTRESTORE macros.
8724 2007-08-04 Roland McGrath <roland@redhat.com>
8726 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8728 2007-08-04 Jakub Jelinek <jakub@redhat.com>
8730 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8731 __extension__ around the whole statement expression.
8733 2007-08-04 Ulrich Drepper <drepper@redhat.com>
8735 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8736 elements during initialization.
8738 * po/pl.po: Updated translation from translation team.
8739 * po/tr.po: Likewise.
8740 * po/nl.po: Likewise.
8742 2007-08-03 Ulrich Drepper <drepper@redhat.com>
8744 * rt/aio.h: Add __nonnull attributes.
8746 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8748 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8749 * stdlib/Makefile (tests): Add tst-strtod5.
8750 (tst-strtod5-ENV): New.
8751 * stdlib/tst-strtod5.c: New file.
8753 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8755 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8758 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8761 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8763 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8766 2007-08-02 Ulrich Drepper <drepper@redhat.com>
8768 * io/Makefile (aux): Add have_o_cloexec.
8769 * include/fcntl.h: Declare __have_o_cloexec.
8770 * io/have_o_cloexec.c: New file.
8771 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8772 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8773 fcntl call if not necessary.
8774 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8777 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8778 Avoid memset, add explicit initialization.
8779 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8780 to the end and change into zero-sized array.
8781 Move lock member to fill a hole on 64-bit platforms.
8783 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8785 * include/stdlib.h: Add __strto*_internal prototypes here.
8786 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8788 * include/wchar.h: Add __wcsto*_internal prototypes.
8789 * sysdeps/generic/inttypes.h: No need to protect the declaration
8790 of the __strto*_internal and __wcsto*_internal members here.
8792 * rt/mqueue.h: Change const to __const and add nonnull attributes.
8794 2007-08-02 Roland McGrath <roland@redhat.com>
8796 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8797 $(inst_bindir)/getconf if possible.
8799 * posix/Makefile ($(objpfx)getconf.speclist): New target.
8800 (generated): Add it.
8801 ($(inst_libexecdir)/getconf): Use it.
8803 2007-08-01 Ulrich Drepper <drepper@redhat.com>
8805 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8806 /proc is faster and sufficient. /sys is still needed for
8809 2007-08-01 Jakub Jelinek <jakub@redhat.com>
8811 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8812 syscall as __fallocate64.
8813 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8814 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8816 2007-07-30 Jakub Jelinek <jakub@redhat.com>
8818 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8821 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8822 if off_t is different rank from size_t.
8824 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8825 uw_frame_state_for): Avoid type punning warnings.
8826 * sysdeps/generic/unwind-dw2-fde-glibc.c
8827 (_Unwind_IteratePhdrCallback): Likewise.
8828 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8829 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8830 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8833 2007-07-31 Ulrich Drepper <drepper@redhat.com>
8835 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8836 total processors using sysfs.
8837 (__get_nprocs): Use sysfs to determine which processors are online.
8839 2007-07-31 Jakub Jelinek <jakub@redhat.com>
8841 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8842 syscall arguments count.
8844 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8846 2007-07-30 Roland McGrath <roland@redhat.com>
8848 * manual/libc.texinfo: Update copyrights, formatting magic, and
8849 @dircategory. From Karl Berry <karl@freefriends.org>.
8851 2007-07-29 Ulrich Drepper <drepper@redhat.com>
8854 * io/Makefile (headers): Add bits/fcntl2.h.
8856 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8858 (__CPU_EQUAL_S): Likewise.
8860 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8861 (tests): Add tst-cpuset.
8862 * posix/sched_cpualloc.c: New file.
8863 * posix/sched_cpufree.c: New file.
8864 * posix/tst-cpuset.c: New file.
8865 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8867 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8868 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8869 macros. Define CPU_*_S macros.
8871 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8873 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8877 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8878 #.0g and value rounded to 1.0.
8879 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8881 2007-07-26 Jakub Jelinek <jakub@redhat.com>
8883 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8884 for int_frac_digits and frac_digits.
8886 * login/logout.c (logout): Avoid aliasing violation.
8887 * login/logwtmp.c (logwtmp): Likewise.
8889 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8891 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8893 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8895 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8897 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8900 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8902 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8904 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8905 char * to avoid warning.
8906 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8908 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8910 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8911 allocate_arrays): Cast second argument to charmap_find_symbol
8912 to char * to avoid warnings.
8914 * locale/programs/repertoire.c (repertoire_new_char): Change
8915 from_nr, to_nr and cnt to unsigned long, adjust printf format
8918 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8919 Cast second argument to new_element to char * to avoid warnings.
8921 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8923 * intl/gettextP.h (struct loaded_domain): Change plural to const
8924 struct expression *.
8925 * intl/plural-eval.c (plural_eval): Change first argument to
8926 const struct expression *.
8927 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8928 argument to const struct expression **.
8929 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8931 * intl/loadmsgcat (_nl_unload_domain): Cast away const
8932 in call to __gettext_free_exp.
8934 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8935 unitialized wstring/wpattern var warnings.
8937 * posix/runtests.c (struct a_test): Make data field const char *.
8939 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8940 vars if not LDBL_MANT_DIG >= 106.
8942 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8944 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8945 __find_specmb to avoid warning.
8947 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8949 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8952 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8955 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8956 tv var when it will be actually used.
8958 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8961 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8962 char array resp. pointer.
8963 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8965 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8966 to const unsigned char **.
8967 (ucs4_to_cns11643): Change second argument to unsigned char *.
8968 * iconvdata/euc-tw.c (BODY): Change endp type to
8969 const unsigned char *.
8970 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8972 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8973 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8974 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8975 types to unsigned char pointers/arrays instead of char.
8976 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8978 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8979 * iconvdata/jis0212.h: Include assert.h.
8980 (ucs4_to_jisx0212): Change second argument to unsigned char *.
8981 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8982 of trying to handle that.
8983 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8985 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8986 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8987 two dimensional const unsigned char arrays.
8988 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8989 Initialize endp to inptr to shut up a warning.
8991 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8994 * time/strptime_l.c (__strptime_internal): Silently ignore
8995 strftime modifiers and field width in recursive calls.
8997 * include/time.h (enum ptime_locale_status): Remove.
8998 (__strptime_internal): Remove decided and era_cnt arguments,
8999 add statep argument.
9000 * time/strptime_l.c (__strptime_internal): Remove decided
9001 and era_cnt arguments, add statep argument. Don't recompute
9002 any fields in recursive calls, only update caller's tm
9003 and state, if recursive call fails, don't change tm nor
9005 (get_alt_number): Adjust.
9006 (recursive): Adjust caller.
9007 (strptime): Likewise.
9008 * time/strptime.c (strptime): Likewise.
9010 2007-07-19 Jakub Jelinek <jakub@redhat.com>
9012 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9013 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9014 if from and to charsets are the same.
9015 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9016 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9017 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9019 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9021 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9022 Don't define wint_t when __need_mbstate_t unless it
9024 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9025 in the typedef if possible.
9026 * wctype/wctype.h (wint_t): Define by including
9027 wchar.h with __need_wint_t instead of including stddef.h
9028 with __need_wint_t and as fallback definining it ourselves.
9029 * iconv/gconv.h (__need_wint_t): Define before including
9031 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9032 or _GLIBCPP_USE_WCHAR_T.
9033 (__need_wchar_t): Don't define
9034 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9035 (__need_wint_t): Don't define before including stddef.h,
9036 define before including wchar.h only if _LIBC or
9037 _GLIBCPP_USE_WCHAR_T.
9038 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9039 * sysdeps/mach/hurd/_G_config.h: Likewise.
9040 * sysdeps/generic/_G_config.h: Likewise.
9041 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9042 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9043 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9044 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9046 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9048 * sysdeps/posix/posix_fallocate64.c: Undefine
9049 __posix_fallocate64_l64 before alias handling.
9050 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9051 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9052 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9053 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9055 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9057 2007-07-23 Jakub Jelinek <jakub@redhat.com>
9059 * locale/programs/ld-collate.c (atwc): New variable.
9060 (add_to_tablewc): New toplevel function, moved from collate_output.
9061 (collate_output): Remove add_to_tablewc nested function.
9063 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9064 (name_insert): New function.
9065 (write_output): Remove hash_table and hash_size vars and name_insert
9068 2007-07-24 Roland McGrath <roland@redhat.com>
9070 * Makerules (install-others-programs-nosubdir): New target.
9071 (install-no-libc.a-nosubdir): Depend on it.
9073 * iconv/Makefile (install-others-programs): Set this instead of
9075 * login/Makefile (install-others-programs): Likewise.
9076 * posix/Makefile (install-others-programs): Likewise.
9078 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9081 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9083 * io/Makefile (tests): Add tst-posix_fallocate.
9084 * io/tst-posix_fallocate.c: New file.
9086 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9089 2007-07-22 Roland McGrath <roland@frob.com>
9091 * hurd/getdport.c: Add missing copyright year update.
9093 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9094 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9096 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9098 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9100 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9101 O_CLOEXEC is needed.
9102 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9103 Avoid additional fcntl to set O_CLOEXEC if not needed.
9104 * nis/nss_compat/compat-initgroups.c: Likewise.
9105 * nis/nss_compat/compat-pwd.c: Likewise.
9106 * nis/nss_compat/compat-spwd.c: Likewise.
9108 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9111 * manual/errno.texi: Change ECANCELED value to 119.
9114 * mach/lock-intern.h: Include <sys/cdefs.h>.
9117 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9121 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9124 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9126 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9128 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9130 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9132 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9134 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9135 descriptor received from nscd.
9137 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9139 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9140 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9141 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9142 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9143 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9144 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9146 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9149 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9152 * login/forkpty.c (forkpty): Close master and slave fds on
9153 fork failure. Patch by
9154 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9156 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9158 * include/features.h (__USE_ISOC95): New define.
9159 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9160 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9161 for -std=iso9899:199409.
9162 * CONFORMANCE: Remove comments about unsupported AMD1.
9164 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9166 * sysdeps/ia64/sched_cpucount.c: New file.
9167 * sysdeps/powerpc/sched_cpucount.c: New file.
9169 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9170 __BEGIN_DECLS/__END_DECLS around the prototype.
9171 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9172 pointer to const cpu_set_t.
9174 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9175 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9176 __need_size_t and include stddef.h.
9177 * sysvipc/sys/msg.h: Likewise.
9178 * posix/sched.h: Likewise.
9179 * hurd/hurd/signal.h (__need_size_t): Define.
9181 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9182 neither does signal.h in pedantic ISO C namespaces. stdio.h
9183 no longer defines wint_t or wchar_t.
9185 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9186 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9187 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9188 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9189 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9190 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9191 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9192 * debug/printf_chk.c (__printf_chk): Likewise.
9193 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9194 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9196 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9199 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9200 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9202 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9205 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9206 * malloc/malloc.h (realloc): Likewise.
9208 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9209 if one of proc_file_chain streams has that fileno.
9210 * stdio-common/Makefile (tests): Add tst-popen2.
9211 * stdio-common/tst-popen2.c: New test.
9213 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9215 * elf/ldconfig.c: Allow GPLv2 or any later version.
9216 * elf/readlib.c: Likewise.
9217 * elf/chroot_canon.c: Likewise.
9218 * elf/cache.c: Likewise.
9219 * nscd/mem.c: Likewise.
9220 * nscd/getpwuid_r.c: Likewise.
9221 * nscd/grpcache.c: Likewise.
9222 * nscd/aicache.c: Likewise.
9223 * nscd/getsrvbynm_r.c: Likewise.
9224 * nscd/nscd.c: Likewise.
9225 * nscd/servicescache.c: Likewise.
9226 * nscd/getsrvbypt_r.c: Likewise.
9227 * nscd/initgrcache.c: Likewise.
9228 * nscd/gethstbyad_r.c: Likewise.
9229 * nscd/gethstbynm2_r.c: Likewise.
9230 * nscd/getgrnam_r.c: Likewise.
9231 * nscd/nscd_setup_thread.c: Likewise.
9232 * nscd/getpwnam_r.c: Likewise.
9233 * nscd/gai.c: Likewise.
9234 * nscd/connections.c: Likewise.
9235 * nscd/dbg_log.c: Likewise.
9236 * nscd/cache.c: Likewise.
9237 * nscd/hstcache.c: Likewise.
9238 * nscd/nscd_conf.c: Likewise.
9239 * nscd/getgrgid_r.c: Likewise.
9240 * nscd/pwdcache.c: Likewise.
9241 * catgets/gencat.c: Likewise.
9242 * locale/programs/linereader.h: Likewise.
9243 * locale/programs/locarchive.c: Likewise.
9244 * locale/programs/ld-paper.c: Likewise.
9245 * locale/programs/locfile-kw.h: Likewise.
9246 * locale/programs/ld-address.c: Likewise.
9247 * locale/programs/xmalloc.c: Likewise.
9248 * locale/programs/ld-time.c: Likewise.
9249 * locale/programs/localedef.c: Likewise.
9250 * locale/programs/simple-hash.c: Likewise.
9251 * locale/programs/xstrdup.c: Likewise.
9252 * locale/programs/ld-numeric.c: Likewise.
9253 * locale/programs/locfile-kw.gperf: Likewise.
9254 * locale/programs/ld-collate.c: Likewise.
9255 * locale/programs/charmap-kw.gperf: Likewise.
9256 * locale/programs/charmap.h: Likewise.
9257 * locale/programs/charmap-kw.h: Likewise.
9258 * locale/programs/config.h: Likewise.
9259 * locale/programs/locfile.c: Likewise.
9260 * locale/programs/ld-ctype.c: Likewise.
9261 * locale/programs/charmap.c: Likewise.
9262 * locale/programs/ld-messages.c: Likewise.
9263 * locale/programs/repertoire.h: Likewise.
9264 * locale/programs/locale.c: Likewise.
9265 * locale/programs/ld-name.c: Likewise.
9266 * locale/programs/linereader.c: Likewise.
9267 * locale/programs/locfile.h: Likewise.
9268 * locale/programs/3level.h: Likewise.
9269 * locale/programs/ld-monetary.c: Likewise.
9270 * locale/programs/ld-measurement.c: Likewise.
9271 * locale/programs/charmap-dir.c: Likewise.
9272 * locale/programs/ld-identification.c: Likewise.
9273 * locale/programs/localedef.h: Likewise.
9274 * locale/programs/charmap-dir.h: Likewise.
9275 * locale/programs/repertoire.c: Likewise.
9276 * locale/programs/simple-hash.h: Likewise.
9277 * locale/programs/ld-telephone.c: Likewise.
9278 * locale/programs/locale-spec.c: Likewise.
9279 * locale/programs/locfile-token.h: Likewise.
9280 * posix/getconf.c: Likewise.
9281 * iconv/dummy-repertoire.c: Likewise.
9282 * iconv/iconv_charmap.c: Likewise.
9283 * iconv/iconvconfig.c: Likewise.
9284 * iconv/iconv_prog.c: Likewise.
9285 * malloc/memusagestat.c: Likewise.
9286 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9288 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9290 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9291 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9292 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9293 check for the first argument.
9295 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9298 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9299 (__tgmath_real_type): Fix if expr is const int or other const
9300 qualified integral type.
9301 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9302 expressions and handle const qualified arguments.
9303 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9304 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9305 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9306 statement expressions.
9307 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9308 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9309 (__TGMATH_UNARY_IMAG): Define.
9310 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9311 * math/Makefile (tests): Add test-tgmath2.
9312 (CFLAGS-test-tgmath2.c): Add.
9313 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9314 count_cfloat, count_cldouble): New variables.
9316 (main): Check number of complex calls as well.
9317 (F(compile_test)): Add complex tests and tests with const qualified
9319 (y, z, ccount): Define.
9320 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9321 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9322 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9323 F(cproj)): New functions.
9324 * math/test-tgmath2.c: New test.
9326 2007-07-11 Jakub Jelinek <jakub@redhat.com>
9329 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9330 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9332 * dlfcn/Makefile (distribute): Add glreflib3.c.
9333 (module-names): Add glreflib3.
9334 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9336 (LDFLAGS_glreflib3.so): New.
9337 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9339 * dlfcn/glreflib3.c: New file.
9341 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9342 returned -1, return NULL.
9343 * intl/explodename.c (_nl_explode_name): Return -1 if
9344 _nl_normalize_codeset failed.
9346 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9348 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9349 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9350 and avoid branch misspredicts for > 31 bytes memset case.
9351 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9352 Remove toc ref to __cache_line_size.
9354 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9355 to get ISA-V2.0 branch hints.
9356 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9357 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9358 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9359 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9360 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9361 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9362 Remove toc ref to __cache_line_size.
9364 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9365 Include math_ldbl_opt.h.
9367 2007-07-10 Ulrich Drepper <drepper@redhat.com>
9370 * time/strptime_l.c (__strptime_internal): Implement greedy
9371 matching of weekday and month names.
9373 2007-07-09 Roland McGrath <roland@redhat.com>
9375 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9376 (ELF_NOTE_ABI): Use it.
9377 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9379 2007-07-09 Ulrich Drepper <drepper@redhat.com>
9381 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9382 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9384 2007-07-07 Ulrich Drepper <drepper@redhat.com>
9387 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9388 in loop to look for conversion specifier to avoid testing of
9390 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9391 * stdio-common/bug18.c: New file.
9392 * stdio-common/bug18a.c: New file.
9393 * stdio-common/bug19.c: New file.
9394 * stdio-common/bug19a.c: New file.
9396 2007-07-05 Mike Frysinger <vapier@gentoo.org>
9398 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9401 2007-07-01 Jakub Jelinek <jakub@redhat.com>
9403 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9404 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
9405 Return NULL if mmap failed instead of asserting it does not.
9406 (calloc): Check for integer overflow.
9408 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9411 2007-07-03 Jakub Jelinek <jakub@redhat.com>
9414 * nis/nss-default.c: Include errno.h.
9415 (init): Preserve errno.
9417 2007-07-02 Ulrich Drepper <drepper@redhat.com>
9419 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9421 2007-06-30 Ulrich Drepper <drepper@redhat.com>
9423 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9425 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9427 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9429 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9431 * sysdeps/s390/dl-procinfo.c: New file.
9432 * sysdeps/s390/dl-procinfo.h: New file.
9433 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9435 2007-06-29 Jakub Jelinek <jakub@redhat.com>
9437 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9438 in PT_NOTE segments with multiple notes.
9439 * elf/readelflib.c (process_elf_file): Likewise.
9441 2007-06-22 Ulrich Drepper <drepper@redhat.com>
9443 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9446 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9448 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9450 2007-06-13 Jakub Jelinek <jakub@redhat.com>
9452 * include/link.h: Don't include rtld-lowlevel.h.
9453 (struct link_map): Remove l_scope_lock.
9454 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9455 (_dl_scope_free_list): New field (variable) in _rtld_global.
9456 (DL_LOOKUP_SCOPE_LOCK): Remove.
9457 (_dl_scope_free): New prototype.
9458 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9459 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9460 (_dl_profile_fixup): Likewise.
9461 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
9462 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9463 THREAD_GSCOPE_RESET_FLAG around it.
9464 * elf/dl-close.c (_dl_close_worker): Don't use
9465 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
9466 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
9467 scopes were queued or if l_scope_mem has been abandoned.
9468 * elf/dl-open.c (_dl_scope_free): New function.
9469 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
9470 * elf/dl-support.c (_dl_scope_free_list): New variable.
9471 * elf/dl-lookup.c (add_dependency): Remove flags argument.
9472 Remove DL_LOOKUP_SCOPE_LOCK handling.
9473 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
9475 * elf/dl-object.c (_dl_new_object): Don't use
9476 __rtld_mrlock_initialize.
9478 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9480 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9482 (rtld_global_ro): Likewise.
9484 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9486 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9487 Move PT_LOAD checking to...
9488 (_dl_addr_inside_object): ... here, new function.
9489 * elf/dl-sym.c (do_sym): If not l_contiguous,
9490 call _dl_addr_inside_object.
9491 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9492 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9493 * elf/dl-open.c (dl_open_worker): Likewise.
9494 (_dl_addr_inside_object): New function if IS_IN_rtld.
9495 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9496 holes are present or are PROT_NONE protected.
9497 * include/link.h (struct link_map): Add l_contiguous field.
9498 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9500 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9501 Tomas Janousek <tjanouse@redhat.com>
9502 Ulrich Drepper <drepper@redhat.com>
9505 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9506 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9508 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9509 unused member a bitmap.
9510 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9511 servers are configured.
9513 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9515 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9517 2007-06-17 Andreas Schwab <schwab@suse.de>
9519 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9521 2007-06-16 Andreas Jaeger <aj@suse.de>
9524 * sysdeps/unix/sysv/linux/sys/ptrace.h
9525 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9526 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9527 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9528 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9529 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9531 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9532 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9533 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9534 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9536 2007-06-16 Ulrich Drepper <drepper@redhat.com>
9539 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9540 determining whether there are IPv4/IPv6 addresses, ignore loopback
9543 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9545 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9546 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9547 as the return type. Change type of "r" variable to CMPtype.
9548 * soft-fp/eqsf2.c (__eqsf2): Likewise.
9549 * soft-fp/eqtf2.c (__eqtf2): Likewise.
9550 * soft-fp/gedf2.c (__gedf2): Likewise.
9551 * soft-fp/gesf2.c (__gesf2): Likewise.
9552 * soft-fp/getf2.c (__getf2): Likewise.
9553 * soft-fp/ledf2.c (__ledf2): Likewise.
9554 * soft-fp/lesf2.c (__lesf2): Likewise.
9555 * soft-fp/letf2.c (__letf2): Likewise.
9556 * soft-fp/unorddf2 (__unorddf2): Likewise.
9557 * soft-fp/unordsf2 (__unordsf2): Likewise.
9558 * soft-fp/unordtf2 (__unordtf2): Likewise.
9560 2007-06-09 Ulrich Drepper <drepper@redhat.com>
9562 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9563 make sure gcc doesn't mess around with this.
9565 2007-06-08 Ulrich Drepper <drepper@redhat.com>
9567 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9569 2007-06-08 Jakub Jelinek <jakub@redhat.com>
9571 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9572 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9573 at most once per _dl_close_worker.
9575 2007-06-08 Ulrich Drepper <drepper@redhat.com>
9577 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9578 __sched_cpucount as const.
9579 * posix/sched_cpucount.c: Adjust.
9581 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9582 instruction for counting bits.
9583 * sysdeps/x86_64/sched_cpucount.c: New file.
9585 2007-06-07 Ulrich Drepper <drepper@redhat.com>
9587 * configure.in: Avoid variable named BASH.
9588 * config.make.in: Likewise.
9589 Patch in part by Mike Frysinger.
9591 2007-06-06 Jakub Jelinek <jakub@redhat.com>
9594 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9595 pseudo-zeros as zero.
9596 * sysdeps/x86_64/ldbl2mpn.c: New file.
9597 * sysdeps/ia64/ldbl2mpn.c: New file.
9599 2007-06-04 Jakub Jelinek <jakub@redhat.com>
9601 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9602 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9603 Remove unreachable code at the end.
9605 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9607 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9608 ldbl-128ibm in comment.
9609 (fpclassifyl): Correct classification of denormals.
9610 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9611 return value for MIN denormal. Rewrite using long double math too
9612 correctly handle denormals and canonicalize the results.
9614 2007-06-05 Jakub Jelinek <jakub@redhat.com>
9616 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9617 (__mpn_construct_long_double): Fix conversion where result ought
9618 to be smaller than __LDBL_MIN__, or the low double should be
9619 denormal. Fix decision where to negate low double - honor round
9621 * stdio-common/tst-sprintf2.c: Include string.h.
9622 (COMPARE_LDBL): Define.
9623 (TEST): Also test whether a string hexadecimal float representation
9624 can be parsed back to the number.
9625 (main): Add a couple of further tests.
9627 2007-06-04 Jakub Jelinek <jakub@redhat.com>
9629 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9630 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9631 is non-zero, but smaller than 2 * __DBL_MIN__.
9632 * stdio-common/tst-sprintf2.c: New test.
9633 * stdio-common/Makefile (tests): Add tst-sprintf2.
9635 * math/test-misc.c (main): Don't run last batch of tests with
9636 IBM long double format.
9638 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9640 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9641 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9642 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9643 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9644 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9645 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9646 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9647 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9648 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9649 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9655 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9668 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9670 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9673 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9675 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9676 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9677 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9678 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9679 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9680 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9681 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9682 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9684 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
9686 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9687 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9688 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9689 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9690 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9691 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9692 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9693 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9695 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9697 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9698 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9699 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9700 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9702 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
9704 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9705 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9707 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
9709 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9710 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9711 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9712 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9714 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
9716 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9717 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9719 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9721 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9722 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9724 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9725 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9726 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9727 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9729 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
9731 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9732 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9733 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9734 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9736 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
9738 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9739 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9740 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9741 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9742 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9743 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9745 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9747 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9748 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9749 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9750 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9752 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
9754 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9755 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9756 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9757 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9758 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9759 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9760 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9761 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9762 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9763 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9764 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9765 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9766 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9767 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9768 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9769 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9771 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9773 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9774 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9776 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9778 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9779 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9781 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9783 * sysdeps/powerpc/powerpc32/970/Implies: New file.
9784 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9785 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9786 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9787 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9788 * sysdeps/powerpc/powerpc64/970/Implies: New file.
9789 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9790 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9791 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9792 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9794 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9796 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9798 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
9800 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9801 branch miss-predicts. Ensure that cache line crossing does not impact
9804 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
9806 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9807 "../../powerpc32/power4/memcopy.h".
9808 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9809 "../../powerpc32/power4/wordcopy.c".
9811 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9813 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9814 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9815 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9816 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9817 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9818 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9820 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
9822 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9824 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9826 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9827 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9828 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9829 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9830 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9831 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9832 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9833 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9835 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
9837 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9839 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9841 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9842 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9843 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9844 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9845 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9846 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9847 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9849 2007-05-29 Roland McGrath <roland@redhat.com>
9851 * po/Makefile (po-sed-cmd): New variable.
9852 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9854 2007-05-29 Ulrich Drepper <drepper@redhat.com>
9856 * crypt/md5-crypt.c: Fix comment.
9858 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9859 of crashing. When this is the case or if the reply is malformed,
9860 don't try to close the new file descriptor since it does not
9862 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9864 2007-05-28 Jakub Jelinek <jakub@redhat.com>
9866 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9867 if __NR_utimensat is not defined.
9869 2007-05-26 Ulrich Drepper <drepper@redhat.com>
9871 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9873 2007-05-25 Jakub Jelinek <jakub@redhat.com>
9875 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9876 (open): Fix comment typos. Don't call __open_2 if flags
9877 is a compile time constant without O_CREAT.
9878 (__open64_2): Add nonnull attribute.
9879 (open64): Fix comment typos. Don't call __open64_2 if flags
9880 is a compile time constant without O_CREAT.
9881 (__openat_2): Add nonnull attribute, fix nonnull attribute
9883 (openat): Fix comment typos. Don't call __openat_2 if flags
9884 is a compile time constant without O_CREAT.
9885 (__openat64_2): Add nonnull attribute, fix nonnull attribute
9887 (openat64): Fix comment typos. Don't call __openat64_2 if flags
9888 is a compile time constant without O_CREAT.
9890 2007-05-24 Ulrich Drepper <drepper@redhat.com>
9892 * Makerules (sysd-rules): Define PTW for ptw-* files.
9893 * Versions: Define GLIBC_2.7 for libc.
9894 * include/stdio.h: Declare __fortify_fail.
9895 * debug/fortify_fail.c: New file.
9896 * debug/Makefile (routines): Add fortify_fail.
9897 * debug/chk_fail.c: Use __fortify_fail.
9898 * debug/stack_chk_fail.c: Likewise.
9899 * io/Versions: Export __open_2, __open64_2, __openat_2, and
9900 __openat64_2 for GLIBC_2.7.
9901 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9902 * io/open.c: Define *_2 variant of function which checks for O_CREAT
9903 and fails if necessary.
9904 * io/open64.c: Likewise.
9905 * io/openat.c: Likewise.
9906 * io/openat64.c: Likewise.
9907 * sysdeps/unix/sysv/linux/open64.c: Likewise.
9908 * sysdeps/unix/sysv/linux/openat.c: Likewise.
9909 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9910 * io/bits/fcntl2.h: New file.
9911 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9913 * include/bits/fcntl2.h: New file.
9914 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9916 * sysdeps/unix/sysv/linux/open_2.c: New file.
9918 2007-05-21 Ulrich Drepper <drepper@redhat.com>
9920 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9921 as second parameter to handle_intel.
9923 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9926 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9928 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
9929 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9931 * sysdeps/x86_64/memcpy.S: Complete rewrite.
9932 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9933 Patch by Evandro Menezes <evandro.menezes@amd.com>.
9935 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9937 2007-05-21 Jakub Jelinek <jakub@redhat.com>
9940 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9941 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9942 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9944 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9947 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9948 reinitialize workend at the start of each do_positional format spec
9949 loop, free workstart before do_positional loops.
9950 (printf_unknown): Fix size of work_buffer.
9951 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9953 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9954 (public_sET_STATe): If ms->version < 3, put all chunks into
9955 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9958 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9959 * malloc/hooks.c: Likewise.
9960 * malloc/arena.c: Likewise.
9961 * malloc/malloc.c (do_check_malloc_state): Don't assert
9962 n_mmaps is not greater than n_mmaps_max. This removes the need
9963 for the previous change.
9965 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9968 2007-05-19 Ulrich Drepper <drepper@redhat.com>
9970 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9971 Define for kernel >= 2.6.22.
9973 2007-05-18 Ulrich Drepper <drepper@redhat.com>
9975 * elf/dl-close.c (_dl_close_worker): When removing object from
9976 global scope, wait for all lookups to finish afterwards.
9977 * elf/dl-open.c (add_to_global): When global scope array must
9978 grow, allocate a new one and free old array only after all
9980 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9981 (_dl_lookup_symbol_x): Likewise.
9982 * elf/dl-support.c: Define _dl_wait_lookup_done.
9983 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9984 _dl_wait_lookup_done.
9986 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9987 not overlapping with arena.
9989 * malloc/mcheck.c (reallochook): If size==0, free the block.
9991 * rt/tst-shm.c: Use fstat64 instead of fstat.
9993 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9994 __NR_sync_file_range is not defined.
9996 2007-05-17 Ulrich Drepper <drepper@redhat.com>
9998 Dummy files to prevent stub versions from being used.
9999 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10000 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10001 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10002 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10004 * version.h (VERSION): Set to 2.6.90.
10006 2007-05-14 Ulrich Drepper <drepper@redhat.com>
10008 * version.h (VERSION): Define to 2.6.
10009 * include/features.h (__GLIBC_MINOR__): Define to 6.
10011 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10013 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10016 2007-05-13 Ulrich Drepper <drepper@redhat.com>
10018 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10019 number of mmaps. n_mmaps_max is the target.
10020 * malloc/hooks.c: Likewise.
10021 * malloc/arena.c: Likewise.
10023 2007-05-12 Andreas Jaeger <aj@suse.de>
10025 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10028 2007-05-11 Ulrich Drepper <drepper@redhat.com>
10030 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10031 adding new variables.
10033 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10034 optimize. Completely extend global scope array before making the
10035 new entries visible.
10037 2007-05-10 Ulrich Drepper <drepper@redhat.com>
10039 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10040 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10043 * include/link.h: Move l_version and l_nversion members around to
10046 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10048 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10049 (__sched_setaffinity_new): If syscall was successful and
10050 RESET_VGETCPU_CACHE is defined, use it before returning.
10051 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10053 * io/sys/stat.h: Make sure struct timespec is defined for
10056 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10058 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10059 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10060 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10061 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10062 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10063 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10064 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10065 * io/sys/stat.h: Declare utimensat, futimens.
10066 * io/utimensat.c: New file.
10067 * io/futimens.c: New file.
10068 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10069 * sysdeps/unix/sysv/linux/futimens.c: New file.
10070 * io/Makefile (routines): Add utimensat, futimens.
10071 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10072 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10073 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10076 * include/sys/cdefs.h: Redefine __nonnull so that test for
10077 incorrect parameters in the libc code itself are not omitted.
10079 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10081 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10082 exception in addition to inexact when asked to raise only FE_INEXACT.
10085 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10088 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10091 * string/strfry.c (strfry): Make result more random.
10093 2007-05-07 Richard Henderson <rth@redhat.com>
10095 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10096 if __NO_LONG_DOUBLE_MATH.
10097 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10098 available in the compiler, add .arch directive to the assembly.
10100 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10102 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10103 compat_symbol to GLIBC_2_1.
10104 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10105 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10106 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10107 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10108 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10109 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10110 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10112 (__isnanl): New compat_symbol.
10114 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10115 Jakub Jelinek <jakub@redhat.com>
10117 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10118 (new_heap): Initialize mprotect_size.
10119 (grow_heap): When growing, only mprotect from mprotect_size till
10120 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10121 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10123 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10124 Peter Bergner <bergner@us.ibm.com>
10126 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10127 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10128 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10129 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10130 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10131 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10132 Call __fe_mask_env() if all FP exceptions disabled.
10133 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10134 from old FPSCR to new fenv to propagate DFP rounding modes.
10135 Call __fe_mask_env() if FP exceptions previously enabled.
10136 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10137 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10138 transitioning from all exceptions disabled to any exception enabled
10140 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10141 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10142 when transitioning from all exceptions disabled to any exception
10143 enabled or visa versa.
10144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10151 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10154 * posix/unistd.h: Remove __THROW from fdatasync.
10156 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10159 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10161 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10163 * stdio-common/vfprintf.c (process_string_arg): Optimize
10164 ridiculous precision in wide char code printing multi-byte string.
10165 Reported by Jim Meyering <jim@meyering.net>.
10168 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10169 boundaries to work around systems with overlapping binary loading.
10170 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10172 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10174 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10175 __mbsnrtowcs after last change.
10177 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10178 (get_ident): Likewise.
10180 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10182 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10183 with setting the sticky bit.
10184 * math/test-misc.c (main): Add more truncation tests.
10186 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10188 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10189 double in the function declaration.
10190 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10191 double in the function declaration.
10192 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10193 float in the function declaration.
10194 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10195 float in the function declaration.
10197 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10198 denormal operands. Do not generate FP_EX_DENORM exception.
10199 (FP_UNPACK_RAW_EP): Ditto.
10200 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10201 undefined _FP_UNPACK_RAW_E.
10202 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10203 undefined _FP_UNPACK_RAW_EP.
10204 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10205 undefined _FP_PACK_RAW_E.
10206 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10207 undefined _FP_PACK_RAW_EP.
10209 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10211 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10214 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10215 Jakub Jelinek <jakub@redhat.com>
10217 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10218 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10220 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10222 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10224 * math/test-misc.c (main): Add tests for rounding long double
10225 values close to smallest double denormalized value to double.
10227 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10229 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10230 condition for truncating to 0. Set sticky bit for such
10233 2007-05-02 Jakub Jelinek <jakub@redhat.com>
10235 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10236 fixed length array for ignore.
10238 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10241 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10242 stack for large precisions.
10243 * stdio-common/test-vfprintf.c (main): Add test for large
10246 2007-04-30 Jakub Jelinek <jakub@redhat.com>
10248 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10250 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10253 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10254 account in the size check.
10255 * resolv/tst-inet_ntop.c: New test.
10256 * resolv/Makefile (tests): Add tst-inet_ntop.
10258 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10259 Jakub Jelinek <jakub@redhat.com>
10262 * malloc/malloc.c: Keep separate list for first blocks on the bin
10263 lists with a given size. This helps skipping over list elements
10264 we know won't fit in two places.
10265 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10267 2007-04-28 Ulrich Drepper <drepper@redhat.com>
10270 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10271 label to Teredo tunnel addresses 2001://32.
10273 2007-04-27 Ulrich Drepper <drepper@redhat.com>
10275 * locale/programs/ld-collate.c (collate_read): Allow order_start
10278 * locale/programs/ld-collate.c (collate_read): Fix printing of
10282 * locale/C-translit.h.in: Add entry for U2044.
10285 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10286 hexa-decimal floats without exponent.
10287 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10289 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10291 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10292 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10293 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10294 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10296 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10299 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10301 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10302 of 0 after the out_fail label.
10304 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10307 * iconv/gconv_charset.h (strip): Allow ':'.
10308 * iconv/iconv_open.c (iconv_open): Adjust comment.
10310 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10312 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10315 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10318 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10319 alignment of buffer and tmp_buffer.
10320 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10321 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10322 alignment of buffer.
10323 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10324 bigger than INT_MAX.
10325 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10326 h_errnop arguments. Fail if buflen is too small.
10327 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10329 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10332 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10333 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10335 2007-04-22 Roland McGrath <roland@redhat.com>
10337 * elf/elf.h (NT_PRXFPREG): New macro.
10339 2007-04-19 Andreas Jaeger <aj@suse.de>
10342 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10343 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10346 2007-04-19 Ulrich Drepper <drepper@redhat.com>
10348 * include/sys/mman.h: Mark madvise hidden.
10349 * misc/madvise.c: Add libc_hidden_def.
10351 2007-04-06 Jakub Jelinek <jakub@redhat.com>
10353 * nis/nis_domain_of.c (__nis_domain_of): New function.
10354 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10355 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10356 * nis/nis_call.c (rec_dirsearch): Likewise.
10357 (first_shoot): Likewise. Remove search_parent_first argument.
10358 (struct nis_server_cache): Rename search_parent_first field
10360 (nis_server_cache_search, nis_server_cache_add): Rename
10361 search_parent_first argument to search_parent.
10362 (__nisfind_server): Likewise. If search_parent, call
10365 2007-04-18 Ulrich Drepper <drepper@redhat.com>
10367 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10369 2007-04-17 Ulrich Drepper <drepper@redhat.com>
10372 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10374 2007-04-16 Ulrich Drepper <drepper@redhat.com>
10377 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10379 2007-04-15 Jakub Jelinek <jakub@redhat.com>
10381 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10382 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10383 current number of locales in SUPPORTED.
10384 (create_archive): Initialize serial.
10385 (enlarge_archive): Preserve aliases rather than duplicating
10388 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10390 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10391 after _IO_un_link, not before it.
10393 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10394 special case handling when wcp == wstartp + 1. Fix a comment typo.
10395 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10397 2007-03-30 Jakub Jelinek <jakub@redhat.com>
10399 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10400 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10401 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10403 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10404 _IO_file_xsgetn_maybe_mmap): Likewise.
10405 * libio/oldfileops.c (old_do_write): Likewise.
10406 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10407 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10408 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10409 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10410 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10411 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10412 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10413 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10414 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10415 _IO_file_underflow, _IO_file_underflow_mmap,
10416 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10417 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10418 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10419 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10420 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10421 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10422 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10423 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10424 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10425 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10426 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10427 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10428 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10429 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10430 _IO_adjust_column_internal, _IO_default_uflow_internal,
10431 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10432 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10433 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10434 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10435 _IO_file_close_it_internal, _IO_file_underflow_internal,
10436 _IO_file_overflow_internal, _IO_file_attach_internal,
10437 _IO_file_fopen_internal, _IO_file_sync_internal,
10438 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10439 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10440 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10441 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10442 _IO_seekpos_unlocked): Likewise.
10443 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10444 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10446 2007-04-16 Jakub Jelinek <jakub@redhat.com>
10448 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10449 argument in xmalloc size computation.
10451 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10453 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10454 math_opt_barrier and math_force_eval macros.
10456 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10459 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10460 * sysdeps/i386/fpu/math_private.h: New file.
10461 * sysdeps/x86_64/fpu/math_private.h: New file.
10462 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10463 math_force_eval macros. Use "+m" constraint on asm rather than
10465 * math/s_nextafter.c (__nextafter): Likewise.
10466 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10468 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10469 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10470 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10471 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10472 math_opt_barrier and math_force_eval macros.
10473 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10474 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10475 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10476 (__nexttoward): Use math_opt_barrier and
10477 math_force_eval macros. Use "+m" constraint on asm rather than
10478 "=m" and "m". Only use asm to force double result if
10479 FLT_EVAL_METHOD is 2.
10480 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10481 (__nexttowardf): Use math_opt_barrier and
10482 math_force_eval macros. Use "+m" constraint on asm rather than
10483 "=m" and "m". Only use asm to force double result if
10484 FLT_EVAL_METHOD is not 0.
10485 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10486 (__nexttowardf): Use math_opt_barrier and
10487 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10488 x to float using asm.
10489 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10490 (__nldbl_nexttowardf): Use math_opt_barrier and
10491 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10492 x to float using asm.
10493 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10494 (__nexttowardf): Use math_opt_barrier and math_force_eval
10495 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10496 * math/bug-nextafter.c (zero, inf): New variables.
10497 (main): Add new tests.
10498 * math/bug-nexttoward.c (zero, inf): New variables.
10499 (main): Add new tests.
10501 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10504 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10505 exceptions both in SW and MXCSR.
10506 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10507 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10508 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10509 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10510 in MXCSR if SSE is available.
10511 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10513 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10515 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10516 Return 0 rather than 1.
10517 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10518 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10519 * math/test-fenv.c (feholdexcept_tests): New function.
10522 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
10525 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10528 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10531 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10532 Reported by David Anderson <davea42@earthlink.net>.
10534 2007-04-07 Ulrich Drepper <drepper@redhat.com>
10536 * posix/sys/wait.h: Remove unnecessary forward declaration.
10538 2007-04-05 Jakub Jelinek <jakub@redhat.com>
10540 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10541 with obj->do_servers after first_shoot.
10543 2007-04-03 Ulrich Drepper <drepper@redhat.com>
10545 * posix/Makefile (routines): Add sched_cpucount.
10546 (tests): Add tst-cpucount.
10547 * posix/sched_cpucount.c: New file.
10548 * posix/tst-cpucount.c: New file.
10549 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10550 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
10551 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10552 * posix/sched.h: Define CPU_COUNT.
10554 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10556 * posix/fnmatch.c (STRUCT): Define.
10557 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10558 * posix/fnmatch_loop.c (struct STRUCT): New type.
10559 (FCT): Add ends argument. If ends != NULL and normal * is
10560 seen in the pattern, store current pattern and string pointers
10561 and return. Adjust recursive calls.
10562 (EXT): Adjust FCT callers.
10563 (STRUCT): Undef at the end of the file.
10564 * posix/Makefile (tests): Add tst-fnmatch2.
10565 * posix/tst-fnmatch2.c: New test.
10567 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10569 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10572 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10573 Change last argument to unsigned int.
10575 2007-03-23 Jakub Jelinek <jakub@redhat.com>
10577 * scripts/check-local-headers.sh: Filter out sys/capability.h.
10579 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10581 * config.h.in (HAVE_LIBCAP): Add.
10582 * nscd/selinux.h: Include sys/capability.h rather than non-existent
10583 sys/capabilities.h.
10584 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10585 free_caps. Cast away const from 4th cap_set_flag argument.
10587 2007-03-26 Ulrich Drepper <drepper@redhat.com>
10589 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10591 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10592 Add sync_file_range.
10593 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10595 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
10597 * sysdeps/powerpc/bits/atomic.h
10598 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10599 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10600 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10601 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10602 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10603 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10604 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10605 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10606 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10607 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10608 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10609 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10610 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10611 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10612 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10613 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10614 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10615 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10616 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10617 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10619 2007-03-20 Jakub Jelinek <jakub@redhat.com>
10621 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10622 (__cache_line_size): Define the variable here. Add
10623 attribute_hidden, remove weak_extern.
10624 (__libc_start_main): Set __cache_line_size
10626 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10627 (__cache_line_size): Define the variable here. Add
10628 attribute_hidden, remove weak_extern.
10629 (DL_PLATFORM_AUXV): Set __cache_line_size
10631 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10632 weak_extern, add attribute_hidden.
10633 (__elf_machine_runtime_setup): Assume __cache_line_size is always
10635 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10637 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10639 2007-03-26 Jakub Jelinek <jakub@redhat.com>
10642 * timezone/africa: Update from tzdata2007d.
10643 * timezone/asia: Likewise.
10644 * timezone/australasia: Likewise.
10645 * timezone/backward: Likewise.
10646 * timezone/europe: Likewise.
10647 * timezone/iso3166.tab: Likewise.
10648 * timezone/leapseconds: Likewise.
10649 * timezone/northamerica: Likewise.
10650 * timezone/southamerica: Likewise.
10651 * timezone/zone.tab: Likewise.
10653 * timezone/private.h: Update from tzcode2007d.
10654 * timezone/zdump.c: Likewise.
10655 * timezone/zic.c: Likewise.
10657 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10659 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10660 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10662 (nis_server_cache_search, nis_server_cache_add): New functions.
10663 (__nisfind_server): Use them. Add dbp and flags argument, if
10664 call __nisbind_create.
10665 (__nisbind_create): Add server_used and current_ep arguments,
10666 only call __nis_findfastest if server_used is ~0.
10667 (__do_niscall2, __prepare_niscall): Adjust callers.
10668 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10669 ckey_cache_euid, ckey_cache_lock): New variables.
10670 (get_ckey): New function.
10671 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10672 __pmap_getnisport. Save __pmap_getnisport result in
10673 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
10675 * nis/nis_lookup.c (nis_lookup): Likewise.
10676 * nis/nis_table.c (nis_list): Likewise.
10677 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10680 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10681 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10682 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10683 _nss_nisplus_getservbyport_r): Likewise.
10684 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10685 _nss_nisplus_getnetbyaddr_r): Likewise.
10686 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10687 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10688 _nss_nisplus_getntohost_r): Likewise.
10689 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10690 _nss_nisplus_getrpcbynumber_r): Likewise.
10692 2007-03-20 Jakub Jelinek <jakub@redhat.com>
10694 * configure.in (libc_cv_gnu89_inline): Only do compile test.
10695 * configure: Rebuilt.
10697 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10699 * soft-fp/extended.h (_FP_UNION_E): Likewise.
10701 2006-06-07 Joseph Myers <joseph@codesourcery.com>
10704 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10707 2007-03-18 Jakub Jelinek <jakub@redhat.com>
10709 * nscd/gai.c: Include alloca.h.
10710 (__libc_use_alloca): Define.
10712 2007-03-16 Jakub Jelinek <jakub@redhat.com>
10714 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10716 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10717 (DL_DST_REQUIRED): Adjust user.
10719 * include/dlfcn.h (struct link_map): New forward decl.
10721 * inet/getnameinfo.c: Include stddef.h.
10722 (getnameinfo): Use offsetof.
10724 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10726 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10728 * string/strerror_l.c: Include stdlib.h.
10730 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10731 * config.make.in (gnu89-inline-CFLAGS): New variable.
10732 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10734 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10735 * argp/argp.h: Use it.
10736 * bits/mathinline.h: Likewise.
10737 * bits/sigset.h: Likewise.
10738 * bits/string.h: Likewise.
10739 * ctype/ctype.h: Likewise.
10740 * hurd/hurd.h: Likewise.
10741 * hurd/hurd/fd.h: Likewise.
10742 * hurd/hurd/port.h: Likewise.
10743 * hurd/hurd/signal.h: Likewise.
10744 * hurd/hurd/threadvar.h: Likewise.
10745 * hurd/hurd/userlink.h: Likewise.
10746 * io/sys/stat.h: Likewise.
10747 * libio/bits/stdio.h: Likewise.
10748 * libio/bits/stdio2.h: Likewise.
10749 * mach/lock-intern.h: Likewise.
10750 * mach/mach/mig_support.h: Likewise.
10751 * math/bits/cmathcalls.h: Likewise.
10752 * posix/bits/unistd.h: Likewise.
10753 * socket/bits/socket2.h: Likewise.
10754 * stdlib/bits/stdlib.h: Likewise.
10755 * stdlib/stdlib.h: Likewise.
10756 * string/argz.h: Likewise.
10757 * string/bits/string2.h: Likewise.
10758 * string/bits/string3.h: Likewise.
10759 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10760 * sysdeps/generic/inttypes.h: Likewise.
10761 * sysdeps/generic/machine-lock.h: Likewise.
10762 * sysdeps/generic/machine-sp.h: Likewise.
10763 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10764 * sysdeps/i386/i486/bits/string.h: Likewise.
10765 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10766 * sysdeps/mach/alpha/machine-lock.h: Likewise.
10767 * sysdeps/mach/alpha/machine-sp.h: Likewise.
10768 * sysdeps/mach/i386/machine-lock.h: Likewise.
10769 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10770 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10771 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10772 * sysdeps/s390/bits/string.h: Likewise.
10773 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10774 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10775 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10776 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10777 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10778 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10779 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10780 * wcsmbs/bits/wchar2.h: Likewise.
10781 * wcsmbs/wchar.h: Likewise.
10782 * stdlib/gmp.h: Likewise. Include <features.h> to get
10783 __extern_inline definition.
10785 2007-03-15 Jakub Jelinek <jakub@redhat.com>
10787 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10791 * math/libm-test.inc (log_test): Test -Inf and NaN.
10792 (log10_test, log1p_test, log2_test): Test -Inf.
10793 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10794 FE_INVALID when argument is qNaN.
10795 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10796 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10797 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10798 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10799 andb $1, %ah with testb $1, %ah, don't test for parity, instead
10800 testb $4, %ah and jump if non-zero.
10801 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10802 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10805 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10806 ancestors with the same depths.
10807 Patch by Niels Moeller <nisse@lysator.liu.se>.
10808 (filter_doc): Don't crash if argp is NULL.
10809 * argp/Makefile (tests): Add tst-argp2.
10810 * argp/tst-argp2.c: New test.
10813 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10815 (updwtmp_file): Likewise.
10818 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10819 (inet6_opt_append): Don't check extlen is big enough if extbuf
10821 (inet6_opt_finish): Likewise.
10822 * inet/Makefile (tests): Add test-inet6_opt.
10823 * inet/test-inet6_opt.c: New test.
10825 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10826 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10827 NLMSG_ERR. Instead use a page sized buffer.
10828 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10831 2007-03-14 Richard Henderson <rth@redhat.com>
10833 * sysdeps/alpha/fpu/s_llround.c: New file.
10834 * sysdeps/alpha/fpu/s_llroundf.c: New file.
10835 * sysdeps/alpha/fpu/s_lround.c: New file.
10836 * sysdeps/alpha/fpu/s_lroundf.c: New file.
10837 * sysdeps/alpha/fpu/s_round.c: New file.
10838 * sysdeps/alpha/fpu/s_roundf.c: New file.
10839 * sysdeps/alpha/fpu/s_trunc.c: New file.
10840 * sysdeps/alpha/fpu/s_truncf.c: New file.
10842 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10843 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10844 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10845 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10846 * sysdeps/alpha/fpu/s_rint.c: Likewise.
10847 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10849 * sysdeps/alpha/fpu/s_fmax.S: New file.
10850 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10851 * sysdeps/alpha/fpu/s_fmin.S: New file.
10852 * sysdeps/alpha/fpu/s_fminf.S: New file.
10853 * sysdeps/alpha/fpu/s_isnan.c: New file.
10854 * sysdeps/alpha/fpu/s_isnanf.c: New file.
10855 * sysdeps/alpha/fpu/s_llrint.c: New file.
10856 * sysdeps/alpha/fpu/s_llrintf.c: New file.
10857 * sysdeps/alpha/fpu/s_lrint.c: New file.
10858 * sysdeps/alpha/fpu/s_lrintf.c: New file.
10859 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10860 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10862 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10863 (__fdimf, fdimf, __fdim, fdim): Remove.
10864 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10865 (__isnanf, __isnan, __isnanl): New.
10867 2007-03-13 Richard Henderson <rth@redhat.com>
10869 * sysdeps/ieee754/ldbl-128/Makefile: New file.
10871 2007-03-13 Richard Henderson <rth@redhat.com>
10873 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10874 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10875 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10876 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10877 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10878 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10880 2007-03-13 Richard Henderson <rth@redhat.com>
10882 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10883 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10884 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10885 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10886 Move to dl-auxv.h; initialize instead of extern weak.
10887 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10889 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10890 Extern instead of initialized.
10892 2007-03-13 Richard Henderson <rth@redhat.com>
10894 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10895 __sigsuspend_nocancel.
10897 2007-03-06 Ulrich Drepper <drepper@redhat.com>
10899 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10900 172.16/12 address range.
10902 2007-03-02 Jakub Jelinek <jakub@redhat.com>
10904 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10905 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10908 2007-03-01 Jakub Jelinek <jakub@redhat.com>
10911 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10913 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10915 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10916 for x qNaN and y either +-inf or non-integer value.
10917 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10918 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10919 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10921 2007-02-10 Mike Frysinger <vapier@gentoo.org>
10923 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10924 from sysdep_headers.
10926 2007-02-28 Jakub Jelinek <jakub@redhat.com>
10928 * time/tzfile.c (find_transition): Instead of a linear search try to
10929 guess the transition index, use a linear search if the result is at
10930 most 10 transitions away from the guess or binary search otherwise.
10932 2007-02-27 Jakub Jelinek <jakub@redhat.com>
10934 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10935 memory reallocation.
10937 2007-02-21 Ulrich Drepper <drepper@redhat.com>
10939 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10940 and fix some typos.
10941 Optimize use of TOLOWER.
10944 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10945 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10946 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10949 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10950 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10953 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10954 (open_dir_stream): Likewise.
10955 * io/Makefile (tests): Add bug-ftw5.
10956 * io/bug-ftw5.c: New file.
10958 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10959 * nscd/servicescache.c (cache_addserv): Likewise.
10961 * nscd/grpcache.c (cache_addgr): In case a record changed on
10962 refresh, adjust key_copy.
10965 * nscd/pwdcache.c (cache_addpw): In case a record changed on
10966 refresh, adjust key_copy.
10969 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10971 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10973 2007-02-19 Ulrich Drepper <drepper@redhat.com>
10975 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10978 * stdio-common/vfscanf.c: Small cleanups throughout.
10980 2007-02-18 Ulrich Drepper <drepper@redhat.com>
10983 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10984 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10985 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10986 Patch by Jared Casper <jaredcasper@gmail.com>.
10988 * sysdeps/unix/closedir.c: Outside libc don't use locking.
10989 * sysdeps/unix/opendir.c: Likewise.
10990 * sysdeps/unix/readdir.c: Likewise.
10993 * stdio-common/vfscanf.c: Handle localized digits etc for floating
10995 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10997 * stdio-common/vfscanf.c: Fix problems in width accounting.
10998 * stdio-common/tst-sscanf.c (double_tests): New tests.
10999 (main): Hook them up.
11001 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11002 More simplifications of floating-point reader.
11004 * stdio-common/Makefile (tests): Add tst-swscanf.
11005 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11007 * stdio-common/tst-swscanf.c: New file.
11009 2007-02-17 Ulrich Drepper <drepper@redhat.com>
11012 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11013 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11014 Remove using for __jmp_buf_tag.
11015 * locale/locale.h (struct lconv): Also define in std namespace.
11016 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11019 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11020 using __libc_enable_secure.
11023 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11026 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11027 of names for ellipsises.
11030 * malloc/memusage.sh: Cleanups.
11031 * debug/xtrace.sh: Quoting and trap changes.
11033 2007-02-16 Ulrich Drepper <drepper@redhat.com>
11035 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11037 * locale/iso-3166.def: Update entry for Serbia.
11038 * locale/iso-4217.def: Define RSD, remove CSD.
11040 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11041 and 64-bit operations.
11044 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11047 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11050 2007-02-15 Ulrich Drepper <drepper@redhat.com>
11053 * assert/assert.h (assert): Simplify.
11054 (assert_perror): Likewise.
11055 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11057 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11060 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11061 change: don't pass NULL in place of an integer.
11063 2007-02-02 Bruno Haible <bruno@clisp.org>
11066 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11067 Add mapping for U+327E.
11068 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11069 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11070 mapping of 0xD9 0xE8.
11071 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11073 Reported by Jungshik Shin <jungshik@google.com>.
11076 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11077 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11078 Reported by Jungshik Shin <jungshik@google.com>.
11080 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11082 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11086 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11087 byte variants. Patch mostly be tom@tommay.net.
11089 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11092 * posix/glob.c (attribute_hidden): Define if not defined.
11093 (glob): Unescape dirname, filename or username when needed and not
11094 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11095 is NULL. Handle unescaped [ in pattern without closing ].
11096 Don't pass GLOB_CHECK down to recursive glob for directories.
11097 (__glob_pattern_type): New function.
11098 (__glob_pattern_p): Implement using __glob_pattern_type.
11099 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11100 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11101 Remove unreachable code.
11102 * posix/globtest.sh: Add a couple of new tests.
11104 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11106 * po/ru.po: Update from translation team.
11108 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11110 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11111 to the list of i486+ CPUs.
11112 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11114 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11116 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11117 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11120 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11122 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11124 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11125 * resolv/res_mkquery.c: Define __res_nopt.
11126 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11127 try adding EDNS0 record.
11128 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11129 EDNS0 record was send make sure we don't try it again.
11130 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11131 * include/resolv.h: Declare __res_nopt.
11133 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11136 * time/strptime_l.c (__strptime_internal): Set have_mon for
11137 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11138 have been computed from tm_yday and tm_year. Don't crash
11139 in day_of_the_week or day_of_the_year if not have_mon
11140 and tm_mon contains bogus value.
11141 * time/Makefile (tests): Add tst-strptime3.
11142 * time/tst-strptime3.c: New test.
11144 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11147 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11148 bit for RE_HAT_LISTS_NOT_NEWLINE.
11149 (build_charclass_op): Remove bogus comment.
11150 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11151 * posix/bug-regex27.c: New test.
11152 * posix/bug-regex28.c: New test.
11154 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11156 * po/sv.po: Update from translation team.
11158 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11160 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11162 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11164 * include/locale.h (__uselocale): Add libc_hidden_proto.
11165 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11167 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11170 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11172 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11174 (PTR_DEMANGLE): Real definition now that it's not the same as
11175 PRT_MANGLE anymore.
11176 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11178 * string/strerror_l.c: New file.
11179 * string/Makefile (routines): Add strerror_l.
11180 * string/string.h: Declare strerror_l.
11181 * string/Versions: Export strerror_l for GLIBC_2.6.
11183 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11185 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11186 as parameter. Construct request record. Try sending request
11187 before the first poll use, it usually succeeds. Adjust all
11189 * nscd/nscd-client.h: Define MAXKEYLEN.
11190 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11192 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11194 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11196 * nscd/nscd_helper.c: Include string.h.
11197 (__nscd_cache_search): Remove const qualifier from return value.
11198 On strict alignment architectures check hash entry and data head
11200 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11201 mmapped data during GC cycle contains garbage. If
11202 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11203 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11205 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11206 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11207 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11208 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11209 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11211 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11213 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11215 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11217 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11218 names not numbers in cfi_*.
11220 2007-01-26 Andreas Jaeger <aj@suse.de>
11222 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11223 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11224 Correct values of PER_HPUX and PER_OSF4.
11226 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11228 * elf/dl-minimal.c: Undefine _itoa first.
11229 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11230 * malloc/mtrace.c: Revert last change.
11231 * posix/wordexp.c: Likewise.
11233 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11235 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11236 and __geode__ to the list of i486+ CPUs.
11237 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11239 2007-01-23 Ulrich Drepper <drepper@redhat.com>
11241 * stdio-common/_itoa.c: Include <limits.h>.
11242 * stdio-common/_itowa.c: Likewise.
11244 2007-01-22 Ulrich Drepper <drepper@redhat.com>
11246 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11248 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11250 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11252 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11256 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11257 * stdio-common/Makefile (tests): Add bug17.
11258 * stdio-common/bug17.c: New file.
11260 2007-01-19 Ulrich Drepper <drepper@redhat.com>
11262 * iconvdata/brf.c: New file.
11263 * iconvdata/testdata/BRF: New file.
11264 * iconvdata/testdata/BRF..UTF8: New file.
11265 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11266 * iconvdata/Makefile: Add rules to build BRF.
11267 * iconvdata/TESTS: Add BRF entry.
11268 * iconvdata/gconv-modules: Likewise.
11269 * iconvdata/tst-tables.sh: Likewise.
11271 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11273 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11274 type `long long int', not `long int'.
11275 (wcstoq): Likewise.
11277 2007-01-18 Ulrich Drepper <drepper@redhat.com>
11279 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11280 of values on 64-bit platforms which are too large.
11282 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11283 Joe Kerian <jkerian@us.us.ibm.com>
11286 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11287 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11288 (__copysignl): Use signbit() for comparison.
11289 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11290 SET_LDOUBLE_WORDS64.
11293 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11294 (__ceill): Remove calls to fegetround(), fesetround().
11295 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11296 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11297 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11299 2007-01-17 Jakub Jelinek <jakub@redhat.com>
11301 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11303 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11305 2007-01-17 Ulrich Drepper <drepper@redhat.com>
11307 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11309 * csu/libc-start.c: Likewise.
11311 2007-01-16 Ulrich Drepper <drepper@redhat.com>
11313 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11314 really work anyway.
11316 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11318 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11320 (handle_request): Remove unnecessary tests.
11322 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11324 2007-01-15 Jakub Jelinek <jakub@redhat.com>
11326 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11327 workbits in semi-raw fraction.
11329 * math/test-misc.c: Add new tests.
11331 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11333 * math/basic-test.c: Include test-skeleton.c.
11334 (TEST_TRUNC): Define.
11335 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11336 (main): Rename to ...
11337 (do_test): ...this. Run new tests.
11338 (TEST_FUNCTION): Define.
11340 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11341 Joe Kerian <jkerian@us.us.ibm.com>
11344 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11345 handling for high words.
11346 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11347 and overflow for infinity.
11349 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11351 * nscd/connections.c (handle_request): Add a __builtin_expect.
11353 * nscd/connections.c (serv2db): Change type into structure which
11354 also says whether this is a request for data. Renamed to
11355 servinfo. All users changed.
11356 (handle_request): Much simpler test whether we should search the cache.
11358 * nscd/connections.c (handle_request): Fix thinko in selinux test
11361 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11362 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11363 it before getting dl_load_lock and then relock.
11364 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11365 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11366 case we unlocked the scope.
11367 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11368 _dl_lookup_symbol_x in case we locked the scope.
11369 (_dl_profile_fixup): Likewise.
11370 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11371 set DL_LOOKUP_SCOPE_LOCK.
11373 2007-01-13 Ulrich Drepper <drepper@redhat.com>
11375 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11376 CFLAGS-getsrvbynpt_r.c.
11377 * nscd/getsrvbynm_r.c: New file.
11378 * nscd/getsrvbypt_r.c: New file.
11379 * nscd/nscd_getserv_r.c: New file.
11380 * nscd/servicescache.c: New file.
11381 * nscd/Makefile (routines): Add nscd_getserv_r.
11382 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11383 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11384 CFLAGS-getsrvbypt_r.c.
11385 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11386 table. Add entries for services database.
11387 * nscd/connections.c (serv2str): Mark as const. Add entries for
11389 (dbs): Add .reset_res and servdb initialization.
11390 (serv2db): Add entries for services database.
11391 (verify_persistent_db): Accept dbnr == servdb.
11392 (invalidate_cache): Rewrite database name recognition to use a table.
11393 Call res_init() if .reset_res is set for database.
11394 (handle_request): Add code to handle services database.
11395 * nscd/gai.c: Don't define __getservbyname_r.
11396 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11397 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11398 (serv_response_header): Define.
11399 (struct datahead): Add serv_response_header member.
11400 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11402 * nscd/nscd.conf: Add entries for services database.
11403 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11404 Declare serv_iov_disabled.
11405 Declare addservbyname, readdservbyname, addservbyport, and
11407 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
11408 (find_db): Fix error message.
11409 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11410 __nscd_getservbyname_r, and __nscd_getservbyport_r.
11411 * nscd/selinux.c (perms): Add entries for services database.
11412 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11413 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11415 * nscd/grpcache.c: Remove obsolete code. Cleanups.
11416 * nscd/hstcache.c: Likewise.
11417 * nscd/pwdcache.c: Likewise.
11419 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11420 computation of keylen.
11422 * include/string.h: Only redefine strndupa if this is really for
11425 2007-01-12 Ulrich Drepper <drepper@redhat.com>
11427 * nscd/nscd_gethst_r.c: Minor cleanups.
11429 * nscd/connections.c (handle_request): Check selinux permissions
11430 for all non-admin commands.
11432 * sysdeps/i386/i486/bits/atomic.h: Define
11433 atomic_compare_and_exchange_val_acq,
11434 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11435 using __sync_* built-ins for gcc >= 4.1.
11436 * sysdeps/x86_64/bits/atomic.h: Likewise.
11439 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11442 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
11444 * stdlib/tst-makecontext.c: Include errno.h. Change main()
11445 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
11446 (do_test): Check errno and exit(0) if ENOSYS.
11448 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11450 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11451 thousands separators.
11452 * stdlib/Makefile: Add rules to build and run tst-strtod4.
11453 * stdlib/tst-strtod4.c: New test.
11456 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11457 hexadecimal digit should accept just the initial 0.
11458 * stdlib/tst-strtod2.c (tests): New variable.
11459 (do_test): Run several tests rather than just one.
11461 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11463 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11464 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11466 2007-01-10 Ulrich Drepper <drepper@redhat.com>
11468 * io/fts.c: Make sure fts_cur is always valid after return from
11470 Patch by Miloslav Trmac <mitr@redhat.com>.
11472 2006-10-27 Richard Sandiford <richard@codesourcery.com>
11474 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11475 (R_MIPS_NUM): Bump by 1.
11477 2007-01-03 Jakub Jelinek <jakub@redhat.com>
11479 * posix/execvp.c: Include alloca.h.
11480 (allocate_scripts_argv): Renamed to...
11481 (scripts_argv): ... this. Don't allocate buffer here nor count
11483 (execvp): Use alloca if possible.
11484 * posix/Makefile: Add rules to build and run tst-vfork3 test.
11485 * posix/tst-vfork3.c: New test.
11487 2007-01-03 Ulrich Drepper <drepper@redhat.com>
11489 * string/Makefile (tst-strxfrm2-ENV): Define.
11490 * stdlib/Makefile (tst-strtod3-ENV): Define.
11492 2007-01-02 Ulrich Drepper <drepper@redhat.com>
11494 * posix/getconf.c: Update copyright year.
11495 * nss/getent.c: Likewise.
11496 * iconv/iconvconfig.c: Likewise.
11497 * iconv/iconv_prog.c: Likewise.
11498 * elf/ldconfig.c: Likewise.
11499 * catgets/gencat.c: Likewise.
11500 * csu/version.c: Likewise.
11501 * elf/ldd.bash.in: Likewise.
11502 * elf/sprof.c (print_version): Likewise.
11503 * locale/programs/locale.c: Likewise.
11504 * locale/programs/localedef.c: Likewise.
11505 * nscd/nscd.c (print_version): Likewise.
11506 * debug/xtrace.sh: Likewise.
11507 * malloc/memusage.sh: Likewise.
11508 * malloc/mtrace.pl: Likewise.
11509 * debug/catchsegv.sh: Likewise.
11511 2006-12-24 Ulrich Drepper <drepper@redhat.com>
11513 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11516 2006-12-23 Ulrich Drepper <drepper@redhat.com>
11518 * posix/wordexp.c: Remove some unnecessary tests.
11520 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11522 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11523 blacklist the group till after we look it up.
11525 2006-12-21 Ulrich Drepper <drepper@redhat.com>
11527 * include/atomic.h (atomic_forced_read): New macro.
11529 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11531 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11533 2006-12-19 Jakub Jelinek <jakub@redhat.com>
11535 * nss/getXXbyYY_r.c: Include atomic.h.
11536 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11537 add atomic_write_barrier () in between.
11539 * stdlib/Makefile (tests): Add tst-makecontext.
11540 * stdlib/tst-makecontext.c: New test.
11542 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11543 (__makecontext): Don't realign uc_mcontext.uc_regs.
11545 2006-11-28 Jakub Jelinek <jakub@redhat.com>
11547 * elf/dl-support.c: Include dl-procinfo.h.
11548 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11549 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11550 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11552 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11553 hardcoded constants.
11554 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11555 PPC_PLATFORM_* macros for array designators.
11557 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
11559 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11560 names to the beginning.
11561 (_dl_powerpc_platforms): Add "power6x".
11562 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11563 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11564 (_DL_PLATFORMS_COUNT): Increase.
11565 (_dl_string_platform): Handle power6x case.
11566 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11567 PPC_FEATURE_POWER6_EXT): Define.
11568 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11570 2006-12-18 Jakub Jelinek <jakub@redhat.com>
11573 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11574 [-2^31 .. 2^31) range.
11575 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11577 * stdlib/tst-rand48-2.c: New test.
11578 * stdlib/Makefile (tests): Add tst-rand48-2.
11580 2006-12-14 Jakub Jelinek <jakub@redhat.com>
11582 * misc/tst-pselect.c (do_test): Fix sigblock argument.
11584 2006-12-14 Ulrich Drepper <drepper@redhat.com>
11586 * misc/tst-pselect.c (do_test): Make sure the helper process is
11587 terminating when the test is aborted.
11589 2006-12-13 Ulrich Drepper <drepper@redhat.com>
11591 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11592 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11593 Handle relatime mount option.
11596 * libio/Makefile (tests): Add tst-setvbuf1.
11597 * libio/tst-setvbuf1.c: New file.
11599 2006-12-08 Jakub Jelinek <jakub@redhat.com>
11602 * libio/genops.c (__uflow): Fix a typo.
11603 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11604 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
11605 the narrow buffer size.
11607 2006-11-24 Jakub Jelinek <jakub@redhat.com>
11610 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11611 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11612 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11614 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11615 _IO_wstr_finish): Likewise.
11616 * libio/wmemstream.c (open_wmemstream): Likewise.
11617 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11618 even for wide streams.
11620 2006-12-13 Jakub Jelinek <jakub@redhat.com>
11622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11625 2006-12-11 Ulrich Drepper <drepper@redhat.com>
11627 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11628 separators also if no non-zero digits found.
11629 * stdlib/Makefile (tests): Add tst-strtod3.
11631 2006-12-09 Ulrich Drepper <drepper@redhat.com>
11634 * include/features.h: Fix comment about default value for
11638 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11639 empty parsed strings.
11640 * stdlib/Makefile (tests): Add tst-strtod2.
11641 * stdlib/tst-strtod2.c: New file.
11644 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11646 * stdlib/Makefile (tests): Add tst-atof2.
11647 * stdlib/tst-atof2.c: New file.
11650 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11651 correctly if removing trailing zero of hex-float.
11652 * stdlib/Makefile (tests): Add tst-atof1.
11653 * stdlib/tst-atof1.c: New file.
11655 2006-12-09 Jakub Jelinek <jakub@redhat.com>
11657 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11658 Start searching for next comma at p rather than rest.
11659 * misc/Makefile (tests): Add tst-mntent2.
11660 * misc/tst-mntent2.c: New test.
11662 * misc/getusershell.c (initshells): Check for integer overflows.
11663 Make strings buffer one bigger as fgets always succeeds when second
11664 argument is 1. Don't use calloc for shells array. Disallow
11667 2006-12-08 Ulrich Drepper <drepper@redhat.com>
11669 * malloc/memusage.c: Handle realloc with new size of zero and
11670 non-NULL pointer correctly.
11671 (me): Really write first record twice.
11672 (struct entry): Make format bi-arch safe.
11673 (dest): Write out more realloc statistics.
11674 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11676 2006-12-05 Jakub Jelinek <jakub@redhat.com>
11678 * nis/nis_subr.c (nis_getnames): Revert last change.
11680 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11682 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11683 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11684 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11685 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11687 * io/Makefile: Add rules to build and run tst-ttyname_r test.
11688 * io/tst-ttyname_r.c: New test.
11690 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11692 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11694 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
11696 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11697 jump table entries.
11699 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
11701 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11702 `clone' function to ensure proper unwinding stop of gdb.
11703 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11705 2006-12-01 Ulrich Drepper <drepper@redhat.com>
11707 * nscd/nscd.init: Remove obsolete and commented-out -S option
11710 2006-11-23 Jakub Jelinek <jakub@redhat.com>
11713 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11716 * manual/string.texi (strtok): Remove duplicate paragraph.
11718 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11720 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11721 libgcc not supporting `rflags' unwinding (register # >= 17).
11723 2006-11-30 Jakub Jelinek <jakub@redhat.com>
11725 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11728 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
11729 Jakub Jelinek <jakub@redhat.com>
11730 Jan Kratochvil <jan.kratochvil@redhat.com>
11732 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11733 unwind information.
11734 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11735 'restore_rt' even in the 'signal' directory.
11736 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11738 2006-11-27 Jakub Jelinek <jakub@redhat.com>
11741 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11742 malloc crashed. Don't allocate memory unnecessarily in each
11745 2006-10-21 Jakub Jelinek <jakub@redhat.com>
11747 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11749 2006-11-20 Ulrich Drepper <drepper@redhat.com>
11751 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11753 2006-11-18 Bruno Haible <bruno@clisp.org>
11755 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11756 __sysconf only after having tried to call getgroups32.
11758 2006-11-19 Ulrich Drepper <drepper@redhat.com>
11760 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11761 addresses for IPv4 queries if they can be mapped.
11763 2006-11-16 Jakub Jelinek <jakub@redhat.com>
11765 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11766 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11767 (signmask): Add .size directive.
11768 (othermask): Add .type directive.
11770 2006-11-14 Ulrich Drepper <drepper@redhat.com>
11772 * po/nl.po: Update from translation team.
11774 * timezone/zdump.c: Redo fix for BZ #3137.
11776 2006-11-14 Jakub Jelinek <jakub@redhat.com>
11778 * nss/nss_files/files-alias.c (get_next_alias): Set line back
11779 to first_unused after parsing :include: file.
11781 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11783 * timezone/africa: Update from tzdata2006o.
11784 * timezone/antarctica: Likewise.
11785 * timezone/asia: Likewise.
11786 * timezone/australasia: Likewise.
11787 * timezone/backward: Likewise.
11788 * timezone/europe: Likewise.
11789 * timezone/iso3166.tab: Likewise.
11790 * timezone/northamerica: Likewise.
11791 * timezone/southamerica: Likewise.
11792 * timezone/zone.tab: Likewise.
11794 * time/tzfile.c (__tzfile_read): Extend to handle new file format
11795 on machines with 64-bit time_t.
11797 * timezone/checktab.awk: Update from tzcode2006o.
11798 * timezone/ialloc.c: Likewise.
11799 * timezone/private.h: Likewise.
11800 * timezone/scheck.c: Likewise.
11801 * timezone/tzfile.h: Likewise.
11802 * timezone/tzselect.ksh: Likewise.
11803 * timezone/zdump.c: Likewise.
11804 * timezone/zic.c: Likewise.
11807 * elf/ldconfig.c (main): Call setlocale and textdomain.
11808 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11811 * manual/argp.texi: Fix typos.
11812 * manual/charset.texi: Likewise.
11813 * manual/errno.texi: Likewise.
11814 * manual/filesys.texi: Likewise.
11815 * manual/lang.texi: Likewise.
11816 * manual/maint.texi: Likewise.
11817 * manual/memory.texi: Likewise.
11818 * manual/message.texi: Likewise.
11819 * manual/resource.texi: Likewise.
11820 * manual/search.texi: Likewise.
11821 * manual/signal.texi: Likewise.
11822 * manual/startup.texi: Likewise.
11823 * manual/stdio.texi: Likewise.
11824 * manual/sysinfo.texi: Likewise.
11825 * manual/syslog.texi: Likewise.
11826 * manual/time.texi: Likewise.
11827 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11830 * sunrpc/clnt_raw.c: Minimal message improvements.
11831 * sunrpc/pm_getmaps.c: Likewise.
11832 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11833 * nis/nis_print_group_entry.c: Likewise.
11834 * locale/programs/repertoire.c: Likewise.
11835 * locale/programs/charmap.c: Likewise.
11836 * malloc/memusage.sh: Likewise.
11837 * elf/dl-deps.c: Likewise.
11838 * locale/programs/ld-collate.c: Likewise.
11839 * libio/vswprintf.c: Likewise.
11840 * malloc/memusagestat.c: Likewise.
11841 * sunrpc/auth_unix.c: Likewise.
11842 * sunrpc/rpc_main.c: Likewise.
11843 * nscd/cache.c: Likewise.
11844 * locale/programs/repertoire.c: Unify output messages.
11845 * locale/programs/charmap.c: Likewise.
11846 * locale/programs/ld-ctype.c: Likewise.
11847 * locale/programs/ld-monetary.c: Likewise.
11848 * locale/programs/ld-numeric.c: Likewise.
11849 * locale/programs/ld-time.c: Likewise.
11850 * elf/ldconfig.c: Likewise.
11851 * nscd/selinux.c: Likewise.
11852 * elf/cache.c: Likewise.
11853 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11856 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11860 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11862 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11863 if N is one bigger than return value.
11864 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11865 and l1 last arguments, if buf is defined, verify the return value
11866 equals to strlen (buf) and verify no byte beyond passed length
11869 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11871 * po/sv.po: Update from translation team.
11873 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11875 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11876 noinline attribute.
11878 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11880 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11881 noinline attribute.
11883 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11884 Use __new_sys_siglist instead of _sys_siglist_internal as
11885 second macro argument.
11886 (_old_sys_siglist): Use declare_symbol_alias macro instead of
11889 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11892 * posix/unistd.h (sysconf): Remove const attribute.
11894 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11895 temporary or deprecated addresses.
11896 Patch by Sridhar Samudrala <sri@us.ibm.com>.
11898 * string/Makefile (tests): Add tst-strxfrm2.
11899 * string/tst-strxfrm2.c: New file.
11901 2006-10-09 Jakub Jelinek <jakub@redhat.com>
11903 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11904 rather than r->r_brk.
11906 2006-11-08 Jakub Jelinek <jakub@redhat.com>
11908 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11909 optimization even if needed > n.
11911 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11912 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11913 return false, otherwise return true.
11914 (cache_rpath): Return decompose_rpath return value.
11916 2006-11-07 Jakub Jelinek <jakub@redhat.com>
11918 * include/libc-symbols.h (declare_symbol): Rename to...
11919 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
11920 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11922 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11924 * sysdeps/gnu/siglist.c: Likewise.
11926 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
11928 * sysdeps/powerpc/fpu/bits/mathinline.h
11929 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11930 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
11932 2006-11-05 Ulrich Drepper <drepper@redhat.com>
11934 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11935 Update handling of cache descriptor 0x49 for new models.
11936 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11939 2006-11-02 Jakub Jelinek <jakub@redhat.com>
11941 * malloc/memusage.c (dest): Reset not_me back to false after
11942 printing statistics.
11944 2006-11-02 Ulrich Drepper <drepper@redhat.com>
11946 * configure.in: Work around ld --help change and avoid -z relro
11947 test completely if the architecture doesn't care about security.
11949 2006-11-01 Ulrich Drepper <drepper@redhat.com>
11951 * po/sv.po: Update from translation team.
11953 2006-10-31 Ulrich Drepper <drepper@redhat.com>
11955 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11956 generate compatibility version.
11958 2006-10-29 Ulrich Drepper <drepper@redhat.com>
11960 * configure.in: Relax -z relro requirement a bit.
11962 * po/sv.po: Update from translation team.
11964 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11966 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11967 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11968 * elf/dl-close.c (_dl_close_worker): Likewise.
11969 * elf/dl-open.c (_dl_open_worker): Likewise.
11970 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11972 2006-10-27 Ulrich Drepper <drepper@redhat.com>
11974 * configure.in: Require assembler support for visibility, compiler
11975 support for visibility and aliases, linker support for various -z
11977 * Makeconfig: Remove conditional code which now is unnecessary.
11978 * config.h.in: Likewise.
11979 * config.make.in: Likewise.
11980 * dlfcn/Makefile: Likewise.
11981 * elf/Makefile: Likewise.
11982 * elf/dl-load.c: Likewise.
11983 * elf/rtld.c: Likewise.
11984 * include/libc-symbols.h: Likewise.
11985 * include/stdio.h: Likewise.
11986 * io/Makefile: Likewise.
11987 * io/fstat.c: Likewise.
11988 * io/fstat64.c: Likewise.
11989 * io/fstatat.c: Likewise.
11990 * io/fstatat64.c: Likewise.
11991 * io/lstat.c: Likewise.
11992 * io/lstat64.c: Likewise.
11993 * io/mknod.c: Likewise.
11994 * io/mknodat.c: Likewise.
11995 * io/stat.c: Likewise.
11996 * io/stat64.c: Likewise.
11997 * libio/stdio.c: Likewise.
11998 * nscd/Makefile: Likewise.
11999 * stdlib/Makefile: Likewise.
12000 * stdlib/atexit.c: Likewise.
12001 * sysdeps/generic/ldsodefs.h: Likewise.
12002 * sysdeps/i386/dl-machine.h: Likewise.
12003 * sysdeps/i386/sysdep.h: Likewise.
12004 * sysdeps/i386/i686/memcmp.S: Likewise.
12005 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12006 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12007 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12009 * Makerules: USE_TLS support is now default.
12010 * tls.make.c: Likewise.
12011 * csu/Versions: Likewise.
12012 * csu/libc-start.c: Likewise.
12013 * csu/libc-tls.c: Likewise.
12014 * csu/version.c: Likewise.
12015 * dlfcn/dlinfo.c: Likewise.
12016 * elf/dl-addr.c: Likewise.
12017 * elf/dl-cache.c: Likewise.
12018 * elf/dl-close.c: Likewise.
12019 * elf/dl-iteratephdr.c: Likewise.
12020 * elf/dl-load.c: Likewise.
12021 * elf/dl-lookup.c: Likewise.
12022 * elf/dl-object.c: Likewise.
12023 * elf/dl-open.c: Likewise.
12024 * elf/dl-reloc.c: Likewise.
12025 * elf/dl-support.c: Likewise.
12026 * elf/dl-sym.c: Likewise.
12027 * elf/dl-sysdep.c: Likewise.
12028 * elf/dl-tls.c: Likewise.
12029 * elf/ldconfig.c: Likewise.
12030 * elf/rtld.c: Likewise.
12031 * elf/tst-tls-dlinfo.c: Likewise.
12032 * elf/tst-tls1.c: Likewise.
12033 * elf/tst-tls10.h: Likewise.
12034 * elf/tst-tls14.c: Likewise.
12035 * elf/tst-tls2.c: Likewise.
12036 * elf/tst-tls3.c: Likewise.
12037 * elf/tst-tls4.c: Likewise.
12038 * elf/tst-tls5.c: Likewise.
12039 * elf/tst-tls6.c: Likewise.
12040 * elf/tst-tls7.c: Likewise.
12041 * elf/tst-tls8.c: Likewise.
12042 * elf/tst-tls9.c: Likewise.
12043 * elf/tst-tlsmod1.c: Likewise.
12044 * elf/tst-tlsmod13.c: Likewise.
12045 * elf/tst-tlsmod13a.c: Likewise.
12046 * elf/tst-tlsmod14a.c: Likewise.
12047 * elf/tst-tlsmod2.c: Likewise.
12048 * elf/tst-tlsmod3.c: Likewise.
12049 * elf/tst-tlsmod4.c: Likewise.
12050 * elf/tst-tlsmod5.c: Likewise.
12051 * elf/tst-tlsmod6.c: Likewise.
12052 * include/errno.h: Likewise.
12053 * include/link.h: Likewise.
12054 * include/tls.h: Likewise.
12055 * locale/global-locale.c: Likewise.
12056 * locale/localeinfo.h: Likewise.
12057 * malloc/arena.c: Likewise.
12058 * malloc/hooks.c: Likewise.
12059 * malloc/malloc.c: Likewise.
12060 * resolv/Versions: Likewise.
12061 * sysdeps/alpha/dl-machine.h: Likewise.
12062 * sysdeps/alpha/libc-tls.c: Likewise.
12063 * sysdeps/generic/ldsodefs.h: Likewise.
12064 * sysdeps/generic/tls.h: Likewise.
12065 * sysdeps/i386/dl-machine.h: Likewise.
12066 * sysdeps/ia64/dl-machine.h: Likewise.
12067 * sysdeps/ia64/libc-tls.c: Likewise.
12068 * sysdeps/mach/hurd/fork.c: Likewise.
12069 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12070 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12071 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12072 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12073 * sysdeps/s390/libc-tls.c: Likewise.
12074 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12075 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12076 * sysdeps/sh/dl-machine.h: Likewise.
12077 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12078 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12079 * sysdeps/x86_64/dl-machine.h: Likewise.
12081 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12082 split out locking and parameter checking.
12083 (_dl_close): Call _dl_close_worker after locking and checking.
12084 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12086 * elf/Makefile: Add rules to build and run tst-thrlock.
12087 * elf/tst-thrlock.c: New file.
12090 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12094 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12095 we are sure we do not need it anymore for _dl_close. Also move
12096 the asserts inside the lock region.
12097 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12099 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12101 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12103 (_dl_lookup_symbol_x): Adjust caller.
12105 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12107 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12109 * elf/dl-libc.c: Revert l_scope name changes.
12110 * elf/dl-load.c: Likewise.
12111 * elf/dl-object.c: Likewise.
12112 * elf/rtld.c: Likewise.
12113 * elf/dl-close.c (_dl_close): Likewise.
12114 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12115 always use __rtld_mrlock_{change,done}. Always free old scope list
12116 here if not l_scope_mem.
12117 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12118 change. Never free scope list here. Just __rtld_mrlock_lock before
12119 the lookup and __rtld_mrlock_unlock it after the lookup.
12120 * elf/dl-sym.c: Likewise.
12121 * include/link.h (struct r_scoperec): Remove.
12122 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12123 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12125 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12127 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12129 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12131 * configure.in: Disable building profile libraries by default.
12133 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12135 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12136 as signed longs, check for x_base + pos overflow.
12137 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12138 * sunrpc/tst-xdrmem2.c: New test.
12140 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12142 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12143 _dl_lookup_symbol_x code.
12145 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12147 * elf/dl-runtime.c: Include sysdep-cancel.h.
12148 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12149 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12150 instead of catomic_* macros.
12151 * elf/dl-sym.c: Include sysdep-cancel.h.
12152 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12153 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12154 * elf/dl-close.c: Include sysdep-cancel.h.
12155 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12156 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12157 * elf/dl-open.c: Include sysdep-cancel.h.
12158 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12159 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12161 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12164 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12165 fastbin rather than end of fastbin array.
12167 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12169 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12171 * sysdeps/x86_64/bits/atomic.h
12172 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12173 (catomic_decrement): Use correct body macro.
12175 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12177 * include/atomic.h: Add a unique prefix to all local variables
12179 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12181 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12184 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12187 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12189 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12191 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12194 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12195 determine highest fast bin to consolidate, always look into all of
12197 (do_check_malloc_state): Only require for empty bins for large
12198 sizes in main arena.
12200 * libio/stdio.h: Add more __wur attributes.
12202 * elf/dl-minimal.c (realloc): Optimize last patch.
12204 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12207 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12208 and use memcpy() if it does.
12210 2006-11-12 Andreas Jaeger <aj@suse.de>
12213 * manual/search.texi (Hash Search Function): Clarify.
12214 (Array Search Function): Clarify.
12216 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12219 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12221 * math/atest-exp2.c (read_mpn_hex): Likewise.
12222 * math/atest-sincos.c (main): Likewise.
12224 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12226 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12227 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12228 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12230 * Versions.def: Add GLIBC_2.6 for libc.
12232 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12234 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12236 2006-10-11 Jakub Jelinek <jakub@redhat.com>
12238 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12240 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12242 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12243 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12245 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12247 * include/atomic.c: Define catomic_* operations.
12248 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12249 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12250 * malloc/memusage.c: Likewise.
12251 * gmon/mcount.c: Likewise.
12252 * elf/dl-close.c: Likewise.
12253 * elf/dl-open.c: Likewise.
12254 * elf/dl-profile.c: Likewise.
12255 * elf/dl-sym.c: Likewise.
12256 * elf/dl-runtime.c: Likewise.
12257 * elf/dl-fptr.c: Likewise.
12258 * resolv/res_libc.c: Likewise.
12260 2006-10-10 Ulrich Drepper <drepper@redhat.com>
12262 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12263 components which lack them.
12265 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12266 at least one entry consisting of the parameter concatenated with
12269 2006-10-10 Roland McGrath <roland@frob.com>
12271 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12272 * sysdeps/mach/hurd/futimes.c: Likewise.
12273 * sysdeps/mach/hurd/lutimes.c: Likewise.
12275 2006-10-09 Ulrich Drepper <drepper@redhat.com>
12276 Jakub Jelinek <jakub@redhat.com>
12278 Implement reference counting of scope records.
12279 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12280 from the list in objects which remain. Always allocate new scope
12282 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12283 don't resize, allocate a new one.
12284 * elf/dl-runtime.c: Update reference counters before using a scope
12286 * elf/dl-sym.c: Likewise.
12287 * elf/dl-libc.c: Adjust for l_scope name change.
12288 * elf/dl-load.c: Likewise.
12289 * elf/dl-object.c: Likewise.
12290 * elf/rtld.c: Likewise.
12291 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12292 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12293 Add l_scoperec_lock.
12294 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12295 * sysdeps/generic/rtld-lowlevel.h: New file.
12297 * include/atomic.h: Rename atomic_and to atomic_and_val and
12298 atomic_or to atomic_or_val. Define new macros atomic_and and
12299 atomic_or which do not return values.
12300 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12302 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12304 * po/sv.po: Update from translation team.
12306 2006-10-07 Ulrich Drepper <drepper@redhat.com>
12308 * Versions.def: Add GLIBC_2.6 to libpthread.
12310 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12311 (versioned_symbol): Likewise.
12312 (compat_symbol): Likewise.
12314 * po/tr.po: Update from translation team.
12316 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12318 * nis/Banner: Removed. It's been integral part forever and the
12319 author info is incomplete anyway.
12320 * libio/Banner: Likewise.
12322 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12323 code, make sure the nis_freeresult call doesn't crash and that the
12324 result is reported correctly.
12326 2006-09-27 Jakub Jelinek <jakub@redhat.com>
12328 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12329 when callback is NULL.
12331 * nis/Versions (libnss_nisplus): Add
12332 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12333 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12334 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12335 _nss_create_tablename): Rename to...
12336 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12337 ... these. No longer static.
12338 (internal_setgrent): Adjust users.
12339 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12340 Don't use locking around _nss_grp_create_tablename call.
12341 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12343 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12345 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12347 2006-10-06 Andreas Jaeger <aj@suse.de>
12349 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12351 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12353 * po/pl.po: Update from translation team.
12355 * nscd/nscd.c (main): Fix typo in message.
12356 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12358 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12361 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12362 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12363 (__sigprocmask): Define.
12365 2006-10-02 Ulrich Drepper <drepper@redhat.com>
12367 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12370 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12372 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12373 in oldtotal and newtotal calculation.
12374 * nscd/nscd-client.h (struct mapped_database): Add datasize
12376 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12377 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12379 (__nscd_cache_search): Add checks to make sure we never reference
12380 data beyond the current mapping.
12382 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
12384 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12385 variables const to avoid compiler warnings.
12387 * io/fts.c (fts_close): Remove redundant checks.
12388 (fts_build): Likewise.
12389 (fts_palloc): Likewise.
12391 * manual/message.texi (Advanced gettext functions,
12392 Using gettextized software): Fix typos.
12394 2006-09-30 Ulrich Drepper <drepper@redhat.com>
12396 * posix/glob.c (glob_in_dir): Add some comments and asserts to
12397 explain why there are no leaks.
12399 2006-09-29 Ulrich Drepper <drepper@redhat.com>
12401 * libio/wmemstream.c: Include <wchar.h>.
12402 * libio/bug-wmemstream1.c: Likewise.
12403 * libio/tst-wmemstream1.c: Likewise.
12404 * libio/tst-wmemstream2.c: Likewise.
12406 * version.h (RELEASE): Bump to 2.5.
12407 * README: Regenerated.
12409 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12412 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12413 found no group members.
12414 Patch by Petr Baudis.
12416 2006-09-29 Jakub Jelinek <jakub@redhat.com>
12418 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12419 assert bootstrap_map.l_tls_modid is zero.
12420 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12423 2006-09-27 Ulrich Drepper <drepper@redhat.com>
12425 * libio/stdio.h: Move open_wmemstream prototype to ...
12426 * wcsmbs/wchar.h: ... here.
12428 2006-09-25 Jakub Jelinek <jakub@redhat.com>
12431 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12432 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12433 __{,l}chown to handle the rest.
12434 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12435 fchownat syscall and __ASSUME_32BITUIDS case inline, call
12436 __{,l}chown to handle the rest.
12437 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12439 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12440 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12443 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12444 time, rather allocate increasingly bigger arrays of pointers, if
12445 possible with alloca, if too large with malloc.
12447 2006-09-24 Jakub Jelinek <jakub@redhat.com>
12449 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12451 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12453 2006-09-24 Ulrich Drepper <drepper@redhat.com>
12455 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12457 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12458 IFA_F_HOMEADDRESS flag for interfaces.
12459 * include/ifaddrs.h (struct in6addrinfo): Define
12462 2006-09-21 Jakub Jelinek <jakub@redhat.com>
12465 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12466 PTR_DEMANGLE3): Define.
12467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12468 PTR_DEMANGLE3): Likewise.
12469 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12470 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12472 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12474 2006-09-20 Jakub Jelinek <jakub@redhat.com>
12476 * po/libc.pot: Regenerated.
12477 * po/be.po: Updated.
12478 * po/ca.po: Likewise.
12479 * po/cs.po: Likewise.
12480 * po/da.po: Likewise.
12481 * po/de.po: Likewise.
12482 * po/el.po: Likewise.
12483 * po/en_GB.po: Likewise.
12484 * po/es.po: Likewise.
12485 * po/fi.po: Likewise.
12486 * po/fr.po: Likewise.
12487 * po/gl.po: Likewise.
12488 * po/hr.po: Likewise.
12489 * po/hu.po: Likewise.
12490 * po/ja.po: Likewise.
12491 * po/ko.po: Likewise.
12492 * po/nb.po: Likewise.
12493 * po/nl.po: Likewise.
12494 * po/pl.po: Likewise.
12495 * po/pt_BR.po: Likewise.
12496 * po/ru.po: Likewise.
12497 * po/rw.po: Likewise.
12498 * po/sk.po: Likewise.
12499 * po/sv.po: Likewise.
12500 * po/tr.po: Likewise.
12501 * po/zh_CN.po: Likewise.
12502 * po/zh_TW.po: Likewise.
12505 * iconv/iconv_prog.c (main): Fix spelling in error message.
12506 * iconv/iconvconfig.c (main): Likewise.
12507 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12508 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12509 * locale/programs/localedef.c (main): Likewise.
12510 * locale/programs/repertoire.c (repertoire_read): Likewise.
12511 * timezone/zdump.c (main): Likewise.
12512 * nscd/connections.c (handle_request): Fix spelling in log message.
12513 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12515 2006-09-20 Ulrich Drepper <drepper@redhat.com>
12517 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12520 2006-09-20 Andreas Jaeger <aj@suse.de>
12522 * math/libm-test.inc (lrint_test_upward): Fix typo.
12524 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
12527 * math/libm-test.inc (lrint_test_tonearest): New function.
12528 (lrint_test_towardzero): New function.
12529 (lrint_test_downward): New function.
12530 (lrint_test_upward): New function.
12531 (main): Run these new tests.
12532 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12533 of values near to 0.
12534 (two52): Use double not long double.
12535 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12536 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12537 (two23): Use float not double.
12538 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12539 (two23): Use float not double.
12540 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12541 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12542 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12543 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12545 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12547 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12548 Cast sp to unsigned long to avoid compiler warning.
12549 Use __makecontext_ret function instead of a trampoline on the stack.
12550 (__makecontext_ret): New function.
12551 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12553 2006-09-19 Jakub Jelinek <jakub@redhat.com>
12555 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12556 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12559 2006-09-19 Ulrich Drepper <drepper@redhat.com>
12561 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12562 sure no reference to the unloaded map's search list remains in the
12563 dependency's scope.
12565 2006-09-16 Jakub Jelinek <jakub@redhat.com>
12567 * elf/Makefile: Add rules to build and run unload7 test.
12568 * elf/unload7.c: New test.
12569 * elf/unload7mod1.c: New file.
12570 * elf/unload7mod2.c: New file.
12572 2006-09-18 Jakub Jelinek <jakub@redhat.com>
12574 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12575 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12576 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12577 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12578 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12579 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12580 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12581 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12582 PTRACE_GETEVENTMSG): Likewise.
12583 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12586 2006-09-17 Mike Frysinger <vapier@gentoo.org>
12588 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12589 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12590 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12591 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12593 2006-09-16 Jakub Jelinek <jakub@redhat.com>
12595 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12596 write '\0' to the fd.
12597 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12598 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12599 Change regs to unsigned long pointer from unsigned int, fix fscr
12602 2006-09-14 Jakub Jelinek <jakub@redhat.com>
12604 * io/Makefile (CFLAGS-fstatat.c): Set.
12605 (CFLAGS-fstatat64.c): Likewise.
12606 (CFLAGS-mknodat.c): Likewise.
12608 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12609 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12610 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12611 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12613 2006-09-14 Jakub Jelinek <jakub@redhat.com>
12614 Steven Munroe <sjmunroe@us.ibm.com>
12616 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12617 names to the beginning. Rename "cell" to "cellbe".
12618 (_dl_powerpc_platforms): New.
12619 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12620 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12621 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12622 (_DL_HWCAP_PLATFORM): Define to new mask.
12623 (_dl_platform_string, _dl_string_platform): New functions.
12624 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12625 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12627 2006-09-12 Jakub Jelinek <jakub@redhat.com>
12630 * README.libm: Fix a thinko in sqrt algorithm description.
12633 * manual/string.texi (argz_delete): Fix prototype.
12634 Patch by <alpt@freaknet.org>.
12636 2006-08-26 Joseph Myers <joseph@codesourcery.com>
12639 * io/test-lfs.c (do_prepare): Give name_len type size_t.
12640 * io/tst-fcntl.c (do_prepare): Likewise.
12641 * posix/tst-exec.c (do_prepare): Likewise.
12642 * posix/tst-preadwrite.c (do_prepare): Likewise.
12643 * posix/tst-spawn.c (do_prepare): Likewise.
12644 * posix/tst-truncate.c (do_prepare): Likewise.
12645 * rt/tst-aio.c (do_prepare): Likewise.
12646 * rt/tst-aio64.c (do_prepare): Likewise.
12647 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12650 2006-09-09 Ulrich Drepper <drepper@redhat.com>
12653 * time/mktime.c (guess_time_tm): Fix overflow detection.
12654 * time/Makefile (tests): Add bug-mktime1.
12655 * time/bug-mktime1.c: New file.
12658 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12659 (mremap): Likewise.
12661 2006-09-07 Jakub Jelinek <jakub@redhat.com>
12664 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12665 Ensure relocation doesn't clobber any bits outside of the
12666 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12667 R_SPARC_HI22 and R_SPARC_H44.
12670 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12671 (long) (MINSIZE + nb - old_size) is positive.
12673 * malloc/arena.c (grow_heap): When growing bail even if new_size
12677 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12680 2006-09-06 Jakub Jelinek <jakub@redhat.com>
12682 * posix/regex_internal.c (re_string_reconstruct): Handle
12683 offset < pstr->valid_raw_len && pstr->offsets_needed case.
12684 Ensure no bytes read before raw_mbs array. Pass a saved copy of
12685 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12686 re_string_context_at.
12687 * posix/Makefile: Add rules to build and run bug-regex26 test.
12688 * posix/bug-regex26.c: New test.
12690 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12691 rather than col_sym_free. Move seqp declaration earlier.
12693 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12695 2006-09-05 Jakub Jelinek <jakub@redhat.com>
12697 * nscd/initgrcache.c (addinitgroupsX): Move any_success
12698 decl before first goto out.
12700 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12702 * Makerules (shlib.lds): If have-hash-style, put .hash section
12703 at the end of the RO segment.
12705 2006-09-04 Ulrich Drepper <drepper@redhat.com>
12707 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12708 style hash table format is used.
12710 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12712 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12713 randomization rather than before.
12714 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12716 2006-08-31 Jakub Jelinek <jakub@redhat.com>
12718 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12720 * malloc/malloc.c (_int_malloc): Use full list insert and not
12721 shortcut which assumes the list is empty for large requests
12724 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12726 2006-08-30 Jakub Jelinek <jakub@redhat.com>
12728 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12729 and offout arguments to the prototype.
12730 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12731 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12732 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12733 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12734 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12735 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12736 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12737 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12739 2006-08-28 Ulrich Drepper <drepper@redhat.com>
12741 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12743 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12746 2006-08-28 Jakub Jelinek <jakub@redhat.com>
12748 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12749 only if herrno is NETDB_INTERNAL. Handle errors other than
12750 ERANGE outside of the loops, handle TRY_AGAIN.
12752 * locale/programs/ld-ctype.c (translit_flatten): Issue error
12753 if other's ctype category was missing.
12754 * locale/programs/ld-collate.c (collate_read): Return if
12755 copy_locale's collate category is missing.
12757 2006-08-27 Ulrich Drepper <drepper@redhat.com>
12760 * malloc/malloc.c (public_rEALLOc): Try harder by using other
12761 arenas if allocation failed.
12762 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12764 2006-08-26 Ulrich Drepper <drepper@redhat.com>
12766 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12768 (malloc_state): Reduce bins size by 2.
12769 (_int_malloc): Fix test for large enough buffer for early termination.
12770 When no unsorted block matches perfectly and an exiting block has
12771 to be split, use full list insert and not shortcut which assumes
12774 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12777 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12779 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12782 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12783 symbol require exact match (these are PLTs).
12784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12785 (_dl_ppc64_addr_sym_match): Likewise.
12788 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12789 If symbol has a value use it.
12790 * elf/tst-dladdr1.c: New file.
12791 * elf/Makefile: Add rules to build and run tst-addr1.
12793 2006-08-24 Jakub Jelinek <jakub@redhat.com>
12795 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12796 keeps failing and heap growth or new heap creation isn't
12798 * malloc/tst-malloc.c (main): Add new tests.
12800 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12803 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12804 as in the x86-64 code to use bswap.
12806 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12809 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12811 * posix/bits/unistd.h: Likewise.
12813 2006-05-15 Mike Frysinger <vapier@gentoo.org>
12816 * string/strchr.c: Add cast to avoid warning.
12818 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12820 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12821 platforms define as 512K. For 64-bit platforms as 32MB. The lower
12822 limit is needed to avoid the exploding of the address space
12823 requirement for secondary heaps.
12824 * malloc/arena.c (HEAP_MAX_SIZE): Define using
12825 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12827 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
12830 * Makerules (depfiles): Handle extra-test-objs the same as
12832 (common-mostlyclean): Likewise.
12833 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12835 * elf/Makefile (extra-objs): Likewise.
12836 * stdlib/Makefile (extra-objs): Likewise.
12838 2006-08-14 Eric Blake <ebb9@byu.net>
12841 * misc/error.h: Assume C89 or better.
12842 * misc/error.c: Likewise.
12844 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12847 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12848 __ASSUME_ATFCTS is defined.
12850 2006-08-19 Ulrich Drepper <drepper@redhat.com>
12852 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12853 to sort in each call.
12855 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12856 is empty simply return and use next service.
12857 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12859 * locale/programs/charmap.c (charmap_read): Add new parameter. It
12860 tells us when not finding a charmap file is an error.
12861 * locale/programs/charmap.h: Adjust charmap_read prototype.
12862 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12863 cannot find a charmap.
12864 * locale/programs/localedef.c (main): Adjust charmap_read call.
12866 2006-08-15 Jakub Jelinek <jakub@redhat.com>
12868 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12869 sysdeps/posix/pause.c implementation instead.
12871 2006-08-09 Jakub Jelinek <jakub@redhat.com>
12873 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12876 2006-08-13 Andreas Schwab <schwab@suse.de>
12878 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12879 Don't clobber caller's LRSAVE.
12880 (_dl_prof_resolve): Likewise.
12882 2006-08-14 Ulrich Drepper <drepper@redhat.com>
12885 * libio/memstream.c (open_memstream): Allocate initial buffer with
12887 * libio/wmemstream.c (open_wmemstream): Likewise.
12888 * libio/strops.c: Pretty printing.
12889 (_IO_str_overflow): Clear uninitialized part of the new buffer.
12890 (enlarge_userbuf): New function.
12891 (_IO_str_seekoff): Call it if seek position is larger than current
12893 * libio/wstrops.c: Likewise.
12894 * libio/vasprintf.c: Add comment as to why we do not have to use
12895 calloc instead of malloc to allocate initial buffer.
12896 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12897 * libio/bug-memstream1.c: New file.
12898 * libio/bug-wmemstream1.c: New file.
12900 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12902 * libio/wstrops.c: Remove dead macro definitions and comments.
12903 * libio/strops.c: Likewise.
12906 * login/utmpname.c (__utmpname): Remove unnecessary test.
12908 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
12911 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12914 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12917 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12919 * sysdeps/unix/clock_settime.c: Add support for platform-specific
12920 setting of CPU clocks.
12922 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
12925 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12926 since C99 requires the result to promote to 'int' when uint_least8_t
12927 and uint_least16_t promote to 'int'.
12929 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12932 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12933 lenght of one output field, correct bitmask creation.
12934 * locale/programs/ld-time.c: Add alignment.
12937 * misc/error.c: Add space between program name and message if file
12940 2006-08-03 Eric Blake <ebb9@byu.net>
12943 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12945 2006-08-09 Ulrich Drepper <drepper@redhat.com>
12947 * malloc/memusagestat.c: Silence warnings.
12949 * malloc/malloc.c: Dynamically size mmap treshold if the program
12950 frees mmaped blocks.
12951 Patch by Valerie Henson and Arjan van de Ven.
12953 2006-08-08 Jakub Jelinek <jakub@redhat.com>
12955 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12958 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12959 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12960 (DEF): Don't put the var into .gnu.linkonce.r.* section.
12961 Only provide var definitions in strtol_l (or for *ull*
12964 * stdio-common/bug16.c (tests): New array.
12965 (do_tests): Allow the first hexadecimal digit
12966 to be 1, 2, 4 or 8. Do 3 additional tests.
12968 * sysdeps/s390/fpu/libm-test-ulps: Update.
12970 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12971 fchownat syscall if available.
12972 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12973 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12974 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12976 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12978 * nis/nis_xdr.c: Avoid some function calls.
12980 2006-08-07 Jakub Jelinek <jakub@redhat.com>
12981 Ulrich Drepper <drepper@redhat.com>
12983 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12984 short cut if only one name component is stripped away.
12986 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12988 * nis/nis_call.c: Minor cleanups throughout.
12989 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12990 (first_shoot): Add search_parent_first parameter. Only if it is set
12991 search parent server first.
12992 If directory for table found through cold start cache is not the same
12993 as referenced in the cache, don't use it.
12994 (__nisfind_server): Take additional parameter. Pass it on to
12996 (__prepare_niscall): Adjust __nisfind_server call.
12997 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12998 * nis/nis_table.c: Adjust __nisfind_server call.
12999 * nis/nis_lookup.c: Likewise.
13000 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13002 2006-08-03 Ulrich Drepper <drepper@redhat.com>
13005 * math/s_cacosh.c: Return values from positive branch.
13006 * math/s_cacoshf.c: Likewise.
13007 * math/s_cacoshl.c: Likewise.
13010 * sysvipc/sys/msg.h: Change return value to ssize_t.
13011 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13012 * sysvipc/msgrcv.c: Likewise.
13013 * include/sys/msg.h: Likewise.
13015 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13016 test introduced in patch for bz #661.
13017 (getgrouplist): Simplify code a bit. Don't allocate one additional
13018 element for NEWGROUPS.
13021 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13022 'f', use '1' as leading digit not '\1'.
13023 * stdio-common/Makefile (tests): Add bug16.
13024 * stdio-common/bug16.c: New file.
13027 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13028 and don't try to open it. The patch introducing the macro
13029 contained a bug and used the same file name as the new file
13030 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13031 this out completely.
13034 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13035 Patch by Jerry James <Jerry.James@usu.edu>.
13037 * rt/Makefile (tests): Add tst-clock2.
13038 * rt/tst-clock2.c: New file.
13041 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13042 function and its parameters and pass it to new thread.
13043 (__gai_notify): Add support for alternative waiting for completion.
13044 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13045 waiting for completion.
13046 * resolv/getaddrinfo_a.c: Likewise.
13047 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13048 waiting for completion is used.
13049 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13050 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13051 * resolv/gai_error.c: Likewise.
13052 * resolv/gai_sigqueue.c: Likewise.
13054 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13056 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13057 errno to EBADF and return MACH_PORT_NULL.
13059 2006-06-23 Joseph Myers <joseph@codesourcery.com>
13062 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13064 2006-08-02 Ulrich Drepper <drepper@redhat.com>
13066 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13067 walk them instead of the symbol table.
13069 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13072 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13073 status of NSS calls, not the number of returned entries.
13075 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13076 request_key, keyctl.
13078 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13080 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13082 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13084 * elf/tst-auditmod1.c: Fix typo in #error.
13086 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13088 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13090 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13092 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13094 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13095 that the directory is empty even on non-POSIX filesystems.
13097 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13099 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13101 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13102 the backend NSS module. If backend setgrent call failed, don't have
13103 internal_setgrent fail. Just remember this until it is needed.
13104 * nis/nss_compat/compat-pwd.c: Likewise.
13105 * nis/nss_compat/compat-spwd.c: Likewise.
13107 2006-07-30 Roland McGrath <roland@redhat.com>
13109 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13110 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13111 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13112 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13114 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13115 (nanosleep_not_cancel): New macro.
13116 (sigsuspend_not_cancel): new macro.
13117 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13118 (do_sigsuspend): Define as inline.
13119 (__sigsuspend): Always use do_sigsuspend.
13120 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13121 * include/signal.h: Declare __sigsuspend_nocancel.
13122 * sysdeps/posix/pause.c
13123 [! NO_CANCELLATION] (__pause_nocancel): New function.
13125 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13126 * include/time.h (__nanosleep_nocancel): Likewise.
13128 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13130 * locale/programs/localedef.c (add_to_readlist): Rename local
13131 variables to avoid confusion.
13133 * locale/programs/charmap.c (charmap_read): Emit error message if
13134 charmap couldn't be found or read.
13136 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13138 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13139 __ASSUME_FUTEX_LOCK_PI.
13140 * include/time.h: Declare __nanosleep_nocancel.
13141 * include/unistd.h: Declare __pause_nocancel.
13143 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13144 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13145 get the __stack_chk_fail_local definition when it's needed.
13147 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13149 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13150 * dlfcn/bug-atexit3.c: New file.
13151 * dlfcn/bug-atexit3-lib.cc: New file.
13153 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13154 used when the namespace is not the base namespace.
13156 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13158 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13159 (__new_exitfn): Bump it in every successful call.
13160 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13161 more exit handlers, call them right away.
13162 * stdlib/exit.h: Declare __new_exitfn_called.
13164 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13166 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13167 calling registered handler.
13169 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13170 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13171 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13172 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13173 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13174 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13175 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13176 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13178 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13180 * elf/dl-lookup.c (dl_new_hash): New functions.
13181 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13182 value here. Compute new-style hash value. Pass new hash value
13183 and reference to variable with the old value to do_lookup_x.
13184 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13185 old-style hash table.
13186 (_dl_debug_bindings): Pass new hash value and reference to variable
13187 with the old value to do_lookup_x.
13188 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13189 new-style hash value and change old-style hash value parameter to
13190 be a reference. Reoganize functions to determine whether
13191 new-style hash table is available. Only fall back on old-style
13192 table. If old-style hash value is needed, compute it here.
13193 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13195 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13196 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13197 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13198 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13199 * Makeconfig: If linker supports --hash-style option add it to all
13200 linker command lines to build DSOs.
13201 * config.make.in: Define have-hash-style.
13202 * configure.in: Test whether linker supports --hash-style option.
13204 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13205 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13207 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13209 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13212 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13213 RPATH of main map twice.
13215 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13217 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13218 look further, return original strings.
13219 (_nl_find_msg): Do not return found translation if the conversion
13220 failed. Either signal the string is unusable or that something went
13221 wrong and the original should be used.
13223 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13225 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13227 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13230 * misc/insremque.c (insque): Handle prev == NULL.
13231 * misc/Makefile (tests): Add tst-insremque.
13232 * misc/tst-insremque.c: New test.
13234 2006-06-17 Ulrich Drepper <drepper@redhat.com>
13237 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13238 conflict with DL_DST_REQUIRED.
13240 2006-06-16 Ulrich Drepper <drepper@redhat.com>
13242 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13243 match what Solaris does.
13245 2006-06-04 Ulrich Drepper <drepper@redhat.com>
13247 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13248 local_setegid instead of seteuid and setegid.
13249 * sysdeps/generic/local-setxid.h: New file.
13250 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13252 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13254 * string/Makefile (tests): Add bug-envz1.
13255 * string/bug-envz1.c: New file.
13257 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13259 * posix/regex_internal.c (re_string_skip_chars): If no character has
13260 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13261 to the byte which couldn't be converted.
13262 (re_string_reconstruct): Don't clear valid_raw_len before calling
13263 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13264 tip_context using re_string_context_at.
13265 * posix/Makefile: Add rules to build and run bug-regex25 test.
13266 * posix/bug-regex25.c: New test.
13268 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13271 * string/envz.c (envz_strip): Correct erroneously reversed src
13272 and dest parameters to memmove() invocation.
13274 2006-05-30 Jakub Jelinek <jakub@redhat.com>
13276 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13277 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13278 to make sure the database has been already invalidated.
13279 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13280 after the cache has been invalidated. Use pthread_mutex_lock rather
13281 than pthread_mutex_trylock if fd != -1.
13282 * nscd/connections.c (invalidate_cache): Add fd argument, write
13283 response to fd if not calling prune_cache, pass fd to prune_cache.
13284 (handle_request): Adjust invalidate_cache caller.
13285 (nscd_run): Pass -1 as fd to prune_cache.
13287 2006-05-30 Ulrich Drepper <drepper@redhat.com>
13289 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13292 2006-05-29 Ulrich Drepper <drepper@redhat.com>
13294 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13295 * nscd/cache.c (prune_cache): Take prunelock before starting the
13296 work. Just return in case it is already taken.
13297 * nscd/connections.c (dbs): Initialize .prunelock.
13299 2006-05-25 Ulrich Drepper <drepper@redhat.com>
13301 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13302 copying. No need to allocate new array for group members. Just
13303 move the pointers and update the size.
13305 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13306 Avoid memory leak in case realloc fails. Simplification for
13307 better code generation.
13309 Avoid deprecation warning because of libc_hidden_proto for
13310 inet6_option_alloc.
13311 * inet/inet6_option.c (option_alloc): Renamed from
13312 inet6_option_alloc. Made static.
13313 (inet6_option_alloc): Now a simple wrapper around option_alloc.
13314 (inet6_option_append): Call option_alloc.
13315 * include/netinet/in.h: Remove libc_hidden_proto for
13316 inet6_option_alloc.
13318 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13319 for cleanup when cb!=NULL [Coverity CID 233].
13321 2006-05-24 Ulrich Drepper <drepper@redhat.com>
13324 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13325 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13326 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13327 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13328 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13329 and inet6_rth_getaddr.
13330 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13332 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13333 Mark inet6_option_* interfaces as deprecated.
13334 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13335 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13336 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13337 inet6_rth_segments, and inet6_rth_getaddr.
13338 * inet/inet6_opt.c: New file.
13339 * inet/inet6_rth.c: New file.
13341 * inet/netinet/icmp6.h: Pretty printing.
13344 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13346 2006-05-23 Ulrich Drepper <drepper@redhat.com>
13348 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13349 doing it all here. When server does not know the answer do not
13350 fail immediate, try parent first.
13352 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13355 2006-05-20 Ulrich Drepper <drepper@redhat.com>
13357 * nis/nis_call.c (__prepare_niscall): New function. Split out
13359 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13361 (__follow_path): New function. Split out from nis_list.
13362 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13364 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13366 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13368 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13369 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13370 from libnsl for version GLIBC_PRIVATE.
13371 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13372 Remove entry parameter from _nss_nisplus_parse_pwent and
13373 _nss_nisplus_parse_grent.
13374 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13375 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13376 again. Rewrite getpwent handling to not use nis_first_entry and
13377 nis_next_entry. Roll out own niscall handling.
13378 * nis/nss_nisplus/nisplus-grp.c: Likewise.
13380 * sunrpc/xdr_rec.c: Fix typo in comment.
13382 2006-05-19 Ulrich Drepper <drepper@redhat.com>
13384 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13387 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13388 to allocate memory for my_pollfd. Better initialization of
13389 cb_is_running. Use TEMP_FAILURE_RETRY.
13391 * malloc/memusage.sh (memusageso): Add quotes.
13392 (memusagestat): Likewise.
13393 * debug/xtrace.sh (pcprofileso): Likewise.
13394 (pcprofiledump): Likewise.
13395 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13397 * malloc/Makefile ($(objpfx)memusage): Likewise.
13399 * nis/nis_callback.c (__nis_create_callback): Calls to
13400 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
13401 asprintf call fails.
13403 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13404 no uninitialized memory is passed to sendto.
13406 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13408 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13409 of snprintf+strdup. Handle OOM.
13410 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13411 cb->serv together. Remove now obsolete free calls.
13412 (__nis_destroy_callback): Remove now obsolete free call.
13414 2006-05-18 David Woodhouse <dwmw2@redhat.com>
13416 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13417 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13418 and ULA respectively). Set precedence for IPv4 address to 10 as
13419 defined in RFC3484 for preferring IPv6.
13420 * posix/gai.conf: Update to match the new default tables.
13422 2006-05-18 Jakub Jelinek <jakub@redhat.com>
13424 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13425 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13426 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13427 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13429 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13431 (init_nss_interface): Remove initialization of these variables.
13433 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13435 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13436 nis_free_directory forward to avoid duplication.
13438 2006-05-17 Ulrich Drepper <drepper@redhat.com>
13440 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13441 rec_dirsearch returning NULL.
13442 (first_shoot): Handle __nis_finddirectory returning NULL.
13443 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13445 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13446 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13448 2006-05-17 Jakub Jelinek <jakub@redhat.com>
13450 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13453 2006-05-15 Ulrich Drepper <drepper@redhat.com>
13455 * include/rpc/pmap_prot.h: Mark all functions as hidden.
13457 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13458 * nscd/nscd_getgr_r.c: Likewise.
13460 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13462 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13463 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13465 * stdlib/longlong.h (__clz_tab): Mark as hidden.
13467 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13469 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13471 * include/rpc/auth.h: Mark xdr_des_block_internal and
13472 xdr_opaque_auth_internal as hidden.
13474 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13477 * include/rpc/xdr.h: Mark all _internal functions as hidden.
13479 * misc/getusershell.c (okshells): Don't use static initializers,
13482 * stdlib/fmtmsg.c (keywords): Change type of len element to
13483 uint32_t to not waste space on 64bit machines.
13485 * locale/setlocale.c: Change _nl_category_names into a string.
13486 Add new _nl_category_name_idxs. Change all users.
13487 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13488 Declare _nl_category_name_idxs.
13489 * locale/findlocale.c: Adjust for _nl_category_names change.
13490 * locale/loadlocale.c: Likewise.
13491 * locale/newlocale.c: Likewise.
13492 * intl/dcigettext.c: Likewise.
13494 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13495 (add_alias2): ...here. New function.
13496 (__gconv_read_conf): Simplify builtin alias handling.
13497 (builtin_aliases): Convert to string to avoid relocations.
13498 * iconv/gconv_builtin.h: Add comment about correct formatting.
13500 2006-05-15 Jakub Jelinek <jakub@redhat.com>
13502 * resolv/res_debug.c (loc_ntoa): Make error const.
13504 2006-05-14 Andreas Schwab <schwab@suse.de>
13506 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13508 2006-05-12 Jakub Jelinek <jakub@redhat.com>
13510 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13511 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13512 sizeof (cpu_set_t).
13514 2006-05-11 Ulrich Drepper <drepper@redhat.com>
13516 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13518 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13520 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13521 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13523 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13524 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13526 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13527 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13530 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13531 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13534 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13535 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13537 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13538 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13540 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13541 * include/rpcsvc/nis_callback.h: New file.
13543 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13544 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13546 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13547 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13549 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13550 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13552 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13553 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13555 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13556 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13559 * nis/nis_xdr.h: Mark all functions as hidden. Remove
13560 __BEGIN_DECLS and __END_DECLS, the header is not installed.
13562 * nis/nis_error.c: Remove table of strings. Use position
13563 independent mechanism.
13564 * nis/nis_error.h: New file.
13566 2006-05-11 Jakub Jelinek <jakub@redhat.com>
13568 * locale/programs/ld-time.c (time_finish): If wide era name or
13569 format aren't provided, set both wname and wformat to L"".
13571 2006-05-10 Ulrich Drepper <drepper@redhat.com>
13573 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13574 results if the call was succesful.
13576 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13578 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13581 2006-05-10 Jakub Jelinek <jakub@redhat.com>
13583 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13585 2006-05-10 Ulrich Drepper <drepper@redhat.com>
13587 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13588 caller makes sure this is not the case.
13589 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
13591 2006-05-09 Ulrich Drepper <drepper@redhat.com>
13593 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13596 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13597 [Coverity CID 229, 230]
13599 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13601 (hol_help): Likewise. [Coverity CID 226, 227]
13603 * string/argz-replace.c (__argz_replace): Unconditionally call
13604 free on SRC. [Coverity CID 225]
13606 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13607 the return value of __nis_default_owner and __nis_default_group,
13608 it has been especially allocated. [Coverity CID 224]
13610 * nis/nis_defaults.c (searchXYX): New functions. Used by both
13611 searchgroup and searchowner. Significantly simplified.
13612 (__nis_default_owner): Remove duplication. Do not locally copy the
13613 string before duplicating it.
13614 (__nis_default_group): Likewise.
13616 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13617 we must clear the variable before calling __nisfind_server.
13619 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13620 nis_getnames. [Coverity CID 223]
13622 * locale/programs/locfile.c (locfile_read): Use alloca instead of
13623 xmalloc to allocate local repertoire name. [Coverity CID 222]
13625 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13626 allocate memory for the input to add_bytes. [Coverity CID 221]
13628 * posix/wordexp.c (w_addword): Free word if realloc fails and it
13629 was allocated here. [Coverity CID 219, 220]
13631 * posix/getconf.c (print_all): Free confstr data after printing.
13634 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13635 list allocation fails. [Coverity CID 215]
13637 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13640 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13641 string is NULL. [Coverity CID 212]
13642 * argp/Makefile: Add rules to build and run bug-argp1.
13643 * argp/bug-argp1.c: New file.
13645 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13647 * stdlib/canonicalize.c (__realpath): Likewise.
13649 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13650 pointer. [Coverity CID 206]
13652 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13653 in statically linked code.
13654 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13655 statically built code, be prepared to have no link map.
13658 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13659 dgettext calls. [Coverity CID 204]
13661 * argp/argp-help.c (struct uparams): Remove valid member. Change
13663 (uparam_names): Reduce size. Avoid relative relocations.
13664 Moved to read-only segment.
13665 (fill_in_uparams): Update for new layout.
13667 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13668 assumed to always be != NULL. [Coverity CID 202]
13670 * argp/argp-help.c (hol_entry_help): Remove some dead code
13671 [Coverity CID 200].
13673 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13674 away a few more unconditional yperr2nss calls.
13675 (_nss_nis_getservbyname_r): Likewise.
13677 2006-05-06 Ulrich Drepper <drepper@redhat.com>
13679 * sysdeps/generic/ldsodefs.h: Remove support for non-core
13682 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13683 that unused memory passed to sendto is nevertheless initialized.
13686 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13687 possibly unaligned memory accesses.
13689 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13690 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13691 and __putlong respectively. Correct buffer overflow check for
13694 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13696 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13697 (send_dg): Rewrite error handling to be more compact and avoid
13698 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
13700 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13702 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13703 instead of ns_get16.
13704 (res_queriesmatch): Likewise. Minor optimization.
13707 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13708 __libc_res_nsend might reallocate the buffer for the answer. In
13709 this case we have to reload the HP pointer.
13711 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13713 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
13714 some branch prediction hints.
13716 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13717 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13718 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13719 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13720 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13721 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13722 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13723 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13725 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
13727 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13728 by a GOT relocation to make Scrt1.o position independent.
13729 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13731 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13732 six system call parameters.
13733 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13735 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13737 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13740 * sunrpc/svc_udp.c (BZERO): Remove definition.
13742 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13744 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
13745 (des_SPtrans): Use uint32_t type.
13746 (des_skb): Likewise.
13748 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13750 2006-05-05 Jakub Jelinek <jakub@redhat.com>
13753 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13756 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13758 * locale/programs/ld-address.c (address_finish): Fix one more
13759 place where the iso639 array might be accessed beyond the limits.
13761 2006-05-04 Ulrich Drepper <drepper@redhat.com>
13763 * nis/nis_table.c (nis_list): Avoid clearing res twice before
13764 filling it for the first time.
13766 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13767 Adjust all callers.
13768 Free res object content before returning.
13770 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13772 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13775 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13776 cleanup for initial thread, just the free call on TVP.
13778 * nscd/gai.c (__getline): Define.
13781 See ChangeLog.16 for earlier changes.