manual: fix typo: s/are/is/
[glibc.git] / ChangeLog
blob6f4dfaa8cc4daa0a9c17f51301bbc3554382b473
1 2010-02-22  Jim Meyering  <meyering@redhat.com>
3         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
5         * manual/charset.texi: Adjust grammar.
7         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
8         * manual/charset.texi (Selecting the Conversion): Likewise.
9         * manual/getopt.texi (Getopt Long Options): Likewise.
10         * manual/memory.texi (Resizing the Data Segment): Likewise.
11         * manual/message.texi (GUI program problems): Likewise.
12         * manual/resource.texi (CPU Affinity): Likewise.
13         * manual/stdio.texi (Streams and Threads): Likewise.
14         * manual/time.texi (High Accuracy Clock): Likewise.
16 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
19         instructions cu21 and cu24.  Add well-formedness checking
20         parameter and adjust the software implementation.
21         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
23 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
25         [BZ #11271]
26         * io/ftw.c (ftw_startup): Close descriptor for initial directory
27         after changing back to it.
29 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
31         * sysdeps/i386/lshift.S: Fix unwind information.
33 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
35         [BZ #11242]
36         * misc/getusershell.c (initshells): Allocate one more byte in input
37         buffer so that fgets doesn't loop undefinitely.
39 2010-01-25  Andreas Schwab  <schwab@redhat.com>
41         * iconv/iconv_prog.c (write_output): Fix check for open failure.
43 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
45         [BZ #11200]
46         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
47         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
49 2010-01-22  Jim Meyering  <jim@meyering.net>
51         [BZ #11184]
52         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
53         detection test.  Patch by Paul Eggert.
55         [BZ #11183]
56         * posix/regex_internal.c (re_string_realloc_buffers):
57         Detect and handle internal overflow.  Patch by Paul Eggert
59 2010-01-20  Andreas Schwab  <schwab@redhat.com>
61         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
62         (CHECK_SP): Fix check for alternate stack.
63         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
64         (CHECK_SP): Likewise.
66 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
68         [BZ #11194]
69         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
71 2010-01-18  Andreas Schwab  <schwab@redhat.com>
73         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
74         casting d_tag.
76         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
77         dynamic entry types.
79 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
81         * bits/confname.h: Make pre-C99-safe.
83 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
85         [BZ #11230]
86         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
87         during recovery.
89 2010-03-25  Ryan S. Arnold  <rsa@us.ibm.com>
91         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
92         redundant and incorrect else block which overwrites current line
93         with the partial next line.
95 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
97         [BZ #11127]
98         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
99         re_node_set_insert failure; return REG_ESPACE.
100         Patch by Paul Eggert.
102 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
104         * dirent/dirent.h: Fix typo in feature selection macro use.
106 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
108         * include/link.h (struct link_map): Move l_used into its own word.
109         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
110         still zero.
111         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
112         never really used.
114 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
116         [BZ #11000]
117         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
118         *herrnop before returning.
119         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
120         Likewise.
121         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
122         TRYAGAIN errors separately.
123         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
124         *name4_r after functions.
126 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
128         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
129         before the exec.
130         * sysdeps/unix/sysv/linux/grantpt.c: New file.
131         * login/programs/pt_chown.c (main): Don't print message on errors
132         when doing real work.
134         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
135         irel relocations split out from...
136         (__libc_csu_init): ...here.
137         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
139 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
141         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
143 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
145         [BZ #10162]
146         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
147         than software pipeline.  Properly recover from shorter read.
149 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
151         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
152         Implement using sync_file_range2 syscall if __NR_sync_file_range2
153         is defined.
154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
155         file.
157 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
159         [BZ #10958]
160         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
161         initialized before using it.
162         (_IO_putwc_unlocked): Likewise.
164         [BZ #10918]
165         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
166         in cast to not throw away const-ness of parameters.
167         (__CPU_EQUAL_S): Likewise.
168         (__CPU_OP_S): Likewise.
170 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
172         * posix/bug-regex30.c: New file.
173         * posix/Makefile: Add rules to build and run bug-regex30.
174         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
175         character lead bytes when there is a range in a COMPLEX_BRACKET.
176         Reported by Oleg Bylatov.
178 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
180         [BZ #10969]
181         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
182         * locale/tst-duplocale.c: New file.
183         * locale/Makefile (tests): Add tst-duplocale.
185         [BZ #10968]
186         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
187         Patch by Bruno Haible <bruno@clisp.org>.
188         * locale/tst-locname.c: New file.
189         * locale/Makefile (tests): Add tst-locname.
191         [BZ #10972]
192         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
193         constants from recent kernels.
194         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
195         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
196         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
197         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
198         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
199         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
201 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
203         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
204         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
205         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
207 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
209         * posix/bug-regex29.c: Include stdio.h.
211 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
213         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
214         F_GETOWN_EX definitions according to corrected kernel definitions.
215         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
216         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
217         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
218         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
219         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
220         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
222 2009-11-10  Andreas Schwab  <schwab@redhat.com>
224         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
225         out of buffer space.
226         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
227         map_v4v6_hostent running out of space.
229 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
231         * string/bits/string3.h (memset): If the second parameter is constant
232         and zero there is likely no transposition.
233         Patch by Caolan McNamara <caolanm@redhat.com.
235 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
237         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
238         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
240 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
242         * malloc/memusagestat.c (main): Fix spelling in an error message.
244 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
246         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
247         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
249 2009-11-03  Andreas Schwab  <schwab@redhat.com>
251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
252         readahead.
254 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
256         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
257         relocate opd entry when resolving prelink conflicts.
259 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
261         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
262         when -D_FILE_OFFSET_BITS=64.
264         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
265         of last two arguments when -D_FILE_OFFSET_BITS=64.
266         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
267         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
268         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
269         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
270         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
271         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
273 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
275         [BZ #4457]
276         * sysdeps/generic/libgcc_s.h: New file.
277         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
279 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
281         * malloc/hooks.c (free_check): Restore locking and call _int_free
282         appropriately.
284 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
286         * version.h (VERSION): Bump for 2.11 release.
287         * include/features.h (__GLIBC_MINOR__): Bump to 11.
289         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
291         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
293         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
294         to avoid warning.
295         * stdlib/tst-strtoll.c (tests): Likewise.
297         [BZ #9986]
298         * time/strftime_l.c (__strftime_internal): Allow %OC.
300         * misc/mkostemps.c: New file.
301         * misc/mkostemps64.c: New file.
303 2009-10-30  Andreas Schwab  <schwab@redhat.com>
305         * locale/programs/locale-spec.c: Include <error.h> and
306         <libintl.h>.
308         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
310 2009-10-28  Roland McGrath  <roland@redhat.com>
312         * Makefile (dist-prepare): New target.
313         (tag-for-dist): Target removed.
314         (glibc-%.tar): Pattern rule removed.
315         (%.tar): New pattern rule, does simple use of git archive.
316         (dist-version): Remove variable definition.
317         (dist): Just depend on that.  Add .tar.xz dependency.
318         If dist-version variable not set on command line, depend on
319         dist-prepare, re-invoke with dist-version set via git describe.
321         * Makerules (%.xz): New pattern rule.
323 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
325         * elf/ifuncdep2.c: Include ifunc-sel.h.
326         (global): Delete.
327         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
328         * elf/ifuncmain1.c (global): Delete.
329         * elf/ifuncmain1vis.c: Likewise.
330         * elf/ifuncmain2.c: Likewise.
331         * elf/ifuncmain5.c: Likewise.
332         * elf/ifuncmod3.c: Likewise.
333         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
334         (foo_ifunc): Use ifunc_one.
335         * elf/ifuncmain7.c: Likewise.
336         * elf/ifuncmod1.c: Include ifunc-sel.h.
337         (global): Define protected var.
338         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
339         * elf/ifuncmod5.c: Likewise.
340         * sysdeps/generic/elf/ifunc-sel.h: New file.
341         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
343 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
345         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
346         (R_PPC_REL16*): Correct comments.
347         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
348         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
349          R_PPC64_REL16_HA): Define.
350         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
351         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
352         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
353         Delete unused "reloc" param.
354         (__process_machine_rela): Handle R_PPC_IRELATIVE.
355         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
356         Delete "reloc" param.
357         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
358         R_PPC_IRELATIVE.
359         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
360         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
361         relocations.
363 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
365         [BZ #10315]
366         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
367         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
368         UDP_ENCAP_L2TPINUDP.
370         [BZ #10349]
371         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
372         parameter, specifying length of prefix.
373         * stdio-common/tempname.c: Likewise.
374         * include/stdio.h: Adjust prototypes.
375         * libio/oldtmpfile.c: Adjust caller.
376         * misc/mkdtemp.c: Likewise.
377         * misc/mkostemp.c: Likewise.
378         * misc/mkostemp64.c: Likewise.
379         * misc/mkstemp.c:  Likewise.
380         * misc/mkstemp64.c: Likewise.
381         * misc/mktemp.c: Likewise.
382         * stdio-common/tempnam.c: Likewise.
383         * stdio-common/tmpfile.c: Likewise.
384         * stdio-common/tmpnam.c: Likewise.
385         * stdio-common/tmpnam_r.c: Likewise.
386         * misc/mkstemps.c: New file.
387         * misc/mkstemps64.c: New file.
388         * stdlib/stdlib.h: Add prototypes.
389         * misc/Makefile (routines): Add mkstemps and mkstemps64.
390         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
392 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
394         * locale/iso-639.def: Add sml entry.
396         [BZ #10391]
397         * resolv/res_send.c (send_dg): Initialize resplen.
399         [BZ #10446]
400         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
401         definition to the kernel's.
402         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
404 2009-08-18  Anders Johansson  <ajohansson@novell.com>
406         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
407         offsets and record sizes in assert()s and response sending.
408         * nscd/grpcache.c: Likewise.
409         * nscd/hstcache.c: Likewise.
410         * nscd/initgrcache.c: Likewise.
411         * nscd/pwdcache.c: Likewise.
413 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
415         [BZ #10540]
416         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
417         /etc/hosts does not exist set errnop and herrnop appropriately.
418         Patch by Steve Langasek <vorlon@debian.org>.
420         [BZ #10553]
421         * malloc/malloc.c (malloc_info): Fix typos in format strings.
422         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
424         [BZ #10564]
425         * login/utmp_file.c (TIMEOUT): Increase to 10.
427         [BZ #10609]
428         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
429         for file names in case the syscall is not available.
430         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
431         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
432         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
433         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
434         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
435         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
436         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
437         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
438         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
439         * sysdeps/unix/sysv/linux/openat.c: Likewise.
440         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
441         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
442         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
443         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
444         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
445         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
446         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
448         [BZ #10643]
449         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
450         creation filed, remove the request from the 'requests' list and signal
451         the caller that the request is finished.
453         [BZ #10692]
454         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
455         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
457         [BZ #10713]
458         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
459         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
461         [BZ #10780]
462         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
463         overflows the int return type.
465         [BZ #10717]
466         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
467         have to compute maxsize_total, we have to update the variables, and
468         the also_total handling must happen after the repair.
470         [BZ #10742]
471         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
472         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
474 2009-10-27  Andreas Schwab  <schwab@redhat.com>
476         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
477         errno is always set when returning unsuccessfully.
479 2009-10-29  Andreas Schwab  <schwab@redhat.com>
481         * malloc/memusage.c (update_data): Fix index wraparound handling
482         so that buffer_cnt is actually reset.
484 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
486         [BZ #10784]
487         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
488         of the directory we look at into the static buffer if there is one
489         at the start of the loop.
491         [BZ #10789]
492         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
493         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
495         [BZ #10840]
496         * sysdeps/unix/sysv/linux/kernel-features.h: Define
497         __ASSUME_F_GETOWN_EX.
498         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
499         if possible.
500         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
502         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
503         and f_owner_ex.
504         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
505         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
506         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
507         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
508         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
509         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
511         [BZ #10847]
512         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
513         getutmpx symbol.
515         [BZ #10823]
516         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
517         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
519 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
521         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
523 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
525         [BZ #10817]
526         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
527         Reported by Ray Chason.
529 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
531         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
532         strend-sse4.
533         * sysdeps/x86_64/multiarch/strchr.S: New file.
534         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
535         * sysdeps/x86_64/multiarch/strrchr.S: New file.
537 2009-10-21  Andreas Schwab  <schwab@redhat.com>
539         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
541 2009-10-19  Andreas Schwab  <schwab@redhat.com>
543         * include/math.h: Add hidden protos for __exp/__expf/__expl.
544         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
545         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
546         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
547         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
548         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
549         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
550         __ieee751_expl to handle overflow.
552 2009-10-14  David S. Miller  <davem@davemloft.net>
554         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
555         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
557 2009-10-13  Andreas Schwab  <schwab@redhat.com>
559         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
560         !USE_MULTIARCH.
562 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
564         [BZ #10730]
565         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
566         Patch in part by Steve Ward <planet36@gmail.com>.
568         [BZ #10731]
569         * stdlib/rand_r.c: Fix typo.
571         * po/cs.po: Update from translation team.
573 2009-10-06  Andreas Schwab  <schwab@redhat.com>
575         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
576         returning if RTLD_NOLOAD.
578 2009-10-06  Roland McGrath  <roland@redhat.com>
580         * sysdeps/x86_64/multiarch/strstr-c.c
581         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
583         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
584         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
586         * sysdeps/x86_64/multiarch/init-arch.h
587         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
588         (HAS_CPU_FEATURE): New macro.
589         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
590         * sysdeps/x86_64/multiarch/init-arch.c
591         (__get_cpu_features): #undef it before definition.
593 2009-10-05  Andreas Schwab  <schwab@redhat.com>
595         * locale/C-time.c: Revert week-1stday back to 19971130 and set
596         first_weekday to 1 and first_workday to 2.
598 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
600         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
601         F_GETOWN_EX.
602         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
603         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
604         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
605         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
606         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
607         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
609 2009-09-28  Andreas Schwab  <schwab@redhat.com>
611         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
612         * stdio-common/vfprintf.c: Likewise.
614 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
616         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
617         (mkdirat): Call __directory_name_split_at instead of
618         __directory_name_split.
620 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
622         * locale/programs/locale-spec.c (locale_special): If nothing matches
623         fail with an appropriate message.
625 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
627         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
628         and XX.
630 2009-09-25  Andreas Schwab  <schwab@redhat.com>
632         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
633         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
635 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
637         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
639 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
641         * iconvdata/iso646.c (gconv_init): Correctly initialize the
642         character size elements in step data.
644 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
646         * po/hu.po: Update from translation team.
647         * po/vi.po: Likewise.
649 2009-09-19  Roland McGrath  <roland@redhat.com>
651         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
653 2009-09-15  Roland McGrath  <roland@redhat.com>
655         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
656         * nptl/sysdeps/pthread/configure: Regenerated.
657         * nptl/sysdeps/x86_64/configure: Regenerated.
658         * sysdeps/unix/sysv/linux/configure: Regenerated.
659         * sysdeps/x86_64/elf/configure: Regenerated.
661         * Makefile (autoconf-it): Set execute bit only on top-level configure.
663         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
664         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
665         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
666         * configure: Regenerated.
668 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
670         * posix/getconf.c (main): Handle -- on command line.
672 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
674         * configure.in: Support binutils 2.100 and 3.0.
676 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
678         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
679         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
680         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
681         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
683 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
685         * locale/programs/ld-collate.c (struct locale_collate_t): Add
686         unnamed_section_defined field.
687         (collate_read): Test and set unnamed_section_defined.
689         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
690         _POSIX2_LINE_MAX.
692 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
694         * configure.in: Support binutils 2.20.
696 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
698         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
699         __strstr_ia32): Add attribute_hidden.
701 2009-09-01  Andreas Schwab  <schwab@redhat.com>
703         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
704         parsing of group entry.
706 2009-09-02  Andreas Schwab  <schwab@redhat.com>
708         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
709         external buffer.  Always discard readahead in internal buffer.
710         * libio/Makefile (tests): Add bug-wsetpos.
711         * libio/bug-wsetpos.c: New file.
713 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
715         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
716         Add attribute_hidden.
717         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
718         __strcasestr_sse2): Likewise.
719         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
720         (__fma_fma): Make static.
721         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
722         (__fmaf_fma): Make static.
724 2009-08-31  Andreas Schwab  <schwab@redhat.com>
726         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
727         reformulate in-buffer optimisation check to match code in
728         _IO_new_file_seekoff.
730 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
732         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
733         to srwi in 32-bit memcpy for power6.
735 2009-09-01  Andreas Schwab  <schwab@redhat.com>
737         * include/stdio.h: Declare hidden proto for fflush.
738         * libio/iofflush.c: Add hidden weak alias for fflush.
740 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
742         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
743         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
745 2009-08-31  Andreas Schwab  <schwab@redhat.com>
747         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
749 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
751         [BZ #10560]
752         * malloc/malloc.c: Add local assert definition to avoid problems with
753         memory allocation in the real one.
755 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
757         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
758         Removed.
759         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
760         turn off SSSE3 on Atom.
762 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
764         * stdlib/tst-strtol.c (tests): More tests.
765         * stdlib/tst-strtoll.c (tests): Likewise.
767 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
769         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
771         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
773 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
775         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
776         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
778         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
780         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
782         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
784 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
786         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
788 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
790         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
791         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
793         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
795         * sysdeps/x86_64/fpu/s_signbit.S: New file.
796         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
798         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
799         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
801         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
802         leftover YMM_SIZE definition.
804 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
806         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
807         union.
808         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
809         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
810         Redefine.
811         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
813         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
814         and SET_FLOAT_WORD definitions.
816 2009-08-24  Roland McGrath  <roland@redhat.com>
818         * sysdeps/unix/syscall-template.S: New file.
819         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
820         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
821         (compile-syscall): Pass mkdep and -g options as normal.
822         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
823         (common-generated): Don't add them here.
825 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
827         * math/s_fdim.c: In case of overflows set errno.
828         * math/s_fdimf.c: Likewise.
829         * math/s_fdiml.c: Likewise.
831         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
832         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
833         are using the inline optimizations.
835         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
836         (__signbitf): Likewise.
838 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
840         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
841         terminated.
842         * posix/Makefile (tests): Add bug-regex29.
843         * posix/bug-regex29.c: New file.
845         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
846         older POSIX versions are selected.
848         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
849         as well.
850         * stdio-common/printf_fphex.c: Likewise.
851         * stdio-common/tstdiomisc.c: Add more tests.
853         * locale/locale.h: Include xlocale.h and the thread-local locale
854         declarations for XPG7, not XPG6.
856 2009-08-21  Andreas Schwab  <schwab@redhat.com>
858         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
859         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
862         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
863         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
865 2009-08-20  Roland McGrath  <roland@redhat.com>
867         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
868         Use l_addr instead of l_map_start (dli_fbase).
869         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
870         address when there is no proximate symbol.
871         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
872         Likewise.
874 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
876         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
878 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
880         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
881         Also handle SIGINT.  In that case only do the cleanup and then
882         re-raise the signal.
883         (main): Install handler for SIGINT.
885 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
887         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
888         clobber list.
890 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
892         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
893         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
894         tst-auditmod7b.c.
895         (tests): Add tst-audit6 tst-audit7.
896         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
897         tst-auditmod7a tst-auditmod7b.
898         ($(objpfx)tst-audit6): New.
899         ($(objpfx)tst-audit6.out): Likewise.
900         ($(objpfx)tst-audit7): Likewise.
901         ($(objpfx)tst-audit7.out): Likewise.
902         (tst-audit6-ENV): Likewise.
903         (tst-audit7-ENV): Likewise.
904         (CFLAGS-tst-auditmod6b.c): Likewise.
905         (CFLAGS-tst-auditmod6c.c): Likewise.
906         (CFLAGS-tst-auditmod7b.c): Likewise.
907         * elf/tst-audit6.c: New file.
908         * elf/tst-audit7.c: New file.
909         * elf/tst-auditmod6a.c: New file.
910         * elf/tst-auditmod6b.c: New file.
911         * elf/tst-auditmod6c.c: New file.
912         * elf/tst-auditmod7a.c: New file.
913         * elf/tst-auditmod7b.c: New file.
914         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
915         saving and restoring SSE/AVX registers to ...
916         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
918 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
920         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
921         only if SHARED is defined.
922         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
924 2009-08-03  Jim Meyering  <meyering@redhat.com>
926         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
928 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
930         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
931         section as the other functions for this architecture.
932         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
934 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
936         * sysdeps/x86_64/strcmp.S: Add support to compile with
937         USE_SSSE3.  In this case palignr is used.
938         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
939         available but SSSE3 is, pick __str{,n}cmp_ssse3.
940         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
941         Add strcmp-ssse3 and strncmp-ssse3.
942         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
943         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
945         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
946         warning through fake initialization.
948 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
950         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
952 2009-08-07  Andreas Schwab  <schwab@redhat.com>
954         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
955         unique symbols.
957 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
959         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
960         EBX from EAX = 1.  Handle EAX = 11.
962 2009-08-07  Andreas Schwab  <schwab@redhat.com>
964         * Makefile (TAGS): Use separate sed -e expressions to avoid \
965         inside ''.
967 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
969         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
970         hidden IFUNC functions.
971         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
973         * sysdeps/i386/i686/multiarch/strlen.S: New file.
975         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
976         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
977         strcasestr-c.
978         (CFLAGS-strcspn-c.c): Define.
979         (CFLAGS-strpbrk-c.c): Define.
980         (CFLAGS-strspn-c.c): Define.
981         (CFLAGS-strstr.c): Define.
982         (CFLAGS-strcasestr.c): Define.
983         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
984         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
985         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
986         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
987         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
988         * sysdeps/i386/i686/multiarch/strspn.S: New file.
989         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
990         * sysdeps/i386/i686/multiarch/strstr.c: New file.
991         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
992         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
993         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
994         -16L instead of 0xfffffffffffffff0L.
995         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
997 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
999         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1001 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1003         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1004         another rewrite.  Much smaller and faster.
1005         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1007         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1008         ss_flags from the correct location.
1010 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1012         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1013         * sysdeps/i386/i686/cacheinfo.c: New file.
1014         * sysdeps/i386/i686/multiarch/Makefile: New file.
1015         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1016         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1017         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1018         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1019         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1020         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1021         (__cpuid_count): New. Provide the default.
1022         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1023         (__x86_64_preferred_memory_instruction): Define only if
1024         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1025         (intel_check_word): Use __cpuid.
1026         (handle_intel): Likewise.
1027         (handle_amd): Likewise.
1028         (__cache_sysconf): Likewise.
1029         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1030         (__cache_sysconf): Likewise.
1031         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1032         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1033         (get_common_indeces): Use __cpuid.
1034         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1035         if ENABLE_SSSE3_ON_ATOM is not defined.
1036         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1037         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1038         popcnt instead of popcntq.
1040 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1042         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1044 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1046         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1047         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1048         which always causes a compile error.
1050         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1052         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1053         comes from...
1054         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1055         which always causes a compile error.
1057         * debug/Makefile (tests): Add tst-longjmp_chk2.
1058         * debug/tst-longjmp_chk2.c: New file.
1060         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1061         Remove incorrect use of BP_SYM.
1062         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1063         here now since it is more complex than just a simple check.
1065         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1066         we make no more progress.
1068 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1070         * math/s_fma.c: Don't define alias if __fma is a macro.
1071         * math/s_fmaf.c: Likewise.
1072         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1073         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1074         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1076         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1077         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1078         New macro HAS_FMA.
1079         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1080         function.
1081         * include/libc-symbols.h (libm_ifunc): Define.
1082         * sysdeps/x86_64/multiarch/Versions: New file.
1084         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1086 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1088         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1090 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1092         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1093         call that registers used in calling conventions need to be preserved.
1094         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1095         to preserve register content if necessary.
1096         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1097         (_dl_x86_64_restore_sse): New function.
1098         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1099         is allowed to modify xmm/ymm registers.
1101         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1102         application's perspective.
1103         * stdio-common/scanf17.c: Likewise.
1105 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1107         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1108         size to memsz.
1109         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1110         here.
1111         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1112         two steps to catch bugs.
1114 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1116         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1117         determines which files are used in runtime lookups and only checks
1118         those for SSE use.
1119         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1120         testing.
1121         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1122         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1123         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1124         take a while.
1126         * elf/dl-open.c: Move _dl_scope_free to...
1127         * elf/dl-scope.c: ...here.  New file.
1128         * elf/Makefile (dl-routines): Add scope.
1130         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1131         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1132         RES_USE_DNSSEC.
1133         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1134         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1135         all the places we handled RES_USE_EDNS0 only before.
1136         Patch by Adam Tkac <atkac@redhat.com>.
1138 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1140         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1141         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1142         Update size when reallocating.
1144 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1146         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1147         functions used in ld.so modify xmm/ymm registers.
1148         * sysdeps/x86_64/Makefile:  Hook new test up.
1149         * sysdeps/x86_64/rtld-memchr.c: New file.
1150         * sysdeps/x86_64/rtld-memcmp.c: New file.
1151         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1152         * sysdeps/x86_64/rtld-strchr.S: New file.
1153         * sysdeps/x86_64/rtld-strlen.S: New file.
1154         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1155         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1157 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1159         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1160         strncmp-c.
1161         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1162         (exit): Likewise.
1163         (Byte1): Likewise.
1164         (Byte2): Likewise.
1165         (Byte3): Likewise.
1166         (Byte4): Likewise.
1167         (Byte5): Likewise.
1168         (Byte6): Likewise.
1169         (next_8_bytes): Likewise.
1170         (Byte0): Remove commented out codes.
1171         (unaligned_table): Align jump table at 8 bytes.
1172         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1173         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1174         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1175         * sysdeps/x86_64/strncmp.S: New file.
1177 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1179         [BZ #10422]
1180         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1181         kernels, dropped when eventfd2 support was added.
1182         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1183         kernels, dropped when signalfd4 support was added.
1184         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1185         added, name them.
1187         [BZ #10452]
1188         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1189         replies up.
1191         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1193 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1195         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1196         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1198         [BZ #10448]
1199         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1200         callback we must touch the status to avoid using stale value.
1202         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1203         compiled in.
1205 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1207         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1208         /lib/modules/* headers anymore.  We have sane headers in the standard
1209         place now.
1211 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1213         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1214         "etf3enh" and "highgprs" added.
1215         (_dl_s390_platforms): "z10" added.
1216         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1217         Increased for the new entries.
1218         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1219         HWCAP_S390_HIGH_GPRS added.
1221         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1222         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1223         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1224         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1225         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1227 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1229         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1230         avoid additional cpuid instructions.  Most of the information is
1231         stored somewhere.
1233         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1234         cache descriptors.
1235         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1237         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1238         SSSE3 bit for Atoms.
1239         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1240         here anymore.
1242         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1243         structure before copying it to avoid warning.
1244         * posix/tst-rfc3484-2.c (do_test): Likewise.
1245         * posix/tst-rfc3484-3.c (do_test): Likewise.
1247         [BZ #10416]
1248         * include/unistd.h: Make header file suitable for C++ test cases.
1249         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1251         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1252         stack alignment in the exit code.
1254         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1255         potentially be zero.
1257         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1258         unique symbol definition.
1259         Patch by Jakub Jelinek.
1260         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1261         make sure the object with the definition cannot be unloaded.  Adjust
1262         a few types.
1263         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1264         the unique symbol hash table should not be const.
1266 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1268         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1269         unnecesary variables.  Comment fixes.
1271 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1273         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1274         Use NONASCII_CASE information provided by the locale to determine
1275         whether optimized string load function can be used.  Minor cleanups.
1277 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1279         * string/strcasestr.c (STRCASESTR): New macro.
1280         (__strcasestr): Renamed to ..
1281         (STRCASESTR): ...this.
1282         * string/strstr.c (STRSTR): New macro.
1283         (strstr): Renamed to ..
1284         (STRSTR): ...this.
1285         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1286         strstr-c strcasestr-c
1287         (CFLAGS-strstr.c): New.
1288         (CFLAGS-strcasestr.c): Likewise.
1289         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1290         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1291         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1292         * sysdeps/x86_64/multiarch/strstr.c: New file.
1294 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1296         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1297         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1298         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1299         _NL_CTYPE_NONASCII_CASE.
1300         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1301         field.
1302         (ctype_finish): Check whether there are any 8-bit characters outside
1303         the range ASCII has or whether the mapping isn't the same as for
1304         ASCII (±0x20).  Set nonascii_case appropriately.
1305         (ctype_output): Add output handler for nonascii_case.
1307 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1309         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1310         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1312 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1314         [BZ #10360]
1315         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1316         0xffff in the EDNS0 record.
1318 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1320         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1321         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1322         is written before the list head update.
1323         Patch by Andreas Schwab <aschwab@redhat.com>.
1325 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1326             Jakub Jelinek  <jakub@redhat.com>
1328         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1329         corruption thread-safe.
1331 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1333         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1334         overrides atomic_compare_and_exchange_val_rel, define to
1335         atomic_compare_and_exchange_val_rel by default, otherwise default
1336         to catomic_compare_and_exchange_val_acq.
1337         (catomic_compare_and_exchange_bool_rel): If arch overrides
1338         atomic_compare_and_exchange_bool_rel, define to
1339         atomic_compare_and_exchange_bool_rel by default.
1340         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1341         Use catomic_compare_and_exchange_val_rel instead of
1342         catomic_compare_and_exchange_val_acq.
1344 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1346         * sysdeps/generic/ldsodefs.h: Add prototype for
1347         _dl_higher_prime_number.
1348         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1350         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1351         restoring of ymm registers a bit.
1353 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1355         * sysdeps/x86_64/memcmp.S: New file.
1357 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1359         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1360         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1361         pointers in writable memory.
1363 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1365         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1366         * config.make.in: Add config-cflags-avx entry.
1367         * configure.in: Substitute libc_cv_cc_avx.
1368         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1369         * elf/tst-audit4.c: New file.
1370         * elf/tst-audit5.c: New file.
1371         * elf/tst-auditmod4a.c: New file.
1372         * elf/tst-auditmod4b.c: New file.
1373         * elf/tst-auditmod5a.c: New file.
1374         * elf/tst-auditmod5b.c: New file.
1375         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1376         link-defines.sym.
1377         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1378         (La_x86_64_vector): Likewise.
1379         (La_x86_64_regs): Append lr_vector.
1380         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1381         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1382         saving and restoring SSE registers to ...
1383         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1384         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1385         <link-defines.h>.
1386         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1387         La_x86_64_regs.  Allocate extra space and jump to memory at
1388         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1389         (save_and_restore_vector_sse): New.
1390         (save_and_restore_vector_avx): Likewise.
1391         (check_avx): Likewise.
1392         (save_and_restore_vector): Likewise.
1393         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1394         HAVE_AVX_SUPPORT.
1395         * sysdeps/x86_64/link-defines.sym: New file.
1397 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1399         * elf/do-lookup.h: Removed after folding content into...
1400         * elf/dl-lookup.c: ...here.
1402         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1404 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1406         * configure.in: Check for gnu_unique_symbol symbol type.
1407         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1408         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1409         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1410         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1411         change.
1412         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1413         unique symbol table.
1414         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1415         for first namespace.
1416         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1417         unique symbol hash table.
1418         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1419         * elf/tst-unique1.c: New file.
1420         * elf/tst-unique1mod1.c: New file.
1421         * elf/tst-unique1mod2.c: New file.
1422         * elf/tst-unique2.c: New file.
1423         * elf/tst-unique2mod1.c: New file.
1424         * elf/tst-unique2mod2.c: New file.
1426 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1428         * elf/elf.h (STB_GNU_UNIQUE): Define.
1430         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1431         from...
1432         * include/inline-hashtab.h: ...here.
1433         (htab_expand): Adjust for renamed function.  Correct memory handling.
1435 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1437         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1439 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1441         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1442         (PPC_FEATURE_HAS_VSX): Likewise.
1444 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1446         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1447         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1449         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1450         aligned to 16 byte boundaries.
1451         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1452         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1453         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1455 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1457         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1458         * config.make.in (config-cflags-sse4): New variable.
1459         * configure.in: Substitute libc_cv_cc_sse4.
1460         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1461         HAVE_SSE4_SUPPORT.
1462         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1463         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1464         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1465         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1466         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1467         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1468         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1469         * sysdeps/x86_64/multiarch/strspn.S: New file.
1471 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1473         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1474         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1475         (tests): Add tst-audit3 for x86_64.
1476         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1477         ($(objpfx)tst-audit3): Define.
1478         ($(objpfx)tst-audit3.out): Define.
1479         (tst-audit3-ENV): Define.
1480         * elf/tst-audit3.c: New file.
1481         * elf/tst-auditmod3a.c: New file.
1482         * elf/tst-auditmod3b.c: New file.
1483         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1484         and restore xmm6.
1486         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1487         (__stpncpy): Renamed to ...
1488         (STPNCPY): This.
1489         (stpncpy): Create alias only if STPNCPY is not defined.
1490         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1491         defined.
1492         (strncpy): Renamed to ...
1493         (STRNCPY): This.
1494         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1495          stpncpy-c strncpy-c for string.
1496         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1497         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1498         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1499         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1500         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1501         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1503 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1505         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1506         adding to fast bin list.
1508 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1510         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1511         inet_makeaddr.  This worked only with class-based networks.
1512         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1513         Likewise.
1515         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1516         recognize all types.
1517         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1518         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1519         be in host byte order.
1521 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1523         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1524         (MODEL_OFFSET): Define.
1525         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1526         family and model.
1527         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1528         out common code into new function get_common_indeces. Determine
1529         extended family and model for Intel processors.
1531 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1533         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1534         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1535         option.
1536         * resolv/res_send.c (reopen): New function.  Broken out of...
1537         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1538         fallback mechanism.  If single-request fails switch to
1539         single-request-reopen mode which opens a new socket for the second
1540         request.
1542 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1544         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1545         (CHECK_SP): Use it.
1547 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1549         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1550         for saved registers.
1551         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1552         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1553         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1555 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1557         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1559 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1561         * po/id.po: Update from translation team.
1563         * po/bg.po: Update from translation team.
1565 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1567         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1568         defined.
1569         (strncmp): Renamed to STRNCMP.
1570         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1571         strncmp-c for string.
1572         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1573         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1574         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1575         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1577 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1579         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1580         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1581         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1582         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1583         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1584         ifuncmain7static.c.
1585         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1586         ifuncmain7static, and ifuncmain7picstatic.
1587         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1588         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1589         $(objpfx)ifuncmain7pie.out.
1590         (modules-names): Add ifuncmod5 ifuncmod6
1591         (ifuncmod5.so-no-z-defs): Define.
1592         (ifuncmod6.so-no-z-defs): Define.
1593         (CFLAGS-ifuncmain5pic.c): Define.
1594         (CFLAGS-ifuncmain5picstatic.c): Define.
1595         (CFLAGS-ifuncmain5staticpic.c): Define.
1596         (CFLAGS-ifuncdep5pic.c): Define.
1597         (CFLAGS-ifuncmain7pic.c): Define.
1598         (CFLAGS-ifuncmain7picstatic.c): Define.
1599         (CFLAGS-ifuncmain1staticpie.c): Define.
1600         (CFLAGS-ifuncmain5pie.c): Define.
1601         (CFLAGS-ifuncmain6pie.c): Define.
1602         (CFLAGS-ifuncmain7pie.c): Define.
1603         ($(objpfx)ifuncmain1staticpie.out): Define.
1604         ($(objpfx)ifuncmain1staticpie): Define.
1605         ($(objpfx)ifuncmain5pie.out): Define.
1606         ($(objpfx)ifuncmain5pie): Define.
1607         ($(objpfx)ifuncmain6pie.out): Define.
1608         ($(objpfx)ifuncmain6pie): Define.
1609         ($(objpfx)ifuncmain5): Define.
1610         ($(objpfx)ifuncmain5pic): Define.
1611         ($(objpfx)ifuncmain5static): Define.
1612         ($(objpfx)ifuncmain5staticpic): Define.
1613         ($(objpfx)ifuncmain5picstatic): Define.
1614         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1615         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1616         ifuncmain6pie.out.
1617         * elf/b/elf/ifuncmain1staticpie.c: New file.
1618         * elf/ifuncdep5.c: New file.
1619         * elf/ifuncdep5pic.c: New file.
1620         * elf/ifuncmain5.c: New file.
1621         * elf/ifuncmain5pic.c: New file.
1622         * elf/ifuncmain5picstatic.c: New file.
1623         * elf/ifuncmain5pie.c: New file.
1624         * elf/ifuncmain5static.c: New file.
1625         * elf/ifuncmain5staticpic.c: New file.
1626         * elf/ifuncmain6pie.c: New file.
1627         * elf/ifuncmain7.c: New file.
1628         * elf/ifuncmain7pic.c: New file.
1629         * elf/ifuncmain7picstatic.c: New file.
1630         * elf/ifuncmain7pie.c: New file.
1631         * elf/ifuncmain7static.c: New file.
1632         * elf/ifuncmod5.c: New file.
1633         * elf/ifuncmod6.c: New file.
1635 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1637         [BZ #10085]
1638         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1639         (nss_endgrent): New variable.
1640         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1641         fields. Change type of files to bool and adjust all users.
1642         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1643         (internal_endgrent): Call nss_endgrent if necessary.
1644         (add_group): New function.  Broken out of...
1645         (check_and_add_group): ...here.
1646         (getgrent_next_nss): Remove test that any callback is available.
1647         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1648         callback.  If there is no blacklist we can trust the results returned
1649         by the initgroups_dyn callback.  In case there is a callback and we
1650         find a group entry for the group ID but it doesn't contain the
1651         correct member, switch to the slow mode and use getgrent_r.
1652         (internal_getgrent_r): When we see a +: entry, determine whether
1653         there is any callback and which we can use the initgroups_dyn
1654         callback.
1656 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1658         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1659         (_int_free): Likewise.
1661         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1662         AF_IEEE802154.
1663         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1664         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1665         and ARPHRD_IEEE802154_PHY.
1667         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1668         relative to generic Linux version.
1670 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1672         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1673         ($(objpfx)ifuncmain1vispie): Likewise.
1675 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1677         * login/Makefile: Build pt_chown as PIE.
1679 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1681         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1682         a format string.
1683         * elf/sln.c (usage): Likewise.
1684         * malloc/memusage.sh (do_help): Likewise.
1685         * nss/getent.c (more_help): Likewise.
1686         * posix/getconf.c (main): Likewise.
1687         * sunrpc/rpcinfo.c (usage): Likewise.
1688         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1690 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1692         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1693         those needed.
1694         * login/Makefile: If necessary link pt_chown with -lcap.
1695         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1696         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1698 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1700         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1701         comparisons.
1702         * string/test-memchr.c (do_random_tests): Test very large lengths
1703         as well.
1705 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1707         * Makeconfig (+link-pie): Define.
1708         (+prectorS): Define.
1709         (+postctorS): Define.
1710         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1711         * nscd/Makefile ($(objpfx)nscd): Likewise.
1713 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1715         [BZ #10107]
1716         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1717         with cmplwi.
1718         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1720 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1722         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1723         into ...
1724         * sysdeps/unix/grantpt.c: ...here.
1726 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1728         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1729         chmod if it is necessary.
1731         [BZ #10166]
1732         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1733         when the slave device is in devpts or devfs.
1735         [BZ #10183]
1736         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1738         [BZ #10195]
1739         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1740         of nd_opt_home_agent_info_preference to uint16_t.
1741         Patch by Arnaud Ebalard <arno@natisbad.org>.
1743         [BZ #10207]
1744         * nss/getent.c: Add support for printing gshadow data.
1746         [BZ #10203]
1747         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1748         not just the currently used one and those which follow.
1749         Patch by Joe Landers <jlanders@vmware.com>.
1751         [BZ #10196]
1752         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1753         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1754         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1756         [BZ #10217]
1757         * stdlib/abort.c: Define variable __abort_msg.
1758         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1759         * include/stdlib.h: Declare __abort_msg.
1760         * assert/assert-perr.c: Don't free buffer for message immediately.
1761         Store atomically in __abort_msg and free old buffer if necessary.
1762         * assert/assert.c: Likewise.
1763         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1764         store pointer in __abort_msg, and possibly free old string.
1765         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1767         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1769         [BZ #10211]
1770         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1771         handle leap seconds if they are available.
1772         Patch by Akinori Hattori <hattya@gentoo.org>.
1774         * timezone/tzselect.ksh: Update from tzcode2009i.
1775         * timezone/zdump.c: Likewise.
1776         * timezone/zic.c: Likewise.
1778         * timezone/africa: Update from tzdata2009i.
1779         * timezone/antarctica: Likewise.
1780         * timezone/asia: Likewise.
1781         * timezone/australasia: Likewise.
1782         * timezone/backward: Likewise.
1783         * timezone/etcetera: Likewise.
1784         * timezone/europe: Likewise.
1785         * timezone/factory: Likewise.
1786         * timezone/iso3166.tab: Likewise.
1787         * timezone/leapseconds: Likewise.
1788         * timezone/northamerica: Likewise.
1789         * timezone/pacificnew: Likewise.
1790         * timezone/solar87: Likewise.
1791         * timezone/solar88: Likewise.
1792         * timezone/solar89: Likewise.
1793         * timezone/southamerica: Likewise.
1794         * timezone/systemv: Likewise.
1795         * timezone/yearistype: Likewise.
1796         * timezone/zone.tab: Likewise.
1798 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1800         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1801         STT_GNU_IFUNC symbol or in 8 into type_class.
1803         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1804         instead of Elf64_Addr.
1806 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1808         * po/sv.po: Update from translation team.
1810         [BZ #10229]
1811         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1812         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1813         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1814         the C version.
1816 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1818         * Versions.def: Add GLIBC_2.11 for libpthread.
1820 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1822         * resolv/res_send.c (send_dg): Remember we switched to
1823         single-request mode.
1825 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1827         * dlfcn/dlfcn.h: Remove comma at end of enum.
1828         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1830         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1831         parsing mode string.
1833 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1835         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1837         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1839         * sysdeps/x86_64/multiarch/strlen.S: New file.
1840         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1841         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1842         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1843         content.
1845         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1846         is defined.
1848 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1850         * sysdeps/x86_64/strlen.S: Minor optimizations.
1852 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1854         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1855         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1856         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1857         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1858         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1859         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1860         ifuncmain3.c, ifuncmod3.c,.
1861         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1862         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1863         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1864         ifuncmain4picstatic.
1865         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1866         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1867         ifuncmain3, ifuncmain4.
1868         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1869         $(objpfx)ifuncmain1vispie.out.
1870         (modules-names): Add ifuncmod1 ifuncmod3.
1871         (generated): Add ifuncmain1pie ifuncmain1pie.out
1872         ifuncmain1vispie ifuncmain1vispie.out.
1873         Define rules to build and run the tests.
1874         * elf/ifuncdep1.c: New file.
1875         * elf/ifuncdep1pic.c: New file.
1876         * elf/ifuncdep2.c: New file.
1877         * elf/ifuncdep2pic.c: New file.
1878         * elf/ifuncmain1.c: New file.
1879         * elf/ifuncmain1pic.c: New file.
1880         * elf/ifuncmain1picstatic.c: New file.
1881         * elf/ifuncmain1pie.c: New file.
1882         * elf/ifuncmain1static.c: New file.
1883         * elf/ifuncmain1staticpic.c: New file.
1884         * elf/ifuncmain1vis.c: New file..
1885         * elf/ifuncmain1vispic.c: New file..
1886         * elf/ifuncmain1vispie.c: New file.
1887         * elf/ifuncmain2.c: New file.
1888         * elf/ifuncmain2pic.c: New file.
1889         * elf/ifuncmain2picstatic.c: New file.
1890         * elf/ifuncmain2static.c: New file.
1891         * elf/ifuncmain3.c: New file.
1892         * elf/ifuncmain4.c: New file.
1893         * elf/ifuncmain4picstatic.c: New file.
1894         * elf/ifuncmain4static.c: New file.
1895         * elf/ifuncmod1.c: New file.
1896         * elf/ifuncmod3.c: New file.
1898 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1900         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1902 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1904         [BZ #10221]
1905         * posix/Makefile (routines): Add execvpe.
1906         * posix/Versions: Export execvpe for GLIBC_2.11.
1907         * posix/execvp.c: Now only a wrapper.  Move code to...
1908         * posix/execvpe.c: ...here.  New file.
1909         * posix/unistd.h: Declare execvpe.
1911 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1913         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1914         for STT_GNU_IFUNC handling for efficiency.
1915         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1917         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1918         _exit.
1919         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1921 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1923         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1924         for !SHARED.
1926 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1928         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1929         is not defined.
1930         (__rela_iplt_start): New declaration.
1931         (__rela_iplt_end): Likewise.
1932         (__rel_iplt_start): Likewise.
1933         (__rel_iplt_end): Likewise.
1934         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1935         * elf/elf.h (R_386_IRELATIVE): New macro.
1936         (R_X86_64_IRELATIVE): New macro.
1937         (R_386_NUM): Updated.
1938         (R_X86_64_NUM): Likewise.
1939         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1940         (libc_ifunc_hidden_def): New macro.
1941         * sysdeps/generic/dl-irel.h: New file.
1942         * sysdeps/i386/dl-irel.h: New file.
1943         * sysdeps/x86_64/dl-irel.h: New file.
1944         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1945         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1946         Handle R_386_IRELATIVE.
1947         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1948         (elf_machine_lazy_rela): Likewise.
1949         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1950         R_X86_64_IRELATIVE.
1951         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1953 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1955         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1956         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
1957         are no differences.  If an architecture has bits in CPUID index 1
1958         meaning different things the values for the COMMON_CPUID_INDEX_1
1959         index must not be set.
1960         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1961         (HAS_POPCOUNT): ...this.  New macro.
1962         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1963         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
1964         to set the value for Intel and AMD architectures.
1965         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1966         INTEL_CPUID_INDEX_1.
1967         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1968         change.
1970 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1972         * configure.in: Move AC_CANONICAL_HOST before first use of $host
1973         and $build.
1975 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1977         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1978         (__expm1l): Set errno to ERANGE on overflow.
1979         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1980         (__tanl): Set errno to EDOM for Â±Inf.
1981         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1982         (__cosl): Set errno to EDOM for Â±Inf.
1983         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1984         (__sinl): Set errno to EDOM for Â±Inf.
1986         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1987         defined, use it.
1988         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1989         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1990         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1992 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
1994         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
1995         code accessing it.
1996         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1998 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2000         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2001         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2002         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2003         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2005         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2006         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2007         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2008         defined.
2009         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2010         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2012 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2014         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2015         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2016         is, either do nothing at all if __ASSUME_ACCEPT4, or
2017         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2018         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2019         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2020         define.
2021         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2022         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2023         internal_accept4 in socket directory.
2025 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2027         * sysdeps/ia64/configure.in: New file.
2029 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2031         [BZ #10162]
2032         * sysdeps/ia64/memchr.S: Use speculative load.
2034         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2035         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2036         use it.
2038         * sysdeps/i386/__longjmp.S: Add .text.
2039         * sysdeps/x86_64/__longjmp.S: Likewise.
2041 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2043         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2044         __ASSUME_ACCEPT4 for IA-64.
2046 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2048         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2050         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2051         (SOCKOP_accept4): Define.
2053 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2055         Sun approved the change of the license.
2056         * sunrpc/auth_des.c: Replace license text.
2057         * sunrpc/auth_none.c: Likewise.
2058         * sunrpc/auth_unix.c: Likewise.
2059         * sunrpc/authdes_prot.c: Likewise.
2060         * sunrpc/authuxprot.c: Likewise.
2061         * sunrpc/bindrsvprt.c: Likewise.
2062         * sunrpc/clnt_gen.c: Likewise.
2063         * sunrpc/clnt_perr.c: Likewise.
2064         * sunrpc/clnt_raw.c: Likewise.
2065         * sunrpc/clnt_simp.c: Likewise.
2066         * sunrpc/clnt_tcp.c: Likewise.
2067         * sunrpc/clnt_udp.c: Likewise.
2068         * sunrpc/clnt_unix.c: Likewise.
2069         * sunrpc/des_crypt.c: Likewise.
2070         * sunrpc/des_soft.c: Likewise.
2071         * sunrpc/get_myaddr.c: Likewise.
2072         * sunrpc/getrpcport.c: Likewise.
2073         * sunrpc/key_call.c: Likewise.
2074         * sunrpc/key_prot.c: Likewise.
2075         * sunrpc/openchild.c: Likewise.
2076         * sunrpc/pm_getmaps.c: Likewise.
2077         * sunrpc/pm_getport.c: Likewise.
2078         * sunrpc/pmap_clnt.c: Likewise.
2079         * sunrpc/pmap_prot.c: Likewise.
2080         * sunrpc/pmap_prot2.c: Likewise.
2081         * sunrpc/pmap_rmt.c: Likewise.
2082         * sunrpc/rpc/auth.h: Likewise.
2083         * sunrpc/rpc/auth_unix.h: Likewise.
2084         * sunrpc/rpc/clnt.h: Likewise.
2085         * sunrpc/rpc/des_crypt.h: Likewise.
2086         * sunrpc/rpc/key_prot.h: Likewise.
2087         * sunrpc/rpc/netdb.h: Likewise.
2088         * sunrpc/rpc/pmap_clnt.h: Likewise.
2089         * sunrpc/rpc/pmap_prot.h: Likewise.
2090         * sunrpc/rpc/pmap_rmt.h: Likewise.
2091         * sunrpc/rpc/rpc.h: Likewise.
2092         * sunrpc/rpc/rpc_des.h: Likewise.
2093         * sunrpc/rpc/rpc_msg.h: Likewise.
2094         * sunrpc/rpc/svc.h: Likewise.
2095         * sunrpc/rpc/svc_auth.h: Likewise.
2096         * sunrpc/rpc/types.h: Likewise.
2097         * sunrpc/rpc/xdr.h: Likewise.
2098         * sunrpc/rpc_clntout.c: Likewise.
2099         * sunrpc/rpc_cmsg.c: Likewise.
2100         * sunrpc/rpc_common.c: Likewise.
2101         * sunrpc/rpc_cout.c: Likewise.
2102         * sunrpc/rpc_dtable.c: Likewise.
2103         * sunrpc/rpc_hout.c: Likewise.
2104         * sunrpc/rpc_main.c: Likewise.
2105         * sunrpc/rpc_parse.c: Likewise.
2106         * sunrpc/rpc_parse.h: Likewise.
2107         * sunrpc/rpc_prot.c: Likewise.
2108         * sunrpc/rpc_sample.c: Likewise.
2109         * sunrpc/rpc_scan.c: Likewise.
2110         * sunrpc/rpc_scan.h: Likewise.
2111         * sunrpc/rpc_svcout.c: Likewise.
2112         * sunrpc/rpc_tblout.c: Likewise.
2113         * sunrpc/rpc_util.c: Likewise.
2114         * sunrpc/rpc_util.h: Likewise.
2115         * sunrpc/rpcinfo.c: Likewise.
2116         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2117         * sunrpc/rpcsvc/key_prot.x: Likewise.
2118         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2119         * sunrpc/rpcsvc/mount.x: Likewise.
2120         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2121         * sunrpc/rpcsvc/rex.x: Likewise.
2122         * sunrpc/rpcsvc/rstat.x: Likewise.
2123         * sunrpc/rpcsvc/rusers.x: Likewise.
2124         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2125         * sunrpc/rpcsvc/spray.x: Likewise.
2126         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2127         * sunrpc/rtime.c: Likewise.
2128         * sunrpc/svc.c: Likewise.
2129         * sunrpc/svc_auth.c: Likewise.
2130         * sunrpc/svc_authux.c: Likewise.
2131         * sunrpc/svc_raw.c: Likewise.
2132         * sunrpc/svc_run.c: Likewise.
2133         * sunrpc/svc_simple.c: Likewise.
2134         * sunrpc/svc_tcp.c: Likewise.
2135         * sunrpc/svc_udp.c: Likewise.
2136         * sunrpc/svc_unix.c: Likewise.
2137         * sunrpc/svcauth_des.c: Likewise.
2138         * sunrpc/xcrypt.c: Likewise.
2139         * sunrpc/xdr.c: Likewise.
2140         * sunrpc/xdr_array.c: Likewise.
2141         * sunrpc/xdr_float.c: Likewise.
2142         * sunrpc/xdr_mem.c: Likewise.
2143         * sunrpc/xdr_rec.c: Likewise.
2144         * sunrpc/xdr_ref.c: Likewise.
2145         * sunrpc/xdr_sizeof.c: Likewise.
2146         * sunrpc/xdr_stdio.c: Likewise.
2148         * po/da.po: Update from translation team.
2150 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2152         * sysdeps/sh/____longjmp_chk.S: New file.
2153         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2154         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2156 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2157             Ulrich Drepper  <drepper@redhat.com>
2159         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2160         (__nscd_cache_search): Assume each entry in the
2161         hash chain needs one hashentry and half of datahead.  Use
2162         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2164 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2166         * posix/sys/wait.h: Fix typos.  Pretty printing.
2167         * stdlib/stdlib.h: Likewise.  Correct comments.
2169         [BZ #10159]
2170         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2172         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2173         patch.
2175 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2177         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2178         Use it if we absolutely cannot reach any more correct list elements
2179         because that many do not fit into the currently mapped database.
2181 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2183         * nscd/nscd_helper.c: Include stddef.h.
2184         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2185         in a couple of places.  Return NULL if trail is not less than
2186         datasize, don't consider dataheads with length smaller than
2187         offsetof (struct datahead, data) + datalen.
2188         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2189         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2190         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2191         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2192         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2193         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2194         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2196         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2197         Rename ...
2198         (fallocate64): ... to this.
2199         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2200         Rename ...
2201         (fallocate64): ... to this.
2202         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2203         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2204         fallocate64@@GLIBC_2.10.
2205         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2206         fallocate64@@GLIBC_2.11.
2207         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2209         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2210         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2212         * nscd/selinux.c (nscd_avc_destroy): Removed.
2213         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2214         * nscd/nscd.c (termination_handler): Don't call
2215         nscd_avc_destroy.
2217 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2219         * include/atomic.h: Formatting.
2220         (catomic_compare_and_exchange_val_acq): Don't define if already
2221         defined by bits/atomic.h.
2223 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2225         * math/libm-test.inc (expm1_test): Add test for range error.
2227         * Versions.def: Add GLIBC_2.11 for libc.
2228         * debug/Makefile (routines): Add longjmp_chk.
2229         Add rules to build and run tst-longjmp_chk.
2230         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2231         * debug/longjmp_chk.c: New file.
2232         * debug/tst-longjmp_chk.c: New file.
2233         * include/bits/setjmp2.: New file.
2234         * include/stdio.h: Mark __fortify_fail as internal_function.
2235         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2236         * setjmp/bits/setjmp2.h: New file.
2237         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2238         of the aliases.
2239         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2240         defined.
2241         * sysdeps/i386/____longjmp_chk.S: New file.
2242         * sysdeps/x86_64/____longjmp_chk.S: New file.
2243         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2244         * sysdeps/x86_64/__longjmp.S: Likewise.
2246         * version.h: Bump for 2.11 development.
2248         * elf/check-execstack.c: New file.
2249         * elf/Makefile: Add rules to build and run check-execstack.
2251 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2253         * version.h (VERSION): Bump to 2.10.1.
2255         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2256         compatibility functions.
2257         * nss/getXXent_r.c: Likewise.
2258         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2259         * gshadow/getsgnam_r.c: Likewise.
2260         * gshadow/Version: Remove duplicate entries.
2262         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2263         for recent processor.
2264         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2265         Likewise.
2267 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2269         * version.h (VERSION): Bump for 2.10 release.
2270         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2272         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2273         same place we add ASFLAGS-config.
2275 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2277         [BZ #10128]
2278         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2279         or FORMERR and the other NOERROR, don't raise an error.
2281 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2283         [BZ #10118]
2284         * Makeconfig (+asflags): New variable based upon ASFLAG or
2285         asflags-cpu.
2286         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2287         * config.make.in (asflags-cpu): Add variable based upon
2288         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2289         the assembler.
2290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2291         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2292         recognizes power6 instruction set due to passing -mcpu=power6 from
2293         --with-cpu=power6 when compiling .S files.
2294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2295         Likewise.
2296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2297         Likewise.
2298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2299         Likewise.
2301 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2303         * string/stratcliff.c (do_test): Test for zero length
2304         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2305         at the end of the page.
2307 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2309         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2311         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2312         count is zero.
2314         * po/da.po: Update from translation team.
2316 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2318         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2319         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2321 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2323         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2324         and READ_IMPLIES_EXEC.
2326 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2328         * po/da.po: Update from translation team.
2330 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2332         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2333         comment change.
2335 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2337         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2338         to MAP_ANON in PROT_NONE mmap64 call.
2339         (open_archive): Likewise.
2340         (file_data_available_p): Use mmap64 instead of mremap.
2341         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2342         Attempt to reserve address space after mmap64 region.
2344 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2346         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2347         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2348         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2350         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2351         atanh should set ERANGE.
2353         [BZ #10087]
2354         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2355         result of lookup to make call to implement STT_GNU_IFUNC.
2356         (_dl_profile_fixup): Likewise.
2357         Patch by H.J. Lu <hjl.tools@gmail.com>.
2359         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2360         warning.
2362         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2363         from definition.
2365         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2366         label if it is not used.
2368         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2369         of gmon_hist_hdr and gmon_hdr structures and use them.
2370         * elf/sprof.c: Likewise.
2372         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2373         warning.
2375         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2377         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2378         to avoid cast.
2380         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2381         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2382         to avoid warnings.
2383         (iruserok_af): Use ss_family instead of casts.
2385         * gmon/gmon.c (write_hist): Define real-type variant of
2386         gmon_hist_hdr structure and use it.
2387         (write_gmon): Likewise for gmon_hdr.
2389         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2390         function if we are not going to define it.
2391         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2393         * inet/inet6_option.c (option_alloc): Add temporary variable to
2394         avoid warning.
2396         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2397         name of VTable element.
2398         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2399         * libio/iovsscanf.c: Likewise.
2400         * libio/vasprintf.c: Likewise.
2401         * libio/vsnprintf.c: Likewise.
2402         * stdio-common/isoc99_vsscanf.c: Likewise.
2403         * stdlib/strfmon_l.c: Likewise.
2404         * debug/vasprintf_chk.c: Likewise.
2405         * debug/vsnprintf_chk.c: Likewise.
2406         * debug/vsprintf_chk.c: Likewise.
2408         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2409         function pointers.
2411 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2413         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2415 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2417         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2419         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2420         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2421         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2422         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2423         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2424         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2425         * math/libm-test.inc: Add tests for errno after tan calls with
2426         Â±Inf.
2428         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2429         errno value vor pow(+-0,neg).
2430         * math/libm-test.inc (pow_test): Add tests for errno value for
2431         pole errors.
2433         * math/w_fmod.c: Also handle x=±Inf as error.
2434         * math/w_fmodf.c: Likewise.
2435         * math/w_fmodl.c: Likewise.
2436         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2437         x=±Inf or y=0.
2439         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2440         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2441         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2442         * sysdeps/i386/fpu/s_sin.S: Likewise.
2443         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2444         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2445         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2446         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2447         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2448         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2449         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2450         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2451         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2452         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2453         Â±Inf.
2455         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2456         ERANGE for underflows.
2457         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2459         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2460         the 2001 revision.
2462         * libio/tst-widetext.input: Remove surrogates.
2464         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2466         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2467         for lgamma should set errno to ERANGE, not EDOM.
2468         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2470 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2472         [BZ #10093]
2473         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2474         UTF-16 surrogates.
2476         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2477         space when temporarily mapping the whole content of the old file.
2479         [BZ #10100]
2480         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2481         not zero.
2483 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2485         * iconvdata/sjis.c (BODY): Don't advance inptr before
2486         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2487         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2488         two byte chars.
2490 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2492         * locale/locarchive.h (struct locarhandle): Rename len field to
2493         mmaped and add new reserved field.
2494         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2495         (create_archive): Reserve address space and then map file into it.
2496         (open_archive): Likewise.
2497         (file_data_available_p): New function.
2498         (compare_from_file): New function.
2499         (close_archive): Adjust to member name changes.
2500         (add_locale): Before comparing locale data, check it is mapped.
2501         Otherwise fall back to reading from the file.
2503 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2505         * stdio-common/psiginfo.c: Include <errno.h>.
2507 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2509         [BZ #9920]
2510         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2511         to get consistency between 32 and 64 bit architectures.
2513         [BZ #10052]
2514         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2515         directory for dummy syscall rules.
2516         Patch by Chris Steinbroner <hesh@pobox.com>.
2518 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2520         [BZ #10092]
2521         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2522         MNT_EXPIRE.
2524 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2526         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2527         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2529 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2531         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2532         data from vector to temporary buffer and call PWRITEV after it
2533         instead of vice versa.
2534         * sysdeps/posix/preadv.c: Fix up comment.
2535         * misc/preadv.c: Likewise.
2536         * misc/preadv64.c: Likewise.
2537         * misc/pwritev.c: Likewise.
2538         * misc/pwritev64.c: Likewise.
2539         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2541 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2543         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2545         * shadow/Makefile (tests): Add tst-shadow.
2546         * shadow/tst-shadow.c: New file.
2548         [BZ #9955]
2549         * gshadow/Makefile: New file.
2550         * gshadow/Versions: New file.
2551         * gshadow/fgetsgent.c: New file.
2552         * gshadow/fgetsgent_r.c: New file.
2553         * gshadow/getsgent.c: New file.
2554         * gshadow/getsgent_r.c: New file.
2555         * gshadow/getsgnam.c: New file.
2556         * gshadow/getsgnam_r.c: New file.
2557         * gshadow/gshadow.h: New file.
2558         * gshadow/putsgent.c: New file.
2559         * gshadow/sgetsgent.c: New file.
2560         * gshadow/sgetsgent_r.c: New file.
2561         * gshadow/tst-gshadow.c: New file.
2562         * include/gshadow.h: New file.
2563         * Makeconfig (all-subdirs): Add gshadow.
2564         * Makefile (installed-headers): Add gshadow/gshadow.h.
2565         * nss/Makefile (databases): Add sgrp.
2566         * nss/Versions: Add gshadow functions as private exports.
2567         * nss/nsswitch.conf: Add gshadow entry.
2568         * nss/sgrp-lookup.c: New file.
2569         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2570         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2571         * nss/nss_files/files-sgrp.c: New file.
2572         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2573         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2575 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2577         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2578         * stdio-common/reg-modifier.c: Likewise.
2580 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2582         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2583         is no FPU.
2585 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2587         [BZ #10086]
2588         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2589         headers up to 2.6.30.
2591         * po/ca.po: Update from translation team.
2593 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2595         [BZ #10069]
2596         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2597         an object that uses static TLS if the TLS modid is higher than the
2598         reserve we always allocate.  At least for multi-threaded code.
2600 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2602         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2603         Numerically stable check for valid width.
2605         * locale/programs/locarchive.c (open_archive): Map the entire file
2606         and not just the administrative data.
2607         (add_locale): When we find a hash sum match compare the content
2608         to be sure.
2610         * malloc/malloc.c (malloc_info): Output address space information.
2612 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2614         * malloc/malloc.c (malloc_info): Also output system memory information.
2616         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2617         architectures have preadv/pwritev in 2.6.30.
2619         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2620         * sysdeps/posix/readv.c: Likewise.
2621         Reported by Markus Armbruster <armbru@redhat.com>.
2623         * malloc/hooks.c (top_check): Force hook value into register.
2625 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2627         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2628         calls to _dl_relocate_object.
2630 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2632         [BZ #9957]
2633         * malloc/malloc.c (force_reg): Define.
2634         (sYSMALLOc): Load hook variable into variable
2635         before test and force into register.
2636         (sYSTRIm): Likewise.
2637         (public_mALLOc): Force hook value into register.
2638         (public_fREe): Likewise.
2639         (public_rEALLOc): Likewise.
2640         (public_mEMALIGn): Likewise.
2641         (public_vALLOc): Likewise.
2642         (public_pVALLOc): Likewise.
2643         (public_cALLOc): Likewise.
2644         (__posix_memalign): Likewise.
2645         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2646         before test and force into register.
2647         * malloc/hooks.c (top_check): Likewise.
2648         (public_sET_STATe): Pretty printing.
2650         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2651         in case we only receive one reply in single-request mode.
2653 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2655         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2656         are dlopened in statically linked program even for __LM_ID_CALLER.
2658 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2660         * resolv/res_send.c (send_dg): Don't switch into single-request
2661         mode if we already are in it.
2663 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2665         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2666         are always at least 4 bytes in the returned line.
2668 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2670         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2671         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2672         instead of 8K.  Stop searching in /proc/stat after hitting first
2673         line not starting with cpu.
2674         (next_line): Truncate too long
2675         lines at buffer size * 3/4 instead of pretending there were line
2676         breaks inside of large lines.
2678 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2680         * sysdeps/x86_64/mp_clz_tab.c: New file.
2682 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2683             Ulrich Drepper  <drepper@redhat.com>
2685         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2686         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2687         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2689 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2691         * sysdeps/sh/libc-tls.c: New file.
2693         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2695 2009-04-14  Roland McGrath  <roland@redhat.com>
2697         * elf/elf.h: Add various missing ARM constants, to match binutils.
2699 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2701         Optimizations from GMP.
2702         * sysdeps/x86_64/add_n.S: New file.
2703         * sysdeps/x86_64/addmul_1.S: New file.
2704         * sysdeps/x86_64/lshift.S: New file.
2705         * sysdeps/x86_64/mul_1.S: New file.
2706         * sysdeps/x86_64/rshift.S: New file.
2707         * sysdeps/x86_64/sub_n.S: New file.
2708         * sysdeps/x86_64/submul_1.S: New file.
2710 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2712         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2713         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2714         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2715         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2717 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2719         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2720         preadv/pwritev.
2722 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2724         * sysdeps/x86-64/strrchr.S: New file.
2726 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2728         * stdio-common/printf.h (struct printf_info): Add user element.
2729         New types printf_arginfo_size_function, printf_va_arg_function.
2730         Declare register_printf_specifier, register_printf_modifier,
2731         register_printf_type.
2732         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2733         (union printf_arg): Add pa_user element.
2734         Adjust __printf_arginfo_table type.
2735         Add __printf_va_arg_table, __printf_modifier_table,
2736         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2737         declarations.
2738         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2739         If registered arginfo call failed try normal specifier.
2740         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2741         function.
2742         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2743         * stdio-common/Versions: Export register_printf_modifier,
2744         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2745         * stdio-common/reg-modifier.c: New file.
2746         * stdio-common/reg-type.c: New file.
2747         * stdio-common/reg-printf.c (__register_printf_specifier): New
2748         function.  Mostly the old __register_printf_function function but
2749         uses locking and type of third parameter changed.
2750         (__register_printf_function): Implement using
2751         __register_printf_specifier.
2752         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2753         calls to arginfo functions.  Allocate enough memory for user-defined
2754         types.  Call new va_arg functions to get user-defined types.
2755         Try installed handlers even for existing format specifiers first.
2757 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2759         * sysdeps/x86_64/rawmemchr.S: New file.
2761         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2762         Simplified code and possible copy problem fixed.
2764         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2765         function if it is not defined.  Add some necessary casts.
2766         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2768         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2769         have preadv/pwritev in 2.6.30.
2771 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2773         * malloc/malloc.c (malloc_info): New function.
2774         * malloc/malloc.h: Declare it.
2775         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2777         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2778         to avoid PLT slot.
2780         * malloc/malloc.c (_int_realloc): Add parameter with old block
2781         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2782         Adjust all callers.
2783         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2785 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2787         * sysdeps/x86_64/strchrnul.S: New file.
2789         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2790         depending libcrypt on -lfreebl3.
2792         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2793         preadv/pwritev in 2.6.30.
2795         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2796         instead of __strcasecmp.
2798         * string/stratcliff.c (do_test): Add memchr tests..
2799         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2800         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2801         first read quad word.
2803 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2805         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2806         * string/tst-svc.input: Add new test case.
2807         * string/tst-svc.expect: Adjust.
2808         * string/Makefile: Don't ignore tst-svc error.
2810         * sysdeps/x86_64/memchr.S: New file.
2812         * resolv/resolv.h (RES_SNGLKUP): Define.
2813         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2814         * resolv/res_send.c (send_dg): If we sent two requests at once and
2815         only get one reply before timeout switch to mode where we send the
2816         second request only after the first answer has been received.
2818 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2820         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2821         * sysdeps/x86_64/strchr.S: Likewise.
2823 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2825         * configure.in: We need to test for the compiler earlier.
2827         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2828         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2829         GLIBC_2.10.
2830         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2831         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2832         and pwritev.
2833         * misc/preadv.c: New file.
2834         * misc/preadv64.c: New file.
2835         * misc/pwritev.c: New file.
2836         * misc/pwritev64.c: New file.
2837         * sysdeps/posx/preadv.c: New file.
2838         * sysdeps/posx/preadv64.c: New file.
2839         * sysdeps/posx/pwritev.c: New file.
2840         * sysdeps/posx/pwritev64.c: New file.
2841         * sysdeps/unix/sysv/linux/preadv.c: New file.
2842         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2843         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2844         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2845         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2846         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2848         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2849         compatibility code.
2850         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2852         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2853         __ASSUME_COMPLETE_READV_WRITEV.
2854         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2855         with modern kernels.
2856         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2858         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2859         to free a possible malloced buffer in case of cancellation.
2860         * sysdeps/posix/writev.c: Likewise for write.
2862 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2864         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2866         * configure.in: Recognize --enable-nss-crypt.
2867         * config.make.in: Add nss-crypt entry.
2868         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2869         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2870         and include path for NSS directory to compiler for md5-crypt,
2871         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2872         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2873         function implementation, use NSS.  Introduce wrappers around the
2874         hash function calls.  Little code size optimization.
2875         * crypt/sha256-crypt.c: Likewise.
2876         * crypt/sha512-crypt.c: Likewise.
2877         * scripts/check-local-headers.sh: Ignore nss3 directory.
2879         * configure.in: Rename pic_default to libc_cv_pic_default.
2880         * config.make.in: Likewise.
2882 2009-04-01  Roland McGrath  <roland@redhat.com>
2884         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2885         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2886         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2887         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2888         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2889         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2890         (R_SPARC_NUM): Update.
2891         From Dave Miller <davem@davemloft.net>.
2893 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2895         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2897 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2899         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2900         those which are used.
2901         * elf/dl-addr.c: Likewise.
2902         * elf/dl-caller.c: Likewise.
2903         * elf/dl-fini.c: Likewise.
2904         * elf/dl-iteratephdr.c: Likewise.
2905         * elf/dl-libc.c: Likewise.
2906         * elf/dl-load.c: Likewise.
2907         * elf/dl-support.c: Likewise.
2908         * elf/dl-sym.c: Likewise.
2909         * elf/rtld.c: Likewise.
2910         * sysdeps/generic/ldsodefs.h: Likewise.
2912         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2913         * elf/dl-minimal.c: Likewise.
2914         * elf/dl-misc.c: Likewise.
2915         * elf/rtld.c: Likewise.
2916         * sysdeps/generic/ldsodefs.h: Likewise.
2918 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2920         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2921         Avoid reuse of complex expression.
2923         * po/fr.po: Update from translation team.
2925 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2927         * include/dirent.h: Yet more changes to match sort function type
2928         change.
2929         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2930         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2931         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2933 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2935         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2937 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2939         * nscd/connections.c (restart): Try to preserve the process name
2940         by reading the /proc/self/exe symlink and using the return name.
2941         Patch by Jeff Bastian <jbastian@redhat.com>.
2943 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2945         [BZ #9733]
2946         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2947         if we are not loading a new audit library.
2948         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2949         Only use profiling trampoline for auditing if we are not relocating
2950         an audit library.
2951         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2952         * elf/rtld.c: Likewise.
2953         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2955         * elf/rtld.c (dl_main): Extend help message for --audit option.
2957         [BZ #9759]
2958         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2959         alphasort64, versionsort, and versionsort64 to POSIX 2008.
2960         * dirent/alphasort.c: Adjust implementation to type change.
2961         * dirent/alphasort64.c: Likewise.
2962         * dirent/scandir.c: Likewise.
2963         * dirent/versionsort.c: Likewise.
2964         * dirent/versionsort64.c: Likewise.
2965         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2966         declaration.
2967         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2968         declaration.
2970         [BZ #9880]
2971         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2972         correctly.  Set segleft member in output as required.
2973         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2974         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2976         [BZ #9881]
2977         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2978         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2979         * inet/Makefile (tests): Add tst-inet6_rth.
2980         * inet/tst-inet6_rth.c: New file.
2982         [BZ #5807]
2983         * string/strlen.c (strlen): Fix omission in the expression to test
2984         for NUL bytes.
2986 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2988         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2990         * elf/dl-runtime.c (reloc_offset): Define.
2991         (reloc_index): Define.
2992         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2993         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
2994         computing index from reloc_offset.
2995         (_dl_call_pltexit): Likewise.
2996         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2997         the relocation index to _dl_fixup.
2998         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2999         _dl_call_pltexit.
3000         * sysdeps/x86_64/dl-runtime.c: New file.
3002         [BZ #9893]
3003         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3004         alignment of La_x86_64_regs.  Store xmm parameters.
3005         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3007         [BZ #9913]
3008         * string/strverscmp.c (__strverscmp): Fix case of different digits
3009         in fractional part of string.
3010         Patch by Jingyu Liu <jyliu@fortinet.com>.
3011         * string/Makefile (tests): Add tst-svc2.
3012         * string/tst-svc2.c: New file.
3014         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3016         * locale/iso-639.def: Add Min Nan.
3018 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3020         [BZ #9948]
3021         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3023 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3025         * elf/dl-sysdep.c (auxvars): Compress data structure.
3027         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3028         STT_GNU_IFUNC handling.
3029         (elf_machine_rela): Likewise.
3031 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3033         * config.h.in (USE_MULTIARCH): Define.
3034         * configure.in: Handle --enable-multi-arch.
3035         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3036         (_dl_fixup_profile): Likewise.
3037         * elf/do-lookup.c (dl_lookup_x): Likewise.
3038         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3039         * elf/elf.h (STT_GNU_IFUNC): Define.
3040         * include/libc-symbols.h (libc_ifunc): Define.
3041         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3042         framework in init-arch.h to get CPUID values.
3043         * sysdeps/x86_64/multiarch/Makefile: New file.
3044         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3045         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3046         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3048         * config.make.in (experimental-malloc): Define.
3049         * configure.in: Handle --enable-experimental-malloc.
3050         * malloc/Makefile: Handle experimental-malloc flag.
3051         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3052         * malloc/arena.c: Likewise.
3053         * malloc/hooks.c: Likewise.
3054         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3056 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3058         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3059         prediction.  A few size optimizations.
3061 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3063         * time/tzset.c: Optimize a bit for size.
3065 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3067         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3068         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3070         * elf/sprof.c: Avoid warning about multi-line comment.
3072 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3074         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3075         DST name.
3076         * time/tst-posixtz.c: Add tests for quoted timezone names.
3078 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3080         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3081         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3082         200809L instead of 200112L.
3083         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3084         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3086         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3087         instead of __quick_exit_funcs to __run_exit_handlers.
3088         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3089         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3090         (__cxa_at_quick_exit): Remove attribute_hidden.
3091         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3092         to __run_exit_handlers.
3093         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3094         attribute_hidden.
3096 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3098         * po/id.po: Update from translation team.
3100 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3103         .machine push; .machine "power6" and .machine pop around mtfsf
3104         insns outside of _ARCH_PWR6 define.
3105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3107         Likewise.
3108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3109         Likewise.
3110         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3111         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3112         relax_fenv_state): Likewise.
3114 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3116         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3117         cxa_at_quick_exit.
3118         (static-only-routines): Add at_quick_exit.
3119         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3120         GLIBC_2.10.
3121         * stdlib/quick_exit.c: New file.
3122         * stdlib/at_quick_exit.c: New file.
3123         * stdlib/cxa_at_quick_exit.c: New file.
3124         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3125         it appropriately.
3126         (__internal_atexit): New function.
3127         (__new_exitfn): Now takes parameter to point to the list to use.
3128         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3129         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3130         (exit): ...here.  Just call __run_exit_handlers appropriately.
3131         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3132         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3133         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3134         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3136         * po/id.po: Update from translation team.
3138 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3140         * po/ru.po: Update from translation team.
3142 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3144         * po/nl.po: Update from translation team.
3146 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3148         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3149         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3150         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3151         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3152         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3153         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3154         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3156         * po/pl.po: Update from translation team.
3158 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3160         [BZ #7083]
3161         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3162         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3163         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3164         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3165         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3166         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3167         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3168         for GLIBC_2.10.
3169         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3170         Add fallocate and fallocate64.
3172         * io/fcntl.h: Pretty printing.
3174 2009-03-02  Richard Guenther  <rguenther@suse.de>
3176         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3177         attribute also for non-C99 inline semantics variant.
3179 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3181         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3182         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3183         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3184         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3186         Likewise.
3187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3188         Likewise.
3190 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3192         * po/cs.po: Update from translation team.
3194 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3196         * po/bg.po: Update from translation team.
3197         * po/sv.po: Likewise.
3198         * po/fi.po: Likewise.
3199         * po/vi.po: Likewise.
3201 2009-02-27  Roland McGrath  <roland@redhat.com>
3203         * Makeconfig (%.v.i): Depend on Makeconfig.
3204         Exclude % lines from initial #-comment removal.
3206 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3208         * po/ko.po: Update from translation team.
3210 2009-02-26  Roland McGrath  <roland@redhat.com>
3212         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3213         avoids unused warning.
3215 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3216             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3218         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3219         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3220         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3221         and asm/user.h.  Include asm/ptrace.h.
3222         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3223         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3224         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3225         Undefine.
3226         (start_thread): Don't undefine.
3227         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3228         Define.
3230 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3232         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3233         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3234         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3235         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3236         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3237         200112L to 200809L.
3238         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3239         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3240         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3241         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3242         _SC_THREAD_ROBUST_PRIO_PROTECT.
3243         * posix/unistd.h: fexecve is in POSIX 2008.
3244         * time/time.h: strftime_l is in POSIX 2008.
3245         * io/sys/stat.h: futimens is in POSIX 2008.
3246         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3247         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3248         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3249         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3250         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3251         open_memstream, and vdprintf are in POSIX 2008.
3253 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3255         * include/features.h: Define macros for XPG7/POSIX 2008.
3256         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3257         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3258         POSIX 2008.
3259         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3260         * locale/xlocale.h: Define locale_t type.
3261         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3262         in POSIX 2008.  Don't define locale_t here.
3263         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3264         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3265         UTIME_OMIT only with __USE_ATFILE.
3266         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3267         * stdio-common/psiginfo.c: New file.
3268         * stdio-common/psiginfo-data.h: New file.
3269         * stdio-common/psiginfo-define.h: New file.
3270         * stdio-common/Makefile (routines): Add psiginfo.
3271         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3272         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3273         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3274         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3275         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3276         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3277         * io/sys/stat.h: Move mknodat definition into same conditional as
3278         mknod.
3279         * time/sys/time.h: futimesat is not among the functions accepted
3280         into the POSIX standard.
3282         * include/features.h: If no feature selection given and we select
3283         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3284         * posix/Versions: Export __posix_getopt.
3285         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3286         Use it to alternatively initialize __posixly_correct.
3287         (_getopt_internal_r): Take addition parameter.  Pass on to
3288         _getopt_initialize.
3289         (_getopt_internal): Take addition parameter.  Pass on to
3290         _getopt_internal_r.
3291         (getopt): Pass additional zero to _getopt_internal.
3292         (__posix_getopt): New function.
3293         * posix/getopt.h: Add redirection for getopt.
3294         * posix/getopt1.c (getopt_long): Pass additional zero to
3295         _getopt_internal.
3296         (getopt_long_only): Likewise.
3297         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3298         (_getopt_long_only_r): Likewise.
3299         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3300         _getopt_internal_r.
3302 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3304         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3305         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3306         * sysdeps/posix/sysconf.c (__sysconf): Handle
3307         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3308         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3310 2009-02-24  Roland McGrath  <roland@redhat.com>
3312         [BZ #9895]
3313         * README.template: Reworded not to use substituted version number.
3314         Renamed to ...
3315         * README: ... here (no longer generated).
3316         * Makefile (README): Target removed.
3318 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3320         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3321         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3322         instead.
3324         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3326         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3328 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3330         * po/bg.po: Update from translation team.
3332 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3334         * stdlib/monetary.h: Uglify function parameter names.
3335         * sunrpc/rpc/pmap_clnt.h: Likewise.
3336         * sunrpc/rpc/svc.h: Likewise.
3337         * sunrpc/rpc/xdr.h: Likewise.
3338         * sunrpc/rpc/clnt.h: Likewise.
3339         * resolv/netdb.h: Likewise.
3340         * resolv/arpa/nameser.h: Likewise.
3341         * resolv/resolv.h: Likewise.
3342         * argp/argp.h: Likewise.
3343         * locale/langinfo.h: Likewise.
3344         * io/sys/stat.h: Likewise.
3345         * posix/spawn.h: Likewise.
3346         * nis/rpcsvc/nislib.h: Likewise.
3347         * malloc/obstack.h: Likewise.
3348         * sysdeps/ia64/bits/link.h: Likewise.
3349         * sysdeps/i386/bits/link.h: Likewise.
3350         * sysdeps/s390/bits/link.h: Likewise.
3351         * sysdeps/powerpc/bits/link.h: Likewise.
3352         * sysdeps/x86_64/bits/link.h: Likewise.
3353         * sysdeps/sparc/bits/link.h: Likewise.
3354         * sysdeps/sh/bits/link.h: Likewise.
3355         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3356         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3357         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3358         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3360 2008-12-01  Fredrik Unger  <fred@tree.se>
3362         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3363         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3364         _FP_UNPACK_RAW_2, fix up first argument.
3366 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3368         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3369         (GET_NPROCS_PARSER): Change parameters and use next_line.
3370         (__get_nprocs): Rewrite to not use stdio routines.
3371         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3372         Change parameters and use next_line.
3374 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3376         [BZ #5381]
3377         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3378         Change mempool_alloc prototype.
3379         * nscd/mem.c (gc): Don't handle mem_in_flight.
3380         (mempool_alloc): Third parameter now only indicates whether this is the
3381         first call (to allocate data) or not.  If it is, get db rdlock.
3382         Release it on error.  Don't handle mem_in_flight.
3383         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3384         Adjust third parameter of mempool_alloc calls.
3385         Nothing to do here in case mempool_alloc fails.
3386         Avoid local variable shadowing parameter.  No need to get db rdlock
3387         before calling cache_add.
3388         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3389         no mem_in_flight array anymore.
3390         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3391         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3392         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3393         in case mempool_alloc fails. No need to get db rdlock before calling
3394         cache_add.
3395         * nscd/hstcache.c (cache_addhst): Likewise.
3396         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3397         * nscd/servicescache.c (cache_addserv): Likewise.
3398         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3400 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3402         * po/lt.po: Update from translation team.
3404 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3406         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3407         defined, allow additional data to be added using the optional
3408         MORE_ELF_HEADER_DATA macro.
3409         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3410         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3412 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3414         * include/atomic.h: Define catomic_and if not already defined.
3415         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3416         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3418 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3420         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3421         Change all callers.
3422         (_int_realloc): Likewise.  Third argument is now padded size
3423         All _int_* functions are now static.
3425         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3426         * malloc/arena.c: Likewise.
3427         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3428         functions.
3430         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3431         easily.
3433         * malloc/malloc.c: Add branch prediction for use of the hooks.
3435         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3437 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3439         [BZ #7095]
3440         * bits/confname.h: Add SUSv7 macros for getconf environments.
3441         * bits/environments.h: Likewise.
3442         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3443         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3444         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3445         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3446         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3447         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3448         * posix/getconf.c: Likewise.
3449         * posix/sysconf.c: Likewise.
3450         * sysdeps/posix/sysconf.c: Likewise.
3451         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3452         environments.
3454 2009-01-16  Petr Baudis  <pasky@suse.cz>
3456         [BZ #9753]
3457         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3458         even if we currently have zero nscount.
3460 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3462         [BZ #9781]
3463         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3464         the input line is too long.
3466         * po/Makefile (libc.pot): Add f_print as function taking c-format
3467         parameter.
3469         * debug/xtrace.sh: Unify translatable messages.
3470         * elf/ldd.bash.in: Likewise.
3471         * elf/sprof.c: Likewise.
3472         * locale/programs/locale.c: Likewise.
3473         * malloc/memusage.sh: Likewise.
3474         * nss/getent.c: Likewise.
3476 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3478         * debug/pcprofiledump.c (print_version,
3479         argp_program_version_hook): New function.
3480         * elf/ldconfig.c (more_help): New function.
3481         (argp): Use it.
3482         * elf/sln.c (usage): New function.
3483         (main): Support --help and --version.
3484         * malloc/memusagestat.c (print_version): New function.
3485         (argp_program_version_hook): New variable.
3486         * nscd/nscd.c (more_help): New function.
3487         (argp): Use it.
3488         * posix/getconf.c (main): Send --version output to stdout.
3489         Support --help.
3490         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3491         arguments.  All callers changed.
3492         (print_version): New function.
3493         (parseargs): Support --help and --version.
3494         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3495         changed.
3496         (print_version): New function.
3497         (main): Use getopt_long.  Support --help and --version.
3498         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3499         --version.
3501 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3503         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3504         (update_data): Fix handling of wrapping back
3505         to the beginning of the buffer.
3507         [BZ #9823]
3508         * stdio-common/psignal.c (psignal): Fix test for empty string.
3510 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3512         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3513         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3514         move _null_auth to .rodata.
3516         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3517         value of 24.
3519         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3521         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3522         today than when the original code was written.  Use larger
3523         buffers.  This also makes it unnecessary to have stat information,
3524         if this causes extra efforts.
3525         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3526         __alloc_dir.
3528 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3530         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3531         is set.
3532         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3533         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3534         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3535         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3536         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3537         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3539 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3541         * po/ru.po: Update from translation team.
3543 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3545         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3546         Add _tid slot to maintain consistency with kernel.
3548 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3550         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3551         incomplete characters at end of input buffer.
3552         * libio/Makefile (tests): Add tst-fgetwc.
3553         * libio/tst-fgetwc.c: New file.
3554         * libio/tst-fgetwc.input: New file.
3556 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3558         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3560 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3562         [BZ #9793]
3563         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3564         *OUTBUFSTART unless the whole output fit into the buffer.
3565         * iconv/Makefile (tests): Add tst-iconv4.
3566         * iconv/tst-iconv4.c: New file.
3568 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3570         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3571         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3573 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3575         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3576         newer linker scripts.
3578 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3580         [BZ #7040]
3581         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3582         inotify_rm_watch should have type int.
3584 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3586         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3587         Make aligned_restore_vmx a local symbol.
3588         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3589         Likewise.
3591 2009-01-30  Andreas Jaeger  <aj@suse.de>
3593         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3594         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3595         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3596         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3597         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3598         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3599         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3601 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3603         [BZ #9726]
3604         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3605         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3607 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3609         [BZ #9726]
3610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3611         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3613         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3615 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3617         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3618         memcpy instead of memcmp.
3619         (_dl_setup_pointer_guard): Likewise.
3621 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3623         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3624         manipulated brk, use malloc_printerr.
3625         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3626         requests.
3628 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3630         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3631         rindex): For C++ add inlines so that they can be recognized as
3632         builtins.
3633         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3635 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3636             Jakub Jelinek  <jakub@redhat.com>
3638         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3639         * wcsmbs/wchar.h: Likewise.
3641 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3643         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3644         (stackinfo_sub_sp): Define.
3646 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3648         [BZ #9750]
3649         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3650         * include/alloca.h (alloca_account): Define.
3651         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3652         (stackinfo_sub_sp): Define.
3654         * nscd/connections.c (nscd_init): If database file access fails
3655         check whether this is due to permission problems and bail in that
3656         case.
3658         [BZ #9741]
3659         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3660         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3662 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3664         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3665         Add "t" to clobber list.
3666         (INTERNAL_SYSCALL_NCS): Likewise.
3668 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3670         * nss/getent.c (print_networks): Don't print comma between aliases.
3672 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3674         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3676         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3677         the hash table.
3678         * misc/Makefile (tests): Add bug-hsearch1.
3679         * misc/bug-hsearch1.c: New file.
3681 2009-01-22  Roland McGrath  <roland@redhat.com>
3683         * Makeconfig (%.v.i): Strip trailing # comments,
3684         not only whole-line comments.
3686 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3688         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3689         one parameter.  If non-NULL use it to initialize return value.
3690         (_dl_setup_pointer_guard): New function.
3691         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3692         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3693         * elf/rtld.c (security_init): Pass _dl_random to
3694         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3695         pointer_chk_guard.
3696         * elf/dl-sysdep.c (_dl_random): New variable.
3697         (_dl_sysdep_start): Handle AT_RANDOM.
3698         (_dl_show_auxv): Likewise.
3699         * elf/dl-support.c (_dl_random): New variable.
3700         (_dl_aux_init): Handle AT_RANDOM.
3701         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3702         to _dl_setup_stack_chk_guard.
3704         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3706 2009-01-10  Roland McGrath  <roland@redhat.com>
3708         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3710 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3712         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3714         [BZ #9706]
3715         * nss/nss_files/files-parse.c (strtou32): New function.
3716         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3717         across 32-bit and 64-bit platforms.
3718         (INT_FIELD_MAYBE_NULL): Likewise.
3720 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3722         [BZ #9720]
3723         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3724         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3725         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3726         Likewise.
3728 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3730         [BZ #697]
3731         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3732         being NULL also if there are no backreferences.
3733         * posix/rxspencer/tests: Add testcases.
3735 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3737         [BZ #9697]
3738         * posix/bug-regex17.c: Add testcases.
3739         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3740         handling.
3742 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3744         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3745         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3746         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3747         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3748         for elf subdir.
3749         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3750         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3751         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3752         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3753         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3754         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3756 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3758         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3759         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3760         re_string_skip_chars, re_string_reconstruct): Likewise.
3761         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3763 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3765         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3766         adjust the buffer alignment.
3768 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3770         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3771         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3772         net/route.h.
3774         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3775         flavor to description only when flavor is not NULL.
3777         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3778         mutex after SIGIO/SIGURG lookup loop.
3780 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3782         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3784 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3786         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3787         handling.
3789 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3791         * sysdeps/unix/sysv/linux/kernel-features.h
3792         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3794         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3795         if no output is written.
3797         * version.h: Bump to 2.10 development.
3799         * posix/getconf.c: Update copyright year.
3800         * nss/getent.c: Likewise.
3801         * iconv/iconvconfig.c: Likewise.
3802         * iconv/iconv_prog.c: Likewise.
3803         * elf/ldconfig.c: Likewise.
3804         * catgets/gencat.c: Likewise.
3805         * csu/version.c: Likewise.
3806         * elf/ldd.bash.in: Likewise.
3807         * elf/sprof.c (print_version): Likewise.
3808         * locale/programs/locale.c: Likewise.
3809         * locale/programs/localedef.c: Likewise.
3810         * nscd/nscd.c (print_version): Likewise.
3811         * debug/xtrace.sh: Likewise.
3812         * malloc/memusage.sh: Likewise.
3813         * malloc/mtrace.pl: Likewise.
3814         * debug/catchsegv.sh: Likewise.
3816 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3818         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3819         script.
3821 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3823         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3824         gethostbyname4_r function call succeeded, just leave the loop.
3826         [BZ #9694]
3827         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3828         very end.
3829         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3830         * wctype/Makefile (tests): Add bug-wctypeh.
3831         * wctype/bug-wctypeh.c: New file.
3833         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3834         LOCALDOMAIN is defined.
3835         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3837         * sysdeps/x86_64/bits/select.h: New file.
3839         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3841 2008-12-21  Bruno Haible  <bruno@clisp.org>
3843         [BZ #9677]
3844         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3845         if no output is written.
3847 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3849         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3850         libc internal symbol __dup2 to avoid access through the PLT.
3852 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3854         [BZ #6545]
3855         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3856         available only for __USE_GNU.
3858         * inet/Makefile (tests): Add tst-getni2.
3859         * inet/tst-getni2.c: New file.
3861         [BZ #7080]
3862         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3863         NULL when NI_NAMEREQD is set.
3864         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3865         * inet/Makefile (tests): Add tst-getni1.
3866         * inet/tst-getni1.c: New file.
3868 2008-12-03  Petr Baudis  <pasky@suse.cz>
3870         [BZ #7067]
3871         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3872         instead of prune_lock.
3873         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3874         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3876 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3878         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3879         use.
3881         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3882         handling.
3884         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3885         after reading name server list.
3887         [BZ #7058]
3888         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3889         handling for host name aliases.
3891 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3893         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3894         instead of doing things manually.
3896 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3898         * posix/regex_internal.h (build_wcs_upper_buffer):
3899         Return type is reg_error_t.
3901 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3903         * posix/globtest.sh: Use mktemp to create temporary file and
3904         directory.
3906         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3907         sets correctly.
3908         (__CPU_CLR_S): Likewise.
3909         (__CPU_ISSET_S): Likewise.
3911 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3912             Ulrich Drepper  <drepper@redhat.com>
3914         * scripts/firstversion.awk: Use custom comparison function to compare
3915         version numbers.
3916         * scripts/versions.awk: Use sort invocation which can handle
3917         multi-digit sub-version numbers.
3919 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3921         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3922         * locale/iso-639.def: Add Chhattisgarhi entry.
3924 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3926         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3927         ESRCH return value.
3928         (_nss_dns_gethostbyname4_r): Likewise.
3929         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3930         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3931         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3932         the no_data variable.
3934         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3935         information at the correct index.
3937         * socket/sys/socket.h: Declare accept4.
3938         * socket/accept4.c: New file.
3939         * sysdeps/unix/sysv/linux/accept4.c: New file.
3940         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3941         * socket/Makefile (routines): Add accept4.
3942         * socket/Versions: Export accept4 with version GLIBC_2.10.
3943         * socket/paccept.c: Removed.
3944         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3945         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3946         * Versions.def: Define GLIBC_2.10 for libc.
3947         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3949         * nscd/connections.c: Use accept4.
3951         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3953 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
3955         * resolv/res_send.c (send_dg): Create sockets with non-blocking
3956         flag already set.
3958         * stdlib/setenv.c (unsetenv): Don't search environment if it does
3959         not exist.
3960         * stdlib/Makefile (tests): Add tst-unsetenv1.
3961         * stdlib/tst-unsetenv1.c: New file.
3963 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
3965         * login/utmp_file.c (file_writable): New variable.
3966         (setutent_file): Don't try to open file for writing.
3967         (pututline_file): Before writing, make descriptor writable if
3968         necessary.
3970 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
3972         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3973         to IPv4 or IPv6 if an interface has been found.
3975 2008-11-26  Roland McGrath  <roland@redhat.com>
3977         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3978         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3980         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3981         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3982         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3984         * elf/elf.h (NT_386_IOPERM): New macro.
3985         (NT_PPC_VSX): New macro.
3987 2008-11-25  Roland McGrath  <roland@redhat.com>
3989         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3990         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3991         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3992         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3993         Subdirectories moved to ports repository.
3994         * configure.in (base_machine): Remove alpha case.
3996 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
3998         * sysdeps/mach/strerror_l.c: New file.
4000 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4002         [BZ #6411]
4003         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4004         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4005         magic numbers.
4006         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4007         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4008         (relax_fenv_state): Same as above.
4009         (FPSCR_29): Reserve bit in ISA 2.05.
4010         (FPSCR_NI): Provide define for compat.
4011         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4012         magic numbers.
4013         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4014         magic numbers.
4015         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4016         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4017         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4018         access to hwcap to account for hwcap size increase to uint64_t.
4019         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4020         Likewise.
4021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4022         (*setcontext): Likewise.
4023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4024         New file.
4025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4026         New file.
4027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4028         (*setcontext): dynamically select mtfsf insn based on
4029         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4030         increase to uint64_t.
4031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4032         (*swapcontext): dynamically select mtfsf insn based on
4033         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4034         increase to uint64_t.
4035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4036         New file.
4037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4038         New file.
4039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4040         (*setcontext): dynamically select mtfsf insn based on
4041         PPC_FEATURE_HAS_DFP.
4042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4043         (*swapcontext): dynamically select mtfsf insn based on
4044         PPC_FEATURE_HAS_DFP.
4046 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4048         * version.h: Bump for 2.9 release.
4049         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4051         [BZ #7029]
4052         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4053         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4054         all the rounding.
4056 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4058         [BZ #7009]
4059         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4060         unknown request types for now.
4062 2008-11-11  Roland McGrath  <roland@redhat.com>
4064         * sysdeps/x86_64/configure: New file.
4066         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4067         * configure: Regenerated.
4069 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4071         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4072         correct instruction to remove the stack frame.
4074 2008-11-03  Michael Matz  <matz@suse.de>
4076         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4077         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4079 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4081         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4082         Remove.
4084         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4085         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4086         of the thread variable instead of void *.
4087         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4088         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4089         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4090         __libc_tsd_define arguments.
4091         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4092         __libc_tsd_address arguments.  Remove union hack.
4093         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4094         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4095         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4096         Adjust __libc_tsd_{set,get} arguments.
4097         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4098         __libc_tsd_define arguments.
4099         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4100         arguments.
4101         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4102         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4103         (LOCALE): Adjust __libc_tsd_define arguments.
4104         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4105         arguments.
4106         (LOCALE): Adjust __libc_tsd_define arguments.
4107         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4108         arguments.
4109         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4110         arguments.
4112 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4114         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4115         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4117 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4119         [BZ #6966]
4120         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4122 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4123             Ulrich Drepper  <drepper@redhat.com>
4125         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4126         definition for GCC 3.1 and later.
4128 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4130         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4131         refetch dtv, as it might have changed.
4132         * elf/Makefile: Add rules to build and run tst-tls18.
4133         * elf/tst-tls18.c: New test.
4134         * elf/tst-tlsmod18a.c: New file.
4136 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4138         [BZ #6875]
4139         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4141 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4143         [BZ #6867]
4144         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4146         [BZ #6919]
4147         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4148         Fix length of copy operation.
4150 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4152         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4153         and fix its calling convention.
4155 2008-10-07  Andreas Schwab  <schwab@suse.de>
4157         [BZ #6942]
4158         * resolv/res_send.c (send_vc): Fix last change.
4159         (send_dg): Align here as well.
4161 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4163         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4164         return value in case rlimit is RLIM_INFINITY.
4166         [BZ #6947]
4167         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4168         for UL_SETFSIZE.
4169         * resource/Makefile (tests): Add bug-ulimit1.
4170         * resource/bug-ulimit1.c: New file.
4172         [BZ #6974]
4173         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4174         without dot.  Properly terminate the string with a null byte.
4175         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4177         [BZ #6980]
4178         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4179         negative sizees.
4180         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4181         negative __size.
4183         [BZ #6995]
4184         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4186 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4188         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4189         abort if there is no initgroups_dyn function.
4191         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4192         result if any of the queries really provided an answer.
4194 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4196         * po/lt.po: Update from translation team.
4198 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4200         * po/id.po: Update from translation team.
4202 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4204         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4205         Fix tests for existence of second reply.
4207 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4209         * po/id.po: New file.
4210         Contributed by the Indonesian translation team.
4212 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4214         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4215         initialization.
4217 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4219         * elf/Makefile: Add rules to build and run tst-tls17.
4220         * elf/tst-tls17.c: New test.
4221         * elf/tst-tlsmod17a.c: New file.
4222         * elf/tst-tlsmod17b.c: Likewise.
4224 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4226         * stdlib/divmod_1.c: Use correct type for dummy variable.
4227         * stdlib/mod_1.c: Likewise.
4229 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4231         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4233 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4235         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4236         __nonnull order for C++.
4237         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4238         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4240 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4242         * stdlib/longlong.h: Update from GCC.
4244 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4245             David S. Miller  <davem@davemloft.net>
4247         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4248         make sure any registers used with 64-bit 'branch-on-register'
4249         instructions have their top 32-bits clear.
4250         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4251         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4253 2008-09-18  Andreas Schwab  <schwab@suse.de>
4255         [BZ #6942]
4256         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4257         Properly handle partial reads.
4259 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4261         * elf/elf.h (STO_MIPS_PLT): New.
4262         (R_MIPS_COPY): New.
4263         (R_MIPS_JUMP_SLOT): New.
4264         (R_MIPS_NUM): Redefine to 128.
4265         (DT_MIPS_PLTGOT): New.
4266         (DT_MIPS_RWPLT): New.
4267         (DT_MIPS_NUM): Redefine to 0x35.
4269 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4271         * timezone/africa: Update from tzdata2008f.
4272         * timezone/asia: Likewise.
4273         * timezone/australasia: Likewise.
4274         * timezone/europe: Likewise.
4275         * timezone/leapseconds: Likewise.
4276         * timezone/northamerica: Likewise.
4277         * timezone/southamerica: Likewise.
4278         * timezone/zone.tab: Likewise.
4280 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4282         * nscd/connections.c: Disable use of paccept for now.
4284 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4286         * socket/Versions: Remove paccept export for GLIBC_2.9.
4287         * socket/Makefile (routines): Remove paccept.
4288         * socket/sys/socket.h: Remove paccept declaration.
4290         * po/sv.po: Update from translation team.
4292 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4294         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4295         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4297 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4299         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4300         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4302 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4304         * sunrpc/rpc/svc.h: Declare svcfd_create.
4305         Patch by Michael Solberg <msolberg@redhat.com>.
4307 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4308             Ulrich Drepper  <drepper@redhat.com>
4310         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4311         _int_valloc fails.
4312         (public_pVALLOc): Likewise.
4314 2008-09-02  Andreas Jaeger  <aj@suse.de>
4316         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4317         commit.
4319 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4321         [BZ #6860]
4322         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4324 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4326         * Makefile (check-data): Check data directory in add-ons.
4327         * elf/Makefile (check-data): Likewise.
4329 2008-08-18  Roland McGrath  <roland@redhat.com>
4331         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4332         * configure: Regenerated.
4333         * config.make.in (cflags-cpu): New substituted variable.
4334         (with-cpu): Variable removed.
4335         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4337 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4339         [BZ #6845]
4340         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4341         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4342         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4343         redundant.  Functions which call floating point assembler operations
4344         should go into a sysdeps powerpc/fpu directory.
4346 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4348         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4349         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4351 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4353         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4355         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4356         change related to AT_EXECFN.  We cannot use that string.
4357         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4358         _dl_execfn member.
4359         * elf/dl-support.c: Remove _dl_execfn variable.
4360         (_dl_aux_init): Remove handling of AT_EXECFN.
4361         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4362         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4364 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4366         [BZ #6544]
4367         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4368         byte gets added to writes and seeks from the end use the length of
4369         the buffer and not the currently terminating NUL byte.
4371         [BZ #6634]
4372         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4373         Set to true if locking failed.
4374         (getutid_r_file): Adjust caller.
4375         (pututline_file): Likewise.  Return NULL in this case.
4376         Patch mostly by halesh.s@gmail.com.
4378 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4380         [BZ #6589]
4381         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4382         Define.
4383         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4385 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4387         [BZ #6839]
4388         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4389         macro since it is now available in elf/dynamic-link.h.
4391 2008-08-12  Roland McGrath  <roland@frob.com>
4393         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4394         in case used outside of libc.
4395         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4397 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4399         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4400         directly instead of going through dn_comp.
4402 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4404         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4405         Fix asm constraints.
4407 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4409         [BZ #6790]
4410         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4411         (IPV6_PMTUDISC_PROBE): Likewise.
4413 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4415         [BZ #6791]
4416         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4418 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4419             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4421         [BZ #6817]
4422         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4423         Added the members 'vsx' and 'arch_2_06'.
4424         (_dl_powerpc_platforms): Add the member 'power7'.
4425         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4426         to reflect the changes required by VSX and ISA 2.06.
4427         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4428         'power7'.
4429         Defined PPC_PLATFORM_POWER7.
4430         (_dl_string_platform): Add support for POWER7.
4431         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4432         capability and ISA 2.06.
4434 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4436         [BZ #6824]
4437         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4438         macro to detect use of 128 bit long double.
4439         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4441 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4443         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4445         [BZ #5794]
4446         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4447         parameters.
4448         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4449         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4451 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4453         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4454         guaranteed to be large enough to read inotify event.  Ignore
4455         EAGAIN error.  Better error message.  Add branch predicition.
4456         (main_loop_epoll): Likewise.
4458 2008-08-02  Roland McGrath  <roland@frob.com>
4460         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4461         Add memory clobbers.
4463 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4465         * manual/arith.texi: Avoid @strong{Note:}.
4466         * manual/creature.texi: Likewise.
4467         * manual/filesys.texi: Likewise.
4468         * manual/math.texi: Likewise.
4469         * manual/memory.texi: Likewise.
4470         * manual/resource.texi: Likewise.
4471         * manual/syslog.texi: Likewise.
4472         * manual/time.texi: Likewise.
4474         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4475         to prevent warning.
4477 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4479         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4480         new epoll_create1 interface.
4481         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4482         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4483         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4485         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4486         (NS_GET32): Likewise.
4488         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4489         syscalls, too.
4491         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4492         use the AT_EXECFN value if it is no absolute path.
4493         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4494         __ASSUME_AT_EXECFN.
4496         * Versions.def: Add GLIBC_2.9 to libresolv.
4497         * include/resolv.h: Remove hidden proto declarations for __ns_*
4498         functions.  Add them for __dn_count_labels and __p_secstodate.
4499         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4500         Define ns_msg_getflags macro here.
4501         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4502         and __p_secstodate.
4503         * resolv/Versions: Export functions from <arpa/nameser.h> from
4504         libresolv in version GLIBC_2.9.
4505         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4506         hidden definitions.
4507         * resolv/ns_netint.c: Likewise.
4508         * resolv/ns_parse.c: Likewise.
4509         * resolv/ns_print.c: Likewise.
4510         * resolv/ns_samedomain.c: Likewise.
4511         * resolv/ns_ttl.c: Likewise.
4512         * resolv/arpa/nameser_compat.h: Likewise.
4513         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4514         function calls.
4515         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4516         instead of ns_get16.
4517         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4518         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4519         (gaih_getanswer_slice): Likewise.
4520         * resolv/Makefile (libresolv-routines): Add ns_date.
4521         * resolv/ns_date.c: New file.
4523         * elf/Makefile (check-localplt.out): Also check libresolv and
4524         libcrypt.
4526 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4528         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4529         __ASSUME_O_CLOEXEC.
4531 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4533         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4534         buffer passed to NSS functions.
4536         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4538         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4539         Define.
4541         * misc/syslog.c (openlog_internal): Fix compile problem.
4543 2008-07-28  Roland McGrath  <roland@redhat.com>
4545         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4547 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4549         * io/ftw.c (add_object): Remove inline to avoid warning.
4551         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4553         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4554         Use it instead of locally defined resplen2 variable.
4555         (res_nsend): Adjust for __libc_res_nsend interface change.
4556         (send_vc): Initialize *resplen2 if necessary.  Read length of
4557         package into an appropriately aligned variable.  Store converted length
4558         in new variable and use it appropriately.
4559         Add branch prediction help.
4560         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4561         and pass it on to __libc_res_nsend.  Adjust all callers.
4562         (__libc_res_nsearch): Likewise.
4563         (__libc_res_nqeurydomain): Likewise.
4564         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4565         change.
4566         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4567         Define resplen2 variable and pass it to __libc_res_nsearch and then
4568         to gaih_getanswer.
4569         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4570         Add branch prediction.
4571         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4572         (gaih_getanswer): Don't decode second slice if first one failed due
4573         to a too small buffer.  Don't let not found status of second
4574         decoder shadow results of the first.
4575         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4576         and __libc_res_nquery interface changes
4577         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4578         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4579         __libc_res_nsearch, and __libc_res_nsend.
4580         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4581         change.
4582         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4583         __libc_res_nsearch interface changes.
4585 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4587         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4589         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4590         file descriptors with close-on-exec set.
4591         (exec_comm_child): Fix the case where the write end of the pipe is
4592         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4594         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4595         * io/pipe2.c: Likewise.
4596         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4597         instead of __ASSUME_PACCEPT.
4598         * include/unistd.h: Declare __have_pipe2.
4599         * libio/iopopen.c: Implement "e" flag.
4600         * libio/Makefile (tests): Add tst-popen1.
4601         * libio/tst-popen1.c: New file.
4603         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4604         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4606 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4608         [BZ #6771]
4609         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4610         success call of _IO_SEEKOFF or calls which failed because the
4611         descriptor is for a pipe.
4613         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4614         magic number.
4616         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4618         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4619         F_SETFD use if we know fopen set the flag.
4621         * login/utmp_file.c (setutent_file): Minor optimization in case
4622         O_CLOEXEC is available.
4624 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4626         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4627         * elf/Makefile: Use pie-ccflag variable.
4628         * nscd/Makefile: Likewise.
4629         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4631 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4633         [BZ #6724]
4634         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4635         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4636         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4637         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4638         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4639         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4640         utmp32, utmpx32 and login32.
4641         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4642         versions of struct utmp functions to libc and libutil.
4643         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4644         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4645         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4646         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4647         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4648         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4649         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4650         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4651         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4652         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4653         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4654         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4655         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4656         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4657         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4658         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4659         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4660         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4661         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4662         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4663         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4664         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4666 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4668         * scripts/gen-as-const.awk: Generate more widely usable code by
4669         using 64-bit arithmetic.
4671         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4672         the same treatment as narrow output code in last patch.
4674         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4676         [BZ #6763]
4677         * elf/dl-load.c (local_strdup): Remove inline.
4678         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4679         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4680         part of the object.
4682         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4684 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4686         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4687         the new syscalls, too.
4689         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4690         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4692         [BZ #6698]
4693         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4694         parameter for end of buffer.  If temporary copy is too large use
4695         malloc.
4696         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4697         interface change.
4698         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4699         string rewrite when allocating buffer.
4701         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4702         syscalls, too.
4704         * nscd/connections.c (nscd_init): Clean up fcntl call.
4706         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4707         SOCK_NONBLOCK if possible.
4709         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4710         SOCK_CLOEXEC if available.
4712         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4713         __libc_clntudp_bufcreate_internal.
4714         * include/sys/socket.h: Declare __have_sock_cloexec.
4715         * socket/Makefile (aux): Add have_sock_cloexec.
4716         * socket/have_sock_cloexec.c: New file.
4717         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4718         __libc_clntudp_bufcreate.
4719         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4720         which takes an additional parameter.  Create socket with non-blocking
4721         mode and close-on-exec flag set, if wanted.
4722         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4723         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4724         instead of clntudp_create.  The socket has already the close-on-exec
4725         flag set if SOCK_CLOEXEC is defined.
4727 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4729         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4730         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4731         appropriate.
4732         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4733         non-blocking mode by using socket, paccept, and inotify_init1.
4735         * Versions.def (glibc): Add GLIBC_2.9.
4736         * io/Makefile (routines): Add dup3 and pipe2.
4737         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4738         * io/dup3.c: New file.
4739         * io/pipe2.c: New file.
4740         * posix/unistd.h: Declare dup3 and pipe2.
4741         * socket/Makefile (routines): Add paccept.
4742         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4743         * socket/paccept.c: New file.
4744         * socket/sys/socket.h: Declare paccept.
4745         * sysdeps/unix/syscalls.list: Add entry for dup3.
4746         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4747         epoll_create2 and inotify_init1.
4748         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4749         * sysdeps/unix/sysv/linux/paccept.c: New file.
4750         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4751         possible.
4752         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4753         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4754         inotify_init1, and pipe2 entries.
4755         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4756         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4757         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4758         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4759         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4760         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4761         SOCK_NONBLOCK.
4762         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4763         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4764         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4765         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4766         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4767         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4768         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4769         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4770         EPOLL_NONBLOCK.  Declare epoll_create2.
4771         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4772         EFD_NONBLOCK.
4773         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4774         IN_NONBLOCK.  Declare inotify_init1.
4775         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4776         SFD_NONBLOCK.
4777         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4778         TFD_NONBLOCK.
4780         * elf/elf.h: Define AT_EXECFN.
4781         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4782         LD_ORIGIN_PATH.
4783         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4784         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4785         if __ASSUME_AT_EXECFN is defined.
4786         (_dl_aux_init): Handle AT_EXECFN.
4787         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4788         for 2.6.27 and up.
4789         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4790         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4791         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4792         _dl_execfn if available and avoid compatibility code if
4793         __ASSUME_AT_EXECFN is defined.
4795         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4796         _dl_discover_osversion only for older kernels.
4798 2008-07-22  Roland McGrath  <roland@frob.com>
4800         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4802 2008-07-21  Roland McGrath  <roland@frob.com>
4804         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4805         returned too much data out of line.
4807 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4809         * locale/setlocale.c (setname): Remove inline to avoid compiler
4810         warning.
4812         [BZ #6712]
4813         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4815 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4817         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4818         doesn't manage to write anything, fail.
4820         * malloc/hooks.c (__malloc_check_init): Remove printf.
4822 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4824         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4826 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4828         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4829         from inotify.
4830         (main_loop_epoll): Likewise.
4832 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4834         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4836         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4837         if DEBUG is defined.
4839         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4840         query.  Adjust buffer size computation for padding.
4842 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4844         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4845         * stdio-common/tst-setvbuf1.c: New file.
4846         * stdio-common/tst-setvbuf1.expect: New file.
4848         [BZ #6719]
4849         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4850         when selecting fully-buffered stream.
4851         Patch by Wang Xin <wxinee@gmail.com>.
4853 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4855         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4856         (__open_2): New function.
4857         (__open64_2): New alias to __open_2.
4858         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4859         (__openat_2): New function.
4860         (__openat64_2): New alias to __openat_2.
4862 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4864         [BZ #6723]
4865         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4867 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4869         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4870         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4871         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4872         __hurd_dfail.
4873         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4874         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4875         * sysdeps/mach/hurd/send.c (__send): Likewise.
4876         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4877         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4879 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4881         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4882         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4883         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4884         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4885         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4886         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4888 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4890         [BZ #6657]
4891         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4892         of %EY.
4893         Patch by Petr Baudis.
4895 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4897         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4898         Patch by Peter Jones <pjones@redhat.com>.
4900 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4902         [BZ #6654]
4903         * stdlib/canonicalize.c (__realpath): readlink can write too much
4904         into the buffer on platforms without PATH_MAX.
4906 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4908         [BZ #6653]
4909         * posix/tst-regex.c (main): Rename to...
4910         (do_test): ... this. Remove cmdline option processing.
4911         (TIMEOUT): Define.
4912         (TEST_FUNCTION): Define.
4913         (CMDLINE_OPTIONS): Define.
4915 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4917         [BZ #5210]
4918         * configure.in: Add -Werror to -fstack-protector test to catch
4919         unsupported architectures.
4920         Patch by Gilles Esponasse <g.esp@free.fr>.
4922 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4924         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4925         getcontext returns ENOSYS.
4927 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4929         * nscd/connections.c (main_loop_poll): Fix test for read error.
4930         (main_loop_epoll): Likewise.
4932 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4934         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4935         better place so it is not called when nscd is used.
4937         * nscd/connections.c: Also recognize and handle changes to the
4938         resolver configuration file.
4940 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4942         * time/strftime.c: Pass reference to tzset_called around to handle
4943         recursive calls.
4945         [BZ #6612]
4946         * time/strftime.c (__strftime_internal): Call tzset() only
4947         when printing timezone-dependent values.
4948         Based on a patch by Petr Baudis <pasky@suse.cz>.
4950         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4951         unconditionally use second gaih_getanswer_slice result.
4953         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4954         (getaddrinfo): RES must always be non-NULL.
4956 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4958         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4959         cr[34] registers.
4960         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4961         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4962         Likewise.
4963         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4964         register.
4966 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4968         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4969         fields.
4970         * nscd/connections.c (inotify_fd): New variable.
4971         (nscd_init): Try to open an inotify descriptor.
4972         If successful, watch files for databases using inotify instead of
4973         having prune threads stat the files.
4974         (nscd_run_prune): Recognize clear_cache flag being set and call
4975         prune_cache appropriately.
4976         (main_loop_poll): Add inotify descriptor to wait set and handle the
4977         reported changes.
4978         (main_loop_epoll): Likewise.
4979         * nscd/cache.c (prune_cache): Don't stat files for databases if
4980         inotify is used.
4981         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4982         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4984         * nscd/grpcache.c (cache_addgr): Correctly compute size of
4985         fixed-size portion of the record.
4986         * nscd/servicescache.c (cache_addserv): Likewise.
4987         * nscd/pwdcache.c (cache_addpw): Likewise.
4988         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4990 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
4992         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4993         out we don't use uninitialized memory.
4995         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4996         the client.
4998 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5000         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5001         ignore T_DNAME messages.
5002         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5004 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5006         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5007         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5009 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5011         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5012         instead of portstr to nscd_getserv_r.  Patch by
5013         Roman Kagan <rkagan@mail.ru>.
5015 2008-05-26  Jim Meyering  <meyering@redhat.com>
5017         Remove more useless "if" tests before "free".
5018         * include/inline-hashtab.h (htab_delete): Likewise.
5019         * libio/freopen.c (freopen): Likewise.
5020         * libio/freopen64.c (freopen64): Likewise.
5021         * locale/programs/ld-collate.c (collate_read): Likewise.
5022         * misc/fstab.c (libc_freeres_fn): Likewise.
5023         * posix/glob.c (globfree): Likewise.
5025 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5027         * string/Makefile (strop-tests): Add memmem.
5028         * string/test-memmem.c: New file.
5029         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5030         (test_init): Size buf1 according to BUF1PAGES.
5032 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5034         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5035         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5036         (CFLAGS-scanf17.c): New.
5037         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5038         * stdio-common/scanf15.c (main): Likewise.
5039         * stdio-common/scanf16.c: New file.
5040         * stdio-common/scanf17.c: New file.
5042 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5044         * resolv/res_send.c (send_dg): If we already have one of two
5045         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5046         use the one answer insted of failing.
5048 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5050         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5051         being executed on PowerPC as the expected result exceeds IBM
5052         long double 128 __LDBL_MAX__.
5054 2008-05-21  Roland McGrath  <roland@redhat.com>
5056         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5058         * Makefile (check-data): Use $(abi-name) before other guesses.
5059         Look in $(add-ons) dirs before scripts/data/.
5060         * elf/Makefile (check-data): Likewise.
5062         * scripts/soversions.awk: Grok ABI line.
5063         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5064         Emit definition for abi-name variable.
5066 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5068         * string/endian.h: Define new fixed-size hto* and *toh macros only
5069         if [__USE_BSD].
5071         * iconvdata/Depend: Add localedata.
5073 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5075         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5077 2008-05-08  David S. Miller  <davem@davemloft.net>
5079         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5080         HIDDEN_JUMPTARGET.
5081         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5082         (__SYSCALL_CLOBBERS): Remove %g* registers.
5083         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5084         (__SYSCALL_CLOBBERS): Likewise.
5085         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5086         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5088 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5090         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5091         (CALL_ERRNO_LOCATION): Define.
5092         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5093         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5094         (CALL_ERRNO_LOCATION): Define.
5095         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5096         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5097         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5099 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5101         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5102         variable.
5104 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5106         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5107         (FIRST_FRAME_POINTER): Define.
5109 2008-05-09  David S. Miller  <davem@davemloft.net>
5111         * sysdeps/sparc/sparc64/backtrace.c: New file.
5113 2008-05-14  David S. Miller  <davem@davemloft.net>
5115         * sysdeps/sparc/machine-gmon.h: New file.
5116         * sysdeps/sparc/sparc-mcount.S: Likewise.
5117         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5118         sysdep_routines in gmon directory.
5120 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5122         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5124 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5126         * resolv/res_query.c (__libc_res_nquery): In case one of two
5127         answer was too short don't try to read that answer's header.
5129         * resolv/res_send.c (send_dg): In case of timeout and there are
5130         two queries and one has been answered, return value indicating
5131         success.
5133 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5135         * nscd/cache.c (cache_add): Take additional parameter specifying
5136         whether this is in response of a cache refill.  Check alignment
5137         of package data.  Revamp waking of pruning thread.
5138         (prune_cache): Small optimization.
5139         * nscd/nscd.h: Adjust cache_add prototypes.
5140         * nscd/aicache.c: Adjust cache_add calls.
5141         * nscd/grpcache.c: Likewise.
5142         * nscd/hstcache.c: Likewise.
5143         * nscd/initgrcache.c: Likewise.
5144         * nscd/pwdcache.c: Likewise.
5145         * nscd/servicescache.c: Likewise.
5146         * nscd/connections.c (restart): Really disable cache use before
5147         exec attempt.  If it fails, reenable cache.
5148         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5149         time to max to be able to notice concurrent cache additions.  Unlock
5150         prune_lock while performing gc.  Afterwards compute wakeup time with
5151         current wakeup_time value in mind.
5153 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5155         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5157         * nscd/mem.c (gc): Correctly determine highest used array element
5158         in mark.
5160         * nscd/mem.c (markrange): Add assert to check entries are all
5161         aligned.  Small cleanup in bitmap use.
5163         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5164         blockoff of type nscd_ssize_t.
5165         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5166         (mempoll_alloc): Record block offset and not address.
5168         * nscd/mem.c (gc): Fix test for stack overuse.
5170         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5171         more asserts.
5173         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5174         entry is available, believe it.
5176         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5177         no answers return NSS_STATUS_NOTFOUND.
5178         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5179         buffer does not have any content.
5181 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5183         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5185         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5186         lookup, don't assign canon unconditionally.
5188 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5190         * string/Makefile (distribute): Add str-two-way.h.
5192 2008-03-29  Eric Blake  <ebb9@byu.net>
5194         Rewrite string searches to O(n) rather than O(n^2).
5195         * string/str-two-way.h: New file.  For linear fixed-allocation
5196         string searching.
5197         * string/memmem.c: New implementation.
5198         * string/strstr.c: New implementation.
5199         * string/strcasestr.c: New implementation.
5201 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5203         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5204         opr.ctx_type.
5205         (calc_first): Initialize constraint field.
5206         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5207         Use search_duplicated_node to avoid loops.  Fix grammar.
5208         (duplicate_node): Merge constraint field for all node types.
5209         (calc_eclosure_iter): Look at constraint field for all node types.
5210         * posix/regex_internal.c (create_cd_newstate): Don't look at
5211         create_cd_newstate.
5213 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5215         [BZ #6428]
5216         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5218         [BZ #6442]
5219         * string/endian.h: Add macros for fixed-size endian conversion.
5220         * bits/byteswap.h: Allow inclusion from <endian.h>.
5221         * sysdeps/i386/bits/byteswap.h: Likewise.
5222         * sysdeps/ia64/bits/byteswap.h: Likewise.
5223         * sysdeps/s390/bits/byteswap.h: Likewise.
5224         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5225         * string/Makefile (tests): Add tst-endian.
5226         * string/tst-endian.c: New file.
5228         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5229         Patch by Reuben Thomas.
5231 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5233         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5235 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5237         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5239         [BZ #6461]
5240         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5241         Add missing braces.
5242         (BODY for __gconv_transform_internal_ascii): Likewise.
5244         [BZ #6472]
5245         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5246         to be treated like link-local addresses.
5247         (match_prefix): Don't treat IPv4 loopback address special when
5248         converting to v4 mapped addressed.
5250         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5251         if necessary.
5252         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5253         * posix/tst-rfc3484-2.c: Likewise.
5254         * posix/tst-rfc3484-3.c: Likewise.
5256         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5257         and SCTP.
5259         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5261         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5263         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5265 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5267         * po/lt.po: New file.  From Lituanian translation team.
5269 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5271         Introduce TLS descriptors for i386 and x86_64.
5272         * include/inline-hashtab.h: New file, copied from 2005's
5273         libiberty, with fix for memory leak imported afterwards by
5274         Glauber de Oliveira Costa.
5275         * elf/tlsdeschtab.h: New file.
5276         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5277         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5278         (CHECK_STATIC_TLS): Move to...
5279         * elf/dynamic-link.h: ... this file.
5280         (TRY_STATIC_TLS): New macro.
5281         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5282         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5283         R_386_TLS_DESC): Define.
5284         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5285         binutils.
5286         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5287         R_X86_64_TLSDESC): Define.
5288         (R_386_NUM, R_X86_64_NUM): Adjust.
5289         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5290         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5291         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5292         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5293         release tlsdesc_table.
5294         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5295         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5296         (elf_machine_rel): Handle R_386_TLS_DESC.
5297         (elf_machine_rela): Likewise.
5298         (elf_machine_lazy_rel): Likewise.
5299         (elf_machine_lazy_rela): Likewise.
5300         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5301         * sysdeps/i386/dl-tlsdesc.S: New file.
5302         * sysdeps/i386/dl-tlsdesc.h: New file.
5303         * sysdeps/i386/tlsdesc.c: New file.
5304         * sysdeps/i386/tlsdesc.sym: New file.
5305         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5306         tlsdesc_table.
5307         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5308         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5309         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5310         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5311         release tlsdesc_table.
5312         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5313         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5314         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5315         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5316         (elf_machine_rela): Likewise.
5317         (elf_machine_lazy_rel): Likewise.
5318         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5319         (__tls_get_addr): Do not declare for non-shared compiles.
5320         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5321         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5322         * sysdeps/x86_64/tlsdesc.c: New file.
5323         * sysdeps/x86_64/tlsdesc.sym: New file.
5324         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5325         tlsdesc_table for both 32- and 64-bit structs.
5327 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5329         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5330         its own function.  This reduces the frame setup costs and more.
5332 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5334         [BZ #3406]
5335         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5336         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5338 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5340         * io/openat.c (__openat_2): Also pass fd to __openat.
5341         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5342         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5344         * string/tester.c (test_memcmp): Add a few more tests.
5345         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5347 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5349         * nscd/cache.c (cache_add): Before returning with failure and this
5350         is the first use of the record, mark it as unusable.
5351         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5352         reporting a failure.
5353         * nscd/grpcache.c: Likewise
5354         * nscd/hstcache.c: Likewise.
5355         * nscd/initgrcache.c: Likewise.
5356         * nscd/pwdcache.c: Likewise.
5357         * nscd/servicescache.c: Likewise.
5359 2008-05-10  Roland McGrath  <roland@redhat.com>
5361         [BZ #6505]
5362         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5364 2008-05-08  David S. Miller  <davem@davemloft.net>
5366         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5368         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5369         (__ieee754_y0l): Likewise.
5370         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5371         (__ieee754_y1l): Likewise.
5372         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5373         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5374         frexpl and ldexpl.  math_private.h provides them and the latter
5375         is not even used.
5376         (__log1pl): Use __frexpl.
5378 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5380         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5381         prototypes.
5382         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5383         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5384         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5385         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5386         af==AF_UNSPEC.
5387         (_nss_nis_gethostbyname4_r): New function.
5388         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5389         Change to also handle af==AF_UNSPEC.
5390         (get_tablename): New function.  Use it to avoid duplication.
5391         (_nss_nisplus_gethostbyname4_r): New function.
5392         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5393         available.
5394         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5395         * nss/nss.h: Define struct gaih_addrtuple.
5396         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5397         af==AF_UNSPEC.
5398         (_nss_files_gethostbyname4_r): New function.
5399         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5400         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5401         calls.
5402         * resolv/res_query.c (__libc_res_nquery): Take two additional
5403         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5404         look up IPv4 and IPv6.
5405         Change all callers.
5406         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5407         for an additional query and answer buffer.  Pass to send_vc and
5408         send_dg.
5409         (send_vc): Send possibly two requests and receive two answers.
5410         (send_dg): Likewise.
5411         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5412         __libc_res_nquery.
5413         (_nss_dns_gethostbyname4_r): New function.
5414         (gaih_getanswer_slice): Likewise.
5415         (gaih_getanswer): Likewise.
5416         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5417         __libc_res_nquery call.
5418         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5419         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5420         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5421         available.
5423 2008-05-05  David S. Miller  <davem@davemloft.net>
5425         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5426         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5428 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5430         Fix termios bit macros.
5431         Move *DLY definitions where they belong, in termios.h.
5432         Add *[0-3] definitions.
5433         Fixes confusion between VT and FF.
5434         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5435         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5436         are already defined to avoid collision with termios.h.
5437         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5438         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5439         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5440         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5441         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5442         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5443         VTDLY, VT0, VT1): New macros.
5444         [__USE_GNU] (OLCUC): Change value of macro.
5445         [__USE_XOPEN] (OFILL): New macro.
5446         [__USE_BSD] (CRTSCTS): Change value.
5447         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5448         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5449         (B7200, B14400, B28800, B76800): New macros.
5451 2008-05-01  David S. Miller  <davem@davemloft.net>
5453         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5454         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5455         (gen-as-const-headers): Add it.
5456         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5457         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5458         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5459         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5461         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5462         six system call parameters.
5463         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5465 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5467         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5468         RUSAGE_LWP.
5469         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5470         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5472 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5474         * stdlib/tst-setcontext.c: Include unistd.h.
5476 2008-04-25  David S. Miller  <davem@davemloft.net>
5478         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5479         Pass "union semun" properly in to sys_ipc, it must be passed
5480         by value, not by reference.
5482 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5484         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5485         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5486         * nscd/connections.c (mem_in_flight): Likewise.
5488         * nscd/nscd.h (dbs): Make hidden.
5490         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5491         Avoid returning -1, return 0 instead.
5493 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5495         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5497 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5499         [BZ #5209]
5500         * sysdeps/unix/sysv/linux/times.c: New file.
5502         [BZ #5381]
5503         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5504         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5505         prototype.
5506         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5507         appropriate mem_in_flight element.
5508         (gc): Take allocations which have not yet been committed to the
5509         database into account.
5510         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5511         Reset mem_in_flight before returning.
5512         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5513         cue it up in mem_in_flight_list.
5514         * nscd/aicache.c: Adjust mempool_alloc call.
5515         * nscd/grpcache.c: Likewise.
5516         * nscd/hstcache.c: Likewise.
5517         * nscd/initgrcache.c: Likewise.
5518         * nscd/pwdcache.c: Likewise.
5519         * nscd/servicescache.c: Likewise.
5520         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5521         of -fpie.
5523         * nscd/connections.c (handle_request): Provide better error message
5524         in case SELinux forbids the service.
5526         * version.h (VERSION): Bump to 2.8.90.
5528 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5530         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5532 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5534         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5535         Also use for 32-bit.
5536         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5537         __nextafter instead of nextafter to avoid local PLT.
5538         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5539         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5541         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5543         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5544         __fe_nomask_env.
5545         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5546         <fenv_libc.h> instead of <fenv.h>.
5547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5550         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5552         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5553         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5554         function from fegetexcept and make old name weak alias.
5555         * include/fenv.h: Declare __fegetexcept.
5556         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5557         fegetexcept.
5558         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5559         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5560         to fetestexcept.
5561         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5562         instead of frexpl to avoid local PLT.
5563         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5564         ilogbl to avoid local PLT.
5565         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5566         instead of ldexpl to avoid local PLT.
5567         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5568         __roundl not roundl to avoid local PLT.
5569         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5570         local PLTs.  Use __sincosl instead of separate sinl and cosl
5571         calls.
5572         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5574         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5575         version for ppc64 to 2.4.21 since without it makecontext will fail.
5577         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5578         to the ABI in use.
5579         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5580         .__tls_get_addr.
5581         [__powerpc64__] (TLS_GD): Likewise.
5583 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5585         [BZ #4997]
5586         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5587         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5588         mantissa.
5589         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5590         Likewise.  Also account for when x is an odd number between 2^52
5591         and 2^53-1.
5592         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5593         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5594         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5595         detect aforementioned erroneous conditions.
5597 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5599         * configure.in: Check for -fno-section-anchors in addition to
5600         -fno-toplevel-reorder.
5602 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5604         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5606         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5607         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5608         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5609         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5610         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5611         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5613 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5615         [BZ #5443]
5616         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5617         * time/alt_digit.c: Likewise.
5618         * wcsmbs/wcsmbsload.c: Likewise.
5620 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5622         * version.h (VERSION): Bump to 2.8.
5624         * timzeone/asia: Update from tzdata2008b.
5625         * timezone/backward: Likewise.
5626         * timezone/europe: Likewise.
5627         * timezone/northamerica: Likewise.
5628         * timezone/southamerica: Likewise.
5629         * timezone/iso3166.tab: Likewise.
5630         * timezone/leapseconds: Likewise.
5631         * timezone/zone.tab: Likewise.
5632         * timezone/private.h: Update from tzcode2008a.
5633         * timezone/zdump.c: Likewise.
5634         * timezone/zic.c: Likewise.
5636 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5638         [BZ #5741]
5639         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5640         Define additonal Data Cache Block instruction macros.
5641         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5642         Replace dcbst with dcbf and sync with sync/isync.
5644 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5646         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5647         Always set ELF_RTYPE_CLASS_PLT.
5648         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5650 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5652         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5653         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5654         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5655         For ISA 2.01 and later replace mftb with mfspr 268.
5657 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5659         [BZ #5768]
5660         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5661         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5663 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5665         [BZ #5768]
5666         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5667         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5668         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5669         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5671 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5673         * stdlib/tst-makecontext.c (othervar): New variable.
5674         (cf): Test sign extending the argument to long.
5676 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5678         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5679         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5680         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5681         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5682         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5683         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5684         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5686 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5688         * elf/Makefile (tests): Substitute tests-vis-yes here.
5689         (tests-vis-yes): Delete.
5690         (modules-name, modules-vis-yes): Similarly.
5692 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5694         [BZ #4407]
5695         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5696         Preserve sign in signgamp when x is zero.
5698 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5700         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5701         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5702         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5703         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5704         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5705         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5707 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5709         [BZ #4314]
5710         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5711         buffers.
5713         [BZ #5209]
5714         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5715         a reserved error value.
5717         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5718         value to check for correct sign extension.
5720         [BZ #5436]
5721         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5722         Copy 64-bit parameter values even though this is not required in
5723         the standard.
5725         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5726         PC save.
5728 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5730         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5731         PC save.
5733 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5735         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5737 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5739         [BZ #5998]
5740         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5741         in line-buffered stream failed.
5742         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5744 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5746         [BZ #6024]
5747         * scripts/abi-versions.awk: If the version specified by
5748         --enable-oldest-abi is older than the first version for this
5749         architecture, use the default version.
5751         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5752         as well when ignoring the whole category.
5754 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5756         [BZ #6042]
5757         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5758         ETHERTYPE_* definitions.
5759         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5761 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5763         * stdlib/mbtowc.c (__no_r_state): Remove.
5764         (mbtowc): New static state variable.  Use it instead of
5765         __no_r_state.
5766         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5767         (__wctomb_state): New hidden variable.
5768         (wctomb): Use __wctomb_state instead of __no_r_state.
5769         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5770         (__wctomb_state): New extern decl.
5771         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5773 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5775         [BZ #5475]
5776         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5778 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5780         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5782 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5784         * po/nl.po: Update from translation team.
5786 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5788         [BZ #6007]
5789         * string/strfry.c: Handle empty strings again.
5791 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5793         [BZ #5443]
5794         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5795         before looking for translation.
5796         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5797         * locale/freelocale.c: Likewise.
5798         * locale/newlocale.c: Likewise.
5799         * locale/setlocale.c: Likewise.
5800         Based partially on a patch by ryo@np.css.fujitsu.com.
5802 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5804         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5805         acquiring wrlock.  Do conv_tab allocation while holding lock.
5806         * intl/Makefile: Add rules to build and run tst-gettext6.
5807         * intl/tst-gettext6.c: New test.
5808         * intl/tst-gettext6.sh: New file.
5810 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5812         * po/nl.po: Update from translation team.
5814         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5815         provided through st_blksize, try the default size before giving up.
5817 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5819         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5821         [BZ #5939]
5822         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5824         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5825         error message.  POSIX today does not require the messages to be in
5826         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5828         [BZ #5979]
5829         * sunrpc/auth_unix.c: Unify printed strings.
5830         * sunrpc/clnt_tcp.c: Likewise.
5831         * sunrpc/clnt_udp.c: Likewise.
5832         * sunrpc/clnt_unix.c: Likewise.
5833         * sunrpc/svc_tcp.c: Likewise.
5834         * sunrpc/svc_udp.c: Likewise.
5835         * sunrpc/svc_unix.c: Likewise.
5836         * sunrpc/xdr.c: Likewise.
5837         * sunrpc/xdr_array.c: Likewise.
5838         * sunrpc/xdr_rec.c: Likewise.
5839         * sunrpc/xdr_ref.c: Likewise.
5840         * locale/programs/ld-time.c (time_finish): Unify messages.
5841         * locale/programs/locfile.c (handle_copy): Fix typo.
5842         * nscd/nscd.c (options): Fix typo.
5844         [BZ #5995]
5845         * stdlib/strtod_l.c: Use correct sign for result in one more
5846         underflow case.
5847         Patch by Eric Blake <ebb9@byu.net>.
5849 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5851         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5852         and creat system calls.
5853         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5854         call.
5855         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5856         system calls.
5857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5858         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5859         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5861 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5863         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5864         <linux/limits.h> has defined it.
5865         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5866         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5867         headers.
5868         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5869         it instead of ARG_MAX.
5871 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5873         * posix/gai.conf: Fix comment for scope nullbits.
5874         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5875         default to 128 bits for v4 mapped addresses.
5877 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5879         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5880         ptrace call to get the ieee_instruction_pointer from the kernel.
5881         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5882         ptrace call to set the ieee_instructtion_pointer.
5883         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5884         Add comment that ieee_instruction_pointer is always 0.
5886 2008-03-09  Andreas Jaeger  <aj@suse.de>
5888         [BZ #5857]
5889         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5890         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5891         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5893         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5894         (rint_test): Likewise.
5896 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5898         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5899         call.
5900         (__nisfind_server): Similar for open readColdStartFile call.
5901         Patch partially by Jim Meyering.
5902         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5903         around internal_setent call.
5905         * po/vi.po: New Vietnamese translation.
5907         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5908         ADJ_OFFSET_SS_READ.
5910         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5911         remove CLONE_STOPPED.
5913 2008-02-10  Jim Meyering  <meyering@redhat.com>
5915         Remove useless "if" before "free":
5916         * elf/ldconfig.c (parse_conf_include): Likewise.
5917         * gmon/gmon.c (weak_alias): Likewise.
5918         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5919         * inet/rcmd.c (__validuser2_sa): Likewise.
5920         * intl/bindtextdom.c (set_binding_values): Likewise.
5921         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5922         * libio/genops.c (save_for_backup): Likewise.
5923         * libio/wgenops.c (save_for_wbackup): Likewise.
5924         * locale/programs/ld-collate.c (collate_read): Likewise.
5925         * locale/programs/linereader.c (get_string): Likewise.
5926         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5927         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5928         * resolv/res_debug.c (do_section): Likewise.
5929         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5930         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5931         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5932         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5933         * time/tzset.c (tzset_internal): Likewise.
5935 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5937         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5938         of ASSEMBLER.
5940 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5942         [BZ #5903]
5943         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5944         not stream for output file.  Open output file here.
5945         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5946         and output file name.
5947         (process_fd): Likewise.
5948         (process_file): Likewise.
5949         (main): Adjust callers of changed functions.
5950         * iconv/iconv_prog.h: Adjust prototype.
5952 2008-03-09  Andreas Jaeger  <aj@suse.de>
5954         [BZ #5753]
5955         * sysdeps/ia64/ieee754.h: Use protected namespace
5956         __BIG_ENDIAN/__LITTLE_ENDIAN.
5957         * sysdeps/ieee754/ieee754.h: Likewise.
5958         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5960 2008-03-08  Roland McGrath  <roland@frob.com>
5962         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5963         ignore a signal that came from a machine exception, treat it as a
5964         fatal core-dump signal instead.
5965         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5967         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5968         Clear DF bit in thread state's eflags.
5969         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5971 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
5973         [BZ #5774]
5974         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5975         of NAN(...) sequence.
5976         * stdlib/Makefile (tests): Add tst-strtod6.
5977         * stdlib/tst-strtod6.c: New file.
5979         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5981         [BZ #5762]
5982         * posix/getopt.c (_getopt_internal_r): Clarify error message by
5983         putting offending option character in quotes.  Clean up error
5984         messages.
5985         * po/be.po: Adjust msgstr in translation file.
5986         * po/bg.po: Likewise.
5987         * po/ca.po: Likewise.
5988         * po/cs.po: Likewise.
5989         * po/da.po: Likewise.
5990         * po/de.po: Likewise.
5991         * po/es.po: Likewise.
5992         * po/fr.po: Likewise.
5993         * po/hr.po: Likewise.
5994         * po/ko.po: Likewise.
5995         * po/nl.po: Likewise.
5996         * po/rw.po: Likewise.
5997         * po/sk.po: Likewise.
5998         * po/sv.po: Likewise.
5999         * po/tr.po: Likewise.
6000         * po/zh_CN.po: Likewise.
6001         * po/zh_TW.po: Likewise.
6003         [BZ #5760]
6004         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6005         Patch by Roland Bless <roland@bless.de>.
6007         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6008         .o file.
6009         * elf/Makefile (routines): Add dl-sysdep.
6010         (elide-routines.os): Likewise.
6012 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6014         [BZ #5786]
6015         * elf/dl-sysdep.c: Undefine ROUND after use.
6016         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6017         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6018         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6019         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6020         to ...
6021         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6022         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6023         if necessary.
6024         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6026         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6027         _dl_tls_get_addr_soft element.
6028         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6029         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6030         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6031         GLRO.
6032         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6033         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6034         of internal_function.
6036         * stdlib/Makefile (aux): Add tens_in_limb.
6037         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6038         * stdlib/tens_in_limb.c: ...here.  New file.
6040         [BZ #5778]
6041         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6042         __statfs_chown_restricted.
6043         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6044         for _PC_CHOWN_RESTRICTED.
6045         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6046         Implement __statfs_chown_restricted.
6047         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6048         _POSIX_CHOWN_RESTRICTED value to zero.
6049         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6050         defined to zero.
6052         * sysdeps/x86_64/rtld-memset.c: New file.
6054 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6056         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6058         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6059         Barcelona machine.  Make default fall through branch of
6060         __x86_64_preferred_memory_instruction check as the integer code path.
6062 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6064         * sysdeps/x86_64/cacheinfo.c
6065         (__x86_64_preferred_memory_instruction): New variable.
6066         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6068         * sysdeps/x86_64/memset.S: Rewrite.
6070 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6072         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6073         __obstack_printf_chk): New prototypes.
6074         (__vasprintf_chk, __vdprintf_chk,
6075         __obstack_vprintf_chk): Likewise.
6076         Add libc_hidden_proto.
6077         * libio/obprintf.c
6078         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6079         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6080         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6081         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6082         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6083         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6084         __obstack_vprintf_chk): New prototypes.
6085         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6086         obstack_vprintf): New inlines.
6087         * debug/dprintf_chk.c: New file.
6088         * debug/vdprintf_chk.c: New file.
6089         * debug/asprintf_chk.c: New file.
6090         * debug/vasprintf_chk.c: New file.
6091         * debug/obprintf_chk.c: New file.
6092         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6093         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6094         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6095         @@GLIBC_2.8.
6096         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6097         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6098         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6099         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6100         libc_hidden_proto.
6101         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6102         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6103         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6104         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6105         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6106         @@GLIBC_2.8.
6107         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6108         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6109         obstack_vprintf_chk.
6110         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6111         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6112         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6113         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6114         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6115         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6117 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6119         [BZ #5779]
6120         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6121         Patch by Roy Marples <roy@marples.name>.
6123         [BZ #5736]
6124         * malloc/malloc.c: Fix typo in comment.
6126         [BZ #5627]
6127         * locale/iso-639.def: Add Shuswap.
6129 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6131         [BZ #5790]
6132         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6133         overwrite *h_errnop/*errnop values from getanswer_r in case of
6134         failure.
6136 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6138         [BZ #5818]
6139         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6140         (verify_persistent_db): Remove one unnecessary test and add a new one
6141         for bad configuration.
6142         (nscd_init): Improve error reported when persistent database cannot
6143         be reused.
6144         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6145         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6146         .suggested_module and .max_db_size and case config file says the
6147         values are zero.
6148         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6150         [BZ #5854]
6151         * nis/ypclnt.c (yp_order): Fix handling of return value of
6152         do_ypcall_tr call.
6153         Patch by Jeff Moyer <jmoyer@redhat.com>.
6155         * po/fr.po: Update from translation team.
6157 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6158             Carlos O'Donell <carlos@systemhalted.org>
6160         [BZ #5012]
6161         * FAQ.in: Describe why glibc needs to be compiled with
6162         optimization.
6164 2008-02-19  Roland McGrath  <roland@redhat.com>
6166         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6168 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6170         [BZ #5737]
6171         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6172         __USE_MISC is defined.
6174 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6176         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6177         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6178         sys/timerfd.h.
6179         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6180         timerfd_gettime, timerfd_settime.
6181         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6182         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6184 2008-02-08  Roland McGrath  <roland@redhat.com>
6186         * elf/elf.h (NT_PPC_SPE): New macro.
6188 2008-02-06  Roland McGrath  <roland@redhat.com>
6190         * Makerules ($(common-objpfx)sysd-rules):
6191         Depend on $(sysdep-makeconfigs).
6193 2008-01-31  Roland McGrath  <roland@redhat.com>
6195         [BZ #5442]
6196         * configure.in: Use -print-file-name if it yields a directory,
6197         for each of include and include-fixed.
6198         * configure: Regenerated.
6200         * Makeconfig (sysd-rules-targets): New variable.
6201         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6202         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6204 2008-01-30  Roland McGrath  <roland@redhat.com>
6206         * manual/libc.texinfo: Update back-cover text.
6208         * elf/elf.h (NT_386_TLS): New macro.
6210 2008-01-29  Roland McGrath  <roland@redhat.com>
6212         * Makeconfig (sysd-rules-patterns): New variable.
6213         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6214         (check-inhibit-asm): New canned sequence, replaces ...
6215         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6216         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6217         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6218         (CFLAGS-rtld): Variable removed.
6220 2008-01-24  Roland McGrath  <roland@redhat.com>
6222         * configure.in: Let configure fragments set base_os.
6223         * configure: Regenerated.
6225 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6227         * po/ko.po: Update from translation team.
6229 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6231         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6233 2008-01-12  Andreas Jaeger  <aj@suse.de>
6235         [BZ #5040]
6236         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6237         Add EPOLLRDHUP.
6239 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6241         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6242         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6243         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6245 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6247         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6248         * elf/dl-close.c (_dl_close): Check for it.
6249         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6250         (_dl_allocate_static_tls): Likewise.
6251         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6252         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6253         to it.
6254         * elf/tst-tls16.c: New file.
6255         * elf/tst-tlsmod16a.c: New file.
6256         * elf/tst-tlsmod16b.c: New file.
6257         * elf/Makefile: Add rules to build and run tst-tls16.
6259 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6261         [BZ #5628]
6262         * bits/shm.h: Fix comment describing shmid_ds.
6263         * sysdeps/gnu/bits/shm.h: Likewise.
6264         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6265         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6266         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6267         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6268         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6269         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6270         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6271         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6272         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6274         [BZ #5607]
6275         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6276         prototypes.
6277         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6278         additional suffixes.
6279         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6280         Add optional functions mq_timedreceive and mq_timedsend.
6281         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6282         * conform/data/pthread.h-data: Fix prototype of
6283         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6284         * conform/data/semaphore.h-data: Allow time.h definitions.
6285         * conform/data/signal.h-data: Likewise.
6286         * conform/data/stdio.h-data: getw and putw are not required in v6.
6287         * conform/data/stdlib.h-data: Change setstate prototype.
6288         * conform/data/string.h-data: Fix strerror_r prototype.
6289         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6290         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6291         Fix readlink prototype.
6292         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6293         in6addr_loopback.
6294         * inet/netinet/in.h: Cleanup namespace.
6295         * posix/regex.h: Likewise.
6296         * resolv/netdb.h: Likewise.
6297         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6298         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6299         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6300         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6301         of names of in in6_addr.
6302         (default_precedence): Likewise.
6303         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6304         NULL definition.
6306 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6308         * conform/data/fmtmsg.h-data: Add missing allows.
6309         * conform/data/ftw.h-data: Likewise.
6310         * conform/data/inttypes.h-data: Likewise.
6311         * conform/data/math.h-data: Likewise.
6312         * conform/data/signal.h-data: Likewise.
6313         * conform/data/net/if.h-data: Likewise.
6314         * conform/data/netinet/in.h-data: Likewise.
6315         * conform/data/sys/socket.h-data: Likewise.
6317         [BZ #5614]
6318         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6319         (__strtok_r): Simplify.
6320         * string/tester.c (test_strtok_r): Add test case for futile search
6321         with single-character seach string.
6323 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6325         * po/ko.po: Update from translation team.
6327 2008-01-11  Andreas Jaeger  <aj@suse.de>
6329         [BZ #5600]
6330         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6331         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6332         kernel header.
6334 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6336         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6337         native interface lookup in all the relevant places.
6339 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6340             Ulrich Drepper  <drepper@redhat.com>
6342         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6343         field.  Use sockaddr_in6 for source_addr.
6344         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6345         (match_prefix): Likewise.
6346         (get_label): Likewise.
6347         (get_precedence): Likewise.
6348         (rfc3484_sort): Change to use indirect access to results array.
6349         Adjust to use of sockaddr_in6.  Replace service_order test with
6350         simple index comparison.
6351         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6352         service_order field.  Adjust qsort_t calls.  Access sorted result
6353         array indirectly through order array.
6354         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6355         * posix/tst-rfc3484-2.c: Likewise.
6356         * posix/tst-rfc3484-3.c: Likewise.
6358 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6360         [BZ #5541]
6361         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6362         pollfd structures.
6363         Patch by André Cruz.
6365         [BZ #5545]
6366         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6367         (clnt_spcreateerror): Likewise.
6369         [BZ #5553]
6370         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6371         (public_mEMALIGn): Likewise.
6372         Patch mostly by Daniel Jacobowitz.
6374 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6376         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6377         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6378         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6379         * stdlib/tst-makecontext2.c: New test.
6381 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6383         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6384         defined.
6385         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6386         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6387         transliteration hooks and REINIT_PARAMS afterwards.
6388         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6389         status.
6390         (REINIT_PARAMS): Define.
6391         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6392         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6393         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6394         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6395         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6396         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6397         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6398         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6399         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6400         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6401         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6402         * iconvdata/tst-iconv7.c: New test.
6404 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6406         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6408 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6410         [BZ #5112]
6411         * nscd/connections.c (restart): Fix condition.
6413 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6415         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6416         __ctype_toupper_loc): Add __THROW.
6418 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6420         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6421         recognition of interface family.
6423         * posix/getconf.c: Update copyright year.
6424         * nss/getent.c: Likewise.
6425         * iconv/iconvconfig.c: Likewise.
6426         * iconv/iconv_prog.c: Likewise.
6427         * elf/ldconfig.c: Likewise.
6428         * catgets/gencat.c: Likewise.
6429         * csu/version.c: Likewise.
6430         * elf/ldd.bash.in: Likewise.
6431         * elf/sprof.c (print_version): Likewise.
6432         * locale/programs/locale.c: Likewise.
6433         * locale/programs/localedef.c: Likewise.
6434         * nscd/nscd.c (print_version): Likewise.
6435         * debug/xtrace.sh: Likewise.
6436         * malloc/memusage.sh: Likewise.
6437         * malloc/mtrace.pl: Likewise.
6438         * debug/catchsegv.sh: Likewise.
6440 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6442         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6443         second lookup.
6445 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6447         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6448         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6450 2007-12-17  Roland McGrath  <roland@redhat.com>
6452         * inet/ether_line.c (ether_line): Remove unused variable.
6454 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6456         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6457         and winp.
6458         * login/openpty.c (openpty): Likewise.
6459         * login/pty.h (openpty, forkpty): Likewise.
6460         * manual/terminal.texi (openpty, forkpty): Likewise.
6462 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6464         * malloc/malloc.c (public_cALLOc): For arenas other than
6465         main_arena, count all bytes inside the mprotect_size range of the
6466         heap as uninitialized.
6468 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6470         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6471         executable stacks.
6473         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6474         mTRIm for all of them.
6475         (mTRIm): Additionally iterate over all free blocks and use madvise
6476         to free memory for all those blocks which contain at least one
6477         memory page.
6478         * malloc/tst-trim1.c: New file.
6479         * malloc/Makefile (tests): Add tst-trim1.
6481         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6483 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6485         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6486         First cast argument to long
6487         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6488         Return long.
6489         (__vdso_clock_gettime): Likewise.
6490         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6491         return long.
6493 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6495         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6496         * locale/nl_langinfo_l.c: Real implementation, copied from
6497         nl_langinfo.c.
6498         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6500 2007-12-01  Jim Meyering  <meyering@redhat.com>
6502         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6503         that would inhibit utf8-optimization of a regexp containing line-
6504         or buffer-anchors, e.g., `^', `$'.
6506 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6508         * time/bug-getdate1.c (do_test): Don't use century values which
6509         aren't valid on 32-bit systems.
6511 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6513         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6514         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6515         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6516         __strcat_g, __strncat_g): Add __asm__.
6518 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6520         [BZ #5477]
6521         * io/fchmodat.c: Fix typo in stub_warning use.
6522         Patch by Petr Salinger.
6524 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6526         * iconvdata/hp-thai8.c: New file.
6527         * iconvdata/Makefile: Add rules for hp-thai8.c.
6528         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6529         * iconvdata/gconv-modules: Likewise.
6531         [BZ #5464]
6532         * iconvdata/hp-greek8.c: New file.
6533         * iconvdata/Makefile: Add rules for hp-greek8.c.
6534         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6535         * iconvdata/gconv-modules: Likewise.
6537         [BZ #5463]
6538         * iconvdata/hp-turkish8.c: New file.
6539         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6540         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6541         * iconvdata/gconv-modules: Likewise.
6543         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6544         (shrink_heap): ... this new function.
6545         (heap_trim): Call shrink_heap instead of grow_heap.
6547         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6548         case don't call alloc_perturb.
6550 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6552         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6553         possible.
6554         * sysdeps/unix/sysv/linux/kernel-features.h
6555         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6556         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6558 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6560         [BZ #5424]
6561         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6562         * stdio-common/Makefile (tests): Add bug22.
6563         * stdio-common/bug22.c: New file.
6565         [BZ #5451]
6566         * time/getdate.c: Fix filling in default values.
6567         * time/bug-getdate1.c: New file.
6568         * time/Makefile: Add rules to build and run bug-getdate1.
6570         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6571         * iconvdata/ebcdic-es.c: Likewise.
6572         * iconvdata/ebcdic-es-a.c: Likewise.
6573         * iconvdata/ebcdic-uk.c: Likewise.
6574         * iconvdata/iso8859-16.c: Likewise.
6575         * iconvdata/viscii.c: Likewise.
6576         * iconvdata/iso8859-9e.c: Likewise.
6577         * iconvdata/Makefile: Adjust appropriately.
6579         [BZ #5428]
6580         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6581         __need_wint_t.
6583 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6585         [BZ #5427]
6586         * iconvdata/hp-roman9.c: New file.
6587         * iconvdata/Makefile: Add rules for hp-roman9.c.
6588         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6589         * iconvdata/gconv-modules: Likewise.
6591         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6592         * iconvdata/Makefile: Adjust appropriately.
6594         [BZ #5441]
6595         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6596         structure, it's allocated with alloca.
6597         * stdio-common/Makefile (tests): Add bug21.
6598         * stdio-common/bug21.c: New file.
6600 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6602         [BZ #5452]
6603         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6604         keyword for gcc's braced-groups.
6606 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6608         [BZ #5454]
6609         * inet/ether_line.c: Strip hostname of whitespaces.
6610         * inet/Makefile (tests): Add tst-ether_line.
6611         * inet/tst-ether_line.c: New file.
6613 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6615         [BZ #5439]
6616         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6618         [BZ #5435]
6619         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6621         * stdlib/tst-setcontext.c: Catch the case where the links gets
6622         messed up and we do not reach main again.
6624         * po/ca.po: Update from translation team.
6626 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6628         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6629         * posix/regex.h (REG_ENOSYS): Likewise.
6630         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6632 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6634         * nscd/nscd.h (MAX_STACK_USE): Define.
6635         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6636         (gc): Initialize stack_used based on allocation in prune_cache.
6637         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6638         Clear array before use.
6640         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6641         memory allocation failed.
6642         * nscd/hstcache.c (cache_addhst): Likewise.
6643         * nscd/grpcache.c (cache_addgr): Likewise.
6644         * nscd/servicescache.c (cache_addserv): Likewise.
6645         * nscd/pwdcache.c (cache_addpw): Likewise.
6646         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6648 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6651         and creat system calls.
6653         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6655 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6657         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6658         Add netiucv/iucv.h.
6659         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6660         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6661         protocol.
6662         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6663         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6664         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6666 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6668         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6669         strncat): Define as macros to avoid compile errors.
6671         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6672         creat entries.
6674 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6676         [BZ #5382]
6677         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6678         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6679         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6680         overflow it.
6681         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6683         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6684         Return zero in case the thread library is not NPTL.
6686         [BZ #5375]
6687         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6688         initializing interface list.
6690         [BZ #5378]
6691         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6692         use result of nss_getgrgid_r if nothing was found.  For other
6693         error return with a failure.
6694         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6696         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6697         macro name.
6699 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6701         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6702         (get_scope): For IPv4 scope, use scopes table.
6703         (fini): Free scopes table if necessary.
6704         (free_scopelist): New function.
6705         (scopecmp): New function.
6706         (gaiconf_init): Also handle scopev4 entries.
6707         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6708         * posix/tst-rfc3484-2.c (do_test): Likewise.
6709         * posix/gai.conf: Document scopev4 defaults.
6710         * posix/Makefile (tests): Add tst-rfc3484-3.
6711         * posix/tst-rfc3484-3.c: New file.
6713         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6714         Teredo tunnels.
6715         * posix/gai.conf: Update for current default tables.
6717 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6719         * po/tr.po: Update from translation team.
6721 2007-11-18  Roland McGrath  <roland@frob.com>
6723         * manual/arith.texi (Remainder Functions): Spelling fix.
6724         From Shaun Silk <genix@mysoul.com.au>.
6726         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6728 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6730         * po/zh_CN.po: Update from translation team.
6732         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6733         Add sys/signalfd.h and sys/eventfd.h.
6735 2007-11-15  Bruno Haible  <bruno@clisp.org>
6737         [BZ #5346]
6738         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6739         union.
6740         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6741         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6742         it needs only fixed stack space. Delay the initialization of
6743         msgid_len until it is needed.
6745 2007-11-15  Andreas Jaeger  <aj@suse.de>
6747         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6748         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6750 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6752         * po/ko.po: Update from translation team.
6754 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6756         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6757         significantly.  The device type is also part of the ifinfomsg data.
6759         * po/sv.po: Update from translation team.
6760         * po/nl.po: Likewise.
6762         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6763         to wake up in 24 hours.
6765         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6767 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6769         * po/cs.po: Update from translation team.
6770         * po/pl.po: Likewise.
6772         * include/ifaddrs.h: Remove in6ai_temporary.
6773         (struct in6addrinfo): Add index element.
6774         Declare __check_native.
6775         * inet/Makefile (aux): Add check_native.
6776         * sysdeps/unix/sysv/linux/check_native.c: New file.
6777         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6778         IFA_F_TEMPORARY.  Pass back ifa_index.
6779         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6780         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6781         call __check_native if necessary.
6782         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6783         to sort addresses.  Pass information about the results.
6784         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6785         of rfc3484_sort interface.
6786         * posix/tst-rfc3484-2.c: Likewise.
6788         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6789         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6790         for _quicksort.
6791         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6792         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6793         on as third parameter to compare function and _quicksort.
6794         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6795         to the compare function.
6796         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6797         * Versions.def: Add GLIBC_2.8 for libc.
6799         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6800         * posix/tst-rfc3484-2.c: Likewise.
6802         * include/kernel-features.h: Moved to...
6803         * sysdeps/mach/hurd/kernel-features.h: ...here.
6805 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6807         * sysdeps/i386/i586/memcpy_chk.S: New file.
6808         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6809         * sysdeps/i386/i586/memset_chk.S: Likewise.
6811 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6813         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6814         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6815         list of interfaces.  Also store prefix length.
6816         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6817         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6818         prefix if source and destination address are in the same subnet.
6819         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6820         Always look for matching record in in6ai list.
6821         Correct source_addr_len value for IPv6->IPv4 converted records.
6823 2007-11-11  Roland McGrath  <roland@frob.com>
6825         * include/kernel-features.h: New file.
6827 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6829         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6830         complications for 64-bit platforms.
6832         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6833         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6834         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6835         open64_2.
6836         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6837         entries.
6838         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6839         * sysdeps/wordsize-64/alphasort.c: New file.
6840         * sysdeps/wordsize-64/alphasort64.c: New file.
6841         * sysdeps/wordsize-64/fseeko.c: New file.
6842         * sysdeps/wordsize-64/fseeko64.c: New file.
6843         * sysdeps/wordsize-64/ftello.c: New file.
6844         * sysdeps/wordsize-64/ftello64.c: New file.
6845         * sysdeps/wordsize-64/ftw.c: New file.
6846         * sysdeps/wordsize-64/ftw64.c: New file.
6847         * sysdeps/wordsize-64/iofgetpos.c: New file.
6848         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6849         * sysdeps/wordsize-64/iofopen.c: New file.
6850         * sysdeps/wordsize-64/iofopen64.c: New file.
6851         * sysdeps/wordsize-64/iofsetpos.c: New file.
6852         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6853         * sysdeps/wordsize-64/lockf.c: New file.
6854         * sysdeps/wordsize-64/lockf64.c: New file.
6855         * sysdeps/wordsize-64/mkostemp.c: New file.
6856         * sysdeps/wordsize-64/mkostemp64.c: New file.
6857         * sysdeps/wordsize-64/mkstemp.c: New file.
6858         * sysdeps/wordsize-64/mkstemp64.c: New file.
6859         * sysdeps/wordsize-64/scandir.c: New file.
6860         * sysdeps/wordsize-64/scandir64.c: New file.
6861         * sysdeps/wordsize-64/tmpfile.c: New file.
6862         * sysdeps/wordsize-64/tmpfile64.c: New file.
6863         * sysdeps/wordsize-64/versionsort.c: New file.
6864         * sysdeps/wordsize-64/versionsort64.c: New file.
6865         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6866         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6867         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6868         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6869         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6870         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6871         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6872         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6873         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6874         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6875         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6876         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6878         * crypt/sha256-crypt.c: Fix a comment.
6879         * crypt/sha512-crypt.c: Likewise.
6881 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6883         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6885 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6887         [BZ #5277]
6888         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6889         because output buffer is too small break, don't loop.
6890         * iconvdata/Makefile (tests): Add bug-iconv6.
6891         * iconvdata/bug-iconv6.c: New file.
6893 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6895         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6896         with size_t type.
6897         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6898         size_t.  Add casts where needed.
6900         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6901         old headers, don't call avc_has_perm if we don't have the
6902         permission information.
6904 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6906         * elf/rtld.c (dl_main): Use the page size to find the map start.
6908 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6910         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6911         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6913         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6914         when the lookup call failed.
6916         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6917         Add prune_cond and wakeup_time.
6918         (CACHE_PRUNE_INTERNAL): Define.
6919         Update declarations of prune_cache and setup_thread.
6920         * nscd/connections.c (dbs): Update initializers.
6921         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6922         (nscd_init): Default number of threads is now 4.
6923         (invalidate_cache): Take lock before calling prune_cache.
6924         (handle_request): If SELinux forbids the request, say so.
6925         (readylist_cond): Use static initializer.
6926         (nscd_run_prune): New function.  Used only by pruning threads.
6927         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6928         here.
6929         (fd_ready): Update nscd_run reference.
6930         (start_threads): No need to initialize readylist_cond.
6931         Start pruning threads separately.
6932         * nscd/nscd_setup_thread.c: Change return value type to int and always
6933         return 0.
6934         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6935         to int and return nonzero value if we can use the TID address hack.
6936         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6937         the database is later than the new entry's timeout, update the
6938         wakeup time and wake the cleanup thread.
6939         (prune_cache): Return seconds the next entry in the database is still
6940         valid.  Remove locking for pruning here.
6941         * nscd/nscd.conf: Document default number of threads.
6943 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6945         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6946         stack is properly aligned for the target function.
6947         Correct unwind info.
6949         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6950         when using auditing libraries.
6952 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
6954         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6955         _nss_dns_getnetbyaddr2_r.
6956         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
6957         extra parameter to getanswer_r.
6958         (_nss_dns_getnetbyaddr_r): Now a wrapper around
6959         _nss_dns_getnetbyaddr2_r.
6961         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6962         gethstbynm3_r.
6963         * nscd/gethstbynm2_r.c: Remove.
6964         * nscd/gethstbynm3_r.c: New file.
6965         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6966         __gethostbyaddr_r.
6967         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
6968         __gethostbyaddr_r compatibility wrapper.
6969         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
6970         determining timeout of entry.
6971         (lookup): Take new parameter and pass it to __gethostbyname3_r and
6972         __gethostbyaddr2_r.
6973         (addhstbyX): Pass reference to variable for TTL to lookup and
6974         cache_addhst.
6975         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6976         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6977         and __nss_next2.  Remove __nss_services_lookup.
6978         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
6979         Add compat wrapper.
6980         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6981         __nss_next2.
6982         * nss/getXXent_r.c: Likewise.
6983         * nss/getnssent_r.c: Likewise.
6984         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
6985         does not exist in module, try the optional second name.
6986         (__nss_next2): New function.
6987         (__nss_next): Now wrapper around __nss_next2.
6988         * nss/nsswitch.h: Adjust __nss_lookup prototype.
6989         Declare __nss_next2.
6990         Adjust definition of db_lookup_function type.
6991         * nss/service-lookup.c: Define NO_COMPAT.
6992         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6993         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6994         * inet/ether_ntoh.c: Likewise.
6995         * sunrpc/netname.c: Likewise.
6996         * sunrpc/publickey.c: Likewise.
6997         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
6998         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6999         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7000         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7001         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7003         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7005         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7007 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7009         [BZ #5204]
7010         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7011         * crypt/sha512c-test.c: Likewise.
7013         [BZ #5225]
7014         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7015         to keep track of end of %[ format string element.
7016         * stdio-common/Makefile (tests): Add bug20.
7017         * stdio-common/bug20.c: New file.
7019         [BZ #5222]
7020         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7021         path elements in counting mode.
7023 2007-10-27  Andreas Jaeger  <aj@suse.de>
7025         [BZ #5040]
7026         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7028         [BZ #3112]
7029         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7030         (__cleanup): Free shared library when exiting.
7031         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7032         (__cleanup): Free shared library when exiting.
7034 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7036         [BZ #2549]
7037         * math/libm-test.inc (check_float_internal): Support
7038         denormalized return.
7040 2007-10-23  Andreas Jaeger  <aj@suse.de>
7042         [BZ #5208]
7043         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7044         __LONG_LONG_PAIR to handle little endian byte order.
7045         Suggested by abhishekrai@google.com
7047 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7049         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7051 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7053         * nscd/cache.c (prune_cache): Move test for modified file outside
7054         of locking.
7056 2007-10-21  Andreas Jaeger  <aj@suse.de>
7058         * manual/texinfo.tex: Update to latest version.
7060         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7062         * manual/arith.texi (Status bit operations): Fix formatting.
7064         * manual/errno.texi (Error Messages): Fix formatting.
7066         * manual/sysinfo.texi (System Parameters): Fix formatting.
7068         * manual/libc.texinfo: Update VERSION and UPDATED.
7070 2007-10-19  Roland McGrath  <roland@redhat.com>
7072         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7074 2007-10-06  David S. Miller  <davem@davemloft.net>
7076         * configure.in: Add sparcv9v2 and sparc64v2.
7077         * scripts/config.sub: Likewise.
7078         * configure: Regenerate.
7079         * elf/elf.h (HWCAP_SPARC_N2): New.
7080         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7081         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7082         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7083         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7084         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7085         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7086         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7088 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7090         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7091         even if the poll result indicates there is data to read.
7092         Patch by Jeff Moyer <jmoyer@redhat.com>.
7094 2007-10-18  Roland McGrath  <roland@redhat.com>
7096         * elf/elf.h (NT_PPC_VMX): New macro.
7098 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7100         * version.h (VERSION): Set to 2.7.90.
7102 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7104         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7105         weak_alias.
7107 2007-10-17  Roland McGrath  <roland@frob.com>
7109         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7110         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7112 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7114         * version.h (VERSION): Bump to 2.7.
7115         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7117         [BZ #5186]
7118         * time/tzset.c (__tz_convert): Don't force testing for a change of
7119         TZ if not called from localtime.  But then also see whether the
7120         file changed, in case __use_tzfile is set.
7122         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7123         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7124         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7125         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7126         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7127         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7128         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7129         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7131 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7133         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7134         and admin selects to be able to replace the gai.conf file, lock
7135         data structures around the qsort call.
7137 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7139         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7140         new memset.
7141         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7142         too high for the improvements.  Implement bzero unconditionally for
7143         use in libc.
7145 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7146             Jakub Jelinek  <jakub@redhat.com>
7148         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7149         even when time_t is 32-bit.
7150         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7151         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7152         always set after the search.
7154 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7156         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7157         unreachable code on 32-bit machines.
7159 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7161         [BZ #5184]
7162         * time/strftime_l.c: Include stdbool.h.
7163         (my_strftime): New wrapper, old function renamed to...
7164         (__strftime_internal): ... new function.  Add tzset_called
7165         argument, pass it down to recursive calls, don't call tzset ()
7166         if already true, set to true after call to tzset ().
7168 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7170         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7171         into account when copying TZ string.
7173 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7175         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7176         num_transition rather than num_transitions - 1.
7178 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7180         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7181         PIC indirect jump.
7183         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7184         a local label rather than HIDDEN_JUMPTARGET.
7186 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7188         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7189         (init_cacheinfo): Initialize it.
7190         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7191         Always define bzero.
7192         Remove non-glibc code.
7193         * sysdeps/x86_64/bzero.S: Make an empty file.
7195 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7197         * sysdeps/x86_64/cacheinfo.c
7198         (__x86_64_preferred_memory_instruction): New.
7199         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7201         * sysdeps/x86_64/memset.S: Rewrite.
7203 2007-10-15  Roland McGrath  <roland@redhat.com>
7205         * po/libc.pot: Regenerated.
7207 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7209         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7210         pointers.
7212         [BZ #3425]
7213         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7214         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7215         address record to T_A/T_AAAA requests.
7217 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7219         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7221         * posix/glob.c: Add some branch prediction throughout.
7223         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7224         read from nscd.
7226         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7227         service_order.
7228         (rfc3484_sort): Make sure that even if qsort doesn't support
7229         stable sorting out sorting here is stable by comparing service_order.
7230         (getaddrinfo): Initialize service_order.
7231         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7232         service_order field to sorting structure.
7233         * posix/tst-rfc3484-2.c (do_test): Likewise.
7235         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7236         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7237         __tzset_parse_tz and updating of daylight, timezone, tzname into
7238         update_vars.
7239         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7240         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7241         happens in __tz_compute.
7242         * time/tzfile.c (__tzfile_read): Also read TZ string.
7243         (find_transition): Fold into __tzfile_compute.
7244         (__tzfile_compute): For times beyond the last transition try to
7245         use the TZ string.
7246         * timezone/tst-timezone.c: Information in daylight and tzname does
7247         change for Asia/Tokyo timezone with more concrete information.
7248         Remove the test.
7250         * include/stdio.h: Add libc_hidden_proto for ftello.
7251         * libio/ftello.c: Add libc_hidden_def.
7253         [BZ #1140]
7254         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7255         on the specified time and not the last entries in the file.  Move
7256         code to determine tzname[] to...
7257         (find_transition): ...here.  Add ugly guess for times before the
7258         first transition.
7260 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7262         [BZ #3195]
7263         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7264         no entry.
7265         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7266         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7267         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7268         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7270         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7271         read mechanism when there are no group members and avoid no-op
7272         read syscall in this case.
7274         [BZ #3242]
7275         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7276         (__readall): If reading failed due to EAGAIN error wait a bit
7277         and possibly try again.
7278         (__readvall): Likewise.
7280 2007-10-13  Bruno Haible  <bruno@clisp.org>
7282         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7283         when we cannot recode the message.
7285 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7287         [BZ #4359]
7288         * libio/__freading.c (__freading): Don't return true for
7289         write-only streams.  For read/write streams, check whether we
7290         performed a read operation already.
7291         * libio/Makefile (tests): Add tst-ext2.
7292         * libio/tst-ext2.c: New file.
7294 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7296         * locale/programs/repertoire.c (repertoire_read): Always free
7297         memory for repertoire file name [Coverity CID 270].
7299         * elf/cache.c (save_aux_cache): Free memory allocated for
7300         temporary file name [Coverity CID 267].
7302 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7304         * misc/Makefile (headers): Add bits/error.h.
7306 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7308         * posix/fnmatch_loop.c: Take rule index returned as part of
7309         findidx return value into account when accessing weights.
7310         * posix/regcomp.c: Likewise.
7311         * posix/regexec.c: Likewise.
7313         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7314         (skip_to): Fix problems with parameter of elifdef/elifndef.
7316 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7318         * iconv/gconv_simple.c: Add some branch prediction.
7320 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7322         * locale/programs/ld-collate.c (collate_read): If ignore_content
7323         and nowtok is tok_define, eat any tok_eol tokens.
7325 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7327         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7328         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7330         * inet/netinet/in.h: Don't include bits/socket.h.
7331         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7332         macro.
7333         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7335 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7337         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7338         and tok_elifndef.
7339         * locale/programs/locfile-kw.gperf: Likewise.
7340         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7342 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7344         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7345         (__find_specwc): Change into __extern_always_inline function.
7346         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7347         (__parse_one_specmb): Remove ps argument.
7348         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7349         Adjust __find_specmb and __parse_one_specmb callers.
7350         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7351         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7352         Removed.
7353         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7354         caller.
7356 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7358         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7359         with some Pentium Ds.
7361 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7363         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7364         __read not read.
7365         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7366         __write not write.
7368 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7370         [BZ #181]
7371         * locale/C-time.c: Set week_1stday data to 19971201.
7372         * locale/programs/ld-time.c (time_finish): Default for
7373         first_workday is Monday.
7375         [BZ #2633]
7376         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7378         [BZ #5103]
7379         * posix/glob.c (glob): Recognize patterns starting \/.
7380         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7381         (main): Add test for pattern starting \/.
7383         * misc/error.h: Use __const instead of const.
7384         * misc/bits/error.h: Likewise.
7386 2007-10-07  Andreas Jaeger  <aj@suse.de>
7388         * include/bits/error.h: New file.
7390         * misc/bits/error.h (error_at_line): Fix prototype.
7392 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7394         [BZ #3924]
7395         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7396         more little bugs in creating the stack frame when pltexit has to
7397         be called.
7399         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7400         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7402         [BZ #4407]
7403         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7404         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7405         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7406         * math/libm-test.inc: Add test for this case.
7408         [BZ #5010]
7409         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7410         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7411         map service succeeded.
7412         (svc_is_mapped): New function.
7413         (svc_unregister): Use it before trying to unmap service.
7415 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7417         * timezone/zic.c: Update from tzcode2007h.
7419         [BZ #5063]
7420         * timezone/africa: Update from tzdata2007h.
7421         * timezone/antarctica: Likewise.
7422         * timezone/asia: Likewise.
7423         * timezone/australasia: Likewise.
7424         * timezone/europe: Likewise.
7425         * timezone/leapseconds: Likewise.
7426         * timezone/northamerica: Likewise.
7427         * timezone/southamerica: Likewise.
7428         * timzeone/zone.tab: Likewise.
7430         [BZ #5104]
7431         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7433         [BZ #5113]
7434         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7435         avoid warning with -Wconversion.
7436         (__strndup): Likewise.
7437         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7439         [BZ #5112]
7440         * nscd/connections.c (restart): Don't resync if database is
7441         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7443         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7444         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7446         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7447         evetnfd_read, eventfd_write.
7448         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7449         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7450         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7451         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7452         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7453         eventfd_write for GLIBC_2.7.
7455         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7456         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7457         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7458         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7460 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7462         * stdlib/msort.c: Include stdint.h.
7463         (struct msort_param): New type.
7464         (msort_with_tmp): Use struct msort_param pointer for unchanging
7465         parameters.  Add optimized handling for several common sizes
7466         and indirect sorting mode.
7467         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7468         sorting.
7469         Suggested by Belazougui Djamel .
7471         * stdlib/Makefile (tests): Add tst-qsort2.
7472         * stdlib/tst-qsort2.c: New test.
7474 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7476         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7477         for dup2 in case another thread races with the current one.  Retry
7478         in this case.
7480         * misc/error.h: Remove support for use outside of libc.  We have to
7481         include <features.h> now.  Include <bits/error.h> if possible.
7482         * misc/bits/error.h: New file.
7484 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7486         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7487         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7488         __extern_always_inline functions unconditionally, drop macros.
7490         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7491         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7492         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7494         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7495         add __artificial__ attribute.
7497 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7499         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7500         backward to forward direction.
7502         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7504         [BZ #645]
7505         * locale/programs/ld-collate.c (collate_finish): Compare against last
7506         used section which is known to have rules defined.
7507         (collate_read): After order_start, correctly record order of sections
7508         and queue sections up.
7510 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7512         [BZ #5071]
7513         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7514         the same number of pages.
7515         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7517         * locale/programs/ld-collate.c (collate_read): After initial copy
7518         statement, continue in state 0.
7520         * include/stdio_ext.h (__fsetlocking): Define as macro.
7522 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7524         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7525         of section order.
7527         * po/pt_BR.po: Fix typo.
7529 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7531         * iconvdata/Makefile (modules): Add ISO8859-9E.
7532         (distribute): Add iso8859-9e.c.
7533         (gen-8bit-gap-modules): Add iso8859-9e.
7534         * iconvdata/iso8859-9e.c: New file.
7535         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7536         * iconvdata/TESTS: Likewise.
7537         * iconvdata/tst-tables.sh: Likewise.
7539         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7541         * locale/iso-639.def: Add several new entries.
7543 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7545         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7546         void * pointers instead of struct link_map **.
7547         (_dl_scope_free): Change argument type to void *.
7548         * include/link.h (struct link_map): Change type of l_reldeps
7549         to struct link_map_reldeps, move l_reldepsact into that
7550         struct too.
7551         * elf/dl-deps.c: Include atomic.h.
7552         (_dl_map_object_deps): Only change l->l_initfini when it is
7553         fully populated, use _dl_scope_free for freeing it.  Optimize
7554         removal of libs from reldeps by using l_reserved flag, when
7555         some removal is needed, allocate a new list instead of
7556         reallocating and free the old with _dl_scope_free.  Adjust
7557         for l_reldeps and l_reldepsact changes.
7558         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7559         searching in l_initfini and l_reldeps without holding dl_load_lock.
7560         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7561         l_reldepsact changes.
7562         * elf/dl-close.c (_dl_close_worker): Likewise.
7563         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7565 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7567         * iconvdata/Makefile (modules): Add KOI8-RU.
7568         (distribute): Add koi8-ru.c.
7569         (gen-8bit-gap-modules): Add koi8-ru.
7570         * iconvdata/koi8-ru.c: New file.
7571         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7572         * iconvdata/TESTS: Likewise.
7573         * iconvdata/tst-tables.sh: Likewise.
7575         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7577 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7579         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7580         with __warning__/__error__ attributes.
7581         (__warnattr): Define.
7582         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7583         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7584         __warnattr.
7585         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7586         of __*_chk if compile time detectable overflow is found.
7587         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7588         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7589         with __warnattr.
7590         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7591         instead of __*_chk if compile time detectable overflow is found.
7592         (__gets_alias): Rename to...
7593         (__gets_warn): ... this.  Add __warnattr.
7594         (gets): Call __gets_warn instead of __gets_alias.
7595         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7596         aliases with __warnattr.
7597         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7598         time detectable overflow is found.
7599         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7600         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7601         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7602         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7603         __getdomainname_chk_warn): New aliases with __warnattr.
7604         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7605         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7606         __*_chk_warn instead of __*_chk if compile time detectable overflow
7607         is found.
7608         (__getgroups_chk): Rename argument to __listlen from listlen.
7609         (__getwd_alias): Rename to...
7610         (__getwd_warn): ... this.  Add __warnattr.
7611         (getwd): Call __getwd_warn instead of __getwd_alias.
7612         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7613         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7614         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7615         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7616         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7617         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7618         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7619         compile time detectable overflow is found.
7620         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7621         to use __*_chk or not.
7622         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7623         in comparisons which function should be called and in __*_chk*
7624         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7625         detectable overflow is found.
7626         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7627         __*_chk argument.
7628         * debug/tst-chk1.c (do_test): Add a few more tests.
7630 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7632         [BZ #5058]
7633         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7634         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7635         (_nl_unload_domain): Finalize conversions_lock.
7636         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7637         handling table of known conversions.
7639 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7641         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7642         close_not_cancel_no_status instead of close.
7644 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7646         [BZ #5028]
7647         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7648         nrules != 0 for multibyte chars.
7650 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7652         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7653         Provide better error message in case the type is unknown.
7655         [BZ #4963]
7656         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7657         * string/stratcliff.c: Make usable to test wide char functions.
7658         * wcsmbs/wcsatcliff.c: New file.
7659         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7661         [BZ #4972]
7662         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7663         (distribute): Add mac-centraleurope.c.
7664         (gen-8bit-gap-modules): Add mac-centraleurope.
7665         * iconvdata/mac-centraleurope.c: New file.
7666         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7667         * iconvdata/TESTS: Likewise.
7668         * iconvdata/tst-tables.sh: Likewise.
7670         [BZ #5043]
7671         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7673 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7675         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7676         from __x86_64_core_cache_size_half.
7677         (init_cacheinfo): Compute shared cache size for AMD processors with
7678         shared L3 correctly.
7679         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7680         name change.
7681         Patch in large parts by Evandro Menezes.
7683 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7685         * elf/dl-lookup.c (add_dependency): Handle failing memory
7686         allocation for dependency list.  Remove unnecessary check.
7688         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7689         open/close when determining source addresses.
7691         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7692         sha512-crypt, and sha512.
7693         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7694         (distribute): Add sha256.h and sha512.h.
7695         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7696         and call the appropriate code.
7697         * crypt/sha256-crypt.c: New file.
7698         * crypt/sha256.c: New file.
7699         * crypt/sha256.h: New file.
7700         * crypt/sha256c-test.c: New file.
7701         * crypt/sha256test.c: New file.
7702         * crypt/sha512-crypt.c: New file.
7703         * crypt/sha512.c: New file.
7704         * crypt/sha512.h: New file.
7705         * crypt/sha512c-test.c: New file.
7706         * crypt/sha512test.c: New file.
7708 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7710         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7711         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7712         __syslog_chk.
7714 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7716         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7717         %as in fscanf format strings.
7719         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7720         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7721         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7722         Likewise.
7723         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7724         Likewise.
7726         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7727         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7728         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7729         * elf/dl-sym.c (do_sym): Likewise.
7730         * include/link.h (struct link_map): Add l_serial field.
7731         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7732         * elf/dl-lookup.c (add_dependency): Add flags argument.
7733         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7734         flags, use THREAD_GSCOPE_RESET_FLAG before and
7735         THREAD_GSCOPE_SET_FLAG after
7736         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7737         Don't dereference map until it has been found on some list.
7738         If map->l_serial changed, return -1.
7740 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7742         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7743         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7744         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7745         libc_hidden_proto.
7746         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7747         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7748         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7749         add libc_hidden_proto.
7750         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7751         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7752         conformance requested.
7753         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7754         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7755         conformance requested.
7756         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7757         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7758         conformance requested.
7759         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7760         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7761         ISO C99 or POSIX conformance requested.
7762         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7763         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7764         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7765         and __isoc99_vsscanf@@GLIBC_2.7.
7766         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7767         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7768         (tests): Add scanf14.
7769         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7770         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7771         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7772         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7773         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7774         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7775         from using internal headers.
7776         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7777         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7778         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7779         and __isoc99_vswscanf@@GLIBC_2.7.
7780         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7781         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7782         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7783         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7784         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7785         * stdio-common/isoc99_scanf.c: New file.
7786         * stdio-common/isoc99_vsscanf.c: New file.
7787         * stdio-common/isoc99_vscanf.c: New file.
7788         * stdio-common/isoc99_vfscanf.c: New file.
7789         * stdio-common/isoc99_fscanf.c: New file.
7790         * stdio-common/isoc99_sscanf.c: New file.
7791         * wcsmbs/isoc99_fwscanf.c: New file.
7792         * wcsmbs/isoc99_vswscanf.c: New file.
7793         * wcsmbs/isoc99_swscanf.c: New file.
7794         * wcsmbs/isoc99_wscanf.c: New file.
7795         * wcsmbs/isoc99_vwscanf.c: New file.
7796         * wcsmbs/isoc99_vfwscanf.c: New file.
7797         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7798         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7799         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7800         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7801         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7802         * stdio-common/scanf14.c: New test.
7803         * stdio-common/scanf15.c: New test.
7804         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7805         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7806         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7807         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7808         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7809         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7810         __nldbl___isoc99_scanf@@GLIBC_2.7,
7811         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7812         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7813         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7814         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7815         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7816         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7817         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7818         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7819         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7820         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7821         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7822         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7823         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7824         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7825         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7826         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7827         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7828         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7829         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7830         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7831         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7832         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7833         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7834         functions.
7835         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7836         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7837         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7838         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7839         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7840         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7841         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7842         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7843         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7844         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7845         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7846         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7848         * stdio-common/Makefile (tests): Add scanf13.
7849         (scanf13-ENV): New.
7850         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7851         m modifier followed by l.
7852         (STRING_ARG): Add width argument.
7853         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7854         <case L_('C')>: Handle %mlc and %mC.
7855         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7856         arguments.
7857         * stdio-common/scanf13.c: New test.
7859         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7860         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7862 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7864         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7865         type and __THROW marker of splice, vmsplice, and tee.
7866         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7867         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7868         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7869         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7870         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7871         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7872         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7873         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7874         as cancellation points.
7876 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7878         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7879         parse more than three parts of the version number.
7881 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7883         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7884         modifier.  Patch by Jakub Jelinek.
7886 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7888         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7889         call_fallocate in misc subdir.
7890         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7891         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7892         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7893         instead of __fallocate64.
7894         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7896 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7898         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7899         * rt/Makefile (headers): Add bits/mqueue2.h.
7900         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7901         optimizing with GCC and __va_arg_pack_len is defined.
7902         * rt/bits/mqueue2.h: New file.
7903         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7904         (mq_open): New strong_alias.
7905         (__mq_open_2): New function.
7906         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7907         (mq_open): New strong_alias.
7908         (__mq_open_2): New function.
7909         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7910         * Versions.def (librt): Add GLIBC_2.7 version.
7911         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7912         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7914         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7915         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7916         is defined rather than when not C++.
7917         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7918         __openat64_alias): New redirects.
7919         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7920         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7921         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7922         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7923         functions instead of function-like macros.
7925 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7927         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7928         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7929         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7931 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7933         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7934         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7936 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7938         * inet/tst-network.c: Increment ERRORS for failing tests.
7940 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7942         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7943         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7944         implement as __extern_always_inline function.
7945         (vsyslog): Define as __extern_always_inline function unconditionally.
7946         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7947         When __va_arg_pack is defined, implement as __extern_always_inline
7948         functions.
7949         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7950         __extern_always_inline functions unconditionally.
7951         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7952         bits/stdio2.h will be included.
7953         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7954         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7955         implement as __extern_always_inline functions.
7956         (vswprintf, vwprintf, vfwprintf): Define as
7957         __extern_always_inline functions unconditionally.
7958         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7960 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
7962         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7963         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7964         attribute.
7965         * include/features.h (__USE_EXTERN_INLINES): Define only when
7966         __extern_inline is defined.
7967         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7968         is defined instead of when not __cplusplus.
7969         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7970         is defined instead of when not __cplusplus.
7971         * socket/sys/socket.h: Include bits/socket2.h when
7972         __extern_always_inline is defined instead of when not __cplusplus.
7973         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7974         is defined instead of when not __cplusplus.
7975         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7976         is defined instead of when not __cplusplus.
7977         * string/string.h: Include bits/string3.h when __extern_always_inline
7978         is defined instead of when not __cplusplus.
7979         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7980         is defined instead of when not __cplusplus.
7981         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7982         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7983         is not defined.
7984         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7985         defined __extern_always_inline instead of !defined __cplusplus.
7986         * libio/bits/stdio-ldbl.h: Likewise.
7987         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7988         * misc/bits/syslog.h (syslog): Don't define for C++.
7989         (vsyslog): Use __extern_always_inline function for C++ instead of
7990         a macro.
7991         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7992         whenever that macro is defined.
7993         (vprintf): Don't provide the inline for C++.
7994         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7995         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7996         define the macros for C++.
7997         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7998         __extern_always_inline functions for C++.
7999         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8000         stat64, lstat64, fstat64, fstatat64): Don't define if not
8001         __USE_EXTERN_INLINES.
8002         * wcsmbs/bits/wchar2.h: Fix #error message.
8003         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8004         (vswprintf, vwprintf, vfwprintf): Define using
8005         __extern_always_inline functions for C++.
8006         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8007         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8008         strncpy, strcat, strncat): Define as __extern_always_inline
8009         functions instead of macros for C++.
8010         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8011         defined __extern_inline.
8012         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8013         to __extern_inline whenever that macro is defined.
8014         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8015         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8016         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8017         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8018         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8019         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8020         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8021         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8022         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8023         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8024         prototypes.  Only provide __extern_inline routines if
8025         __USE_EXTERN_INLINES.
8026         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8027         tests.
8028         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8029         For now avoid some *printf tests in C++.  Skip all testing
8030         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8031         is not.
8032         * debug/tst-chk4.cc: New file.
8033         * debug/tst-chk5.cc: New file.
8034         * debug/tst-chk6.cc: New file.
8035         * debug/tst-lfschk4.cc: New file.
8036         * debug/tst-lfschk5.cc: New file.
8037         * debug/tst-lfschk6.cc: New file.
8038         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8039         prototypes in C++.
8040         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8041         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8042         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8044 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8046         * po/cs.po: Update from translation team.
8048 2007-09-11  Roland McGrath  <roland@redhat.com>
8050         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8051         compiling.
8053 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8055         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8057 2007-09-05  Roland McGrath  <roland@redhat.com>
8059         * manual/signal.texi (Signaling Another Process): Typo fix.
8060         From Karl Berry <karl@freefriends.org>.
8062 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8064         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8065         zero if not defined.
8066         (make_request): Recognize optimistic addresses and treat them like
8067         deprecated addresses.
8068         Reported by Neil Horman <nhorman@redhat.com>.
8070 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8072         * nscd/connections.c (send_ro_fd): Also transfer file size.
8073         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8074         file size don't call fstat.
8076         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8077         ahead and map the file.  This should always be correct and we can
8078         catch problems later.
8080 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8082         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8083         prototypes.
8084         (__fread_alias, __fread_unlocked_alias): New aliases.
8085         (fread): New extern inline.
8086         (fread_unlocked): Likewise.  Undef macro before definition of
8087         the inline function.
8088         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8089         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8090         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8091         and __fread_unlocked_chk@@GLIBC_2.7.
8092         * debug/fread_chk.c: New file.
8093         * debug/fread_u_chk.c: New file.
8094         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8096 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8098         * sysdeps/unix/sysv/linux/syscalls.list
8099         (personality): Change caller to EXTRA.
8101 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8103         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8104         to keep gcc quiet.
8105         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8107         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8108         NDEBUG is defined.
8110         * Makerules: Use -p option with mkdir.
8112         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8113         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8114         (_xdr_directory_obj): Likewise.
8115         (xdr_entry_obj): Likewise.
8116         (xdr_group_obj): Likewise.
8117         (xdr_link_obj): Likewise.
8118         (xdr_table_obj): Likewise.
8119         (_xdr_nis_result): Likewise.
8120         (_xdr_ns_request): Likewise.
8121         (_xdr_ib_request): Likewise.
8122         (_xdr_nis_taglist): Likewise.
8123         (xdr_cback_data): Likewise.
8124         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8125         (xdr_ypresp_maplist): Likewise.
8127         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8129         * posix/regex_internal.h: Prevent some declarations and definitions
8130         to be seen when used in tests.
8132         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8133         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8135         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8137         * config.make.in (datarootdir): Add to shut up configure.
8139         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8140         associativity for fully-associative caches.
8142         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8143         requests.  Fill on more associativity values for L2.
8144         Patch mostly by Evandro Menezes.
8146 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8148         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8149         (_libc_vdso_platform_setup): Avoid using exported variable by using
8150         alias.
8152         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8154         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8155         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8156         defined.
8158 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8160         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8161         align stack for call if pltexit is to be used.
8163         [BZ #3924]
8164         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8165         align for function call in case pltexit has to be called later.
8167         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8168         implicit atomic operation when storing function pointer.
8169         (_dl_runtime_profile): Likewise.
8171 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8173         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8174         NIS_NOTFOUND.
8176 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8178         [BZ #4566]
8179         * string/strtok.c: Fix typo in comment.
8181         [BZ #4582]
8182         * debug/segfault.c: Fix typos in comments.
8184         [BZ #4588]
8185         * stdio-common/tempnam.c: Fix comment, it is not checked that
8186         TMPDIR points to a writable directory.
8188         [BZ #4726]
8189         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8190         memory allocated for the name server address.
8192         [BZ #4946]
8193         * nscd/connections.c (handle_request): Using sendfile always
8194         requires that mmap is used for the database.
8195         Patch by Petr Baudis <pasky@suse.cz>.
8197         [BZ #4905]
8198         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8199         suddenly has two or more addresses, ignore it and remove the old
8200         entry.
8202         [BZ #4814]
8203         * resolv/res_hconf.c: Prepare for compiling outside libc.
8204         * nscd/res_hconf.c: New file.
8205         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8206         the new file.
8207         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8208         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8210         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8212         [BZ #4925]
8213         * debug/pcprofiledump.c: Turn on internationalization by calling
8214         setlocale.  Patch mostly by Benno Schulenberg.
8216         [BZ #4936]
8217         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8218         the state.
8219         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8220         * iconvdata/bug-iconv5.c: New file.
8222 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8224         [BZ #4896]
8225         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8226         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8227         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8228         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8229         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8230         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8231         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8232         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8234 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8236         [BZ #4937]
8237         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8238         lookup loop.  Suggested by John Reiser.
8240 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8242         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8244 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8246         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8247         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8248         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8249         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8250         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8251         to...
8252         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8254 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8256         * po/nl.po: Update from translation team.
8258 2007-08-16  Andreas Jaeger  <aj@suse.de>
8260         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8261         Reported by Peter Festner <peter.festner@ewetel.net>.
8263 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8265         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8267 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8269         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8270         to check for undefined symbols.
8272         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8273         If the syscall fails, set errno to the actual returned error number
8274         rather than EINVAL.
8275         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8276         arguments are incorrect, set errno to EINVAL, if the syscall
8277         fails, set errno to the actual returned error number.
8279         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8280         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8282         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8283         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8284         file.
8285         (ASI_PNF, ASI_BLK_P): Don't define.
8286         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8287         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8288         file.
8289         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8290         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8291         file.
8293 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8295         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8296         FE_UNDERFLOW on Niagara CPUs.
8298         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8299         exceptions.
8301 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8303         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8304         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8305         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8306         flush should be used or not inside of the function.
8307         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8309         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8310         __thread_start): Use HIDDEN_JUMPTARGET.
8311         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8312         __thread_start): Likewise.
8313         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8315         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8316         Add libc_hidden_proto.
8317         (STRTOF): Add libc_hidden_proto.
8318         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8319         (strtold_l, wcstold_l): Use them as second argument for
8320         long_double_symbol.
8322 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8324         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8326 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8328         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8330 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8332         * po/bg.po: New file.  From the translation team.
8334 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8336         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8337         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8338         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8339         when each feature was introduced.
8341         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8342         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8343         (CHECK_HASH): New macro.
8344         (PREPARE_VERSION): Use it.
8346         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8347         prototype if not __ASSUME_PSELECT.
8348         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8349         prototype if not __ASSUME_PPOLL.
8351         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8353         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8354         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8355         is defined.
8357 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8359         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8360         (_libc_vdso_platform_setup): If vDSO is not available point
8361         __vdso_gettimeofday to the vsyscall.
8362         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8363         __vdso_gettimeofday instead of vsyscall.
8365 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8367         * nscd/servicescache.c: Include kernel-features.h.
8368         * nscd/gai.c: Likewise.
8369         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8370         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8371         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8372         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8373         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8374         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8375         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8376         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8377         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8379 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8381         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8382         and _dl_get_origin defines anymore.
8384         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8385         Build fix for systems which might lack POSIX timer support.
8387         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8388         (_libc_vdso_platform_setup): Mangle function pointers before storing
8389         them.
8390         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8391         Demangle vdso pointer before use.
8392         (INTERNAL_VSYSCALL): Likewise.
8394         * elf/cache.c (primes): Mark as const.
8395         Noted by Roland McGrath.
8397 2007-08-01  Andreas Jaeger  <aj@suse.de>
8398             Jakub Jelinek  <jakub@redhat.com>
8400         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8401         (options): Add option.
8402         (parse_opt): Handle option.
8403         (manual_link): Adjust process_file caller.  Call implicit_soname.
8404         (search_dir): Formatting.  Use and populate auxiliary cache.
8405         (main): Load and save auxiliary cache.
8406         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8407         stat64 from fstat64 to caller.
8408         (implicit_soname): New function.
8409         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8410         leave *soname as NULL.
8411         * elf/cache.c: Include libgen.h.
8412         (print_entry, print_cache, compare, save_cache, add_to_cache):
8413         Formatting and cleanups.
8414         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8415         aux_cache_file): New structures.
8416         (AUX_CACHEMAGIC): Define.
8417         (primes): New array.
8418         (aux_hash_size, aux_hash): New variables.
8419         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8420         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8421         load_aux_cache, save_aux_cache): New functions.
8422         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8423         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8424         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8425         (process_file): Adjust prototype.
8427 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8429         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8430         with __need_size_t.
8432 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8434         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8435         r_found_version structure as second parameter.
8436         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8437         (_dl_vdso_vsym): Change type of second parameter accordingly.
8438         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8439         (_libc_vdso_platform_setup): Adjust.
8440         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8441         (_libc_vdso_platform_setup): Likewise.
8443         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8444         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8445         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8446         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8447         * csu/libc-start.c: Pretty printing.
8448         Use VDSO_SETUP if defined.
8449         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8450         and let generic code call into _libc_vdso_platform_setup.
8451         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8452         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8453         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8454         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8455         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8456         for GLIBC_PRIVATE.
8457         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8458         (sysdep_rountines): Add dl-vdso.
8460         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8461         of routines.
8463         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8464         attribute_hidden to __vdso_gettimeofday prototype.
8466 2007-08-12  Roland McGrath  <roland@redhat.com>
8468         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8469         From: Karl Berry <karl@freefriends.org>.
8471 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8473         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8474         an atime update for the files we read.
8476 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8478         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8480         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8481         instead of mkstemp.
8483         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8484         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8485         * misc/mkostemp.c: New file.
8486         * misc/mkostemp64.c: New file.
8487         * stdlib/stdlib.h: Declare the new functions.
8488         * sysdeps/posix/tempname.c: Add new parameter which is added to
8489         the flags for open.  Remove __GT_BIGFILE handling.
8490         * stdio-common/tempname.c: Likewise.
8491         * include/stdio.h: Adjust __gen_tempname prototype.
8492         Renumber __GT_* constants.
8493         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8494         * misc/mkdtemp.c: Likewise.
8495         * misc/mkstemp.c: Likewise.
8496         * misc/mkstemp64.c: Likewise.
8497         * misc/mktemp.c: Likewise.
8498         * stdio-common/tempnam.c: Likewise.
8499         * stdio-common/tmpfile.c: Likewise.
8500         * stdio-common/tmpfile64.c: Likewise.
8501         * stdio-common/tmpnam.c: Likewise.
8502         * stdio-common/tmpnam_r.c: Likewise.
8504 2007-08-10  Roland McGrath  <roland@frob.com>
8506         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8507         New macros.
8508         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8509         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8511 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8513         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8514         possible.
8515         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8516         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8517         * nss/nss_files/files-have_o_cloexec.c: New file.
8519         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8520         available.
8522 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8524         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8525         ___new_wcstold_l): New weak aliases.
8526         (strtold_l, wcstold_l): Use them as second argument for
8527         long_double_symbol.
8529 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8531         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8532         register in test for error.
8534         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8535         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8537         * po/sv.po: Update from translation team.
8539 2007-08-06  Roland McGrath  <roland@redhat.com>
8541         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8542         Remove __strto*_l inlines.
8543         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8544         * stdlib/strtod.c: Add libc_hidden_def.
8545         * stdlib/strtod_l.c: Likewise.
8546         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8547         for __new_strtold and __new_wcstold.
8548         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8549         __STRTOF, STRTOF.
8550         * stdlib/strtol.c: Add libc_hidden_def.
8551         * stdlib/strtol_l.c: Likewise.
8552         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8553         strtoq.
8555         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8557         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8558         * scripts/data/localplt-generic.data: ... here.
8559         * elf/Makefile (check-data): Get generic file if no other.
8560         ($(objpfx)check-localplt.out): Make target unconditional.
8562         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8563         Use ElfW(Nhdr).
8565 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8567         * po/zh_CN.po: Updated translation from translation team.
8569 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8572         Don't use CGOTSETUP and CGOTRESTORE macros.
8574 2007-08-04  Roland McGrath  <roland@redhat.com>
8576         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8578 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8580         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8581         __extension__ around the whole statement expression.
8583 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8585         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8586         elements during initialization.
8588         * po/pl.po: Updated translation from translation team.
8589         * po/tr.po: Likewise.
8590         * po/nl.po: Likewise.
8592 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8594         * rt/aio.h: Add __nonnull attributes.
8596 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8598         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8599         * stdlib/Makefile (tests): Add tst-strtod5.
8600         (tst-strtod5-ENV): New.
8601         * stdlib/tst-strtod5.c: New file.
8603         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8604         failed.
8605         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8606         on failure.
8608         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8609         allocated.
8611 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8613         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8614         numbers.
8616 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8618         * io/Makefile (aux): Add have_o_cloexec.
8619         * include/fcntl.h: Declare __have_o_cloexec.
8620         * io/have_o_cloexec.c: New file.
8621         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8622         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8623         fcntl call if not necessary.
8624         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8625         of local variable.
8627         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8628         Avoid memset, add explicit initialization.
8629         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8630         to the end and change into zero-sized array.
8631         Move lock member to fill a hole on 64-bit platforms.
8633         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8634         inline functions.
8635         * include/stdlib.h: Add __strto*_internal prototypes here.
8636         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8637         inline functions.
8638         * include/wchar.h: Add __wcsto*_internal prototypes.
8639         * sysdeps/generic/inttypes.h: No need to protect the declaration
8640         of the __strto*_internal and __wcsto*_internal members here.
8642         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8644 2007-08-02  Roland McGrath  <roland@redhat.com>
8646         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8647         $(inst_bindir)/getconf if possible.
8649         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8650         (generated): Add it.
8651         ($(inst_libexecdir)/getconf): Use it.
8653 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8655         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8656         /proc is faster and sufficient.  /sys is still needed for
8657         __get_nprocs_conf.
8659 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8661         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8662         syscall as __fallocate64.
8663         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8664         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8666 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8668         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8669         value.
8671         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8672         if off_t is different rank from size_t.
8674         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8675         uw_frame_state_for): Avoid type punning warnings.
8676         * sysdeps/generic/unwind-dw2-fde-glibc.c
8677         (_Unwind_IteratePhdrCallback): Likewise.
8678         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8679         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8680         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8681         pointers.
8683 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8685         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8686         total processors using sysfs.
8687         (__get_nprocs): Use sysfs to determine which processors are online.
8689 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8691         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8692         syscall arguments count.
8694         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8696 2007-07-30  Roland McGrath  <roland@redhat.com>
8698         * manual/libc.texinfo: Update copyrights, formatting magic, and
8699         @dircategory.  From Karl Berry <karl@freefriends.org>.
8701 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8703         [BZ #4860]
8704         * io/Makefile (headers): Add bits/fcntl2.h.
8706         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8707         using gcc builtin.
8708         (__CPU_EQUAL_S): Likewise.
8710         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8711         (tests): Add tst-cpuset.
8712         * posix/sched_cpualloc.c: New file.
8713         * posix/sched_cpufree.c: New file.
8714         * posix/tst-cpuset.c: New file.
8715         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8716         GLIBC_2.7.
8717         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8718         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8719         macros.  Define CPU_*_S macros.
8721 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8723         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8724         entry.
8726         [BZ #4858]
8727         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8728         #.0g and value rounded to 1.0.
8729         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8731 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8733         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8734         for int_frac_digits and frac_digits.
8736         * login/logout.c (logout): Avoid aliasing violation.
8737         * login/logwtmp.c (logwtmp): Likewise.
8739         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8741         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8742         to avoid warning.
8743         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8744         warning.
8745         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8746         warning.
8747         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8748         to avoid warnings.
8750         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8751         void **.
8752         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8754         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8755         char * to avoid warning.
8756         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8758         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8760         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8761         allocate_arrays): Cast second argument to charmap_find_symbol
8762         to char * to avoid warnings.
8764         * locale/programs/repertoire.c (repertoire_new_char): Change
8765         from_nr, to_nr and cnt to unsigned long, adjust printf format
8766         string.
8768         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8769         Cast second argument to new_element to char * to avoid warnings.
8771         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8773         * intl/gettextP.h (struct loaded_domain): Change plural to const
8774         struct expression *.
8775         * intl/plural-eval.c (plural_eval): Change first argument to
8776         const struct expression *.
8777         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8778         argument to const struct expression **.
8779         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8780         prototypes.
8781         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8782         in call to __gettext_free_exp.
8784         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8785         unitialized wstring/wpattern var warnings.
8787         * posix/runtests.c (struct a_test): Make data field const char *.
8789         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8790         vars if not LDBL_MANT_DIG >= 106.
8792         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8794         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8795         __find_specmb to avoid warning.
8797         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8799         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8800         to avoid warnings.
8802         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8803         initializer.
8805         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8806         tv var when it will be actually used.
8808         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8809         to avoid warnings.
8811         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8812         char array resp. pointer.
8813         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8814         char array.
8815         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8816         to const unsigned char **.
8817         (ucs4_to_cns11643): Change second argument to unsigned char *.
8818         * iconvdata/euc-tw.c (BODY): Change endp type to
8819         const unsigned char *.
8820         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8821         to unsigned char *.
8822         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8823         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8824         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8825         types to unsigned char pointers/arrays instead of char.
8826         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8827         to unsigned char *.
8828         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8829         * iconvdata/jis0212.h: Include assert.h.
8830         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8831         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8832         of trying to handle that.
8833         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8834         shut up a warning.
8835         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8836         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8837         two dimensional const unsigned char arrays.
8838         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8839         Initialize endp to inptr to shut up a warning.
8841 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8843         [BZ #4772]
8844         * time/strptime_l.c (__strptime_internal): Silently ignore
8845         strftime modifiers and field width in recursive calls.
8847         * include/time.h (enum ptime_locale_status): Remove.
8848         (__strptime_internal): Remove decided and era_cnt arguments,
8849         add statep argument.
8850         * time/strptime_l.c (__strptime_internal): Remove decided
8851         and era_cnt arguments, add statep argument.  Don't recompute
8852         any fields in recursive calls, only update caller's tm
8853         and state, if recursive call fails, don't change tm nor
8854         any state.
8855         (get_alt_number): Adjust.
8856         (recursive): Adjust caller.
8857         (strptime): Likewise.
8858         * time/strptime.c (strptime): Likewise.
8860 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8862         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8863         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8864         if from and to charsets are the same.
8865         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8866         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8867         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8869 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8871         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8872         Don't define wint_t when __need_mbstate_t unless it
8873         is necessary.
8874         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8875         in the typedef if possible.
8876         * wctype/wctype.h (wint_t): Define by including
8877         wchar.h with __need_wint_t instead of including stddef.h
8878         with __need_wint_t and as fallback definining it ourselves.
8879         * iconv/gconv.h (__need_wint_t): Define before including
8880         wchar.h.
8881         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8882         or _GLIBCPP_USE_WCHAR_T.
8883         (__need_wchar_t): Don't define
8884         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8885         (__need_wint_t): Don't define before including stddef.h,
8886         define before including wchar.h only if _LIBC or
8887         _GLIBCPP_USE_WCHAR_T.
8888         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8889         * sysdeps/mach/hurd/_G_config.h: Likewise.
8890         * sysdeps/generic/_G_config.h: Likewise.
8891         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8892         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8893         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8894         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8896 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8898         * sysdeps/posix/posix_fallocate64.c: Undefine
8899         __posix_fallocate64_l64 before alias handling.
8900         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8901         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8902         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8903         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8905         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8907 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8909         * locale/programs/ld-collate.c (atwc): New variable.
8910         (add_to_tablewc): New toplevel function, moved from collate_output.
8911         (collate_output): Remove add_to_tablewc nested function.
8913         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8914         (name_insert): New function.
8915         (write_output): Remove hash_table and hash_size vars and name_insert
8916         nested function.
8918 2007-07-24  Roland McGrath  <roland@redhat.com>
8920         * Makerules (install-others-programs-nosubdir): New target.
8921         (install-no-libc.a-nosubdir): Depend on it.
8923         * iconv/Makefile (install-others-programs): Set this instead of
8924         install-others.
8925         * login/Makefile (install-others-programs): Likewise.
8926         * posix/Makefile (install-others-programs): Likewise.
8928         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8929         dependencies.
8931 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8933         * io/Makefile (tests): Add tst-posix_fallocate.
8934         * io/tst-posix_fallocate.c: New file.
8936         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8937         __ASSUME_FALLOCATE.
8939 2007-07-22  Roland McGrath  <roland@frob.com>
8941         * hurd/getdport.c: Add missing copyright year update.
8943         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8944         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8946 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
8948         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8950         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8951         O_CLOEXEC is needed.
8952         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8953         Avoid additional fcntl to set O_CLOEXEC if not needed.
8954         * nis/nss_compat/compat-initgroups.c: Likewise.
8955         * nis/nss_compat/compat-pwd.c: Likewise.
8956         * nis/nss_compat/compat-spwd.c: Likewise.
8958 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8960         [BZ #3665]
8961         * manual/errno.texi: Change ECANCELED value to 119.
8963         [BZ #4610]
8964         * mach/lock-intern.h: Include <sys/cdefs.h>.
8966         [BZ #4178]
8967         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8968         reading A.
8970         [BZ #4126]
8971         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8972         to __sigsuspend.
8974         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8976 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
8978         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8979         `__ASSEMBLER__'.
8980         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8982 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
8984         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8985         descriptor received from nscd.
8987         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8989         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8990         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8991         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8992         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8993         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8994         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8996 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8998         [BZ #4816]
8999         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9001         [BZ #4813]
9002         * login/forkpty.c (forkpty): Close master and slave fds on
9003         fork failure.  Patch by
9004         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9006 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9008         * include/features.h (__USE_ISOC95): New define.
9009         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9010         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9011         for -std=iso9899:199409.
9012         * CONFORMANCE: Remove comments about unsupported AMD1.
9014 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9016         * sysdeps/ia64/sched_cpucount.c: New file.
9017         * sysdeps/powerpc/sched_cpucount.c: New file.
9019         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9020         __BEGIN_DECLS/__END_DECLS around the prototype.
9021         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9022         pointer to const cpu_set_t.
9024         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9025         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9026         __need_size_t and include stddef.h.
9027         * sysvipc/sys/msg.h: Likewise.
9028         * posix/sched.h: Likewise.
9029         * hurd/hurd/signal.h (__need_size_t): Define.
9031         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9032         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9033         no longer defines wint_t or wchar_t.
9035         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9036         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9037         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9038         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9039         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9040         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9041         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9042         * debug/printf_chk.c (__printf_chk): Likewise.
9043         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9044         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9046         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9047         Define.
9049         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9050         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9052 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9054         [BZ #4792]
9055         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9056         * malloc/malloc.h (realloc): Likewise.
9058         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9059         if one of proc_file_chain streams has that fileno.
9060         * stdio-common/Makefile (tests): Add tst-popen2.
9061         * stdio-common/tst-popen2.c: New test.
9063 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9065         * elf/ldconfig.c: Allow GPLv2 or any later version.
9066         * elf/readlib.c: Likewise.
9067         * elf/chroot_canon.c: Likewise.
9068         * elf/cache.c: Likewise.
9069         * nscd/mem.c: Likewise.
9070         * nscd/getpwuid_r.c: Likewise.
9071         * nscd/grpcache.c: Likewise.
9072         * nscd/aicache.c: Likewise.
9073         * nscd/getsrvbynm_r.c: Likewise.
9074         * nscd/nscd.c: Likewise.
9075         * nscd/servicescache.c: Likewise.
9076         * nscd/getsrvbypt_r.c: Likewise.
9077         * nscd/initgrcache.c: Likewise.
9078         * nscd/gethstbyad_r.c: Likewise.
9079         * nscd/gethstbynm2_r.c: Likewise.
9080         * nscd/getgrnam_r.c: Likewise.
9081         * nscd/nscd_setup_thread.c: Likewise.
9082         * nscd/getpwnam_r.c: Likewise.
9083         * nscd/gai.c: Likewise.
9084         * nscd/connections.c: Likewise.
9085         * nscd/dbg_log.c: Likewise.
9086         * nscd/cache.c: Likewise.
9087         * nscd/hstcache.c: Likewise.
9088         * nscd/nscd_conf.c: Likewise.
9089         * nscd/getgrgid_r.c: Likewise.
9090         * nscd/pwdcache.c: Likewise.
9091         * catgets/gencat.c: Likewise.
9092         * locale/programs/linereader.h: Likewise.
9093         * locale/programs/locarchive.c: Likewise.
9094         * locale/programs/ld-paper.c: Likewise.
9095         * locale/programs/locfile-kw.h: Likewise.
9096         * locale/programs/ld-address.c: Likewise.
9097         * locale/programs/xmalloc.c: Likewise.
9098         * locale/programs/ld-time.c: Likewise.
9099         * locale/programs/localedef.c: Likewise.
9100         * locale/programs/simple-hash.c: Likewise.
9101         * locale/programs/xstrdup.c: Likewise.
9102         * locale/programs/ld-numeric.c: Likewise.
9103         * locale/programs/locfile-kw.gperf: Likewise.
9104         * locale/programs/ld-collate.c: Likewise.
9105         * locale/programs/charmap-kw.gperf: Likewise.
9106         * locale/programs/charmap.h: Likewise.
9107         * locale/programs/charmap-kw.h: Likewise.
9108         * locale/programs/config.h: Likewise.
9109         * locale/programs/locfile.c: Likewise.
9110         * locale/programs/ld-ctype.c: Likewise.
9111         * locale/programs/charmap.c: Likewise.
9112         * locale/programs/ld-messages.c: Likewise.
9113         * locale/programs/repertoire.h: Likewise.
9114         * locale/programs/locale.c: Likewise.
9115         * locale/programs/ld-name.c: Likewise.
9116         * locale/programs/linereader.c: Likewise.
9117         * locale/programs/locfile.h: Likewise.
9118         * locale/programs/3level.h: Likewise.
9119         * locale/programs/ld-monetary.c: Likewise.
9120         * locale/programs/ld-measurement.c: Likewise.
9121         * locale/programs/charmap-dir.c: Likewise.
9122         * locale/programs/ld-identification.c: Likewise.
9123         * locale/programs/localedef.h: Likewise.
9124         * locale/programs/charmap-dir.h: Likewise.
9125         * locale/programs/repertoire.c: Likewise.
9126         * locale/programs/simple-hash.h: Likewise.
9127         * locale/programs/ld-telephone.c: Likewise.
9128         * locale/programs/locale-spec.c: Likewise.
9129         * locale/programs/locfile-token.h: Likewise.
9130         * posix/getconf.c: Likewise.
9131         * iconv/dummy-repertoire.c: Likewise.
9132         * iconv/iconv_charmap.c: Likewise.
9133         * iconv/iconvconfig.c: Likewise.
9134         * iconv/iconv_prog.c: Likewise.
9135         * malloc/memusagestat.c: Likewise.
9136         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9138 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9140         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9141         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9142         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9143         check for the first argument.
9145 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9147         [BZ #4775]
9148         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9149         (__tgmath_real_type): Fix if expr is const int or other const
9150         qualified integral type.
9151         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9152         expressions and handle const qualified arguments.
9153         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9154         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9155         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9156         statement expressions.
9157         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9158         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9159         (__TGMATH_UNARY_IMAG): Define.
9160         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9161         * math/Makefile (tests): Add test-tgmath2.
9162         (CFLAGS-test-tgmath2.c): Add.
9163         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9164         count_cfloat, count_cldouble): New variables.
9165         (NCCALLS): Define.
9166         (main): Check number of complex calls as well.
9167         (F(compile_test)): Add complex tests and tests with const qualified
9168         arguments.
9169         (y, z, ccount): Define.
9170         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9171         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9172         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9173         F(cproj)): New functions.
9174         * math/test-tgmath2.c: New test.
9176 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9178         [BZ #4776]
9179         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9180         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9181         instead output ".".
9182         * dlfcn/Makefile (distribute): Add glreflib3.c.
9183         (module-names): Add glreflib3.
9184         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9185         glreflib1.so.
9186         (LDFLAGS_glreflib3.so): New.
9187         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9188         glreflib1.so.
9189         * dlfcn/glreflib3.c: New file.
9191         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9192         returned -1, return NULL.
9193         * intl/explodename.c (_nl_explode_name): Return -1 if
9194         _nl_normalize_codeset failed.
9196 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9198         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9199         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9200         and avoid branch misspredicts for > 31 bytes memset case.
9201         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9202         Remove toc ref to __cache_line_size.
9204         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9205         to get ISA-V2.0 branch hints.
9206         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9207         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9208         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9209         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9210         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9211         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9212         Remove toc ref to __cache_line_size.
9214         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9215         Include math_ldbl_opt.h.
9217 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9219         [BZ #4773]
9220         * time/strptime_l.c (__strptime_internal): Implement greedy
9221         matching of weekday and month names.
9223 2007-07-09  Roland McGrath  <roland@redhat.com>
9225         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9226         (ELF_NOTE_ABI): Use it.
9227         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9229 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9231         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9232         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9234 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9236         [BZ #4745]
9237         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9238         in loop to look for conversion specifier to avoid testing of
9239         wrong errno value.
9240         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9241         * stdio-common/bug18.c: New file.
9242         * stdio-common/bug18a.c: New file.
9243         * stdio-common/bug19.c: New file.
9244         * stdio-common/bug19a.c: New file.
9246 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9248         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9249         running awk script.
9251 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9253         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9254         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9255         Return NULL if mmap failed instead of asserting it does not.
9256         (calloc): Check for integer overflow.
9258         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9259         than LONG_MAX / 10.
9261 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9263         [BZ #4702]
9264         * nis/nss-default.c: Include errno.h.
9265         (init): Preserve errno.
9267 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9269         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9271 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9273         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9275 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9277         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9279 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9281         * sysdeps/s390/dl-procinfo.c: New file.
9282         * sysdeps/s390/dl-procinfo.h: New file.
9283         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9285 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9287         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9288         in PT_NOTE segments with multiple notes.
9289         * elf/readelflib.c (process_elf_file): Likewise.
9291 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9293         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9294         ISO C compliant.
9296 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9298         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9300 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9302         * include/link.h: Don't include rtld-lowlevel.h.
9303         (struct link_map): Remove l_scope_lock.
9304         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9305         (_dl_scope_free_list): New field (variable) in _rtld_global.
9306         (DL_LOOKUP_SCOPE_LOCK): Remove.
9307         (_dl_scope_free): New prototype.
9308         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9309         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9310         (_dl_profile_fixup): Likewise.
9311         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9312         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9313         THREAD_GSCOPE_RESET_FLAG around it.
9314         * elf/dl-close.c (_dl_close_worker): Don't use
9315         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9316         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9317         scopes were queued or if l_scope_mem has been abandoned.
9318         * elf/dl-open.c (_dl_scope_free): New function.
9319         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9320         * elf/dl-support.c (_dl_scope_free_list): New variable.
9321         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9322         Remove DL_LOOKUP_SCOPE_LOCK handling.
9323         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9324         handling.
9325         * elf/dl-object.c (_dl_new_object): Don't use
9326         __rtld_mrlock_initialize.
9328 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9330         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9331         to fill in holes
9332         (rtld_global_ro): Likewise.
9334 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9336         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9337         Move PT_LOAD checking to...
9338         (_dl_addr_inside_object): ... here, new function.
9339         * elf/dl-sym.c (do_sym): If not l_contiguous,
9340         call _dl_addr_inside_object.
9341         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9342         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9343         * elf/dl-open.c (dl_open_worker): Likewise.
9344         (_dl_addr_inside_object): New function if IS_IN_rtld.
9345         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9346         holes are present or are PROT_NONE protected.
9347         * include/link.h (struct link_map): Add l_contiguous field.
9348         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9350 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9351             Tomas Janousek  <tjanouse@redhat.com>
9352             Ulrich Drepper  <drepper@redhat.com>
9354         [BZ #4647]
9355         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9356         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9357         socket.
9358         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9359         unused member a bitmap.
9360         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9361         servers are configured.
9363 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9365         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9367 2007-06-17  Andreas Schwab  <schwab@suse.de>
9369         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9371 2007-06-16  Andreas Jaeger  <aj@suse.de>
9373         [BZ #4125]
9374         * sysdeps/unix/sysv/linux/sys/ptrace.h
9375         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9376         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9377         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9378         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9379         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9380         Define.
9381         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9382         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9383         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9384         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9386 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9388         [BZ #4599]
9389         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9390         determining whether there are IPv4/IPv6 addresses, ignore loopback
9391         addresses.
9393 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9395         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9396         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9397         as the return type.  Change type of "r" variable to CMPtype.
9398         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9399         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9400         * soft-fp/gedf2.c (__gedf2): Likewise.
9401         * soft-fp/gesf2.c (__gesf2): Likewise.
9402         * soft-fp/getf2.c (__getf2): Likewise.
9403         * soft-fp/ledf2.c (__ledf2): Likewise.
9404         * soft-fp/lesf2.c (__lesf2): Likewise.
9405         * soft-fp/letf2.c (__letf2): Likewise.
9406         * soft-fp/unorddf2 (__unorddf2): Likewise.
9407         * soft-fp/unordsf2 (__unordsf2): Likewise.
9408         * soft-fp/unordtf2 (__unordtf2): Likewise.
9410 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9412         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9413         make sure gcc doesn't mess around with this.
9415 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9417         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9419 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9421         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9422         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9423         at most once per _dl_close_worker.
9425 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9427         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9428         __sched_cpucount as const.
9429         * posix/sched_cpucount.c: Adjust.
9431         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9432         instruction for counting bits.
9433         * sysdeps/x86_64/sched_cpucount.c: New file.
9435 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9437         * configure.in: Avoid variable named BASH.
9438         * config.make.in: Likewise.
9439         Patch in part by Mike Frysinger.
9441 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9443         [BZ #4586]
9444         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9445         pseudo-zeros as zero.
9446         * sysdeps/x86_64/ldbl2mpn.c: New file.
9447         * sysdeps/ia64/ldbl2mpn.c: New file.
9449 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9451         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9452         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9453         Remove unreachable code at the end.
9455 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9457         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9458         ldbl-128ibm in comment.
9459         (fpclassifyl): Correct classification of denormals.
9460         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9461         return value for MIN denormal. Rewrite using long double math too
9462         correctly handle denormals and canonicalize the results.
9464 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9466         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9467         (__mpn_construct_long_double): Fix conversion where result ought
9468         to be smaller than __LDBL_MIN__, or the low double should be
9469         denormal.  Fix decision where to negate low double - honor round
9470         to even rules.
9471         * stdio-common/tst-sprintf2.c: Include string.h.
9472         (COMPARE_LDBL): Define.
9473         (TEST): Also test whether a string hexadecimal float representation
9474         can be parsed back to the number.
9475         (main): Add a couple of further tests.
9477 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9479         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9480         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9481         is non-zero, but smaller than 2 * __DBL_MIN__.
9482         * stdio-common/tst-sprintf2.c: New test.
9483         * stdio-common/Makefile (tests): Add tst-sprintf2.
9485         * math/test-misc.c (main): Don't run last batch of tests with
9486         IBM long double format.
9488 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9490         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9491         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9492         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9493         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9494         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9495         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9496         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9497         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9498         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9499         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9502         New file.
9503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9504         New file.
9505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9506         New file.
9507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9508         New file.
9509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9510         New file.
9511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9513         New file.
9514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9515         New file.
9516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9517         New file.
9518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9519         New file.
9520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9521         New file.
9523 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9525         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9526         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9527         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9528         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9529         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9530         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9531         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9532         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9534 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9536         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9537         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9538         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9539         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9540         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9541         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9542         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9543         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9545 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9547         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9548         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9549         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9550         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9552 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9554         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9555         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9557 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9559         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9560         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9561         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9562         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9564 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9566         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9567         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9569 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9571         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9572         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9574         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9575         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9576         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9577         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9579 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9581         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9582         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9583         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9584         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9586 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9588         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9589         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9590         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9591         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9592         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9593         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9595 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9597         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9598         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9599         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9600         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9602 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9604         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9605         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9606         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9607         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9608         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9609         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9610         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9611         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9612         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9613         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9614         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9615         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9616         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9617         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9618         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9619         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9621 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9623         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9624         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9626 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9628         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9629         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9631 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9633         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9634         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9635         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9636         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9637         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9638         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9639         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9640         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9641         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9642         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9644 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9646         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9648 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9650         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9651         branch miss-predicts. Ensure that cache line crossing does not impact
9652         dispatch grouping.
9654 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9656         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9657         "../../powerpc32/power4/memcopy.h".
9658         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9659         "../../powerpc32/power4/wordcopy.c".
9661 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9663         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9664         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9665         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9666         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9667         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9668         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9670 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9672         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9674 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9676         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9677         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9678         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9679         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9680         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9681         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9682         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9683         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9685 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9687         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9689 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9691         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9692         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9693         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9694         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9695         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9696         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9697         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9699 2007-05-29  Roland McGrath  <roland@redhat.com>
9701         * po/Makefile (po-sed-cmd): New variable.
9702         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9704 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9706         * crypt/md5-crypt.c: Fix comment.
9708         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9709         of crashing.  When this is the case or if the reply is malformed,
9710         don't try to close the new file descriptor since it does not
9711         exist.
9712         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9714 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9716         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9717         if __NR_utimensat is not defined.
9719 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9721         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9723 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9725         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9726         (open): Fix comment typos.  Don't call __open_2 if flags
9727         is a compile time constant without O_CREAT.
9728         (__open64_2): Add nonnull attribute.
9729         (open64): Fix comment typos.  Don't call __open64_2 if flags
9730         is a compile time constant without O_CREAT.
9731         (__openat_2): Add nonnull attribute, fix nonnull attribute
9732         on redirect.
9733         (openat): Fix comment typos.  Don't call __openat_2 if flags
9734         is a compile time constant without O_CREAT.
9735         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9736         on redirect.
9737         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9738         is a compile time constant without O_CREAT.
9740 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9742         * Makerules (sysd-rules): Define PTW for ptw-* files.
9743         * Versions: Define GLIBC_2.7 for libc.
9744         * include/stdio.h: Declare __fortify_fail.
9745         * debug/fortify_fail.c: New file.
9746         * debug/Makefile (routines): Add fortify_fail.
9747         * debug/chk_fail.c: Use __fortify_fail.
9748         * debug/stack_chk_fail.c: Likewise.
9749         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9750         __openat64_2 for GLIBC_2.7.
9751         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9752         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9753         and fails if necessary.
9754         * io/open64.c: Likewise.
9755         * io/openat.c: Likewise.
9756         * io/openat64.c: Likewise.
9757         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9758         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9759         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9760         * io/bits/fcntl2.h: New file.
9761         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9762         __openat64_2.
9763         * include/bits/fcntl2.h: New file.
9764         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9765         Add open_2.
9766         * sysdeps/unix/sysv/linux/open_2.c: New file.
9768 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9770         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9771         as second parameter to handle_intel.
9773         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9774         the entry.
9776         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9777         handling to ...
9778         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9779         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9780         cacheinfo.
9781         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9782         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9783         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9785         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9787 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9789         [BZ #4525]
9790         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9791         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9792         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9794         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9796         [BZ #4514]
9797         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9798         reinitialize workend at the start of each do_positional format spec
9799         loop, free workstart before do_positional loops.
9800         (printf_unknown): Fix size of work_buffer.
9801         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9803         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9804         (public_sET_STATe): If ms->version < 3, put all chunks into
9805         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9806         chunks.
9808         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9809         * malloc/hooks.c: Likewise.
9810         * malloc/arena.c: Likewise.
9811         * malloc/malloc.c (do_check_malloc_state): Don't assert
9812         n_mmaps is not greater than n_mmaps_max.  This removes the need
9813         for the previous change.
9815         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9816         2007-05-07 commit.
9818 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9820         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9821         Define for kernel >= 2.6.22.
9823 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9825         * elf/dl-close.c (_dl_close_worker): When removing object from
9826         global scope, wait for all lookups to finish afterwards.
9827         * elf/dl-open.c (add_to_global): When global scope array must
9828         grow, allocate a new one and free old array only after all
9829         lookups finish.
9830         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9831         (_dl_lookup_symbol_x): Likewise.
9832         * elf/dl-support.c: Define _dl_wait_lookup_done.
9833         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9834         _dl_wait_lookup_done.
9836         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9837         not overlapping with arena.
9839         * malloc/mcheck.c (reallochook): If size==0, free the block.
9841         * rt/tst-shm.c: Use fstat64 instead of fstat.
9843         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9844         __NR_sync_file_range is not defined.
9846 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9848         Dummy files to prevent stub versions from being used.
9849         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9850         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9851         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9852         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9854         * version.h (VERSION): Set to 2.6.90.
9856 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9858         * version.h (VERSION): Define to 2.6.
9859         * include/features.h (__GLIBC_MINOR__): Define to 6.
9861         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9863         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9864         sizes.
9866 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9868         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9869         number of mmaps.  n_mmaps_max is the target.
9870         * malloc/hooks.c: Likewise.
9871         * malloc/arena.c: Likewise.
9873 2007-05-12  Andreas Jaeger  <aj@suse.de>
9875         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9876         getpid.
9878 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9880         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9881         adding new variables.
9883         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9884         optimize.  Completely extend global scope array before making the
9885         new entries visible.
9887 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9889         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9890         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9891         tst-getcpu.
9893         * include/link.h: Move l_version and l_nversion members around to
9894         fill gaps.
9896         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9898         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9899         (__sched_setaffinity_new): If syscall was successful and
9900         RESET_VGETCPU_CACHE is defined, use it before returning.
9901         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9903         * io/sys/stat.h: Make sure struct timespec is defined for
9904         __USE_ATFILE.
9906         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9907         UTIME_OMIT.
9908         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9909         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9910         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9911         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9912         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9913         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9914         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9915         * io/sys/stat.h: Declare utimensat, futimens.
9916         * io/utimensat.c: New file.
9917         * io/futimens.c: New file.
9918         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9919         * sysdeps/unix/sysv/linux/futimens.c: New file.
9920         * io/Makefile (routines): Add utimensat, futimens.
9921         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9922         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9923         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9924         available.
9926         * include/sys/cdefs.h: Redefine __nonnull so that test for
9927         incorrect parameters in the libc code itself are not omitted.
9929 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9931         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9932         exception in addition to inexact when asked to raise only FE_INEXACT.
9934         [BZ #3427]
9935         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9936         in *envp.
9938 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9940         [BZ #4403]
9941         * string/strfry.c (strfry): Make result more random.
9943 2007-05-07  Richard Henderson  <rth@redhat.com>
9945         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9946         if __NO_LONG_DOUBLE_MATH.
9947         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9948         available in the compiler, add .arch directive to the assembly.
9950 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
9952         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9953         compat_symbol to GLIBC_2_1.
9954         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9955         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9956         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9957         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9958         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9959         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9960         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9961         libc, not libm.
9962         (__isnanl): New compat_symbol.
9964 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9965             Jakub Jelinek  <jakub@redhat.com>
9967         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9968         (new_heap): Initialize mprotect_size.
9969         (grow_heap): When growing, only mprotect from mprotect_size till
9970         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
9971         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9973 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
9974             Peter Bergner  <bergner@us.ibm.com>
9976         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9977         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
9978         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9979         * sysdeps/powerpc/fpu/fe_mask.c: New file.
9980         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9981         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9982         Call __fe_mask_env() if all FP exceptions disabled.
9983         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9984         from old FPSCR to new fenv to propagate DFP rounding modes.
9985         Call __fe_mask_env() if FP exceptions previously enabled.
9986         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9987         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
9988         transitioning from all exceptions disabled to any exception enabled
9989         or visa versa.
9990         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9991         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
9992         when transitioning from all exceptions disabled to any exception
9993         enabled or visa versa.
9994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10001 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10003         [BZ #4465]
10004         * posix/unistd.h: Remove __THROW from fdatasync.
10006 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10008         [BZ #4465]
10009         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10011 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10013         * stdio-common/vfprintf.c (process_string_arg): Optimize
10014         ridiculous precision in wide char code printing multi-byte string.
10015         Reported by Jim Meyering <jim@meyering.net>.
10017         [BZ #4131]
10018         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10019         boundaries to work around systems with overlapping binary loading.
10020         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10022 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10024         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10025         __mbsnrtowcs after last change.
10027         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10028         (get_ident): Likewise.
10030 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10032         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10033         with setting the sticky bit.
10034         * math/test-misc.c (main): Add more truncation tests.
10036 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10038         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10039         double in the function declaration.
10040         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10041         double in the function declaration.
10042         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10043         float in the function declaration.
10044         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10045         float in the function declaration.
10047         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10048         denormal operands.  Do not generate FP_EX_DENORM exception.
10049         (FP_UNPACK_RAW_EP): Ditto.
10050         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10051         undefined _FP_UNPACK_RAW_E.
10052         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10053         undefined _FP_UNPACK_RAW_EP.
10054         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10055         undefined _FP_PACK_RAW_E.
10056         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10057         undefined _FP_PACK_RAW_EP.
10059         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10060         _FP_FRAC_COPY_2.
10061         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10062         _FP_FRAC_COPY_4.
10064 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10065             Jakub Jelinek  <jakub@redhat.com>
10067         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10068         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10069         this case.
10070         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10072 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10074         * math/test-misc.c (main): Add tests for rounding long double
10075         values close to smallest double denormalized value to double.
10077 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10079         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10080         condition for truncating to 0.  Set sticky bit for such
10081         truncation.
10083 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10085         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10086         fixed length array for ignore.
10088 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10090         [BZ #4438]
10091         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10092         stack for large precisions.
10093         * stdio-common/test-vfprintf.c (main): Add test for large
10094         precision.
10096 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10098         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10099         for exponent 0.
10100         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10102         [BZ #4439]
10103         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10104         account in the size check.
10105         * resolv/tst-inet_ntop.c: New test.
10106         * resolv/Makefile (tests): Add tst-inet_ntop.
10108 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10109             Jakub Jelinek  <jakub@redhat.com>
10111         [BZ #4349]
10112         * malloc/malloc.c: Keep separate list for first blocks on the bin
10113         lists with a given size.  This helps skipping over list elements
10114         we know won't fit in two places.
10115         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10117 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10119         [BZ #4102]
10120         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10121         label to Teredo tunnel addresses 2001://32.
10123 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10125         * locale/programs/ld-collate.c (collate_read): Allow order_start
10126         after copy.
10128         * locale/programs/ld-collate.c (collate_read): Fix printing of
10129         error message.
10131         [BZ #3213]
10132         * locale/C-translit.h.in: Add entry for U2044.
10134         [BZ #4342]
10135         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10136         hexa-decimal floats without exponent.
10137         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10139 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10141         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10142         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10143         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10144         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10145         GLIBC_2.6.
10146         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10147         Add sched_getcpu.
10149 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10151         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10152         of 0 after the out_fail label.
10154 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10156         [BZ #4406]
10157         * iconv/gconv_charset.h (strip): Allow ':'.
10158         * iconv/iconv_open.c (iconv_open): Adjust comment.
10160 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10162         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10163         version.
10165 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10167         [BZ #4381]
10168         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10169         alignment of buffer and tmp_buffer.
10170         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10171         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10172         alignment of buffer.
10173         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10174         bigger than INT_MAX.
10175         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10176         h_errnop arguments.  Fail if buflen is too small.
10177         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10179 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10181         [BZ #4405]
10182         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10183         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10185 2007-04-22  Roland McGrath  <roland@redhat.com>
10187         * elf/elf.h (NT_PRXFPREG): New macro.
10189 2007-04-19  Andreas Jaeger  <aj@suse.de>
10191         [BZ #3905]
10192         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10193         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10194         Added.
10196 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10198         * include/sys/mman.h: Mark madvise hidden.
10199         * misc/madvise.c: Add libc_hidden_def.
10201 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10203         * nis/nis_domain_of.c (__nis_domain_of): New function.
10204         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10205         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10206         * nis/nis_call.c (rec_dirsearch): Likewise.
10207         (first_shoot): Likewise.  Remove search_parent_first argument.
10208         (struct nis_server_cache): Rename search_parent_first field
10209         to search_parent.
10210         (nis_server_cache_search, nis_server_cache_add): Rename
10211         search_parent_first argument to search_parent.
10212         (__nisfind_server): Likewise.  If search_parent, call
10213         __nis_domain_of.
10215 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10217         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10219 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10221         [BZ #4368]
10222         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10224 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10226         [BZ #4364]
10227         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10229 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10231         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10232         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10233         current number of locales in SUPPORTED.
10234         (create_archive): Initialize serial.
10235         (enlarge_archive): Preserve aliases rather than duplicating
10236         their locrecs.
10238 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10240         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10241         after _IO_un_link, not before it.
10243         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10244         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10245         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10247 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10249         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10250         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10251         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10252         Remove __THROW.
10253         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10254         _IO_file_xsgetn_maybe_mmap): Likewise.
10255         * libio/oldfileops.c (old_do_write): Likewise.
10256         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10257         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10258         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10259         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10260         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10261         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10262         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10263         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10264         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10265         _IO_file_underflow, _IO_file_underflow_mmap,
10266         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10267         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10268         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10269         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10270         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10271         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10272         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10273         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10274         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10275         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10276         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10277         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10278         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10279         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10280         _IO_adjust_column_internal, _IO_default_uflow_internal,
10281         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10282         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10283         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10284         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10285         _IO_file_close_it_internal, _IO_file_underflow_internal,
10286         _IO_file_overflow_internal, _IO_file_attach_internal,
10287         _IO_file_fopen_internal, _IO_file_sync_internal,
10288         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10289         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10290         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10291         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10292         _IO_seekpos_unlocked): Likewise.
10293         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10294         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10296 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10298         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10299         argument in xmalloc size computation.
10301 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10303         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10304         math_opt_barrier and math_force_eval macros.
10306 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10308         [BZ #3306]
10309         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10310         * sysdeps/i386/fpu/math_private.h: New file.
10311         * sysdeps/x86_64/fpu/math_private.h: New file.
10312         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10313         math_force_eval macros.  Use "+m" constraint on asm rather than
10314         "=m" and "m".
10315         * math/s_nextafter.c (__nextafter): Likewise.
10316         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10317         Likewise.
10318         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10319         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10320         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10321         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10322         math_opt_barrier and math_force_eval macros.
10323         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10324         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10325         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10326         (__nexttoward): Use math_opt_barrier and
10327         math_force_eval macros.  Use "+m" constraint on asm rather than
10328         "=m" and "m".  Only use asm to force double result if
10329         FLT_EVAL_METHOD is 2.
10330         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10331         (__nexttowardf): Use math_opt_barrier and
10332         math_force_eval macros.  Use "+m" constraint on asm rather than
10333         "=m" and "m".  Only use asm to force double result if
10334         FLT_EVAL_METHOD is not 0.
10335         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10336         (__nexttowardf): Use math_opt_barrier and
10337         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10338         x to float using asm.
10339         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10340         (__nldbl_nexttowardf): Use math_opt_barrier and
10341         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10342         x to float using asm.
10343         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10344         (__nexttowardf): Use math_opt_barrier and math_force_eval
10345         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10346         * math/bug-nextafter.c (zero, inf): New variables.
10347         (main): Add new tests.
10348         * math/bug-nexttoward.c (zero, inf): New variables.
10349         (main): Add new tests.
10351 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10353         [BZ #3427]
10354         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10355         exceptions both in SW and MXCSR.
10356         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10357         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10358         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10359         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10360         in MXCSR if SSE is available.
10361         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10362         and ldsodefs.h.
10363         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10364         Fix comment typo.
10365         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10366         Return 0 rather than 1.
10367         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10368         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10369         * math/test-fenv.c (feholdexcept_tests): New function.
10370         (main): Call it.
10372 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10374         [BZ #3427]
10375         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10376         in SW.
10378 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10380         [BZ #4344]
10381         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10382         Reported by David Anderson <davea42@earthlink.net>.
10384 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10386         * posix/sys/wait.h: Remove unnecessary forward declaration.
10388 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10390         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10391         with obj->do_servers after first_shoot.
10393 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10395         * posix/Makefile (routines): Add sched_cpucount.
10396         (tests): Add tst-cpucount.
10397         * posix/sched_cpucount.c: New file.
10398         * posix/tst-cpucount.c: New file.
10399         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10400         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10401         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10402         * posix/sched.h: Define CPU_COUNT.
10404 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10406         * posix/fnmatch.c (STRUCT): Define.
10407         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10408         * posix/fnmatch_loop.c (struct STRUCT): New type.
10409         (FCT): Add ends argument.  If ends != NULL and normal * is
10410         seen in the pattern, store current pattern and string pointers
10411         and return.  Adjust recursive calls.
10412         (EXT): Adjust FCT callers.
10413         (STRUCT): Undef at the end of the file.
10414         * posix/Makefile (tests): Add tst-fnmatch2.
10415         * posix/tst-fnmatch2.c: New test.
10417 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10419         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10420         and 1 on failure.
10422         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10423         Change last argument to unsigned int.
10425 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10427         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10429 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10431         * config.h.in (HAVE_LIBCAP): Add.
10432         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10433         sys/capabilities.h.
10434         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10435         free_caps.  Cast away const from 4th cap_set_flag argument.
10437 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10439         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10440         GLIBC_2.6.
10441         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10442         Add sync_file_range.
10443         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10445 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10447         * sysdeps/powerpc/bits/atomic.h
10448         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10449         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10450         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10451         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10452         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10453         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10454         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10455         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10456         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10457         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10458         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10459         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10460         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10461         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10462         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10463         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10464         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10465         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10466         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10467         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10469 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10471         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10472         (__cache_line_size): Define the variable here.  Add
10473         attribute_hidden, remove weak_extern.
10474         (__libc_start_main): Set __cache_line_size
10475         unconditionally.
10476         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10477         (__cache_line_size): Define the variable here.  Add
10478         attribute_hidden, remove weak_extern.
10479         (DL_PLATFORM_AUXV): Set __cache_line_size
10480         unconditionally.
10481         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10482         weak_extern, add attribute_hidden.
10483         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10484         defined in ld.so.
10485         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10486         definition.
10487         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10489 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10491         [BZ #4276]
10492         * timezone/africa: Update from tzdata2007d.
10493         * timezone/asia: Likewise.
10494         * timezone/australasia: Likewise.
10495         * timezone/backward: Likewise.
10496         * timezone/europe: Likewise.
10497         * timezone/iso3166.tab: Likewise.
10498         * timezone/leapseconds: Likewise.
10499         * timezone/northamerica: Likewise.
10500         * timezone/southamerica: Likewise.
10501         * timezone/zone.tab: Likewise.
10503         * timezone/private.h: Update from tzcode2007d.
10504         * timezone/zdump.c: Likewise.
10505         * timezone/zic.c: Likewise.
10507 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10509         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10510         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10511         variables.
10512         (nis_server_cache_search, nis_server_cache_add): New functions.
10513         (__nisfind_server): Use them.  Add dbp and flags argument, if
10514         call __nisbind_create.
10515         (__nisbind_create): Add server_used and current_ep arguments,
10516         only call __nis_findfastest if server_used is ~0.
10517         (__do_niscall2, __prepare_niscall): Adjust callers.
10518         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10519         ckey_cache_euid, ckey_cache_lock): New variables.
10520         (get_ckey): New function.
10521         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10522         __pmap_getnisport.  Save __pmap_getnisport result in
10523         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10524         key.
10525         * nis/nis_lookup.c (nis_lookup): Likewise.
10526         * nis/nis_table.c (nis_list): Likewise.
10527         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10528         prototypes.
10530         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10531         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10532         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10533         _nss_nisplus_getservbyport_r): Likewise.
10534         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10535         _nss_nisplus_getnetbyaddr_r): Likewise.
10536         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10537         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10538         _nss_nisplus_getntohost_r): Likewise.
10539         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10540         _nss_nisplus_getrpcbynumber_r): Likewise.
10542 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10544         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10545         * configure: Rebuilt.
10547         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10548         bit-fields.
10549         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10551 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10553         [BZ #2831]
10554         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10555         bit-fields.
10557 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10559         * nscd/gai.c: Include alloca.h.
10560         (__libc_use_alloca): Define.
10562 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10564         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10565         smaller scopes.
10566         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10567         (DL_DST_REQUIRED): Adjust user.
10569         * include/dlfcn.h (struct link_map): New forward decl.
10571         * inet/getnameinfo.c: Include stddef.h.
10572         (getnameinfo): Use offsetof.
10574         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10576         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10578         * string/strerror_l.c: Include stdlib.h.
10580         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10581         * config.make.in (gnu89-inline-CFLAGS): New variable.
10582         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10583         -std=gnu99.
10584         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10585         * argp/argp.h: Use it.
10586         * bits/mathinline.h: Likewise.
10587         * bits/sigset.h: Likewise.
10588         * bits/string.h: Likewise.
10589         * ctype/ctype.h: Likewise.
10590         * hurd/hurd.h: Likewise.
10591         * hurd/hurd/fd.h: Likewise.
10592         * hurd/hurd/port.h: Likewise.
10593         * hurd/hurd/signal.h: Likewise.
10594         * hurd/hurd/threadvar.h: Likewise.
10595         * hurd/hurd/userlink.h: Likewise.
10596         * io/sys/stat.h: Likewise.
10597         * libio/bits/stdio.h: Likewise.
10598         * libio/bits/stdio2.h: Likewise.
10599         * mach/lock-intern.h: Likewise.
10600         * mach/mach/mig_support.h: Likewise.
10601         * math/bits/cmathcalls.h: Likewise.
10602         * posix/bits/unistd.h: Likewise.
10603         * socket/bits/socket2.h: Likewise.
10604         * stdlib/bits/stdlib.h: Likewise.
10605         * stdlib/stdlib.h: Likewise.
10606         * string/argz.h: Likewise.
10607         * string/bits/string2.h: Likewise.
10608         * string/bits/string3.h: Likewise.
10609         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10610         * sysdeps/generic/inttypes.h: Likewise.
10611         * sysdeps/generic/machine-lock.h: Likewise.
10612         * sysdeps/generic/machine-sp.h: Likewise.
10613         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10614         * sysdeps/i386/i486/bits/string.h: Likewise.
10615         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10616         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10617         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10618         * sysdeps/mach/i386/machine-lock.h: Likewise.
10619         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10620         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10621         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10622         * sysdeps/s390/bits/string.h: Likewise.
10623         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10624         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10625         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10626         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10627         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10628         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10629         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10630         * wcsmbs/bits/wchar2.h: Likewise.
10631         * wcsmbs/wchar.h: Likewise.
10632         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10633         __extern_inline definition.
10635 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10637         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10638         NULL.
10640         [BZ #3919]
10641         * math/libm-test.inc (log_test): Test -Inf and NaN.
10642         (log10_test, log1p_test, log2_test): Test -Inf.
10643         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10644         FE_INVALID when argument is qNaN.
10645         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10646         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10647         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10648         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10649         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10650         testb $4, %ah and jump if non-zero.
10651         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10652         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10654         [BZ #4101]
10655         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10656         ancestors with the same depths.
10657         Patch by Niels Moeller <nisse@lysator.liu.se>.
10658         (filter_doc): Don't crash if argp is NULL.
10659         * argp/Makefile (tests): Add tst-argp2.
10660         * argp/tst-argp2.c: New test.
10662         [BZ #4130]
10663         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10664         open_not_cancel_2.
10665         (updwtmp_file): Likewise.
10667         [BZ #4181]
10668         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10669         (inet6_opt_append): Don't check extlen is big enough if extbuf
10670         is NULL.
10671         (inet6_opt_finish): Likewise.
10672         * inet/Makefile (tests): Add test-inet6_opt.
10673         * inet/test-inet6_opt.c: New test.
10675         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10676         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10677         NLMSG_ERR.  Instead use a page sized buffer.
10678         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10679         buffer.
10681 2007-03-14  Richard Henderson  <rth@redhat.com>
10683         * sysdeps/alpha/fpu/s_llround.c: New file.
10684         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10685         * sysdeps/alpha/fpu/s_lround.c: New file.
10686         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10687         * sysdeps/alpha/fpu/s_round.c: New file.
10688         * sysdeps/alpha/fpu/s_roundf.c: New file.
10689         * sysdeps/alpha/fpu/s_trunc.c: New file.
10690         * sysdeps/alpha/fpu/s_truncf.c: New file.
10692         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10693         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10694         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10695         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10696         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10697         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10699         * sysdeps/alpha/fpu/s_fmax.S: New file.
10700         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10701         * sysdeps/alpha/fpu/s_fmin.S: New file.
10702         * sysdeps/alpha/fpu/s_fminf.S: New file.
10703         * sysdeps/alpha/fpu/s_isnan.c: New file.
10704         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10705         * sysdeps/alpha/fpu/s_llrint.c: New file.
10706         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10707         * sysdeps/alpha/fpu/s_lrint.c: New file.
10708         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10709         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10710         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10712         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10713         (__fdimf, fdimf, __fdim, fdim): Remove.
10714         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10715         (__isnanf, __isnan, __isnanl): New.
10717 2007-03-13  Richard Henderson  <rth@redhat.com>
10719         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10721 2007-03-13  Richard Henderson  <rth@redhat.com>
10723         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10724         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10725         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10726         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10727         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10728         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10730 2007-03-13  Richard Henderson  <rth@redhat.com>
10732         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10733         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10734         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10735         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10736         Move to dl-auxv.h; initialize instead of extern weak.
10737         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10738         weak symbol.
10739         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10740         Extern instead of initialized.
10742 2007-03-13  Richard Henderson  <rth@redhat.com>
10744         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10745         __sigsuspend_nocancel.
10747 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10749         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10750         172.16/12 address range.
10752 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10754         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10755         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10756         message.
10758 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10760         [BZ #4069]
10761         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10762         earlier.
10763         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10765         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10766         for x qNaN and y either +-inf or non-integer value.
10767         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10768         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10769         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10771 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10773         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10774         from sysdep_headers.
10776 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10778         * time/tzfile.c (find_transition): Instead of a linear search try to
10779         guess the transition index, use a linear search if the result is at
10780         most 10 transitions away from the guess or binary search otherwise.
10782 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10784         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10785         memory reallocation.
10787 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10789         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10790         and fix some typos.
10791         Optimize use of TOLOWER.
10793         [BZ #3325]
10794         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10795         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10796         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10798         [BZ #3458]
10799         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10800         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10802         [BZ #4076]
10803         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10804         (open_dir_stream): Likewise.
10805         * io/Makefile (tests): Add bug-ftw5.
10806         * io/bug-ftw5.c: New file.
10808         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10809         * nscd/servicescache.c (cache_addserv): Likewise.
10811         * nscd/grpcache.c (cache_addgr): In case a record changed on
10812         refresh, adjust key_copy.
10814         [BZ #4074]
10815         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10816         refresh, adjust key_copy.
10818         [BZ #4070]
10819         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10820         special cases.
10821         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10823 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10825         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10826         optimization.
10828         * stdio-common/vfscanf.c: Small cleanups throughout.
10830 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10832         [BZ #3325]
10833         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10834         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10835         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10836         Patch by Jared Casper <jaredcasper@gmail.com>.
10838         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10839         * sysdeps/unix/opendir.c: Likewise.
10840         * sysdeps/unix/readdir.c: Likewise.
10842         [BZ #2211]
10843         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10844         point numbers.
10845         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10847         * stdio-common/vfscanf.c: Fix problems in width accounting.
10848         * stdio-common/tst-sscanf.c (double_tests): New tests.
10849         (main): Hook them up.
10851         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10852         More simplifications of floating-point reader.
10854         * stdio-common/Makefile (tests): Add tst-swscanf.
10855         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10856         testing.
10857         * stdio-common/tst-swscanf.c: New file.
10859 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10861         [BZ #2633]
10862         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10863         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10864         Remove using for __jmp_buf_tag.
10865         * locale/locale.h (struct lconv): Also define in std namespace.
10866         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10868         [BZ #3842]
10869         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10870         using __libc_enable_secure.
10872         [BZ #3818]
10873         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10875         [BZ #3745]
10876         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10877         of names for ellipsises.
10879         [BZ #3348]
10880         * malloc/memusage.sh: Cleanups.
10881         * debug/xtrace.sh: Quoting and trap changes.
10883 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10885         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10887         * locale/iso-3166.def: Update entry for Serbia.
10888         * locale/iso-4217.def: Define RSD, remove CSD.
10890         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10891         and 64-bit operations.
10893         [BZ #4040]
10894         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10895         16-bit operations.
10897         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10898         of writev.
10900 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10902         [BZ #3991]
10903         * assert/assert.h (assert): Simplify.
10904         (assert_perror): Likewise.
10905         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10907         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10908         reqdata.
10910         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10911         change: don't pass NULL in place of an integer.
10913 2007-02-02  Bruno Haible  <bruno@clisp.org>
10915         [BZ #3954]
10916         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10917         Add mapping for U+327E.
10918         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10919         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10920         mapping of 0xD9 0xE8.
10921         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10922         mapping of U+327E.
10923         Reported by Jungshik Shin <jungshik@google.com>.
10925         [BZ #3955]
10926         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10927         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10928         Reported by Jungshik Shin <jungshik@google.com>.
10930 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10932         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10933         byte variants.
10935         [BZ #4040]
10936         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10937         byte variants.  Patch mostly be tom@tommay.net.
10939 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10941         [BZ #3996]
10942         * posix/glob.c (attribute_hidden): Define if not defined.
10943         (glob): Unescape dirname, filename or username when needed and not
10944         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10945         is NULL.  Handle unescaped [ in pattern without closing ].
10946         Don't pass GLOB_CHECK down to recursive glob for directories.
10947         (__glob_pattern_type): New function.
10948         (__glob_pattern_p): Implement using __glob_pattern_type.
10949         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10950         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10951         Remove unreachable code.
10952         * posix/globtest.sh: Add a couple of new tests.
10954 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
10956         * po/ru.po: Update from translation team.
10958 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
10960         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10961         to the list of i486+ CPUs.
10962         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10964 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
10966         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10967         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10968         references.
10970 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
10972         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10974         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10975         * resolv/res_mkquery.c: Define __res_nopt.
10976         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10977         try adding EDNS0 record.
10978         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10979         EDNS0 record was send make sure we don't try it again.
10980         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10981         * include/resolv.h: Declare __res_nopt.
10983 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
10985         [BZ #3944]
10986         * time/strptime_l.c (__strptime_internal): Set have_mon for
10987         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
10988         have been computed from tm_yday and tm_year.  Don't crash
10989         in day_of_the_week or day_of_the_year if not have_mon
10990         and tm_mon contains bogus value.
10991         * time/Makefile (tests): Add tst-strptime3.
10992         * time/tst-strptime3.c: New test.
10994 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10996         [BZ #3957]
10997         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10998         bit for RE_HAT_LISTS_NOT_NEWLINE.
10999         (build_charclass_op): Remove bogus comment.
11000         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11001         * posix/bug-regex27.c: New test.
11002         * posix/bug-regex28.c: New test.
11004 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11006         * po/sv.po: Update from translation team.
11008 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11010         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11012 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11014         * include/locale.h (__uselocale): Add libc_hidden_proto.
11015         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11017         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11018         gettimeofday.
11020 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11022         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11023         returning.
11024         (PTR_DEMANGLE): Real definition now that it's not the same as
11025         PRT_MANGLE anymore.
11026         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11028         * string/strerror_l.c: New file.
11029         * string/Makefile (routines): Add strerror_l.
11030         * string/string.h: Declare strerror_l.
11031         * string/Versions: Export strerror_l for GLIBC_2.6.
11033 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11035         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11036         as parameter.  Construct request record.  Try sending request
11037         before the first poll use, it usually succeeds.  Adjust all
11038         callers.
11039         * nscd/nscd-client.h: Define MAXKEYLEN.
11040         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11042 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11044         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11045         from return value.
11046         * nscd/nscd_helper.c: Include string.h.
11047         (__nscd_cache_search): Remove const qualifier from return value.
11048         On strict alignment architectures check hash entry and data head
11049         alignment.
11050         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11051         mmapped data during GC cycle contains garbage.  If
11052         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11053         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11054         dropped to 0.
11055         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11056         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11057         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11058         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11059         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11061 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11063         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11065 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11067         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11068         names not numbers in cfi_*.
11070 2007-01-26  Andreas Jaeger  <aj@suse.de>
11072         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11073         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11074         Correct values of PER_HPUX and PER_OSF4.
11076 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11078         * elf/dl-minimal.c: Undefine _itoa first.
11079         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11080         * malloc/mtrace.c: Revert last change.
11081         * posix/wordexp.c: Likewise.
11083 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11085         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11086         and __geode__ to the list of i486+ CPUs.
11087         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11089 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11091         * stdio-common/_itoa.c: Include <limits.h>.
11092         * stdio-common/_itowa.c: Likewise.
11094 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11096         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11097         platforms.
11098         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11099         64-bit platforms.
11100         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11101         possible.
11102         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11103         if possible.
11105         [BZ #3902]
11106         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11107         * stdio-common/Makefile (tests): Add bug17.
11108         * stdio-common/bug17.c: New file.
11110 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11112         * iconvdata/brf.c: New file.
11113         * iconvdata/testdata/BRF: New file.
11114         * iconvdata/testdata/BRF..UTF8: New file.
11115         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11116         * iconvdata/Makefile: Add rules to build BRF.
11117         * iconvdata/TESTS: Add BRF entry.
11118         * iconvdata/gconv-modules: Likewise.
11119         * iconvdata/tst-tables.sh: Likewise.
11121 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11123         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11124         type `long long int', not `long int'.
11125         (wcstoq): Likewise.
11127 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11129         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11130         of values on 64-bit platforms which are too large.
11132 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11133             Joe Kerian  <jkerian@us.us.ibm.com>
11135         [BZ #2749]
11136         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11137         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11138         (__copysignl): Use signbit() for comparison.
11139         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11140         SET_LDOUBLE_WORDS64.
11142         [BZ #2423, #2749]
11143         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11144         (__ceill): Remove calls to fegetround(), fesetround().
11145         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11146         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11147         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11149 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11151         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11153         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11155 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11157         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11158         demangle pointer.
11159         * csu/libc-start.c: Likewise.
11161 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11163         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11164         really work anyway.
11166 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11168         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11169         users.
11170         (handle_request): Remove unnecessary tests.
11172         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11174 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11176         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11177         workbits in semi-raw fraction.
11179         * math/test-misc.c: Add new tests.
11181 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11183         * math/basic-test.c: Include test-skeleton.c.
11184         (TEST_TRUNC): Define.
11185         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11186         (main): Rename to ...
11187         (do_test): ...this.  Run new tests.
11188         (TEST_FUNCTION): Define.
11190 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11191             Joe Kerian  <jkerian@us.us.ibm.com>
11193         [BZ #2749]
11194         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11195         handling for high words.
11196         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11197         and overflow for infinity.
11199 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11201         * nscd/connections.c (handle_request): Add a __builtin_expect.
11203         * nscd/connections.c (serv2db): Change type into structure which
11204         also says whether this is a request for data.  Renamed to
11205         servinfo.  All users changed.
11206         (handle_request): Much simpler test whether we should search the cache.
11208         * nscd/connections.c (handle_request): Fix thinko in selinux test
11209         invocation.
11211         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11212         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11213         it before getting dl_load_lock and then relock.
11214         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11215         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11216         case we unlocked the scope.
11217         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11218         _dl_lookup_symbol_x in case we locked the scope.
11219         (_dl_profile_fixup): Likewise.
11220         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11221         set DL_LOOKUP_SCOPE_LOCK.
11223 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11225         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11226         CFLAGS-getsrvbynpt_r.c.
11227         * nscd/getsrvbynm_r.c: New file.
11228         * nscd/getsrvbypt_r.c: New file.
11229         * nscd/nscd_getserv_r.c: New file.
11230         * nscd/servicescache.c: New file.
11231         * nscd/Makefile (routines): Add nscd_getserv_r.
11232         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11233         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11234         CFLAGS-getsrvbypt_r.c.
11235         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11236         table.  Add entries for services database.
11237         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11238         services database.
11239         (dbs): Add .reset_res and servdb initialization.
11240         (serv2db): Add entries for services database.
11241         (verify_persistent_db): Accept dbnr == servdb.
11242         (invalidate_cache): Rewrite database name recognition to use a table.
11243         Call res_init() if .reset_res is set for database.
11244         (handle_request): Add code to handle services database.
11245         * nscd/gai.c: Don't define __getservbyname_r.
11246         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11247         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11248         (serv_response_header): Define.
11249         (struct datahead): Add serv_response_header member.
11250         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11251         using table.
11252         * nscd/nscd.conf: Add entries for services database.
11253         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11254         Declare serv_iov_disabled.
11255         Declare addservbyname, readdservbyname, addservbyport, and
11256         readdservbyport.
11257         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11258         (find_db): Fix error message.
11259         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11260         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11261         * nscd/selinux.c (perms): Add entries for services database.
11262         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11263         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11265         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11266         * nscd/hstcache.c: Likewise.
11267         * nscd/pwdcache.c: Likewise.
11269         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11270         computation of keylen.
11272         * include/string.h: Only redefine strndupa if this is really for
11273         libc code.
11275 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11277         * nscd/nscd_gethst_r.c: Minor cleanups.
11279         * nscd/connections.c (handle_request): Check selinux permissions
11280         for all non-admin commands.
11282         * sysdeps/i386/i486/bits/atomic.h: Define
11283         atomic_compare_and_exchange_val_acq,
11284         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11285         using __sync_* built-ins for gcc >= 4.1.
11286         * sysdeps/x86_64/bits/atomic.h: Likewise.
11288         [BZ #3840]
11289         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11290         and .oS.d files.
11292 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11294         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11295         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11296         (do_test): Check errno and exit(0) if ENOSYS.
11298 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11300         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11301         thousands separators.
11302         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11303         * stdlib/tst-strtod4.c: New test.
11305         [BZ #3855]
11306         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11307         hexadecimal digit should accept just the initial 0.
11308         * stdlib/tst-strtod2.c (tests): New variable.
11309         (do_test): Run several tests rather than just one.
11311 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11313         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11314         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11316 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11318         * io/fts.c: Make sure fts_cur is always valid after return from
11319         fts_read.
11320         Patch by Miloslav Trmac <mitr@redhat.com>.
11322 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11324         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11325         (R_MIPS_NUM): Bump by 1.
11327 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11329         * posix/execvp.c: Include alloca.h.
11330         (allocate_scripts_argv): Renamed to...
11331         (scripts_argv): ... this.  Don't allocate buffer here nor count
11332         arguments.
11333         (execvp): Use alloca if possible.
11334         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11335         * posix/tst-vfork3.c: New test.
11337 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11339         * string/Makefile (tst-strxfrm2-ENV): Define.
11340         * stdlib/Makefile (tst-strtod3-ENV): Define.
11342 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11344         * posix/getconf.c: Update copyright year.
11345         * nss/getent.c: Likewise.
11346         * iconv/iconvconfig.c: Likewise.
11347         * iconv/iconv_prog.c: Likewise.
11348         * elf/ldconfig.c: Likewise.
11349         * catgets/gencat.c: Likewise.
11350         * csu/version.c: Likewise.
11351         * elf/ldd.bash.in: Likewise.
11352         * elf/sprof.c (print_version): Likewise.
11353         * locale/programs/locale.c: Likewise.
11354         * locale/programs/localedef.c: Likewise.
11355         * nscd/nscd.c (print_version): Likewise.
11356         * debug/xtrace.sh: Likewise.
11357         * malloc/memusage.sh: Likewise.
11358         * malloc/mtrace.pl: Likewise.
11359         * debug/catchsegv.sh: Likewise.
11361 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11363         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11364         attempts.
11366 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11368         * posix/wordexp.c: Remove some unnecessary tests.
11370 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11372         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11373         blacklist the group till after we look it up.
11375 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11377         * include/atomic.h (atomic_forced_read): New macro.
11379 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11381         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11383 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11385         * nss/getXXbyYY_r.c: Include atomic.h.
11386         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11387         add atomic_write_barrier () in between.
11389         * stdlib/Makefile (tests): Add tst-makecontext.
11390         * stdlib/tst-makecontext.c: New test.
11392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11393         (__makecontext): Don't realign uc_mcontext.uc_regs.
11395 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11397         * elf/dl-support.c: Include dl-procinfo.h.
11398         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11399         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11400         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11401         Define.
11402         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11403         hardcoded constants.
11404         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11405         PPC_PLATFORM_* macros for array designators.
11407 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11409         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11410         names to the beginning.
11411         (_dl_powerpc_platforms): Add "power6x".
11412         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11413         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11414         (_DL_PLATFORMS_COUNT): Increase.
11415         (_dl_string_platform): Handle power6x case.
11416         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11417         PPC_FEATURE_POWER6_EXT): Define.
11418         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11420 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11422         [BZ #3747]
11423         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11424         [-2^31 .. 2^31) range.
11425         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11426         targets.
11427         * stdlib/tst-rand48-2.c: New test.
11428         * stdlib/Makefile (tests): Add tst-rand48-2.
11430 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11432         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11434 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11436         * misc/tst-pselect.c (do_test): Make sure the helper process is
11437         terminating when the test is aborted.
11439 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11441         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11442         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11443         Handle relatime mount option.
11445         [BZ #2337]
11446         * libio/Makefile (tests): Add tst-setvbuf1.
11447         * libio/tst-setvbuf1.c: New file.
11449 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11451         [BZ #2337]
11452         * libio/genops.c (__uflow): Fix a typo.
11453         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11454         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11455         the narrow buffer size.
11457 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11459         [BZ #2337]
11460         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11461         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11462         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11463         in _flags.
11464         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11465         _IO_wstr_finish): Likewise.
11466         * libio/wmemstream.c (open_wmemstream): Likewise.
11467         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11468         even for wide streams.
11470 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11473         kernel-features.h.
11475 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11477         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11478         separators also if no non-zero digits found.
11479         * stdlib/Makefile (tests): Add tst-strtod3.
11481 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11483         [BZ #3632]
11484         * include/features.h: Fix comment about default value for
11485         _POSIX_C_SOURCE.
11487         [BZ #3664]
11488         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11489         empty parsed strings.
11490         * stdlib/Makefile (tests): Add tst-strtod2.
11491         * stdlib/tst-strtod2.c: New file.
11493         [BZ #3673]
11494         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11495         computation.
11496         * stdlib/Makefile (tests): Add tst-atof2.
11497         * stdlib/tst-atof2.c: New file.
11499         [BZ #3674]
11500         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11501         correctly if removing trailing zero of hex-float.
11502         * stdlib/Makefile (tests): Add tst-atof1.
11503         * stdlib/tst-atof1.c: New file.
11505 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11507         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11508         Start searching for next comma at p rather than rest.
11509         * misc/Makefile (tests): Add tst-mntent2.
11510         * misc/tst-mntent2.c: New test.
11512         * misc/getusershell.c (initshells): Check for integer overflows.
11513         Make strings buffer one bigger as fgets always succeeds when second
11514         argument is 1.  Don't use calloc for shells array.  Disallow
11515         / as shell.
11517 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11519         * malloc/memusage.c: Handle realloc with new size of zero and
11520         non-NULL pointer correctly.
11521         (me): Really write first record twice.
11522         (struct entry): Make format bi-arch safe.
11523         (dest): Write out more realloc statistics.
11524         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11526 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11528         * nis/nis_subr.c (nis_getnames): Revert last change.
11530 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11532         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11533         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11534         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11535         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11536         ENOTTY.
11537         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11538         * io/tst-ttyname_r.c: New test.
11540 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11542         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11544 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11546         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11547         jump table entries.
11549 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11551         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11552         `clone' function to ensure proper unwinding stop of gdb.
11553         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11555 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11557         * nscd/nscd.init: Remove obsolete and commented-out -S option
11558         handling.
11560 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11562         [BZ #3514]
11563         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11565         [BZ #3515]
11566         * manual/string.texi (strtok): Remove duplicate paragraph.
11568 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11570         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11571         libgcc not supporting `rflags' unwinding (register # >= 17).
11573 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11575         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11576         succeeded.
11578 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11579             Jakub Jelinek  <jakub@redhat.com>
11580             Jan Kratochvil  <jan.kratochvil@redhat.com>
11582         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11583         unwind information.
11584         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11585         'restore_rt' even in the 'signal' directory.
11586         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11588 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11590         [BZ #3559]
11591         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11592         malloc crashed.  Don't allocate memory unnecessarily in each
11593         loop.
11595 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11597         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11599 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11601         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11603 2006-11-18  Bruno Haible  <bruno@clisp.org>
11605         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11606         __sysconf only after having tried to call getgroups32.
11608 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11610         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11611         addresses for IPv4 queries if they can be mapped.
11613 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11615         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11616         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11617         (signmask): Add .size directive.
11618         (othermask): Add .type directive.
11620 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11622         * po/nl.po: Update from translation team.
11624         * timezone/zdump.c: Redo fix for BZ #3137.
11626 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11628         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11629         to first_unused after parsing :include: file.
11631 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11633         * timezone/africa: Update from tzdata2006o.
11634         * timezone/antarctica: Likewise.
11635         * timezone/asia: Likewise.
11636         * timezone/australasia: Likewise.
11637         * timezone/backward: Likewise.
11638         * timezone/europe: Likewise.
11639         * timezone/iso3166.tab: Likewise.
11640         * timezone/northamerica: Likewise.
11641         * timezone/southamerica: Likewise.
11642         * timezone/zone.tab: Likewise.
11644         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11645         on machines with 64-bit time_t.
11647         * timezone/checktab.awk: Update from tzcode2006o.
11648         * timezone/ialloc.c: Likewise.
11649         * timezone/private.h: Likewise.
11650         * timezone/scheck.c: Likewise.
11651         * timezone/tzfile.h: Likewise.
11652         * timezone/tzselect.ksh: Likewise.
11653         * timezone/zdump.c: Likewise.
11654         * timezone/zic.c: Likewise.
11656         [BZ #3483]
11657         * elf/ldconfig.c (main): Call setlocale and textdomain.
11658         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11660         [BZ #3480]
11661         * manual/argp.texi: Fix typos.
11662         * manual/charset.texi: Likewise.
11663         * manual/errno.texi: Likewise.
11664         * manual/filesys.texi: Likewise.
11665         * manual/lang.texi: Likewise.
11666         * manual/maint.texi: Likewise.
11667         * manual/memory.texi: Likewise.
11668         * manual/message.texi: Likewise.
11669         * manual/resource.texi: Likewise.
11670         * manual/search.texi: Likewise.
11671         * manual/signal.texi: Likewise.
11672         * manual/startup.texi: Likewise.
11673         * manual/stdio.texi: Likewise.
11674         * manual/sysinfo.texi: Likewise.
11675         * manual/syslog.texi: Likewise.
11676         * manual/time.texi: Likewise.
11677         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11679         [BZ #3465]
11680         * sunrpc/clnt_raw.c: Minimal message improvements.
11681         * sunrpc/pm_getmaps.c: Likewise.
11682         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11683         * nis/nis_print_group_entry.c: Likewise.
11684         * locale/programs/repertoire.c: Likewise.
11685         * locale/programs/charmap.c: Likewise.
11686         * malloc/memusage.sh: Likewise.
11687         * elf/dl-deps.c: Likewise.
11688         * locale/programs/ld-collate.c: Likewise.
11689         * libio/vswprintf.c: Likewise.
11690         * malloc/memusagestat.c: Likewise.
11691         * sunrpc/auth_unix.c: Likewise.
11692         * sunrpc/rpc_main.c: Likewise.
11693         * nscd/cache.c: Likewise.
11694         * locale/programs/repertoire.c: Unify output messages.
11695         * locale/programs/charmap.c: Likewise.
11696         * locale/programs/ld-ctype.c: Likewise.
11697         * locale/programs/ld-monetary.c: Likewise.
11698         * locale/programs/ld-numeric.c: Likewise.
11699         * locale/programs/ld-time.c: Likewise.
11700         * elf/ldconfig.c: Likewise.
11701         * nscd/selinux.c: Likewise.
11702         * elf/cache.c: Likewise.
11703         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11705         [BZ #3451]
11706         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11707         change atomic.
11708         (ceil): Likewise.
11710 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11712         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11713         if N is one bigger than return value.
11714         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11715         and l1 last arguments, if buf is defined, verify the return value
11716         equals to strlen (buf) and verify no byte beyond passed length
11717         is modified.
11719 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11721         * po/sv.po: Update from translation team.
11723 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11725         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11726         noinline attribute.
11728 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11730         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11731         noinline attribute.
11733         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11734         Use __new_sys_siglist instead of _sys_siglist_internal as
11735         second macro argument.
11736         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11737         strong_alias.
11739 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11741         [BZ #3493]
11742         * posix/unistd.h (sysconf): Remove const attribute.
11744         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11745         temporary or deprecated addresses.
11746         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11748         * string/Makefile (tests): Add tst-strxfrm2.
11749         * string/tst-strxfrm2.c: New file.
11751 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11753         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11754         rather than r->r_brk.
11756 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11758         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11759         optimization even if needed > n.
11761         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11762         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11763         return false, otherwise return true.
11764         (cache_rpath): Return decompose_rpath return value.
11766 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11768         * include/libc-symbols.h (declare_symbol): Rename to...
11769         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11770         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11771         .size directive.
11772         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11773         changes.
11774         * sysdeps/gnu/siglist.c: Likewise.
11776 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11778         * sysdeps/powerpc/fpu/bits/mathinline.h
11779         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11780         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11782 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11784         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11785         Update handling of cache descriptor 0x49 for new models.
11786         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11787         Likewise.
11789 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11791         * malloc/memusage.c (dest): Reset not_me back to false after
11792         printing statistics.
11794 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11796         * configure.in: Work around ld --help change and avoid -z relro
11797         test completely if the architecture doesn't care about security.
11799 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11801         * po/sv.po: Update from translation team.
11803 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11805         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11806         generate compatibility version.
11808 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11810         * configure.in: Relax -z relro requirement a bit.
11812         * po/sv.po: Update from translation team.
11814 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11816         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11817         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11818         * elf/dl-close.c (_dl_close_worker): Likewise.
11819         * elf/dl-open.c (_dl_open_worker): Likewise.
11820         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11822 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11824         * configure.in: Require assembler support for visibility, compiler
11825         support for visibility and aliases, linker support for various -z
11826         options.
11827         * Makeconfig: Remove conditional code which now is unnecessary.
11828         * config.h.in: Likewise.
11829         * config.make.in: Likewise.
11830         * dlfcn/Makefile: Likewise.
11831         * elf/Makefile: Likewise.
11832         * elf/dl-load.c: Likewise.
11833         * elf/rtld.c: Likewise.
11834         * include/libc-symbols.h: Likewise.
11835         * include/stdio.h: Likewise.
11836         * io/Makefile: Likewise.
11837         * io/fstat.c: Likewise.
11838         * io/fstat64.c: Likewise.
11839         * io/fstatat.c: Likewise.
11840         * io/fstatat64.c: Likewise.
11841         * io/lstat.c: Likewise.
11842         * io/lstat64.c: Likewise.
11843         * io/mknod.c: Likewise.
11844         * io/mknodat.c: Likewise.
11845         * io/stat.c: Likewise.
11846         * io/stat64.c: Likewise.
11847         * libio/stdio.c: Likewise.
11848         * nscd/Makefile: Likewise.
11849         * stdlib/Makefile: Likewise.
11850         * stdlib/atexit.c: Likewise.
11851         * sysdeps/generic/ldsodefs.h: Likewise.
11852         * sysdeps/i386/dl-machine.h: Likewise.
11853         * sysdeps/i386/sysdep.h: Likewise.
11854         * sysdeps/i386/i686/memcmp.S: Likewise.
11855         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11856         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11857         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11859         * Makerules: USE_TLS support is now default.
11860         * tls.make.c: Likewise.
11861         * csu/Versions: Likewise.
11862         * csu/libc-start.c: Likewise.
11863         * csu/libc-tls.c: Likewise.
11864         * csu/version.c: Likewise.
11865         * dlfcn/dlinfo.c: Likewise.
11866         * elf/dl-addr.c: Likewise.
11867         * elf/dl-cache.c: Likewise.
11868         * elf/dl-close.c: Likewise.
11869         * elf/dl-iteratephdr.c: Likewise.
11870         * elf/dl-load.c: Likewise.
11871         * elf/dl-lookup.c: Likewise.
11872         * elf/dl-object.c: Likewise.
11873         * elf/dl-open.c: Likewise.
11874         * elf/dl-reloc.c: Likewise.
11875         * elf/dl-support.c: Likewise.
11876         * elf/dl-sym.c: Likewise.
11877         * elf/dl-sysdep.c: Likewise.
11878         * elf/dl-tls.c: Likewise.
11879         * elf/ldconfig.c: Likewise.
11880         * elf/rtld.c: Likewise.
11881         * elf/tst-tls-dlinfo.c: Likewise.
11882         * elf/tst-tls1.c: Likewise.
11883         * elf/tst-tls10.h: Likewise.
11884         * elf/tst-tls14.c: Likewise.
11885         * elf/tst-tls2.c: Likewise.
11886         * elf/tst-tls3.c: Likewise.
11887         * elf/tst-tls4.c: Likewise.
11888         * elf/tst-tls5.c: Likewise.
11889         * elf/tst-tls6.c: Likewise.
11890         * elf/tst-tls7.c: Likewise.
11891         * elf/tst-tls8.c: Likewise.
11892         * elf/tst-tls9.c: Likewise.
11893         * elf/tst-tlsmod1.c: Likewise.
11894         * elf/tst-tlsmod13.c: Likewise.
11895         * elf/tst-tlsmod13a.c: Likewise.
11896         * elf/tst-tlsmod14a.c: Likewise.
11897         * elf/tst-tlsmod2.c: Likewise.
11898         * elf/tst-tlsmod3.c: Likewise.
11899         * elf/tst-tlsmod4.c: Likewise.
11900         * elf/tst-tlsmod5.c: Likewise.
11901         * elf/tst-tlsmod6.c: Likewise.
11902         * include/errno.h: Likewise.
11903         * include/link.h: Likewise.
11904         * include/tls.h: Likewise.
11905         * locale/global-locale.c: Likewise.
11906         * locale/localeinfo.h: Likewise.
11907         * malloc/arena.c: Likewise.
11908         * malloc/hooks.c: Likewise.
11909         * malloc/malloc.c: Likewise.
11910         * resolv/Versions: Likewise.
11911         * sysdeps/alpha/dl-machine.h: Likewise.
11912         * sysdeps/alpha/libc-tls.c: Likewise.
11913         * sysdeps/generic/ldsodefs.h: Likewise.
11914         * sysdeps/generic/tls.h: Likewise.
11915         * sysdeps/i386/dl-machine.h: Likewise.
11916         * sysdeps/ia64/dl-machine.h: Likewise.
11917         * sysdeps/ia64/libc-tls.c: Likewise.
11918         * sysdeps/mach/hurd/fork.c: Likewise.
11919         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11920         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11921         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11922         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11923         * sysdeps/s390/libc-tls.c: Likewise.
11924         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11925         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11926         * sysdeps/sh/dl-machine.h: Likewise.
11927         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11928         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11929         * sysdeps/x86_64/dl-machine.h: Likewise.
11931         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11932         split out locking and parameter checking.
11933         (_dl_close): Call _dl_close_worker after locking and checking.
11934         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11935         _dl_close.
11936         * elf/Makefile: Add rules to build and run tst-thrlock.
11937         * elf/tst-thrlock.c:  New file.
11939         [BZ #3426]
11940         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11941         reality.
11943         [BZ #3429]
11944         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11945         we are sure we do not need it anymore for _dl_close.  Also move
11946         the asserts inside the lock region.
11947         Patch mostly by Suzuki <suzuki@in.ibm.com>.
11949 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
11951         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11952         argument.
11953         (_dl_lookup_symbol_x): Adjust caller.
11955         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11956         _ns_global_scope.
11957         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11959         * elf/dl-libc.c: Revert l_scope name changes.
11960         * elf/dl-load.c: Likewise.
11961         * elf/dl-object.c: Likewise.
11962         * elf/rtld.c: Likewise.
11963         * elf/dl-close.c (_dl_close): Likewise.
11964         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
11965         always use __rtld_mrlock_{change,done}.  Always free old scope list
11966         here if not l_scope_mem.
11967         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11968         change.  Never free scope list here.  Just __rtld_mrlock_lock before
11969         the lookup and __rtld_mrlock_unlock it after the lookup.
11970         * elf/dl-sym.c: Likewise.
11971         * include/link.h (struct r_scoperec): Remove.
11972         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11973         with l_scope_mem and l_scoperec_lock with l_scope_lock.
11975 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
11977         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11979 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11981         * configure.in: Disable building profile libraries by default.
11983 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11985         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11986         as signed longs, check for x_base + pos overflow.
11987         * sunrpc/Makefile (tests): Add tst-xdrmem2.
11988         * sunrpc/tst-xdrmem2.c: New test.
11990 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11992         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11993         _dl_lookup_symbol_x code.
11995 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11997         * elf/dl-runtime.c: Include sysdep-cancel.h.
11998         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11999         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12000         instead of catomic_* macros.
12001         * elf/dl-sym.c: Include sysdep-cancel.h.
12002         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12003         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12004         * elf/dl-close.c: Include sysdep-cancel.h.
12005         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12006         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12007         * elf/dl-open.c: Include sysdep-cancel.h.
12008         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12009         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12011 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12013         [BZ #3313]
12014         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12015         fastbin rather than end of fastbin array.
12017 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12019         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12020         body macro.
12021         * sysdeps/x86_64/bits/atomic.h
12022         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12023         (catomic_decrement): Use correct body macro.
12025 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12027         * include/atomic.h: Add a unique prefix to all local variables
12028         in macros.
12029         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12031 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12033         [BZ #3369]
12034         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12035         and 7.
12037 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12039         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12041 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12043         [BZ #3313]
12044         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12045         determine highest fast bin to consolidate, always look into all of
12046         them.
12047         (do_check_malloc_state): Only require for empty bins for large
12048         sizes in main arena.
12050         * libio/stdio.h: Add more __wur attributes.
12052         * elf/dl-minimal.c (realloc): Optimize last patch.
12054 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12056         [BZ #3352]
12057         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12058         and use memcpy() if it does.
12060 2006-11-12  Andreas Jaeger  <aj@suse.de>
12062         [BZ #2510]
12063         * manual/search.texi (Hash Search Function): Clarify.
12064         (Array Search Function): Clarify.
12066 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12068         [BZ #2830]
12069         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12070         shifting.
12071         * math/atest-exp2.c (read_mpn_hex): Likewise.
12072         * math/atest-sincos.c (main): Likewise.
12074 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12076         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12077         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12078         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12079         version GLIBC_2.6.
12080         * Versions.def: Add GLIBC_2.6 for libc.
12082         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12084         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12086 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12088         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12090         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12092         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12093         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12095 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12097         * include/atomic.c: Define catomic_* operations.
12098         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12099         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12100         * malloc/memusage.c: Likewise.
12101         * gmon/mcount.c: Likewise.
12102         * elf/dl-close.c: Likewise.
12103         * elf/dl-open.c: Likewise.
12104         * elf/dl-profile.c: Likewise.
12105         * elf/dl-sym.c: Likewise.
12106         * elf/dl-runtime.c: Likewise.
12107         * elf/dl-fptr.c: Likewise.
12108         * resolv/res_libc.c: Likewise.
12110 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12112         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12113         components which lack them.
12115         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12116         at least one entry consisting of the parameter concatenated with
12117         the domain.
12119 2006-10-10  Roland McGrath  <roland@frob.com>
12121         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12122         * sysdeps/mach/hurd/futimes.c: Likewise.
12123         * sysdeps/mach/hurd/lutimes.c: Likewise.
12125 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12126             Jakub Jelinek  <jakub@redhat.com>
12128         Implement reference counting of scope records.
12129         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12130         from the list in objects which remain.  Always allocate new scope
12131         record.
12132         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12133         don't resize, allocate a new one.
12134         * elf/dl-runtime.c: Update reference counters before using a scope
12135         array.
12136         * elf/dl-sym.c: Likewise.
12137         * elf/dl-libc.c: Adjust for l_scope name change.
12138         * elf/dl-load.c: Likewise.
12139         * elf/dl-object.c: Likewise.
12140         * elf/rtld.c: Likewise.
12141         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12142         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12143         Add l_scoperec_lock.
12144         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12145         * sysdeps/generic/rtld-lowlevel.h: New file.
12147         * include/atomic.h: Rename atomic_and to atomic_and_val and
12148         atomic_or to atomic_or_val.  Define new macros atomic_and and
12149         atomic_or which do not return values.
12150         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12151         Various cleanups.
12152         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12154         * po/sv.po: Update from translation team.
12156 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12158         * Versions.def: Add GLIBC_2.6 to libpthread.
12160         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12161         (versioned_symbol): Likewise.
12162         (compat_symbol): Likewise.
12164         * po/tr.po: Update from translation team.
12166 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12168         * nis/Banner: Removed.  It's been integral part forever and the
12169         author info is incomplete anyway.
12170         * libio/Banner: Likewise.
12172         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12173         code, make sure the nis_freeresult call doesn't crash and that the
12174         result is reported correctly.
12176 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12178         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12179         when callback is NULL.
12181         * nis/Versions (libnss_nisplus): Add
12182         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12183         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12184         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12185         _nss_create_tablename): Rename to...
12186         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12187         ... these.  No longer static.
12188         (internal_setgrent): Adjust users.
12189         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12190         Don't use locking around _nss_grp_create_tablename call.
12191         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12193 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12195         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12197 2006-10-06  Andreas Jaeger  <aj@suse.de>
12199         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12201 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12203         * po/pl.po: Update from translation team.
12205         * nscd/nscd.c (main): Fix typo in message.
12206         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12208 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12210         [BZ #3291]
12211         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12212         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12213         (__sigprocmask): Define.
12215 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12217         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12218         used.
12220 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12222         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12223         in oldtotal and newtotal calculation.
12224         * nscd/nscd-client.h (struct mapped_database): Add datasize
12225         field.
12226         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12227         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12228         increased.
12229         (__nscd_cache_search): Add checks to make sure we never reference
12230         data beyond the current mapping.
12232 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12234         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12235         variables const to avoid compiler warnings.
12237         * io/fts.c (fts_close): Remove redundant checks.
12238         (fts_build): Likewise.
12239         (fts_palloc): Likewise.
12241         * manual/message.texi (Advanced gettext functions,
12242         Using gettextized software): Fix typos.
12244 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12246         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12247         explain why there are no leaks.
12249 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12251         * libio/wmemstream.c: Include <wchar.h>.
12252         * libio/bug-wmemstream1.c: Likewise.
12253         * libio/tst-wmemstream1.c: Likewise.
12254         * libio/tst-wmemstream2.c: Likewise.
12256         * version.h (RELEASE): Bump to 2.5.
12257         * README: Regenerated.
12259         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12261         [BZ #3273]
12262         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12263         found no group members.
12264         Patch by Petr Baudis.
12266 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12268         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12269         assert bootstrap_map.l_tls_modid is zero.
12270         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12271         if USE___THREAD.
12273 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12275         * libio/stdio.h: Move open_wmemstream prototype to ...
12276         * wcsmbs/wchar.h: ... here.
12278 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12280         [BZ #3252]
12281         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12282         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12283         __{,l}chown to handle the rest.
12284         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12285         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12286         __{,l}chown to handle the rest.
12287         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12288         i386/fchownat.c.
12289         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12290         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12292         [BZ #3253]
12293         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12294         time, rather allocate increasingly bigger arrays of pointers, if
12295         possible with alloca, if too large with malloc.
12297 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12299         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12301         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12303 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12305         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12306         home addresses.
12307         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12308         IFA_F_HOMEADDRESS flag for interfaces.
12309         * include/ifaddrs.h (struct in6addrinfo): Define
12310         in6ai_homeaddress.
12312 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12314         [BZ #3225]
12315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12316         PTR_DEMANGLE3): Define.
12317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12318         PTR_DEMANGLE3): Likewise.
12319         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12320         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12321         Likewise.
12322         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12324 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12326         * po/libc.pot: Regenerated.
12327         * po/be.po: Updated.
12328         * po/ca.po: Likewise.
12329         * po/cs.po: Likewise.
12330         * po/da.po: Likewise.
12331         * po/de.po: Likewise.
12332         * po/el.po: Likewise.
12333         * po/en_GB.po: Likewise.
12334         * po/es.po: Likewise.
12335         * po/fi.po: Likewise.
12336         * po/fr.po: Likewise.
12337         * po/gl.po: Likewise.
12338         * po/hr.po: Likewise.
12339         * po/hu.po: Likewise.
12340         * po/ja.po: Likewise.
12341         * po/ko.po: Likewise.
12342         * po/nb.po: Likewise.
12343         * po/nl.po: Likewise.
12344         * po/pl.po: Likewise.
12345         * po/pt_BR.po: Likewise.
12346         * po/ru.po: Likewise.
12347         * po/rw.po: Likewise.
12348         * po/sk.po: Likewise.
12349         * po/sv.po: Likewise.
12350         * po/tr.po: Likewise.
12351         * po/zh_CN.po: Likewise.
12352         * po/zh_TW.po: Likewise.
12354         [BZ #3137]
12355         * iconv/iconv_prog.c (main): Fix spelling in error message.
12356         * iconv/iconvconfig.c (main): Likewise.
12357         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12358         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12359         * locale/programs/localedef.c (main): Likewise.
12360         * locale/programs/repertoire.c (repertoire_read): Likewise.
12361         * timezone/zdump.c (main): Likewise.
12362         * nscd/connections.c (handle_request): Fix spelling in log message.
12363         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12365 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12367         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12368         interfaces.
12370 2006-09-20  Andreas Jaeger  <aj@suse.de>
12372         * math/libm-test.inc (lrint_test_upward): Fix typo.
12374 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12376         [BZ #2592]
12377         * math/libm-test.inc (lrint_test_tonearest): New function.
12378         (lrint_test_towardzero): New function.
12379         (lrint_test_downward): New function.
12380         (lrint_test_upward): New function.
12381         (main): Run these new tests.
12382         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12383         of values near to 0.
12384         (two52): Use double not long double.
12385         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12386         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12387         (two23): Use float not double.
12388         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12389         (two23): Use float not double.
12390         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12391         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12392         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12393         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12395 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12397         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12398         Cast sp to unsigned long to avoid compiler warning.
12399         Use __makecontext_ret function instead of a trampoline on the stack.
12400         (__makecontext_ret): New function.
12401         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12403 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12405         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12406         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12407         bits.
12409 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12411         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12412         sure no reference to the unloaded map's search list remains in the
12413         dependency's scope.
12415 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12417         * elf/Makefile: Add rules to build and run unload7 test.
12418         * elf/unload7.c: New test.
12419         * elf/unload7mod1.c: New file.
12420         * elf/unload7mod2.c: New file.
12422 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12424         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12425         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12426         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12427         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12428         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12429         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12430         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12431         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12432         PTRACE_GETEVENTMSG): Likewise.
12433         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12434         values.
12436 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12438         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12439         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12440         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12441         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12443 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12445         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12446         write '\0' to the fd.
12447         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12448         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12449         Change regs to unsigned long pointer from unsigned int, fix fscr
12450         offset.
12452 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12454         * io/Makefile (CFLAGS-fstatat.c): Set.
12455         (CFLAGS-fstatat64.c): Likewise.
12456         (CFLAGS-mknodat.c): Likewise.
12458         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12459         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12460         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12461         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12463 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12464             Steven Munroe  <sjmunroe@us.ibm.com>
12466         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12467         names to the beginning.  Rename "cell" to "cellbe".
12468         (_dl_powerpc_platforms): New.
12469         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12470         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12471         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12472         (_DL_HWCAP_PLATFORM): Define to new mask.
12473         (_dl_platform_string, _dl_string_platform): New functions.
12474         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12475         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12477 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12479         [BZ #2526]
12480         * README.libm: Fix a thinko in sqrt algorithm description.
12482         [BZ #3143]
12483         * manual/string.texi (argz_delete): Fix prototype.
12484         Patch by <alpt@freaknet.org>.
12486 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12488         [BZ #3138]
12489         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12490         * io/tst-fcntl.c (do_prepare): Likewise.
12491         * posix/tst-exec.c (do_prepare): Likewise.
12492         * posix/tst-preadwrite.c (do_prepare): Likewise.
12493         * posix/tst-spawn.c (do_prepare): Likewise.
12494         * posix/tst-truncate.c (do_prepare): Likewise.
12495         * rt/tst-aio.c (do_prepare): Likewise.
12496         * rt/tst-aio64.c (do_prepare): Likewise.
12497         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12498         size_t.
12500 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12502         [BZ #2821]
12503         * time/mktime.c (guess_time_tm): Fix overflow detection.
12504         * time/Makefile (tests): Add bug-mktime1.
12505         * time/bug-mktime1.c: New file.
12507         [BZ #3189, #3188]
12508         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12509         (mremap): Likewise.
12511 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12513         [BZ #1006]
12514         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12515         Ensure relocation doesn't clobber any bits outside of the
12516         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12517         R_SPARC_HI22 and R_SPARC_H44.
12519         [BZ #2775]
12520         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12521         (long) (MINSIZE + nb - old_size) is positive.
12523         * malloc/arena.c (grow_heap): When growing bail even if new_size
12524         is negative.
12526         [BZ #3155]
12527         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12528         stack below r1.
12530 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12532         * posix/regex_internal.c (re_string_reconstruct): Handle
12533         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12534         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12535         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12536         re_string_context_at.
12537         * posix/Makefile: Add rules to build and run bug-regex26 test.
12538         * posix/bug-regex26.c: New test.
12540         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12541         rather than col_sym_free.  Move seqp declaration earlier.
12543         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12545 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12547         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12548         decl before first goto out.
12550 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12552         * Makerules (shlib.lds): If have-hash-style, put .hash section
12553         at the end of the RO segment.
12555 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12557         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12558         style hash table format is used.
12560 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12562         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12563         randomization rather than before.
12564         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12566 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12568         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12570         * malloc/malloc.c (_int_malloc): Use full list insert and not
12571         shortcut which assumes the list is empty for large requests
12572         too.
12574         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12576 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12578         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12579         and offout arguments to the prototype.
12580         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12581         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12582         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12583         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12584         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12585         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12586         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12587         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12589 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12591         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12593         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12594         dlopen parameters.
12596 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12598         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12599         only if herrno is NETDB_INTERNAL.  Handle errors other than
12600         ERANGE outside of the loops, handle TRY_AGAIN.
12602         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12603         if other's ctype category was missing.
12604         * locale/programs/ld-collate.c (collate_read): Return if
12605         copy_locale's collate category is missing.
12607 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12609         [BZ #2684]
12610         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12611         arenas if allocation failed.
12612         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12614 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12616         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12617         waste bins[0..1].
12618         (malloc_state): Reduce bins size by 2.
12619         (_int_malloc): Fix test for large enough buffer for early termination.
12620         When no unsorted block matches perfectly and an exiting block has
12621         to be split, use full list insert and not shortcut which assumes
12622         the list is empty.
12624         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12625         failure.
12627 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12629         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12630         do anything.
12632         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12633         symbol require exact match (these are PLTs).
12634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12635         (_dl_ppc64_addr_sym_match): Likewise.
12637         [BZ #2683]
12638         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12639         If symbol has a value use it.
12640         * elf/tst-dladdr1.c: New file.
12641         * elf/Makefile: Add rules to build and run tst-addr1.
12643 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12645         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12646         keeps failing and heap growth or new heap creation isn't
12647         successful either.
12648         * malloc/tst-malloc.c (main): Add new tests.
12650 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12652         [BZ #2734]
12653         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12654         as in the x86-64 code to use bswap.
12656 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12658         [BZ #2680]
12659         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12660         __USE_UNIX98.
12661         * posix/bits/unistd.h: Likewise.
12663 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12665         [BZ #2751]
12666         * string/strchr.c: Add cast to avoid warning.
12668 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12670         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12671         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12672         limit is needed to avoid the exploding of the address space
12673         requirement for secondary heaps.
12674         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12675         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12677 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12679         [BZ #3018]
12680         * Makerules (depfiles): Handle extra-test-objs the same as
12681         extra-objs.
12682         (common-mostlyclean): Likewise.
12683         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12684         instead.
12685         * elf/Makefile (extra-objs): Likewise.
12686         * stdlib/Makefile (extra-objs): Likewise.
12688 2006-08-14  Eric Blake  <ebb9@byu.net>
12690         [BZ #3044]
12691         * misc/error.h: Assume C89 or better.
12692         * misc/error.c: Likewise.
12694 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12696         [BZ #3040]
12697         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12698         __ASSUME_ATFCTS is defined.
12700 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12702         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12703         to sort in each call.
12705         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12706         is empty simply return and use next service.
12707         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12709         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12710         tells us when not finding a charmap file is an error.
12711         * locale/programs/charmap.h: Adjust charmap_read prototype.
12712         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12713         cannot find a charmap.
12714         * locale/programs/localedef.c (main): Adjust charmap_read call.
12716 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12718         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12719         sysdeps/posix/pause.c implementation instead.
12721 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12723         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12724         to EPERM.
12726 2006-08-13  Andreas Schwab  <schwab@suse.de>
12728         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12729         Don't clobber caller's LRSAVE.
12730         (_dl_prof_resolve): Likewise.
12732 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12734         [BZ #1996]
12735         * libio/memstream.c (open_memstream): Allocate initial buffer with
12736         calloc.
12737         * libio/wmemstream.c (open_wmemstream): Likewise.
12738         * libio/strops.c: Pretty printing.
12739         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12740         (enlarge_userbuf): New function.
12741         (_IO_str_seekoff): Call it if seek position is larger than current
12742         buffer.
12743         * libio/wstrops.c: Likewise.
12744         * libio/vasprintf.c: Add comment as to why we do not have to use
12745         calloc instead of malloc to allocate initial buffer.
12746         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12747         * libio/bug-memstream1.c: New file.
12748         * libio/bug-wmemstream1.c: New file.
12750 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12752         * libio/wstrops.c: Remove dead macro definitions and comments.
12753         * libio/strops.c: Likewise.
12755         [BZ #2764]
12756         * login/utmpname.c (__utmpname): Remove unnecessary test.
12758 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12760         [BZ #2832]
12761         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12762         0s from integers.
12764 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12766         [BZ #2987]
12767         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12768         for CPU clocks.
12769         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12770         setting of CPU clocks.
12772 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12774         [BZ #2841]
12775         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12776         since C99 requires the result to promote to 'int' when uint_least8_t
12777         and uint_least16_t promote to 'int'.
12779 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12781         [BZ #3013]
12782         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12783         lenght of one output field, correct bitmask creation.
12784         * locale/programs/ld-time.c: Add alignment.
12786         [BZ #2997]
12787         * misc/error.c: Add space between program name and message if file
12788         name is missing.
12790 2006-08-03  Eric Blake  <ebb9@byu.net>
12792         [BZ #2998]
12793         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12795 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12797         * malloc/memusagestat.c: Silence warnings.
12799         * malloc/malloc.c: Dynamically size mmap treshold if the program
12800         frees mmaped blocks.
12801         Patch by Valerie Henson and Arjan van de Ven.
12803 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12805         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12806         __USE_GNU.
12808         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12809         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12810         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12811         Only provide var definitions in strtol_l (or for *ull*
12812         in strtoll_l).
12814         * stdio-common/bug16.c (tests): New array.
12815         (do_tests): Allow the first hexadecimal digit
12816         to be 1, 2, 4 or 8.  Do 3 additional tests.
12818         * sysdeps/s390/fpu/libm-test-ulps: Update.
12820         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12821         fchownat syscall if available.
12822         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12823         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12824         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12826 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12828         * nis/nis_xdr.c: Avoid some function calls.
12830 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12831             Ulrich Drepper  <drepper@redhat.com>
12833         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12834         short cut if only one name component is stripped away.
12836 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12838         * nis/nis_call.c: Minor cleanups throughout.
12839         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12840         (first_shoot): Add search_parent_first parameter.  Only if it is set
12841         search parent server first.
12842         If directory for table found through cold start cache is not the same
12843         as referenced in the cache, don't use it.
12844         (__nisfind_server): Take additional parameter.  Pass it on to
12845         first_shoot.
12846         (__prepare_niscall): Adjust __nisfind_server call.
12847         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12848         * nis/nis_table.c: Adjust __nisfind_server call.
12849         * nis/nis_lookup.c: Likewise.
12850         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12852 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12854         [BZ #2182]
12855         * math/s_cacosh.c: Return values from positive branch.
12856         * math/s_cacoshf.c: Likewise.
12857         * math/s_cacoshl.c: Likewise.
12859         [BZ #2883]
12860         * sysvipc/sys/msg.h: Change return value to ssize_t.
12861         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12862         * sysvipc/msgrcv.c: Likewise.
12863         * include/sys/msg.h: Likewise.
12865         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12866         test introduced in patch for bz #661.
12867         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12868         element for NEWGROUPS.
12870         [BZ #2908]
12871         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12872         'f', use '1' as leading digit not '\1'.
12873         * stdio-common/Makefile (tests): Add bug16.
12874         * stdio-common/bug16.c: New file.
12876         [BZ #2914]
12877         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12878         and don't try to open it.  The patch introducing the macro
12879         contained a bug and used the same file name as the new file
12880         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12881         this out completely.
12883         [BZ #2926]
12884         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12885         Patch by Jerry James <Jerry.James@usu.edu>.
12887         * rt/Makefile (tests): Add tst-clock2.
12888         * rt/tst-clock2.c: New file.
12890         [BZ #2978]
12891         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12892         function and its parameters and pass it to new thread.
12893         (__gai_notify): Add support for alternative waiting for completion.
12894         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12895         waiting for completion.
12896         * resolv/getaddrinfo_a.c: Likewise.
12897         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12898         waiting for completion is used.
12899         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12900         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12901         * resolv/gai_error.c: Likewise.
12902         * resolv/gai_sigqueue.c: Likewise.
12904 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12906         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12907         errno to EBADF and return MACH_PORT_NULL.
12909 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12911         [BZ #2980]
12912         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12914 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12916         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12917         walk them instead of the symbol table.
12919 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12921         [BZ #2098]
12922         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12923         status of NSS calls, not the number of returned entries.
12925         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12926         request_key, keyctl.
12928 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12930         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12932 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12934         * elf/tst-auditmod1.c: Fix typo in #error.
12936 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12938         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12940         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12942 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12944         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12945         that the directory is empty even on non-POSIX filesystems.
12947 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12949         * elf/dl-open.c (dl_open_worker): Add branch prediction.
12951         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12952         the backend NSS module.  If backend setgrent call failed, don't have
12953         internal_setgrent fail.  Just remember this until it is needed.
12954         * nis/nss_compat/compat-pwd.c: Likewise.
12955         * nis/nss_compat/compat-spwd.c: Likewise.
12957 2006-07-30  Roland McGrath  <roland@redhat.com>
12959         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12960         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12961         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12962         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12964         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12965         (nanosleep_not_cancel): New macro.
12966         (sigsuspend_not_cancel): new macro.
12967         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12968         (do_sigsuspend): Define as inline.
12969         (__sigsuspend): Always use do_sigsuspend.
12970         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12971         * include/signal.h: Declare __sigsuspend_nocancel.
12972         * sysdeps/posix/pause.c
12973         [! NO_CANCELLATION] (__pause_nocancel): New function.
12975         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12976         * include/time.h (__nanosleep_nocancel): Likewise.
12978 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
12980         * locale/programs/localedef.c (add_to_readlist): Rename local
12981         variables to avoid confusion.
12983         * locale/programs/charmap.c (charmap_read): Emit error message if
12984         charmap couldn't be found or read.
12986 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
12988         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12989         __ASSUME_FUTEX_LOCK_PI.
12990         * include/time.h: Declare __nanosleep_nocancel.
12991         * include/unistd.h: Declare __pause_nocancel.
12993         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12994         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
12995         get the __stack_chk_fail_local definition when it's needed.
12997 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
12999         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13000         * dlfcn/bug-atexit3.c: New file.
13001         * dlfcn/bug-atexit3-lib.cc: New file.
13003         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13004         used when the namespace is not the base namespace.
13006 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13008         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13009         (__new_exitfn): Bump it in every successful call.
13010         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13011         more exit handlers, call them right away.
13012         * stdlib/exit.h: Declare __new_exitfn_called.
13014 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13016         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13017         calling registered handler.
13019         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13020         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13021         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13022         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13023         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13024         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13025         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13026         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13028 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13030         * elf/dl-lookup.c (dl_new_hash): New functions.
13031         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13032         value here.  Compute new-style hash value.  Pass new hash value
13033         and reference to variable with the old value to do_lookup_x.
13034         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13035         old-style hash table.
13036         (_dl_debug_bindings): Pass new hash value and reference to variable
13037         with the old value to do_lookup_x.
13038         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13039         new-style hash value and change old-style hash value parameter to
13040         be a reference.  Reoganize functions to determine whether
13041         new-style hash table is available.  Only fall back on old-style
13042         table.  If old-style hash value is needed, compute it here.
13043         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13044         entry.
13045         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13046         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13047         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13048         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13049         * Makeconfig: If linker supports --hash-style option add it to all
13050         linker command lines to build DSOs.
13051         * config.make.in: Define have-hash-style.
13052         * configure.in: Test whether linker supports --hash-style option.
13054         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13055         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13057 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13059         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13060         auditing.
13062         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13063         RPATH of main map twice.
13065 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13067         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13068         look further, return original strings.
13069         (_nl_find_msg): Do not return found translation if the conversion
13070         failed.  Either signal the string is unusable or that something went
13071         wrong and the original should be used.
13073 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13075         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13077 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13079         [BZ #2766]
13080         * misc/insremque.c (insque): Handle prev == NULL.
13081         * misc/Makefile (tests): Add tst-insremque.
13082         * misc/tst-insremque.c: New test.
13084 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13086         [BZ #2792]
13087         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13088         conflict with DL_DST_REQUIRED.
13090 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13092         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13093         match what Solaris does.
13095 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13097         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13098         local_setegid instead of seteuid and setegid.
13099         * sysdeps/generic/local-setxid.h: New file.
13100         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13102         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13104         * string/Makefile (tests): Add bug-envz1.
13105         * string/bug-envz1.c: New file.
13107 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13109         * posix/regex_internal.c (re_string_skip_chars): If no character has
13110         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13111         to the byte which couldn't be converted.
13112         (re_string_reconstruct): Don't clear valid_raw_len before calling
13113         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13114         tip_context using re_string_context_at.
13115         * posix/Makefile: Add rules to build and run bug-regex25 test.
13116         * posix/bug-regex25.c: New test.
13118 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13120         [BZ #2703]
13121         * string/envz.c (envz_strip): Correct erroneously reversed src
13122         and dest parameters to memmove() invocation.
13124 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13126         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13127         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13128         to make sure the database has been already invalidated.
13129         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13130         after the cache has been invalidated.  Use pthread_mutex_lock rather
13131         than pthread_mutex_trylock if fd != -1.
13132         * nscd/connections.c (invalidate_cache): Add fd argument, write
13133         response to fd if not calling prune_cache, pass fd to prune_cache.
13134         (handle_request): Adjust invalidate_cache caller.
13135         (nscd_run): Pass -1 as fd to prune_cache.
13137 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13139         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13140         the correct place.
13142 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13144         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13145         * nscd/cache.c (prune_cache): Take prunelock before starting the
13146         work.  Just return in case it is already taken.
13147         * nscd/connections.c (dbs): Initialize .prunelock.
13149 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13151         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13152         copying.  No need to allocate new array for group members.  Just
13153         move the pointers and update the size.
13155         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13156         Avoid memory leak in case realloc fails.  Simplification for
13157         better code generation.
13159         Avoid deprecation warning because of libc_hidden_proto for
13160         inet6_option_alloc.
13161         * inet/inet6_option.c (option_alloc): Renamed from
13162         inet6_option_alloc.  Made static.
13163         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13164         (inet6_option_append): Call option_alloc.
13165         * include/netinet/in.h: Remove libc_hidden_proto for
13166         inet6_option_alloc.
13168         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13169         for cleanup when cb!=NULL [Coverity CID 233].
13171 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13173         [BZ #2693]
13174         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13175         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13176         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13177         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13178         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13179         and inet6_rth_getaddr.
13180         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13181         array.
13182         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13183         Mark inet6_option_* interfaces as deprecated.
13184         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13185         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13186         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13187         inet6_rth_segments, and inet6_rth_getaddr.
13188         * inet/inet6_opt.c: New file.
13189         * inet/inet6_rth.c: New file.
13191         * inet/netinet/icmp6.h: Pretty printing.
13193         [BZ #2683]
13194         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13196 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13198         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13199         doing it all here.  When server does not know the answer do not
13200         fail immediate, try parent first.
13202         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13203         overflow test.
13205 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13207         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13208         from __do_niscall.
13209         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13210         and exported.
13211         (__follow_path): New function.  Split out from nis_list.
13212         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13213         _xdr_nis_result.
13214         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13215         _xdr_nis_result.
13216         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13217         and __follow_path.
13218         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13219         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13220         from libnsl for version GLIBC_PRIVATE.
13221         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13222         Remove entry parameter from _nss_nisplus_parse_pwent and
13223         _nss_nisplus_parse_grent.
13224         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13225         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13226         again.  Rewrite getpwent handling to not use nis_first_entry and
13227         nis_next_entry.  Roll out own niscall handling.
13228         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13230         * sunrpc/xdr_rec.c: Fix typo in comment.
13232 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13234         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13235         handling.
13237         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13238         to allocate memory for my_pollfd.  Better initialization of
13239         cb_is_running.  Use TEMP_FAILURE_RETRY.
13241         * malloc/memusage.sh (memusageso): Add quotes.
13242         (memusagestat): Likewise.
13243         * debug/xtrace.sh (pcprofileso): Likewise.
13244         (pcprofiledump): Likewise.
13245         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13246         replacement.
13247         * malloc/Makefile ($(objpfx)memusage): Likewise.
13249         * nis/nis_callback.c (__nis_create_callback): Calls to
13250         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13251         asprintf call fails.
13253         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13254         no uninitialized memory is passed to sendto.
13256 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13258         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13259         of snprintf+strdup.  Handle OOM.
13260         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13261         cb->serv together.  Remove now obsolete free calls.
13262         (__nis_destroy_callback): Remove now obsolete free call.
13264 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13266         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13267         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13268         and ULA respectively). Set precedence for IPv4 address to 10 as
13269         defined in RFC3484 for preferring IPv6.
13270         * posix/gai.conf: Update to match the new default tables.
13272 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13274         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13275         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13276         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13277         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13279         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13280         Removed.
13281         (init_nss_interface): Remove initialization of these variables.
13283 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13285         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13286         nis_free_directory forward to avoid duplication.
13288 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13290         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13291         rec_dirsearch returning NULL.
13292         (first_shoot): Handle __nis_finddirectory returning NULL.
13293         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13295         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13296         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13298 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13300         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13301         pid changed.
13303 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13305         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13307         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13308         * nscd/nscd_getgr_r.c: Likewise.
13310         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13312         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13313         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13315         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13317         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13319         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13321         * include/rpc/auth.h: Mark xdr_des_block_internal and
13322         xdr_opaque_auth_internal as hidden.
13324         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13325         hidden.
13327         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13329         * misc/getusershell.c (okshells): Don't use static initializers,
13330         do it dynamically.
13332         * stdlib/fmtmsg.c (keywords): Change type of len element to
13333         uint32_t to not waste space on 64bit machines.
13335         * locale/setlocale.c: Change _nl_category_names into a string.
13336         Add new _nl_category_name_idxs.  Change all users.
13337         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13338         Declare _nl_category_name_idxs.
13339         * locale/findlocale.c: Adjust for _nl_category_names change.
13340         * locale/loadlocale.c: Likewise.
13341         * locale/newlocale.c: Likewise.
13342         * intl/dcigettext.c: Likewise.
13344         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13345         (add_alias2): ...here.  New function.
13346         (__gconv_read_conf): Simplify builtin alias handling.
13347         (builtin_aliases): Convert to string to avoid relocations.
13348         * iconv/gconv_builtin.h: Add comment about correct formatting.
13350 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13352         * resolv/res_debug.c (loc_ntoa): Make error const.
13354 2006-05-14  Andreas Schwab  <schwab@suse.de>
13356         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13358 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13360         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13361         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13362         sizeof (cpu_set_t).
13364 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13366         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13368         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13370         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13371         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13373         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13374         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13376         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13377         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13378         xdr_cback_data.
13380         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13381         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13382         xdr_ypupdate_args.
13384         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13385         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13387         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13388         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13390         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13391         * include/rpcsvc/nis_callback.h: New file.
13393         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13394         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13396         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13397         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13399         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13400         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13402         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13403         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13405         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13406         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13407         xdr_ypdelete_args.
13409         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13410         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13412         * nis/nis_error.c: Remove table of strings.  Use position
13413         independent mechanism.
13414         * nis/nis_error.h: New file.
13416 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13418         * locale/programs/ld-time.c (time_finish): If wide era name or
13419         format aren't provided, set both wname and wformat to L"".
13421 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13423         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13424         results if the call was succesful.
13426         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13428         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13429         as hidden.
13431 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13433         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13435 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13437         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13438         caller makes sure this is not the case.
13439         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13441 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13443         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13444         calls.
13446         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13447         [Coverity CID 229, 230]
13449         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13450         DGETTEXT calls.
13451         (hol_help): Likewise.  [Coverity CID 226, 227]
13453         * string/argz-replace.c (__argz_replace): Unconditionally call
13454         free on SRC.  [Coverity CID 225]
13456         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13457         the return value of __nis_default_owner and __nis_default_group,
13458         it has been especially allocated.  [Coverity CID 224]
13460         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13461         searchgroup and searchowner.  Significantly simplified.
13462         (__nis_default_owner): Remove duplication.  Do not locally copy the
13463         string before duplicating it.
13464         (__nis_default_group): Likewise.
13466         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13467         we must clear the variable before calling __nisfind_server.
13469         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13470         nis_getnames.  [Coverity CID 223]
13472         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13473         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13475         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13476         allocate memory for the input to add_bytes.  [Coverity CID 221]
13478         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13479         was allocated here.  [Coverity CID 219, 220]
13481         * posix/getconf.c (print_all): Free confstr data after printing.
13482         [Coverity CID 218]
13484         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13485         list allocation fails.  [Coverity CID 215]
13487         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13488         [Coverity CID 213]
13490         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13491         string is NULL.  [Coverity CID 212]
13492         * argp/Makefile: Add rules to build and run bug-argp1.
13493         * argp/bug-argp1.c: New file.
13495         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13496         end of string.
13497         * stdlib/canonicalize.c (__realpath): Likewise.
13499         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13500         pointer.  [Coverity CID 206]
13502         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13503         in statically linked code.
13504         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13505         statically built code, be prepared to have no link map.
13506         [Coverity CID 205]
13508         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13509         dgettext calls. [Coverity CID 204]
13511         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13512         the one user.
13513         (uparam_names): Reduce size.  Avoid relative relocations.
13514         Moved to read-only segment.
13515         (fill_in_uparams): Update for new layout.
13517         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13518         assumed to always be != NULL. [Coverity CID 202]
13520         * argp/argp-help.c (hol_entry_help): Remove some dead code
13521         [Coverity CID 200].
13523         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13524         away a few more unconditional yperr2nss calls.
13525         (_nss_nis_getservbyname_r): Likewise.
13527 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13529         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13530         architectures.
13532         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13533         that unused memory passed to sendto is nevertheless initialized.
13535         [BZ #2499]
13536         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13537         possibly unaligned memory accesses.
13539         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13540         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13541         and __putlong respectively.  Correct buffer overflow check for
13542         NS_NOTIFY_OP.
13544         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13546         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13547         (send_dg): Rewrite error handling to be more compact and avoid
13548         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13550         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13552         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13553         instead of ns_get16.
13554         (res_queriesmatch): Likewise.  Minor optimization.
13556         [BZ #2499]
13557         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13558         __libc_res_nsend might reallocate the buffer for the answer.  In
13559         this case we have to reload the HP pointer.
13561 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13563         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13564         some branch prediction hints.
13566         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13567         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13568         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13569         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13570         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13571         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13572         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13573         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13575 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13577         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13578         by a GOT relocation to make Scrt1.o position independent.
13579         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13581         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13582         six system call parameters.
13583         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13585 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13587         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13588         malloc&bzero.
13590         * sunrpc/svc_udp.c (BZERO): Remove definition.
13591         (CALLOC): Define.
13592         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13594         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13595         (des_SPtrans): Use uint32_t type.
13596         (des_skb): Likewise.
13598         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13600 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13602         [BZ #2509]
13603         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13604         on 32-bit arches.
13606 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13608         * locale/programs/ld-address.c (address_finish): Fix one more
13609         place where the iso639 array might be accessed beyond the limits.
13611 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13613         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13614         filling it for the first time.
13616         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13617         Adjust all callers.
13618         Free res object content before returning.
13620         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13622         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13623         client->cl_auth.
13625         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13626         cleanup for initial thread, just the free call on TVP.
13628         * nscd/gai.c (__getline): Define.
13631 See ChangeLog.16 for earlier changes.