Fix FP exception control.
[glibc.git] / ChangeLog
blobbb4e4d5dadf6c40796e19c9bf8edc6a1f73b2b9f
1 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
3         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
4         exceptions.  Return 0.
6 2010-05-07  Roland McGrath  <roland@redhat.com>
8         * elf/ldconfig.c (main): Add a const.
10 2010-05-04  Andreas Schwab  <schwab@redhat.com>
12         * posix/regexec.c (find_collation_sequence_value): Fix skipping
13         the wide char sequence of the collating element.
15 2010-05-03  Ulrich Drepper  <drepper@redhat.com>
17         [BZ #11149]
18         * elf/ldconfig.c (search_dir): Fix handling of symlinks in chroot.
20         * elf/chroot_canon.c (chroot_canon): Use xmalloc and xrealloc.
22         * elf/ldconfig.c (parse_conf_include): Don't fall back to
23         directories named in config file outside the chroot.
25 2010-05-02  Ulrich Drepper  <drepper@redhat.com>
27         * misc/mntent_r.c (encode_name): The slow loop handles newlines so we
28         should recognize them as an abort condition.
29         Patch by Jan Lieskovsky <jlieskov@redhat.com>.
31 2010-04-25  Bruno Haible  <bruno@clisp.org>
33         [BZ #11538]
34         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Use __ttyname_r's return
35         value instead of errno.
36         * sysdeps/unix/getlogin.c (getlogin): Likewise.
38         [BZ #11537]
39         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Upon failure, return
40         errno, not -1.
42 2010-04-24  Emilio Pozuelo Monfort  <pochu27@gmail.com>
44         * hurd/lookup-at.c (__file_name_lookup_at): Fix error return value.
46 2010-04-14  Andreas Schwab  <schwab@redhat.com>
48         * elf/dl-version.c (_dl_check_map_versions): Avoid index overflow
49         when dependencies are missing.
51 2010-04-09  Ulrich Drepper  <drepper@redhat.com>
53         * nscd/aicache.c (addhstaiX): Correct passing memory to address
54         list to gethostbyname4_r functions.
56         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Optimize
57         copying of h_name.
59 2010-04-07  Andreas Schwab  <schwab@redhat.com>
61         * sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
62         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
64 2009-12-01  Eric Blake  <ebb9@byu.net>
66         [BZ #11039]
67         * posix/getopt.c (_getopt_internal_r): Skip optional - or + before
68         checking lead byte of optstring for :.
70         [BZ #11040]
71         * posix/getopt.c (_getopt_internal_r): Reject '-;' as short
72         option, since it conflicts with "W;" optstring extension.
74 2009-12-02  Eric Blake  <ebb9@byu.net>
76         [BZ #11041]
77         * posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
78         to '--foo', with optional argument or non-ambiguous prefix.
80 2010-04-05  Ulrich Drepper  <drepper@redhat.com>
82         [BZ #11010]
83         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Handle
84         timeouts from servers.
86         [BZ #11149]
87         * elf/ldconfig.c (main): Respect chroot setting when looking for
88         the aux cache.
90 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
92         [BZ #11043]
93         * posix/getopt.c (_getopt_internal_r): Fix arguments printed in error
94         messages.
96         [BZ #11070]
97         * resolv/netdb.h: Declare iruserok and iruserok_af.
99         * argp/Makefile: Add rules to build and run bug-argp2.
100         * argp/bug-argp2.c: New file.
102 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
104         [BZ #11254]
105         * argp/argp-parse.c (convert_options): Fix improper use of `|'
106         between character values.
108 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
110         [BZ #11287]
111         * csu/Makefile ($(objpfx)version-info.h): Handle newer kernel headers
112         which don't define UTS_RELEASE.
114 2010-04-04  H.J. Lu  <hongjiu.lu@intel.com>
115             Ulrich Drepper  <drepper@redhat.com>
117         [BZ #11292]
118         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Allow
119         concurrent initialization and use of __cpu_features.
121 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
123         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add tag to
124         the enum.
126 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
128         [BZ #11333]
129         * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
130         which include unnecessary padding in d_reclen.
131         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
132         unnecessary padding.
134         [BZ #11387]
135         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
136         unknown interface, return -1.
137         (getifaddrs_internal): Rename from getifaddrs.  Handle errors in
138         map_newlink be returning -EAGAIN.
139         (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
140         again.
142 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
144         [BZ #11438]
145         * posix/gai.conf: Document problems with IPv4 site-local addresses and
146         NATs.
148         [BZ #11449]
149         * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
150         small_tables_initialized.
152         * malloc/malloc.c (set_max_fast): Fix computation of the value.
154 2010-03-25  Andreas Schwab  <schwab@redhat.com>
156         * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
157         each action.
159 2010-03-25  Andreas Schwab  <schwab@redhat.com>
161         * sysdeps/posix/cuserid.c: Fix typo.
163 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
165         [BZ #11397]
166         * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
167         is NUL terminated.
168         Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
170 2010-03-02  Richard Guenther  <rguenther@suse.de>
172         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
173         is sign-extending.
175 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
177         [BZ #11319]
178         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
179         undoing the stream because _IO_FINISH doesn't report failures.
181         [BZ #5553]
182         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
183         (public_pVALLOc): Likewise.
184         Patch by Petr Baudis.
186 2010-02-22  Jim Meyering  <meyering@redhat.com>
188         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
190         * manual/charset.texi: Adjust grammar.
192         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
193         * manual/charset.texi (Selecting the Conversion): Likewise.
194         * manual/getopt.texi (Getopt Long Options): Likewise.
195         * manual/memory.texi (Resizing the Data Segment): Likewise.
196         * manual/message.texi (GUI program problems): Likewise.
197         * manual/resource.texi (CPU Affinity): Likewise.
198         * manual/stdio.texi (Streams and Threads): Likewise.
199         * manual/time.texi (High Accuracy Clock): Likewise.
201 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
203         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
204         instructions cu21 and cu24.  Add well-formedness checking
205         parameter and adjust the software implementation.
206         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
208 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
210         [BZ #11271]
211         * io/ftw.c (ftw_startup): Close descriptor for initial directory
212         after changing back to it.
214 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
216         * sysdeps/i386/lshift.S: Fix unwind information.
218 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
220         [BZ #11242]
221         * misc/getusershell.c (initshells): Allocate one more byte in input
222         buffer so that fgets doesn't loop undefinitely.
224 2010-01-25  Andreas Schwab  <schwab@redhat.com>
226         * iconv/iconv_prog.c (write_output): Fix check for open failure.
228 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
230         [BZ #11200]
231         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
232         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
234 2010-01-22  Jim Meyering  <jim@meyering.net>
236         [BZ #11184]
237         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
238         detection test.  Patch by Paul Eggert.
240         [BZ #11183]
241         * posix/regex_internal.c (re_string_realloc_buffers):
242         Detect and handle internal overflow.  Patch by Paul Eggert
244 2010-01-20  Andreas Schwab  <schwab@redhat.com>
246         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
247         (CHECK_SP): Fix check for alternate stack.
248         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
249         (CHECK_SP): Likewise.
251 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
253         [BZ #11194]
254         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
256 2010-01-18  Andreas Schwab  <schwab@redhat.com>
258         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
259         casting d_tag.
261         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
262         dynamic entry types.
264 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
266         * bits/confname.h: Make pre-C99-safe.
268 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
270         [BZ #11230]
271         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
272         during recovery.
274 2010-03-25  Ryan S. Arnold  <rsa@us.ibm.com>
276         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
277         redundant and incorrect else block which overwrites current line
278         with the partial next line.
280 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
282         [BZ #11127]
283         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
284         re_node_set_insert failure; return REG_ESPACE.
285         Patch by Paul Eggert.
287 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
289         * dirent/dirent.h: Fix typo in feature selection macro use.
291 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
293         * include/link.h (struct link_map): Move l_used into its own word.
294         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
295         still zero.
296         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
297         never really used.
299 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
301         [BZ #11000]
302         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
303         *herrnop before returning.
304         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
305         Likewise.
306         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
307         TRYAGAIN errors separately.
308         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
309         *name4_r after functions.
311 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
313         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
314         before the exec.
315         * sysdeps/unix/sysv/linux/grantpt.c: New file.
316         * login/programs/pt_chown.c (main): Don't print message on errors
317         when doing real work.
319         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
320         irel relocations split out from...
321         (__libc_csu_init): ...here.
322         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
324 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
326         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
328 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
330         [BZ #10162]
331         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
332         than software pipeline.  Properly recover from shorter read.
334 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
336         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
337         Implement using sync_file_range2 syscall if __NR_sync_file_range2
338         is defined.
339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
340         file.
342 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
344         [BZ #10958]
345         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
346         initialized before using it.
347         (_IO_putwc_unlocked): Likewise.
349         [BZ #10918]
350         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
351         in cast to not throw away const-ness of parameters.
352         (__CPU_EQUAL_S): Likewise.
353         (__CPU_OP_S): Likewise.
355 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
357         * posix/bug-regex30.c: New file.
358         * posix/Makefile: Add rules to build and run bug-regex30.
359         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
360         character lead bytes when there is a range in a COMPLEX_BRACKET.
361         Reported by Oleg Bylatov.
363 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
365         [BZ #10969]
366         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
367         * locale/tst-duplocale.c: New file.
368         * locale/Makefile (tests): Add tst-duplocale.
370         [BZ #10968]
371         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
372         Patch by Bruno Haible <bruno@clisp.org>.
373         * locale/tst-locname.c: New file.
374         * locale/Makefile (tests): Add tst-locname.
376         [BZ #10972]
377         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
378         constants from recent kernels.
379         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
380         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
381         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
382         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
383         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
384         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
386 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
388         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
389         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
390         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
392 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
394         * posix/bug-regex29.c: Include stdio.h.
396 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
398         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
399         F_GETOWN_EX definitions according to corrected kernel definitions.
400         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
401         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
402         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
403         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
404         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
405         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
407 2009-11-10  Andreas Schwab  <schwab@redhat.com>
409         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
410         out of buffer space.
411         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
412         map_v4v6_hostent running out of space.
414 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
416         * string/bits/string3.h (memset): If the second parameter is constant
417         and zero there is likely no transposition.
418         Patch by Caolan McNamara <caolanm@redhat.com.
420 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
422         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
423         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
425 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
427         * malloc/memusagestat.c (main): Fix spelling in an error message.
429 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
431         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
432         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
434 2009-11-03  Andreas Schwab  <schwab@redhat.com>
436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
437         readahead.
439 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
441         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
442         relocate opd entry when resolving prelink conflicts.
444 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
446         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
447         when -D_FILE_OFFSET_BITS=64.
449         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
450         of last two arguments when -D_FILE_OFFSET_BITS=64.
451         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
452         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
453         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
454         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
455         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
456         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
458 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
460         [BZ #4457]
461         * sysdeps/generic/libgcc_s.h: New file.
462         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
464 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
466         * malloc/hooks.c (free_check): Restore locking and call _int_free
467         appropriately.
469 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
471         * version.h (VERSION): Bump for 2.11 release.
472         * include/features.h (__GLIBC_MINOR__): Bump to 11.
474         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
476         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
478         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
479         to avoid warning.
480         * stdlib/tst-strtoll.c (tests): Likewise.
482         [BZ #9986]
483         * time/strftime_l.c (__strftime_internal): Allow %OC.
485         * misc/mkostemps.c: New file.
486         * misc/mkostemps64.c: New file.
488 2009-10-30  Andreas Schwab  <schwab@redhat.com>
490         * locale/programs/locale-spec.c: Include <error.h> and
491         <libintl.h>.
493         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
495 2009-10-28  Roland McGrath  <roland@redhat.com>
497         * Makefile (dist-prepare): New target.
498         (tag-for-dist): Target removed.
499         (glibc-%.tar): Pattern rule removed.
500         (%.tar): New pattern rule, does simple use of git archive.
501         (dist-version): Remove variable definition.
502         (dist): Just depend on that.  Add .tar.xz dependency.
503         If dist-version variable not set on command line, depend on
504         dist-prepare, re-invoke with dist-version set via git describe.
506         * Makerules (%.xz): New pattern rule.
508 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
510         * elf/ifuncdep2.c: Include ifunc-sel.h.
511         (global): Delete.
512         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
513         * elf/ifuncmain1.c (global): Delete.
514         * elf/ifuncmain1vis.c: Likewise.
515         * elf/ifuncmain2.c: Likewise.
516         * elf/ifuncmain5.c: Likewise.
517         * elf/ifuncmod3.c: Likewise.
518         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
519         (foo_ifunc): Use ifunc_one.
520         * elf/ifuncmain7.c: Likewise.
521         * elf/ifuncmod1.c: Include ifunc-sel.h.
522         (global): Define protected var.
523         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
524         * elf/ifuncmod5.c: Likewise.
525         * sysdeps/generic/elf/ifunc-sel.h: New file.
526         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
528 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
530         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
531         (R_PPC_REL16*): Correct comments.
532         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
533         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
534          R_PPC64_REL16_HA): Define.
535         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
536         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
537         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
538         Delete unused "reloc" param.
539         (__process_machine_rela): Handle R_PPC_IRELATIVE.
540         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
541         Delete "reloc" param.
542         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
543         R_PPC_IRELATIVE.
544         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
545         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
546         relocations.
548 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
550         [BZ #10315]
551         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
552         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
553         UDP_ENCAP_L2TPINUDP.
555         [BZ #10349]
556         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
557         parameter, specifying length of prefix.
558         * stdio-common/tempname.c: Likewise.
559         * include/stdio.h: Adjust prototypes.
560         * libio/oldtmpfile.c: Adjust caller.
561         * misc/mkdtemp.c: Likewise.
562         * misc/mkostemp.c: Likewise.
563         * misc/mkostemp64.c: Likewise.
564         * misc/mkstemp.c:  Likewise.
565         * misc/mkstemp64.c: Likewise.
566         * misc/mktemp.c: Likewise.
567         * stdio-common/tempnam.c: Likewise.
568         * stdio-common/tmpfile.c: Likewise.
569         * stdio-common/tmpnam.c: Likewise.
570         * stdio-common/tmpnam_r.c: Likewise.
571         * misc/mkstemps.c: New file.
572         * misc/mkstemps64.c: New file.
573         * stdlib/stdlib.h: Add prototypes.
574         * misc/Makefile (routines): Add mkstemps and mkstemps64.
575         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
577 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
579         * locale/iso-639.def: Add sml entry.
581         [BZ #10391]
582         * resolv/res_send.c (send_dg): Initialize resplen.
584         [BZ #10446]
585         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
586         definition to the kernel's.
587         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
589 2009-08-18  Anders Johansson  <ajohansson@novell.com>
591         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
592         offsets and record sizes in assert()s and response sending.
593         * nscd/grpcache.c: Likewise.
594         * nscd/hstcache.c: Likewise.
595         * nscd/initgrcache.c: Likewise.
596         * nscd/pwdcache.c: Likewise.
598 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
600         [BZ #10540]
601         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
602         /etc/hosts does not exist set errnop and herrnop appropriately.
603         Patch by Steve Langasek <vorlon@debian.org>.
605         [BZ #10553]
606         * malloc/malloc.c (malloc_info): Fix typos in format strings.
607         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
609         [BZ #10564]
610         * login/utmp_file.c (TIMEOUT): Increase to 10.
612         [BZ #10609]
613         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
614         for file names in case the syscall is not available.
615         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
616         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
617         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
618         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
619         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
620         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
621         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
622         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
623         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
624         * sysdeps/unix/sysv/linux/openat.c: Likewise.
625         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
626         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
627         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
628         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
629         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
630         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
631         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
633         [BZ #10643]
634         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
635         creation filed, remove the request from the 'requests' list and signal
636         the caller that the request is finished.
638         [BZ #10692]
639         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
640         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
642         [BZ #10713]
643         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
644         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
646         [BZ #10780]
647         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
648         overflows the int return type.
650         [BZ #10717]
651         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
652         have to compute maxsize_total, we have to update the variables, and
653         the also_total handling must happen after the repair.
655         [BZ #10742]
656         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
657         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
659 2009-10-27  Andreas Schwab  <schwab@redhat.com>
661         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
662         errno is always set when returning unsuccessfully.
664 2009-10-29  Andreas Schwab  <schwab@redhat.com>
666         * malloc/memusage.c (update_data): Fix index wraparound handling
667         so that buffer_cnt is actually reset.
669 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
671         [BZ #10784]
672         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
673         of the directory we look at into the static buffer if there is one
674         at the start of the loop.
676         [BZ #10789]
677         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
678         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
680         [BZ #10840]
681         * sysdeps/unix/sysv/linux/kernel-features.h: Define
682         __ASSUME_F_GETOWN_EX.
683         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
684         if possible.
685         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
687         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
688         and f_owner_ex.
689         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
690         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
691         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
692         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
693         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
694         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
696         [BZ #10847]
697         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
698         getutmpx symbol.
700         [BZ #10823]
701         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
702         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
704 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
706         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
708 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
710         [BZ #10817]
711         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
712         Reported by Ray Chason.
714 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
716         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
717         strend-sse4.
718         * sysdeps/x86_64/multiarch/strchr.S: New file.
719         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
720         * sysdeps/x86_64/multiarch/strrchr.S: New file.
722 2009-10-21  Andreas Schwab  <schwab@redhat.com>
724         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
726 2009-10-19  Andreas Schwab  <schwab@redhat.com>
728         * include/math.h: Add hidden protos for __exp/__expf/__expl.
729         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
730         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
731         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
732         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
733         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
734         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
735         __ieee751_expl to handle overflow.
737 2009-10-14  David S. Miller  <davem@davemloft.net>
739         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
740         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
742 2009-10-13  Andreas Schwab  <schwab@redhat.com>
744         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
745         !USE_MULTIARCH.
747 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
749         [BZ #10730]
750         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
751         Patch in part by Steve Ward <planet36@gmail.com>.
753         [BZ #10731]
754         * stdlib/rand_r.c: Fix typo.
756         * po/cs.po: Update from translation team.
758 2009-10-06  Andreas Schwab  <schwab@redhat.com>
760         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
761         returning if RTLD_NOLOAD.
763 2009-10-06  Roland McGrath  <roland@redhat.com>
765         * sysdeps/x86_64/multiarch/strstr-c.c
766         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
768         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
769         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
771         * sysdeps/x86_64/multiarch/init-arch.h
772         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
773         (HAS_CPU_FEATURE): New macro.
774         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
775         * sysdeps/x86_64/multiarch/init-arch.c
776         (__get_cpu_features): #undef it before definition.
778 2009-10-05  Andreas Schwab  <schwab@redhat.com>
780         * locale/C-time.c: Revert week-1stday back to 19971130 and set
781         first_weekday to 1 and first_workday to 2.
783 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
785         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
786         F_GETOWN_EX.
787         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
788         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
789         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
790         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
791         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
792         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
794 2009-09-28  Andreas Schwab  <schwab@redhat.com>
796         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
797         * stdio-common/vfprintf.c: Likewise.
799 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
801         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
802         (mkdirat): Call __directory_name_split_at instead of
803         __directory_name_split.
805 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
807         * locale/programs/locale-spec.c (locale_special): If nothing matches
808         fail with an appropriate message.
810 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
812         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
813         and XX.
815 2009-09-25  Andreas Schwab  <schwab@redhat.com>
817         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
818         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
820 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
822         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
824 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
826         * iconvdata/iso646.c (gconv_init): Correctly initialize the
827         character size elements in step data.
829 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
831         * po/hu.po: Update from translation team.
832         * po/vi.po: Likewise.
834 2009-09-19  Roland McGrath  <roland@redhat.com>
836         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
838 2009-09-15  Roland McGrath  <roland@redhat.com>
840         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
841         * nptl/sysdeps/pthread/configure: Regenerated.
842         * nptl/sysdeps/x86_64/configure: Regenerated.
843         * sysdeps/unix/sysv/linux/configure: Regenerated.
844         * sysdeps/x86_64/elf/configure: Regenerated.
846         * Makefile (autoconf-it): Set execute bit only on top-level configure.
848         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
849         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
850         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
851         * configure: Regenerated.
853 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
855         * posix/getconf.c (main): Handle -- on command line.
857 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
859         * configure.in: Support binutils 2.100 and 3.0.
861 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
863         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
864         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
865         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
866         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
868 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
870         * locale/programs/ld-collate.c (struct locale_collate_t): Add
871         unnamed_section_defined field.
872         (collate_read): Test and set unnamed_section_defined.
874         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
875         _POSIX2_LINE_MAX.
877 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
879         * configure.in: Support binutils 2.20.
881 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
883         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
884         __strstr_ia32): Add attribute_hidden.
886 2009-09-01  Andreas Schwab  <schwab@redhat.com>
888         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
889         parsing of group entry.
891 2009-09-02  Andreas Schwab  <schwab@redhat.com>
893         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
894         external buffer.  Always discard readahead in internal buffer.
895         * libio/Makefile (tests): Add bug-wsetpos.
896         * libio/bug-wsetpos.c: New file.
898 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
900         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
901         Add attribute_hidden.
902         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
903         __strcasestr_sse2): Likewise.
904         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
905         (__fma_fma): Make static.
906         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
907         (__fmaf_fma): Make static.
909 2009-08-31  Andreas Schwab  <schwab@redhat.com>
911         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
912         reformulate in-buffer optimisation check to match code in
913         _IO_new_file_seekoff.
915 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
917         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
918         to srwi in 32-bit memcpy for power6.
920 2009-09-01  Andreas Schwab  <schwab@redhat.com>
922         * include/stdio.h: Declare hidden proto for fflush.
923         * libio/iofflush.c: Add hidden weak alias for fflush.
925 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
927         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
928         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
930 2009-08-31  Andreas Schwab  <schwab@redhat.com>
932         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
934 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
936         [BZ #10560]
937         * malloc/malloc.c: Add local assert definition to avoid problems with
938         memory allocation in the real one.
940 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
942         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
943         Removed.
944         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
945         turn off SSSE3 on Atom.
947 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
949         * stdlib/tst-strtol.c (tests): More tests.
950         * stdlib/tst-strtoll.c (tests): Likewise.
952 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
954         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
956         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
958 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
960         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
961         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
963         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
965         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
967         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
969 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
971         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
973 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
975         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
976         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
978         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
980         * sysdeps/x86_64/fpu/s_signbit.S: New file.
981         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
983         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
984         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
986         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
987         leftover YMM_SIZE definition.
989 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
991         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
992         union.
993         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
994         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
995         Redefine.
996         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
998         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
999         and SET_FLOAT_WORD definitions.
1001 2009-08-24  Roland McGrath  <roland@redhat.com>
1003         * sysdeps/unix/syscall-template.S: New file.
1004         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1005         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1006         (compile-syscall): Pass mkdep and -g options as normal.
1007         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1008         (common-generated): Don't add them here.
1010 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1012         * math/s_fdim.c: In case of overflows set errno.
1013         * math/s_fdimf.c: Likewise.
1014         * math/s_fdiml.c: Likewise.
1016         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1017         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1018         are using the inline optimizations.
1020         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1021         (__signbitf): Likewise.
1023 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1025         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1026         terminated.
1027         * posix/Makefile (tests): Add bug-regex29.
1028         * posix/bug-regex29.c: New file.
1030         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1031         older POSIX versions are selected.
1033         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1034         as well.
1035         * stdio-common/printf_fphex.c: Likewise.
1036         * stdio-common/tstdiomisc.c: Add more tests.
1038         * locale/locale.h: Include xlocale.h and the thread-local locale
1039         declarations for XPG7, not XPG6.
1041 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1043         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1044         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1047         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1048         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1050 2009-08-20  Roland McGrath  <roland@redhat.com>
1052         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1053         Use l_addr instead of l_map_start (dli_fbase).
1054         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1055         address when there is no proximate symbol.
1056         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1057         Likewise.
1059 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1061         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1063 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1065         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1066         Also handle SIGINT.  In that case only do the cleanup and then
1067         re-raise the signal.
1068         (main): Install handler for SIGINT.
1070 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1072         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1073         clobber list.
1075 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1077         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1078         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1079         tst-auditmod7b.c.
1080         (tests): Add tst-audit6 tst-audit7.
1081         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1082         tst-auditmod7a tst-auditmod7b.
1083         ($(objpfx)tst-audit6): New.
1084         ($(objpfx)tst-audit6.out): Likewise.
1085         ($(objpfx)tst-audit7): Likewise.
1086         ($(objpfx)tst-audit7.out): Likewise.
1087         (tst-audit6-ENV): Likewise.
1088         (tst-audit7-ENV): Likewise.
1089         (CFLAGS-tst-auditmod6b.c): Likewise.
1090         (CFLAGS-tst-auditmod6c.c): Likewise.
1091         (CFLAGS-tst-auditmod7b.c): Likewise.
1092         * elf/tst-audit6.c: New file.
1093         * elf/tst-audit7.c: New file.
1094         * elf/tst-auditmod6a.c: New file.
1095         * elf/tst-auditmod6b.c: New file.
1096         * elf/tst-auditmod6c.c: New file.
1097         * elf/tst-auditmod7a.c: New file.
1098         * elf/tst-auditmod7b.c: New file.
1099         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1100         saving and restoring SSE/AVX registers to ...
1101         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1103 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1105         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1106         only if SHARED is defined.
1107         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1109 2009-08-03  Jim Meyering  <meyering@redhat.com>
1111         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1113 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1115         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1116         section as the other functions for this architecture.
1117         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1119 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1121         * sysdeps/x86_64/strcmp.S: Add support to compile with
1122         USE_SSSE3.  In this case palignr is used.
1123         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1124         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1125         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1126         Add strcmp-ssse3 and strncmp-ssse3.
1127         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1128         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1130         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1131         warning through fake initialization.
1133 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1135         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1137 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1139         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1140         unique symbols.
1142 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1144         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1145         EBX from EAX = 1.  Handle EAX = 11.
1147 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1149         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1150         inside ''.
1152 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1154         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1155         hidden IFUNC functions.
1156         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1158         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1160         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1161         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1162         strcasestr-c.
1163         (CFLAGS-strcspn-c.c): Define.
1164         (CFLAGS-strpbrk-c.c): Define.
1165         (CFLAGS-strspn-c.c): Define.
1166         (CFLAGS-strstr.c): Define.
1167         (CFLAGS-strcasestr.c): Define.
1168         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1169         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1170         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1171         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1172         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1173         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1174         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1175         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1176         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1177         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1178         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1179         -16L instead of 0xfffffffffffffff0L.
1180         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1182 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1184         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1186 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1188         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1189         another rewrite.  Much smaller and faster.
1190         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1192         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1193         ss_flags from the correct location.
1195 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1197         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1198         * sysdeps/i386/i686/cacheinfo.c: New file.
1199         * sysdeps/i386/i686/multiarch/Makefile: New file.
1200         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1201         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1202         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1203         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1204         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1205         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1206         (__cpuid_count): New. Provide the default.
1207         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1208         (__x86_64_preferred_memory_instruction): Define only if
1209         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1210         (intel_check_word): Use __cpuid.
1211         (handle_intel): Likewise.
1212         (handle_amd): Likewise.
1213         (__cache_sysconf): Likewise.
1214         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1215         (__cache_sysconf): Likewise.
1216         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1217         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1218         (get_common_indeces): Use __cpuid.
1219         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1220         if ENABLE_SSSE3_ON_ATOM is not defined.
1221         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1222         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1223         popcnt instead of popcntq.
1225 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1227         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1229 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1231         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1232         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1233         which always causes a compile error.
1235         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1237         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1238         comes from...
1239         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1240         which always causes a compile error.
1242         * debug/Makefile (tests): Add tst-longjmp_chk2.
1243         * debug/tst-longjmp_chk2.c: New file.
1245         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1246         Remove incorrect use of BP_SYM.
1247         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1248         here now since it is more complex than just a simple check.
1250         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1251         we make no more progress.
1253 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1255         * math/s_fma.c: Don't define alias if __fma is a macro.
1256         * math/s_fmaf.c: Likewise.
1257         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1258         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1259         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1261         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1262         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1263         New macro HAS_FMA.
1264         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1265         function.
1266         * include/libc-symbols.h (libm_ifunc): Define.
1267         * sysdeps/x86_64/multiarch/Versions: New file.
1269         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1271 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1273         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1275 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1277         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1278         call that registers used in calling conventions need to be preserved.
1279         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1280         to preserve register content if necessary.
1281         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1282         (_dl_x86_64_restore_sse): New function.
1283         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1284         is allowed to modify xmm/ymm registers.
1286         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1287         application's perspective.
1288         * stdio-common/scanf17.c: Likewise.
1290 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1292         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1293         size to memsz.
1294         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1295         here.
1296         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1297         two steps to catch bugs.
1299 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1301         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1302         determines which files are used in runtime lookups and only checks
1303         those for SSE use.
1304         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1305         testing.
1306         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1307         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1308         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1309         take a while.
1311         * elf/dl-open.c: Move _dl_scope_free to...
1312         * elf/dl-scope.c: ...here.  New file.
1313         * elf/Makefile (dl-routines): Add scope.
1315         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1316         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1317         RES_USE_DNSSEC.
1318         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1319         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1320         all the places we handled RES_USE_EDNS0 only before.
1321         Patch by Adam Tkac <atkac@redhat.com>.
1323 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1325         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1326         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1327         Update size when reallocating.
1329 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1331         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1332         functions used in ld.so modify xmm/ymm registers.
1333         * sysdeps/x86_64/Makefile:  Hook new test up.
1334         * sysdeps/x86_64/rtld-memchr.c: New file.
1335         * sysdeps/x86_64/rtld-memcmp.c: New file.
1336         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1337         * sysdeps/x86_64/rtld-strchr.S: New file.
1338         * sysdeps/x86_64/rtld-strlen.S: New file.
1339         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1340         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1342 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1344         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1345         strncmp-c.
1346         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1347         (exit): Likewise.
1348         (Byte1): Likewise.
1349         (Byte2): Likewise.
1350         (Byte3): Likewise.
1351         (Byte4): Likewise.
1352         (Byte5): Likewise.
1353         (Byte6): Likewise.
1354         (next_8_bytes): Likewise.
1355         (Byte0): Remove commented out codes.
1356         (unaligned_table): Align jump table at 8 bytes.
1357         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1358         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1359         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1360         * sysdeps/x86_64/strncmp.S: New file.
1362 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1364         [BZ #10422]
1365         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1366         kernels, dropped when eventfd2 support was added.
1367         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1368         kernels, dropped when signalfd4 support was added.
1369         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1370         added, name them.
1372         [BZ #10452]
1373         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1374         replies up.
1376         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1378 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1380         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1381         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1383         [BZ #10448]
1384         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1385         callback we must touch the status to avoid using stale value.
1387         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1388         compiled in.
1390 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1392         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1393         /lib/modules/* headers anymore.  We have sane headers in the standard
1394         place now.
1396 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1398         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1399         "etf3enh" and "highgprs" added.
1400         (_dl_s390_platforms): "z10" added.
1401         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1402         Increased for the new entries.
1403         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1404         HWCAP_S390_HIGH_GPRS added.
1406         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1407         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1408         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1409         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1410         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1412 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1414         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1415         avoid additional cpuid instructions.  Most of the information is
1416         stored somewhere.
1418         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1419         cache descriptors.
1420         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1422         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1423         SSSE3 bit for Atoms.
1424         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1425         here anymore.
1427         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1428         structure before copying it to avoid warning.
1429         * posix/tst-rfc3484-2.c (do_test): Likewise.
1430         * posix/tst-rfc3484-3.c (do_test): Likewise.
1432         [BZ #10416]
1433         * include/unistd.h: Make header file suitable for C++ test cases.
1434         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1436         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1437         stack alignment in the exit code.
1439         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1440         potentially be zero.
1442         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1443         unique symbol definition.
1444         Patch by Jakub Jelinek.
1445         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1446         make sure the object with the definition cannot be unloaded.  Adjust
1447         a few types.
1448         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1449         the unique symbol hash table should not be const.
1451 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1453         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1454         unnecesary variables.  Comment fixes.
1456 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1458         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1459         Use NONASCII_CASE information provided by the locale to determine
1460         whether optimized string load function can be used.  Minor cleanups.
1462 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1464         * string/strcasestr.c (STRCASESTR): New macro.
1465         (__strcasestr): Renamed to ..
1466         (STRCASESTR): ...this.
1467         * string/strstr.c (STRSTR): New macro.
1468         (strstr): Renamed to ..
1469         (STRSTR): ...this.
1470         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1471         strstr-c strcasestr-c
1472         (CFLAGS-strstr.c): New.
1473         (CFLAGS-strcasestr.c): Likewise.
1474         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1475         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1476         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1477         * sysdeps/x86_64/multiarch/strstr.c: New file.
1479 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1481         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1482         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1483         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1484         _NL_CTYPE_NONASCII_CASE.
1485         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1486         field.
1487         (ctype_finish): Check whether there are any 8-bit characters outside
1488         the range ASCII has or whether the mapping isn't the same as for
1489         ASCII (±0x20).  Set nonascii_case appropriately.
1490         (ctype_output): Add output handler for nonascii_case.
1492 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1494         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1495         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1497 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1499         [BZ #10360]
1500         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1501         0xffff in the EDNS0 record.
1503 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1505         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1506         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1507         is written before the list head update.
1508         Patch by Andreas Schwab <aschwab@redhat.com>.
1510 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1511             Jakub Jelinek  <jakub@redhat.com>
1513         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1514         corruption thread-safe.
1516 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1518         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1519         overrides atomic_compare_and_exchange_val_rel, define to
1520         atomic_compare_and_exchange_val_rel by default, otherwise default
1521         to catomic_compare_and_exchange_val_acq.
1522         (catomic_compare_and_exchange_bool_rel): If arch overrides
1523         atomic_compare_and_exchange_bool_rel, define to
1524         atomic_compare_and_exchange_bool_rel by default.
1525         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1526         Use catomic_compare_and_exchange_val_rel instead of
1527         catomic_compare_and_exchange_val_acq.
1529 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1531         * sysdeps/generic/ldsodefs.h: Add prototype for
1532         _dl_higher_prime_number.
1533         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1535         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1536         restoring of ymm registers a bit.
1538 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1540         * sysdeps/x86_64/memcmp.S: New file.
1542 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1544         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1545         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1546         pointers in writable memory.
1548 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1550         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1551         * config.make.in: Add config-cflags-avx entry.
1552         * configure.in: Substitute libc_cv_cc_avx.
1553         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1554         * elf/tst-audit4.c: New file.
1555         * elf/tst-audit5.c: New file.
1556         * elf/tst-auditmod4a.c: New file.
1557         * elf/tst-auditmod4b.c: New file.
1558         * elf/tst-auditmod5a.c: New file.
1559         * elf/tst-auditmod5b.c: New file.
1560         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1561         link-defines.sym.
1562         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1563         (La_x86_64_vector): Likewise.
1564         (La_x86_64_regs): Append lr_vector.
1565         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1566         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1567         saving and restoring SSE registers to ...
1568         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1569         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1570         <link-defines.h>.
1571         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1572         La_x86_64_regs.  Allocate extra space and jump to memory at
1573         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1574         (save_and_restore_vector_sse): New.
1575         (save_and_restore_vector_avx): Likewise.
1576         (check_avx): Likewise.
1577         (save_and_restore_vector): Likewise.
1578         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1579         HAVE_AVX_SUPPORT.
1580         * sysdeps/x86_64/link-defines.sym: New file.
1582 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1584         * elf/do-lookup.h: Removed after folding content into...
1585         * elf/dl-lookup.c: ...here.
1587         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1589 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1591         * configure.in: Check for gnu_unique_symbol symbol type.
1592         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1593         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1594         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1595         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1596         change.
1597         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1598         unique symbol table.
1599         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1600         for first namespace.
1601         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1602         unique symbol hash table.
1603         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1604         * elf/tst-unique1.c: New file.
1605         * elf/tst-unique1mod1.c: New file.
1606         * elf/tst-unique1mod2.c: New file.
1607         * elf/tst-unique2.c: New file.
1608         * elf/tst-unique2mod1.c: New file.
1609         * elf/tst-unique2mod2.c: New file.
1611 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1613         * elf/elf.h (STB_GNU_UNIQUE): Define.
1615         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1616         from...
1617         * include/inline-hashtab.h: ...here.
1618         (htab_expand): Adjust for renamed function.  Correct memory handling.
1620 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1622         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1624 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1626         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1627         (PPC_FEATURE_HAS_VSX): Likewise.
1629 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1631         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1632         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1634         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1635         aligned to 16 byte boundaries.
1636         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1637         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1638         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1640 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1642         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1643         * config.make.in (config-cflags-sse4): New variable.
1644         * configure.in: Substitute libc_cv_cc_sse4.
1645         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1646         HAVE_SSE4_SUPPORT.
1647         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1648         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1649         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1650         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1651         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1652         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1653         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1654         * sysdeps/x86_64/multiarch/strspn.S: New file.
1656 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1658         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1659         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1660         (tests): Add tst-audit3 for x86_64.
1661         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1662         ($(objpfx)tst-audit3): Define.
1663         ($(objpfx)tst-audit3.out): Define.
1664         (tst-audit3-ENV): Define.
1665         * elf/tst-audit3.c: New file.
1666         * elf/tst-auditmod3a.c: New file.
1667         * elf/tst-auditmod3b.c: New file.
1668         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1669         and restore xmm6.
1671         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1672         (__stpncpy): Renamed to ...
1673         (STPNCPY): This.
1674         (stpncpy): Create alias only if STPNCPY is not defined.
1675         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1676         defined.
1677         (strncpy): Renamed to ...
1678         (STRNCPY): This.
1679         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1680          stpncpy-c strncpy-c for string.
1681         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1682         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1683         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1684         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1685         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1686         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1688 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1690         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1691         adding to fast bin list.
1693 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1695         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1696         inet_makeaddr.  This worked only with class-based networks.
1697         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1698         Likewise.
1700         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1701         recognize all types.
1702         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1703         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1704         be in host byte order.
1706 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1708         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1709         (MODEL_OFFSET): Define.
1710         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1711         family and model.
1712         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1713         out common code into new function get_common_indeces. Determine
1714         extended family and model for Intel processors.
1716 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1718         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1719         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1720         option.
1721         * resolv/res_send.c (reopen): New function.  Broken out of...
1722         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1723         fallback mechanism.  If single-request fails switch to
1724         single-request-reopen mode which opens a new socket for the second
1725         request.
1727 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1729         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1730         (CHECK_SP): Use it.
1732 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1734         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1735         for saved registers.
1736         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1737         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1738         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1740 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1742         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1744 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1746         * po/id.po: Update from translation team.
1748         * po/bg.po: Update from translation team.
1750 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1752         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1753         defined.
1754         (strncmp): Renamed to STRNCMP.
1755         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1756         strncmp-c for string.
1757         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1758         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1759         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1760         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1762 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1764         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1765         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1766         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1767         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1768         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1769         ifuncmain7static.c.
1770         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1771         ifuncmain7static, and ifuncmain7picstatic.
1772         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1773         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1774         $(objpfx)ifuncmain7pie.out.
1775         (modules-names): Add ifuncmod5 ifuncmod6
1776         (ifuncmod5.so-no-z-defs): Define.
1777         (ifuncmod6.so-no-z-defs): Define.
1778         (CFLAGS-ifuncmain5pic.c): Define.
1779         (CFLAGS-ifuncmain5picstatic.c): Define.
1780         (CFLAGS-ifuncmain5staticpic.c): Define.
1781         (CFLAGS-ifuncdep5pic.c): Define.
1782         (CFLAGS-ifuncmain7pic.c): Define.
1783         (CFLAGS-ifuncmain7picstatic.c): Define.
1784         (CFLAGS-ifuncmain1staticpie.c): Define.
1785         (CFLAGS-ifuncmain5pie.c): Define.
1786         (CFLAGS-ifuncmain6pie.c): Define.
1787         (CFLAGS-ifuncmain7pie.c): Define.
1788         ($(objpfx)ifuncmain1staticpie.out): Define.
1789         ($(objpfx)ifuncmain1staticpie): Define.
1790         ($(objpfx)ifuncmain5pie.out): Define.
1791         ($(objpfx)ifuncmain5pie): Define.
1792         ($(objpfx)ifuncmain6pie.out): Define.
1793         ($(objpfx)ifuncmain6pie): Define.
1794         ($(objpfx)ifuncmain5): Define.
1795         ($(objpfx)ifuncmain5pic): Define.
1796         ($(objpfx)ifuncmain5static): Define.
1797         ($(objpfx)ifuncmain5staticpic): Define.
1798         ($(objpfx)ifuncmain5picstatic): Define.
1799         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1800         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1801         ifuncmain6pie.out.
1802         * elf/b/elf/ifuncmain1staticpie.c: New file.
1803         * elf/ifuncdep5.c: New file.
1804         * elf/ifuncdep5pic.c: New file.
1805         * elf/ifuncmain5.c: New file.
1806         * elf/ifuncmain5pic.c: New file.
1807         * elf/ifuncmain5picstatic.c: New file.
1808         * elf/ifuncmain5pie.c: New file.
1809         * elf/ifuncmain5static.c: New file.
1810         * elf/ifuncmain5staticpic.c: New file.
1811         * elf/ifuncmain6pie.c: New file.
1812         * elf/ifuncmain7.c: New file.
1813         * elf/ifuncmain7pic.c: New file.
1814         * elf/ifuncmain7picstatic.c: New file.
1815         * elf/ifuncmain7pie.c: New file.
1816         * elf/ifuncmain7static.c: New file.
1817         * elf/ifuncmod5.c: New file.
1818         * elf/ifuncmod6.c: New file.
1820 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1822         [BZ #10085]
1823         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1824         (nss_endgrent): New variable.
1825         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1826         fields. Change type of files to bool and adjust all users.
1827         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1828         (internal_endgrent): Call nss_endgrent if necessary.
1829         (add_group): New function.  Broken out of...
1830         (check_and_add_group): ...here.
1831         (getgrent_next_nss): Remove test that any callback is available.
1832         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1833         callback.  If there is no blacklist we can trust the results returned
1834         by the initgroups_dyn callback.  In case there is a callback and we
1835         find a group entry for the group ID but it doesn't contain the
1836         correct member, switch to the slow mode and use getgrent_r.
1837         (internal_getgrent_r): When we see a +: entry, determine whether
1838         there is any callback and which we can use the initgroups_dyn
1839         callback.
1841 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1843         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1844         (_int_free): Likewise.
1846         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1847         AF_IEEE802154.
1848         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1849         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1850         and ARPHRD_IEEE802154_PHY.
1852         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1853         relative to generic Linux version.
1855 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1857         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1858         ($(objpfx)ifuncmain1vispie): Likewise.
1860 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1862         * login/Makefile: Build pt_chown as PIE.
1864 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1866         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1867         a format string.
1868         * elf/sln.c (usage): Likewise.
1869         * malloc/memusage.sh (do_help): Likewise.
1870         * nss/getent.c (more_help): Likewise.
1871         * posix/getconf.c (main): Likewise.
1872         * sunrpc/rpcinfo.c (usage): Likewise.
1873         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1875 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1877         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1878         those needed.
1879         * login/Makefile: If necessary link pt_chown with -lcap.
1880         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1881         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1883 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1885         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1886         comparisons.
1887         * string/test-memchr.c (do_random_tests): Test very large lengths
1888         as well.
1890 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1892         * Makeconfig (+link-pie): Define.
1893         (+prectorS): Define.
1894         (+postctorS): Define.
1895         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1896         * nscd/Makefile ($(objpfx)nscd): Likewise.
1898 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1900         [BZ #10107]
1901         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1902         with cmplwi.
1903         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1905 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1907         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1908         into ...
1909         * sysdeps/unix/grantpt.c: ...here.
1911 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1913         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1914         chmod if it is necessary.
1916         [BZ #10166]
1917         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1918         when the slave device is in devpts or devfs.
1920         [BZ #10183]
1921         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1923         [BZ #10195]
1924         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1925         of nd_opt_home_agent_info_preference to uint16_t.
1926         Patch by Arnaud Ebalard <arno@natisbad.org>.
1928         [BZ #10207]
1929         * nss/getent.c: Add support for printing gshadow data.
1931         [BZ #10203]
1932         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1933         not just the currently used one and those which follow.
1934         Patch by Joe Landers <jlanders@vmware.com>.
1936         [BZ #10196]
1937         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1938         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1939         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1941         [BZ #10217]
1942         * stdlib/abort.c: Define variable __abort_msg.
1943         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1944         * include/stdlib.h: Declare __abort_msg.
1945         * assert/assert-perr.c: Don't free buffer for message immediately.
1946         Store atomically in __abort_msg and free old buffer if necessary.
1947         * assert/assert.c: Likewise.
1948         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1949         store pointer in __abort_msg, and possibly free old string.
1950         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1952         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1954         [BZ #10211]
1955         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1956         handle leap seconds if they are available.
1957         Patch by Akinori Hattori <hattya@gentoo.org>.
1959         * timezone/tzselect.ksh: Update from tzcode2009i.
1960         * timezone/zdump.c: Likewise.
1961         * timezone/zic.c: Likewise.
1963         * timezone/africa: Update from tzdata2009i.
1964         * timezone/antarctica: Likewise.
1965         * timezone/asia: Likewise.
1966         * timezone/australasia: Likewise.
1967         * timezone/backward: Likewise.
1968         * timezone/etcetera: Likewise.
1969         * timezone/europe: Likewise.
1970         * timezone/factory: Likewise.
1971         * timezone/iso3166.tab: Likewise.
1972         * timezone/leapseconds: Likewise.
1973         * timezone/northamerica: Likewise.
1974         * timezone/pacificnew: Likewise.
1975         * timezone/solar87: Likewise.
1976         * timezone/solar88: Likewise.
1977         * timezone/solar89: Likewise.
1978         * timezone/southamerica: Likewise.
1979         * timezone/systemv: Likewise.
1980         * timezone/yearistype: Likewise.
1981         * timezone/zone.tab: Likewise.
1983 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1985         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1986         STT_GNU_IFUNC symbol or in 8 into type_class.
1988         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1989         instead of Elf64_Addr.
1991 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1993         * po/sv.po: Update from translation team.
1995         [BZ #10229]
1996         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1997         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1998         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1999         the C version.
2001 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2003         * Versions.def: Add GLIBC_2.11 for libpthread.
2005 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2007         * resolv/res_send.c (send_dg): Remember we switched to
2008         single-request mode.
2010 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2012         * dlfcn/dlfcn.h: Remove comma at end of enum.
2013         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2015         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2016         parsing mode string.
2018 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2020         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2022         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2024         * sysdeps/x86_64/multiarch/strlen.S: New file.
2025         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2026         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2027         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2028         content.
2030         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2031         is defined.
2033 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2035         * sysdeps/x86_64/strlen.S: Minor optimizations.
2037 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2039         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2040         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2041         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2042         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2043         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2044         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2045         ifuncmain3.c, ifuncmod3.c,.
2046         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2047         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2048         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2049         ifuncmain4picstatic.
2050         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2051         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2052         ifuncmain3, ifuncmain4.
2053         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2054         $(objpfx)ifuncmain1vispie.out.
2055         (modules-names): Add ifuncmod1 ifuncmod3.
2056         (generated): Add ifuncmain1pie ifuncmain1pie.out
2057         ifuncmain1vispie ifuncmain1vispie.out.
2058         Define rules to build and run the tests.
2059         * elf/ifuncdep1.c: New file.
2060         * elf/ifuncdep1pic.c: New file.
2061         * elf/ifuncdep2.c: New file.
2062         * elf/ifuncdep2pic.c: New file.
2063         * elf/ifuncmain1.c: New file.
2064         * elf/ifuncmain1pic.c: New file.
2065         * elf/ifuncmain1picstatic.c: New file.
2066         * elf/ifuncmain1pie.c: New file.
2067         * elf/ifuncmain1static.c: New file.
2068         * elf/ifuncmain1staticpic.c: New file.
2069         * elf/ifuncmain1vis.c: New file..
2070         * elf/ifuncmain1vispic.c: New file..
2071         * elf/ifuncmain1vispie.c: New file.
2072         * elf/ifuncmain2.c: New file.
2073         * elf/ifuncmain2pic.c: New file.
2074         * elf/ifuncmain2picstatic.c: New file.
2075         * elf/ifuncmain2static.c: New file.
2076         * elf/ifuncmain3.c: New file.
2077         * elf/ifuncmain4.c: New file.
2078         * elf/ifuncmain4picstatic.c: New file.
2079         * elf/ifuncmain4static.c: New file.
2080         * elf/ifuncmod1.c: New file.
2081         * elf/ifuncmod3.c: New file.
2083 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2085         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2087 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2089         [BZ #10221]
2090         * posix/Makefile (routines): Add execvpe.
2091         * posix/Versions: Export execvpe for GLIBC_2.11.
2092         * posix/execvp.c: Now only a wrapper.  Move code to...
2093         * posix/execvpe.c: ...here.  New file.
2094         * posix/unistd.h: Declare execvpe.
2096 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2098         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2099         for STT_GNU_IFUNC handling for efficiency.
2100         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2102         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2103         _exit.
2104         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2106 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2108         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2109         for !SHARED.
2111 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2113         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2114         is not defined.
2115         (__rela_iplt_start): New declaration.
2116         (__rela_iplt_end): Likewise.
2117         (__rel_iplt_start): Likewise.
2118         (__rel_iplt_end): Likewise.
2119         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2120         * elf/elf.h (R_386_IRELATIVE): New macro.
2121         (R_X86_64_IRELATIVE): New macro.
2122         (R_386_NUM): Updated.
2123         (R_X86_64_NUM): Likewise.
2124         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2125         (libc_ifunc_hidden_def): New macro.
2126         * sysdeps/generic/dl-irel.h: New file.
2127         * sysdeps/i386/dl-irel.h: New file.
2128         * sysdeps/x86_64/dl-irel.h: New file.
2129         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2130         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2131         Handle R_386_IRELATIVE.
2132         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2133         (elf_machine_lazy_rela): Likewise.
2134         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2135         R_X86_64_IRELATIVE.
2136         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2138 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2140         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2141         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2142         are no differences.  If an architecture has bits in CPUID index 1
2143         meaning different things the values for the COMMON_CPUID_INDEX_1
2144         index must not be set.
2145         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2146         (HAS_POPCOUNT): ...this.  New macro.
2147         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2148         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2149         to set the value for Intel and AMD architectures.
2150         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2151         INTEL_CPUID_INDEX_1.
2152         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2153         change.
2155 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2157         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2158         and $build.
2160 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2162         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2163         (__expm1l): Set errno to ERANGE on overflow.
2164         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2165         (__tanl): Set errno to EDOM for Â±Inf.
2166         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2167         (__cosl): Set errno to EDOM for Â±Inf.
2168         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2169         (__sinl): Set errno to EDOM for Â±Inf.
2171         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2172         defined, use it.
2173         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2174         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2175         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2177 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2179         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2180         code accessing it.
2181         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2183 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2185         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2186         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2187         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2188         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2190         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2191         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2192         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2193         defined.
2194         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2195         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2197 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2199         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2200         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2201         is, either do nothing at all if __ASSUME_ACCEPT4, or
2202         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2203         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2204         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2205         define.
2206         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2207         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2208         internal_accept4 in socket directory.
2210 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2212         * sysdeps/ia64/configure.in: New file.
2214 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2216         [BZ #10162]
2217         * sysdeps/ia64/memchr.S: Use speculative load.
2219         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2220         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2221         use it.
2223         * sysdeps/i386/__longjmp.S: Add .text.
2224         * sysdeps/x86_64/__longjmp.S: Likewise.
2226 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2228         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2229         __ASSUME_ACCEPT4 for IA-64.
2231 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2233         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2235         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2236         (SOCKOP_accept4): Define.
2238 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2240         Sun approved the change of the license.
2241         * sunrpc/auth_des.c: Replace license text.
2242         * sunrpc/auth_none.c: Likewise.
2243         * sunrpc/auth_unix.c: Likewise.
2244         * sunrpc/authdes_prot.c: Likewise.
2245         * sunrpc/authuxprot.c: Likewise.
2246         * sunrpc/bindrsvprt.c: Likewise.
2247         * sunrpc/clnt_gen.c: Likewise.
2248         * sunrpc/clnt_perr.c: Likewise.
2249         * sunrpc/clnt_raw.c: Likewise.
2250         * sunrpc/clnt_simp.c: Likewise.
2251         * sunrpc/clnt_tcp.c: Likewise.
2252         * sunrpc/clnt_udp.c: Likewise.
2253         * sunrpc/clnt_unix.c: Likewise.
2254         * sunrpc/des_crypt.c: Likewise.
2255         * sunrpc/des_soft.c: Likewise.
2256         * sunrpc/get_myaddr.c: Likewise.
2257         * sunrpc/getrpcport.c: Likewise.
2258         * sunrpc/key_call.c: Likewise.
2259         * sunrpc/key_prot.c: Likewise.
2260         * sunrpc/openchild.c: Likewise.
2261         * sunrpc/pm_getmaps.c: Likewise.
2262         * sunrpc/pm_getport.c: Likewise.
2263         * sunrpc/pmap_clnt.c: Likewise.
2264         * sunrpc/pmap_prot.c: Likewise.
2265         * sunrpc/pmap_prot2.c: Likewise.
2266         * sunrpc/pmap_rmt.c: Likewise.
2267         * sunrpc/rpc/auth.h: Likewise.
2268         * sunrpc/rpc/auth_unix.h: Likewise.
2269         * sunrpc/rpc/clnt.h: Likewise.
2270         * sunrpc/rpc/des_crypt.h: Likewise.
2271         * sunrpc/rpc/key_prot.h: Likewise.
2272         * sunrpc/rpc/netdb.h: Likewise.
2273         * sunrpc/rpc/pmap_clnt.h: Likewise.
2274         * sunrpc/rpc/pmap_prot.h: Likewise.
2275         * sunrpc/rpc/pmap_rmt.h: Likewise.
2276         * sunrpc/rpc/rpc.h: Likewise.
2277         * sunrpc/rpc/rpc_des.h: Likewise.
2278         * sunrpc/rpc/rpc_msg.h: Likewise.
2279         * sunrpc/rpc/svc.h: Likewise.
2280         * sunrpc/rpc/svc_auth.h: Likewise.
2281         * sunrpc/rpc/types.h: Likewise.
2282         * sunrpc/rpc/xdr.h: Likewise.
2283         * sunrpc/rpc_clntout.c: Likewise.
2284         * sunrpc/rpc_cmsg.c: Likewise.
2285         * sunrpc/rpc_common.c: Likewise.
2286         * sunrpc/rpc_cout.c: Likewise.
2287         * sunrpc/rpc_dtable.c: Likewise.
2288         * sunrpc/rpc_hout.c: Likewise.
2289         * sunrpc/rpc_main.c: Likewise.
2290         * sunrpc/rpc_parse.c: Likewise.
2291         * sunrpc/rpc_parse.h: Likewise.
2292         * sunrpc/rpc_prot.c: Likewise.
2293         * sunrpc/rpc_sample.c: Likewise.
2294         * sunrpc/rpc_scan.c: Likewise.
2295         * sunrpc/rpc_scan.h: Likewise.
2296         * sunrpc/rpc_svcout.c: Likewise.
2297         * sunrpc/rpc_tblout.c: Likewise.
2298         * sunrpc/rpc_util.c: Likewise.
2299         * sunrpc/rpc_util.h: Likewise.
2300         * sunrpc/rpcinfo.c: Likewise.
2301         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2302         * sunrpc/rpcsvc/key_prot.x: Likewise.
2303         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2304         * sunrpc/rpcsvc/mount.x: Likewise.
2305         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2306         * sunrpc/rpcsvc/rex.x: Likewise.
2307         * sunrpc/rpcsvc/rstat.x: Likewise.
2308         * sunrpc/rpcsvc/rusers.x: Likewise.
2309         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2310         * sunrpc/rpcsvc/spray.x: Likewise.
2311         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2312         * sunrpc/rtime.c: Likewise.
2313         * sunrpc/svc.c: Likewise.
2314         * sunrpc/svc_auth.c: Likewise.
2315         * sunrpc/svc_authux.c: Likewise.
2316         * sunrpc/svc_raw.c: Likewise.
2317         * sunrpc/svc_run.c: Likewise.
2318         * sunrpc/svc_simple.c: Likewise.
2319         * sunrpc/svc_tcp.c: Likewise.
2320         * sunrpc/svc_udp.c: Likewise.
2321         * sunrpc/svc_unix.c: Likewise.
2322         * sunrpc/svcauth_des.c: Likewise.
2323         * sunrpc/xcrypt.c: Likewise.
2324         * sunrpc/xdr.c: Likewise.
2325         * sunrpc/xdr_array.c: Likewise.
2326         * sunrpc/xdr_float.c: Likewise.
2327         * sunrpc/xdr_mem.c: Likewise.
2328         * sunrpc/xdr_rec.c: Likewise.
2329         * sunrpc/xdr_ref.c: Likewise.
2330         * sunrpc/xdr_sizeof.c: Likewise.
2331         * sunrpc/xdr_stdio.c: Likewise.
2333         * po/da.po: Update from translation team.
2335 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2337         * sysdeps/sh/____longjmp_chk.S: New file.
2338         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2339         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2341 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2342             Ulrich Drepper  <drepper@redhat.com>
2344         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2345         (__nscd_cache_search): Assume each entry in the
2346         hash chain needs one hashentry and half of datahead.  Use
2347         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2349 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2351         * posix/sys/wait.h: Fix typos.  Pretty printing.
2352         * stdlib/stdlib.h: Likewise.  Correct comments.
2354         [BZ #10159]
2355         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2357         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2358         patch.
2360 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2362         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2363         Use it if we absolutely cannot reach any more correct list elements
2364         because that many do not fit into the currently mapped database.
2366 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2368         * nscd/nscd_helper.c: Include stddef.h.
2369         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2370         in a couple of places.  Return NULL if trail is not less than
2371         datasize, don't consider dataheads with length smaller than
2372         offsetof (struct datahead, data) + datalen.
2373         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2374         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2375         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2376         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2377         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2378         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2379         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2381         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2382         Rename ...
2383         (fallocate64): ... to this.
2384         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2385         Rename ...
2386         (fallocate64): ... to this.
2387         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2388         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2389         fallocate64@@GLIBC_2.10.
2390         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2391         fallocate64@@GLIBC_2.11.
2392         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2394         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2395         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2397         * nscd/selinux.c (nscd_avc_destroy): Removed.
2398         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2399         * nscd/nscd.c (termination_handler): Don't call
2400         nscd_avc_destroy.
2402 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2404         * include/atomic.h: Formatting.
2405         (catomic_compare_and_exchange_val_acq): Don't define if already
2406         defined by bits/atomic.h.
2408 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2410         * math/libm-test.inc (expm1_test): Add test for range error.
2412         * Versions.def: Add GLIBC_2.11 for libc.
2413         * debug/Makefile (routines): Add longjmp_chk.
2414         Add rules to build and run tst-longjmp_chk.
2415         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2416         * debug/longjmp_chk.c: New file.
2417         * debug/tst-longjmp_chk.c: New file.
2418         * include/bits/setjmp2.: New file.
2419         * include/stdio.h: Mark __fortify_fail as internal_function.
2420         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2421         * setjmp/bits/setjmp2.h: New file.
2422         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2423         of the aliases.
2424         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2425         defined.
2426         * sysdeps/i386/____longjmp_chk.S: New file.
2427         * sysdeps/x86_64/____longjmp_chk.S: New file.
2428         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2429         * sysdeps/x86_64/__longjmp.S: Likewise.
2431         * version.h: Bump for 2.11 development.
2433         * elf/check-execstack.c: New file.
2434         * elf/Makefile: Add rules to build and run check-execstack.
2436 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2438         * version.h (VERSION): Bump to 2.10.1.
2440         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2441         compatibility functions.
2442         * nss/getXXent_r.c: Likewise.
2443         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2444         * gshadow/getsgnam_r.c: Likewise.
2445         * gshadow/Version: Remove duplicate entries.
2447         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2448         for recent processor.
2449         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2450         Likewise.
2452 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2454         * version.h (VERSION): Bump for 2.10 release.
2455         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2457         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2458         same place we add ASFLAGS-config.
2460 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2462         [BZ #10128]
2463         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2464         or FORMERR and the other NOERROR, don't raise an error.
2466 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2468         [BZ #10118]
2469         * Makeconfig (+asflags): New variable based upon ASFLAG or
2470         asflags-cpu.
2471         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2472         * config.make.in (asflags-cpu): Add variable based upon
2473         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2474         the assembler.
2475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2476         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2477         recognizes power6 instruction set due to passing -mcpu=power6 from
2478         --with-cpu=power6 when compiling .S files.
2479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2480         Likewise.
2481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2482         Likewise.
2483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2484         Likewise.
2486 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2488         * string/stratcliff.c (do_test): Test for zero length
2489         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2490         at the end of the page.
2492 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2494         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2496         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2497         count is zero.
2499         * po/da.po: Update from translation team.
2501 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2503         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2504         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2506 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2508         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2509         and READ_IMPLIES_EXEC.
2511 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2513         * po/da.po: Update from translation team.
2515 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2517         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2518         comment change.
2520 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2522         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2523         to MAP_ANON in PROT_NONE mmap64 call.
2524         (open_archive): Likewise.
2525         (file_data_available_p): Use mmap64 instead of mremap.
2526         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2527         Attempt to reserve address space after mmap64 region.
2529 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2531         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2532         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2533         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2535         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2536         atanh should set ERANGE.
2538         [BZ #10087]
2539         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2540         result of lookup to make call to implement STT_GNU_IFUNC.
2541         (_dl_profile_fixup): Likewise.
2542         Patch by H.J. Lu <hjl.tools@gmail.com>.
2544         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2545         warning.
2547         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2548         from definition.
2550         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2551         label if it is not used.
2553         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2554         of gmon_hist_hdr and gmon_hdr structures and use them.
2555         * elf/sprof.c: Likewise.
2557         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2558         warning.
2560         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2562         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2563         to avoid cast.
2565         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2566         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2567         to avoid warnings.
2568         (iruserok_af): Use ss_family instead of casts.
2570         * gmon/gmon.c (write_hist): Define real-type variant of
2571         gmon_hist_hdr structure and use it.
2572         (write_gmon): Likewise for gmon_hdr.
2574         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2575         function if we are not going to define it.
2576         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2578         * inet/inet6_option.c (option_alloc): Add temporary variable to
2579         avoid warning.
2581         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2582         name of VTable element.
2583         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2584         * libio/iovsscanf.c: Likewise.
2585         * libio/vasprintf.c: Likewise.
2586         * libio/vsnprintf.c: Likewise.
2587         * stdio-common/isoc99_vsscanf.c: Likewise.
2588         * stdlib/strfmon_l.c: Likewise.
2589         * debug/vasprintf_chk.c: Likewise.
2590         * debug/vsnprintf_chk.c: Likewise.
2591         * debug/vsprintf_chk.c: Likewise.
2593         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2594         function pointers.
2596 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2598         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2600 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2602         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2604         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2605         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2606         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2607         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2608         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2609         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2610         * math/libm-test.inc: Add tests for errno after tan calls with
2611         Â±Inf.
2613         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2614         errno value vor pow(+-0,neg).
2615         * math/libm-test.inc (pow_test): Add tests for errno value for
2616         pole errors.
2618         * math/w_fmod.c: Also handle x=±Inf as error.
2619         * math/w_fmodf.c: Likewise.
2620         * math/w_fmodl.c: Likewise.
2621         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2622         x=±Inf or y=0.
2624         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2625         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2626         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2627         * sysdeps/i386/fpu/s_sin.S: Likewise.
2628         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2629         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2630         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2631         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2632         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2633         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2634         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2635         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2636         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2637         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2638         Â±Inf.
2640         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2641         ERANGE for underflows.
2642         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2644         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2645         the 2001 revision.
2647         * libio/tst-widetext.input: Remove surrogates.
2649         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2651         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2652         for lgamma should set errno to ERANGE, not EDOM.
2653         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2655 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2657         [BZ #10093]
2658         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2659         UTF-16 surrogates.
2661         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2662         space when temporarily mapping the whole content of the old file.
2664         [BZ #10100]
2665         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2666         not zero.
2668 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2670         * iconvdata/sjis.c (BODY): Don't advance inptr before
2671         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2672         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2673         two byte chars.
2675 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2677         * locale/locarchive.h (struct locarhandle): Rename len field to
2678         mmaped and add new reserved field.
2679         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2680         (create_archive): Reserve address space and then map file into it.
2681         (open_archive): Likewise.
2682         (file_data_available_p): New function.
2683         (compare_from_file): New function.
2684         (close_archive): Adjust to member name changes.
2685         (add_locale): Before comparing locale data, check it is mapped.
2686         Otherwise fall back to reading from the file.
2688 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2690         * stdio-common/psiginfo.c: Include <errno.h>.
2692 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2694         [BZ #9920]
2695         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2696         to get consistency between 32 and 64 bit architectures.
2698         [BZ #10052]
2699         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2700         directory for dummy syscall rules.
2701         Patch by Chris Steinbroner <hesh@pobox.com>.
2703 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2705         [BZ #10092]
2706         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2707         MNT_EXPIRE.
2709 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2711         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2712         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2714 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2716         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2717         data from vector to temporary buffer and call PWRITEV after it
2718         instead of vice versa.
2719         * sysdeps/posix/preadv.c: Fix up comment.
2720         * misc/preadv.c: Likewise.
2721         * misc/preadv64.c: Likewise.
2722         * misc/pwritev.c: Likewise.
2723         * misc/pwritev64.c: Likewise.
2724         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2726 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2728         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2730         * shadow/Makefile (tests): Add tst-shadow.
2731         * shadow/tst-shadow.c: New file.
2733         [BZ #9955]
2734         * gshadow/Makefile: New file.
2735         * gshadow/Versions: New file.
2736         * gshadow/fgetsgent.c: New file.
2737         * gshadow/fgetsgent_r.c: New file.
2738         * gshadow/getsgent.c: New file.
2739         * gshadow/getsgent_r.c: New file.
2740         * gshadow/getsgnam.c: New file.
2741         * gshadow/getsgnam_r.c: New file.
2742         * gshadow/gshadow.h: New file.
2743         * gshadow/putsgent.c: New file.
2744         * gshadow/sgetsgent.c: New file.
2745         * gshadow/sgetsgent_r.c: New file.
2746         * gshadow/tst-gshadow.c: New file.
2747         * include/gshadow.h: New file.
2748         * Makeconfig (all-subdirs): Add gshadow.
2749         * Makefile (installed-headers): Add gshadow/gshadow.h.
2750         * nss/Makefile (databases): Add sgrp.
2751         * nss/Versions: Add gshadow functions as private exports.
2752         * nss/nsswitch.conf: Add gshadow entry.
2753         * nss/sgrp-lookup.c: New file.
2754         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2755         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2756         * nss/nss_files/files-sgrp.c: New file.
2757         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2758         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2760 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2762         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2763         * stdio-common/reg-modifier.c: Likewise.
2765 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2767         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2768         is no FPU.
2770 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2772         [BZ #10086]
2773         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2774         headers up to 2.6.30.
2776         * po/ca.po: Update from translation team.
2778 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2780         [BZ #10069]
2781         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2782         an object that uses static TLS if the TLS modid is higher than the
2783         reserve we always allocate.  At least for multi-threaded code.
2785 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2787         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2788         Numerically stable check for valid width.
2790         * locale/programs/locarchive.c (open_archive): Map the entire file
2791         and not just the administrative data.
2792         (add_locale): When we find a hash sum match compare the content
2793         to be sure.
2795         * malloc/malloc.c (malloc_info): Output address space information.
2797 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2799         * malloc/malloc.c (malloc_info): Also output system memory information.
2801         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2802         architectures have preadv/pwritev in 2.6.30.
2804         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2805         * sysdeps/posix/readv.c: Likewise.
2806         Reported by Markus Armbruster <armbru@redhat.com>.
2808         * malloc/hooks.c (top_check): Force hook value into register.
2810 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2812         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2813         calls to _dl_relocate_object.
2815 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2817         [BZ #9957]
2818         * malloc/malloc.c (force_reg): Define.
2819         (sYSMALLOc): Load hook variable into variable
2820         before test and force into register.
2821         (sYSTRIm): Likewise.
2822         (public_mALLOc): Force hook value into register.
2823         (public_fREe): Likewise.
2824         (public_rEALLOc): Likewise.
2825         (public_mEMALIGn): Likewise.
2826         (public_vALLOc): Likewise.
2827         (public_pVALLOc): Likewise.
2828         (public_cALLOc): Likewise.
2829         (__posix_memalign): Likewise.
2830         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2831         before test and force into register.
2832         * malloc/hooks.c (top_check): Likewise.
2833         (public_sET_STATe): Pretty printing.
2835         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2836         in case we only receive one reply in single-request mode.
2838 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2840         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2841         are dlopened in statically linked program even for __LM_ID_CALLER.
2843 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2845         * resolv/res_send.c (send_dg): Don't switch into single-request
2846         mode if we already are in it.
2848 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2850         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2851         are always at least 4 bytes in the returned line.
2853 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2855         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2856         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2857         instead of 8K.  Stop searching in /proc/stat after hitting first
2858         line not starting with cpu.
2859         (next_line): Truncate too long
2860         lines at buffer size * 3/4 instead of pretending there were line
2861         breaks inside of large lines.
2863 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2865         * sysdeps/x86_64/mp_clz_tab.c: New file.
2867 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2868             Ulrich Drepper  <drepper@redhat.com>
2870         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2871         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2872         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2874 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2876         * sysdeps/sh/libc-tls.c: New file.
2878         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2880 2009-04-14  Roland McGrath  <roland@redhat.com>
2882         * elf/elf.h: Add various missing ARM constants, to match binutils.
2884 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2886         Optimizations from GMP.
2887         * sysdeps/x86_64/add_n.S: New file.
2888         * sysdeps/x86_64/addmul_1.S: New file.
2889         * sysdeps/x86_64/lshift.S: New file.
2890         * sysdeps/x86_64/mul_1.S: New file.
2891         * sysdeps/x86_64/rshift.S: New file.
2892         * sysdeps/x86_64/sub_n.S: New file.
2893         * sysdeps/x86_64/submul_1.S: New file.
2895 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2897         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2898         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2899         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2900         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2902 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2904         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2905         preadv/pwritev.
2907 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2909         * sysdeps/x86-64/strrchr.S: New file.
2911 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2913         * stdio-common/printf.h (struct printf_info): Add user element.
2914         New types printf_arginfo_size_function, printf_va_arg_function.
2915         Declare register_printf_specifier, register_printf_modifier,
2916         register_printf_type.
2917         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2918         (union printf_arg): Add pa_user element.
2919         Adjust __printf_arginfo_table type.
2920         Add __printf_va_arg_table, __printf_modifier_table,
2921         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2922         declarations.
2923         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2924         If registered arginfo call failed try normal specifier.
2925         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2926         function.
2927         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2928         * stdio-common/Versions: Export register_printf_modifier,
2929         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2930         * stdio-common/reg-modifier.c: New file.
2931         * stdio-common/reg-type.c: New file.
2932         * stdio-common/reg-printf.c (__register_printf_specifier): New
2933         function.  Mostly the old __register_printf_function function but
2934         uses locking and type of third parameter changed.
2935         (__register_printf_function): Implement using
2936         __register_printf_specifier.
2937         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2938         calls to arginfo functions.  Allocate enough memory for user-defined
2939         types.  Call new va_arg functions to get user-defined types.
2940         Try installed handlers even for existing format specifiers first.
2942 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2944         * sysdeps/x86_64/rawmemchr.S: New file.
2946         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2947         Simplified code and possible copy problem fixed.
2949         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2950         function if it is not defined.  Add some necessary casts.
2951         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2953         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2954         have preadv/pwritev in 2.6.30.
2956 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2958         * malloc/malloc.c (malloc_info): New function.
2959         * malloc/malloc.h: Declare it.
2960         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2962         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2963         to avoid PLT slot.
2965         * malloc/malloc.c (_int_realloc): Add parameter with old block
2966         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2967         Adjust all callers.
2968         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2970 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2972         * sysdeps/x86_64/strchrnul.S: New file.
2974         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2975         depending libcrypt on -lfreebl3.
2977         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2978         preadv/pwritev in 2.6.30.
2980         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2981         instead of __strcasecmp.
2983         * string/stratcliff.c (do_test): Add memchr tests..
2984         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2985         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2986         first read quad word.
2988 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2990         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2991         * string/tst-svc.input: Add new test case.
2992         * string/tst-svc.expect: Adjust.
2993         * string/Makefile: Don't ignore tst-svc error.
2995         * sysdeps/x86_64/memchr.S: New file.
2997         * resolv/resolv.h (RES_SNGLKUP): Define.
2998         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2999         * resolv/res_send.c (send_dg): If we sent two requests at once and
3000         only get one reply before timeout switch to mode where we send the
3001         second request only after the first answer has been received.
3003 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3005         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3006         * sysdeps/x86_64/strchr.S: Likewise.
3008 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3010         * configure.in: We need to test for the compiler earlier.
3012         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3013         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3014         GLIBC_2.10.
3015         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3016         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3017         and pwritev.
3018         * misc/preadv.c: New file.
3019         * misc/preadv64.c: New file.
3020         * misc/pwritev.c: New file.
3021         * misc/pwritev64.c: New file.
3022         * sysdeps/posx/preadv.c: New file.
3023         * sysdeps/posx/preadv64.c: New file.
3024         * sysdeps/posx/pwritev.c: New file.
3025         * sysdeps/posx/pwritev64.c: New file.
3026         * sysdeps/unix/sysv/linux/preadv.c: New file.
3027         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3028         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3029         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3030         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3031         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3033         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3034         compatibility code.
3035         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3037         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3038         __ASSUME_COMPLETE_READV_WRITEV.
3039         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3040         with modern kernels.
3041         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3043         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3044         to free a possible malloced buffer in case of cancellation.
3045         * sysdeps/posix/writev.c: Likewise for write.
3047 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3049         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3051         * configure.in: Recognize --enable-nss-crypt.
3052         * config.make.in: Add nss-crypt entry.
3053         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3054         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3055         and include path for NSS directory to compiler for md5-crypt,
3056         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3057         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3058         function implementation, use NSS.  Introduce wrappers around the
3059         hash function calls.  Little code size optimization.
3060         * crypt/sha256-crypt.c: Likewise.
3061         * crypt/sha512-crypt.c: Likewise.
3062         * scripts/check-local-headers.sh: Ignore nss3 directory.
3064         * configure.in: Rename pic_default to libc_cv_pic_default.
3065         * config.make.in: Likewise.
3067 2009-04-01  Roland McGrath  <roland@redhat.com>
3069         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3070         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3071         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3072         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3073         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3074         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3075         (R_SPARC_NUM): Update.
3076         From Dave Miller <davem@davemloft.net>.
3078 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3080         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3082 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3084         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3085         those which are used.
3086         * elf/dl-addr.c: Likewise.
3087         * elf/dl-caller.c: Likewise.
3088         * elf/dl-fini.c: Likewise.
3089         * elf/dl-iteratephdr.c: Likewise.
3090         * elf/dl-libc.c: Likewise.
3091         * elf/dl-load.c: Likewise.
3092         * elf/dl-support.c: Likewise.
3093         * elf/dl-sym.c: Likewise.
3094         * elf/rtld.c: Likewise.
3095         * sysdeps/generic/ldsodefs.h: Likewise.
3097         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3098         * elf/dl-minimal.c: Likewise.
3099         * elf/dl-misc.c: Likewise.
3100         * elf/rtld.c: Likewise.
3101         * sysdeps/generic/ldsodefs.h: Likewise.
3103 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3105         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3106         Avoid reuse of complex expression.
3108         * po/fr.po: Update from translation team.
3110 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3112         * include/dirent.h: Yet more changes to match sort function type
3113         change.
3114         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3115         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3116         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3118 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3120         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3122 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3124         * nscd/connections.c (restart): Try to preserve the process name
3125         by reading the /proc/self/exe symlink and using the return name.
3126         Patch by Jeff Bastian <jbastian@redhat.com>.
3128 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3130         [BZ #9733]
3131         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3132         if we are not loading a new audit library.
3133         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3134         Only use profiling trampoline for auditing if we are not relocating
3135         an audit library.
3136         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3137         * elf/rtld.c: Likewise.
3138         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3140         * elf/rtld.c (dl_main): Extend help message for --audit option.
3142         [BZ #9759]
3143         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3144         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3145         * dirent/alphasort.c: Adjust implementation to type change.
3146         * dirent/alphasort64.c: Likewise.
3147         * dirent/scandir.c: Likewise.
3148         * dirent/versionsort.c: Likewise.
3149         * dirent/versionsort64.c: Likewise.
3150         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3151         declaration.
3152         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3153         declaration.
3155         [BZ #9880]
3156         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3157         correctly.  Set segleft member in output as required.
3158         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3159         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3161         [BZ #9881]
3162         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3163         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3164         * inet/Makefile (tests): Add tst-inet6_rth.
3165         * inet/tst-inet6_rth.c: New file.
3167         [BZ #5807]
3168         * string/strlen.c (strlen): Fix omission in the expression to test
3169         for NUL bytes.
3171 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3173         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3175         * elf/dl-runtime.c (reloc_offset): Define.
3176         (reloc_index): Define.
3177         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3178         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3179         computing index from reloc_offset.
3180         (_dl_call_pltexit): Likewise.
3181         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3182         the relocation index to _dl_fixup.
3183         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3184         _dl_call_pltexit.
3185         * sysdeps/x86_64/dl-runtime.c: New file.
3187         [BZ #9893]
3188         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3189         alignment of La_x86_64_regs.  Store xmm parameters.
3190         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3192         [BZ #9913]
3193         * string/strverscmp.c (__strverscmp): Fix case of different digits
3194         in fractional part of string.
3195         Patch by Jingyu Liu <jyliu@fortinet.com>.
3196         * string/Makefile (tests): Add tst-svc2.
3197         * string/tst-svc2.c: New file.
3199         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3201         * locale/iso-639.def: Add Min Nan.
3203 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3205         [BZ #9948]
3206         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3208 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3210         * elf/dl-sysdep.c (auxvars): Compress data structure.
3212         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3213         STT_GNU_IFUNC handling.
3214         (elf_machine_rela): Likewise.
3216 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3218         * config.h.in (USE_MULTIARCH): Define.
3219         * configure.in: Handle --enable-multi-arch.
3220         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3221         (_dl_fixup_profile): Likewise.
3222         * elf/do-lookup.c (dl_lookup_x): Likewise.
3223         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3224         * elf/elf.h (STT_GNU_IFUNC): Define.
3225         * include/libc-symbols.h (libc_ifunc): Define.
3226         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3227         framework in init-arch.h to get CPUID values.
3228         * sysdeps/x86_64/multiarch/Makefile: New file.
3229         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3230         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3231         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3233         * config.make.in (experimental-malloc): Define.
3234         * configure.in: Handle --enable-experimental-malloc.
3235         * malloc/Makefile: Handle experimental-malloc flag.
3236         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3237         * malloc/arena.c: Likewise.
3238         * malloc/hooks.c: Likewise.
3239         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3241 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3243         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3244         prediction.  A few size optimizations.
3246 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3248         * time/tzset.c: Optimize a bit for size.
3250 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3252         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3253         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3255         * elf/sprof.c: Avoid warning about multi-line comment.
3257 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3259         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3260         DST name.
3261         * time/tst-posixtz.c: Add tests for quoted timezone names.
3263 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3265         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3266         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3267         200809L instead of 200112L.
3268         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3269         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3271         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3272         instead of __quick_exit_funcs to __run_exit_handlers.
3273         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3274         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3275         (__cxa_at_quick_exit): Remove attribute_hidden.
3276         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3277         to __run_exit_handlers.
3278         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3279         attribute_hidden.
3281 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3283         * po/id.po: Update from translation team.
3285 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3288         .machine push; .machine "power6" and .machine pop around mtfsf
3289         insns outside of _ARCH_PWR6 define.
3290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3292         Likewise.
3293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3294         Likewise.
3295         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3296         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3297         relax_fenv_state): Likewise.
3299 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3301         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3302         cxa_at_quick_exit.
3303         (static-only-routines): Add at_quick_exit.
3304         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3305         GLIBC_2.10.
3306         * stdlib/quick_exit.c: New file.
3307         * stdlib/at_quick_exit.c: New file.
3308         * stdlib/cxa_at_quick_exit.c: New file.
3309         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3310         it appropriately.
3311         (__internal_atexit): New function.
3312         (__new_exitfn): Now takes parameter to point to the list to use.
3313         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3314         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3315         (exit): ...here.  Just call __run_exit_handlers appropriately.
3316         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3317         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3318         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3319         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3321         * po/id.po: Update from translation team.
3323 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3325         * po/ru.po: Update from translation team.
3327 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3329         * po/nl.po: Update from translation team.
3331 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3333         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3334         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3335         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3336         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3337         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3338         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3339         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3341         * po/pl.po: Update from translation team.
3343 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3345         [BZ #7083]
3346         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3347         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3348         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3349         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3350         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3351         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3352         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3353         for GLIBC_2.10.
3354         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3355         Add fallocate and fallocate64.
3357         * io/fcntl.h: Pretty printing.
3359 2009-03-02  Richard Guenther  <rguenther@suse.de>
3361         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3362         attribute also for non-C99 inline semantics variant.
3364 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3366         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3367         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3368         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3369         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3371         Likewise.
3372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3373         Likewise.
3375 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3377         * po/cs.po: Update from translation team.
3379 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3381         * po/bg.po: Update from translation team.
3382         * po/sv.po: Likewise.
3383         * po/fi.po: Likewise.
3384         * po/vi.po: Likewise.
3386 2009-02-27  Roland McGrath  <roland@redhat.com>
3388         * Makeconfig (%.v.i): Depend on Makeconfig.
3389         Exclude % lines from initial #-comment removal.
3391 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3393         * po/ko.po: Update from translation team.
3395 2009-02-26  Roland McGrath  <roland@redhat.com>
3397         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3398         avoids unused warning.
3400 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3401             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3403         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3404         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3405         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3406         and asm/user.h.  Include asm/ptrace.h.
3407         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3408         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3409         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3410         Undefine.
3411         (start_thread): Don't undefine.
3412         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3413         Define.
3415 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3417         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3418         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3419         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3420         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3421         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3422         200112L to 200809L.
3423         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3424         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3425         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3426         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3427         _SC_THREAD_ROBUST_PRIO_PROTECT.
3428         * posix/unistd.h: fexecve is in POSIX 2008.
3429         * time/time.h: strftime_l is in POSIX 2008.
3430         * io/sys/stat.h: futimens is in POSIX 2008.
3431         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3432         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3433         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3434         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3435         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3436         open_memstream, and vdprintf are in POSIX 2008.
3438 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3440         * include/features.h: Define macros for XPG7/POSIX 2008.
3441         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3442         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3443         POSIX 2008.
3444         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3445         * locale/xlocale.h: Define locale_t type.
3446         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3447         in POSIX 2008.  Don't define locale_t here.
3448         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3449         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3450         UTIME_OMIT only with __USE_ATFILE.
3451         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3452         * stdio-common/psiginfo.c: New file.
3453         * stdio-common/psiginfo-data.h: New file.
3454         * stdio-common/psiginfo-define.h: New file.
3455         * stdio-common/Makefile (routines): Add psiginfo.
3456         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3457         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3458         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3459         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3460         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3461         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3462         * io/sys/stat.h: Move mknodat definition into same conditional as
3463         mknod.
3464         * time/sys/time.h: futimesat is not among the functions accepted
3465         into the POSIX standard.
3467         * include/features.h: If no feature selection given and we select
3468         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3469         * posix/Versions: Export __posix_getopt.
3470         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3471         Use it to alternatively initialize __posixly_correct.
3472         (_getopt_internal_r): Take addition parameter.  Pass on to
3473         _getopt_initialize.
3474         (_getopt_internal): Take addition parameter.  Pass on to
3475         _getopt_internal_r.
3476         (getopt): Pass additional zero to _getopt_internal.
3477         (__posix_getopt): New function.
3478         * posix/getopt.h: Add redirection for getopt.
3479         * posix/getopt1.c (getopt_long): Pass additional zero to
3480         _getopt_internal.
3481         (getopt_long_only): Likewise.
3482         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3483         (_getopt_long_only_r): Likewise.
3484         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3485         _getopt_internal_r.
3487 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3489         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3490         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3491         * sysdeps/posix/sysconf.c (__sysconf): Handle
3492         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3493         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3495 2009-02-24  Roland McGrath  <roland@redhat.com>
3497         [BZ #9895]
3498         * README.template: Reworded not to use substituted version number.
3499         Renamed to ...
3500         * README: ... here (no longer generated).
3501         * Makefile (README): Target removed.
3503 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3505         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3506         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3507         instead.
3509         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3511         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3513 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3515         * po/bg.po: Update from translation team.
3517 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3519         * stdlib/monetary.h: Uglify function parameter names.
3520         * sunrpc/rpc/pmap_clnt.h: Likewise.
3521         * sunrpc/rpc/svc.h: Likewise.
3522         * sunrpc/rpc/xdr.h: Likewise.
3523         * sunrpc/rpc/clnt.h: Likewise.
3524         * resolv/netdb.h: Likewise.
3525         * resolv/arpa/nameser.h: Likewise.
3526         * resolv/resolv.h: Likewise.
3527         * argp/argp.h: Likewise.
3528         * locale/langinfo.h: Likewise.
3529         * io/sys/stat.h: Likewise.
3530         * posix/spawn.h: Likewise.
3531         * nis/rpcsvc/nislib.h: Likewise.
3532         * malloc/obstack.h: Likewise.
3533         * sysdeps/ia64/bits/link.h: Likewise.
3534         * sysdeps/i386/bits/link.h: Likewise.
3535         * sysdeps/s390/bits/link.h: Likewise.
3536         * sysdeps/powerpc/bits/link.h: Likewise.
3537         * sysdeps/x86_64/bits/link.h: Likewise.
3538         * sysdeps/sparc/bits/link.h: Likewise.
3539         * sysdeps/sh/bits/link.h: Likewise.
3540         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3541         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3542         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3543         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3545 2008-12-01  Fredrik Unger  <fred@tree.se>
3547         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3548         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3549         _FP_UNPACK_RAW_2, fix up first argument.
3551 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3553         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3554         (GET_NPROCS_PARSER): Change parameters and use next_line.
3555         (__get_nprocs): Rewrite to not use stdio routines.
3556         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3557         Change parameters and use next_line.
3559 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3561         [BZ #5381]
3562         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3563         Change mempool_alloc prototype.
3564         * nscd/mem.c (gc): Don't handle mem_in_flight.
3565         (mempool_alloc): Third parameter now only indicates whether this is the
3566         first call (to allocate data) or not.  If it is, get db rdlock.
3567         Release it on error.  Don't handle mem_in_flight.
3568         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3569         Adjust third parameter of mempool_alloc calls.
3570         Nothing to do here in case mempool_alloc fails.
3571         Avoid local variable shadowing parameter.  No need to get db rdlock
3572         before calling cache_add.
3573         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3574         no mem_in_flight array anymore.
3575         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3576         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3577         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3578         in case mempool_alloc fails. No need to get db rdlock before calling
3579         cache_add.
3580         * nscd/hstcache.c (cache_addhst): Likewise.
3581         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3582         * nscd/servicescache.c (cache_addserv): Likewise.
3583         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3585 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3587         * po/lt.po: Update from translation team.
3589 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3591         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3592         defined, allow additional data to be added using the optional
3593         MORE_ELF_HEADER_DATA macro.
3594         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3595         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3597 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3599         * include/atomic.h: Define catomic_and if not already defined.
3600         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3601         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3603 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3605         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3606         Change all callers.
3607         (_int_realloc): Likewise.  Third argument is now padded size
3608         All _int_* functions are now static.
3610         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3611         * malloc/arena.c: Likewise.
3612         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3613         functions.
3615         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3616         easily.
3618         * malloc/malloc.c: Add branch prediction for use of the hooks.
3620         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3622 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3624         [BZ #7095]
3625         * bits/confname.h: Add SUSv7 macros for getconf environments.
3626         * bits/environments.h: Likewise.
3627         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3628         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3629         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3630         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3631         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3632         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3633         * posix/getconf.c: Likewise.
3634         * posix/sysconf.c: Likewise.
3635         * sysdeps/posix/sysconf.c: Likewise.
3636         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3637         environments.
3639 2009-01-16  Petr Baudis  <pasky@suse.cz>
3641         [BZ #9753]
3642         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3643         even if we currently have zero nscount.
3645 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3647         [BZ #9781]
3648         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3649         the input line is too long.
3651         * po/Makefile (libc.pot): Add f_print as function taking c-format
3652         parameter.
3654         * debug/xtrace.sh: Unify translatable messages.
3655         * elf/ldd.bash.in: Likewise.
3656         * elf/sprof.c: Likewise.
3657         * locale/programs/locale.c: Likewise.
3658         * malloc/memusage.sh: Likewise.
3659         * nss/getent.c: Likewise.
3661 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3663         * debug/pcprofiledump.c (print_version,
3664         argp_program_version_hook): New function.
3665         * elf/ldconfig.c (more_help): New function.
3666         (argp): Use it.
3667         * elf/sln.c (usage): New function.
3668         (main): Support --help and --version.
3669         * malloc/memusagestat.c (print_version): New function.
3670         (argp_program_version_hook): New variable.
3671         * nscd/nscd.c (more_help): New function.
3672         (argp): Use it.
3673         * posix/getconf.c (main): Send --version output to stdout.
3674         Support --help.
3675         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3676         arguments.  All callers changed.
3677         (print_version): New function.
3678         (parseargs): Support --help and --version.
3679         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3680         changed.
3681         (print_version): New function.
3682         (main): Use getopt_long.  Support --help and --version.
3683         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3684         --version.
3686 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3688         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3689         (update_data): Fix handling of wrapping back
3690         to the beginning of the buffer.
3692         [BZ #9823]
3693         * stdio-common/psignal.c (psignal): Fix test for empty string.
3695 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3697         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3698         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3699         move _null_auth to .rodata.
3701         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3702         value of 24.
3704         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3706         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3707         today than when the original code was written.  Use larger
3708         buffers.  This also makes it unnecessary to have stat information,
3709         if this causes extra efforts.
3710         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3711         __alloc_dir.
3713 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3715         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3716         is set.
3717         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3718         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3719         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3720         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3721         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3722         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3724 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3726         * po/ru.po: Update from translation team.
3728 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3730         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3731         Add _tid slot to maintain consistency with kernel.
3733 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3735         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3736         incomplete characters at end of input buffer.
3737         * libio/Makefile (tests): Add tst-fgetwc.
3738         * libio/tst-fgetwc.c: New file.
3739         * libio/tst-fgetwc.input: New file.
3741 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3743         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3745 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3747         [BZ #9793]
3748         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3749         *OUTBUFSTART unless the whole output fit into the buffer.
3750         * iconv/Makefile (tests): Add tst-iconv4.
3751         * iconv/tst-iconv4.c: New file.
3753 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3755         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3756         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3758 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3760         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3761         newer linker scripts.
3763 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3765         [BZ #7040]
3766         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3767         inotify_rm_watch should have type int.
3769 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3771         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3772         Make aligned_restore_vmx a local symbol.
3773         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3774         Likewise.
3776 2009-01-30  Andreas Jaeger  <aj@suse.de>
3778         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3779         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3780         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3781         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3782         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3783         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3784         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3786 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3788         [BZ #9726]
3789         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3790         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3792 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3794         [BZ #9726]
3795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3796         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3798         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3800 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3802         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3803         memcpy instead of memcmp.
3804         (_dl_setup_pointer_guard): Likewise.
3806 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3808         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3809         manipulated brk, use malloc_printerr.
3810         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3811         requests.
3813 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3815         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3816         rindex): For C++ add inlines so that they can be recognized as
3817         builtins.
3818         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3820 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3821             Jakub Jelinek  <jakub@redhat.com>
3823         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3824         * wcsmbs/wchar.h: Likewise.
3826 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3828         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3829         (stackinfo_sub_sp): Define.
3831 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3833         [BZ #9750]
3834         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3835         * include/alloca.h (alloca_account): Define.
3836         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3837         (stackinfo_sub_sp): Define.
3839         * nscd/connections.c (nscd_init): If database file access fails
3840         check whether this is due to permission problems and bail in that
3841         case.
3843         [BZ #9741]
3844         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3845         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3847 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3849         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3850         Add "t" to clobber list.
3851         (INTERNAL_SYSCALL_NCS): Likewise.
3853 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3855         * nss/getent.c (print_networks): Don't print comma between aliases.
3857 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3859         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3861         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3862         the hash table.
3863         * misc/Makefile (tests): Add bug-hsearch1.
3864         * misc/bug-hsearch1.c: New file.
3866 2009-01-22  Roland McGrath  <roland@redhat.com>
3868         * Makeconfig (%.v.i): Strip trailing # comments,
3869         not only whole-line comments.
3871 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3873         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3874         one parameter.  If non-NULL use it to initialize return value.
3875         (_dl_setup_pointer_guard): New function.
3876         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3877         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3878         * elf/rtld.c (security_init): Pass _dl_random to
3879         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3880         pointer_chk_guard.
3881         * elf/dl-sysdep.c (_dl_random): New variable.
3882         (_dl_sysdep_start): Handle AT_RANDOM.
3883         (_dl_show_auxv): Likewise.
3884         * elf/dl-support.c (_dl_random): New variable.
3885         (_dl_aux_init): Handle AT_RANDOM.
3886         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3887         to _dl_setup_stack_chk_guard.
3889         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3891 2009-01-10  Roland McGrath  <roland@redhat.com>
3893         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3895 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3897         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3899         [BZ #9706]
3900         * nss/nss_files/files-parse.c (strtou32): New function.
3901         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3902         across 32-bit and 64-bit platforms.
3903         (INT_FIELD_MAYBE_NULL): Likewise.
3905 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3907         [BZ #9720]
3908         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3909         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3910         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3911         Likewise.
3913 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3915         [BZ #697]
3916         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3917         being NULL also if there are no backreferences.
3918         * posix/rxspencer/tests: Add testcases.
3920 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3922         [BZ #9697]
3923         * posix/bug-regex17.c: Add testcases.
3924         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3925         handling.
3927 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3929         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3930         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3931         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3932         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3933         for elf subdir.
3934         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3935         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3936         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3937         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3938         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3939         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3941 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3943         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3944         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3945         re_string_skip_chars, re_string_reconstruct): Likewise.
3946         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3948 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3950         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3951         adjust the buffer alignment.
3953 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3955         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3956         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3957         net/route.h.
3959         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3960         flavor to description only when flavor is not NULL.
3962         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3963         mutex after SIGIO/SIGURG lookup loop.
3965 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3967         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3969 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3971         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3972         handling.
3974 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3976         * sysdeps/unix/sysv/linux/kernel-features.h
3977         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3979         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3980         if no output is written.
3982         * version.h: Bump to 2.10 development.
3984         * posix/getconf.c: Update copyright year.
3985         * nss/getent.c: Likewise.
3986         * iconv/iconvconfig.c: Likewise.
3987         * iconv/iconv_prog.c: Likewise.
3988         * elf/ldconfig.c: Likewise.
3989         * catgets/gencat.c: Likewise.
3990         * csu/version.c: Likewise.
3991         * elf/ldd.bash.in: Likewise.
3992         * elf/sprof.c (print_version): Likewise.
3993         * locale/programs/locale.c: Likewise.
3994         * locale/programs/localedef.c: Likewise.
3995         * nscd/nscd.c (print_version): Likewise.
3996         * debug/xtrace.sh: Likewise.
3997         * malloc/memusage.sh: Likewise.
3998         * malloc/mtrace.pl: Likewise.
3999         * debug/catchsegv.sh: Likewise.
4001 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4003         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4004         script.
4006 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4008         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4009         gethostbyname4_r function call succeeded, just leave the loop.
4011         [BZ #9694]
4012         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4013         very end.
4014         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4015         * wctype/Makefile (tests): Add bug-wctypeh.
4016         * wctype/bug-wctypeh.c: New file.
4018         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4019         LOCALDOMAIN is defined.
4020         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4022         * sysdeps/x86_64/bits/select.h: New file.
4024         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4026 2008-12-21  Bruno Haible  <bruno@clisp.org>
4028         [BZ #9677]
4029         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4030         if no output is written.
4032 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4034         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4035         libc internal symbol __dup2 to avoid access through the PLT.
4037 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4039         [BZ #6545]
4040         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4041         available only for __USE_GNU.
4043         * inet/Makefile (tests): Add tst-getni2.
4044         * inet/tst-getni2.c: New file.
4046         [BZ #7080]
4047         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4048         NULL when NI_NAMEREQD is set.
4049         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4050         * inet/Makefile (tests): Add tst-getni1.
4051         * inet/tst-getni1.c: New file.
4053 2008-12-03  Petr Baudis  <pasky@suse.cz>
4055         [BZ #7067]
4056         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4057         instead of prune_lock.
4058         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4059         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4061 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4063         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4064         use.
4066         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4067         handling.
4069         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4070         after reading name server list.
4072         [BZ #7058]
4073         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4074         handling for host name aliases.
4076 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4078         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4079         instead of doing things manually.
4081 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4083         * posix/regex_internal.h (build_wcs_upper_buffer):
4084         Return type is reg_error_t.
4086 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4088         * posix/globtest.sh: Use mktemp to create temporary file and
4089         directory.
4091         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4092         sets correctly.
4093         (__CPU_CLR_S): Likewise.
4094         (__CPU_ISSET_S): Likewise.
4096 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4097             Ulrich Drepper  <drepper@redhat.com>
4099         * scripts/firstversion.awk: Use custom comparison function to compare
4100         version numbers.
4101         * scripts/versions.awk: Use sort invocation which can handle
4102         multi-digit sub-version numbers.
4104 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4106         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4107         * locale/iso-639.def: Add Chhattisgarhi entry.
4109 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4111         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4112         ESRCH return value.
4113         (_nss_dns_gethostbyname4_r): Likewise.
4114         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4115         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4116         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4117         the no_data variable.
4119         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4120         information at the correct index.
4122         * socket/sys/socket.h: Declare accept4.
4123         * socket/accept4.c: New file.
4124         * sysdeps/unix/sysv/linux/accept4.c: New file.
4125         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4126         * socket/Makefile (routines): Add accept4.
4127         * socket/Versions: Export accept4 with version GLIBC_2.10.
4128         * socket/paccept.c: Removed.
4129         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4130         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4131         * Versions.def: Define GLIBC_2.10 for libc.
4132         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4134         * nscd/connections.c: Use accept4.
4136         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4138 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4140         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4141         flag already set.
4143         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4144         not exist.
4145         * stdlib/Makefile (tests): Add tst-unsetenv1.
4146         * stdlib/tst-unsetenv1.c: New file.
4148 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4150         * login/utmp_file.c (file_writable): New variable.
4151         (setutent_file): Don't try to open file for writing.
4152         (pututline_file): Before writing, make descriptor writable if
4153         necessary.
4155 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4157         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4158         to IPv4 or IPv6 if an interface has been found.
4160 2008-11-26  Roland McGrath  <roland@redhat.com>
4162         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4163         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4165         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4166         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4167         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4169         * elf/elf.h (NT_386_IOPERM): New macro.
4170         (NT_PPC_VSX): New macro.
4172 2008-11-25  Roland McGrath  <roland@redhat.com>
4174         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4175         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4176         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4177         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4178         Subdirectories moved to ports repository.
4179         * configure.in (base_machine): Remove alpha case.
4181 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4183         * sysdeps/mach/strerror_l.c: New file.
4185 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4187         [BZ #6411]
4188         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4189         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4190         magic numbers.
4191         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4192         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4193         (relax_fenv_state): Same as above.
4194         (FPSCR_29): Reserve bit in ISA 2.05.
4195         (FPSCR_NI): Provide define for compat.
4196         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4197         magic numbers.
4198         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4199         magic numbers.
4200         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4201         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4202         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4203         access to hwcap to account for hwcap size increase to uint64_t.
4204         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4205         Likewise.
4206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4207         (*setcontext): Likewise.
4208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4209         New file.
4210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4211         New file.
4212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4213         (*setcontext): dynamically select mtfsf insn based on
4214         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4215         increase to uint64_t.
4216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4217         (*swapcontext): dynamically select mtfsf insn based on
4218         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4219         increase to uint64_t.
4220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4221         New file.
4222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4223         New file.
4224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4225         (*setcontext): dynamically select mtfsf insn based on
4226         PPC_FEATURE_HAS_DFP.
4227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4228         (*swapcontext): dynamically select mtfsf insn based on
4229         PPC_FEATURE_HAS_DFP.
4231 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4233         * version.h: Bump for 2.9 release.
4234         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4236         [BZ #7029]
4237         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4238         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4239         all the rounding.
4241 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4243         [BZ #7009]
4244         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4245         unknown request types for now.
4247 2008-11-11  Roland McGrath  <roland@redhat.com>
4249         * sysdeps/x86_64/configure: New file.
4251         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4252         * configure: Regenerated.
4254 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4256         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4257         correct instruction to remove the stack frame.
4259 2008-11-03  Michael Matz  <matz@suse.de>
4261         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4262         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4264 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4266         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4267         Remove.
4269         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4270         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4271         of the thread variable instead of void *.
4272         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4273         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4274         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4275         __libc_tsd_define arguments.
4276         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4277         __libc_tsd_address arguments.  Remove union hack.
4278         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4279         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4280         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4281         Adjust __libc_tsd_{set,get} arguments.
4282         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4283         __libc_tsd_define arguments.
4284         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4285         arguments.
4286         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4287         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4288         (LOCALE): Adjust __libc_tsd_define arguments.
4289         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4290         arguments.
4291         (LOCALE): Adjust __libc_tsd_define arguments.
4292         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4293         arguments.
4294         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4295         arguments.
4297 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4299         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4300         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4302 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4304         [BZ #6966]
4305         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4307 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4308             Ulrich Drepper  <drepper@redhat.com>
4310         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4311         definition for GCC 3.1 and later.
4313 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4315         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4316         refetch dtv, as it might have changed.
4317         * elf/Makefile: Add rules to build and run tst-tls18.
4318         * elf/tst-tls18.c: New test.
4319         * elf/tst-tlsmod18a.c: New file.
4321 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4323         [BZ #6875]
4324         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4326 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4328         [BZ #6867]
4329         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4331         [BZ #6919]
4332         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4333         Fix length of copy operation.
4335 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4337         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4338         and fix its calling convention.
4340 2008-10-07  Andreas Schwab  <schwab@suse.de>
4342         [BZ #6942]
4343         * resolv/res_send.c (send_vc): Fix last change.
4344         (send_dg): Align here as well.
4346 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4348         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4349         return value in case rlimit is RLIM_INFINITY.
4351         [BZ #6947]
4352         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4353         for UL_SETFSIZE.
4354         * resource/Makefile (tests): Add bug-ulimit1.
4355         * resource/bug-ulimit1.c: New file.
4357         [BZ #6974]
4358         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4359         without dot.  Properly terminate the string with a null byte.
4360         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4362         [BZ #6980]
4363         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4364         negative sizees.
4365         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4366         negative __size.
4368         [BZ #6995]
4369         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4371 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4373         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4374         abort if there is no initgroups_dyn function.
4376         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4377         result if any of the queries really provided an answer.
4379 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4381         * po/lt.po: Update from translation team.
4383 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4385         * po/id.po: Update from translation team.
4387 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4389         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4390         Fix tests for existence of second reply.
4392 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4394         * po/id.po: New file.
4395         Contributed by the Indonesian translation team.
4397 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4399         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4400         initialization.
4402 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4404         * elf/Makefile: Add rules to build and run tst-tls17.
4405         * elf/tst-tls17.c: New test.
4406         * elf/tst-tlsmod17a.c: New file.
4407         * elf/tst-tlsmod17b.c: Likewise.
4409 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4411         * stdlib/divmod_1.c: Use correct type for dummy variable.
4412         * stdlib/mod_1.c: Likewise.
4414 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4416         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4418 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4420         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4421         __nonnull order for C++.
4422         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4423         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4425 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4427         * stdlib/longlong.h: Update from GCC.
4429 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4430             David S. Miller  <davem@davemloft.net>
4432         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4433         make sure any registers used with 64-bit 'branch-on-register'
4434         instructions have their top 32-bits clear.
4435         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4436         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4438 2008-09-18  Andreas Schwab  <schwab@suse.de>
4440         [BZ #6942]
4441         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4442         Properly handle partial reads.
4444 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4446         * elf/elf.h (STO_MIPS_PLT): New.
4447         (R_MIPS_COPY): New.
4448         (R_MIPS_JUMP_SLOT): New.
4449         (R_MIPS_NUM): Redefine to 128.
4450         (DT_MIPS_PLTGOT): New.
4451         (DT_MIPS_RWPLT): New.
4452         (DT_MIPS_NUM): Redefine to 0x35.
4454 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4456         * timezone/africa: Update from tzdata2008f.
4457         * timezone/asia: Likewise.
4458         * timezone/australasia: Likewise.
4459         * timezone/europe: Likewise.
4460         * timezone/leapseconds: Likewise.
4461         * timezone/northamerica: Likewise.
4462         * timezone/southamerica: Likewise.
4463         * timezone/zone.tab: Likewise.
4465 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4467         * nscd/connections.c: Disable use of paccept for now.
4469 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4471         * socket/Versions: Remove paccept export for GLIBC_2.9.
4472         * socket/Makefile (routines): Remove paccept.
4473         * socket/sys/socket.h: Remove paccept declaration.
4475         * po/sv.po: Update from translation team.
4477 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4479         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4480         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4482 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4484         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4485         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4487 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4489         * sunrpc/rpc/svc.h: Declare svcfd_create.
4490         Patch by Michael Solberg <msolberg@redhat.com>.
4492 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4493             Ulrich Drepper  <drepper@redhat.com>
4495         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4496         _int_valloc fails.
4497         (public_pVALLOc): Likewise.
4499 2008-09-02  Andreas Jaeger  <aj@suse.de>
4501         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4502         commit.
4504 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4506         [BZ #6860]
4507         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4509 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4511         * Makefile (check-data): Check data directory in add-ons.
4512         * elf/Makefile (check-data): Likewise.
4514 2008-08-18  Roland McGrath  <roland@redhat.com>
4516         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4517         * configure: Regenerated.
4518         * config.make.in (cflags-cpu): New substituted variable.
4519         (with-cpu): Variable removed.
4520         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4522 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4524         [BZ #6845]
4525         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4526         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4527         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4528         redundant.  Functions which call floating point assembler operations
4529         should go into a sysdeps powerpc/fpu directory.
4531 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4533         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4534         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4536 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4538         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4540         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4541         change related to AT_EXECFN.  We cannot use that string.
4542         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4543         _dl_execfn member.
4544         * elf/dl-support.c: Remove _dl_execfn variable.
4545         (_dl_aux_init): Remove handling of AT_EXECFN.
4546         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4547         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4549 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4551         [BZ #6544]
4552         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4553         byte gets added to writes and seeks from the end use the length of
4554         the buffer and not the currently terminating NUL byte.
4556         [BZ #6634]
4557         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4558         Set to true if locking failed.
4559         (getutid_r_file): Adjust caller.
4560         (pututline_file): Likewise.  Return NULL in this case.
4561         Patch mostly by halesh.s@gmail.com.
4563 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4565         [BZ #6589]
4566         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4567         Define.
4568         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4570 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4572         [BZ #6839]
4573         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4574         macro since it is now available in elf/dynamic-link.h.
4576 2008-08-12  Roland McGrath  <roland@frob.com>
4578         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4579         in case used outside of libc.
4580         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4582 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4584         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4585         directly instead of going through dn_comp.
4587 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4589         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4590         Fix asm constraints.
4592 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4594         [BZ #6790]
4595         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4596         (IPV6_PMTUDISC_PROBE): Likewise.
4598 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4600         [BZ #6791]
4601         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4603 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4604             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4606         [BZ #6817]
4607         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4608         Added the members 'vsx' and 'arch_2_06'.
4609         (_dl_powerpc_platforms): Add the member 'power7'.
4610         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4611         to reflect the changes required by VSX and ISA 2.06.
4612         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4613         'power7'.
4614         Defined PPC_PLATFORM_POWER7.
4615         (_dl_string_platform): Add support for POWER7.
4616         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4617         capability and ISA 2.06.
4619 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4621         [BZ #6824]
4622         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4623         macro to detect use of 128 bit long double.
4624         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4626 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4628         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4630         [BZ #5794]
4631         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4632         parameters.
4633         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4634         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4636 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4638         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4639         guaranteed to be large enough to read inotify event.  Ignore
4640         EAGAIN error.  Better error message.  Add branch predicition.
4641         (main_loop_epoll): Likewise.
4643 2008-08-02  Roland McGrath  <roland@frob.com>
4645         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4646         Add memory clobbers.
4648 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4650         * manual/arith.texi: Avoid @strong{Note:}.
4651         * manual/creature.texi: Likewise.
4652         * manual/filesys.texi: Likewise.
4653         * manual/math.texi: Likewise.
4654         * manual/memory.texi: Likewise.
4655         * manual/resource.texi: Likewise.
4656         * manual/syslog.texi: Likewise.
4657         * manual/time.texi: Likewise.
4659         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4660         to prevent warning.
4662 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4664         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4665         new epoll_create1 interface.
4666         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4667         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4668         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4670         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4671         (NS_GET32): Likewise.
4673         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4674         syscalls, too.
4676         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4677         use the AT_EXECFN value if it is no absolute path.
4678         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4679         __ASSUME_AT_EXECFN.
4681         * Versions.def: Add GLIBC_2.9 to libresolv.
4682         * include/resolv.h: Remove hidden proto declarations for __ns_*
4683         functions.  Add them for __dn_count_labels and __p_secstodate.
4684         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4685         Define ns_msg_getflags macro here.
4686         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4687         and __p_secstodate.
4688         * resolv/Versions: Export functions from <arpa/nameser.h> from
4689         libresolv in version GLIBC_2.9.
4690         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4691         hidden definitions.
4692         * resolv/ns_netint.c: Likewise.
4693         * resolv/ns_parse.c: Likewise.
4694         * resolv/ns_print.c: Likewise.
4695         * resolv/ns_samedomain.c: Likewise.
4696         * resolv/ns_ttl.c: Likewise.
4697         * resolv/arpa/nameser_compat.h: Likewise.
4698         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4699         function calls.
4700         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4701         instead of ns_get16.
4702         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4703         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4704         (gaih_getanswer_slice): Likewise.
4705         * resolv/Makefile (libresolv-routines): Add ns_date.
4706         * resolv/ns_date.c: New file.
4708         * elf/Makefile (check-localplt.out): Also check libresolv and
4709         libcrypt.
4711 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4713         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4714         __ASSUME_O_CLOEXEC.
4716 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4718         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4719         buffer passed to NSS functions.
4721         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4723         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4724         Define.
4726         * misc/syslog.c (openlog_internal): Fix compile problem.
4728 2008-07-28  Roland McGrath  <roland@redhat.com>
4730         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4732 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4734         * io/ftw.c (add_object): Remove inline to avoid warning.
4736         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4738         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4739         Use it instead of locally defined resplen2 variable.
4740         (res_nsend): Adjust for __libc_res_nsend interface change.
4741         (send_vc): Initialize *resplen2 if necessary.  Read length of
4742         package into an appropriately aligned variable.  Store converted length
4743         in new variable and use it appropriately.
4744         Add branch prediction help.
4745         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4746         and pass it on to __libc_res_nsend.  Adjust all callers.
4747         (__libc_res_nsearch): Likewise.
4748         (__libc_res_nqeurydomain): Likewise.
4749         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4750         change.
4751         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4752         Define resplen2 variable and pass it to __libc_res_nsearch and then
4753         to gaih_getanswer.
4754         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4755         Add branch prediction.
4756         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4757         (gaih_getanswer): Don't decode second slice if first one failed due
4758         to a too small buffer.  Don't let not found status of second
4759         decoder shadow results of the first.
4760         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4761         and __libc_res_nquery interface changes
4762         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4763         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4764         __libc_res_nsearch, and __libc_res_nsend.
4765         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4766         change.
4767         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4768         __libc_res_nsearch interface changes.
4770 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4772         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4774         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4775         file descriptors with close-on-exec set.
4776         (exec_comm_child): Fix the case where the write end of the pipe is
4777         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4779         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4780         * io/pipe2.c: Likewise.
4781         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4782         instead of __ASSUME_PACCEPT.
4783         * include/unistd.h: Declare __have_pipe2.
4784         * libio/iopopen.c: Implement "e" flag.
4785         * libio/Makefile (tests): Add tst-popen1.
4786         * libio/tst-popen1.c: New file.
4788         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4789         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4791 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4793         [BZ #6771]
4794         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4795         success call of _IO_SEEKOFF or calls which failed because the
4796         descriptor is for a pipe.
4798         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4799         magic number.
4801         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4803         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4804         F_SETFD use if we know fopen set the flag.
4806         * login/utmp_file.c (setutent_file): Minor optimization in case
4807         O_CLOEXEC is available.
4809 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4811         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4812         * elf/Makefile: Use pie-ccflag variable.
4813         * nscd/Makefile: Likewise.
4814         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4816 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4818         [BZ #6724]
4819         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4820         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4821         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4822         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4823         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4824         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4825         utmp32, utmpx32 and login32.
4826         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4827         versions of struct utmp functions to libc and libutil.
4828         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4829         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4830         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4831         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4832         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4833         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4834         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4835         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4836         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4837         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4838         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4839         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4840         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4841         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4842         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4843         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4844         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4845         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4846         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4847         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4848         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4849         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4851 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4853         * scripts/gen-as-const.awk: Generate more widely usable code by
4854         using 64-bit arithmetic.
4856         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4857         the same treatment as narrow output code in last patch.
4859         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4861         [BZ #6763]
4862         * elf/dl-load.c (local_strdup): Remove inline.
4863         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4864         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4865         part of the object.
4867         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4869 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4871         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4872         the new syscalls, too.
4874         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4875         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4877         [BZ #6698]
4878         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4879         parameter for end of buffer.  If temporary copy is too large use
4880         malloc.
4881         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4882         interface change.
4883         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4884         string rewrite when allocating buffer.
4886         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4887         syscalls, too.
4889         * nscd/connections.c (nscd_init): Clean up fcntl call.
4891         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4892         SOCK_NONBLOCK if possible.
4894         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4895         SOCK_CLOEXEC if available.
4897         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4898         __libc_clntudp_bufcreate_internal.
4899         * include/sys/socket.h: Declare __have_sock_cloexec.
4900         * socket/Makefile (aux): Add have_sock_cloexec.
4901         * socket/have_sock_cloexec.c: New file.
4902         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4903         __libc_clntudp_bufcreate.
4904         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4905         which takes an additional parameter.  Create socket with non-blocking
4906         mode and close-on-exec flag set, if wanted.
4907         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4908         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4909         instead of clntudp_create.  The socket has already the close-on-exec
4910         flag set if SOCK_CLOEXEC is defined.
4912 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4914         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4915         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4916         appropriate.
4917         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4918         non-blocking mode by using socket, paccept, and inotify_init1.
4920         * Versions.def (glibc): Add GLIBC_2.9.
4921         * io/Makefile (routines): Add dup3 and pipe2.
4922         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4923         * io/dup3.c: New file.
4924         * io/pipe2.c: New file.
4925         * posix/unistd.h: Declare dup3 and pipe2.
4926         * socket/Makefile (routines): Add paccept.
4927         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4928         * socket/paccept.c: New file.
4929         * socket/sys/socket.h: Declare paccept.
4930         * sysdeps/unix/syscalls.list: Add entry for dup3.
4931         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4932         epoll_create2 and inotify_init1.
4933         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4934         * sysdeps/unix/sysv/linux/paccept.c: New file.
4935         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4936         possible.
4937         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4938         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4939         inotify_init1, and pipe2 entries.
4940         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4941         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4942         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4943         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4944         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4945         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4946         SOCK_NONBLOCK.
4947         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4948         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4949         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4950         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4951         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4952         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4953         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4954         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4955         EPOLL_NONBLOCK.  Declare epoll_create2.
4956         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4957         EFD_NONBLOCK.
4958         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4959         IN_NONBLOCK.  Declare inotify_init1.
4960         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4961         SFD_NONBLOCK.
4962         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4963         TFD_NONBLOCK.
4965         * elf/elf.h: Define AT_EXECFN.
4966         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4967         LD_ORIGIN_PATH.
4968         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4969         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4970         if __ASSUME_AT_EXECFN is defined.
4971         (_dl_aux_init): Handle AT_EXECFN.
4972         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4973         for 2.6.27 and up.
4974         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4975         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4976         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4977         _dl_execfn if available and avoid compatibility code if
4978         __ASSUME_AT_EXECFN is defined.
4980         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4981         _dl_discover_osversion only for older kernels.
4983 2008-07-22  Roland McGrath  <roland@frob.com>
4985         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4987 2008-07-21  Roland McGrath  <roland@frob.com>
4989         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4990         returned too much data out of line.
4992 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4994         * locale/setlocale.c (setname): Remove inline to avoid compiler
4995         warning.
4997         [BZ #6712]
4998         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5000 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5002         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5003         doesn't manage to write anything, fail.
5005         * malloc/hooks.c (__malloc_check_init): Remove printf.
5007 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5009         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5011 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5013         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5014         from inotify.
5015         (main_loop_epoll): Likewise.
5017 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5019         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5021         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5022         if DEBUG is defined.
5024         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5025         query.  Adjust buffer size computation for padding.
5027 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5029         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5030         * stdio-common/tst-setvbuf1.c: New file.
5031         * stdio-common/tst-setvbuf1.expect: New file.
5033         [BZ #6719]
5034         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5035         when selecting fully-buffered stream.
5036         Patch by Wang Xin <wxinee@gmail.com>.
5038 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5040         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5041         (__open_2): New function.
5042         (__open64_2): New alias to __open_2.
5043         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5044         (__openat_2): New function.
5045         (__openat64_2): New alias to __openat_2.
5047 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5049         [BZ #6723]
5050         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5052 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5054         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5055         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5056         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5057         __hurd_dfail.
5058         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5059         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5060         * sysdeps/mach/hurd/send.c (__send): Likewise.
5061         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5062         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5064 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5066         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5067         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5068         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5069         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5070         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5071         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5073 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5075         [BZ #6657]
5076         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5077         of %EY.
5078         Patch by Petr Baudis.
5080 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5082         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5083         Patch by Peter Jones <pjones@redhat.com>.
5085 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5087         [BZ #6654]
5088         * stdlib/canonicalize.c (__realpath): readlink can write too much
5089         into the buffer on platforms without PATH_MAX.
5091 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5093         [BZ #6653]
5094         * posix/tst-regex.c (main): Rename to...
5095         (do_test): ... this. Remove cmdline option processing.
5096         (TIMEOUT): Define.
5097         (TEST_FUNCTION): Define.
5098         (CMDLINE_OPTIONS): Define.
5100 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5102         [BZ #5210]
5103         * configure.in: Add -Werror to -fstack-protector test to catch
5104         unsupported architectures.
5105         Patch by Gilles Esponasse <g.esp@free.fr>.
5107 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5109         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5110         getcontext returns ENOSYS.
5112 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5114         * nscd/connections.c (main_loop_poll): Fix test for read error.
5115         (main_loop_epoll): Likewise.
5117 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5119         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5120         better place so it is not called when nscd is used.
5122         * nscd/connections.c: Also recognize and handle changes to the
5123         resolver configuration file.
5125 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5127         * time/strftime.c: Pass reference to tzset_called around to handle
5128         recursive calls.
5130         [BZ #6612]
5131         * time/strftime.c (__strftime_internal): Call tzset() only
5132         when printing timezone-dependent values.
5133         Based on a patch by Petr Baudis <pasky@suse.cz>.
5135         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5136         unconditionally use second gaih_getanswer_slice result.
5138         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5139         (getaddrinfo): RES must always be non-NULL.
5141 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5143         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5144         cr[34] registers.
5145         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5146         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5147         Likewise.
5148         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5149         register.
5151 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5153         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5154         fields.
5155         * nscd/connections.c (inotify_fd): New variable.
5156         (nscd_init): Try to open an inotify descriptor.
5157         If successful, watch files for databases using inotify instead of
5158         having prune threads stat the files.
5159         (nscd_run_prune): Recognize clear_cache flag being set and call
5160         prune_cache appropriately.
5161         (main_loop_poll): Add inotify descriptor to wait set and handle the
5162         reported changes.
5163         (main_loop_epoll): Likewise.
5164         * nscd/cache.c (prune_cache): Don't stat files for databases if
5165         inotify is used.
5166         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5167         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5169         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5170         fixed-size portion of the record.
5171         * nscd/servicescache.c (cache_addserv): Likewise.
5172         * nscd/pwdcache.c (cache_addpw): Likewise.
5173         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5175 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5177         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5178         out we don't use uninitialized memory.
5180         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5181         the client.
5183 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5185         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5186         ignore T_DNAME messages.
5187         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5189 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5191         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5192         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5194 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5196         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5197         instead of portstr to nscd_getserv_r.  Patch by
5198         Roman Kagan <rkagan@mail.ru>.
5200 2008-05-26  Jim Meyering  <meyering@redhat.com>
5202         Remove more useless "if" tests before "free".
5203         * include/inline-hashtab.h (htab_delete): Likewise.
5204         * libio/freopen.c (freopen): Likewise.
5205         * libio/freopen64.c (freopen64): Likewise.
5206         * locale/programs/ld-collate.c (collate_read): Likewise.
5207         * misc/fstab.c (libc_freeres_fn): Likewise.
5208         * posix/glob.c (globfree): Likewise.
5210 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5212         * string/Makefile (strop-tests): Add memmem.
5213         * string/test-memmem.c: New file.
5214         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5215         (test_init): Size buf1 according to BUF1PAGES.
5217 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5219         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5220         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5221         (CFLAGS-scanf17.c): New.
5222         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5223         * stdio-common/scanf15.c (main): Likewise.
5224         * stdio-common/scanf16.c: New file.
5225         * stdio-common/scanf17.c: New file.
5227 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5229         * resolv/res_send.c (send_dg): If we already have one of two
5230         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5231         use the one answer insted of failing.
5233 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5235         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5236         being executed on PowerPC as the expected result exceeds IBM
5237         long double 128 __LDBL_MAX__.
5239 2008-05-21  Roland McGrath  <roland@redhat.com>
5241         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5243         * Makefile (check-data): Use $(abi-name) before other guesses.
5244         Look in $(add-ons) dirs before scripts/data/.
5245         * elf/Makefile (check-data): Likewise.
5247         * scripts/soversions.awk: Grok ABI line.
5248         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5249         Emit definition for abi-name variable.
5251 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5253         * string/endian.h: Define new fixed-size hto* and *toh macros only
5254         if [__USE_BSD].
5256         * iconvdata/Depend: Add localedata.
5258 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5260         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5262 2008-05-08  David S. Miller  <davem@davemloft.net>
5264         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5265         HIDDEN_JUMPTARGET.
5266         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5267         (__SYSCALL_CLOBBERS): Remove %g* registers.
5268         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5269         (__SYSCALL_CLOBBERS): Likewise.
5270         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5271         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5273 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5275         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5276         (CALL_ERRNO_LOCATION): Define.
5277         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5278         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5279         (CALL_ERRNO_LOCATION): Define.
5280         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5281         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5282         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5284 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5286         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5287         variable.
5289 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5291         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5292         (FIRST_FRAME_POINTER): Define.
5294 2008-05-09  David S. Miller  <davem@davemloft.net>
5296         * sysdeps/sparc/sparc64/backtrace.c: New file.
5298 2008-05-14  David S. Miller  <davem@davemloft.net>
5300         * sysdeps/sparc/machine-gmon.h: New file.
5301         * sysdeps/sparc/sparc-mcount.S: Likewise.
5302         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5303         sysdep_routines in gmon directory.
5305 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5307         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5309 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5311         * resolv/res_query.c (__libc_res_nquery): In case one of two
5312         answer was too short don't try to read that answer's header.
5314         * resolv/res_send.c (send_dg): In case of timeout and there are
5315         two queries and one has been answered, return value indicating
5316         success.
5318 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5320         * nscd/cache.c (cache_add): Take additional parameter specifying
5321         whether this is in response of a cache refill.  Check alignment
5322         of package data.  Revamp waking of pruning thread.
5323         (prune_cache): Small optimization.
5324         * nscd/nscd.h: Adjust cache_add prototypes.
5325         * nscd/aicache.c: Adjust cache_add calls.
5326         * nscd/grpcache.c: Likewise.
5327         * nscd/hstcache.c: Likewise.
5328         * nscd/initgrcache.c: Likewise.
5329         * nscd/pwdcache.c: Likewise.
5330         * nscd/servicescache.c: Likewise.
5331         * nscd/connections.c (restart): Really disable cache use before
5332         exec attempt.  If it fails, reenable cache.
5333         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5334         time to max to be able to notice concurrent cache additions.  Unlock
5335         prune_lock while performing gc.  Afterwards compute wakeup time with
5336         current wakeup_time value in mind.
5338 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5340         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5342         * nscd/mem.c (gc): Correctly determine highest used array element
5343         in mark.
5345         * nscd/mem.c (markrange): Add assert to check entries are all
5346         aligned.  Small cleanup in bitmap use.
5348         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5349         blockoff of type nscd_ssize_t.
5350         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5351         (mempoll_alloc): Record block offset and not address.
5353         * nscd/mem.c (gc): Fix test for stack overuse.
5355         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5356         more asserts.
5358         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5359         entry is available, believe it.
5361         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5362         no answers return NSS_STATUS_NOTFOUND.
5363         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5364         buffer does not have any content.
5366 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5368         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5370         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5371         lookup, don't assign canon unconditionally.
5373 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5375         * string/Makefile (distribute): Add str-two-way.h.
5377 2008-03-29  Eric Blake  <ebb9@byu.net>
5379         Rewrite string searches to O(n) rather than O(n^2).
5380         * string/str-two-way.h: New file.  For linear fixed-allocation
5381         string searching.
5382         * string/memmem.c: New implementation.
5383         * string/strstr.c: New implementation.
5384         * string/strcasestr.c: New implementation.
5386 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5388         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5389         opr.ctx_type.
5390         (calc_first): Initialize constraint field.
5391         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5392         Use search_duplicated_node to avoid loops.  Fix grammar.
5393         (duplicate_node): Merge constraint field for all node types.
5394         (calc_eclosure_iter): Look at constraint field for all node types.
5395         * posix/regex_internal.c (create_cd_newstate): Don't look at
5396         create_cd_newstate.
5398 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5400         [BZ #6428]
5401         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5403         [BZ #6442]
5404         * string/endian.h: Add macros for fixed-size endian conversion.
5405         * bits/byteswap.h: Allow inclusion from <endian.h>.
5406         * sysdeps/i386/bits/byteswap.h: Likewise.
5407         * sysdeps/ia64/bits/byteswap.h: Likewise.
5408         * sysdeps/s390/bits/byteswap.h: Likewise.
5409         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5410         * string/Makefile (tests): Add tst-endian.
5411         * string/tst-endian.c: New file.
5413         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5414         Patch by Reuben Thomas.
5416 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5418         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5420 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5422         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5424         [BZ #6461]
5425         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5426         Add missing braces.
5427         (BODY for __gconv_transform_internal_ascii): Likewise.
5429         [BZ #6472]
5430         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5431         to be treated like link-local addresses.
5432         (match_prefix): Don't treat IPv4 loopback address special when
5433         converting to v4 mapped addressed.
5435         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5436         if necessary.
5437         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5438         * posix/tst-rfc3484-2.c: Likewise.
5439         * posix/tst-rfc3484-3.c: Likewise.
5441         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5442         and SCTP.
5444         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5446         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5448         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5450 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5452         * po/lt.po: New file.  From Lituanian translation team.
5454 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5456         Introduce TLS descriptors for i386 and x86_64.
5457         * include/inline-hashtab.h: New file, copied from 2005's
5458         libiberty, with fix for memory leak imported afterwards by
5459         Glauber de Oliveira Costa.
5460         * elf/tlsdeschtab.h: New file.
5461         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5462         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5463         (CHECK_STATIC_TLS): Move to...
5464         * elf/dynamic-link.h: ... this file.
5465         (TRY_STATIC_TLS): New macro.
5466         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5467         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5468         R_386_TLS_DESC): Define.
5469         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5470         binutils.
5471         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5472         R_X86_64_TLSDESC): Define.
5473         (R_386_NUM, R_X86_64_NUM): Adjust.
5474         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5475         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5476         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5477         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5478         release tlsdesc_table.
5479         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5480         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5481         (elf_machine_rel): Handle R_386_TLS_DESC.
5482         (elf_machine_rela): Likewise.
5483         (elf_machine_lazy_rel): Likewise.
5484         (elf_machine_lazy_rela): Likewise.
5485         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5486         * sysdeps/i386/dl-tlsdesc.S: New file.
5487         * sysdeps/i386/dl-tlsdesc.h: New file.
5488         * sysdeps/i386/tlsdesc.c: New file.
5489         * sysdeps/i386/tlsdesc.sym: New file.
5490         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5491         tlsdesc_table.
5492         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5493         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5494         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5495         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5496         release tlsdesc_table.
5497         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5498         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5499         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5500         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5501         (elf_machine_rela): Likewise.
5502         (elf_machine_lazy_rel): Likewise.
5503         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5504         (__tls_get_addr): Do not declare for non-shared compiles.
5505         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5506         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5507         * sysdeps/x86_64/tlsdesc.c: New file.
5508         * sysdeps/x86_64/tlsdesc.sym: New file.
5509         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5510         tlsdesc_table for both 32- and 64-bit structs.
5512 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5514         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5515         its own function.  This reduces the frame setup costs and more.
5517 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5519         [BZ #3406]
5520         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5521         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5523 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5525         * io/openat.c (__openat_2): Also pass fd to __openat.
5526         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5527         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5529         * string/tester.c (test_memcmp): Add a few more tests.
5530         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5532 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5534         * nscd/cache.c (cache_add): Before returning with failure and this
5535         is the first use of the record, mark it as unusable.
5536         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5537         reporting a failure.
5538         * nscd/grpcache.c: Likewise
5539         * nscd/hstcache.c: Likewise.
5540         * nscd/initgrcache.c: Likewise.
5541         * nscd/pwdcache.c: Likewise.
5542         * nscd/servicescache.c: Likewise.
5544 2008-05-10  Roland McGrath  <roland@redhat.com>
5546         [BZ #6505]
5547         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5549 2008-05-08  David S. Miller  <davem@davemloft.net>
5551         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5553         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5554         (__ieee754_y0l): Likewise.
5555         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5556         (__ieee754_y1l): Likewise.
5557         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5558         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5559         frexpl and ldexpl.  math_private.h provides them and the latter
5560         is not even used.
5561         (__log1pl): Use __frexpl.
5563 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5565         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5566         prototypes.
5567         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5568         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5569         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5570         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5571         af==AF_UNSPEC.
5572         (_nss_nis_gethostbyname4_r): New function.
5573         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5574         Change to also handle af==AF_UNSPEC.
5575         (get_tablename): New function.  Use it to avoid duplication.
5576         (_nss_nisplus_gethostbyname4_r): New function.
5577         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5578         available.
5579         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5580         * nss/nss.h: Define struct gaih_addrtuple.
5581         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5582         af==AF_UNSPEC.
5583         (_nss_files_gethostbyname4_r): New function.
5584         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5585         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5586         calls.
5587         * resolv/res_query.c (__libc_res_nquery): Take two additional
5588         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5589         look up IPv4 and IPv6.
5590         Change all callers.
5591         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5592         for an additional query and answer buffer.  Pass to send_vc and
5593         send_dg.
5594         (send_vc): Send possibly two requests and receive two answers.
5595         (send_dg): Likewise.
5596         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5597         __libc_res_nquery.
5598         (_nss_dns_gethostbyname4_r): New function.
5599         (gaih_getanswer_slice): Likewise.
5600         (gaih_getanswer): Likewise.
5601         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5602         __libc_res_nquery call.
5603         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5604         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5605         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5606         available.
5608 2008-05-05  David S. Miller  <davem@davemloft.net>
5610         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5611         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5613 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5615         Fix termios bit macros.
5616         Move *DLY definitions where they belong, in termios.h.
5617         Add *[0-3] definitions.
5618         Fixes confusion between VT and FF.
5619         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5620         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5621         are already defined to avoid collision with termios.h.
5622         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5623         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5624         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5625         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5626         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5627         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5628         VTDLY, VT0, VT1): New macros.
5629         [__USE_GNU] (OLCUC): Change value of macro.
5630         [__USE_XOPEN] (OFILL): New macro.
5631         [__USE_BSD] (CRTSCTS): Change value.
5632         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5633         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5634         (B7200, B14400, B28800, B76800): New macros.
5636 2008-05-01  David S. Miller  <davem@davemloft.net>
5638         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5639         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5640         (gen-as-const-headers): Add it.
5641         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5642         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5643         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5644         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5646         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5647         six system call parameters.
5648         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5650 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5652         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5653         RUSAGE_LWP.
5654         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5655         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5657 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5659         * stdlib/tst-setcontext.c: Include unistd.h.
5661 2008-04-25  David S. Miller  <davem@davemloft.net>
5663         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5664         Pass "union semun" properly in to sys_ipc, it must be passed
5665         by value, not by reference.
5667 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5669         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5670         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5671         * nscd/connections.c (mem_in_flight): Likewise.
5673         * nscd/nscd.h (dbs): Make hidden.
5675         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5676         Avoid returning -1, return 0 instead.
5678 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5680         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5682 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5684         [BZ #5209]
5685         * sysdeps/unix/sysv/linux/times.c: New file.
5687         [BZ #5381]
5688         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5689         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5690         prototype.
5691         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5692         appropriate mem_in_flight element.
5693         (gc): Take allocations which have not yet been committed to the
5694         database into account.
5695         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5696         Reset mem_in_flight before returning.
5697         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5698         cue it up in mem_in_flight_list.
5699         * nscd/aicache.c: Adjust mempool_alloc call.
5700         * nscd/grpcache.c: Likewise.
5701         * nscd/hstcache.c: Likewise.
5702         * nscd/initgrcache.c: Likewise.
5703         * nscd/pwdcache.c: Likewise.
5704         * nscd/servicescache.c: Likewise.
5705         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5706         of -fpie.
5708         * nscd/connections.c (handle_request): Provide better error message
5709         in case SELinux forbids the service.
5711         * version.h (VERSION): Bump to 2.8.90.
5713 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5715         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5717 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5719         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5720         Also use for 32-bit.
5721         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5722         __nextafter instead of nextafter to avoid local PLT.
5723         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5724         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5726         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5728         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5729         __fe_nomask_env.
5730         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5731         <fenv_libc.h> instead of <fenv.h>.
5732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5735         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5737         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5738         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5739         function from fegetexcept and make old name weak alias.
5740         * include/fenv.h: Declare __fegetexcept.
5741         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5742         fegetexcept.
5743         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5744         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5745         to fetestexcept.
5746         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5747         instead of frexpl to avoid local PLT.
5748         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5749         ilogbl to avoid local PLT.
5750         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5751         instead of ldexpl to avoid local PLT.
5752         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5753         __roundl not roundl to avoid local PLT.
5754         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5755         local PLTs.  Use __sincosl instead of separate sinl and cosl
5756         calls.
5757         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5759         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5760         version for ppc64 to 2.4.21 since without it makecontext will fail.
5762         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5763         to the ABI in use.
5764         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5765         .__tls_get_addr.
5766         [__powerpc64__] (TLS_GD): Likewise.
5768 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5770         [BZ #4997]
5771         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5772         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5773         mantissa.
5774         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5775         Likewise.  Also account for when x is an odd number between 2^52
5776         and 2^53-1.
5777         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5778         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5779         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5780         detect aforementioned erroneous conditions.
5782 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5784         * configure.in: Check for -fno-section-anchors in addition to
5785         -fno-toplevel-reorder.
5787 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5789         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5791         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5792         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5793         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5794         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5795         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5796         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5798 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5800         [BZ #5443]
5801         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5802         * time/alt_digit.c: Likewise.
5803         * wcsmbs/wcsmbsload.c: Likewise.
5805 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5807         * version.h (VERSION): Bump to 2.8.
5809         * timzeone/asia: Update from tzdata2008b.
5810         * timezone/backward: Likewise.
5811         * timezone/europe: Likewise.
5812         * timezone/northamerica: Likewise.
5813         * timezone/southamerica: Likewise.
5814         * timezone/iso3166.tab: Likewise.
5815         * timezone/leapseconds: Likewise.
5816         * timezone/zone.tab: Likewise.
5817         * timezone/private.h: Update from tzcode2008a.
5818         * timezone/zdump.c: Likewise.
5819         * timezone/zic.c: Likewise.
5821 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5823         [BZ #5741]
5824         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5825         Define additonal Data Cache Block instruction macros.
5826         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5827         Replace dcbst with dcbf and sync with sync/isync.
5829 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5831         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5832         Always set ELF_RTYPE_CLASS_PLT.
5833         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5835 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5837         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5838         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5839         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5840         For ISA 2.01 and later replace mftb with mfspr 268.
5842 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5844         [BZ #5768]
5845         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5846         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5848 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5850         [BZ #5768]
5851         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5852         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5853         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5854         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5856 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5858         * stdlib/tst-makecontext.c (othervar): New variable.
5859         (cf): Test sign extending the argument to long.
5861 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5863         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5864         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5865         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5866         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5867         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5868         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5869         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5871 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5873         * elf/Makefile (tests): Substitute tests-vis-yes here.
5874         (tests-vis-yes): Delete.
5875         (modules-name, modules-vis-yes): Similarly.
5877 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5879         [BZ #4407]
5880         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5881         Preserve sign in signgamp when x is zero.
5883 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5885         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5886         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5887         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5888         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5889         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5890         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5892 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5894         [BZ #4314]
5895         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5896         buffers.
5898         [BZ #5209]
5899         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5900         a reserved error value.
5902         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5903         value to check for correct sign extension.
5905         [BZ #5436]
5906         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5907         Copy 64-bit parameter values even though this is not required in
5908         the standard.
5910         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5911         PC save.
5913 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5915         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5916         PC save.
5918 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5920         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5922 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5924         [BZ #5998]
5925         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5926         in line-buffered stream failed.
5927         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5929 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5931         [BZ #6024]
5932         * scripts/abi-versions.awk: If the version specified by
5933         --enable-oldest-abi is older than the first version for this
5934         architecture, use the default version.
5936         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5937         as well when ignoring the whole category.
5939 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5941         [BZ #6042]
5942         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5943         ETHERTYPE_* definitions.
5944         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5946 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5948         * stdlib/mbtowc.c (__no_r_state): Remove.
5949         (mbtowc): New static state variable.  Use it instead of
5950         __no_r_state.
5951         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5952         (__wctomb_state): New hidden variable.
5953         (wctomb): Use __wctomb_state instead of __no_r_state.
5954         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5955         (__wctomb_state): New extern decl.
5956         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5958 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5960         [BZ #5475]
5961         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5963 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5965         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5967 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5969         * po/nl.po: Update from translation team.
5971 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5973         [BZ #6007]
5974         * string/strfry.c: Handle empty strings again.
5976 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5978         [BZ #5443]
5979         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5980         before looking for translation.
5981         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5982         * locale/freelocale.c: Likewise.
5983         * locale/newlocale.c: Likewise.
5984         * locale/setlocale.c: Likewise.
5985         Based partially on a patch by ryo@np.css.fujitsu.com.
5987 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5989         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5990         acquiring wrlock.  Do conv_tab allocation while holding lock.
5991         * intl/Makefile: Add rules to build and run tst-gettext6.
5992         * intl/tst-gettext6.c: New test.
5993         * intl/tst-gettext6.sh: New file.
5995 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5997         * po/nl.po: Update from translation team.
5999         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6000         provided through st_blksize, try the default size before giving up.
6002 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6004         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6006         [BZ #5939]
6007         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6009         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6010         error message.  POSIX today does not require the messages to be in
6011         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6013         [BZ #5979]
6014         * sunrpc/auth_unix.c: Unify printed strings.
6015         * sunrpc/clnt_tcp.c: Likewise.
6016         * sunrpc/clnt_udp.c: Likewise.
6017         * sunrpc/clnt_unix.c: Likewise.
6018         * sunrpc/svc_tcp.c: Likewise.
6019         * sunrpc/svc_udp.c: Likewise.
6020         * sunrpc/svc_unix.c: Likewise.
6021         * sunrpc/xdr.c: Likewise.
6022         * sunrpc/xdr_array.c: Likewise.
6023         * sunrpc/xdr_rec.c: Likewise.
6024         * sunrpc/xdr_ref.c: Likewise.
6025         * locale/programs/ld-time.c (time_finish): Unify messages.
6026         * locale/programs/locfile.c (handle_copy): Fix typo.
6027         * nscd/nscd.c (options): Fix typo.
6029         [BZ #5995]
6030         * stdlib/strtod_l.c: Use correct sign for result in one more
6031         underflow case.
6032         Patch by Eric Blake <ebb9@byu.net>.
6034 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6036         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6037         and creat system calls.
6038         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6039         call.
6040         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6041         system calls.
6042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6043         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6044         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6046 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6048         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6049         <linux/limits.h> has defined it.
6050         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6051         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6052         headers.
6053         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6054         it instead of ARG_MAX.
6056 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6058         * posix/gai.conf: Fix comment for scope nullbits.
6059         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6060         default to 128 bits for v4 mapped addresses.
6062 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6064         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6065         ptrace call to get the ieee_instruction_pointer from the kernel.
6066         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6067         ptrace call to set the ieee_instructtion_pointer.
6068         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6069         Add comment that ieee_instruction_pointer is always 0.
6071 2008-03-09  Andreas Jaeger  <aj@suse.de>
6073         [BZ #5857]
6074         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6075         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6076         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6078         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6079         (rint_test): Likewise.
6081 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6083         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6084         call.
6085         (__nisfind_server): Similar for open readColdStartFile call.
6086         Patch partially by Jim Meyering.
6087         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6088         around internal_setent call.
6090         * po/vi.po: New Vietnamese translation.
6092         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6093         ADJ_OFFSET_SS_READ.
6095         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6096         remove CLONE_STOPPED.
6098 2008-02-10  Jim Meyering  <meyering@redhat.com>
6100         Remove useless "if" before "free":
6101         * elf/ldconfig.c (parse_conf_include): Likewise.
6102         * gmon/gmon.c (weak_alias): Likewise.
6103         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6104         * inet/rcmd.c (__validuser2_sa): Likewise.
6105         * intl/bindtextdom.c (set_binding_values): Likewise.
6106         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6107         * libio/genops.c (save_for_backup): Likewise.
6108         * libio/wgenops.c (save_for_wbackup): Likewise.
6109         * locale/programs/ld-collate.c (collate_read): Likewise.
6110         * locale/programs/linereader.c (get_string): Likewise.
6111         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6112         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6113         * resolv/res_debug.c (do_section): Likewise.
6114         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6115         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6116         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6117         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6118         * time/tzset.c (tzset_internal): Likewise.
6120 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6122         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6123         of ASSEMBLER.
6125 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6127         [BZ #5903]
6128         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6129         not stream for output file.  Open output file here.
6130         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6131         and output file name.
6132         (process_fd): Likewise.
6133         (process_file): Likewise.
6134         (main): Adjust callers of changed functions.
6135         * iconv/iconv_prog.h: Adjust prototype.
6137 2008-03-09  Andreas Jaeger  <aj@suse.de>
6139         [BZ #5753]
6140         * sysdeps/ia64/ieee754.h: Use protected namespace
6141         __BIG_ENDIAN/__LITTLE_ENDIAN.
6142         * sysdeps/ieee754/ieee754.h: Likewise.
6143         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6145 2008-03-08  Roland McGrath  <roland@frob.com>
6147         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6148         ignore a signal that came from a machine exception, treat it as a
6149         fatal core-dump signal instead.
6150         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6152         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6153         Clear DF bit in thread state's eflags.
6154         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6156 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6158         [BZ #5774]
6159         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6160         of NAN(...) sequence.
6161         * stdlib/Makefile (tests): Add tst-strtod6.
6162         * stdlib/tst-strtod6.c: New file.
6164         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6166         [BZ #5762]
6167         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6168         putting offending option character in quotes.  Clean up error
6169         messages.
6170         * po/be.po: Adjust msgstr in translation file.
6171         * po/bg.po: Likewise.
6172         * po/ca.po: Likewise.
6173         * po/cs.po: Likewise.
6174         * po/da.po: Likewise.
6175         * po/de.po: Likewise.
6176         * po/es.po: Likewise.
6177         * po/fr.po: Likewise.
6178         * po/hr.po: Likewise.
6179         * po/ko.po: Likewise.
6180         * po/nl.po: Likewise.
6181         * po/rw.po: Likewise.
6182         * po/sk.po: Likewise.
6183         * po/sv.po: Likewise.
6184         * po/tr.po: Likewise.
6185         * po/zh_CN.po: Likewise.
6186         * po/zh_TW.po: Likewise.
6188         [BZ #5760]
6189         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6190         Patch by Roland Bless <roland@bless.de>.
6192         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6193         .o file.
6194         * elf/Makefile (routines): Add dl-sysdep.
6195         (elide-routines.os): Likewise.
6197 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6199         [BZ #5786]
6200         * elf/dl-sysdep.c: Undefine ROUND after use.
6201         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6202         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6203         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6204         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6205         to ...
6206         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6207         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6208         if necessary.
6209         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6211         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6212         _dl_tls_get_addr_soft element.
6213         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6214         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6215         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6216         GLRO.
6217         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6218         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6219         of internal_function.
6221         * stdlib/Makefile (aux): Add tens_in_limb.
6222         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6223         * stdlib/tens_in_limb.c: ...here.  New file.
6225         [BZ #5778]
6226         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6227         __statfs_chown_restricted.
6228         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6229         for _PC_CHOWN_RESTRICTED.
6230         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6231         Implement __statfs_chown_restricted.
6232         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6233         _POSIX_CHOWN_RESTRICTED value to zero.
6234         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6235         defined to zero.
6237         * sysdeps/x86_64/rtld-memset.c: New file.
6239 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6241         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6243         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6244         Barcelona machine.  Make default fall through branch of
6245         __x86_64_preferred_memory_instruction check as the integer code path.
6247 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6249         * sysdeps/x86_64/cacheinfo.c
6250         (__x86_64_preferred_memory_instruction): New variable.
6251         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6253         * sysdeps/x86_64/memset.S: Rewrite.
6255 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6257         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6258         __obstack_printf_chk): New prototypes.
6259         (__vasprintf_chk, __vdprintf_chk,
6260         __obstack_vprintf_chk): Likewise.
6261         Add libc_hidden_proto.
6262         * libio/obprintf.c
6263         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6264         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6265         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6266         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6267         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6268         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6269         __obstack_vprintf_chk): New prototypes.
6270         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6271         obstack_vprintf): New inlines.
6272         * debug/dprintf_chk.c: New file.
6273         * debug/vdprintf_chk.c: New file.
6274         * debug/asprintf_chk.c: New file.
6275         * debug/vasprintf_chk.c: New file.
6276         * debug/obprintf_chk.c: New file.
6277         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6278         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6279         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6280         @@GLIBC_2.8.
6281         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6282         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6283         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6284         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6285         libc_hidden_proto.
6286         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6287         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6288         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6289         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6290         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6291         @@GLIBC_2.8.
6292         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6293         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6294         obstack_vprintf_chk.
6295         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6296         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6297         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6298         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6299         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6300         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6302 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6304         [BZ #5779]
6305         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6306         Patch by Roy Marples <roy@marples.name>.
6308         [BZ #5736]
6309         * malloc/malloc.c: Fix typo in comment.
6311         [BZ #5627]
6312         * locale/iso-639.def: Add Shuswap.
6314 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6316         [BZ #5790]
6317         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6318         overwrite *h_errnop/*errnop values from getanswer_r in case of
6319         failure.
6321 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6323         [BZ #5818]
6324         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6325         (verify_persistent_db): Remove one unnecessary test and add a new one
6326         for bad configuration.
6327         (nscd_init): Improve error reported when persistent database cannot
6328         be reused.
6329         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6330         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6331         .suggested_module and .max_db_size and case config file says the
6332         values are zero.
6333         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6335         [BZ #5854]
6336         * nis/ypclnt.c (yp_order): Fix handling of return value of
6337         do_ypcall_tr call.
6338         Patch by Jeff Moyer <jmoyer@redhat.com>.
6340         * po/fr.po: Update from translation team.
6342 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6343             Carlos O'Donell <carlos@systemhalted.org>
6345         [BZ #5012]
6346         * FAQ.in: Describe why glibc needs to be compiled with
6347         optimization.
6349 2008-02-19  Roland McGrath  <roland@redhat.com>
6351         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6353 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6355         [BZ #5737]
6356         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6357         __USE_MISC is defined.
6359 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6361         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6362         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6363         sys/timerfd.h.
6364         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6365         timerfd_gettime, timerfd_settime.
6366         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6367         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6369 2008-02-08  Roland McGrath  <roland@redhat.com>
6371         * elf/elf.h (NT_PPC_SPE): New macro.
6373 2008-02-06  Roland McGrath  <roland@redhat.com>
6375         * Makerules ($(common-objpfx)sysd-rules):
6376         Depend on $(sysdep-makeconfigs).
6378 2008-01-31  Roland McGrath  <roland@redhat.com>
6380         [BZ #5442]
6381         * configure.in: Use -print-file-name if it yields a directory,
6382         for each of include and include-fixed.
6383         * configure: Regenerated.
6385         * Makeconfig (sysd-rules-targets): New variable.
6386         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6387         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6389 2008-01-30  Roland McGrath  <roland@redhat.com>
6391         * manual/libc.texinfo: Update back-cover text.
6393         * elf/elf.h (NT_386_TLS): New macro.
6395 2008-01-29  Roland McGrath  <roland@redhat.com>
6397         * Makeconfig (sysd-rules-patterns): New variable.
6398         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6399         (check-inhibit-asm): New canned sequence, replaces ...
6400         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6401         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6402         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6403         (CFLAGS-rtld): Variable removed.
6405 2008-01-24  Roland McGrath  <roland@redhat.com>
6407         * configure.in: Let configure fragments set base_os.
6408         * configure: Regenerated.
6410 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6412         * po/ko.po: Update from translation team.
6414 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6416         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6418 2008-01-12  Andreas Jaeger  <aj@suse.de>
6420         [BZ #5040]
6421         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6422         Add EPOLLRDHUP.
6424 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6426         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6427         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6428         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6430 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6432         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6433         * elf/dl-close.c (_dl_close): Check for it.
6434         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6435         (_dl_allocate_static_tls): Likewise.
6436         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6437         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6438         to it.
6439         * elf/tst-tls16.c: New file.
6440         * elf/tst-tlsmod16a.c: New file.
6441         * elf/tst-tlsmod16b.c: New file.
6442         * elf/Makefile: Add rules to build and run tst-tls16.
6444 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6446         [BZ #5628]
6447         * bits/shm.h: Fix comment describing shmid_ds.
6448         * sysdeps/gnu/bits/shm.h: Likewise.
6449         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6450         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6451         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6452         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6453         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6454         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6455         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6456         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6457         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6459         [BZ #5607]
6460         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6461         prototypes.
6462         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6463         additional suffixes.
6464         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6465         Add optional functions mq_timedreceive and mq_timedsend.
6466         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6467         * conform/data/pthread.h-data: Fix prototype of
6468         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6469         * conform/data/semaphore.h-data: Allow time.h definitions.
6470         * conform/data/signal.h-data: Likewise.
6471         * conform/data/stdio.h-data: getw and putw are not required in v6.
6472         * conform/data/stdlib.h-data: Change setstate prototype.
6473         * conform/data/string.h-data: Fix strerror_r prototype.
6474         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6475         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6476         Fix readlink prototype.
6477         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6478         in6addr_loopback.
6479         * inet/netinet/in.h: Cleanup namespace.
6480         * posix/regex.h: Likewise.
6481         * resolv/netdb.h: Likewise.
6482         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6483         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6484         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6485         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6486         of names of in in6_addr.
6487         (default_precedence): Likewise.
6488         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6489         NULL definition.
6491 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6493         * conform/data/fmtmsg.h-data: Add missing allows.
6494         * conform/data/ftw.h-data: Likewise.
6495         * conform/data/inttypes.h-data: Likewise.
6496         * conform/data/math.h-data: Likewise.
6497         * conform/data/signal.h-data: Likewise.
6498         * conform/data/net/if.h-data: Likewise.
6499         * conform/data/netinet/in.h-data: Likewise.
6500         * conform/data/sys/socket.h-data: Likewise.
6502         [BZ #5614]
6503         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6504         (__strtok_r): Simplify.
6505         * string/tester.c (test_strtok_r): Add test case for futile search
6506         with single-character seach string.
6508 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6510         * po/ko.po: Update from translation team.
6512 2008-01-11  Andreas Jaeger  <aj@suse.de>
6514         [BZ #5600]
6515         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6516         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6517         kernel header.
6519 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6521         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6522         native interface lookup in all the relevant places.
6524 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6525             Ulrich Drepper  <drepper@redhat.com>
6527         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6528         field.  Use sockaddr_in6 for source_addr.
6529         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6530         (match_prefix): Likewise.
6531         (get_label): Likewise.
6532         (get_precedence): Likewise.
6533         (rfc3484_sort): Change to use indirect access to results array.
6534         Adjust to use of sockaddr_in6.  Replace service_order test with
6535         simple index comparison.
6536         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6537         service_order field.  Adjust qsort_t calls.  Access sorted result
6538         array indirectly through order array.
6539         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6540         * posix/tst-rfc3484-2.c: Likewise.
6541         * posix/tst-rfc3484-3.c: Likewise.
6543 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6545         [BZ #5541]
6546         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6547         pollfd structures.
6548         Patch by André Cruz.
6550         [BZ #5545]
6551         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6552         (clnt_spcreateerror): Likewise.
6554         [BZ #5553]
6555         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6556         (public_mEMALIGn): Likewise.
6557         Patch mostly by Daniel Jacobowitz.
6559 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6561         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6562         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6563         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6564         * stdlib/tst-makecontext2.c: New test.
6566 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6568         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6569         defined.
6570         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6571         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6572         transliteration hooks and REINIT_PARAMS afterwards.
6573         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6574         status.
6575         (REINIT_PARAMS): Define.
6576         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6577         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6578         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6579         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6580         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6581         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6582         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6583         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6584         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6585         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6586         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6587         * iconvdata/tst-iconv7.c: New test.
6589 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6591         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6593 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6595         [BZ #5112]
6596         * nscd/connections.c (restart): Fix condition.
6598 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6600         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6601         __ctype_toupper_loc): Add __THROW.
6603 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6605         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6606         recognition of interface family.
6608         * posix/getconf.c: Update copyright year.
6609         * nss/getent.c: Likewise.
6610         * iconv/iconvconfig.c: Likewise.
6611         * iconv/iconv_prog.c: Likewise.
6612         * elf/ldconfig.c: Likewise.
6613         * catgets/gencat.c: Likewise.
6614         * csu/version.c: Likewise.
6615         * elf/ldd.bash.in: Likewise.
6616         * elf/sprof.c (print_version): Likewise.
6617         * locale/programs/locale.c: Likewise.
6618         * locale/programs/localedef.c: Likewise.
6619         * nscd/nscd.c (print_version): Likewise.
6620         * debug/xtrace.sh: Likewise.
6621         * malloc/memusage.sh: Likewise.
6622         * malloc/mtrace.pl: Likewise.
6623         * debug/catchsegv.sh: Likewise.
6625 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6627         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6628         second lookup.
6630 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6632         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6633         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6635 2007-12-17  Roland McGrath  <roland@redhat.com>
6637         * inet/ether_line.c (ether_line): Remove unused variable.
6639 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6641         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6642         and winp.
6643         * login/openpty.c (openpty): Likewise.
6644         * login/pty.h (openpty, forkpty): Likewise.
6645         * manual/terminal.texi (openpty, forkpty): Likewise.
6647 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6649         * malloc/malloc.c (public_cALLOc): For arenas other than
6650         main_arena, count all bytes inside the mprotect_size range of the
6651         heap as uninitialized.
6653 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6655         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6656         executable stacks.
6658         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6659         mTRIm for all of them.
6660         (mTRIm): Additionally iterate over all free blocks and use madvise
6661         to free memory for all those blocks which contain at least one
6662         memory page.
6663         * malloc/tst-trim1.c: New file.
6664         * malloc/Makefile (tests): Add tst-trim1.
6666         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6668 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6670         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6671         First cast argument to long
6672         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6673         Return long.
6674         (__vdso_clock_gettime): Likewise.
6675         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6676         return long.
6678 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6680         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6681         * locale/nl_langinfo_l.c: Real implementation, copied from
6682         nl_langinfo.c.
6683         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6685 2007-12-01  Jim Meyering  <meyering@redhat.com>
6687         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6688         that would inhibit utf8-optimization of a regexp containing line-
6689         or buffer-anchors, e.g., `^', `$'.
6691 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6693         * time/bug-getdate1.c (do_test): Don't use century values which
6694         aren't valid on 32-bit systems.
6696 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6698         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6699         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6700         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6701         __strcat_g, __strncat_g): Add __asm__.
6703 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6705         [BZ #5477]
6706         * io/fchmodat.c: Fix typo in stub_warning use.
6707         Patch by Petr Salinger.
6709 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6711         * iconvdata/hp-thai8.c: New file.
6712         * iconvdata/Makefile: Add rules for hp-thai8.c.
6713         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6714         * iconvdata/gconv-modules: Likewise.
6716         [BZ #5464]
6717         * iconvdata/hp-greek8.c: New file.
6718         * iconvdata/Makefile: Add rules for hp-greek8.c.
6719         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6720         * iconvdata/gconv-modules: Likewise.
6722         [BZ #5463]
6723         * iconvdata/hp-turkish8.c: New file.
6724         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6725         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6726         * iconvdata/gconv-modules: Likewise.
6728         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6729         (shrink_heap): ... this new function.
6730         (heap_trim): Call shrink_heap instead of grow_heap.
6732         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6733         case don't call alloc_perturb.
6735 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6737         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6738         possible.
6739         * sysdeps/unix/sysv/linux/kernel-features.h
6740         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6741         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6743 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6745         [BZ #5424]
6746         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6747         * stdio-common/Makefile (tests): Add bug22.
6748         * stdio-common/bug22.c: New file.
6750         [BZ #5451]
6751         * time/getdate.c: Fix filling in default values.
6752         * time/bug-getdate1.c: New file.
6753         * time/Makefile: Add rules to build and run bug-getdate1.
6755         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6756         * iconvdata/ebcdic-es.c: Likewise.
6757         * iconvdata/ebcdic-es-a.c: Likewise.
6758         * iconvdata/ebcdic-uk.c: Likewise.
6759         * iconvdata/iso8859-16.c: Likewise.
6760         * iconvdata/viscii.c: Likewise.
6761         * iconvdata/iso8859-9e.c: Likewise.
6762         * iconvdata/Makefile: Adjust appropriately.
6764         [BZ #5428]
6765         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6766         __need_wint_t.
6768 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6770         [BZ #5427]
6771         * iconvdata/hp-roman9.c: New file.
6772         * iconvdata/Makefile: Add rules for hp-roman9.c.
6773         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6774         * iconvdata/gconv-modules: Likewise.
6776         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6777         * iconvdata/Makefile: Adjust appropriately.
6779         [BZ #5441]
6780         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6781         structure, it's allocated with alloca.
6782         * stdio-common/Makefile (tests): Add bug21.
6783         * stdio-common/bug21.c: New file.
6785 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6787         [BZ #5452]
6788         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6789         keyword for gcc's braced-groups.
6791 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6793         [BZ #5454]
6794         * inet/ether_line.c: Strip hostname of whitespaces.
6795         * inet/Makefile (tests): Add tst-ether_line.
6796         * inet/tst-ether_line.c: New file.
6798 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6800         [BZ #5439]
6801         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6803         [BZ #5435]
6804         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6806         * stdlib/tst-setcontext.c: Catch the case where the links gets
6807         messed up and we do not reach main again.
6809         * po/ca.po: Update from translation team.
6811 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6813         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6814         * posix/regex.h (REG_ENOSYS): Likewise.
6815         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6817 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6819         * nscd/nscd.h (MAX_STACK_USE): Define.
6820         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6821         (gc): Initialize stack_used based on allocation in prune_cache.
6822         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6823         Clear array before use.
6825         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6826         memory allocation failed.
6827         * nscd/hstcache.c (cache_addhst): Likewise.
6828         * nscd/grpcache.c (cache_addgr): Likewise.
6829         * nscd/servicescache.c (cache_addserv): Likewise.
6830         * nscd/pwdcache.c (cache_addpw): Likewise.
6831         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6833 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6836         and creat system calls.
6838         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6840 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6842         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6843         Add netiucv/iucv.h.
6844         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6845         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6846         protocol.
6847         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6848         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6849         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6851 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6853         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6854         strncat): Define as macros to avoid compile errors.
6856         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6857         creat entries.
6859 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6861         [BZ #5382]
6862         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6863         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6864         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6865         overflow it.
6866         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6868         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6869         Return zero in case the thread library is not NPTL.
6871         [BZ #5375]
6872         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6873         initializing interface list.
6875         [BZ #5378]
6876         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6877         use result of nss_getgrgid_r if nothing was found.  For other
6878         error return with a failure.
6879         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6881         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6882         macro name.
6884 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6886         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6887         (get_scope): For IPv4 scope, use scopes table.
6888         (fini): Free scopes table if necessary.
6889         (free_scopelist): New function.
6890         (scopecmp): New function.
6891         (gaiconf_init): Also handle scopev4 entries.
6892         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6893         * posix/tst-rfc3484-2.c (do_test): Likewise.
6894         * posix/gai.conf: Document scopev4 defaults.
6895         * posix/Makefile (tests): Add tst-rfc3484-3.
6896         * posix/tst-rfc3484-3.c: New file.
6898         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6899         Teredo tunnels.
6900         * posix/gai.conf: Update for current default tables.
6902 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6904         * po/tr.po: Update from translation team.
6906 2007-11-18  Roland McGrath  <roland@frob.com>
6908         * manual/arith.texi (Remainder Functions): Spelling fix.
6909         From Shaun Silk <genix@mysoul.com.au>.
6911         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6913 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6915         * po/zh_CN.po: Update from translation team.
6917         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6918         Add sys/signalfd.h and sys/eventfd.h.
6920 2007-11-15  Bruno Haible  <bruno@clisp.org>
6922         [BZ #5346]
6923         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6924         union.
6925         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6926         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6927         it needs only fixed stack space. Delay the initialization of
6928         msgid_len until it is needed.
6930 2007-11-15  Andreas Jaeger  <aj@suse.de>
6932         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6933         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6935 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6937         * po/ko.po: Update from translation team.
6939 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6941         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6942         significantly.  The device type is also part of the ifinfomsg data.
6944         * po/sv.po: Update from translation team.
6945         * po/nl.po: Likewise.
6947         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6948         to wake up in 24 hours.
6950         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6952 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6954         * po/cs.po: Update from translation team.
6955         * po/pl.po: Likewise.
6957         * include/ifaddrs.h: Remove in6ai_temporary.
6958         (struct in6addrinfo): Add index element.
6959         Declare __check_native.
6960         * inet/Makefile (aux): Add check_native.
6961         * sysdeps/unix/sysv/linux/check_native.c: New file.
6962         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6963         IFA_F_TEMPORARY.  Pass back ifa_index.
6964         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6965         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6966         call __check_native if necessary.
6967         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6968         to sort addresses.  Pass information about the results.
6969         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6970         of rfc3484_sort interface.
6971         * posix/tst-rfc3484-2.c: Likewise.
6973         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6974         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6975         for _quicksort.
6976         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6977         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6978         on as third parameter to compare function and _quicksort.
6979         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6980         to the compare function.
6981         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6982         * Versions.def: Add GLIBC_2.8 for libc.
6984         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6985         * posix/tst-rfc3484-2.c: Likewise.
6987         * include/kernel-features.h: Moved to...
6988         * sysdeps/mach/hurd/kernel-features.h: ...here.
6990 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6992         * sysdeps/i386/i586/memcpy_chk.S: New file.
6993         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6994         * sysdeps/i386/i586/memset_chk.S: Likewise.
6996 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6998         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6999         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7000         list of interfaces.  Also store prefix length.
7001         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7002         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7003         prefix if source and destination address are in the same subnet.
7004         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7005         Always look for matching record in in6ai list.
7006         Correct source_addr_len value for IPv6->IPv4 converted records.
7008 2007-11-11  Roland McGrath  <roland@frob.com>
7010         * include/kernel-features.h: New file.
7012 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7014         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7015         complications for 64-bit platforms.
7017         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7018         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7019         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7020         open64_2.
7021         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7022         entries.
7023         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7024         * sysdeps/wordsize-64/alphasort.c: New file.
7025         * sysdeps/wordsize-64/alphasort64.c: New file.
7026         * sysdeps/wordsize-64/fseeko.c: New file.
7027         * sysdeps/wordsize-64/fseeko64.c: New file.
7028         * sysdeps/wordsize-64/ftello.c: New file.
7029         * sysdeps/wordsize-64/ftello64.c: New file.
7030         * sysdeps/wordsize-64/ftw.c: New file.
7031         * sysdeps/wordsize-64/ftw64.c: New file.
7032         * sysdeps/wordsize-64/iofgetpos.c: New file.
7033         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7034         * sysdeps/wordsize-64/iofopen.c: New file.
7035         * sysdeps/wordsize-64/iofopen64.c: New file.
7036         * sysdeps/wordsize-64/iofsetpos.c: New file.
7037         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7038         * sysdeps/wordsize-64/lockf.c: New file.
7039         * sysdeps/wordsize-64/lockf64.c: New file.
7040         * sysdeps/wordsize-64/mkostemp.c: New file.
7041         * sysdeps/wordsize-64/mkostemp64.c: New file.
7042         * sysdeps/wordsize-64/mkstemp.c: New file.
7043         * sysdeps/wordsize-64/mkstemp64.c: New file.
7044         * sysdeps/wordsize-64/scandir.c: New file.
7045         * sysdeps/wordsize-64/scandir64.c: New file.
7046         * sysdeps/wordsize-64/tmpfile.c: New file.
7047         * sysdeps/wordsize-64/tmpfile64.c: New file.
7048         * sysdeps/wordsize-64/versionsort.c: New file.
7049         * sysdeps/wordsize-64/versionsort64.c: New file.
7050         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7051         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7052         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7053         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7054         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7055         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7056         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7057         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7058         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7059         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7060         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7061         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7063         * crypt/sha256-crypt.c: Fix a comment.
7064         * crypt/sha512-crypt.c: Likewise.
7066 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7068         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7070 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7072         [BZ #5277]
7073         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7074         because output buffer is too small break, don't loop.
7075         * iconvdata/Makefile (tests): Add bug-iconv6.
7076         * iconvdata/bug-iconv6.c: New file.
7078 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7080         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7081         with size_t type.
7082         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7083         size_t.  Add casts where needed.
7085         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7086         old headers, don't call avc_has_perm if we don't have the
7087         permission information.
7089 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7091         * elf/rtld.c (dl_main): Use the page size to find the map start.
7093 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7095         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7096         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7098         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7099         when the lookup call failed.
7101         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7102         Add prune_cond and wakeup_time.
7103         (CACHE_PRUNE_INTERNAL): Define.
7104         Update declarations of prune_cache and setup_thread.
7105         * nscd/connections.c (dbs): Update initializers.
7106         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7107         (nscd_init): Default number of threads is now 4.
7108         (invalidate_cache): Take lock before calling prune_cache.
7109         (handle_request): If SELinux forbids the request, say so.
7110         (readylist_cond): Use static initializer.
7111         (nscd_run_prune): New function.  Used only by pruning threads.
7112         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7113         here.
7114         (fd_ready): Update nscd_run reference.
7115         (start_threads): No need to initialize readylist_cond.
7116         Start pruning threads separately.
7117         * nscd/nscd_setup_thread.c: Change return value type to int and always
7118         return 0.
7119         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7120         to int and return nonzero value if we can use the TID address hack.
7121         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7122         the database is later than the new entry's timeout, update the
7123         wakeup time and wake the cleanup thread.
7124         (prune_cache): Return seconds the next entry in the database is still
7125         valid.  Remove locking for pruning here.
7126         * nscd/nscd.conf: Document default number of threads.
7128 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7130         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7131         stack is properly aligned for the target function.
7132         Correct unwind info.
7134         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7135         when using auditing libraries.
7137 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7139         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7140         _nss_dns_getnetbyaddr2_r.
7141         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7142         extra parameter to getanswer_r.
7143         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7144         _nss_dns_getnetbyaddr2_r.
7146         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7147         gethstbynm3_r.
7148         * nscd/gethstbynm2_r.c: Remove.
7149         * nscd/gethstbynm3_r.c: New file.
7150         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7151         __gethostbyaddr_r.
7152         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7153         __gethostbyaddr_r compatibility wrapper.
7154         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7155         determining timeout of entry.
7156         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7157         __gethostbyaddr2_r.
7158         (addhstbyX): Pass reference to variable for TTL to lookup and
7159         cache_addhst.
7160         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7161         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7162         and __nss_next2.  Remove __nss_services_lookup.
7163         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7164         Add compat wrapper.
7165         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7166         __nss_next2.
7167         * nss/getXXent_r.c: Likewise.
7168         * nss/getnssent_r.c: Likewise.
7169         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7170         does not exist in module, try the optional second name.
7171         (__nss_next2): New function.
7172         (__nss_next): Now wrapper around __nss_next2.
7173         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7174         Declare __nss_next2.
7175         Adjust definition of db_lookup_function type.
7176         * nss/service-lookup.c: Define NO_COMPAT.
7177         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7178         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7179         * inet/ether_ntoh.c: Likewise.
7180         * sunrpc/netname.c: Likewise.
7181         * sunrpc/publickey.c: Likewise.
7182         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7183         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7184         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7185         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7186         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7188         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7190         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7192 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7194         [BZ #5204]
7195         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7196         * crypt/sha512c-test.c: Likewise.
7198         [BZ #5225]
7199         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7200         to keep track of end of %[ format string element.
7201         * stdio-common/Makefile (tests): Add bug20.
7202         * stdio-common/bug20.c: New file.
7204         [BZ #5222]
7205         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7206         path elements in counting mode.
7208 2007-10-27  Andreas Jaeger  <aj@suse.de>
7210         [BZ #5040]
7211         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7213         [BZ #3112]
7214         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7215         (__cleanup): Free shared library when exiting.
7216         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7217         (__cleanup): Free shared library when exiting.
7219 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7221         [BZ #2549]
7222         * math/libm-test.inc (check_float_internal): Support
7223         denormalized return.
7225 2007-10-23  Andreas Jaeger  <aj@suse.de>
7227         [BZ #5208]
7228         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7229         __LONG_LONG_PAIR to handle little endian byte order.
7230         Suggested by abhishekrai@google.com
7232 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7234         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7236 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7238         * nscd/cache.c (prune_cache): Move test for modified file outside
7239         of locking.
7241 2007-10-21  Andreas Jaeger  <aj@suse.de>
7243         * manual/texinfo.tex: Update to latest version.
7245         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7247         * manual/arith.texi (Status bit operations): Fix formatting.
7249         * manual/errno.texi (Error Messages): Fix formatting.
7251         * manual/sysinfo.texi (System Parameters): Fix formatting.
7253         * manual/libc.texinfo: Update VERSION and UPDATED.
7255 2007-10-19  Roland McGrath  <roland@redhat.com>
7257         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7259 2007-10-06  David S. Miller  <davem@davemloft.net>
7261         * configure.in: Add sparcv9v2 and sparc64v2.
7262         * scripts/config.sub: Likewise.
7263         * configure: Regenerate.
7264         * elf/elf.h (HWCAP_SPARC_N2): New.
7265         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7266         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7267         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7268         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7269         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7270         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7271         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7273 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7275         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7276         even if the poll result indicates there is data to read.
7277         Patch by Jeff Moyer <jmoyer@redhat.com>.
7279 2007-10-18  Roland McGrath  <roland@redhat.com>
7281         * elf/elf.h (NT_PPC_VMX): New macro.
7283 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7285         * version.h (VERSION): Set to 2.7.90.
7287 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7289         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7290         weak_alias.
7292 2007-10-17  Roland McGrath  <roland@frob.com>
7294         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7295         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7297 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7299         * version.h (VERSION): Bump to 2.7.
7300         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7302         [BZ #5186]
7303         * time/tzset.c (__tz_convert): Don't force testing for a change of
7304         TZ if not called from localtime.  But then also see whether the
7305         file changed, in case __use_tzfile is set.
7307         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7308         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7309         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7310         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7311         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7312         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7313         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7314         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7316 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7318         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7319         and admin selects to be able to replace the gai.conf file, lock
7320         data structures around the qsort call.
7322 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7324         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7325         new memset.
7326         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7327         too high for the improvements.  Implement bzero unconditionally for
7328         use in libc.
7330 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7331             Jakub Jelinek  <jakub@redhat.com>
7333         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7334         even when time_t is 32-bit.
7335         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7336         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7337         always set after the search.
7339 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7341         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7342         unreachable code on 32-bit machines.
7344 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7346         [BZ #5184]
7347         * time/strftime_l.c: Include stdbool.h.
7348         (my_strftime): New wrapper, old function renamed to...
7349         (__strftime_internal): ... new function.  Add tzset_called
7350         argument, pass it down to recursive calls, don't call tzset ()
7351         if already true, set to true after call to tzset ().
7353 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7355         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7356         into account when copying TZ string.
7358 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7360         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7361         num_transition rather than num_transitions - 1.
7363 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7365         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7366         PIC indirect jump.
7368         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7369         a local label rather than HIDDEN_JUMPTARGET.
7371 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7373         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7374         (init_cacheinfo): Initialize it.
7375         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7376         Always define bzero.
7377         Remove non-glibc code.
7378         * sysdeps/x86_64/bzero.S: Make an empty file.
7380 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7382         * sysdeps/x86_64/cacheinfo.c
7383         (__x86_64_preferred_memory_instruction): New.
7384         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7386         * sysdeps/x86_64/memset.S: Rewrite.
7388 2007-10-15  Roland McGrath  <roland@redhat.com>
7390         * po/libc.pot: Regenerated.
7392 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7394         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7395         pointers.
7397         [BZ #3425]
7398         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7399         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7400         address record to T_A/T_AAAA requests.
7402 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7404         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7406         * posix/glob.c: Add some branch prediction throughout.
7408         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7409         read from nscd.
7411         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7412         service_order.
7413         (rfc3484_sort): Make sure that even if qsort doesn't support
7414         stable sorting out sorting here is stable by comparing service_order.
7415         (getaddrinfo): Initialize service_order.
7416         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7417         service_order field to sorting structure.
7418         * posix/tst-rfc3484-2.c (do_test): Likewise.
7420         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7421         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7422         __tzset_parse_tz and updating of daylight, timezone, tzname into
7423         update_vars.
7424         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7425         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7426         happens in __tz_compute.
7427         * time/tzfile.c (__tzfile_read): Also read TZ string.
7428         (find_transition): Fold into __tzfile_compute.
7429         (__tzfile_compute): For times beyond the last transition try to
7430         use the TZ string.
7431         * timezone/tst-timezone.c: Information in daylight and tzname does
7432         change for Asia/Tokyo timezone with more concrete information.
7433         Remove the test.
7435         * include/stdio.h: Add libc_hidden_proto for ftello.
7436         * libio/ftello.c: Add libc_hidden_def.
7438         [BZ #1140]
7439         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7440         on the specified time and not the last entries in the file.  Move
7441         code to determine tzname[] to...
7442         (find_transition): ...here.  Add ugly guess for times before the
7443         first transition.
7445 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7447         [BZ #3195]
7448         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7449         no entry.
7450         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7451         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7452         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7453         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7455         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7456         read mechanism when there are no group members and avoid no-op
7457         read syscall in this case.
7459         [BZ #3242]
7460         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7461         (__readall): If reading failed due to EAGAIN error wait a bit
7462         and possibly try again.
7463         (__readvall): Likewise.
7465 2007-10-13  Bruno Haible  <bruno@clisp.org>
7467         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7468         when we cannot recode the message.
7470 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7472         [BZ #4359]
7473         * libio/__freading.c (__freading): Don't return true for
7474         write-only streams.  For read/write streams, check whether we
7475         performed a read operation already.
7476         * libio/Makefile (tests): Add tst-ext2.
7477         * libio/tst-ext2.c: New file.
7479 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7481         * locale/programs/repertoire.c (repertoire_read): Always free
7482         memory for repertoire file name [Coverity CID 270].
7484         * elf/cache.c (save_aux_cache): Free memory allocated for
7485         temporary file name [Coverity CID 267].
7487 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7489         * misc/Makefile (headers): Add bits/error.h.
7491 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7493         * posix/fnmatch_loop.c: Take rule index returned as part of
7494         findidx return value into account when accessing weights.
7495         * posix/regcomp.c: Likewise.
7496         * posix/regexec.c: Likewise.
7498         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7499         (skip_to): Fix problems with parameter of elifdef/elifndef.
7501 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7503         * iconv/gconv_simple.c: Add some branch prediction.
7505 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7507         * locale/programs/ld-collate.c (collate_read): If ignore_content
7508         and nowtok is tok_define, eat any tok_eol tokens.
7510 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7512         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7513         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7515         * inet/netinet/in.h: Don't include bits/socket.h.
7516         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7517         macro.
7518         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7520 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7522         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7523         and tok_elifndef.
7524         * locale/programs/locfile-kw.gperf: Likewise.
7525         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7527 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7529         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7530         (__find_specwc): Change into __extern_always_inline function.
7531         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7532         (__parse_one_specmb): Remove ps argument.
7533         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7534         Adjust __find_specmb and __parse_one_specmb callers.
7535         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7536         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7537         Removed.
7538         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7539         caller.
7541 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7543         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7544         with some Pentium Ds.
7546 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7548         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7549         __read not read.
7550         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7551         __write not write.
7553 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7555         [BZ #181]
7556         * locale/C-time.c: Set week_1stday data to 19971201.
7557         * locale/programs/ld-time.c (time_finish): Default for
7558         first_workday is Monday.
7560         [BZ #2633]
7561         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7563         [BZ #5103]
7564         * posix/glob.c (glob): Recognize patterns starting \/.
7565         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7566         (main): Add test for pattern starting \/.
7568         * misc/error.h: Use __const instead of const.
7569         * misc/bits/error.h: Likewise.
7571 2007-10-07  Andreas Jaeger  <aj@suse.de>
7573         * include/bits/error.h: New file.
7575         * misc/bits/error.h (error_at_line): Fix prototype.
7577 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7579         [BZ #3924]
7580         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7581         more little bugs in creating the stack frame when pltexit has to
7582         be called.
7584         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7585         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7587         [BZ #4407]
7588         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7589         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7590         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7591         * math/libm-test.inc: Add test for this case.
7593         [BZ #5010]
7594         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7595         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7596         map service succeeded.
7597         (svc_is_mapped): New function.
7598         (svc_unregister): Use it before trying to unmap service.
7600 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7602         * timezone/zic.c: Update from tzcode2007h.
7604         [BZ #5063]
7605         * timezone/africa: Update from tzdata2007h.
7606         * timezone/antarctica: Likewise.
7607         * timezone/asia: Likewise.
7608         * timezone/australasia: Likewise.
7609         * timezone/europe: Likewise.
7610         * timezone/leapseconds: Likewise.
7611         * timezone/northamerica: Likewise.
7612         * timezone/southamerica: Likewise.
7613         * timzeone/zone.tab: Likewise.
7615         [BZ #5104]
7616         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7618         [BZ #5113]
7619         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7620         avoid warning with -Wconversion.
7621         (__strndup): Likewise.
7622         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7624         [BZ #5112]
7625         * nscd/connections.c (restart): Don't resync if database is
7626         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7628         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7629         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7631         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7632         evetnfd_read, eventfd_write.
7633         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7634         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7635         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7636         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7637         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7638         eventfd_write for GLIBC_2.7.
7640         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7641         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7642         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7643         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7645 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7647         * stdlib/msort.c: Include stdint.h.
7648         (struct msort_param): New type.
7649         (msort_with_tmp): Use struct msort_param pointer for unchanging
7650         parameters.  Add optimized handling for several common sizes
7651         and indirect sorting mode.
7652         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7653         sorting.
7654         Suggested by Belazougui Djamel .
7656         * stdlib/Makefile (tests): Add tst-qsort2.
7657         * stdlib/tst-qsort2.c: New test.
7659 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7661         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7662         for dup2 in case another thread races with the current one.  Retry
7663         in this case.
7665         * misc/error.h: Remove support for use outside of libc.  We have to
7666         include <features.h> now.  Include <bits/error.h> if possible.
7667         * misc/bits/error.h: New file.
7669 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7671         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7672         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7673         __extern_always_inline functions unconditionally, drop macros.
7675         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7676         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7677         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7679         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7680         add __artificial__ attribute.
7682 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7684         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7685         backward to forward direction.
7687         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7689         [BZ #645]
7690         * locale/programs/ld-collate.c (collate_finish): Compare against last
7691         used section which is known to have rules defined.
7692         (collate_read): After order_start, correctly record order of sections
7693         and queue sections up.
7695 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7697         [BZ #5071]
7698         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7699         the same number of pages.
7700         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7702         * locale/programs/ld-collate.c (collate_read): After initial copy
7703         statement, continue in state 0.
7705         * include/stdio_ext.h (__fsetlocking): Define as macro.
7707 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7709         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7710         of section order.
7712         * po/pt_BR.po: Fix typo.
7714 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7716         * iconvdata/Makefile (modules): Add ISO8859-9E.
7717         (distribute): Add iso8859-9e.c.
7718         (gen-8bit-gap-modules): Add iso8859-9e.
7719         * iconvdata/iso8859-9e.c: New file.
7720         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7721         * iconvdata/TESTS: Likewise.
7722         * iconvdata/tst-tables.sh: Likewise.
7724         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7726         * locale/iso-639.def: Add several new entries.
7728 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7730         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7731         void * pointers instead of struct link_map **.
7732         (_dl_scope_free): Change argument type to void *.
7733         * include/link.h (struct link_map): Change type of l_reldeps
7734         to struct link_map_reldeps, move l_reldepsact into that
7735         struct too.
7736         * elf/dl-deps.c: Include atomic.h.
7737         (_dl_map_object_deps): Only change l->l_initfini when it is
7738         fully populated, use _dl_scope_free for freeing it.  Optimize
7739         removal of libs from reldeps by using l_reserved flag, when
7740         some removal is needed, allocate a new list instead of
7741         reallocating and free the old with _dl_scope_free.  Adjust
7742         for l_reldeps and l_reldepsact changes.
7743         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7744         searching in l_initfini and l_reldeps without holding dl_load_lock.
7745         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7746         l_reldepsact changes.
7747         * elf/dl-close.c (_dl_close_worker): Likewise.
7748         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7750 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7752         * iconvdata/Makefile (modules): Add KOI8-RU.
7753         (distribute): Add koi8-ru.c.
7754         (gen-8bit-gap-modules): Add koi8-ru.
7755         * iconvdata/koi8-ru.c: New file.
7756         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7757         * iconvdata/TESTS: Likewise.
7758         * iconvdata/tst-tables.sh: Likewise.
7760         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7762 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7764         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7765         with __warning__/__error__ attributes.
7766         (__warnattr): Define.
7767         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7768         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7769         __warnattr.
7770         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7771         of __*_chk if compile time detectable overflow is found.
7772         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7773         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7774         with __warnattr.
7775         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7776         instead of __*_chk if compile time detectable overflow is found.
7777         (__gets_alias): Rename to...
7778         (__gets_warn): ... this.  Add __warnattr.
7779         (gets): Call __gets_warn instead of __gets_alias.
7780         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7781         aliases with __warnattr.
7782         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7783         time detectable overflow is found.
7784         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7785         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7786         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7787         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7788         __getdomainname_chk_warn): New aliases with __warnattr.
7789         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7790         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7791         __*_chk_warn instead of __*_chk if compile time detectable overflow
7792         is found.
7793         (__getgroups_chk): Rename argument to __listlen from listlen.
7794         (__getwd_alias): Rename to...
7795         (__getwd_warn): ... this.  Add __warnattr.
7796         (getwd): Call __getwd_warn instead of __getwd_alias.
7797         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7798         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7799         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7800         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7801         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7802         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7803         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7804         compile time detectable overflow is found.
7805         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7806         to use __*_chk or not.
7807         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7808         in comparisons which function should be called and in __*_chk*
7809         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7810         detectable overflow is found.
7811         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7812         __*_chk argument.
7813         * debug/tst-chk1.c (do_test): Add a few more tests.
7815 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7817         [BZ #5058]
7818         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7819         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7820         (_nl_unload_domain): Finalize conversions_lock.
7821         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7822         handling table of known conversions.
7824 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7826         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7827         close_not_cancel_no_status instead of close.
7829 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7831         [BZ #5028]
7832         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7833         nrules != 0 for multibyte chars.
7835 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7837         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7838         Provide better error message in case the type is unknown.
7840         [BZ #4963]
7841         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7842         * string/stratcliff.c: Make usable to test wide char functions.
7843         * wcsmbs/wcsatcliff.c: New file.
7844         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7846         [BZ #4972]
7847         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7848         (distribute): Add mac-centraleurope.c.
7849         (gen-8bit-gap-modules): Add mac-centraleurope.
7850         * iconvdata/mac-centraleurope.c: New file.
7851         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7852         * iconvdata/TESTS: Likewise.
7853         * iconvdata/tst-tables.sh: Likewise.
7855         [BZ #5043]
7856         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7858 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7860         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7861         from __x86_64_core_cache_size_half.
7862         (init_cacheinfo): Compute shared cache size for AMD processors with
7863         shared L3 correctly.
7864         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7865         name change.
7866         Patch in large parts by Evandro Menezes.
7868 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7870         * elf/dl-lookup.c (add_dependency): Handle failing memory
7871         allocation for dependency list.  Remove unnecessary check.
7873         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7874         open/close when determining source addresses.
7876         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7877         sha512-crypt, and sha512.
7878         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7879         (distribute): Add sha256.h and sha512.h.
7880         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7881         and call the appropriate code.
7882         * crypt/sha256-crypt.c: New file.
7883         * crypt/sha256.c: New file.
7884         * crypt/sha256.h: New file.
7885         * crypt/sha256c-test.c: New file.
7886         * crypt/sha256test.c: New file.
7887         * crypt/sha512-crypt.c: New file.
7888         * crypt/sha512.c: New file.
7889         * crypt/sha512.h: New file.
7890         * crypt/sha512c-test.c: New file.
7891         * crypt/sha512test.c: New file.
7893 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7895         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7896         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7897         __syslog_chk.
7899 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7901         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7902         %as in fscanf format strings.
7904         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7905         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7906         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7907         Likewise.
7908         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7909         Likewise.
7911         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7912         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7913         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7914         * elf/dl-sym.c (do_sym): Likewise.
7915         * include/link.h (struct link_map): Add l_serial field.
7916         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7917         * elf/dl-lookup.c (add_dependency): Add flags argument.
7918         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7919         flags, use THREAD_GSCOPE_RESET_FLAG before and
7920         THREAD_GSCOPE_SET_FLAG after
7921         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7922         Don't dereference map until it has been found on some list.
7923         If map->l_serial changed, return -1.
7925 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7927         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7928         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7929         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7930         libc_hidden_proto.
7931         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7932         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7933         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7934         add libc_hidden_proto.
7935         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7936         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7937         conformance requested.
7938         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7939         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7940         conformance requested.
7941         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7942         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7943         conformance requested.
7944         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7945         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7946         ISO C99 or POSIX conformance requested.
7947         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7948         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7949         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7950         and __isoc99_vsscanf@@GLIBC_2.7.
7951         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7952         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7953         (tests): Add scanf14.
7954         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7955         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7956         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7957         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7958         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7959         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7960         from using internal headers.
7961         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7962         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7963         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7964         and __isoc99_vswscanf@@GLIBC_2.7.
7965         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7966         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7967         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7968         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7969         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7970         * stdio-common/isoc99_scanf.c: New file.
7971         * stdio-common/isoc99_vsscanf.c: New file.
7972         * stdio-common/isoc99_vscanf.c: New file.
7973         * stdio-common/isoc99_vfscanf.c: New file.
7974         * stdio-common/isoc99_fscanf.c: New file.
7975         * stdio-common/isoc99_sscanf.c: New file.
7976         * wcsmbs/isoc99_fwscanf.c: New file.
7977         * wcsmbs/isoc99_vswscanf.c: New file.
7978         * wcsmbs/isoc99_swscanf.c: New file.
7979         * wcsmbs/isoc99_wscanf.c: New file.
7980         * wcsmbs/isoc99_vwscanf.c: New file.
7981         * wcsmbs/isoc99_vfwscanf.c: New file.
7982         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7983         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7984         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7985         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7986         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7987         * stdio-common/scanf14.c: New test.
7988         * stdio-common/scanf15.c: New test.
7989         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7990         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7991         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7992         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7993         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7994         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7995         __nldbl___isoc99_scanf@@GLIBC_2.7,
7996         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7997         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7998         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7999         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8000         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8001         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8002         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8003         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8004         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8005         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8006         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8007         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8008         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8009         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8010         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8011         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8012         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8013         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8014         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8015         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8016         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8017         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8018         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8019         functions.
8020         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8021         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8022         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8023         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8024         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8025         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8026         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8027         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8028         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8029         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8030         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8031         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8033         * stdio-common/Makefile (tests): Add scanf13.
8034         (scanf13-ENV): New.
8035         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8036         m modifier followed by l.
8037         (STRING_ARG): Add width argument.
8038         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8039         <case L_('C')>: Handle %mlc and %mC.
8040         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8041         arguments.
8042         * stdio-common/scanf13.c: New test.
8044         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8045         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8047 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8049         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8050         type and __THROW marker of splice, vmsplice, and tee.
8051         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8052         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8053         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8054         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8055         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8056         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8057         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8058         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8059         as cancellation points.
8061 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8063         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8064         parse more than three parts of the version number.
8066 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8068         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8069         modifier.  Patch by Jakub Jelinek.
8071 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8073         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8074         call_fallocate in misc subdir.
8075         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8076         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8077         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8078         instead of __fallocate64.
8079         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8081 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8083         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8084         * rt/Makefile (headers): Add bits/mqueue2.h.
8085         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8086         optimizing with GCC and __va_arg_pack_len is defined.
8087         * rt/bits/mqueue2.h: New file.
8088         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8089         (mq_open): New strong_alias.
8090         (__mq_open_2): New function.
8091         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8092         (mq_open): New strong_alias.
8093         (__mq_open_2): New function.
8094         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8095         * Versions.def (librt): Add GLIBC_2.7 version.
8096         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8097         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8099         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8100         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8101         is defined rather than when not C++.
8102         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8103         __openat64_alias): New redirects.
8104         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8105         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8106         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8107         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8108         functions instead of function-like macros.
8110 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8112         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8113         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8114         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8116 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8118         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8119         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8121 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8123         * inet/tst-network.c: Increment ERRORS for failing tests.
8125 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8127         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8128         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8129         implement as __extern_always_inline function.
8130         (vsyslog): Define as __extern_always_inline function unconditionally.
8131         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8132         When __va_arg_pack is defined, implement as __extern_always_inline
8133         functions.
8134         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8135         __extern_always_inline functions unconditionally.
8136         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8137         bits/stdio2.h will be included.
8138         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8139         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8140         implement as __extern_always_inline functions.
8141         (vswprintf, vwprintf, vfwprintf): Define as
8142         __extern_always_inline functions unconditionally.
8143         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8145 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8147         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8148         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8149         attribute.
8150         * include/features.h (__USE_EXTERN_INLINES): Define only when
8151         __extern_inline is defined.
8152         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8153         is defined instead of when not __cplusplus.
8154         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8155         is defined instead of when not __cplusplus.
8156         * socket/sys/socket.h: Include bits/socket2.h when
8157         __extern_always_inline is defined instead of when not __cplusplus.
8158         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8159         is defined instead of when not __cplusplus.
8160         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8161         is defined instead of when not __cplusplus.
8162         * string/string.h: Include bits/string3.h when __extern_always_inline
8163         is defined instead of when not __cplusplus.
8164         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8165         is defined instead of when not __cplusplus.
8166         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8167         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8168         is not defined.
8169         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8170         defined __extern_always_inline instead of !defined __cplusplus.
8171         * libio/bits/stdio-ldbl.h: Likewise.
8172         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8173         * misc/bits/syslog.h (syslog): Don't define for C++.
8174         (vsyslog): Use __extern_always_inline function for C++ instead of
8175         a macro.
8176         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8177         whenever that macro is defined.
8178         (vprintf): Don't provide the inline for C++.
8179         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8180         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8181         define the macros for C++.
8182         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8183         __extern_always_inline functions for C++.
8184         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8185         stat64, lstat64, fstat64, fstatat64): Don't define if not
8186         __USE_EXTERN_INLINES.
8187         * wcsmbs/bits/wchar2.h: Fix #error message.
8188         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8189         (vswprintf, vwprintf, vfwprintf): Define using
8190         __extern_always_inline functions for C++.
8191         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8192         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8193         strncpy, strcat, strncat): Define as __extern_always_inline
8194         functions instead of macros for C++.
8195         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8196         defined __extern_inline.
8197         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8198         to __extern_inline whenever that macro is defined.
8199         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8200         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8201         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8202         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8203         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8204         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8205         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8206         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8207         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8208         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8209         prototypes.  Only provide __extern_inline routines if
8210         __USE_EXTERN_INLINES.
8211         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8212         tests.
8213         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8214         For now avoid some *printf tests in C++.  Skip all testing
8215         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8216         is not.
8217         * debug/tst-chk4.cc: New file.
8218         * debug/tst-chk5.cc: New file.
8219         * debug/tst-chk6.cc: New file.
8220         * debug/tst-lfschk4.cc: New file.
8221         * debug/tst-lfschk5.cc: New file.
8222         * debug/tst-lfschk6.cc: New file.
8223         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8224         prototypes in C++.
8225         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8226         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8227         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8229 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8231         * po/cs.po: Update from translation team.
8233 2007-09-11  Roland McGrath  <roland@redhat.com>
8235         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8236         compiling.
8238 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8240         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8242 2007-09-05  Roland McGrath  <roland@redhat.com>
8244         * manual/signal.texi (Signaling Another Process): Typo fix.
8245         From Karl Berry <karl@freefriends.org>.
8247 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8249         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8250         zero if not defined.
8251         (make_request): Recognize optimistic addresses and treat them like
8252         deprecated addresses.
8253         Reported by Neil Horman <nhorman@redhat.com>.
8255 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8257         * nscd/connections.c (send_ro_fd): Also transfer file size.
8258         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8259         file size don't call fstat.
8261         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8262         ahead and map the file.  This should always be correct and we can
8263         catch problems later.
8265 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8267         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8268         prototypes.
8269         (__fread_alias, __fread_unlocked_alias): New aliases.
8270         (fread): New extern inline.
8271         (fread_unlocked): Likewise.  Undef macro before definition of
8272         the inline function.
8273         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8274         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8275         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8276         and __fread_unlocked_chk@@GLIBC_2.7.
8277         * debug/fread_chk.c: New file.
8278         * debug/fread_u_chk.c: New file.
8279         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8281 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8283         * sysdeps/unix/sysv/linux/syscalls.list
8284         (personality): Change caller to EXTRA.
8286 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8288         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8289         to keep gcc quiet.
8290         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8292         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8293         NDEBUG is defined.
8295         * Makerules: Use -p option with mkdir.
8297         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8298         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8299         (_xdr_directory_obj): Likewise.
8300         (xdr_entry_obj): Likewise.
8301         (xdr_group_obj): Likewise.
8302         (xdr_link_obj): Likewise.
8303         (xdr_table_obj): Likewise.
8304         (_xdr_nis_result): Likewise.
8305         (_xdr_ns_request): Likewise.
8306         (_xdr_ib_request): Likewise.
8307         (_xdr_nis_taglist): Likewise.
8308         (xdr_cback_data): Likewise.
8309         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8310         (xdr_ypresp_maplist): Likewise.
8312         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8314         * posix/regex_internal.h: Prevent some declarations and definitions
8315         to be seen when used in tests.
8317         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8318         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8320         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8322         * config.make.in (datarootdir): Add to shut up configure.
8324         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8325         associativity for fully-associative caches.
8327         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8328         requests.  Fill on more associativity values for L2.
8329         Patch mostly by Evandro Menezes.
8331 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8333         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8334         (_libc_vdso_platform_setup): Avoid using exported variable by using
8335         alias.
8337         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8339         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8340         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8341         defined.
8343 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8345         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8346         align stack for call if pltexit is to be used.
8348         [BZ #3924]
8349         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8350         align for function call in case pltexit has to be called later.
8352         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8353         implicit atomic operation when storing function pointer.
8354         (_dl_runtime_profile): Likewise.
8356 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8358         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8359         NIS_NOTFOUND.
8361 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8363         [BZ #4566]
8364         * string/strtok.c: Fix typo in comment.
8366         [BZ #4582]
8367         * debug/segfault.c: Fix typos in comments.
8369         [BZ #4588]
8370         * stdio-common/tempnam.c: Fix comment, it is not checked that
8371         TMPDIR points to a writable directory.
8373         [BZ #4726]
8374         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8375         memory allocated for the name server address.
8377         [BZ #4946]
8378         * nscd/connections.c (handle_request): Using sendfile always
8379         requires that mmap is used for the database.
8380         Patch by Petr Baudis <pasky@suse.cz>.
8382         [BZ #4905]
8383         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8384         suddenly has two or more addresses, ignore it and remove the old
8385         entry.
8387         [BZ #4814]
8388         * resolv/res_hconf.c: Prepare for compiling outside libc.
8389         * nscd/res_hconf.c: New file.
8390         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8391         the new file.
8392         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8393         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8395         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8397         [BZ #4925]
8398         * debug/pcprofiledump.c: Turn on internationalization by calling
8399         setlocale.  Patch mostly by Benno Schulenberg.
8401         [BZ #4936]
8402         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8403         the state.
8404         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8405         * iconvdata/bug-iconv5.c: New file.
8407 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8409         [BZ #4896]
8410         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8411         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8412         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8413         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8414         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8415         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8416         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8417         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8419 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8421         [BZ #4937]
8422         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8423         lookup loop.  Suggested by John Reiser.
8425 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8427         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8429 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8431         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8432         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8433         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8434         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8435         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8436         to...
8437         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8439 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8441         * po/nl.po: Update from translation team.
8443 2007-08-16  Andreas Jaeger  <aj@suse.de>
8445         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8446         Reported by Peter Festner <peter.festner@ewetel.net>.
8448 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8450         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8452 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8454         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8455         to check for undefined symbols.
8457         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8458         If the syscall fails, set errno to the actual returned error number
8459         rather than EINVAL.
8460         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8461         arguments are incorrect, set errno to EINVAL, if the syscall
8462         fails, set errno to the actual returned error number.
8464         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8465         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8467         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8468         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8469         file.
8470         (ASI_PNF, ASI_BLK_P): Don't define.
8471         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8472         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8473         file.
8474         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8475         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8476         file.
8478 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8480         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8481         FE_UNDERFLOW on Niagara CPUs.
8483         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8484         exceptions.
8486 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8488         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8489         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8490         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8491         flush should be used or not inside of the function.
8492         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8494         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8495         __thread_start): Use HIDDEN_JUMPTARGET.
8496         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8497         __thread_start): Likewise.
8498         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8500         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8501         Add libc_hidden_proto.
8502         (STRTOF): Add libc_hidden_proto.
8503         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8504         (strtold_l, wcstold_l): Use them as second argument for
8505         long_double_symbol.
8507 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8509         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8511 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8513         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8515 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8517         * po/bg.po: New file.  From the translation team.
8519 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8521         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8522         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8523         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8524         when each feature was introduced.
8526         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8527         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8528         (CHECK_HASH): New macro.
8529         (PREPARE_VERSION): Use it.
8531         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8532         prototype if not __ASSUME_PSELECT.
8533         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8534         prototype if not __ASSUME_PPOLL.
8536         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8538         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8539         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8540         is defined.
8542 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8544         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8545         (_libc_vdso_platform_setup): If vDSO is not available point
8546         __vdso_gettimeofday to the vsyscall.
8547         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8548         __vdso_gettimeofday instead of vsyscall.
8550 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8552         * nscd/servicescache.c: Include kernel-features.h.
8553         * nscd/gai.c: Likewise.
8554         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8555         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8556         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8557         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8558         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8559         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8560         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8561         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8562         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8564 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8566         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8567         and _dl_get_origin defines anymore.
8569         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8570         Build fix for systems which might lack POSIX timer support.
8572         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8573         (_libc_vdso_platform_setup): Mangle function pointers before storing
8574         them.
8575         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8576         Demangle vdso pointer before use.
8577         (INTERNAL_VSYSCALL): Likewise.
8579         * elf/cache.c (primes): Mark as const.
8580         Noted by Roland McGrath.
8582 2007-08-01  Andreas Jaeger  <aj@suse.de>
8583             Jakub Jelinek  <jakub@redhat.com>
8585         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8586         (options): Add option.
8587         (parse_opt): Handle option.
8588         (manual_link): Adjust process_file caller.  Call implicit_soname.
8589         (search_dir): Formatting.  Use and populate auxiliary cache.
8590         (main): Load and save auxiliary cache.
8591         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8592         stat64 from fstat64 to caller.
8593         (implicit_soname): New function.
8594         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8595         leave *soname as NULL.
8596         * elf/cache.c: Include libgen.h.
8597         (print_entry, print_cache, compare, save_cache, add_to_cache):
8598         Formatting and cleanups.
8599         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8600         aux_cache_file): New structures.
8601         (AUX_CACHEMAGIC): Define.
8602         (primes): New array.
8603         (aux_hash_size, aux_hash): New variables.
8604         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8605         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8606         load_aux_cache, save_aux_cache): New functions.
8607         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8608         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8609         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8610         (process_file): Adjust prototype.
8612 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8614         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8615         with __need_size_t.
8617 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8619         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8620         r_found_version structure as second parameter.
8621         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8622         (_dl_vdso_vsym): Change type of second parameter accordingly.
8623         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8624         (_libc_vdso_platform_setup): Adjust.
8625         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8626         (_libc_vdso_platform_setup): Likewise.
8628         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8629         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8630         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8631         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8632         * csu/libc-start.c: Pretty printing.
8633         Use VDSO_SETUP if defined.
8634         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8635         and let generic code call into _libc_vdso_platform_setup.
8636         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8637         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8638         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8639         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8640         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8641         for GLIBC_PRIVATE.
8642         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8643         (sysdep_rountines): Add dl-vdso.
8645         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8646         of routines.
8648         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8649         attribute_hidden to __vdso_gettimeofday prototype.
8651 2007-08-12  Roland McGrath  <roland@redhat.com>
8653         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8654         From: Karl Berry <karl@freefriends.org>.
8656 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8658         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8659         an atime update for the files we read.
8661 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8663         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8665         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8666         instead of mkstemp.
8668         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8669         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8670         * misc/mkostemp.c: New file.
8671         * misc/mkostemp64.c: New file.
8672         * stdlib/stdlib.h: Declare the new functions.
8673         * sysdeps/posix/tempname.c: Add new parameter which is added to
8674         the flags for open.  Remove __GT_BIGFILE handling.
8675         * stdio-common/tempname.c: Likewise.
8676         * include/stdio.h: Adjust __gen_tempname prototype.
8677         Renumber __GT_* constants.
8678         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8679         * misc/mkdtemp.c: Likewise.
8680         * misc/mkstemp.c: Likewise.
8681         * misc/mkstemp64.c: Likewise.
8682         * misc/mktemp.c: Likewise.
8683         * stdio-common/tempnam.c: Likewise.
8684         * stdio-common/tmpfile.c: Likewise.
8685         * stdio-common/tmpfile64.c: Likewise.
8686         * stdio-common/tmpnam.c: Likewise.
8687         * stdio-common/tmpnam_r.c: Likewise.
8689 2007-08-10  Roland McGrath  <roland@frob.com>
8691         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8692         New macros.
8693         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8694         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8696 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8698         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8699         possible.
8700         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8701         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8702         * nss/nss_files/files-have_o_cloexec.c: New file.
8704         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8705         available.
8707 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8709         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8710         ___new_wcstold_l): New weak aliases.
8711         (strtold_l, wcstold_l): Use them as second argument for
8712         long_double_symbol.
8714 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8716         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8717         register in test for error.
8719         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8720         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8722         * po/sv.po: Update from translation team.
8724 2007-08-06  Roland McGrath  <roland@redhat.com>
8726         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8727         Remove __strto*_l inlines.
8728         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8729         * stdlib/strtod.c: Add libc_hidden_def.
8730         * stdlib/strtod_l.c: Likewise.
8731         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8732         for __new_strtold and __new_wcstold.
8733         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8734         __STRTOF, STRTOF.
8735         * stdlib/strtol.c: Add libc_hidden_def.
8736         * stdlib/strtol_l.c: Likewise.
8737         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8738         strtoq.
8740         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8742         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8743         * scripts/data/localplt-generic.data: ... here.
8744         * elf/Makefile (check-data): Get generic file if no other.
8745         ($(objpfx)check-localplt.out): Make target unconditional.
8747         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8748         Use ElfW(Nhdr).
8750 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8752         * po/zh_CN.po: Updated translation from translation team.
8754 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8757         Don't use CGOTSETUP and CGOTRESTORE macros.
8759 2007-08-04  Roland McGrath  <roland@redhat.com>
8761         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8763 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8765         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8766         __extension__ around the whole statement expression.
8768 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8770         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8771         elements during initialization.
8773         * po/pl.po: Updated translation from translation team.
8774         * po/tr.po: Likewise.
8775         * po/nl.po: Likewise.
8777 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8779         * rt/aio.h: Add __nonnull attributes.
8781 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8783         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8784         * stdlib/Makefile (tests): Add tst-strtod5.
8785         (tst-strtod5-ENV): New.
8786         * stdlib/tst-strtod5.c: New file.
8788         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8789         failed.
8790         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8791         on failure.
8793         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8794         allocated.
8796 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8798         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8799         numbers.
8801 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8803         * io/Makefile (aux): Add have_o_cloexec.
8804         * include/fcntl.h: Declare __have_o_cloexec.
8805         * io/have_o_cloexec.c: New file.
8806         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8807         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8808         fcntl call if not necessary.
8809         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8810         of local variable.
8812         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8813         Avoid memset, add explicit initialization.
8814         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8815         to the end and change into zero-sized array.
8816         Move lock member to fill a hole on 64-bit platforms.
8818         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8819         inline functions.
8820         * include/stdlib.h: Add __strto*_internal prototypes here.
8821         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8822         inline functions.
8823         * include/wchar.h: Add __wcsto*_internal prototypes.
8824         * sysdeps/generic/inttypes.h: No need to protect the declaration
8825         of the __strto*_internal and __wcsto*_internal members here.
8827         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8829 2007-08-02  Roland McGrath  <roland@redhat.com>
8831         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8832         $(inst_bindir)/getconf if possible.
8834         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8835         (generated): Add it.
8836         ($(inst_libexecdir)/getconf): Use it.
8838 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8840         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8841         /proc is faster and sufficient.  /sys is still needed for
8842         __get_nprocs_conf.
8844 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8846         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8847         syscall as __fallocate64.
8848         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8849         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8851 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8853         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8854         value.
8856         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8857         if off_t is different rank from size_t.
8859         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8860         uw_frame_state_for): Avoid type punning warnings.
8861         * sysdeps/generic/unwind-dw2-fde-glibc.c
8862         (_Unwind_IteratePhdrCallback): Likewise.
8863         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8864         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8865         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8866         pointers.
8868 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8870         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8871         total processors using sysfs.
8872         (__get_nprocs): Use sysfs to determine which processors are online.
8874 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8876         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8877         syscall arguments count.
8879         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8881 2007-07-30  Roland McGrath  <roland@redhat.com>
8883         * manual/libc.texinfo: Update copyrights, formatting magic, and
8884         @dircategory.  From Karl Berry <karl@freefriends.org>.
8886 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8888         [BZ #4860]
8889         * io/Makefile (headers): Add bits/fcntl2.h.
8891         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8892         using gcc builtin.
8893         (__CPU_EQUAL_S): Likewise.
8895         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8896         (tests): Add tst-cpuset.
8897         * posix/sched_cpualloc.c: New file.
8898         * posix/sched_cpufree.c: New file.
8899         * posix/tst-cpuset.c: New file.
8900         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8901         GLIBC_2.7.
8902         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8903         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8904         macros.  Define CPU_*_S macros.
8906 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8908         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8909         entry.
8911         [BZ #4858]
8912         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8913         #.0g and value rounded to 1.0.
8914         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8916 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8918         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8919         for int_frac_digits and frac_digits.
8921         * login/logout.c (logout): Avoid aliasing violation.
8922         * login/logwtmp.c (logwtmp): Likewise.
8924         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8926         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8927         to avoid warning.
8928         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8929         warning.
8930         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8931         warning.
8932         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8933         to avoid warnings.
8935         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8936         void **.
8937         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8939         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8940         char * to avoid warning.
8941         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8943         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8945         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8946         allocate_arrays): Cast second argument to charmap_find_symbol
8947         to char * to avoid warnings.
8949         * locale/programs/repertoire.c (repertoire_new_char): Change
8950         from_nr, to_nr and cnt to unsigned long, adjust printf format
8951         string.
8953         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8954         Cast second argument to new_element to char * to avoid warnings.
8956         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8958         * intl/gettextP.h (struct loaded_domain): Change plural to const
8959         struct expression *.
8960         * intl/plural-eval.c (plural_eval): Change first argument to
8961         const struct expression *.
8962         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8963         argument to const struct expression **.
8964         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8965         prototypes.
8966         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8967         in call to __gettext_free_exp.
8969         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8970         unitialized wstring/wpattern var warnings.
8972         * posix/runtests.c (struct a_test): Make data field const char *.
8974         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8975         vars if not LDBL_MANT_DIG >= 106.
8977         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8979         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8980         __find_specmb to avoid warning.
8982         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8984         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8985         to avoid warnings.
8987         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8988         initializer.
8990         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8991         tv var when it will be actually used.
8993         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8994         to avoid warnings.
8996         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8997         char array resp. pointer.
8998         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8999         char array.
9000         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9001         to const unsigned char **.
9002         (ucs4_to_cns11643): Change second argument to unsigned char *.
9003         * iconvdata/euc-tw.c (BODY): Change endp type to
9004         const unsigned char *.
9005         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9006         to unsigned char *.
9007         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9008         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9009         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9010         types to unsigned char pointers/arrays instead of char.
9011         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9012         to unsigned char *.
9013         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9014         * iconvdata/jis0212.h: Include assert.h.
9015         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9016         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9017         of trying to handle that.
9018         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9019         shut up a warning.
9020         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9021         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9022         two dimensional const unsigned char arrays.
9023         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9024         Initialize endp to inptr to shut up a warning.
9026 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9028         [BZ #4772]
9029         * time/strptime_l.c (__strptime_internal): Silently ignore
9030         strftime modifiers and field width in recursive calls.
9032         * include/time.h (enum ptime_locale_status): Remove.
9033         (__strptime_internal): Remove decided and era_cnt arguments,
9034         add statep argument.
9035         * time/strptime_l.c (__strptime_internal): Remove decided
9036         and era_cnt arguments, add statep argument.  Don't recompute
9037         any fields in recursive calls, only update caller's tm
9038         and state, if recursive call fails, don't change tm nor
9039         any state.
9040         (get_alt_number): Adjust.
9041         (recursive): Adjust caller.
9042         (strptime): Likewise.
9043         * time/strptime.c (strptime): Likewise.
9045 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9047         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9048         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9049         if from and to charsets are the same.
9050         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9051         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9052         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9054 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9056         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9057         Don't define wint_t when __need_mbstate_t unless it
9058         is necessary.
9059         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9060         in the typedef if possible.
9061         * wctype/wctype.h (wint_t): Define by including
9062         wchar.h with __need_wint_t instead of including stddef.h
9063         with __need_wint_t and as fallback definining it ourselves.
9064         * iconv/gconv.h (__need_wint_t): Define before including
9065         wchar.h.
9066         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9067         or _GLIBCPP_USE_WCHAR_T.
9068         (__need_wchar_t): Don't define
9069         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9070         (__need_wint_t): Don't define before including stddef.h,
9071         define before including wchar.h only if _LIBC or
9072         _GLIBCPP_USE_WCHAR_T.
9073         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9074         * sysdeps/mach/hurd/_G_config.h: Likewise.
9075         * sysdeps/generic/_G_config.h: Likewise.
9076         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9077         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9078         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9079         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9081 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9083         * sysdeps/posix/posix_fallocate64.c: Undefine
9084         __posix_fallocate64_l64 before alias handling.
9085         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9086         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9087         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9088         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9090         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9092 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9094         * locale/programs/ld-collate.c (atwc): New variable.
9095         (add_to_tablewc): New toplevel function, moved from collate_output.
9096         (collate_output): Remove add_to_tablewc nested function.
9098         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9099         (name_insert): New function.
9100         (write_output): Remove hash_table and hash_size vars and name_insert
9101         nested function.
9103 2007-07-24  Roland McGrath  <roland@redhat.com>
9105         * Makerules (install-others-programs-nosubdir): New target.
9106         (install-no-libc.a-nosubdir): Depend on it.
9108         * iconv/Makefile (install-others-programs): Set this instead of
9109         install-others.
9110         * login/Makefile (install-others-programs): Likewise.
9111         * posix/Makefile (install-others-programs): Likewise.
9113         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9114         dependencies.
9116 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9118         * io/Makefile (tests): Add tst-posix_fallocate.
9119         * io/tst-posix_fallocate.c: New file.
9121         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9122         __ASSUME_FALLOCATE.
9124 2007-07-22  Roland McGrath  <roland@frob.com>
9126         * hurd/getdport.c: Add missing copyright year update.
9128         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9129         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9131 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9133         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9135         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9136         O_CLOEXEC is needed.
9137         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9138         Avoid additional fcntl to set O_CLOEXEC if not needed.
9139         * nis/nss_compat/compat-initgroups.c: Likewise.
9140         * nis/nss_compat/compat-pwd.c: Likewise.
9141         * nis/nss_compat/compat-spwd.c: Likewise.
9143 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9145         [BZ #3665]
9146         * manual/errno.texi: Change ECANCELED value to 119.
9148         [BZ #4610]
9149         * mach/lock-intern.h: Include <sys/cdefs.h>.
9151         [BZ #4178]
9152         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9153         reading A.
9155         [BZ #4126]
9156         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9157         to __sigsuspend.
9159         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9161 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9163         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9164         `__ASSEMBLER__'.
9165         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9167 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9169         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9170         descriptor received from nscd.
9172         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9174         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9175         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9176         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9177         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9178         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9179         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9181 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9183         [BZ #4816]
9184         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9186         [BZ #4813]
9187         * login/forkpty.c (forkpty): Close master and slave fds on
9188         fork failure.  Patch by
9189         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9191 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9193         * include/features.h (__USE_ISOC95): New define.
9194         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9195         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9196         for -std=iso9899:199409.
9197         * CONFORMANCE: Remove comments about unsupported AMD1.
9199 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9201         * sysdeps/ia64/sched_cpucount.c: New file.
9202         * sysdeps/powerpc/sched_cpucount.c: New file.
9204         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9205         __BEGIN_DECLS/__END_DECLS around the prototype.
9206         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9207         pointer to const cpu_set_t.
9209         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9210         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9211         __need_size_t and include stddef.h.
9212         * sysvipc/sys/msg.h: Likewise.
9213         * posix/sched.h: Likewise.
9214         * hurd/hurd/signal.h (__need_size_t): Define.
9216         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9217         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9218         no longer defines wint_t or wchar_t.
9220         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9221         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9222         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9223         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9224         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9225         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9226         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9227         * debug/printf_chk.c (__printf_chk): Likewise.
9228         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9229         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9231         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9232         Define.
9234         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9235         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9237 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9239         [BZ #4792]
9240         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9241         * malloc/malloc.h (realloc): Likewise.
9243         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9244         if one of proc_file_chain streams has that fileno.
9245         * stdio-common/Makefile (tests): Add tst-popen2.
9246         * stdio-common/tst-popen2.c: New test.
9248 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9250         * elf/ldconfig.c: Allow GPLv2 or any later version.
9251         * elf/readlib.c: Likewise.
9252         * elf/chroot_canon.c: Likewise.
9253         * elf/cache.c: Likewise.
9254         * nscd/mem.c: Likewise.
9255         * nscd/getpwuid_r.c: Likewise.
9256         * nscd/grpcache.c: Likewise.
9257         * nscd/aicache.c: Likewise.
9258         * nscd/getsrvbynm_r.c: Likewise.
9259         * nscd/nscd.c: Likewise.
9260         * nscd/servicescache.c: Likewise.
9261         * nscd/getsrvbypt_r.c: Likewise.
9262         * nscd/initgrcache.c: Likewise.
9263         * nscd/gethstbyad_r.c: Likewise.
9264         * nscd/gethstbynm2_r.c: Likewise.
9265         * nscd/getgrnam_r.c: Likewise.
9266         * nscd/nscd_setup_thread.c: Likewise.
9267         * nscd/getpwnam_r.c: Likewise.
9268         * nscd/gai.c: Likewise.
9269         * nscd/connections.c: Likewise.
9270         * nscd/dbg_log.c: Likewise.
9271         * nscd/cache.c: Likewise.
9272         * nscd/hstcache.c: Likewise.
9273         * nscd/nscd_conf.c: Likewise.
9274         * nscd/getgrgid_r.c: Likewise.
9275         * nscd/pwdcache.c: Likewise.
9276         * catgets/gencat.c: Likewise.
9277         * locale/programs/linereader.h: Likewise.
9278         * locale/programs/locarchive.c: Likewise.
9279         * locale/programs/ld-paper.c: Likewise.
9280         * locale/programs/locfile-kw.h: Likewise.
9281         * locale/programs/ld-address.c: Likewise.
9282         * locale/programs/xmalloc.c: Likewise.
9283         * locale/programs/ld-time.c: Likewise.
9284         * locale/programs/localedef.c: Likewise.
9285         * locale/programs/simple-hash.c: Likewise.
9286         * locale/programs/xstrdup.c: Likewise.
9287         * locale/programs/ld-numeric.c: Likewise.
9288         * locale/programs/locfile-kw.gperf: Likewise.
9289         * locale/programs/ld-collate.c: Likewise.
9290         * locale/programs/charmap-kw.gperf: Likewise.
9291         * locale/programs/charmap.h: Likewise.
9292         * locale/programs/charmap-kw.h: Likewise.
9293         * locale/programs/config.h: Likewise.
9294         * locale/programs/locfile.c: Likewise.
9295         * locale/programs/ld-ctype.c: Likewise.
9296         * locale/programs/charmap.c: Likewise.
9297         * locale/programs/ld-messages.c: Likewise.
9298         * locale/programs/repertoire.h: Likewise.
9299         * locale/programs/locale.c: Likewise.
9300         * locale/programs/ld-name.c: Likewise.
9301         * locale/programs/linereader.c: Likewise.
9302         * locale/programs/locfile.h: Likewise.
9303         * locale/programs/3level.h: Likewise.
9304         * locale/programs/ld-monetary.c: Likewise.
9305         * locale/programs/ld-measurement.c: Likewise.
9306         * locale/programs/charmap-dir.c: Likewise.
9307         * locale/programs/ld-identification.c: Likewise.
9308         * locale/programs/localedef.h: Likewise.
9309         * locale/programs/charmap-dir.h: Likewise.
9310         * locale/programs/repertoire.c: Likewise.
9311         * locale/programs/simple-hash.h: Likewise.
9312         * locale/programs/ld-telephone.c: Likewise.
9313         * locale/programs/locale-spec.c: Likewise.
9314         * locale/programs/locfile-token.h: Likewise.
9315         * posix/getconf.c: Likewise.
9316         * iconv/dummy-repertoire.c: Likewise.
9317         * iconv/iconv_charmap.c: Likewise.
9318         * iconv/iconvconfig.c: Likewise.
9319         * iconv/iconv_prog.c: Likewise.
9320         * malloc/memusagestat.c: Likewise.
9321         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9323 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9325         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9326         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9327         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9328         check for the first argument.
9330 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9332         [BZ #4775]
9333         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9334         (__tgmath_real_type): Fix if expr is const int or other const
9335         qualified integral type.
9336         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9337         expressions and handle const qualified arguments.
9338         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9339         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9340         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9341         statement expressions.
9342         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9343         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9344         (__TGMATH_UNARY_IMAG): Define.
9345         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9346         * math/Makefile (tests): Add test-tgmath2.
9347         (CFLAGS-test-tgmath2.c): Add.
9348         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9349         count_cfloat, count_cldouble): New variables.
9350         (NCCALLS): Define.
9351         (main): Check number of complex calls as well.
9352         (F(compile_test)): Add complex tests and tests with const qualified
9353         arguments.
9354         (y, z, ccount): Define.
9355         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9356         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9357         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9358         F(cproj)): New functions.
9359         * math/test-tgmath2.c: New test.
9361 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9363         [BZ #4776]
9364         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9365         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9366         instead output ".".
9367         * dlfcn/Makefile (distribute): Add glreflib3.c.
9368         (module-names): Add glreflib3.
9369         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9370         glreflib1.so.
9371         (LDFLAGS_glreflib3.so): New.
9372         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9373         glreflib1.so.
9374         * dlfcn/glreflib3.c: New file.
9376         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9377         returned -1, return NULL.
9378         * intl/explodename.c (_nl_explode_name): Return -1 if
9379         _nl_normalize_codeset failed.
9381 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9383         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9384         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9385         and avoid branch misspredicts for > 31 bytes memset case.
9386         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9387         Remove toc ref to __cache_line_size.
9389         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9390         to get ISA-V2.0 branch hints.
9391         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9392         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9393         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9394         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9395         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9396         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9397         Remove toc ref to __cache_line_size.
9399         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9400         Include math_ldbl_opt.h.
9402 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9404         [BZ #4773]
9405         * time/strptime_l.c (__strptime_internal): Implement greedy
9406         matching of weekday and month names.
9408 2007-07-09  Roland McGrath  <roland@redhat.com>
9410         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9411         (ELF_NOTE_ABI): Use it.
9412         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9414 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9416         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9417         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9419 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9421         [BZ #4745]
9422         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9423         in loop to look for conversion specifier to avoid testing of
9424         wrong errno value.
9425         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9426         * stdio-common/bug18.c: New file.
9427         * stdio-common/bug18a.c: New file.
9428         * stdio-common/bug19.c: New file.
9429         * stdio-common/bug19a.c: New file.
9431 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9433         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9434         running awk script.
9436 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9438         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9439         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9440         Return NULL if mmap failed instead of asserting it does not.
9441         (calloc): Check for integer overflow.
9443         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9444         than LONG_MAX / 10.
9446 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9448         [BZ #4702]
9449         * nis/nss-default.c: Include errno.h.
9450         (init): Preserve errno.
9452 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9454         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9456 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9458         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9460 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9462         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9464 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9466         * sysdeps/s390/dl-procinfo.c: New file.
9467         * sysdeps/s390/dl-procinfo.h: New file.
9468         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9470 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9472         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9473         in PT_NOTE segments with multiple notes.
9474         * elf/readelflib.c (process_elf_file): Likewise.
9476 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9478         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9479         ISO C compliant.
9481 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9483         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9485 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9487         * include/link.h: Don't include rtld-lowlevel.h.
9488         (struct link_map): Remove l_scope_lock.
9489         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9490         (_dl_scope_free_list): New field (variable) in _rtld_global.
9491         (DL_LOOKUP_SCOPE_LOCK): Remove.
9492         (_dl_scope_free): New prototype.
9493         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9494         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9495         (_dl_profile_fixup): Likewise.
9496         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9497         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9498         THREAD_GSCOPE_RESET_FLAG around it.
9499         * elf/dl-close.c (_dl_close_worker): Don't use
9500         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9501         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9502         scopes were queued or if l_scope_mem has been abandoned.
9503         * elf/dl-open.c (_dl_scope_free): New function.
9504         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9505         * elf/dl-support.c (_dl_scope_free_list): New variable.
9506         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9507         Remove DL_LOOKUP_SCOPE_LOCK handling.
9508         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9509         handling.
9510         * elf/dl-object.c (_dl_new_object): Don't use
9511         __rtld_mrlock_initialize.
9513 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9515         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9516         to fill in holes
9517         (rtld_global_ro): Likewise.
9519 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9521         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9522         Move PT_LOAD checking to...
9523         (_dl_addr_inside_object): ... here, new function.
9524         * elf/dl-sym.c (do_sym): If not l_contiguous,
9525         call _dl_addr_inside_object.
9526         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9527         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9528         * elf/dl-open.c (dl_open_worker): Likewise.
9529         (_dl_addr_inside_object): New function if IS_IN_rtld.
9530         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9531         holes are present or are PROT_NONE protected.
9532         * include/link.h (struct link_map): Add l_contiguous field.
9533         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9535 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9536             Tomas Janousek  <tjanouse@redhat.com>
9537             Ulrich Drepper  <drepper@redhat.com>
9539         [BZ #4647]
9540         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9541         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9542         socket.
9543         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9544         unused member a bitmap.
9545         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9546         servers are configured.
9548 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9550         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9552 2007-06-17  Andreas Schwab  <schwab@suse.de>
9554         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9556 2007-06-16  Andreas Jaeger  <aj@suse.de>
9558         [BZ #4125]
9559         * sysdeps/unix/sysv/linux/sys/ptrace.h
9560         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9561         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9562         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9563         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9564         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9565         Define.
9566         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9567         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9568         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9569         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9571 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9573         [BZ #4599]
9574         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9575         determining whether there are IPv4/IPv6 addresses, ignore loopback
9576         addresses.
9578 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9580         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9581         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9582         as the return type.  Change type of "r" variable to CMPtype.
9583         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9584         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9585         * soft-fp/gedf2.c (__gedf2): Likewise.
9586         * soft-fp/gesf2.c (__gesf2): Likewise.
9587         * soft-fp/getf2.c (__getf2): Likewise.
9588         * soft-fp/ledf2.c (__ledf2): Likewise.
9589         * soft-fp/lesf2.c (__lesf2): Likewise.
9590         * soft-fp/letf2.c (__letf2): Likewise.
9591         * soft-fp/unorddf2 (__unorddf2): Likewise.
9592         * soft-fp/unordsf2 (__unordsf2): Likewise.
9593         * soft-fp/unordtf2 (__unordtf2): Likewise.
9595 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9597         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9598         make sure gcc doesn't mess around with this.
9600 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9602         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9604 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9606         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9607         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9608         at most once per _dl_close_worker.
9610 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9612         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9613         __sched_cpucount as const.
9614         * posix/sched_cpucount.c: Adjust.
9616         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9617         instruction for counting bits.
9618         * sysdeps/x86_64/sched_cpucount.c: New file.
9620 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9622         * configure.in: Avoid variable named BASH.
9623         * config.make.in: Likewise.
9624         Patch in part by Mike Frysinger.
9626 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9628         [BZ #4586]
9629         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9630         pseudo-zeros as zero.
9631         * sysdeps/x86_64/ldbl2mpn.c: New file.
9632         * sysdeps/ia64/ldbl2mpn.c: New file.
9634 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9636         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9637         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9638         Remove unreachable code at the end.
9640 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9642         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9643         ldbl-128ibm in comment.
9644         (fpclassifyl): Correct classification of denormals.
9645         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9646         return value for MIN denormal. Rewrite using long double math too
9647         correctly handle denormals and canonicalize the results.
9649 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9651         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9652         (__mpn_construct_long_double): Fix conversion where result ought
9653         to be smaller than __LDBL_MIN__, or the low double should be
9654         denormal.  Fix decision where to negate low double - honor round
9655         to even rules.
9656         * stdio-common/tst-sprintf2.c: Include string.h.
9657         (COMPARE_LDBL): Define.
9658         (TEST): Also test whether a string hexadecimal float representation
9659         can be parsed back to the number.
9660         (main): Add a couple of further tests.
9662 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9664         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9665         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9666         is non-zero, but smaller than 2 * __DBL_MIN__.
9667         * stdio-common/tst-sprintf2.c: New test.
9668         * stdio-common/Makefile (tests): Add tst-sprintf2.
9670         * math/test-misc.c (main): Don't run last batch of tests with
9671         IBM long double format.
9673 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9675         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9676         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9677         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9678         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9679         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9680         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9681         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9682         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9683         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9684         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9687         New file.
9688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9689         New file.
9690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9691         New file.
9692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9693         New file.
9694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9695         New file.
9696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9698         New file.
9699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9700         New file.
9701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9702         New file.
9703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9704         New file.
9705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9706         New file.
9708 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9710         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9711         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9712         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9713         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9714         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9715         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9716         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9717         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9719 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9721         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9722         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9723         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9724         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9725         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9726         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9727         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9728         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9730 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9732         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9733         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9734         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9735         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9737 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9739         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9740         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9742 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9744         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9745         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9746         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9747         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9749 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9751         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9752         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9754 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9756         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9757         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9759         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9760         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9761         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9762         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9764 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9766         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9767         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9768         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9769         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9771 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9773         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9774         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9775         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9776         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9777         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9778         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9780 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9782         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9783         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9784         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9785         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9787 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9789         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9790         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9791         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9792         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9793         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9794         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9795         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9796         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9797         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9798         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9799         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9800         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9801         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9802         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9803         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9804         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9806 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9808         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9809         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9811 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9813         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9814         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9816 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9818         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9819         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9820         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9821         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9822         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9823         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9824         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9825         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9826         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9827         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9829 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9831         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9833 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9835         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9836         branch miss-predicts. Ensure that cache line crossing does not impact
9837         dispatch grouping.
9839 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9841         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9842         "../../powerpc32/power4/memcopy.h".
9843         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9844         "../../powerpc32/power4/wordcopy.c".
9846 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9848         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9849         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9850         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9851         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9852         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9853         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9855 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9857         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9859 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9861         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9862         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9863         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9864         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9865         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9866         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9867         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9868         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9870 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9872         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9874 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9876         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9877         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9878         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9879         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9880         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9881         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9882         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9884 2007-05-29  Roland McGrath  <roland@redhat.com>
9886         * po/Makefile (po-sed-cmd): New variable.
9887         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9889 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9891         * crypt/md5-crypt.c: Fix comment.
9893         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9894         of crashing.  When this is the case or if the reply is malformed,
9895         don't try to close the new file descriptor since it does not
9896         exist.
9897         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9899 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9901         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9902         if __NR_utimensat is not defined.
9904 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9906         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9908 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9910         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9911         (open): Fix comment typos.  Don't call __open_2 if flags
9912         is a compile time constant without O_CREAT.
9913         (__open64_2): Add nonnull attribute.
9914         (open64): Fix comment typos.  Don't call __open64_2 if flags
9915         is a compile time constant without O_CREAT.
9916         (__openat_2): Add nonnull attribute, fix nonnull attribute
9917         on redirect.
9918         (openat): Fix comment typos.  Don't call __openat_2 if flags
9919         is a compile time constant without O_CREAT.
9920         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9921         on redirect.
9922         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9923         is a compile time constant without O_CREAT.
9925 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9927         * Makerules (sysd-rules): Define PTW for ptw-* files.
9928         * Versions: Define GLIBC_2.7 for libc.
9929         * include/stdio.h: Declare __fortify_fail.
9930         * debug/fortify_fail.c: New file.
9931         * debug/Makefile (routines): Add fortify_fail.
9932         * debug/chk_fail.c: Use __fortify_fail.
9933         * debug/stack_chk_fail.c: Likewise.
9934         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9935         __openat64_2 for GLIBC_2.7.
9936         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9937         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9938         and fails if necessary.
9939         * io/open64.c: Likewise.
9940         * io/openat.c: Likewise.
9941         * io/openat64.c: Likewise.
9942         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9943         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9944         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9945         * io/bits/fcntl2.h: New file.
9946         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9947         __openat64_2.
9948         * include/bits/fcntl2.h: New file.
9949         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9950         Add open_2.
9951         * sysdeps/unix/sysv/linux/open_2.c: New file.
9953 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9955         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9956         as second parameter to handle_intel.
9958         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9959         the entry.
9961         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9962         handling to ...
9963         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9964         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9965         cacheinfo.
9966         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9967         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9968         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9970         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9972 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9974         [BZ #4525]
9975         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9976         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9977         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9979         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9981         [BZ #4514]
9982         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9983         reinitialize workend at the start of each do_positional format spec
9984         loop, free workstart before do_positional loops.
9985         (printf_unknown): Fix size of work_buffer.
9986         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9988         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9989         (public_sET_STATe): If ms->version < 3, put all chunks into
9990         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9991         chunks.
9993         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9994         * malloc/hooks.c: Likewise.
9995         * malloc/arena.c: Likewise.
9996         * malloc/malloc.c (do_check_malloc_state): Don't assert
9997         n_mmaps is not greater than n_mmaps_max.  This removes the need
9998         for the previous change.
10000         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10001         2007-05-07 commit.
10003 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10005         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10006         Define for kernel >= 2.6.22.
10008 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10010         * elf/dl-close.c (_dl_close_worker): When removing object from
10011         global scope, wait for all lookups to finish afterwards.
10012         * elf/dl-open.c (add_to_global): When global scope array must
10013         grow, allocate a new one and free old array only after all
10014         lookups finish.
10015         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10016         (_dl_lookup_symbol_x): Likewise.
10017         * elf/dl-support.c: Define _dl_wait_lookup_done.
10018         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10019         _dl_wait_lookup_done.
10021         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10022         not overlapping with arena.
10024         * malloc/mcheck.c (reallochook): If size==0, free the block.
10026         * rt/tst-shm.c: Use fstat64 instead of fstat.
10028         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10029         __NR_sync_file_range is not defined.
10031 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10033         Dummy files to prevent stub versions from being used.
10034         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10035         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10036         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10037         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10039         * version.h (VERSION): Set to 2.6.90.
10041 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10043         * version.h (VERSION): Define to 2.6.
10044         * include/features.h (__GLIBC_MINOR__): Define to 6.
10046         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10048         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10049         sizes.
10051 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10053         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10054         number of mmaps.  n_mmaps_max is the target.
10055         * malloc/hooks.c: Likewise.
10056         * malloc/arena.c: Likewise.
10058 2007-05-12  Andreas Jaeger  <aj@suse.de>
10060         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10061         getpid.
10063 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10065         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10066         adding new variables.
10068         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10069         optimize.  Completely extend global scope array before making the
10070         new entries visible.
10072 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10074         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10075         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10076         tst-getcpu.
10078         * include/link.h: Move l_version and l_nversion members around to
10079         fill gaps.
10081         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10083         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10084         (__sched_setaffinity_new): If syscall was successful and
10085         RESET_VGETCPU_CACHE is defined, use it before returning.
10086         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10088         * io/sys/stat.h: Make sure struct timespec is defined for
10089         __USE_ATFILE.
10091         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10092         UTIME_OMIT.
10093         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10094         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10095         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10096         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10097         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10098         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10099         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10100         * io/sys/stat.h: Declare utimensat, futimens.
10101         * io/utimensat.c: New file.
10102         * io/futimens.c: New file.
10103         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10104         * sysdeps/unix/sysv/linux/futimens.c: New file.
10105         * io/Makefile (routines): Add utimensat, futimens.
10106         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10107         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10108         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10109         available.
10111         * include/sys/cdefs.h: Redefine __nonnull so that test for
10112         incorrect parameters in the libc code itself are not omitted.
10114 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10116         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10117         exception in addition to inexact when asked to raise only FE_INEXACT.
10119         [BZ #3427]
10120         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10121         in *envp.
10123 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10125         [BZ #4403]
10126         * string/strfry.c (strfry): Make result more random.
10128 2007-05-07  Richard Henderson  <rth@redhat.com>
10130         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10131         if __NO_LONG_DOUBLE_MATH.
10132         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10133         available in the compiler, add .arch directive to the assembly.
10135 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10137         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10138         compat_symbol to GLIBC_2_1.
10139         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10140         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10141         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10142         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10143         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10144         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10145         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10146         libc, not libm.
10147         (__isnanl): New compat_symbol.
10149 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10150             Jakub Jelinek  <jakub@redhat.com>
10152         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10153         (new_heap): Initialize mprotect_size.
10154         (grow_heap): When growing, only mprotect from mprotect_size till
10155         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10156         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10158 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10159             Peter Bergner  <bergner@us.ibm.com>
10161         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10162         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10163         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10164         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10165         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10166         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10167         Call __fe_mask_env() if all FP exceptions disabled.
10168         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10169         from old FPSCR to new fenv to propagate DFP rounding modes.
10170         Call __fe_mask_env() if FP exceptions previously enabled.
10171         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10172         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10173         transitioning from all exceptions disabled to any exception enabled
10174         or visa versa.
10175         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10176         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10177         when transitioning from all exceptions disabled to any exception
10178         enabled or visa versa.
10179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10186 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10188         [BZ #4465]
10189         * posix/unistd.h: Remove __THROW from fdatasync.
10191 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10193         [BZ #4465]
10194         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10196 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10198         * stdio-common/vfprintf.c (process_string_arg): Optimize
10199         ridiculous precision in wide char code printing multi-byte string.
10200         Reported by Jim Meyering <jim@meyering.net>.
10202         [BZ #4131]
10203         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10204         boundaries to work around systems with overlapping binary loading.
10205         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10207 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10209         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10210         __mbsnrtowcs after last change.
10212         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10213         (get_ident): Likewise.
10215 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10217         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10218         with setting the sticky bit.
10219         * math/test-misc.c (main): Add more truncation tests.
10221 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10223         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10224         double in the function declaration.
10225         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10226         double in the function declaration.
10227         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10228         float in the function declaration.
10229         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10230         float in the function declaration.
10232         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10233         denormal operands.  Do not generate FP_EX_DENORM exception.
10234         (FP_UNPACK_RAW_EP): Ditto.
10235         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10236         undefined _FP_UNPACK_RAW_E.
10237         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10238         undefined _FP_UNPACK_RAW_EP.
10239         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10240         undefined _FP_PACK_RAW_E.
10241         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10242         undefined _FP_PACK_RAW_EP.
10244         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10245         _FP_FRAC_COPY_2.
10246         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10247         _FP_FRAC_COPY_4.
10249 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10250             Jakub Jelinek  <jakub@redhat.com>
10252         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10253         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10254         this case.
10255         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10257 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10259         * math/test-misc.c (main): Add tests for rounding long double
10260         values close to smallest double denormalized value to double.
10262 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10264         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10265         condition for truncating to 0.  Set sticky bit for such
10266         truncation.
10268 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10270         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10271         fixed length array for ignore.
10273 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10275         [BZ #4438]
10276         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10277         stack for large precisions.
10278         * stdio-common/test-vfprintf.c (main): Add test for large
10279         precision.
10281 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10283         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10284         for exponent 0.
10285         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10287         [BZ #4439]
10288         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10289         account in the size check.
10290         * resolv/tst-inet_ntop.c: New test.
10291         * resolv/Makefile (tests): Add tst-inet_ntop.
10293 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10294             Jakub Jelinek  <jakub@redhat.com>
10296         [BZ #4349]
10297         * malloc/malloc.c: Keep separate list for first blocks on the bin
10298         lists with a given size.  This helps skipping over list elements
10299         we know won't fit in two places.
10300         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10302 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10304         [BZ #4102]
10305         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10306         label to Teredo tunnel addresses 2001://32.
10308 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10310         * locale/programs/ld-collate.c (collate_read): Allow order_start
10311         after copy.
10313         * locale/programs/ld-collate.c (collate_read): Fix printing of
10314         error message.
10316         [BZ #3213]
10317         * locale/C-translit.h.in: Add entry for U2044.
10319         [BZ #4342]
10320         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10321         hexa-decimal floats without exponent.
10322         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10324 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10326         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10327         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10328         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10329         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10330         GLIBC_2.6.
10331         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10332         Add sched_getcpu.
10334 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10336         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10337         of 0 after the out_fail label.
10339 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10341         [BZ #4406]
10342         * iconv/gconv_charset.h (strip): Allow ':'.
10343         * iconv/iconv_open.c (iconv_open): Adjust comment.
10345 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10347         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10348         version.
10350 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10352         [BZ #4381]
10353         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10354         alignment of buffer and tmp_buffer.
10355         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10356         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10357         alignment of buffer.
10358         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10359         bigger than INT_MAX.
10360         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10361         h_errnop arguments.  Fail if buflen is too small.
10362         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10364 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10366         [BZ #4405]
10367         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10368         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10370 2007-04-22  Roland McGrath  <roland@redhat.com>
10372         * elf/elf.h (NT_PRXFPREG): New macro.
10374 2007-04-19  Andreas Jaeger  <aj@suse.de>
10376         [BZ #3905]
10377         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10378         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10379         Added.
10381 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10383         * include/sys/mman.h: Mark madvise hidden.
10384         * misc/madvise.c: Add libc_hidden_def.
10386 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10388         * nis/nis_domain_of.c (__nis_domain_of): New function.
10389         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10390         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10391         * nis/nis_call.c (rec_dirsearch): Likewise.
10392         (first_shoot): Likewise.  Remove search_parent_first argument.
10393         (struct nis_server_cache): Rename search_parent_first field
10394         to search_parent.
10395         (nis_server_cache_search, nis_server_cache_add): Rename
10396         search_parent_first argument to search_parent.
10397         (__nisfind_server): Likewise.  If search_parent, call
10398         __nis_domain_of.
10400 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10402         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10404 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10406         [BZ #4368]
10407         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10409 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10411         [BZ #4364]
10412         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10414 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10416         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10417         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10418         current number of locales in SUPPORTED.
10419         (create_archive): Initialize serial.
10420         (enlarge_archive): Preserve aliases rather than duplicating
10421         their locrecs.
10423 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10425         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10426         after _IO_un_link, not before it.
10428         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10429         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10430         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10432 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10434         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10435         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10436         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10437         Remove __THROW.
10438         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10439         _IO_file_xsgetn_maybe_mmap): Likewise.
10440         * libio/oldfileops.c (old_do_write): Likewise.
10441         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10442         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10443         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10444         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10445         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10446         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10447         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10448         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10449         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10450         _IO_file_underflow, _IO_file_underflow_mmap,
10451         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10452         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10453         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10454         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10455         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10456         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10457         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10458         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10459         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10460         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10461         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10462         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10463         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10464         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10465         _IO_adjust_column_internal, _IO_default_uflow_internal,
10466         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10467         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10468         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10469         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10470         _IO_file_close_it_internal, _IO_file_underflow_internal,
10471         _IO_file_overflow_internal, _IO_file_attach_internal,
10472         _IO_file_fopen_internal, _IO_file_sync_internal,
10473         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10474         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10475         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10476         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10477         _IO_seekpos_unlocked): Likewise.
10478         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10479         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10481 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10483         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10484         argument in xmalloc size computation.
10486 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10488         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10489         math_opt_barrier and math_force_eval macros.
10491 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10493         [BZ #3306]
10494         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10495         * sysdeps/i386/fpu/math_private.h: New file.
10496         * sysdeps/x86_64/fpu/math_private.h: New file.
10497         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10498         math_force_eval macros.  Use "+m" constraint on asm rather than
10499         "=m" and "m".
10500         * math/s_nextafter.c (__nextafter): Likewise.
10501         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10502         Likewise.
10503         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10504         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10505         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10506         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10507         math_opt_barrier and math_force_eval macros.
10508         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10509         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10510         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10511         (__nexttoward): Use math_opt_barrier and
10512         math_force_eval macros.  Use "+m" constraint on asm rather than
10513         "=m" and "m".  Only use asm to force double result if
10514         FLT_EVAL_METHOD is 2.
10515         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10516         (__nexttowardf): Use math_opt_barrier and
10517         math_force_eval macros.  Use "+m" constraint on asm rather than
10518         "=m" and "m".  Only use asm to force double result if
10519         FLT_EVAL_METHOD is not 0.
10520         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10521         (__nexttowardf): Use math_opt_barrier and
10522         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10523         x to float using asm.
10524         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10525         (__nldbl_nexttowardf): Use math_opt_barrier and
10526         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10527         x to float using asm.
10528         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10529         (__nexttowardf): Use math_opt_barrier and math_force_eval
10530         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10531         * math/bug-nextafter.c (zero, inf): New variables.
10532         (main): Add new tests.
10533         * math/bug-nexttoward.c (zero, inf): New variables.
10534         (main): Add new tests.
10536 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10538         [BZ #3427]
10539         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10540         exceptions both in SW and MXCSR.
10541         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10542         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10543         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10544         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10545         in MXCSR if SSE is available.
10546         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10547         and ldsodefs.h.
10548         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10549         Fix comment typo.
10550         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10551         Return 0 rather than 1.
10552         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10553         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10554         * math/test-fenv.c (feholdexcept_tests): New function.
10555         (main): Call it.
10557 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10559         [BZ #3427]
10560         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10561         in SW.
10563 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10565         [BZ #4344]
10566         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10567         Reported by David Anderson <davea42@earthlink.net>.
10569 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10571         * posix/sys/wait.h: Remove unnecessary forward declaration.
10573 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10575         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10576         with obj->do_servers after first_shoot.
10578 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10580         * posix/Makefile (routines): Add sched_cpucount.
10581         (tests): Add tst-cpucount.
10582         * posix/sched_cpucount.c: New file.
10583         * posix/tst-cpucount.c: New file.
10584         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10585         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10586         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10587         * posix/sched.h: Define CPU_COUNT.
10589 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10591         * posix/fnmatch.c (STRUCT): Define.
10592         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10593         * posix/fnmatch_loop.c (struct STRUCT): New type.
10594         (FCT): Add ends argument.  If ends != NULL and normal * is
10595         seen in the pattern, store current pattern and string pointers
10596         and return.  Adjust recursive calls.
10597         (EXT): Adjust FCT callers.
10598         (STRUCT): Undef at the end of the file.
10599         * posix/Makefile (tests): Add tst-fnmatch2.
10600         * posix/tst-fnmatch2.c: New test.
10602 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10604         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10605         and 1 on failure.
10607         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10608         Change last argument to unsigned int.
10610 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10612         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10614 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10616         * config.h.in (HAVE_LIBCAP): Add.
10617         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10618         sys/capabilities.h.
10619         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10620         free_caps.  Cast away const from 4th cap_set_flag argument.
10622 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10624         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10625         GLIBC_2.6.
10626         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10627         Add sync_file_range.
10628         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10630 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10632         * sysdeps/powerpc/bits/atomic.h
10633         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10634         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10635         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10636         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10637         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10638         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10639         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10640         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10641         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10642         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10643         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10644         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10645         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10646         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10647         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10648         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10649         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10650         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10651         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10652         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10654 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10656         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10657         (__cache_line_size): Define the variable here.  Add
10658         attribute_hidden, remove weak_extern.
10659         (__libc_start_main): Set __cache_line_size
10660         unconditionally.
10661         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10662         (__cache_line_size): Define the variable here.  Add
10663         attribute_hidden, remove weak_extern.
10664         (DL_PLATFORM_AUXV): Set __cache_line_size
10665         unconditionally.
10666         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10667         weak_extern, add attribute_hidden.
10668         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10669         defined in ld.so.
10670         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10671         definition.
10672         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10674 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10676         [BZ #4276]
10677         * timezone/africa: Update from tzdata2007d.
10678         * timezone/asia: Likewise.
10679         * timezone/australasia: Likewise.
10680         * timezone/backward: Likewise.
10681         * timezone/europe: Likewise.
10682         * timezone/iso3166.tab: Likewise.
10683         * timezone/leapseconds: Likewise.
10684         * timezone/northamerica: Likewise.
10685         * timezone/southamerica: Likewise.
10686         * timezone/zone.tab: Likewise.
10688         * timezone/private.h: Update from tzcode2007d.
10689         * timezone/zdump.c: Likewise.
10690         * timezone/zic.c: Likewise.
10692 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10694         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10695         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10696         variables.
10697         (nis_server_cache_search, nis_server_cache_add): New functions.
10698         (__nisfind_server): Use them.  Add dbp and flags argument, if
10699         call __nisbind_create.
10700         (__nisbind_create): Add server_used and current_ep arguments,
10701         only call __nis_findfastest if server_used is ~0.
10702         (__do_niscall2, __prepare_niscall): Adjust callers.
10703         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10704         ckey_cache_euid, ckey_cache_lock): New variables.
10705         (get_ckey): New function.
10706         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10707         __pmap_getnisport.  Save __pmap_getnisport result in
10708         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10709         key.
10710         * nis/nis_lookup.c (nis_lookup): Likewise.
10711         * nis/nis_table.c (nis_list): Likewise.
10712         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10713         prototypes.
10715         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10716         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10717         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10718         _nss_nisplus_getservbyport_r): Likewise.
10719         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10720         _nss_nisplus_getnetbyaddr_r): Likewise.
10721         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10722         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10723         _nss_nisplus_getntohost_r): Likewise.
10724         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10725         _nss_nisplus_getrpcbynumber_r): Likewise.
10727 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10729         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10730         * configure: Rebuilt.
10732         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10733         bit-fields.
10734         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10736 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10738         [BZ #2831]
10739         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10740         bit-fields.
10742 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10744         * nscd/gai.c: Include alloca.h.
10745         (__libc_use_alloca): Define.
10747 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10749         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10750         smaller scopes.
10751         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10752         (DL_DST_REQUIRED): Adjust user.
10754         * include/dlfcn.h (struct link_map): New forward decl.
10756         * inet/getnameinfo.c: Include stddef.h.
10757         (getnameinfo): Use offsetof.
10759         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10761         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10763         * string/strerror_l.c: Include stdlib.h.
10765         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10766         * config.make.in (gnu89-inline-CFLAGS): New variable.
10767         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10768         -std=gnu99.
10769         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10770         * argp/argp.h: Use it.
10771         * bits/mathinline.h: Likewise.
10772         * bits/sigset.h: Likewise.
10773         * bits/string.h: Likewise.
10774         * ctype/ctype.h: Likewise.
10775         * hurd/hurd.h: Likewise.
10776         * hurd/hurd/fd.h: Likewise.
10777         * hurd/hurd/port.h: Likewise.
10778         * hurd/hurd/signal.h: Likewise.
10779         * hurd/hurd/threadvar.h: Likewise.
10780         * hurd/hurd/userlink.h: Likewise.
10781         * io/sys/stat.h: Likewise.
10782         * libio/bits/stdio.h: Likewise.
10783         * libio/bits/stdio2.h: Likewise.
10784         * mach/lock-intern.h: Likewise.
10785         * mach/mach/mig_support.h: Likewise.
10786         * math/bits/cmathcalls.h: Likewise.
10787         * posix/bits/unistd.h: Likewise.
10788         * socket/bits/socket2.h: Likewise.
10789         * stdlib/bits/stdlib.h: Likewise.
10790         * stdlib/stdlib.h: Likewise.
10791         * string/argz.h: Likewise.
10792         * string/bits/string2.h: Likewise.
10793         * string/bits/string3.h: Likewise.
10794         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10795         * sysdeps/generic/inttypes.h: Likewise.
10796         * sysdeps/generic/machine-lock.h: Likewise.
10797         * sysdeps/generic/machine-sp.h: Likewise.
10798         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10799         * sysdeps/i386/i486/bits/string.h: Likewise.
10800         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10801         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10802         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10803         * sysdeps/mach/i386/machine-lock.h: Likewise.
10804         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10805         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10806         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10807         * sysdeps/s390/bits/string.h: Likewise.
10808         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10809         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10810         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10811         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10812         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10813         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10814         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10815         * wcsmbs/bits/wchar2.h: Likewise.
10816         * wcsmbs/wchar.h: Likewise.
10817         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10818         __extern_inline definition.
10820 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10822         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10823         NULL.
10825         [BZ #3919]
10826         * math/libm-test.inc (log_test): Test -Inf and NaN.
10827         (log10_test, log1p_test, log2_test): Test -Inf.
10828         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10829         FE_INVALID when argument is qNaN.
10830         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10831         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10832         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10833         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10834         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10835         testb $4, %ah and jump if non-zero.
10836         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10837         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10839         [BZ #4101]
10840         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10841         ancestors with the same depths.
10842         Patch by Niels Moeller <nisse@lysator.liu.se>.
10843         (filter_doc): Don't crash if argp is NULL.
10844         * argp/Makefile (tests): Add tst-argp2.
10845         * argp/tst-argp2.c: New test.
10847         [BZ #4130]
10848         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10849         open_not_cancel_2.
10850         (updwtmp_file): Likewise.
10852         [BZ #4181]
10853         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10854         (inet6_opt_append): Don't check extlen is big enough if extbuf
10855         is NULL.
10856         (inet6_opt_finish): Likewise.
10857         * inet/Makefile (tests): Add test-inet6_opt.
10858         * inet/test-inet6_opt.c: New test.
10860         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10861         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10862         NLMSG_ERR.  Instead use a page sized buffer.
10863         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10864         buffer.
10866 2007-03-14  Richard Henderson  <rth@redhat.com>
10868         * sysdeps/alpha/fpu/s_llround.c: New file.
10869         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10870         * sysdeps/alpha/fpu/s_lround.c: New file.
10871         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10872         * sysdeps/alpha/fpu/s_round.c: New file.
10873         * sysdeps/alpha/fpu/s_roundf.c: New file.
10874         * sysdeps/alpha/fpu/s_trunc.c: New file.
10875         * sysdeps/alpha/fpu/s_truncf.c: New file.
10877         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10878         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10879         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10880         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10881         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10882         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10884         * sysdeps/alpha/fpu/s_fmax.S: New file.
10885         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10886         * sysdeps/alpha/fpu/s_fmin.S: New file.
10887         * sysdeps/alpha/fpu/s_fminf.S: New file.
10888         * sysdeps/alpha/fpu/s_isnan.c: New file.
10889         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10890         * sysdeps/alpha/fpu/s_llrint.c: New file.
10891         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10892         * sysdeps/alpha/fpu/s_lrint.c: New file.
10893         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10894         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10895         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10897         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10898         (__fdimf, fdimf, __fdim, fdim): Remove.
10899         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10900         (__isnanf, __isnan, __isnanl): New.
10902 2007-03-13  Richard Henderson  <rth@redhat.com>
10904         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10906 2007-03-13  Richard Henderson  <rth@redhat.com>
10908         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10909         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10910         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10911         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10912         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10913         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10915 2007-03-13  Richard Henderson  <rth@redhat.com>
10917         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10918         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10919         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10920         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10921         Move to dl-auxv.h; initialize instead of extern weak.
10922         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10923         weak symbol.
10924         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10925         Extern instead of initialized.
10927 2007-03-13  Richard Henderson  <rth@redhat.com>
10929         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10930         __sigsuspend_nocancel.
10932 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10934         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10935         172.16/12 address range.
10937 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10939         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10940         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10941         message.
10943 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10945         [BZ #4069]
10946         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10947         earlier.
10948         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10950         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10951         for x qNaN and y either +-inf or non-integer value.
10952         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10953         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10954         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10956 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10958         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10959         from sysdep_headers.
10961 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10963         * time/tzfile.c (find_transition): Instead of a linear search try to
10964         guess the transition index, use a linear search if the result is at
10965         most 10 transitions away from the guess or binary search otherwise.
10967 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10969         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10970         memory reallocation.
10972 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10974         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10975         and fix some typos.
10976         Optimize use of TOLOWER.
10978         [BZ #3325]
10979         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10980         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10981         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10983         [BZ #3458]
10984         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10985         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10987         [BZ #4076]
10988         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10989         (open_dir_stream): Likewise.
10990         * io/Makefile (tests): Add bug-ftw5.
10991         * io/bug-ftw5.c: New file.
10993         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10994         * nscd/servicescache.c (cache_addserv): Likewise.
10996         * nscd/grpcache.c (cache_addgr): In case a record changed on
10997         refresh, adjust key_copy.
10999         [BZ #4074]
11000         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11001         refresh, adjust key_copy.
11003         [BZ #4070]
11004         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11005         special cases.
11006         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11008 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11010         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11011         optimization.
11013         * stdio-common/vfscanf.c: Small cleanups throughout.
11015 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11017         [BZ #3325]
11018         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11019         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11020         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11021         Patch by Jared Casper <jaredcasper@gmail.com>.
11023         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11024         * sysdeps/unix/opendir.c: Likewise.
11025         * sysdeps/unix/readdir.c: Likewise.
11027         [BZ #2211]
11028         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11029         point numbers.
11030         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11032         * stdio-common/vfscanf.c: Fix problems in width accounting.
11033         * stdio-common/tst-sscanf.c (double_tests): New tests.
11034         (main): Hook them up.
11036         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11037         More simplifications of floating-point reader.
11039         * stdio-common/Makefile (tests): Add tst-swscanf.
11040         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11041         testing.
11042         * stdio-common/tst-swscanf.c: New file.
11044 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11046         [BZ #2633]
11047         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11048         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11049         Remove using for __jmp_buf_tag.
11050         * locale/locale.h (struct lconv): Also define in std namespace.
11051         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11053         [BZ #3842]
11054         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11055         using __libc_enable_secure.
11057         [BZ #3818]
11058         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11060         [BZ #3745]
11061         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11062         of names for ellipsises.
11064         [BZ #3348]
11065         * malloc/memusage.sh: Cleanups.
11066         * debug/xtrace.sh: Quoting and trap changes.
11068 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11070         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11072         * locale/iso-3166.def: Update entry for Serbia.
11073         * locale/iso-4217.def: Define RSD, remove CSD.
11075         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11076         and 64-bit operations.
11078         [BZ #4040]
11079         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11080         16-bit operations.
11082         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11083         of writev.
11085 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11087         [BZ #3991]
11088         * assert/assert.h (assert): Simplify.
11089         (assert_perror): Likewise.
11090         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11092         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11093         reqdata.
11095         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11096         change: don't pass NULL in place of an integer.
11098 2007-02-02  Bruno Haible  <bruno@clisp.org>
11100         [BZ #3954]
11101         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11102         Add mapping for U+327E.
11103         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11104         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11105         mapping of 0xD9 0xE8.
11106         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11107         mapping of U+327E.
11108         Reported by Jungshik Shin <jungshik@google.com>.
11110         [BZ #3955]
11111         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11112         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11113         Reported by Jungshik Shin <jungshik@google.com>.
11115 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11117         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11118         byte variants.
11120         [BZ #4040]
11121         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11122         byte variants.  Patch mostly be tom@tommay.net.
11124 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11126         [BZ #3996]
11127         * posix/glob.c (attribute_hidden): Define if not defined.
11128         (glob): Unescape dirname, filename or username when needed and not
11129         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11130         is NULL.  Handle unescaped [ in pattern without closing ].
11131         Don't pass GLOB_CHECK down to recursive glob for directories.
11132         (__glob_pattern_type): New function.
11133         (__glob_pattern_p): Implement using __glob_pattern_type.
11134         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11135         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11136         Remove unreachable code.
11137         * posix/globtest.sh: Add a couple of new tests.
11139 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11141         * po/ru.po: Update from translation team.
11143 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11145         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11146         to the list of i486+ CPUs.
11147         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11149 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11151         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11152         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11153         references.
11155 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11157         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11159         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11160         * resolv/res_mkquery.c: Define __res_nopt.
11161         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11162         try adding EDNS0 record.
11163         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11164         EDNS0 record was send make sure we don't try it again.
11165         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11166         * include/resolv.h: Declare __res_nopt.
11168 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11170         [BZ #3944]
11171         * time/strptime_l.c (__strptime_internal): Set have_mon for
11172         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11173         have been computed from tm_yday and tm_year.  Don't crash
11174         in day_of_the_week or day_of_the_year if not have_mon
11175         and tm_mon contains bogus value.
11176         * time/Makefile (tests): Add tst-strptime3.
11177         * time/tst-strptime3.c: New test.
11179 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11181         [BZ #3957]
11182         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11183         bit for RE_HAT_LISTS_NOT_NEWLINE.
11184         (build_charclass_op): Remove bogus comment.
11185         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11186         * posix/bug-regex27.c: New test.
11187         * posix/bug-regex28.c: New test.
11189 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11191         * po/sv.po: Update from translation team.
11193 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11195         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11197 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11199         * include/locale.h (__uselocale): Add libc_hidden_proto.
11200         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11202         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11203         gettimeofday.
11205 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11207         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11208         returning.
11209         (PTR_DEMANGLE): Real definition now that it's not the same as
11210         PRT_MANGLE anymore.
11211         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11213         * string/strerror_l.c: New file.
11214         * string/Makefile (routines): Add strerror_l.
11215         * string/string.h: Declare strerror_l.
11216         * string/Versions: Export strerror_l for GLIBC_2.6.
11218 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11220         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11221         as parameter.  Construct request record.  Try sending request
11222         before the first poll use, it usually succeeds.  Adjust all
11223         callers.
11224         * nscd/nscd-client.h: Define MAXKEYLEN.
11225         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11227 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11229         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11230         from return value.
11231         * nscd/nscd_helper.c: Include string.h.
11232         (__nscd_cache_search): Remove const qualifier from return value.
11233         On strict alignment architectures check hash entry and data head
11234         alignment.
11235         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11236         mmapped data during GC cycle contains garbage.  If
11237         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11238         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11239         dropped to 0.
11240         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11241         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11242         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11243         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11244         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11246 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11248         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11250 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11252         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11253         names not numbers in cfi_*.
11255 2007-01-26  Andreas Jaeger  <aj@suse.de>
11257         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11258         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11259         Correct values of PER_HPUX and PER_OSF4.
11261 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11263         * elf/dl-minimal.c: Undefine _itoa first.
11264         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11265         * malloc/mtrace.c: Revert last change.
11266         * posix/wordexp.c: Likewise.
11268 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11270         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11271         and __geode__ to the list of i486+ CPUs.
11272         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11274 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11276         * stdio-common/_itoa.c: Include <limits.h>.
11277         * stdio-common/_itowa.c: Likewise.
11279 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11281         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11282         platforms.
11283         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11284         64-bit platforms.
11285         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11286         possible.
11287         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11288         if possible.
11290         [BZ #3902]
11291         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11292         * stdio-common/Makefile (tests): Add bug17.
11293         * stdio-common/bug17.c: New file.
11295 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11297         * iconvdata/brf.c: New file.
11298         * iconvdata/testdata/BRF: New file.
11299         * iconvdata/testdata/BRF..UTF8: New file.
11300         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11301         * iconvdata/Makefile: Add rules to build BRF.
11302         * iconvdata/TESTS: Add BRF entry.
11303         * iconvdata/gconv-modules: Likewise.
11304         * iconvdata/tst-tables.sh: Likewise.
11306 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11308         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11309         type `long long int', not `long int'.
11310         (wcstoq): Likewise.
11312 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11314         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11315         of values on 64-bit platforms which are too large.
11317 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11318             Joe Kerian  <jkerian@us.us.ibm.com>
11320         [BZ #2749]
11321         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11322         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11323         (__copysignl): Use signbit() for comparison.
11324         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11325         SET_LDOUBLE_WORDS64.
11327         [BZ #2423, #2749]
11328         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11329         (__ceill): Remove calls to fegetround(), fesetround().
11330         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11331         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11332         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11334 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11336         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11338         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11340 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11342         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11343         demangle pointer.
11344         * csu/libc-start.c: Likewise.
11346 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11348         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11349         really work anyway.
11351 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11353         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11354         users.
11355         (handle_request): Remove unnecessary tests.
11357         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11359 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11361         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11362         workbits in semi-raw fraction.
11364         * math/test-misc.c: Add new tests.
11366 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11368         * math/basic-test.c: Include test-skeleton.c.
11369         (TEST_TRUNC): Define.
11370         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11371         (main): Rename to ...
11372         (do_test): ...this.  Run new tests.
11373         (TEST_FUNCTION): Define.
11375 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11376             Joe Kerian  <jkerian@us.us.ibm.com>
11378         [BZ #2749]
11379         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11380         handling for high words.
11381         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11382         and overflow for infinity.
11384 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11386         * nscd/connections.c (handle_request): Add a __builtin_expect.
11388         * nscd/connections.c (serv2db): Change type into structure which
11389         also says whether this is a request for data.  Renamed to
11390         servinfo.  All users changed.
11391         (handle_request): Much simpler test whether we should search the cache.
11393         * nscd/connections.c (handle_request): Fix thinko in selinux test
11394         invocation.
11396         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11397         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11398         it before getting dl_load_lock and then relock.
11399         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11400         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11401         case we unlocked the scope.
11402         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11403         _dl_lookup_symbol_x in case we locked the scope.
11404         (_dl_profile_fixup): Likewise.
11405         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11406         set DL_LOOKUP_SCOPE_LOCK.
11408 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11410         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11411         CFLAGS-getsrvbynpt_r.c.
11412         * nscd/getsrvbynm_r.c: New file.
11413         * nscd/getsrvbypt_r.c: New file.
11414         * nscd/nscd_getserv_r.c: New file.
11415         * nscd/servicescache.c: New file.
11416         * nscd/Makefile (routines): Add nscd_getserv_r.
11417         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11418         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11419         CFLAGS-getsrvbypt_r.c.
11420         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11421         table.  Add entries for services database.
11422         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11423         services database.
11424         (dbs): Add .reset_res and servdb initialization.
11425         (serv2db): Add entries for services database.
11426         (verify_persistent_db): Accept dbnr == servdb.
11427         (invalidate_cache): Rewrite database name recognition to use a table.
11428         Call res_init() if .reset_res is set for database.
11429         (handle_request): Add code to handle services database.
11430         * nscd/gai.c: Don't define __getservbyname_r.
11431         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11432         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11433         (serv_response_header): Define.
11434         (struct datahead): Add serv_response_header member.
11435         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11436         using table.
11437         * nscd/nscd.conf: Add entries for services database.
11438         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11439         Declare serv_iov_disabled.
11440         Declare addservbyname, readdservbyname, addservbyport, and
11441         readdservbyport.
11442         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11443         (find_db): Fix error message.
11444         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11445         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11446         * nscd/selinux.c (perms): Add entries for services database.
11447         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11448         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11450         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11451         * nscd/hstcache.c: Likewise.
11452         * nscd/pwdcache.c: Likewise.
11454         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11455         computation of keylen.
11457         * include/string.h: Only redefine strndupa if this is really for
11458         libc code.
11460 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11462         * nscd/nscd_gethst_r.c: Minor cleanups.
11464         * nscd/connections.c (handle_request): Check selinux permissions
11465         for all non-admin commands.
11467         * sysdeps/i386/i486/bits/atomic.h: Define
11468         atomic_compare_and_exchange_val_acq,
11469         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11470         using __sync_* built-ins for gcc >= 4.1.
11471         * sysdeps/x86_64/bits/atomic.h: Likewise.
11473         [BZ #3840]
11474         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11475         and .oS.d files.
11477 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11479         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11480         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11481         (do_test): Check errno and exit(0) if ENOSYS.
11483 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11485         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11486         thousands separators.
11487         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11488         * stdlib/tst-strtod4.c: New test.
11490         [BZ #3855]
11491         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11492         hexadecimal digit should accept just the initial 0.
11493         * stdlib/tst-strtod2.c (tests): New variable.
11494         (do_test): Run several tests rather than just one.
11496 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11498         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11499         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11501 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11503         * io/fts.c: Make sure fts_cur is always valid after return from
11504         fts_read.
11505         Patch by Miloslav Trmac <mitr@redhat.com>.
11507 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11509         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11510         (R_MIPS_NUM): Bump by 1.
11512 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11514         * posix/execvp.c: Include alloca.h.
11515         (allocate_scripts_argv): Renamed to...
11516         (scripts_argv): ... this.  Don't allocate buffer here nor count
11517         arguments.
11518         (execvp): Use alloca if possible.
11519         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11520         * posix/tst-vfork3.c: New test.
11522 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11524         * string/Makefile (tst-strxfrm2-ENV): Define.
11525         * stdlib/Makefile (tst-strtod3-ENV): Define.
11527 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11529         * posix/getconf.c: Update copyright year.
11530         * nss/getent.c: Likewise.
11531         * iconv/iconvconfig.c: Likewise.
11532         * iconv/iconv_prog.c: Likewise.
11533         * elf/ldconfig.c: Likewise.
11534         * catgets/gencat.c: Likewise.
11535         * csu/version.c: Likewise.
11536         * elf/ldd.bash.in: Likewise.
11537         * elf/sprof.c (print_version): Likewise.
11538         * locale/programs/locale.c: Likewise.
11539         * locale/programs/localedef.c: Likewise.
11540         * nscd/nscd.c (print_version): Likewise.
11541         * debug/xtrace.sh: Likewise.
11542         * malloc/memusage.sh: Likewise.
11543         * malloc/mtrace.pl: Likewise.
11544         * debug/catchsegv.sh: Likewise.
11546 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11548         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11549         attempts.
11551 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11553         * posix/wordexp.c: Remove some unnecessary tests.
11555 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11557         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11558         blacklist the group till after we look it up.
11560 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11562         * include/atomic.h (atomic_forced_read): New macro.
11564 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11566         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11568 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11570         * nss/getXXbyYY_r.c: Include atomic.h.
11571         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11572         add atomic_write_barrier () in between.
11574         * stdlib/Makefile (tests): Add tst-makecontext.
11575         * stdlib/tst-makecontext.c: New test.
11577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11578         (__makecontext): Don't realign uc_mcontext.uc_regs.
11580 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11582         * elf/dl-support.c: Include dl-procinfo.h.
11583         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11584         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11585         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11586         Define.
11587         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11588         hardcoded constants.
11589         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11590         PPC_PLATFORM_* macros for array designators.
11592 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11594         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11595         names to the beginning.
11596         (_dl_powerpc_platforms): Add "power6x".
11597         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11598         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11599         (_DL_PLATFORMS_COUNT): Increase.
11600         (_dl_string_platform): Handle power6x case.
11601         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11602         PPC_FEATURE_POWER6_EXT): Define.
11603         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11605 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11607         [BZ #3747]
11608         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11609         [-2^31 .. 2^31) range.
11610         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11611         targets.
11612         * stdlib/tst-rand48-2.c: New test.
11613         * stdlib/Makefile (tests): Add tst-rand48-2.
11615 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11617         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11619 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11621         * misc/tst-pselect.c (do_test): Make sure the helper process is
11622         terminating when the test is aborted.
11624 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11626         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11627         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11628         Handle relatime mount option.
11630         [BZ #2337]
11631         * libio/Makefile (tests): Add tst-setvbuf1.
11632         * libio/tst-setvbuf1.c: New file.
11634 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11636         [BZ #2337]
11637         * libio/genops.c (__uflow): Fix a typo.
11638         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11639         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11640         the narrow buffer size.
11642 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11644         [BZ #2337]
11645         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11646         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11647         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11648         in _flags.
11649         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11650         _IO_wstr_finish): Likewise.
11651         * libio/wmemstream.c (open_wmemstream): Likewise.
11652         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11653         even for wide streams.
11655 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11658         kernel-features.h.
11660 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11662         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11663         separators also if no non-zero digits found.
11664         * stdlib/Makefile (tests): Add tst-strtod3.
11666 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11668         [BZ #3632]
11669         * include/features.h: Fix comment about default value for
11670         _POSIX_C_SOURCE.
11672         [BZ #3664]
11673         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11674         empty parsed strings.
11675         * stdlib/Makefile (tests): Add tst-strtod2.
11676         * stdlib/tst-strtod2.c: New file.
11678         [BZ #3673]
11679         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11680         computation.
11681         * stdlib/Makefile (tests): Add tst-atof2.
11682         * stdlib/tst-atof2.c: New file.
11684         [BZ #3674]
11685         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11686         correctly if removing trailing zero of hex-float.
11687         * stdlib/Makefile (tests): Add tst-atof1.
11688         * stdlib/tst-atof1.c: New file.
11690 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11692         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11693         Start searching for next comma at p rather than rest.
11694         * misc/Makefile (tests): Add tst-mntent2.
11695         * misc/tst-mntent2.c: New test.
11697         * misc/getusershell.c (initshells): Check for integer overflows.
11698         Make strings buffer one bigger as fgets always succeeds when second
11699         argument is 1.  Don't use calloc for shells array.  Disallow
11700         / as shell.
11702 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11704         * malloc/memusage.c: Handle realloc with new size of zero and
11705         non-NULL pointer correctly.
11706         (me): Really write first record twice.
11707         (struct entry): Make format bi-arch safe.
11708         (dest): Write out more realloc statistics.
11709         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11711 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11713         * nis/nis_subr.c (nis_getnames): Revert last change.
11715 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11717         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11718         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11719         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11720         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11721         ENOTTY.
11722         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11723         * io/tst-ttyname_r.c: New test.
11725 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11727         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11729 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11731         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11732         jump table entries.
11734 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11736         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11737         `clone' function to ensure proper unwinding stop of gdb.
11738         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11740 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11742         * nscd/nscd.init: Remove obsolete and commented-out -S option
11743         handling.
11745 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11747         [BZ #3514]
11748         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11750         [BZ #3515]
11751         * manual/string.texi (strtok): Remove duplicate paragraph.
11753 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11755         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11756         libgcc not supporting `rflags' unwinding (register # >= 17).
11758 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11760         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11761         succeeded.
11763 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11764             Jakub Jelinek  <jakub@redhat.com>
11765             Jan Kratochvil  <jan.kratochvil@redhat.com>
11767         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11768         unwind information.
11769         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11770         'restore_rt' even in the 'signal' directory.
11771         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11773 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11775         [BZ #3559]
11776         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11777         malloc crashed.  Don't allocate memory unnecessarily in each
11778         loop.
11780 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11782         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11784 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11786         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11788 2006-11-18  Bruno Haible  <bruno@clisp.org>
11790         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11791         __sysconf only after having tried to call getgroups32.
11793 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11795         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11796         addresses for IPv4 queries if they can be mapped.
11798 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11800         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11801         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11802         (signmask): Add .size directive.
11803         (othermask): Add .type directive.
11805 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11807         * po/nl.po: Update from translation team.
11809         * timezone/zdump.c: Redo fix for BZ #3137.
11811 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11813         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11814         to first_unused after parsing :include: file.
11816 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11818         * timezone/africa: Update from tzdata2006o.
11819         * timezone/antarctica: Likewise.
11820         * timezone/asia: Likewise.
11821         * timezone/australasia: Likewise.
11822         * timezone/backward: Likewise.
11823         * timezone/europe: Likewise.
11824         * timezone/iso3166.tab: Likewise.
11825         * timezone/northamerica: Likewise.
11826         * timezone/southamerica: Likewise.
11827         * timezone/zone.tab: Likewise.
11829         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11830         on machines with 64-bit time_t.
11832         * timezone/checktab.awk: Update from tzcode2006o.
11833         * timezone/ialloc.c: Likewise.
11834         * timezone/private.h: Likewise.
11835         * timezone/scheck.c: Likewise.
11836         * timezone/tzfile.h: Likewise.
11837         * timezone/tzselect.ksh: Likewise.
11838         * timezone/zdump.c: Likewise.
11839         * timezone/zic.c: Likewise.
11841         [BZ #3483]
11842         * elf/ldconfig.c (main): Call setlocale and textdomain.
11843         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11845         [BZ #3480]
11846         * manual/argp.texi: Fix typos.
11847         * manual/charset.texi: Likewise.
11848         * manual/errno.texi: Likewise.
11849         * manual/filesys.texi: Likewise.
11850         * manual/lang.texi: Likewise.
11851         * manual/maint.texi: Likewise.
11852         * manual/memory.texi: Likewise.
11853         * manual/message.texi: Likewise.
11854         * manual/resource.texi: Likewise.
11855         * manual/search.texi: Likewise.
11856         * manual/signal.texi: Likewise.
11857         * manual/startup.texi: Likewise.
11858         * manual/stdio.texi: Likewise.
11859         * manual/sysinfo.texi: Likewise.
11860         * manual/syslog.texi: Likewise.
11861         * manual/time.texi: Likewise.
11862         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11864         [BZ #3465]
11865         * sunrpc/clnt_raw.c: Minimal message improvements.
11866         * sunrpc/pm_getmaps.c: Likewise.
11867         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11868         * nis/nis_print_group_entry.c: Likewise.
11869         * locale/programs/repertoire.c: Likewise.
11870         * locale/programs/charmap.c: Likewise.
11871         * malloc/memusage.sh: Likewise.
11872         * elf/dl-deps.c: Likewise.
11873         * locale/programs/ld-collate.c: Likewise.
11874         * libio/vswprintf.c: Likewise.
11875         * malloc/memusagestat.c: Likewise.
11876         * sunrpc/auth_unix.c: Likewise.
11877         * sunrpc/rpc_main.c: Likewise.
11878         * nscd/cache.c: Likewise.
11879         * locale/programs/repertoire.c: Unify output messages.
11880         * locale/programs/charmap.c: Likewise.
11881         * locale/programs/ld-ctype.c: Likewise.
11882         * locale/programs/ld-monetary.c: Likewise.
11883         * locale/programs/ld-numeric.c: Likewise.
11884         * locale/programs/ld-time.c: Likewise.
11885         * elf/ldconfig.c: Likewise.
11886         * nscd/selinux.c: Likewise.
11887         * elf/cache.c: Likewise.
11888         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11890         [BZ #3451]
11891         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11892         change atomic.
11893         (ceil): Likewise.
11895 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11897         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11898         if N is one bigger than return value.
11899         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11900         and l1 last arguments, if buf is defined, verify the return value
11901         equals to strlen (buf) and verify no byte beyond passed length
11902         is modified.
11904 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11906         * po/sv.po: Update from translation team.
11908 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11910         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11911         noinline attribute.
11913 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11915         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11916         noinline attribute.
11918         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11919         Use __new_sys_siglist instead of _sys_siglist_internal as
11920         second macro argument.
11921         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11922         strong_alias.
11924 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11926         [BZ #3493]
11927         * posix/unistd.h (sysconf): Remove const attribute.
11929         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11930         temporary or deprecated addresses.
11931         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11933         * string/Makefile (tests): Add tst-strxfrm2.
11934         * string/tst-strxfrm2.c: New file.
11936 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11938         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11939         rather than r->r_brk.
11941 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11943         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11944         optimization even if needed > n.
11946         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11947         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11948         return false, otherwise return true.
11949         (cache_rpath): Return decompose_rpath return value.
11951 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11953         * include/libc-symbols.h (declare_symbol): Rename to...
11954         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11955         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11956         .size directive.
11957         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11958         changes.
11959         * sysdeps/gnu/siglist.c: Likewise.
11961 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11963         * sysdeps/powerpc/fpu/bits/mathinline.h
11964         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11965         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11967 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11969         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11970         Update handling of cache descriptor 0x49 for new models.
11971         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11972         Likewise.
11974 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11976         * malloc/memusage.c (dest): Reset not_me back to false after
11977         printing statistics.
11979 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11981         * configure.in: Work around ld --help change and avoid -z relro
11982         test completely if the architecture doesn't care about security.
11984 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11986         * po/sv.po: Update from translation team.
11988 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11990         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11991         generate compatibility version.
11993 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11995         * configure.in: Relax -z relro requirement a bit.
11997         * po/sv.po: Update from translation team.
11999 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12001         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12002         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12003         * elf/dl-close.c (_dl_close_worker): Likewise.
12004         * elf/dl-open.c (_dl_open_worker): Likewise.
12005         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12007 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12009         * configure.in: Require assembler support for visibility, compiler
12010         support for visibility and aliases, linker support for various -z
12011         options.
12012         * Makeconfig: Remove conditional code which now is unnecessary.
12013         * config.h.in: Likewise.
12014         * config.make.in: Likewise.
12015         * dlfcn/Makefile: Likewise.
12016         * elf/Makefile: Likewise.
12017         * elf/dl-load.c: Likewise.
12018         * elf/rtld.c: Likewise.
12019         * include/libc-symbols.h: Likewise.
12020         * include/stdio.h: Likewise.
12021         * io/Makefile: Likewise.
12022         * io/fstat.c: Likewise.
12023         * io/fstat64.c: Likewise.
12024         * io/fstatat.c: Likewise.
12025         * io/fstatat64.c: Likewise.
12026         * io/lstat.c: Likewise.
12027         * io/lstat64.c: Likewise.
12028         * io/mknod.c: Likewise.
12029         * io/mknodat.c: Likewise.
12030         * io/stat.c: Likewise.
12031         * io/stat64.c: Likewise.
12032         * libio/stdio.c: Likewise.
12033         * nscd/Makefile: Likewise.
12034         * stdlib/Makefile: Likewise.
12035         * stdlib/atexit.c: Likewise.
12036         * sysdeps/generic/ldsodefs.h: Likewise.
12037         * sysdeps/i386/dl-machine.h: Likewise.
12038         * sysdeps/i386/sysdep.h: Likewise.
12039         * sysdeps/i386/i686/memcmp.S: Likewise.
12040         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12041         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12042         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12044         * Makerules: USE_TLS support is now default.
12045         * tls.make.c: Likewise.
12046         * csu/Versions: Likewise.
12047         * csu/libc-start.c: Likewise.
12048         * csu/libc-tls.c: Likewise.
12049         * csu/version.c: Likewise.
12050         * dlfcn/dlinfo.c: Likewise.
12051         * elf/dl-addr.c: Likewise.
12052         * elf/dl-cache.c: Likewise.
12053         * elf/dl-close.c: Likewise.
12054         * elf/dl-iteratephdr.c: Likewise.
12055         * elf/dl-load.c: Likewise.
12056         * elf/dl-lookup.c: Likewise.
12057         * elf/dl-object.c: Likewise.
12058         * elf/dl-open.c: Likewise.
12059         * elf/dl-reloc.c: Likewise.
12060         * elf/dl-support.c: Likewise.
12061         * elf/dl-sym.c: Likewise.
12062         * elf/dl-sysdep.c: Likewise.
12063         * elf/dl-tls.c: Likewise.
12064         * elf/ldconfig.c: Likewise.
12065         * elf/rtld.c: Likewise.
12066         * elf/tst-tls-dlinfo.c: Likewise.
12067         * elf/tst-tls1.c: Likewise.
12068         * elf/tst-tls10.h: Likewise.
12069         * elf/tst-tls14.c: Likewise.
12070         * elf/tst-tls2.c: Likewise.
12071         * elf/tst-tls3.c: Likewise.
12072         * elf/tst-tls4.c: Likewise.
12073         * elf/tst-tls5.c: Likewise.
12074         * elf/tst-tls6.c: Likewise.
12075         * elf/tst-tls7.c: Likewise.
12076         * elf/tst-tls8.c: Likewise.
12077         * elf/tst-tls9.c: Likewise.
12078         * elf/tst-tlsmod1.c: Likewise.
12079         * elf/tst-tlsmod13.c: Likewise.
12080         * elf/tst-tlsmod13a.c: Likewise.
12081         * elf/tst-tlsmod14a.c: Likewise.
12082         * elf/tst-tlsmod2.c: Likewise.
12083         * elf/tst-tlsmod3.c: Likewise.
12084         * elf/tst-tlsmod4.c: Likewise.
12085         * elf/tst-tlsmod5.c: Likewise.
12086         * elf/tst-tlsmod6.c: Likewise.
12087         * include/errno.h: Likewise.
12088         * include/link.h: Likewise.
12089         * include/tls.h: Likewise.
12090         * locale/global-locale.c: Likewise.
12091         * locale/localeinfo.h: Likewise.
12092         * malloc/arena.c: Likewise.
12093         * malloc/hooks.c: Likewise.
12094         * malloc/malloc.c: Likewise.
12095         * resolv/Versions: Likewise.
12096         * sysdeps/alpha/dl-machine.h: Likewise.
12097         * sysdeps/alpha/libc-tls.c: Likewise.
12098         * sysdeps/generic/ldsodefs.h: Likewise.
12099         * sysdeps/generic/tls.h: Likewise.
12100         * sysdeps/i386/dl-machine.h: Likewise.
12101         * sysdeps/ia64/dl-machine.h: Likewise.
12102         * sysdeps/ia64/libc-tls.c: Likewise.
12103         * sysdeps/mach/hurd/fork.c: Likewise.
12104         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12105         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12106         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12107         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12108         * sysdeps/s390/libc-tls.c: Likewise.
12109         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12110         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12111         * sysdeps/sh/dl-machine.h: Likewise.
12112         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12113         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12114         * sysdeps/x86_64/dl-machine.h: Likewise.
12116         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12117         split out locking and parameter checking.
12118         (_dl_close): Call _dl_close_worker after locking and checking.
12119         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12120         _dl_close.
12121         * elf/Makefile: Add rules to build and run tst-thrlock.
12122         * elf/tst-thrlock.c:  New file.
12124         [BZ #3426]
12125         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12126         reality.
12128         [BZ #3429]
12129         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12130         we are sure we do not need it anymore for _dl_close.  Also move
12131         the asserts inside the lock region.
12132         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12134 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12136         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12137         argument.
12138         (_dl_lookup_symbol_x): Adjust caller.
12140         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12141         _ns_global_scope.
12142         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12144         * elf/dl-libc.c: Revert l_scope name changes.
12145         * elf/dl-load.c: Likewise.
12146         * elf/dl-object.c: Likewise.
12147         * elf/rtld.c: Likewise.
12148         * elf/dl-close.c (_dl_close): Likewise.
12149         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12150         always use __rtld_mrlock_{change,done}.  Always free old scope list
12151         here if not l_scope_mem.
12152         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12153         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12154         the lookup and __rtld_mrlock_unlock it after the lookup.
12155         * elf/dl-sym.c: Likewise.
12156         * include/link.h (struct r_scoperec): Remove.
12157         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12158         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12160 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12162         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12164 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12166         * configure.in: Disable building profile libraries by default.
12168 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12170         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12171         as signed longs, check for x_base + pos overflow.
12172         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12173         * sunrpc/tst-xdrmem2.c: New test.
12175 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12177         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12178         _dl_lookup_symbol_x code.
12180 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12182         * elf/dl-runtime.c: Include sysdep-cancel.h.
12183         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12184         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12185         instead of catomic_* macros.
12186         * elf/dl-sym.c: Include sysdep-cancel.h.
12187         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12188         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12189         * elf/dl-close.c: Include sysdep-cancel.h.
12190         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12191         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12192         * elf/dl-open.c: Include sysdep-cancel.h.
12193         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12194         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12196 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12198         [BZ #3313]
12199         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12200         fastbin rather than end of fastbin array.
12202 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12204         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12205         body macro.
12206         * sysdeps/x86_64/bits/atomic.h
12207         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12208         (catomic_decrement): Use correct body macro.
12210 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12212         * include/atomic.h: Add a unique prefix to all local variables
12213         in macros.
12214         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12216 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12218         [BZ #3369]
12219         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12220         and 7.
12222 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12224         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12226 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12228         [BZ #3313]
12229         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12230         determine highest fast bin to consolidate, always look into all of
12231         them.
12232         (do_check_malloc_state): Only require for empty bins for large
12233         sizes in main arena.
12235         * libio/stdio.h: Add more __wur attributes.
12237         * elf/dl-minimal.c (realloc): Optimize last patch.
12239 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12241         [BZ #3352]
12242         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12243         and use memcpy() if it does.
12245 2006-11-12  Andreas Jaeger  <aj@suse.de>
12247         [BZ #2510]
12248         * manual/search.texi (Hash Search Function): Clarify.
12249         (Array Search Function): Clarify.
12251 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12253         [BZ #2830]
12254         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12255         shifting.
12256         * math/atest-exp2.c (read_mpn_hex): Likewise.
12257         * math/atest-sincos.c (main): Likewise.
12259 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12261         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12262         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12263         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12264         version GLIBC_2.6.
12265         * Versions.def: Add GLIBC_2.6 for libc.
12267         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12269         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12271 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12273         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12275         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12277         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12278         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12280 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12282         * include/atomic.c: Define catomic_* operations.
12283         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12284         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12285         * malloc/memusage.c: Likewise.
12286         * gmon/mcount.c: Likewise.
12287         * elf/dl-close.c: Likewise.
12288         * elf/dl-open.c: Likewise.
12289         * elf/dl-profile.c: Likewise.
12290         * elf/dl-sym.c: Likewise.
12291         * elf/dl-runtime.c: Likewise.
12292         * elf/dl-fptr.c: Likewise.
12293         * resolv/res_libc.c: Likewise.
12295 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12297         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12298         components which lack them.
12300         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12301         at least one entry consisting of the parameter concatenated with
12302         the domain.
12304 2006-10-10  Roland McGrath  <roland@frob.com>
12306         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12307         * sysdeps/mach/hurd/futimes.c: Likewise.
12308         * sysdeps/mach/hurd/lutimes.c: Likewise.
12310 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12311             Jakub Jelinek  <jakub@redhat.com>
12313         Implement reference counting of scope records.
12314         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12315         from the list in objects which remain.  Always allocate new scope
12316         record.
12317         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12318         don't resize, allocate a new one.
12319         * elf/dl-runtime.c: Update reference counters before using a scope
12320         array.
12321         * elf/dl-sym.c: Likewise.
12322         * elf/dl-libc.c: Adjust for l_scope name change.
12323         * elf/dl-load.c: Likewise.
12324         * elf/dl-object.c: Likewise.
12325         * elf/rtld.c: Likewise.
12326         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12327         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12328         Add l_scoperec_lock.
12329         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12330         * sysdeps/generic/rtld-lowlevel.h: New file.
12332         * include/atomic.h: Rename atomic_and to atomic_and_val and
12333         atomic_or to atomic_or_val.  Define new macros atomic_and and
12334         atomic_or which do not return values.
12335         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12336         Various cleanups.
12337         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12339         * po/sv.po: Update from translation team.
12341 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12343         * Versions.def: Add GLIBC_2.6 to libpthread.
12345         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12346         (versioned_symbol): Likewise.
12347         (compat_symbol): Likewise.
12349         * po/tr.po: Update from translation team.
12351 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12353         * nis/Banner: Removed.  It's been integral part forever and the
12354         author info is incomplete anyway.
12355         * libio/Banner: Likewise.
12357         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12358         code, make sure the nis_freeresult call doesn't crash and that the
12359         result is reported correctly.
12361 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12363         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12364         when callback is NULL.
12366         * nis/Versions (libnss_nisplus): Add
12367         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12368         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12369         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12370         _nss_create_tablename): Rename to...
12371         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12372         ... these.  No longer static.
12373         (internal_setgrent): Adjust users.
12374         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12375         Don't use locking around _nss_grp_create_tablename call.
12376         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12378 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12380         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12382 2006-10-06  Andreas Jaeger  <aj@suse.de>
12384         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12386 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12388         * po/pl.po: Update from translation team.
12390         * nscd/nscd.c (main): Fix typo in message.
12391         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12393 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12395         [BZ #3291]
12396         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12397         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12398         (__sigprocmask): Define.
12400 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12402         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12403         used.
12405 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12407         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12408         in oldtotal and newtotal calculation.
12409         * nscd/nscd-client.h (struct mapped_database): Add datasize
12410         field.
12411         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12412         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12413         increased.
12414         (__nscd_cache_search): Add checks to make sure we never reference
12415         data beyond the current mapping.
12417 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12419         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12420         variables const to avoid compiler warnings.
12422         * io/fts.c (fts_close): Remove redundant checks.
12423         (fts_build): Likewise.
12424         (fts_palloc): Likewise.
12426         * manual/message.texi (Advanced gettext functions,
12427         Using gettextized software): Fix typos.
12429 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12431         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12432         explain why there are no leaks.
12434 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12436         * libio/wmemstream.c: Include <wchar.h>.
12437         * libio/bug-wmemstream1.c: Likewise.
12438         * libio/tst-wmemstream1.c: Likewise.
12439         * libio/tst-wmemstream2.c: Likewise.
12441         * version.h (RELEASE): Bump to 2.5.
12442         * README: Regenerated.
12444         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12446         [BZ #3273]
12447         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12448         found no group members.
12449         Patch by Petr Baudis.
12451 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12453         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12454         assert bootstrap_map.l_tls_modid is zero.
12455         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12456         if USE___THREAD.
12458 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12460         * libio/stdio.h: Move open_wmemstream prototype to ...
12461         * wcsmbs/wchar.h: ... here.
12463 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12465         [BZ #3252]
12466         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12467         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12468         __{,l}chown to handle the rest.
12469         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12470         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12471         __{,l}chown to handle the rest.
12472         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12473         i386/fchownat.c.
12474         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12475         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12477         [BZ #3253]
12478         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12479         time, rather allocate increasingly bigger arrays of pointers, if
12480         possible with alloca, if too large with malloc.
12482 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12484         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12486         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12488 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12490         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12491         home addresses.
12492         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12493         IFA_F_HOMEADDRESS flag for interfaces.
12494         * include/ifaddrs.h (struct in6addrinfo): Define
12495         in6ai_homeaddress.
12497 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12499         [BZ #3225]
12500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12501         PTR_DEMANGLE3): Define.
12502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12503         PTR_DEMANGLE3): Likewise.
12504         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12505         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12506         Likewise.
12507         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12509 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12511         * po/libc.pot: Regenerated.
12512         * po/be.po: Updated.
12513         * po/ca.po: Likewise.
12514         * po/cs.po: Likewise.
12515         * po/da.po: Likewise.
12516         * po/de.po: Likewise.
12517         * po/el.po: Likewise.
12518         * po/en_GB.po: Likewise.
12519         * po/es.po: Likewise.
12520         * po/fi.po: Likewise.
12521         * po/fr.po: Likewise.
12522         * po/gl.po: Likewise.
12523         * po/hr.po: Likewise.
12524         * po/hu.po: Likewise.
12525         * po/ja.po: Likewise.
12526         * po/ko.po: Likewise.
12527         * po/nb.po: Likewise.
12528         * po/nl.po: Likewise.
12529         * po/pl.po: Likewise.
12530         * po/pt_BR.po: Likewise.
12531         * po/ru.po: Likewise.
12532         * po/rw.po: Likewise.
12533         * po/sk.po: Likewise.
12534         * po/sv.po: Likewise.
12535         * po/tr.po: Likewise.
12536         * po/zh_CN.po: Likewise.
12537         * po/zh_TW.po: Likewise.
12539         [BZ #3137]
12540         * iconv/iconv_prog.c (main): Fix spelling in error message.
12541         * iconv/iconvconfig.c (main): Likewise.
12542         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12543         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12544         * locale/programs/localedef.c (main): Likewise.
12545         * locale/programs/repertoire.c (repertoire_read): Likewise.
12546         * timezone/zdump.c (main): Likewise.
12547         * nscd/connections.c (handle_request): Fix spelling in log message.
12548         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12550 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12552         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12553         interfaces.
12555 2006-09-20  Andreas Jaeger  <aj@suse.de>
12557         * math/libm-test.inc (lrint_test_upward): Fix typo.
12559 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12561         [BZ #2592]
12562         * math/libm-test.inc (lrint_test_tonearest): New function.
12563         (lrint_test_towardzero): New function.
12564         (lrint_test_downward): New function.
12565         (lrint_test_upward): New function.
12566         (main): Run these new tests.
12567         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12568         of values near to 0.
12569         (two52): Use double not long double.
12570         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12571         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12572         (two23): Use float not double.
12573         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12574         (two23): Use float not double.
12575         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12576         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12577         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12578         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12580 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12582         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12583         Cast sp to unsigned long to avoid compiler warning.
12584         Use __makecontext_ret function instead of a trampoline on the stack.
12585         (__makecontext_ret): New function.
12586         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12588 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12590         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12591         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12592         bits.
12594 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12596         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12597         sure no reference to the unloaded map's search list remains in the
12598         dependency's scope.
12600 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12602         * elf/Makefile: Add rules to build and run unload7 test.
12603         * elf/unload7.c: New test.
12604         * elf/unload7mod1.c: New file.
12605         * elf/unload7mod2.c: New file.
12607 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12609         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12610         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12611         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12612         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12613         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12614         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12615         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12616         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12617         PTRACE_GETEVENTMSG): Likewise.
12618         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12619         values.
12621 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12623         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12624         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12625         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12626         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12628 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12630         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12631         write '\0' to the fd.
12632         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12633         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12634         Change regs to unsigned long pointer from unsigned int, fix fscr
12635         offset.
12637 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12639         * io/Makefile (CFLAGS-fstatat.c): Set.
12640         (CFLAGS-fstatat64.c): Likewise.
12641         (CFLAGS-mknodat.c): Likewise.
12643         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12644         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12645         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12646         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12648 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12649             Steven Munroe  <sjmunroe@us.ibm.com>
12651         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12652         names to the beginning.  Rename "cell" to "cellbe".
12653         (_dl_powerpc_platforms): New.
12654         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12655         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12656         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12657         (_DL_HWCAP_PLATFORM): Define to new mask.
12658         (_dl_platform_string, _dl_string_platform): New functions.
12659         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12660         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12662 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12664         [BZ #2526]
12665         * README.libm: Fix a thinko in sqrt algorithm description.
12667         [BZ #3143]
12668         * manual/string.texi (argz_delete): Fix prototype.
12669         Patch by <alpt@freaknet.org>.
12671 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12673         [BZ #3138]
12674         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12675         * io/tst-fcntl.c (do_prepare): Likewise.
12676         * posix/tst-exec.c (do_prepare): Likewise.
12677         * posix/tst-preadwrite.c (do_prepare): Likewise.
12678         * posix/tst-spawn.c (do_prepare): Likewise.
12679         * posix/tst-truncate.c (do_prepare): Likewise.
12680         * rt/tst-aio.c (do_prepare): Likewise.
12681         * rt/tst-aio64.c (do_prepare): Likewise.
12682         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12683         size_t.
12685 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12687         [BZ #2821]
12688         * time/mktime.c (guess_time_tm): Fix overflow detection.
12689         * time/Makefile (tests): Add bug-mktime1.
12690         * time/bug-mktime1.c: New file.
12692         [BZ #3189, #3188]
12693         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12694         (mremap): Likewise.
12696 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12698         [BZ #1006]
12699         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12700         Ensure relocation doesn't clobber any bits outside of the
12701         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12702         R_SPARC_HI22 and R_SPARC_H44.
12704         [BZ #2775]
12705         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12706         (long) (MINSIZE + nb - old_size) is positive.
12708         * malloc/arena.c (grow_heap): When growing bail even if new_size
12709         is negative.
12711         [BZ #3155]
12712         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12713         stack below r1.
12715 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12717         * posix/regex_internal.c (re_string_reconstruct): Handle
12718         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12719         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12720         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12721         re_string_context_at.
12722         * posix/Makefile: Add rules to build and run bug-regex26 test.
12723         * posix/bug-regex26.c: New test.
12725         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12726         rather than col_sym_free.  Move seqp declaration earlier.
12728         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12730 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12732         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12733         decl before first goto out.
12735 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12737         * Makerules (shlib.lds): If have-hash-style, put .hash section
12738         at the end of the RO segment.
12740 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12742         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12743         style hash table format is used.
12745 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12747         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12748         randomization rather than before.
12749         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12751 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12753         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12755         * malloc/malloc.c (_int_malloc): Use full list insert and not
12756         shortcut which assumes the list is empty for large requests
12757         too.
12759         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12761 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12763         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12764         and offout arguments to the prototype.
12765         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12766         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12767         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12768         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12769         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12770         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12771         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12772         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12774 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12776         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12778         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12779         dlopen parameters.
12781 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12783         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12784         only if herrno is NETDB_INTERNAL.  Handle errors other than
12785         ERANGE outside of the loops, handle TRY_AGAIN.
12787         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12788         if other's ctype category was missing.
12789         * locale/programs/ld-collate.c (collate_read): Return if
12790         copy_locale's collate category is missing.
12792 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12794         [BZ #2684]
12795         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12796         arenas if allocation failed.
12797         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12799 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12801         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12802         waste bins[0..1].
12803         (malloc_state): Reduce bins size by 2.
12804         (_int_malloc): Fix test for large enough buffer for early termination.
12805         When no unsorted block matches perfectly and an exiting block has
12806         to be split, use full list insert and not shortcut which assumes
12807         the list is empty.
12809         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12810         failure.
12812 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12814         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12815         do anything.
12817         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12818         symbol require exact match (these are PLTs).
12819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12820         (_dl_ppc64_addr_sym_match): Likewise.
12822         [BZ #2683]
12823         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12824         If symbol has a value use it.
12825         * elf/tst-dladdr1.c: New file.
12826         * elf/Makefile: Add rules to build and run tst-addr1.
12828 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12830         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12831         keeps failing and heap growth or new heap creation isn't
12832         successful either.
12833         * malloc/tst-malloc.c (main): Add new tests.
12835 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12837         [BZ #2734]
12838         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12839         as in the x86-64 code to use bswap.
12841 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12843         [BZ #2680]
12844         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12845         __USE_UNIX98.
12846         * posix/bits/unistd.h: Likewise.
12848 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12850         [BZ #2751]
12851         * string/strchr.c: Add cast to avoid warning.
12853 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12855         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12856         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12857         limit is needed to avoid the exploding of the address space
12858         requirement for secondary heaps.
12859         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12860         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12862 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12864         [BZ #3018]
12865         * Makerules (depfiles): Handle extra-test-objs the same as
12866         extra-objs.
12867         (common-mostlyclean): Likewise.
12868         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12869         instead.
12870         * elf/Makefile (extra-objs): Likewise.
12871         * stdlib/Makefile (extra-objs): Likewise.
12873 2006-08-14  Eric Blake  <ebb9@byu.net>
12875         [BZ #3044]
12876         * misc/error.h: Assume C89 or better.
12877         * misc/error.c: Likewise.
12879 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12881         [BZ #3040]
12882         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12883         __ASSUME_ATFCTS is defined.
12885 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12887         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12888         to sort in each call.
12890         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12891         is empty simply return and use next service.
12892         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12894         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12895         tells us when not finding a charmap file is an error.
12896         * locale/programs/charmap.h: Adjust charmap_read prototype.
12897         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12898         cannot find a charmap.
12899         * locale/programs/localedef.c (main): Adjust charmap_read call.
12901 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12903         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12904         sysdeps/posix/pause.c implementation instead.
12906 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12908         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12909         to EPERM.
12911 2006-08-13  Andreas Schwab  <schwab@suse.de>
12913         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12914         Don't clobber caller's LRSAVE.
12915         (_dl_prof_resolve): Likewise.
12917 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12919         [BZ #1996]
12920         * libio/memstream.c (open_memstream): Allocate initial buffer with
12921         calloc.
12922         * libio/wmemstream.c (open_wmemstream): Likewise.
12923         * libio/strops.c: Pretty printing.
12924         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12925         (enlarge_userbuf): New function.
12926         (_IO_str_seekoff): Call it if seek position is larger than current
12927         buffer.
12928         * libio/wstrops.c: Likewise.
12929         * libio/vasprintf.c: Add comment as to why we do not have to use
12930         calloc instead of malloc to allocate initial buffer.
12931         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12932         * libio/bug-memstream1.c: New file.
12933         * libio/bug-wmemstream1.c: New file.
12935 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12937         * libio/wstrops.c: Remove dead macro definitions and comments.
12938         * libio/strops.c: Likewise.
12940         [BZ #2764]
12941         * login/utmpname.c (__utmpname): Remove unnecessary test.
12943 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12945         [BZ #2832]
12946         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12947         0s from integers.
12949 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12951         [BZ #2987]
12952         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12953         for CPU clocks.
12954         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12955         setting of CPU clocks.
12957 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12959         [BZ #2841]
12960         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12961         since C99 requires the result to promote to 'int' when uint_least8_t
12962         and uint_least16_t promote to 'int'.
12964 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12966         [BZ #3013]
12967         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12968         lenght of one output field, correct bitmask creation.
12969         * locale/programs/ld-time.c: Add alignment.
12971         [BZ #2997]
12972         * misc/error.c: Add space between program name and message if file
12973         name is missing.
12975 2006-08-03  Eric Blake  <ebb9@byu.net>
12977         [BZ #2998]
12978         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12980 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12982         * malloc/memusagestat.c: Silence warnings.
12984         * malloc/malloc.c: Dynamically size mmap treshold if the program
12985         frees mmaped blocks.
12986         Patch by Valerie Henson and Arjan van de Ven.
12988 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12990         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12991         __USE_GNU.
12993         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12994         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12995         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12996         Only provide var definitions in strtol_l (or for *ull*
12997         in strtoll_l).
12999         * stdio-common/bug16.c (tests): New array.
13000         (do_tests): Allow the first hexadecimal digit
13001         to be 1, 2, 4 or 8.  Do 3 additional tests.
13003         * sysdeps/s390/fpu/libm-test-ulps: Update.
13005         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13006         fchownat syscall if available.
13007         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13008         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13009         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13011 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13013         * nis/nis_xdr.c: Avoid some function calls.
13015 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13016             Ulrich Drepper  <drepper@redhat.com>
13018         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13019         short cut if only one name component is stripped away.
13021 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13023         * nis/nis_call.c: Minor cleanups throughout.
13024         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13025         (first_shoot): Add search_parent_first parameter.  Only if it is set
13026         search parent server first.
13027         If directory for table found through cold start cache is not the same
13028         as referenced in the cache, don't use it.
13029         (__nisfind_server): Take additional parameter.  Pass it on to
13030         first_shoot.
13031         (__prepare_niscall): Adjust __nisfind_server call.
13032         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13033         * nis/nis_table.c: Adjust __nisfind_server call.
13034         * nis/nis_lookup.c: Likewise.
13035         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13037 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13039         [BZ #2182]
13040         * math/s_cacosh.c: Return values from positive branch.
13041         * math/s_cacoshf.c: Likewise.
13042         * math/s_cacoshl.c: Likewise.
13044         [BZ #2883]
13045         * sysvipc/sys/msg.h: Change return value to ssize_t.
13046         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13047         * sysvipc/msgrcv.c: Likewise.
13048         * include/sys/msg.h: Likewise.
13050         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13051         test introduced in patch for bz #661.
13052         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13053         element for NEWGROUPS.
13055         [BZ #2908]
13056         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13057         'f', use '1' as leading digit not '\1'.
13058         * stdio-common/Makefile (tests): Add bug16.
13059         * stdio-common/bug16.c: New file.
13061         [BZ #2914]
13062         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13063         and don't try to open it.  The patch introducing the macro
13064         contained a bug and used the same file name as the new file
13065         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13066         this out completely.
13068         [BZ #2926]
13069         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13070         Patch by Jerry James <Jerry.James@usu.edu>.
13072         * rt/Makefile (tests): Add tst-clock2.
13073         * rt/tst-clock2.c: New file.
13075         [BZ #2978]
13076         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13077         function and its parameters and pass it to new thread.
13078         (__gai_notify): Add support for alternative waiting for completion.
13079         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13080         waiting for completion.
13081         * resolv/getaddrinfo_a.c: Likewise.
13082         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13083         waiting for completion is used.
13084         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13085         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13086         * resolv/gai_error.c: Likewise.
13087         * resolv/gai_sigqueue.c: Likewise.
13089 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13091         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13092         errno to EBADF and return MACH_PORT_NULL.
13094 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13096         [BZ #2980]
13097         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13099 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13101         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13102         walk them instead of the symbol table.
13104 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13106         [BZ #2098]
13107         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13108         status of NSS calls, not the number of returned entries.
13110         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13111         request_key, keyctl.
13113 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13115         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13117 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13119         * elf/tst-auditmod1.c: Fix typo in #error.
13121 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13123         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13125         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13127 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13129         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13130         that the directory is empty even on non-POSIX filesystems.
13132 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13134         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13136         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13137         the backend NSS module.  If backend setgrent call failed, don't have
13138         internal_setgrent fail.  Just remember this until it is needed.
13139         * nis/nss_compat/compat-pwd.c: Likewise.
13140         * nis/nss_compat/compat-spwd.c: Likewise.
13142 2006-07-30  Roland McGrath  <roland@redhat.com>
13144         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13145         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13146         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13147         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13149         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13150         (nanosleep_not_cancel): New macro.
13151         (sigsuspend_not_cancel): new macro.
13152         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13153         (do_sigsuspend): Define as inline.
13154         (__sigsuspend): Always use do_sigsuspend.
13155         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13156         * include/signal.h: Declare __sigsuspend_nocancel.
13157         * sysdeps/posix/pause.c
13158         [! NO_CANCELLATION] (__pause_nocancel): New function.
13160         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13161         * include/time.h (__nanosleep_nocancel): Likewise.
13163 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13165         * locale/programs/localedef.c (add_to_readlist): Rename local
13166         variables to avoid confusion.
13168         * locale/programs/charmap.c (charmap_read): Emit error message if
13169         charmap couldn't be found or read.
13171 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13173         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13174         __ASSUME_FUTEX_LOCK_PI.
13175         * include/time.h: Declare __nanosleep_nocancel.
13176         * include/unistd.h: Declare __pause_nocancel.
13178         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13179         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13180         get the __stack_chk_fail_local definition when it's needed.
13182 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13184         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13185         * dlfcn/bug-atexit3.c: New file.
13186         * dlfcn/bug-atexit3-lib.cc: New file.
13188         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13189         used when the namespace is not the base namespace.
13191 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13193         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13194         (__new_exitfn): Bump it in every successful call.
13195         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13196         more exit handlers, call them right away.
13197         * stdlib/exit.h: Declare __new_exitfn_called.
13199 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13201         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13202         calling registered handler.
13204         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13205         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13206         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13207         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13208         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13209         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13210         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13211         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13213 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13215         * elf/dl-lookup.c (dl_new_hash): New functions.
13216         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13217         value here.  Compute new-style hash value.  Pass new hash value
13218         and reference to variable with the old value to do_lookup_x.
13219         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13220         old-style hash table.
13221         (_dl_debug_bindings): Pass new hash value and reference to variable
13222         with the old value to do_lookup_x.
13223         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13224         new-style hash value and change old-style hash value parameter to
13225         be a reference.  Reoganize functions to determine whether
13226         new-style hash table is available.  Only fall back on old-style
13227         table.  If old-style hash value is needed, compute it here.
13228         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13229         entry.
13230         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13231         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13232         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13233         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13234         * Makeconfig: If linker supports --hash-style option add it to all
13235         linker command lines to build DSOs.
13236         * config.make.in: Define have-hash-style.
13237         * configure.in: Test whether linker supports --hash-style option.
13239         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13240         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13242 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13244         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13245         auditing.
13247         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13248         RPATH of main map twice.
13250 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13252         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13253         look further, return original strings.
13254         (_nl_find_msg): Do not return found translation if the conversion
13255         failed.  Either signal the string is unusable or that something went
13256         wrong and the original should be used.
13258 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13260         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13262 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13264         [BZ #2766]
13265         * misc/insremque.c (insque): Handle prev == NULL.
13266         * misc/Makefile (tests): Add tst-insremque.
13267         * misc/tst-insremque.c: New test.
13269 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13271         [BZ #2792]
13272         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13273         conflict with DL_DST_REQUIRED.
13275 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13277         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13278         match what Solaris does.
13280 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13282         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13283         local_setegid instead of seteuid and setegid.
13284         * sysdeps/generic/local-setxid.h: New file.
13285         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13287         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13289         * string/Makefile (tests): Add bug-envz1.
13290         * string/bug-envz1.c: New file.
13292 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13294         * posix/regex_internal.c (re_string_skip_chars): If no character has
13295         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13296         to the byte which couldn't be converted.
13297         (re_string_reconstruct): Don't clear valid_raw_len before calling
13298         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13299         tip_context using re_string_context_at.
13300         * posix/Makefile: Add rules to build and run bug-regex25 test.
13301         * posix/bug-regex25.c: New test.
13303 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13305         [BZ #2703]
13306         * string/envz.c (envz_strip): Correct erroneously reversed src
13307         and dest parameters to memmove() invocation.
13309 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13311         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13312         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13313         to make sure the database has been already invalidated.
13314         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13315         after the cache has been invalidated.  Use pthread_mutex_lock rather
13316         than pthread_mutex_trylock if fd != -1.
13317         * nscd/connections.c (invalidate_cache): Add fd argument, write
13318         response to fd if not calling prune_cache, pass fd to prune_cache.
13319         (handle_request): Adjust invalidate_cache caller.
13320         (nscd_run): Pass -1 as fd to prune_cache.
13322 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13324         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13325         the correct place.
13327 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13329         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13330         * nscd/cache.c (prune_cache): Take prunelock before starting the
13331         work.  Just return in case it is already taken.
13332         * nscd/connections.c (dbs): Initialize .prunelock.
13334 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13336         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13337         copying.  No need to allocate new array for group members.  Just
13338         move the pointers and update the size.
13340         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13341         Avoid memory leak in case realloc fails.  Simplification for
13342         better code generation.
13344         Avoid deprecation warning because of libc_hidden_proto for
13345         inet6_option_alloc.
13346         * inet/inet6_option.c (option_alloc): Renamed from
13347         inet6_option_alloc.  Made static.
13348         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13349         (inet6_option_append): Call option_alloc.
13350         * include/netinet/in.h: Remove libc_hidden_proto for
13351         inet6_option_alloc.
13353         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13354         for cleanup when cb!=NULL [Coverity CID 233].
13356 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13358         [BZ #2693]
13359         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13360         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13361         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13362         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13363         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13364         and inet6_rth_getaddr.
13365         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13366         array.
13367         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13368         Mark inet6_option_* interfaces as deprecated.
13369         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13370         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13371         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13372         inet6_rth_segments, and inet6_rth_getaddr.
13373         * inet/inet6_opt.c: New file.
13374         * inet/inet6_rth.c: New file.
13376         * inet/netinet/icmp6.h: Pretty printing.
13378         [BZ #2683]
13379         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13381 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13383         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13384         doing it all here.  When server does not know the answer do not
13385         fail immediate, try parent first.
13387         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13388         overflow test.
13390 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13392         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13393         from __do_niscall.
13394         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13395         and exported.
13396         (__follow_path): New function.  Split out from nis_list.
13397         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13398         _xdr_nis_result.
13399         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13400         _xdr_nis_result.
13401         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13402         and __follow_path.
13403         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13404         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13405         from libnsl for version GLIBC_PRIVATE.
13406         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13407         Remove entry parameter from _nss_nisplus_parse_pwent and
13408         _nss_nisplus_parse_grent.
13409         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13410         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13411         again.  Rewrite getpwent handling to not use nis_first_entry and
13412         nis_next_entry.  Roll out own niscall handling.
13413         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13415         * sunrpc/xdr_rec.c: Fix typo in comment.
13417 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13419         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13420         handling.
13422         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13423         to allocate memory for my_pollfd.  Better initialization of
13424         cb_is_running.  Use TEMP_FAILURE_RETRY.
13426         * malloc/memusage.sh (memusageso): Add quotes.
13427         (memusagestat): Likewise.
13428         * debug/xtrace.sh (pcprofileso): Likewise.
13429         (pcprofiledump): Likewise.
13430         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13431         replacement.
13432         * malloc/Makefile ($(objpfx)memusage): Likewise.
13434         * nis/nis_callback.c (__nis_create_callback): Calls to
13435         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13436         asprintf call fails.
13438         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13439         no uninitialized memory is passed to sendto.
13441 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13443         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13444         of snprintf+strdup.  Handle OOM.
13445         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13446         cb->serv together.  Remove now obsolete free calls.
13447         (__nis_destroy_callback): Remove now obsolete free call.
13449 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13451         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13452         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13453         and ULA respectively). Set precedence for IPv4 address to 10 as
13454         defined in RFC3484 for preferring IPv6.
13455         * posix/gai.conf: Update to match the new default tables.
13457 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13459         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13460         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13461         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13462         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13464         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13465         Removed.
13466         (init_nss_interface): Remove initialization of these variables.
13468 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13470         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13471         nis_free_directory forward to avoid duplication.
13473 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13475         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13476         rec_dirsearch returning NULL.
13477         (first_shoot): Handle __nis_finddirectory returning NULL.
13478         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13480         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13481         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13483 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13485         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13486         pid changed.
13488 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13490         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13492         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13493         * nscd/nscd_getgr_r.c: Likewise.
13495         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13497         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13498         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13500         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13502         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13504         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13506         * include/rpc/auth.h: Mark xdr_des_block_internal and
13507         xdr_opaque_auth_internal as hidden.
13509         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13510         hidden.
13512         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13514         * misc/getusershell.c (okshells): Don't use static initializers,
13515         do it dynamically.
13517         * stdlib/fmtmsg.c (keywords): Change type of len element to
13518         uint32_t to not waste space on 64bit machines.
13520         * locale/setlocale.c: Change _nl_category_names into a string.
13521         Add new _nl_category_name_idxs.  Change all users.
13522         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13523         Declare _nl_category_name_idxs.
13524         * locale/findlocale.c: Adjust for _nl_category_names change.
13525         * locale/loadlocale.c: Likewise.
13526         * locale/newlocale.c: Likewise.
13527         * intl/dcigettext.c: Likewise.
13529         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13530         (add_alias2): ...here.  New function.
13531         (__gconv_read_conf): Simplify builtin alias handling.
13532         (builtin_aliases): Convert to string to avoid relocations.
13533         * iconv/gconv_builtin.h: Add comment about correct formatting.
13535 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13537         * resolv/res_debug.c (loc_ntoa): Make error const.
13539 2006-05-14  Andreas Schwab  <schwab@suse.de>
13541         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13543 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13545         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13546         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13547         sizeof (cpu_set_t).
13549 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13551         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13553         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13555         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13556         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13558         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13559         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13561         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13562         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13563         xdr_cback_data.
13565         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13566         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13567         xdr_ypupdate_args.
13569         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13570         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13572         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13573         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13575         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13576         * include/rpcsvc/nis_callback.h: New file.
13578         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13579         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13581         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13582         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13584         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13585         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13587         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13588         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13590         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13591         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13592         xdr_ypdelete_args.
13594         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13595         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13597         * nis/nis_error.c: Remove table of strings.  Use position
13598         independent mechanism.
13599         * nis/nis_error.h: New file.
13601 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13603         * locale/programs/ld-time.c (time_finish): If wide era name or
13604         format aren't provided, set both wname and wformat to L"".
13606 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13608         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13609         results if the call was succesful.
13611         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13613         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13614         as hidden.
13616 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13618         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13620 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13622         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13623         caller makes sure this is not the case.
13624         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13626 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13628         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13629         calls.
13631         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13632         [Coverity CID 229, 230]
13634         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13635         DGETTEXT calls.
13636         (hol_help): Likewise.  [Coverity CID 226, 227]
13638         * string/argz-replace.c (__argz_replace): Unconditionally call
13639         free on SRC.  [Coverity CID 225]
13641         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13642         the return value of __nis_default_owner and __nis_default_group,
13643         it has been especially allocated.  [Coverity CID 224]
13645         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13646         searchgroup and searchowner.  Significantly simplified.
13647         (__nis_default_owner): Remove duplication.  Do not locally copy the
13648         string before duplicating it.
13649         (__nis_default_group): Likewise.
13651         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13652         we must clear the variable before calling __nisfind_server.
13654         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13655         nis_getnames.  [Coverity CID 223]
13657         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13658         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13660         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13661         allocate memory for the input to add_bytes.  [Coverity CID 221]
13663         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13664         was allocated here.  [Coverity CID 219, 220]
13666         * posix/getconf.c (print_all): Free confstr data after printing.
13667         [Coverity CID 218]
13669         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13670         list allocation fails.  [Coverity CID 215]
13672         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13673         [Coverity CID 213]
13675         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13676         string is NULL.  [Coverity CID 212]
13677         * argp/Makefile: Add rules to build and run bug-argp1.
13678         * argp/bug-argp1.c: New file.
13680         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13681         end of string.
13682         * stdlib/canonicalize.c (__realpath): Likewise.
13684         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13685         pointer.  [Coverity CID 206]
13687         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13688         in statically linked code.
13689         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13690         statically built code, be prepared to have no link map.
13691         [Coverity CID 205]
13693         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13694         dgettext calls. [Coverity CID 204]
13696         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13697         the one user.
13698         (uparam_names): Reduce size.  Avoid relative relocations.
13699         Moved to read-only segment.
13700         (fill_in_uparams): Update for new layout.
13702         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13703         assumed to always be != NULL. [Coverity CID 202]
13705         * argp/argp-help.c (hol_entry_help): Remove some dead code
13706         [Coverity CID 200].
13708         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13709         away a few more unconditional yperr2nss calls.
13710         (_nss_nis_getservbyname_r): Likewise.
13712 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13714         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13715         architectures.
13717         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13718         that unused memory passed to sendto is nevertheless initialized.
13720         [BZ #2499]
13721         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13722         possibly unaligned memory accesses.
13724         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13725         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13726         and __putlong respectively.  Correct buffer overflow check for
13727         NS_NOTIFY_OP.
13729         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13731         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13732         (send_dg): Rewrite error handling to be more compact and avoid
13733         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13735         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13737         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13738         instead of ns_get16.
13739         (res_queriesmatch): Likewise.  Minor optimization.
13741         [BZ #2499]
13742         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13743         __libc_res_nsend might reallocate the buffer for the answer.  In
13744         this case we have to reload the HP pointer.
13746 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13748         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13749         some branch prediction hints.
13751         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13752         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13753         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13754         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13755         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13756         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13757         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13758         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13760 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13762         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13763         by a GOT relocation to make Scrt1.o position independent.
13764         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13766         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13767         six system call parameters.
13768         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13770 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13772         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13773         malloc&bzero.
13775         * sunrpc/svc_udp.c (BZERO): Remove definition.
13776         (CALLOC): Define.
13777         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13779         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13780         (des_SPtrans): Use uint32_t type.
13781         (des_skb): Likewise.
13783         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13785 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13787         [BZ #2509]
13788         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13789         on 32-bit arches.
13791 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13793         * locale/programs/ld-address.c (address_finish): Fix one more
13794         place where the iso639 array might be accessed beyond the limits.
13796 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13798         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13799         filling it for the first time.
13801         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13802         Adjust all callers.
13803         Free res object content before returning.
13805         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13807         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13808         client->cl_auth.
13810         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13811         cleanup for initial thread, just the free call on TVP.
13813         * nscd/gai.c (__getline): Define.
13816 See ChangeLog.16 for earlier changes.