Define bit_SSE2 and index_SSE2.
[glibc.git] / ChangeLog
blobce4d4e8e3b775c75cda390f17726119e2c7b4a96
1 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
3         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
4         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
5         check processor feature.
6         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
9         (index_SSE2): Likewise.
11 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
13         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
14         if __ASSEMBLER__ is defined.
15         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
16         (bit_SSE4_2): Likewise.
17         (index_SSSE3): Likewise.
18         (index_SSE4_2): Likewise.
19         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
20         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
21         check processor feature.
22         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
23         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
25         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
26         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
27         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
28         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
30 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
32         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
34 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
36         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
38 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
40         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
41         O_DSYNC to match 2.6.33+ kernels.
42         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
43         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
46         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
47         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
49 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
51         [BZ #11000]
52         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
53         *herrnop before returning.
54         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
55         Likewise.
56         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
57         TRYAGAIN errors separately.
58         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
59         *name4_r after functions.
61 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
63         [BZ #11046]
64         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
65         version check.
67 2009-11-05  Bruno Haible  <bruno@clisp.org>
69         [BZ #11056]
70         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
71         argv argument as non-NULL.
72         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
74 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
76         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
77         recvmmsg.
78         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
79         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
81 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
83         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
84         registers.
85         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
86         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
87         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
89 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
91         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
92         SCHED_RESET_ON_FORK.
94 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
96         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
97         only used on truly ancient kernel if configuration requires a more
98         recent kernel.
100 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
102         [BZ #3662]
103         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
104         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
106         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
107         pass it on to __ptsname_internal.
108         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
109         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
110         All the code from __ptsname_r but take additional parameter.  Use that
111         instead of pointer to local stat64 variable.
112         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
113         variable.
114         * include/stdlib.h: Declare __ptsname_internal.
116         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
117         before the exec.
118         * sysdeps/unix/sysv/linux/grantpt.c: New file.
119         * login/programs/pt_chown.c (main): Don't print message on errors
120         when doing real work.
122         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
123         once.
125         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
126         irel relocations split out from...
127         (__libc_csu_init): ...here.
128         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
130 2009-11-23  Andreas Schwab  <schwab@redhat.com>
132         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
133         for timestamps also if __USE_XOPEN2K8.
134         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
135         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
136         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
137         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
139 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
141         * nscd/connections.c (restart): Try harder to re-exec.
143         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
145         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
146         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
147         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
148         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
149         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
150         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
152         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
153         Define.
154         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
156 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
158         [BZ #10162]
159         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
160         than software pipeline.  Properly recover from shorter read.
162 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
164         [BZ #10958]
165         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
166         initialized before using it.
167         (_IO_putwc_unlocked): Likewise.
169         [BZ #10918]
170         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
171         in cast to not throw away const-ness of parameters.
172         (__CPU_EQUAL_S): Likewise.
173         (__CPU_OP_S): Likewise.
175         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
176         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
177         this gratuitous change and we have to keep compatibility.
178         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
179         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
180         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
181         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
182         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
183         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
185 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
187         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
188         of parameters of sync_file_range.
189         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
190         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
191         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
192         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
193         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
194         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
196 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
198         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
199         Implement using sync_file_range2 syscall if __NR_sync_file_range2
200         is defined.
201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
202         file.
204 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
206         * posix/bug-regex30.c: New file.
207         * posix/Makefile: Add rules to build and run bug-regex30.
208         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
209         character lead bytes when there is a range in a COMPLEX_BRACKET.
210         Reported by Oleg Bylatov.
212 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
214         [BZ #10969]
215         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
216         * locale/tst-duplocale.c: New file.
217         * locale/Makefile (tests): Add tst-duplocale.
219         [BZ #10968]
220         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
221         Patch by Bruno Haible <bruno@clisp.org>.
222         * locale/tst-locname.c: New file.
223         * locale/Makefile (tests): Add tst-locname.
225         [BZ #10972]
226         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
227         constants from recent kernels.
228         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
229         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
230         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
231         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
232         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
233         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
235 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
237         [BZ #10162]
238         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
239         software pipeline.
241 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
243         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
244         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
245         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
247 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
249         * posix/bug-regex29.c: Include stdio.h.
251 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
253         [BZ #10939]
254         * Versions.def: Define GLIBC_2.12 for libc.
255         * manual/errno.texi: Add ERFKILL entry.
256         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
257         for 2.12.
258         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
259         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
261         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
262         F_GETOWN_EX definitions according to corrected kernel definitions.
263         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
264         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
265         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
266         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
267         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
268         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
270 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
272         * version.h: Bump for 2.12 development.
274 2009-11-10  Andreas Schwab  <schwab@redhat.com>
276         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
277         out of buffer space.
278         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
279         map_v4v6_hostent running out of space.
281 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
283         * string/bits/string3.h (memset): If the second parameter is constant
284         and zero there is likely no transposition.
285         Patch by Caolan McNamara <caolanm@redhat.com.
287 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
289         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
290         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
292 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
294         * malloc/memusagestat.c (main): Fix spelling in an error message.
296 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
298         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
299         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
301 2009-11-03  Andreas Schwab  <schwab@redhat.com>
303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
304         readahead.
306 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
308         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
309         relocate opd entry when resolving prelink conflicts.
311 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
313         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
314         when -D_FILE_OFFSET_BITS=64.
316         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
317         of last two arguments when -D_FILE_OFFSET_BITS=64.
318         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
319         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
320         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
321         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
322         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
323         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
325 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
327         [BZ #4457]
328         * sysdeps/generic/libgcc_s.h: New file.
329         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
331 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
333         * malloc/hooks.c (free_check): Restore locking and call _int_free
334         appropriately.
336 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
338         * version.h (VERSION): Bump for 2.11 release.
339         * include/features.h (__GLIBC_MINOR__): Bump to 11.
341         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
343         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
345         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
346         to avoid warning.
347         * stdlib/tst-strtoll.c (tests): Likewise.
349         [BZ #9986]
350         * time/strftime_l.c (__strftime_internal): Allow %OC.
352         * misc/mkostemps.c: New file.
353         * misc/mkostemps64.c: New file.
355 2009-10-30  Andreas Schwab  <schwab@redhat.com>
357         * locale/programs/locale-spec.c: Include <error.h> and
358         <libintl.h>.
360         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
362 2009-10-28  Roland McGrath  <roland@redhat.com>
364         * Makefile (dist-prepare): New target.
365         (tag-for-dist): Target removed.
366         (glibc-%.tar): Pattern rule removed.
367         (%.tar): New pattern rule, does simple use of git archive.
368         (dist-version): Remove variable definition.
369         (dist): Just depend on that.  Add .tar.xz dependency.
370         If dist-version variable not set on command line, depend on
371         dist-prepare, re-invoke with dist-version set via git describe.
373         * Makerules (%.xz): New pattern rule.
375 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
377         * elf/ifuncdep2.c: Include ifunc-sel.h.
378         (global): Delete.
379         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
380         * elf/ifuncmain1.c (global): Delete.
381         * elf/ifuncmain1vis.c: Likewise.
382         * elf/ifuncmain2.c: Likewise.
383         * elf/ifuncmain5.c: Likewise.
384         * elf/ifuncmod3.c: Likewise.
385         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
386         (foo_ifunc): Use ifunc_one.
387         * elf/ifuncmain7.c: Likewise.
388         * elf/ifuncmod1.c: Include ifunc-sel.h.
389         (global): Define protected var.
390         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
391         * elf/ifuncmod5.c: Likewise.
392         * sysdeps/generic/elf/ifunc-sel.h: New file.
393         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
395 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
397         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
398         (R_PPC_REL16*): Correct comments.
399         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
400         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
401          R_PPC64_REL16_HA): Define.
402         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
403         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
404         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
405         Delete unused "reloc" param.
406         (__process_machine_rela): Handle R_PPC_IRELATIVE.
407         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
408         Delete "reloc" param.
409         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
410         R_PPC_IRELATIVE.
411         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
412         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
413         relocations.
415 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
417         [BZ #10315]
418         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
419         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
420         UDP_ENCAP_L2TPINUDP.
422         [BZ #10349]
423         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
424         parameter, specifying length of prefix.
425         * stdio-common/tempname.c: Likewise.
426         * include/stdio.h: Adjust prototypes.
427         * libio/oldtmpfile.c: Adjust caller.
428         * misc/mkdtemp.c: Likewise.
429         * misc/mkostemp.c: Likewise.
430         * misc/mkostemp64.c: Likewise.
431         * misc/mkstemp.c:  Likewise.
432         * misc/mkstemp64.c: Likewise.
433         * misc/mktemp.c: Likewise.
434         * stdio-common/tempnam.c: Likewise.
435         * stdio-common/tmpfile.c: Likewise.
436         * stdio-common/tmpnam.c: Likewise.
437         * stdio-common/tmpnam_r.c: Likewise.
438         * misc/mkstemps.c: New file.
439         * misc/mkstemps64.c: New file.
440         * stdlib/stdlib.h: Add prototypes.
441         * misc/Makefile (routines): Add mkstemps and mkstemps64.
442         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
444 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
446         * locale/iso-639.def: Add sml entry.
448         [BZ #10391]
449         * resolv/res_send.c (send_dg): Initialize resplen.
451         [BZ #10446]
452         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
453         definition to the kernel's.
454         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
456 2009-08-18  Anders Johansson  <ajohansson@novell.com>
458         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
459         offsets and record sizes in assert()s and response sending.
460         * nscd/grpcache.c: Likewise.
461         * nscd/hstcache.c: Likewise.
462         * nscd/initgrcache.c: Likewise.
463         * nscd/pwdcache.c: Likewise.
465 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
467         [BZ #10540]
468         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
469         /etc/hosts does not exist set errnop and herrnop appropriately.
470         Patch by Steve Langasek <vorlon@debian.org>.
472         [BZ #10553]
473         * malloc/malloc.c (malloc_info): Fix typos in format strings.
474         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
476         [BZ #10564]
477         * login/utmp_file.c (TIMEOUT): Increase to 10.
479         [BZ #10609]
480         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
481         for file names in case the syscall is not available.
482         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
483         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
484         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
485         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
486         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
487         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
488         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
489         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
490         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
491         * sysdeps/unix/sysv/linux/openat.c: Likewise.
492         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
493         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
494         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
495         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
496         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
497         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
498         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
500         [BZ #10643]
501         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
502         creation filed, remove the request from the 'requests' list and signal
503         the caller that the request is finished.
505         [BZ #10692]
506         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
507         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
509         [BZ #10713]
510         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
511         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
513         [BZ #10780]
514         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
515         overflows the int return type.
517         [BZ #10717]
518         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
519         have to compute maxsize_total, we have to update the variables, and
520         the also_total handling must happen after the repair.
522         [BZ #10742]
523         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
524         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
526 2009-10-27  Andreas Schwab  <schwab@redhat.com>
528         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
529         errno is always set when returning unsuccessfully.
531 2009-10-29  Andreas Schwab  <schwab@redhat.com>
533         * malloc/memusage.c (update_data): Fix index wraparound handling
534         so that buffer_cnt is actually reset.
536 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
538         [BZ #10784]
539         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
540         of the directory we look at into the static buffer if there is one
541         at the start of the loop.
543         [BZ #10789]
544         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
545         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
547         [BZ #10840]
548         * sysdeps/unix/sysv/linux/kernel-features.h: Define
549         __ASSUME_F_GETOWN_EX.
550         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
551         if possible.
552         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
554         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
555         and f_owner_ex.
556         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
557         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
558         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
559         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
560         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
561         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
563         [BZ #10847]
564         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
565         getutmpx symbol.
567         [BZ #10823]
568         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
569         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
571 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
573         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
575 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
577         [BZ #10817]
578         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
579         Reported by Ray Chason.
581 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
583         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
584         strend-sse4.
585         * sysdeps/x86_64/multiarch/strchr.S: New file.
586         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
587         * sysdeps/x86_64/multiarch/strrchr.S: New file.
589 2009-10-21  Andreas Schwab  <schwab@redhat.com>
591         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
593 2009-10-19  Andreas Schwab  <schwab@redhat.com>
595         * include/math.h: Add hidden protos for __exp/__expf/__expl.
596         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
597         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
598         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
599         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
600         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
601         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
602         __ieee751_expl to handle overflow.
604 2009-10-14  David S. Miller  <davem@davemloft.net>
606         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
607         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
609 2009-10-13  Andreas Schwab  <schwab@redhat.com>
611         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
612         !USE_MULTIARCH.
614 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
616         [BZ #10730]
617         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
618         Patch in part by Steve Ward <planet36@gmail.com>.
620         [BZ #10731]
621         * stdlib/rand_r.c: Fix typo.
623         * po/cs.po: Update from translation team.
625 2009-10-06  Andreas Schwab  <schwab@redhat.com>
627         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
628         returning if RTLD_NOLOAD.
630 2009-10-06  Roland McGrath  <roland@redhat.com>
632         * sysdeps/x86_64/multiarch/strstr-c.c
633         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
635         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
636         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
638         * sysdeps/x86_64/multiarch/init-arch.h
639         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
640         (HAS_CPU_FEATURE): New macro.
641         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
642         * sysdeps/x86_64/multiarch/init-arch.c
643         (__get_cpu_features): #undef it before definition.
645 2009-10-05  Andreas Schwab  <schwab@redhat.com>
647         * locale/C-time.c: Revert week-1stday back to 19971130 and set
648         first_weekday to 1 and first_workday to 2.
650 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
652         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
653         F_GETOWN_EX.
654         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
655         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
656         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
657         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
658         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
659         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
661 2009-09-28  Andreas Schwab  <schwab@redhat.com>
663         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
664         * stdio-common/vfprintf.c: Likewise.
666 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
668         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
669         (mkdirat): Call __directory_name_split_at instead of
670         __directory_name_split.
672 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
674         * locale/programs/locale-spec.c (locale_special): If nothing matches
675         fail with an appropriate message.
677 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
679         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
680         and XX.
682 2009-09-25  Andreas Schwab  <schwab@redhat.com>
684         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
685         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
687 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
689         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
691 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
693         * iconvdata/iso646.c (gconv_init): Correctly initialize the
694         character size elements in step data.
696 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
698         * po/hu.po: Update from translation team.
699         * po/vi.po: Likewise.
701 2009-09-19  Roland McGrath  <roland@redhat.com>
703         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
705 2009-09-15  Roland McGrath  <roland@redhat.com>
707         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
708         * nptl/sysdeps/pthread/configure: Regenerated.
709         * nptl/sysdeps/x86_64/configure: Regenerated.
710         * sysdeps/unix/sysv/linux/configure: Regenerated.
711         * sysdeps/x86_64/elf/configure: Regenerated.
713         * Makefile (autoconf-it): Set execute bit only on top-level configure.
715         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
716         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
717         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
718         * configure: Regenerated.
720 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
722         * posix/getconf.c (main): Handle -- on command line.
724 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
726         * configure.in: Support binutils 2.100 and 3.0.
728 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
730         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
731         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
732         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
733         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
735 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
737         * locale/programs/ld-collate.c (struct locale_collate_t): Add
738         unnamed_section_defined field.
739         (collate_read): Test and set unnamed_section_defined.
741         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
742         _POSIX2_LINE_MAX.
744 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
746         * configure.in: Support binutils 2.20.
748 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
750         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
751         __strstr_ia32): Add attribute_hidden.
753 2009-09-01  Andreas Schwab  <schwab@redhat.com>
755         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
756         parsing of group entry.
758 2009-09-02  Andreas Schwab  <schwab@redhat.com>
760         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
761         external buffer.  Always discard readahead in internal buffer.
762         * libio/Makefile (tests): Add bug-wsetpos.
763         * libio/bug-wsetpos.c: New file.
765 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
767         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
768         Add attribute_hidden.
769         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
770         __strcasestr_sse2): Likewise.
771         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
772         (__fma_fma): Make static.
773         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
774         (__fmaf_fma): Make static.
776 2009-08-31  Andreas Schwab  <schwab@redhat.com>
778         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
779         reformulate in-buffer optimisation check to match code in
780         _IO_new_file_seekoff.
782 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
784         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
785         to srwi in 32-bit memcpy for power6.
787 2009-09-01  Andreas Schwab  <schwab@redhat.com>
789         * include/stdio.h: Declare hidden proto for fflush.
790         * libio/iofflush.c: Add hidden weak alias for fflush.
792 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
794         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
795         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
797 2009-08-31  Andreas Schwab  <schwab@redhat.com>
799         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
801 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
803         [BZ #10560]
804         * malloc/malloc.c: Add local assert definition to avoid problems with
805         memory allocation in the real one.
807 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
809         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
810         Removed.
811         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
812         turn off SSSE3 on Atom.
814 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
816         * stdlib/tst-strtol.c (tests): More tests.
817         * stdlib/tst-strtoll.c (tests): Likewise.
819 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
821         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
823         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
825 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
827         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
828         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
830         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
832         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
834         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
836 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
838         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
840 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
842         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
843         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
845         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
847         * sysdeps/x86_64/fpu/s_signbit.S: New file.
848         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
850         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
851         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
853         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
854         leftover YMM_SIZE definition.
856 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
858         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
859         union.
860         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
861         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
862         Redefine.
863         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
865         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
866         and SET_FLOAT_WORD definitions.
868 2009-08-24  Roland McGrath  <roland@redhat.com>
870         * sysdeps/unix/syscall-template.S: New file.
871         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
872         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
873         (compile-syscall): Pass mkdep and -g options as normal.
874         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
875         (common-generated): Don't add them here.
877 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
879         * math/s_fdim.c: In case of overflows set errno.
880         * math/s_fdimf.c: Likewise.
881         * math/s_fdiml.c: Likewise.
883         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
884         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
885         are using the inline optimizations.
887         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
888         (__signbitf): Likewise.
890 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
892         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
893         terminated.
894         * posix/Makefile (tests): Add bug-regex29.
895         * posix/bug-regex29.c: New file.
897         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
898         older POSIX versions are selected.
900         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
901         as well.
902         * stdio-common/printf_fphex.c: Likewise.
903         * stdio-common/tstdiomisc.c: Add more tests.
905         * locale/locale.h: Include xlocale.h and the thread-local locale
906         declarations for XPG7, not XPG6.
908 2009-08-21  Andreas Schwab  <schwab@redhat.com>
910         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
911         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
914         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
915         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
917 2009-08-20  Roland McGrath  <roland@redhat.com>
919         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
920         Use l_addr instead of l_map_start (dli_fbase).
921         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
922         address when there is no proximate symbol.
923         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
924         Likewise.
926 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
928         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
930 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
932         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
933         Also handle SIGINT.  In that case only do the cleanup and then
934         re-raise the signal.
935         (main): Install handler for SIGINT.
937 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
939         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
940         clobber list.
942 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
944         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
945         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
946         tst-auditmod7b.c.
947         (tests): Add tst-audit6 tst-audit7.
948         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
949         tst-auditmod7a tst-auditmod7b.
950         ($(objpfx)tst-audit6): New.
951         ($(objpfx)tst-audit6.out): Likewise.
952         ($(objpfx)tst-audit7): Likewise.
953         ($(objpfx)tst-audit7.out): Likewise.
954         (tst-audit6-ENV): Likewise.
955         (tst-audit7-ENV): Likewise.
956         (CFLAGS-tst-auditmod6b.c): Likewise.
957         (CFLAGS-tst-auditmod6c.c): Likewise.
958         (CFLAGS-tst-auditmod7b.c): Likewise.
959         * elf/tst-audit6.c: New file.
960         * elf/tst-audit7.c: New file.
961         * elf/tst-auditmod6a.c: New file.
962         * elf/tst-auditmod6b.c: New file.
963         * elf/tst-auditmod6c.c: New file.
964         * elf/tst-auditmod7a.c: New file.
965         * elf/tst-auditmod7b.c: New file.
966         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
967         saving and restoring SSE/AVX registers to ...
968         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
970 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
972         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
973         only if SHARED is defined.
974         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
976 2009-08-03  Jim Meyering  <meyering@redhat.com>
978         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
980 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
982         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
983         section as the other functions for this architecture.
984         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
986 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
988         * sysdeps/x86_64/strcmp.S: Add support to compile with
989         USE_SSSE3.  In this case palignr is used.
990         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
991         available but SSSE3 is, pick __str{,n}cmp_ssse3.
992         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
993         Add strcmp-ssse3 and strncmp-ssse3.
994         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
995         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
997         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
998         warning through fake initialization.
1000 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1002         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1004 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1006         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1007         unique symbols.
1009 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1011         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1012         EBX from EAX = 1.  Handle EAX = 11.
1014 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1016         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1017         inside ''.
1019 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1021         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1022         hidden IFUNC functions.
1023         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1025         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1027         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1028         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1029         strcasestr-c.
1030         (CFLAGS-strcspn-c.c): Define.
1031         (CFLAGS-strpbrk-c.c): Define.
1032         (CFLAGS-strspn-c.c): Define.
1033         (CFLAGS-strstr.c): Define.
1034         (CFLAGS-strcasestr.c): Define.
1035         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1036         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1037         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1038         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1039         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1040         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1041         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1042         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1043         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1044         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1045         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1046         -16L instead of 0xfffffffffffffff0L.
1047         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1049 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1051         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1053 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1055         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1056         another rewrite.  Much smaller and faster.
1057         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1059         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1060         ss_flags from the correct location.
1062 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1064         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1065         * sysdeps/i386/i686/cacheinfo.c: New file.
1066         * sysdeps/i386/i686/multiarch/Makefile: New file.
1067         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1068         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1069         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1070         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1071         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1072         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1073         (__cpuid_count): New. Provide the default.
1074         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1075         (__x86_64_preferred_memory_instruction): Define only if
1076         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1077         (intel_check_word): Use __cpuid.
1078         (handle_intel): Likewise.
1079         (handle_amd): Likewise.
1080         (__cache_sysconf): Likewise.
1081         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1082         (__cache_sysconf): Likewise.
1083         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1084         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1085         (get_common_indeces): Use __cpuid.
1086         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1087         if ENABLE_SSSE3_ON_ATOM is not defined.
1088         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1089         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1090         popcnt instead of popcntq.
1092 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1094         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1096 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1098         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1099         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1100         which always causes a compile error.
1102         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1104         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1105         comes from...
1106         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1107         which always causes a compile error.
1109         * debug/Makefile (tests): Add tst-longjmp_chk2.
1110         * debug/tst-longjmp_chk2.c: New file.
1112         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1113         Remove incorrect use of BP_SYM.
1114         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1115         here now since it is more complex than just a simple check.
1117         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1118         we make no more progress.
1120 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1122         * math/s_fma.c: Don't define alias if __fma is a macro.
1123         * math/s_fmaf.c: Likewise.
1124         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1125         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1126         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1128         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1129         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1130         New macro HAS_FMA.
1131         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1132         function.
1133         * include/libc-symbols.h (libm_ifunc): Define.
1134         * sysdeps/x86_64/multiarch/Versions: New file.
1136         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1138 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1140         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1142 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1144         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1145         call that registers used in calling conventions need to be preserved.
1146         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1147         to preserve register content if necessary.
1148         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1149         (_dl_x86_64_restore_sse): New function.
1150         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1151         is allowed to modify xmm/ymm registers.
1153         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1154         application's perspective.
1155         * stdio-common/scanf17.c: Likewise.
1157 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1159         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1160         size to memsz.
1161         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1162         here.
1163         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1164         two steps to catch bugs.
1166 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1168         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1169         determines which files are used in runtime lookups and only checks
1170         those for SSE use.
1171         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1172         testing.
1173         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1174         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1175         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1176         take a while.
1178         * elf/dl-open.c: Move _dl_scope_free to...
1179         * elf/dl-scope.c: ...here.  New file.
1180         * elf/Makefile (dl-routines): Add scope.
1182         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1183         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1184         RES_USE_DNSSEC.
1185         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1186         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1187         all the places we handled RES_USE_EDNS0 only before.
1188         Patch by Adam Tkac <atkac@redhat.com>.
1190 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1192         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1193         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1194         Update size when reallocating.
1196 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1198         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1199         functions used in ld.so modify xmm/ymm registers.
1200         * sysdeps/x86_64/Makefile:  Hook new test up.
1201         * sysdeps/x86_64/rtld-memchr.c: New file.
1202         * sysdeps/x86_64/rtld-memcmp.c: New file.
1203         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1204         * sysdeps/x86_64/rtld-strchr.S: New file.
1205         * sysdeps/x86_64/rtld-strlen.S: New file.
1206         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1207         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1209 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1211         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1212         strncmp-c.
1213         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1214         (exit): Likewise.
1215         (Byte1): Likewise.
1216         (Byte2): Likewise.
1217         (Byte3): Likewise.
1218         (Byte4): Likewise.
1219         (Byte5): Likewise.
1220         (Byte6): Likewise.
1221         (next_8_bytes): Likewise.
1222         (Byte0): Remove commented out codes.
1223         (unaligned_table): Align jump table at 8 bytes.
1224         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1225         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1226         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1227         * sysdeps/x86_64/strncmp.S: New file.
1229 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1231         [BZ #10422]
1232         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1233         kernels, dropped when eventfd2 support was added.
1234         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1235         kernels, dropped when signalfd4 support was added.
1236         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1237         added, name them.
1239         [BZ #10452]
1240         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1241         replies up.
1243         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1245 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1247         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1248         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1250         [BZ #10448]
1251         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1252         callback we must touch the status to avoid using stale value.
1254         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1255         compiled in.
1257 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1259         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1260         /lib/modules/* headers anymore.  We have sane headers in the standard
1261         place now.
1263 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1265         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1266         "etf3enh" and "highgprs" added.
1267         (_dl_s390_platforms): "z10" added.
1268         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1269         Increased for the new entries.
1270         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1271         HWCAP_S390_HIGH_GPRS added.
1273         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1274         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1275         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1276         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1277         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1279 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1281         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1282         avoid additional cpuid instructions.  Most of the information is
1283         stored somewhere.
1285         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1286         cache descriptors.
1287         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1289         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1290         SSSE3 bit for Atoms.
1291         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1292         here anymore.
1294         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1295         structure before copying it to avoid warning.
1296         * posix/tst-rfc3484-2.c (do_test): Likewise.
1297         * posix/tst-rfc3484-3.c (do_test): Likewise.
1299         [BZ #10416]
1300         * include/unistd.h: Make header file suitable for C++ test cases.
1301         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1303         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1304         stack alignment in the exit code.
1306         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1307         potentially be zero.
1309         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1310         unique symbol definition.
1311         Patch by Jakub Jelinek.
1312         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1313         make sure the object with the definition cannot be unloaded.  Adjust
1314         a few types.
1315         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1316         the unique symbol hash table should not be const.
1318 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1320         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1321         unnecesary variables.  Comment fixes.
1323 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1325         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1326         Use NONASCII_CASE information provided by the locale to determine
1327         whether optimized string load function can be used.  Minor cleanups.
1329 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1331         * string/strcasestr.c (STRCASESTR): New macro.
1332         (__strcasestr): Renamed to ..
1333         (STRCASESTR): ...this.
1334         * string/strstr.c (STRSTR): New macro.
1335         (strstr): Renamed to ..
1336         (STRSTR): ...this.
1337         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1338         strstr-c strcasestr-c
1339         (CFLAGS-strstr.c): New.
1340         (CFLAGS-strcasestr.c): Likewise.
1341         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1342         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1343         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1344         * sysdeps/x86_64/multiarch/strstr.c: New file.
1346 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1348         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1349         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1350         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1351         _NL_CTYPE_NONASCII_CASE.
1352         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1353         field.
1354         (ctype_finish): Check whether there are any 8-bit characters outside
1355         the range ASCII has or whether the mapping isn't the same as for
1356         ASCII (±0x20).  Set nonascii_case appropriately.
1357         (ctype_output): Add output handler for nonascii_case.
1359 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1361         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1362         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1364 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1366         [BZ #10360]
1367         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1368         0xffff in the EDNS0 record.
1370 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1372         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1373         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1374         is written before the list head update.
1375         Patch by Andreas Schwab <aschwab@redhat.com>.
1377 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1378             Jakub Jelinek  <jakub@redhat.com>
1380         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1381         corruption thread-safe.
1383 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1385         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1386         overrides atomic_compare_and_exchange_val_rel, define to
1387         atomic_compare_and_exchange_val_rel by default, otherwise default
1388         to catomic_compare_and_exchange_val_acq.
1389         (catomic_compare_and_exchange_bool_rel): If arch overrides
1390         atomic_compare_and_exchange_bool_rel, define to
1391         atomic_compare_and_exchange_bool_rel by default.
1392         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1393         Use catomic_compare_and_exchange_val_rel instead of
1394         catomic_compare_and_exchange_val_acq.
1396 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1398         * sysdeps/generic/ldsodefs.h: Add prototype for
1399         _dl_higher_prime_number.
1400         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1402         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1403         restoring of ymm registers a bit.
1405 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1407         * sysdeps/x86_64/memcmp.S: New file.
1409 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1411         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1412         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1413         pointers in writable memory.
1415 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1417         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1418         * config.make.in: Add config-cflags-avx entry.
1419         * configure.in: Substitute libc_cv_cc_avx.
1420         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1421         * elf/tst-audit4.c: New file.
1422         * elf/tst-audit5.c: New file.
1423         * elf/tst-auditmod4a.c: New file.
1424         * elf/tst-auditmod4b.c: New file.
1425         * elf/tst-auditmod5a.c: New file.
1426         * elf/tst-auditmod5b.c: New file.
1427         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1428         link-defines.sym.
1429         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1430         (La_x86_64_vector): Likewise.
1431         (La_x86_64_regs): Append lr_vector.
1432         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1433         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1434         saving and restoring SSE registers to ...
1435         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1436         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1437         <link-defines.h>.
1438         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1439         La_x86_64_regs.  Allocate extra space and jump to memory at
1440         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1441         (save_and_restore_vector_sse): New.
1442         (save_and_restore_vector_avx): Likewise.
1443         (check_avx): Likewise.
1444         (save_and_restore_vector): Likewise.
1445         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1446         HAVE_AVX_SUPPORT.
1447         * sysdeps/x86_64/link-defines.sym: New file.
1449 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1451         * elf/do-lookup.h: Removed after folding content into...
1452         * elf/dl-lookup.c: ...here.
1454         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1456 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1458         * configure.in: Check for gnu_unique_symbol symbol type.
1459         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1460         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1461         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1462         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1463         change.
1464         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1465         unique symbol table.
1466         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1467         for first namespace.
1468         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1469         unique symbol hash table.
1470         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1471         * elf/tst-unique1.c: New file.
1472         * elf/tst-unique1mod1.c: New file.
1473         * elf/tst-unique1mod2.c: New file.
1474         * elf/tst-unique2.c: New file.
1475         * elf/tst-unique2mod1.c: New file.
1476         * elf/tst-unique2mod2.c: New file.
1478 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1480         * elf/elf.h (STB_GNU_UNIQUE): Define.
1482         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1483         from...
1484         * include/inline-hashtab.h: ...here.
1485         (htab_expand): Adjust for renamed function.  Correct memory handling.
1487 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1489         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1491 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1493         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1494         (PPC_FEATURE_HAS_VSX): Likewise.
1496 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1498         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1499         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1501         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1502         aligned to 16 byte boundaries.
1503         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1504         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1505         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1507 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1509         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1510         * config.make.in (config-cflags-sse4): New variable.
1511         * configure.in: Substitute libc_cv_cc_sse4.
1512         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1513         HAVE_SSE4_SUPPORT.
1514         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1515         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1516         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1517         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1518         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1519         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1520         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1521         * sysdeps/x86_64/multiarch/strspn.S: New file.
1523 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1525         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1526         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1527         (tests): Add tst-audit3 for x86_64.
1528         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1529         ($(objpfx)tst-audit3): Define.
1530         ($(objpfx)tst-audit3.out): Define.
1531         (tst-audit3-ENV): Define.
1532         * elf/tst-audit3.c: New file.
1533         * elf/tst-auditmod3a.c: New file.
1534         * elf/tst-auditmod3b.c: New file.
1535         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1536         and restore xmm6.
1538         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1539         (__stpncpy): Renamed to ...
1540         (STPNCPY): This.
1541         (stpncpy): Create alias only if STPNCPY is not defined.
1542         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1543         defined.
1544         (strncpy): Renamed to ...
1545         (STRNCPY): This.
1546         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1547          stpncpy-c strncpy-c for string.
1548         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1549         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1550         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1551         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1552         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1553         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1555 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1557         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1558         adding to fast bin list.
1560 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1562         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1563         inet_makeaddr.  This worked only with class-based networks.
1564         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1565         Likewise.
1567         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1568         recognize all types.
1569         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1570         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1571         be in host byte order.
1573 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1575         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1576         (MODEL_OFFSET): Define.
1577         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1578         family and model.
1579         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1580         out common code into new function get_common_indeces. Determine
1581         extended family and model for Intel processors.
1583 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1585         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1586         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1587         option.
1588         * resolv/res_send.c (reopen): New function.  Broken out of...
1589         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1590         fallback mechanism.  If single-request fails switch to
1591         single-request-reopen mode which opens a new socket for the second
1592         request.
1594 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1596         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1597         (CHECK_SP): Use it.
1599 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1601         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1602         for saved registers.
1603         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1604         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1605         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1607 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1609         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1611 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1613         * po/id.po: Update from translation team.
1615         * po/bg.po: Update from translation team.
1617 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1619         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1620         defined.
1621         (strncmp): Renamed to STRNCMP.
1622         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1623         strncmp-c for string.
1624         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1625         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1626         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1627         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1629 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1631         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1632         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1633         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1634         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1635         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1636         ifuncmain7static.c.
1637         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1638         ifuncmain7static, and ifuncmain7picstatic.
1639         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1640         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1641         $(objpfx)ifuncmain7pie.out.
1642         (modules-names): Add ifuncmod5 ifuncmod6
1643         (ifuncmod5.so-no-z-defs): Define.
1644         (ifuncmod6.so-no-z-defs): Define.
1645         (CFLAGS-ifuncmain5pic.c): Define.
1646         (CFLAGS-ifuncmain5picstatic.c): Define.
1647         (CFLAGS-ifuncmain5staticpic.c): Define.
1648         (CFLAGS-ifuncdep5pic.c): Define.
1649         (CFLAGS-ifuncmain7pic.c): Define.
1650         (CFLAGS-ifuncmain7picstatic.c): Define.
1651         (CFLAGS-ifuncmain1staticpie.c): Define.
1652         (CFLAGS-ifuncmain5pie.c): Define.
1653         (CFLAGS-ifuncmain6pie.c): Define.
1654         (CFLAGS-ifuncmain7pie.c): Define.
1655         ($(objpfx)ifuncmain1staticpie.out): Define.
1656         ($(objpfx)ifuncmain1staticpie): Define.
1657         ($(objpfx)ifuncmain5pie.out): Define.
1658         ($(objpfx)ifuncmain5pie): Define.
1659         ($(objpfx)ifuncmain6pie.out): Define.
1660         ($(objpfx)ifuncmain6pie): Define.
1661         ($(objpfx)ifuncmain5): Define.
1662         ($(objpfx)ifuncmain5pic): Define.
1663         ($(objpfx)ifuncmain5static): Define.
1664         ($(objpfx)ifuncmain5staticpic): Define.
1665         ($(objpfx)ifuncmain5picstatic): Define.
1666         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1667         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1668         ifuncmain6pie.out.
1669         * elf/b/elf/ifuncmain1staticpie.c: New file.
1670         * elf/ifuncdep5.c: New file.
1671         * elf/ifuncdep5pic.c: New file.
1672         * elf/ifuncmain5.c: New file.
1673         * elf/ifuncmain5pic.c: New file.
1674         * elf/ifuncmain5picstatic.c: New file.
1675         * elf/ifuncmain5pie.c: New file.
1676         * elf/ifuncmain5static.c: New file.
1677         * elf/ifuncmain5staticpic.c: New file.
1678         * elf/ifuncmain6pie.c: New file.
1679         * elf/ifuncmain7.c: New file.
1680         * elf/ifuncmain7pic.c: New file.
1681         * elf/ifuncmain7picstatic.c: New file.
1682         * elf/ifuncmain7pie.c: New file.
1683         * elf/ifuncmain7static.c: New file.
1684         * elf/ifuncmod5.c: New file.
1685         * elf/ifuncmod6.c: New file.
1687 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1689         [BZ #10085]
1690         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1691         (nss_endgrent): New variable.
1692         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1693         fields. Change type of files to bool and adjust all users.
1694         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1695         (internal_endgrent): Call nss_endgrent if necessary.
1696         (add_group): New function.  Broken out of...
1697         (check_and_add_group): ...here.
1698         (getgrent_next_nss): Remove test that any callback is available.
1699         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1700         callback.  If there is no blacklist we can trust the results returned
1701         by the initgroups_dyn callback.  In case there is a callback and we
1702         find a group entry for the group ID but it doesn't contain the
1703         correct member, switch to the slow mode and use getgrent_r.
1704         (internal_getgrent_r): When we see a +: entry, determine whether
1705         there is any callback and which we can use the initgroups_dyn
1706         callback.
1708 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1710         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1711         (_int_free): Likewise.
1713         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1714         AF_IEEE802154.
1715         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1716         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1717         and ARPHRD_IEEE802154_PHY.
1719         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1720         relative to generic Linux version.
1722 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1724         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1725         ($(objpfx)ifuncmain1vispie): Likewise.
1727 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1729         * login/Makefile: Build pt_chown as PIE.
1731 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1733         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1734         a format string.
1735         * elf/sln.c (usage): Likewise.
1736         * malloc/memusage.sh (do_help): Likewise.
1737         * nss/getent.c (more_help): Likewise.
1738         * posix/getconf.c (main): Likewise.
1739         * sunrpc/rpcinfo.c (usage): Likewise.
1740         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1742 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1744         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1745         those needed.
1746         * login/Makefile: If necessary link pt_chown with -lcap.
1747         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1748         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1750 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1752         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1753         comparisons.
1754         * string/test-memchr.c (do_random_tests): Test very large lengths
1755         as well.
1757 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1759         * Makeconfig (+link-pie): Define.
1760         (+prectorS): Define.
1761         (+postctorS): Define.
1762         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1763         * nscd/Makefile ($(objpfx)nscd): Likewise.
1765 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1767         [BZ #10107]
1768         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1769         with cmplwi.
1770         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1772 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1774         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1775         into ...
1776         * sysdeps/unix/grantpt.c: ...here.
1778 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1780         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1781         chmod if it is necessary.
1783         [BZ #10166]
1784         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1785         when the slave device is in devpts or devfs.
1787         [BZ #10183]
1788         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1790         [BZ #10195]
1791         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1792         of nd_opt_home_agent_info_preference to uint16_t.
1793         Patch by Arnaud Ebalard <arno@natisbad.org>.
1795         [BZ #10207]
1796         * nss/getent.c: Add support for printing gshadow data.
1798         [BZ #10203]
1799         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1800         not just the currently used one and those which follow.
1801         Patch by Joe Landers <jlanders@vmware.com>.
1803         [BZ #10196]
1804         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1805         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1806         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1808         [BZ #10217]
1809         * stdlib/abort.c: Define variable __abort_msg.
1810         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1811         * include/stdlib.h: Declare __abort_msg.
1812         * assert/assert-perr.c: Don't free buffer for message immediately.
1813         Store atomically in __abort_msg and free old buffer if necessary.
1814         * assert/assert.c: Likewise.
1815         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1816         store pointer in __abort_msg, and possibly free old string.
1817         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1819         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1821         [BZ #10211]
1822         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1823         handle leap seconds if they are available.
1824         Patch by Akinori Hattori <hattya@gentoo.org>.
1826         * timezone/tzselect.ksh: Update from tzcode2009i.
1827         * timezone/zdump.c: Likewise.
1828         * timezone/zic.c: Likewise.
1830         * timezone/africa: Update from tzdata2009i.
1831         * timezone/antarctica: Likewise.
1832         * timezone/asia: Likewise.
1833         * timezone/australasia: Likewise.
1834         * timezone/backward: Likewise.
1835         * timezone/etcetera: Likewise.
1836         * timezone/europe: Likewise.
1837         * timezone/factory: Likewise.
1838         * timezone/iso3166.tab: Likewise.
1839         * timezone/leapseconds: Likewise.
1840         * timezone/northamerica: Likewise.
1841         * timezone/pacificnew: Likewise.
1842         * timezone/solar87: Likewise.
1843         * timezone/solar88: Likewise.
1844         * timezone/solar89: Likewise.
1845         * timezone/southamerica: Likewise.
1846         * timezone/systemv: Likewise.
1847         * timezone/yearistype: Likewise.
1848         * timezone/zone.tab: Likewise.
1850 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1852         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1853         STT_GNU_IFUNC symbol or in 8 into type_class.
1855         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1856         instead of Elf64_Addr.
1858 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1860         * po/sv.po: Update from translation team.
1862         [BZ #10229]
1863         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1864         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1865         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1866         the C version.
1868 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1870         * Versions.def: Add GLIBC_2.11 for libpthread.
1872 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1874         * resolv/res_send.c (send_dg): Remember we switched to
1875         single-request mode.
1877 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1879         * dlfcn/dlfcn.h: Remove comma at end of enum.
1880         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1882         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1883         parsing mode string.
1885 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1887         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1889         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1891         * sysdeps/x86_64/multiarch/strlen.S: New file.
1892         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1893         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1894         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1895         content.
1897         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1898         is defined.
1900 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1902         * sysdeps/x86_64/strlen.S: Minor optimizations.
1904 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1906         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1907         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1908         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1909         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1910         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1911         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1912         ifuncmain3.c, ifuncmod3.c,.
1913         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1914         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1915         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1916         ifuncmain4picstatic.
1917         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1918         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1919         ifuncmain3, ifuncmain4.
1920         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1921         $(objpfx)ifuncmain1vispie.out.
1922         (modules-names): Add ifuncmod1 ifuncmod3.
1923         (generated): Add ifuncmain1pie ifuncmain1pie.out
1924         ifuncmain1vispie ifuncmain1vispie.out.
1925         Define rules to build and run the tests.
1926         * elf/ifuncdep1.c: New file.
1927         * elf/ifuncdep1pic.c: New file.
1928         * elf/ifuncdep2.c: New file.
1929         * elf/ifuncdep2pic.c: New file.
1930         * elf/ifuncmain1.c: New file.
1931         * elf/ifuncmain1pic.c: New file.
1932         * elf/ifuncmain1picstatic.c: New file.
1933         * elf/ifuncmain1pie.c: New file.
1934         * elf/ifuncmain1static.c: New file.
1935         * elf/ifuncmain1staticpic.c: New file.
1936         * elf/ifuncmain1vis.c: New file..
1937         * elf/ifuncmain1vispic.c: New file..
1938         * elf/ifuncmain1vispie.c: New file.
1939         * elf/ifuncmain2.c: New file.
1940         * elf/ifuncmain2pic.c: New file.
1941         * elf/ifuncmain2picstatic.c: New file.
1942         * elf/ifuncmain2static.c: New file.
1943         * elf/ifuncmain3.c: New file.
1944         * elf/ifuncmain4.c: New file.
1945         * elf/ifuncmain4picstatic.c: New file.
1946         * elf/ifuncmain4static.c: New file.
1947         * elf/ifuncmod1.c: New file.
1948         * elf/ifuncmod3.c: New file.
1950 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1952         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1954 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1956         [BZ #10221]
1957         * posix/Makefile (routines): Add execvpe.
1958         * posix/Versions: Export execvpe for GLIBC_2.11.
1959         * posix/execvp.c: Now only a wrapper.  Move code to...
1960         * posix/execvpe.c: ...here.  New file.
1961         * posix/unistd.h: Declare execvpe.
1963 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1965         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1966         for STT_GNU_IFUNC handling for efficiency.
1967         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1969         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1970         _exit.
1971         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1973 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1975         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1976         for !SHARED.
1978 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1980         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1981         is not defined.
1982         (__rela_iplt_start): New declaration.
1983         (__rela_iplt_end): Likewise.
1984         (__rel_iplt_start): Likewise.
1985         (__rel_iplt_end): Likewise.
1986         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1987         * elf/elf.h (R_386_IRELATIVE): New macro.
1988         (R_X86_64_IRELATIVE): New macro.
1989         (R_386_NUM): Updated.
1990         (R_X86_64_NUM): Likewise.
1991         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1992         (libc_ifunc_hidden_def): New macro.
1993         * sysdeps/generic/dl-irel.h: New file.
1994         * sysdeps/i386/dl-irel.h: New file.
1995         * sysdeps/x86_64/dl-irel.h: New file.
1996         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1997         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1998         Handle R_386_IRELATIVE.
1999         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2000         (elf_machine_lazy_rela): Likewise.
2001         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2002         R_X86_64_IRELATIVE.
2003         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2005 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2007         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2008         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2009         are no differences.  If an architecture has bits in CPUID index 1
2010         meaning different things the values for the COMMON_CPUID_INDEX_1
2011         index must not be set.
2012         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2013         (HAS_POPCOUNT): ...this.  New macro.
2014         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2015         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2016         to set the value for Intel and AMD architectures.
2017         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2018         INTEL_CPUID_INDEX_1.
2019         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2020         change.
2022 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2024         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2025         and $build.
2027 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2029         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2030         (__expm1l): Set errno to ERANGE on overflow.
2031         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2032         (__tanl): Set errno to EDOM for Â±Inf.
2033         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2034         (__cosl): Set errno to EDOM for Â±Inf.
2035         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2036         (__sinl): Set errno to EDOM for Â±Inf.
2038         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2039         defined, use it.
2040         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2041         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2042         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2044 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2046         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2047         code accessing it.
2048         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2050 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2052         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2053         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2054         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2055         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2057         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2058         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2059         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2060         defined.
2061         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2062         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2064 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2066         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2067         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2068         is, either do nothing at all if __ASSUME_ACCEPT4, or
2069         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2070         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2071         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2072         define.
2073         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2074         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2075         internal_accept4 in socket directory.
2077 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2079         * sysdeps/ia64/configure.in: New file.
2081 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2083         [BZ #10162]
2084         * sysdeps/ia64/memchr.S: Use speculative load.
2086         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2087         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2088         use it.
2090         * sysdeps/i386/__longjmp.S: Add .text.
2091         * sysdeps/x86_64/__longjmp.S: Likewise.
2093 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2095         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2096         __ASSUME_ACCEPT4 for IA-64.
2098 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2100         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2102         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2103         (SOCKOP_accept4): Define.
2105 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2107         Sun approved the change of the license.
2108         * sunrpc/auth_des.c: Replace license text.
2109         * sunrpc/auth_none.c: Likewise.
2110         * sunrpc/auth_unix.c: Likewise.
2111         * sunrpc/authdes_prot.c: Likewise.
2112         * sunrpc/authuxprot.c: Likewise.
2113         * sunrpc/bindrsvprt.c: Likewise.
2114         * sunrpc/clnt_gen.c: Likewise.
2115         * sunrpc/clnt_perr.c: Likewise.
2116         * sunrpc/clnt_raw.c: Likewise.
2117         * sunrpc/clnt_simp.c: Likewise.
2118         * sunrpc/clnt_tcp.c: Likewise.
2119         * sunrpc/clnt_udp.c: Likewise.
2120         * sunrpc/clnt_unix.c: Likewise.
2121         * sunrpc/des_crypt.c: Likewise.
2122         * sunrpc/des_soft.c: Likewise.
2123         * sunrpc/get_myaddr.c: Likewise.
2124         * sunrpc/getrpcport.c: Likewise.
2125         * sunrpc/key_call.c: Likewise.
2126         * sunrpc/key_prot.c: Likewise.
2127         * sunrpc/openchild.c: Likewise.
2128         * sunrpc/pm_getmaps.c: Likewise.
2129         * sunrpc/pm_getport.c: Likewise.
2130         * sunrpc/pmap_clnt.c: Likewise.
2131         * sunrpc/pmap_prot.c: Likewise.
2132         * sunrpc/pmap_prot2.c: Likewise.
2133         * sunrpc/pmap_rmt.c: Likewise.
2134         * sunrpc/rpc/auth.h: Likewise.
2135         * sunrpc/rpc/auth_unix.h: Likewise.
2136         * sunrpc/rpc/clnt.h: Likewise.
2137         * sunrpc/rpc/des_crypt.h: Likewise.
2138         * sunrpc/rpc/key_prot.h: Likewise.
2139         * sunrpc/rpc/netdb.h: Likewise.
2140         * sunrpc/rpc/pmap_clnt.h: Likewise.
2141         * sunrpc/rpc/pmap_prot.h: Likewise.
2142         * sunrpc/rpc/pmap_rmt.h: Likewise.
2143         * sunrpc/rpc/rpc.h: Likewise.
2144         * sunrpc/rpc/rpc_des.h: Likewise.
2145         * sunrpc/rpc/rpc_msg.h: Likewise.
2146         * sunrpc/rpc/svc.h: Likewise.
2147         * sunrpc/rpc/svc_auth.h: Likewise.
2148         * sunrpc/rpc/types.h: Likewise.
2149         * sunrpc/rpc/xdr.h: Likewise.
2150         * sunrpc/rpc_clntout.c: Likewise.
2151         * sunrpc/rpc_cmsg.c: Likewise.
2152         * sunrpc/rpc_common.c: Likewise.
2153         * sunrpc/rpc_cout.c: Likewise.
2154         * sunrpc/rpc_dtable.c: Likewise.
2155         * sunrpc/rpc_hout.c: Likewise.
2156         * sunrpc/rpc_main.c: Likewise.
2157         * sunrpc/rpc_parse.c: Likewise.
2158         * sunrpc/rpc_parse.h: Likewise.
2159         * sunrpc/rpc_prot.c: Likewise.
2160         * sunrpc/rpc_sample.c: Likewise.
2161         * sunrpc/rpc_scan.c: Likewise.
2162         * sunrpc/rpc_scan.h: Likewise.
2163         * sunrpc/rpc_svcout.c: Likewise.
2164         * sunrpc/rpc_tblout.c: Likewise.
2165         * sunrpc/rpc_util.c: Likewise.
2166         * sunrpc/rpc_util.h: Likewise.
2167         * sunrpc/rpcinfo.c: Likewise.
2168         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2169         * sunrpc/rpcsvc/key_prot.x: Likewise.
2170         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2171         * sunrpc/rpcsvc/mount.x: Likewise.
2172         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2173         * sunrpc/rpcsvc/rex.x: Likewise.
2174         * sunrpc/rpcsvc/rstat.x: Likewise.
2175         * sunrpc/rpcsvc/rusers.x: Likewise.
2176         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2177         * sunrpc/rpcsvc/spray.x: Likewise.
2178         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2179         * sunrpc/rtime.c: Likewise.
2180         * sunrpc/svc.c: Likewise.
2181         * sunrpc/svc_auth.c: Likewise.
2182         * sunrpc/svc_authux.c: Likewise.
2183         * sunrpc/svc_raw.c: Likewise.
2184         * sunrpc/svc_run.c: Likewise.
2185         * sunrpc/svc_simple.c: Likewise.
2186         * sunrpc/svc_tcp.c: Likewise.
2187         * sunrpc/svc_udp.c: Likewise.
2188         * sunrpc/svc_unix.c: Likewise.
2189         * sunrpc/svcauth_des.c: Likewise.
2190         * sunrpc/xcrypt.c: Likewise.
2191         * sunrpc/xdr.c: Likewise.
2192         * sunrpc/xdr_array.c: Likewise.
2193         * sunrpc/xdr_float.c: Likewise.
2194         * sunrpc/xdr_mem.c: Likewise.
2195         * sunrpc/xdr_rec.c: Likewise.
2196         * sunrpc/xdr_ref.c: Likewise.
2197         * sunrpc/xdr_sizeof.c: Likewise.
2198         * sunrpc/xdr_stdio.c: Likewise.
2200         * po/da.po: Update from translation team.
2202 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2204         * sysdeps/sh/____longjmp_chk.S: New file.
2205         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2206         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2208 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2209             Ulrich Drepper  <drepper@redhat.com>
2211         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2212         (__nscd_cache_search): Assume each entry in the
2213         hash chain needs one hashentry and half of datahead.  Use
2214         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2216 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2218         * posix/sys/wait.h: Fix typos.  Pretty printing.
2219         * stdlib/stdlib.h: Likewise.  Correct comments.
2221         [BZ #10159]
2222         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2224         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2225         patch.
2227 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2229         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2230         Use it if we absolutely cannot reach any more correct list elements
2231         because that many do not fit into the currently mapped database.
2233 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2235         * nscd/nscd_helper.c: Include stddef.h.
2236         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2237         in a couple of places.  Return NULL if trail is not less than
2238         datasize, don't consider dataheads with length smaller than
2239         offsetof (struct datahead, data) + datalen.
2240         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2241         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2242         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2243         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2244         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2245         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2246         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2248         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2249         Rename ...
2250         (fallocate64): ... to this.
2251         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2252         Rename ...
2253         (fallocate64): ... to this.
2254         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2255         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2256         fallocate64@@GLIBC_2.10.
2257         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2258         fallocate64@@GLIBC_2.11.
2259         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2261         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2262         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2264         * nscd/selinux.c (nscd_avc_destroy): Removed.
2265         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2266         * nscd/nscd.c (termination_handler): Don't call
2267         nscd_avc_destroy.
2269 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2271         * include/atomic.h: Formatting.
2272         (catomic_compare_and_exchange_val_acq): Don't define if already
2273         defined by bits/atomic.h.
2275 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2277         * math/libm-test.inc (expm1_test): Add test for range error.
2279         * Versions.def: Add GLIBC_2.11 for libc.
2280         * debug/Makefile (routines): Add longjmp_chk.
2281         Add rules to build and run tst-longjmp_chk.
2282         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2283         * debug/longjmp_chk.c: New file.
2284         * debug/tst-longjmp_chk.c: New file.
2285         * include/bits/setjmp2.: New file.
2286         * include/stdio.h: Mark __fortify_fail as internal_function.
2287         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2288         * setjmp/bits/setjmp2.h: New file.
2289         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2290         of the aliases.
2291         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2292         defined.
2293         * sysdeps/i386/____longjmp_chk.S: New file.
2294         * sysdeps/x86_64/____longjmp_chk.S: New file.
2295         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2296         * sysdeps/x86_64/__longjmp.S: Likewise.
2298         * version.h: Bump for 2.11 development.
2300         * elf/check-execstack.c: New file.
2301         * elf/Makefile: Add rules to build and run check-execstack.
2303 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2305         * version.h (VERSION): Bump to 2.10.1.
2307         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2308         compatibility functions.
2309         * nss/getXXent_r.c: Likewise.
2310         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2311         * gshadow/getsgnam_r.c: Likewise.
2312         * gshadow/Version: Remove duplicate entries.
2314         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2315         for recent processor.
2316         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2317         Likewise.
2319 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2321         * version.h (VERSION): Bump for 2.10 release.
2322         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2324         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2325         same place we add ASFLAGS-config.
2327 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2329         [BZ #10128]
2330         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2331         or FORMERR and the other NOERROR, don't raise an error.
2333 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2335         [BZ #10118]
2336         * Makeconfig (+asflags): New variable based upon ASFLAG or
2337         asflags-cpu.
2338         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2339         * config.make.in (asflags-cpu): Add variable based upon
2340         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2341         the assembler.
2342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2343         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2344         recognizes power6 instruction set due to passing -mcpu=power6 from
2345         --with-cpu=power6 when compiling .S files.
2346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2347         Likewise.
2348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2349         Likewise.
2350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2351         Likewise.
2353 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2355         * string/stratcliff.c (do_test): Test for zero length
2356         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2357         at the end of the page.
2359 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2361         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2363         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2364         count is zero.
2366         * po/da.po: Update from translation team.
2368 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2370         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2371         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2373 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2375         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2376         and READ_IMPLIES_EXEC.
2378 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2380         * po/da.po: Update from translation team.
2382 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2384         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2385         comment change.
2387 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2389         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2390         to MAP_ANON in PROT_NONE mmap64 call.
2391         (open_archive): Likewise.
2392         (file_data_available_p): Use mmap64 instead of mremap.
2393         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2394         Attempt to reserve address space after mmap64 region.
2396 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2398         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2399         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2400         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2402         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2403         atanh should set ERANGE.
2405         [BZ #10087]
2406         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2407         result of lookup to make call to implement STT_GNU_IFUNC.
2408         (_dl_profile_fixup): Likewise.
2409         Patch by H.J. Lu <hjl.tools@gmail.com>.
2411         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2412         warning.
2414         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2415         from definition.
2417         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2418         label if it is not used.
2420         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2421         of gmon_hist_hdr and gmon_hdr structures and use them.
2422         * elf/sprof.c: Likewise.
2424         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2425         warning.
2427         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2429         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2430         to avoid cast.
2432         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2433         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2434         to avoid warnings.
2435         (iruserok_af): Use ss_family instead of casts.
2437         * gmon/gmon.c (write_hist): Define real-type variant of
2438         gmon_hist_hdr structure and use it.
2439         (write_gmon): Likewise for gmon_hdr.
2441         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2442         function if we are not going to define it.
2443         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2445         * inet/inet6_option.c (option_alloc): Add temporary variable to
2446         avoid warning.
2448         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2449         name of VTable element.
2450         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2451         * libio/iovsscanf.c: Likewise.
2452         * libio/vasprintf.c: Likewise.
2453         * libio/vsnprintf.c: Likewise.
2454         * stdio-common/isoc99_vsscanf.c: Likewise.
2455         * stdlib/strfmon_l.c: Likewise.
2456         * debug/vasprintf_chk.c: Likewise.
2457         * debug/vsnprintf_chk.c: Likewise.
2458         * debug/vsprintf_chk.c: Likewise.
2460         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2461         function pointers.
2463 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2465         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2467 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2469         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2471         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2472         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2473         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2474         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2475         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2476         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2477         * math/libm-test.inc: Add tests for errno after tan calls with
2478         Â±Inf.
2480         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2481         errno value vor pow(+-0,neg).
2482         * math/libm-test.inc (pow_test): Add tests for errno value for
2483         pole errors.
2485         * math/w_fmod.c: Also handle x=±Inf as error.
2486         * math/w_fmodf.c: Likewise.
2487         * math/w_fmodl.c: Likewise.
2488         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2489         x=±Inf or y=0.
2491         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2492         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2493         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2494         * sysdeps/i386/fpu/s_sin.S: Likewise.
2495         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2496         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2497         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2498         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2499         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2500         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2501         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2502         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2503         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2504         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2505         Â±Inf.
2507         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2508         ERANGE for underflows.
2509         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2511         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2512         the 2001 revision.
2514         * libio/tst-widetext.input: Remove surrogates.
2516         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2518         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2519         for lgamma should set errno to ERANGE, not EDOM.
2520         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2522 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2524         [BZ #10093]
2525         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2526         UTF-16 surrogates.
2528         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2529         space when temporarily mapping the whole content of the old file.
2531         [BZ #10100]
2532         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2533         not zero.
2535 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2537         * iconvdata/sjis.c (BODY): Don't advance inptr before
2538         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2539         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2540         two byte chars.
2542 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2544         * locale/locarchive.h (struct locarhandle): Rename len field to
2545         mmaped and add new reserved field.
2546         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2547         (create_archive): Reserve address space and then map file into it.
2548         (open_archive): Likewise.
2549         (file_data_available_p): New function.
2550         (compare_from_file): New function.
2551         (close_archive): Adjust to member name changes.
2552         (add_locale): Before comparing locale data, check it is mapped.
2553         Otherwise fall back to reading from the file.
2555 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2557         * stdio-common/psiginfo.c: Include <errno.h>.
2559 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2561         [BZ #9920]
2562         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2563         to get consistency between 32 and 64 bit architectures.
2565         [BZ #10052]
2566         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2567         directory for dummy syscall rules.
2568         Patch by Chris Steinbroner <hesh@pobox.com>.
2570 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2572         [BZ #10092]
2573         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2574         MNT_EXPIRE.
2576 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2578         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2579         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2581 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2583         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2584         data from vector to temporary buffer and call PWRITEV after it
2585         instead of vice versa.
2586         * sysdeps/posix/preadv.c: Fix up comment.
2587         * misc/preadv.c: Likewise.
2588         * misc/preadv64.c: Likewise.
2589         * misc/pwritev.c: Likewise.
2590         * misc/pwritev64.c: Likewise.
2591         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2593 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2595         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2597         * shadow/Makefile (tests): Add tst-shadow.
2598         * shadow/tst-shadow.c: New file.
2600         [BZ #9955]
2601         * gshadow/Makefile: New file.
2602         * gshadow/Versions: New file.
2603         * gshadow/fgetsgent.c: New file.
2604         * gshadow/fgetsgent_r.c: New file.
2605         * gshadow/getsgent.c: New file.
2606         * gshadow/getsgent_r.c: New file.
2607         * gshadow/getsgnam.c: New file.
2608         * gshadow/getsgnam_r.c: New file.
2609         * gshadow/gshadow.h: New file.
2610         * gshadow/putsgent.c: New file.
2611         * gshadow/sgetsgent.c: New file.
2612         * gshadow/sgetsgent_r.c: New file.
2613         * gshadow/tst-gshadow.c: New file.
2614         * include/gshadow.h: New file.
2615         * Makeconfig (all-subdirs): Add gshadow.
2616         * Makefile (installed-headers): Add gshadow/gshadow.h.
2617         * nss/Makefile (databases): Add sgrp.
2618         * nss/Versions: Add gshadow functions as private exports.
2619         * nss/nsswitch.conf: Add gshadow entry.
2620         * nss/sgrp-lookup.c: New file.
2621         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2622         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2623         * nss/nss_files/files-sgrp.c: New file.
2624         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2625         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2627 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2629         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2630         * stdio-common/reg-modifier.c: Likewise.
2632 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2634         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2635         is no FPU.
2637 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2639         [BZ #10086]
2640         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2641         headers up to 2.6.30.
2643         * po/ca.po: Update from translation team.
2645 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2647         [BZ #10069]
2648         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2649         an object that uses static TLS if the TLS modid is higher than the
2650         reserve we always allocate.  At least for multi-threaded code.
2652 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2654         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2655         Numerically stable check for valid width.
2657         * locale/programs/locarchive.c (open_archive): Map the entire file
2658         and not just the administrative data.
2659         (add_locale): When we find a hash sum match compare the content
2660         to be sure.
2662         * malloc/malloc.c (malloc_info): Output address space information.
2664 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2666         * malloc/malloc.c (malloc_info): Also output system memory information.
2668         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2669         architectures have preadv/pwritev in 2.6.30.
2671         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2672         * sysdeps/posix/readv.c: Likewise.
2673         Reported by Markus Armbruster <armbru@redhat.com>.
2675         * malloc/hooks.c (top_check): Force hook value into register.
2677 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2679         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2680         calls to _dl_relocate_object.
2682 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2684         [BZ #9957]
2685         * malloc/malloc.c (force_reg): Define.
2686         (sYSMALLOc): Load hook variable into variable
2687         before test and force into register.
2688         (sYSTRIm): Likewise.
2689         (public_mALLOc): Force hook value into register.
2690         (public_fREe): Likewise.
2691         (public_rEALLOc): Likewise.
2692         (public_mEMALIGn): Likewise.
2693         (public_vALLOc): Likewise.
2694         (public_pVALLOc): Likewise.
2695         (public_cALLOc): Likewise.
2696         (__posix_memalign): Likewise.
2697         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2698         before test and force into register.
2699         * malloc/hooks.c (top_check): Likewise.
2700         (public_sET_STATe): Pretty printing.
2702         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2703         in case we only receive one reply in single-request mode.
2705 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2707         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2708         are dlopened in statically linked program even for __LM_ID_CALLER.
2710 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2712         * resolv/res_send.c (send_dg): Don't switch into single-request
2713         mode if we already are in it.
2715 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2717         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2718         are always at least 4 bytes in the returned line.
2720 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2722         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2723         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2724         instead of 8K.  Stop searching in /proc/stat after hitting first
2725         line not starting with cpu.
2726         (next_line): Truncate too long
2727         lines at buffer size * 3/4 instead of pretending there were line
2728         breaks inside of large lines.
2730 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2732         * sysdeps/x86_64/mp_clz_tab.c: New file.
2734 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2735             Ulrich Drepper  <drepper@redhat.com>
2737         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2738         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2739         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2741 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2743         * sysdeps/sh/libc-tls.c: New file.
2745         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2747 2009-04-14  Roland McGrath  <roland@redhat.com>
2749         * elf/elf.h: Add various missing ARM constants, to match binutils.
2751 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2753         Optimizations from GMP.
2754         * sysdeps/x86_64/add_n.S: New file.
2755         * sysdeps/x86_64/addmul_1.S: New file.
2756         * sysdeps/x86_64/lshift.S: New file.
2757         * sysdeps/x86_64/mul_1.S: New file.
2758         * sysdeps/x86_64/rshift.S: New file.
2759         * sysdeps/x86_64/sub_n.S: New file.
2760         * sysdeps/x86_64/submul_1.S: New file.
2762 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2764         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2765         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2766         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2767         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2769 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2771         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2772         preadv/pwritev.
2774 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2776         * sysdeps/x86-64/strrchr.S: New file.
2778 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2780         * stdio-common/printf.h (struct printf_info): Add user element.
2781         New types printf_arginfo_size_function, printf_va_arg_function.
2782         Declare register_printf_specifier, register_printf_modifier,
2783         register_printf_type.
2784         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2785         (union printf_arg): Add pa_user element.
2786         Adjust __printf_arginfo_table type.
2787         Add __printf_va_arg_table, __printf_modifier_table,
2788         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2789         declarations.
2790         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2791         If registered arginfo call failed try normal specifier.
2792         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2793         function.
2794         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2795         * stdio-common/Versions: Export register_printf_modifier,
2796         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2797         * stdio-common/reg-modifier.c: New file.
2798         * stdio-common/reg-type.c: New file.
2799         * stdio-common/reg-printf.c (__register_printf_specifier): New
2800         function.  Mostly the old __register_printf_function function but
2801         uses locking and type of third parameter changed.
2802         (__register_printf_function): Implement using
2803         __register_printf_specifier.
2804         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2805         calls to arginfo functions.  Allocate enough memory for user-defined
2806         types.  Call new va_arg functions to get user-defined types.
2807         Try installed handlers even for existing format specifiers first.
2809 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2811         * sysdeps/x86_64/rawmemchr.S: New file.
2813         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2814         Simplified code and possible copy problem fixed.
2816         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2817         function if it is not defined.  Add some necessary casts.
2818         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2820         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2821         have preadv/pwritev in 2.6.30.
2823 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2825         * malloc/malloc.c (malloc_info): New function.
2826         * malloc/malloc.h: Declare it.
2827         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2829         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2830         to avoid PLT slot.
2832         * malloc/malloc.c (_int_realloc): Add parameter with old block
2833         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2834         Adjust all callers.
2835         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2837 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2839         * sysdeps/x86_64/strchrnul.S: New file.
2841         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2842         depending libcrypt on -lfreebl3.
2844         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2845         preadv/pwritev in 2.6.30.
2847         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2848         instead of __strcasecmp.
2850         * string/stratcliff.c (do_test): Add memchr tests..
2851         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2852         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2853         first read quad word.
2855 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2857         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2858         * string/tst-svc.input: Add new test case.
2859         * string/tst-svc.expect: Adjust.
2860         * string/Makefile: Don't ignore tst-svc error.
2862         * sysdeps/x86_64/memchr.S: New file.
2864         * resolv/resolv.h (RES_SNGLKUP): Define.
2865         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2866         * resolv/res_send.c (send_dg): If we sent two requests at once and
2867         only get one reply before timeout switch to mode where we send the
2868         second request only after the first answer has been received.
2870 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2872         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2873         * sysdeps/x86_64/strchr.S: Likewise.
2875 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2877         * configure.in: We need to test for the compiler earlier.
2879         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2880         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2881         GLIBC_2.10.
2882         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2883         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2884         and pwritev.
2885         * misc/preadv.c: New file.
2886         * misc/preadv64.c: New file.
2887         * misc/pwritev.c: New file.
2888         * misc/pwritev64.c: New file.
2889         * sysdeps/posx/preadv.c: New file.
2890         * sysdeps/posx/preadv64.c: New file.
2891         * sysdeps/posx/pwritev.c: New file.
2892         * sysdeps/posx/pwritev64.c: New file.
2893         * sysdeps/unix/sysv/linux/preadv.c: New file.
2894         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2895         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2896         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2897         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2898         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2900         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2901         compatibility code.
2902         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2904         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2905         __ASSUME_COMPLETE_READV_WRITEV.
2906         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2907         with modern kernels.
2908         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2910         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2911         to free a possible malloced buffer in case of cancellation.
2912         * sysdeps/posix/writev.c: Likewise for write.
2914 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2916         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2918         * configure.in: Recognize --enable-nss-crypt.
2919         * config.make.in: Add nss-crypt entry.
2920         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2921         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2922         and include path for NSS directory to compiler for md5-crypt,
2923         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2924         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2925         function implementation, use NSS.  Introduce wrappers around the
2926         hash function calls.  Little code size optimization.
2927         * crypt/sha256-crypt.c: Likewise.
2928         * crypt/sha512-crypt.c: Likewise.
2929         * scripts/check-local-headers.sh: Ignore nss3 directory.
2931         * configure.in: Rename pic_default to libc_cv_pic_default.
2932         * config.make.in: Likewise.
2934 2009-04-01  Roland McGrath  <roland@redhat.com>
2936         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2937         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2938         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2939         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2940         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2941         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2942         (R_SPARC_NUM): Update.
2943         From Dave Miller <davem@davemloft.net>.
2945 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2947         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2949 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2951         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2952         those which are used.
2953         * elf/dl-addr.c: Likewise.
2954         * elf/dl-caller.c: Likewise.
2955         * elf/dl-fini.c: Likewise.
2956         * elf/dl-iteratephdr.c: Likewise.
2957         * elf/dl-libc.c: Likewise.
2958         * elf/dl-load.c: Likewise.
2959         * elf/dl-support.c: Likewise.
2960         * elf/dl-sym.c: Likewise.
2961         * elf/rtld.c: Likewise.
2962         * sysdeps/generic/ldsodefs.h: Likewise.
2964         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2965         * elf/dl-minimal.c: Likewise.
2966         * elf/dl-misc.c: Likewise.
2967         * elf/rtld.c: Likewise.
2968         * sysdeps/generic/ldsodefs.h: Likewise.
2970 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2972         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2973         Avoid reuse of complex expression.
2975         * po/fr.po: Update from translation team.
2977 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2979         * include/dirent.h: Yet more changes to match sort function type
2980         change.
2981         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2982         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2983         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2985 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2987         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2989 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2991         * nscd/connections.c (restart): Try to preserve the process name
2992         by reading the /proc/self/exe symlink and using the return name.
2993         Patch by Jeff Bastian <jbastian@redhat.com>.
2995 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2997         [BZ #9733]
2998         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2999         if we are not loading a new audit library.
3000         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3001         Only use profiling trampoline for auditing if we are not relocating
3002         an audit library.
3003         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3004         * elf/rtld.c: Likewise.
3005         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3007         * elf/rtld.c (dl_main): Extend help message for --audit option.
3009         [BZ #9759]
3010         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3011         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3012         * dirent/alphasort.c: Adjust implementation to type change.
3013         * dirent/alphasort64.c: Likewise.
3014         * dirent/scandir.c: Likewise.
3015         * dirent/versionsort.c: Likewise.
3016         * dirent/versionsort64.c: Likewise.
3017         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3018         declaration.
3019         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3020         declaration.
3022         [BZ #9880]
3023         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3024         correctly.  Set segleft member in output as required.
3025         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3026         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3028         [BZ #9881]
3029         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3030         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3031         * inet/Makefile (tests): Add tst-inet6_rth.
3032         * inet/tst-inet6_rth.c: New file.
3034         [BZ #5807]
3035         * string/strlen.c (strlen): Fix omission in the expression to test
3036         for NUL bytes.
3038 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3040         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3042         * elf/dl-runtime.c (reloc_offset): Define.
3043         (reloc_index): Define.
3044         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3045         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3046         computing index from reloc_offset.
3047         (_dl_call_pltexit): Likewise.
3048         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3049         the relocation index to _dl_fixup.
3050         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3051         _dl_call_pltexit.
3052         * sysdeps/x86_64/dl-runtime.c: New file.
3054         [BZ #9893]
3055         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3056         alignment of La_x86_64_regs.  Store xmm parameters.
3057         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3059         [BZ #9913]
3060         * string/strverscmp.c (__strverscmp): Fix case of different digits
3061         in fractional part of string.
3062         Patch by Jingyu Liu <jyliu@fortinet.com>.
3063         * string/Makefile (tests): Add tst-svc2.
3064         * string/tst-svc2.c: New file.
3066         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3068         * locale/iso-639.def: Add Min Nan.
3070 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3072         [BZ #9948]
3073         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3075 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3077         * elf/dl-sysdep.c (auxvars): Compress data structure.
3079         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3080         STT_GNU_IFUNC handling.
3081         (elf_machine_rela): Likewise.
3083 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3085         * config.h.in (USE_MULTIARCH): Define.
3086         * configure.in: Handle --enable-multi-arch.
3087         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3088         (_dl_fixup_profile): Likewise.
3089         * elf/do-lookup.c (dl_lookup_x): Likewise.
3090         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3091         * elf/elf.h (STT_GNU_IFUNC): Define.
3092         * include/libc-symbols.h (libc_ifunc): Define.
3093         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3094         framework in init-arch.h to get CPUID values.
3095         * sysdeps/x86_64/multiarch/Makefile: New file.
3096         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3097         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3098         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3100         * config.make.in (experimental-malloc): Define.
3101         * configure.in: Handle --enable-experimental-malloc.
3102         * malloc/Makefile: Handle experimental-malloc flag.
3103         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3104         * malloc/arena.c: Likewise.
3105         * malloc/hooks.c: Likewise.
3106         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3108 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3110         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3111         prediction.  A few size optimizations.
3113 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3115         * time/tzset.c: Optimize a bit for size.
3117 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3119         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3120         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3122         * elf/sprof.c: Avoid warning about multi-line comment.
3124 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3126         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3127         DST name.
3128         * time/tst-posixtz.c: Add tests for quoted timezone names.
3130 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3132         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3133         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3134         200809L instead of 200112L.
3135         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3136         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3138         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3139         instead of __quick_exit_funcs to __run_exit_handlers.
3140         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3141         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3142         (__cxa_at_quick_exit): Remove attribute_hidden.
3143         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3144         to __run_exit_handlers.
3145         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3146         attribute_hidden.
3148 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3150         * po/id.po: Update from translation team.
3152 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3155         .machine push; .machine "power6" and .machine pop around mtfsf
3156         insns outside of _ARCH_PWR6 define.
3157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3159         Likewise.
3160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3161         Likewise.
3162         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3163         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3164         relax_fenv_state): Likewise.
3166 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3168         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3169         cxa_at_quick_exit.
3170         (static-only-routines): Add at_quick_exit.
3171         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3172         GLIBC_2.10.
3173         * stdlib/quick_exit.c: New file.
3174         * stdlib/at_quick_exit.c: New file.
3175         * stdlib/cxa_at_quick_exit.c: New file.
3176         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3177         it appropriately.
3178         (__internal_atexit): New function.
3179         (__new_exitfn): Now takes parameter to point to the list to use.
3180         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3181         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3182         (exit): ...here.  Just call __run_exit_handlers appropriately.
3183         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3184         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3185         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3186         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3188         * po/id.po: Update from translation team.
3190 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3192         * po/ru.po: Update from translation team.
3194 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3196         * po/nl.po: Update from translation team.
3198 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3200         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3201         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3202         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3203         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3204         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3205         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3206         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3208         * po/pl.po: Update from translation team.
3210 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3212         [BZ #7083]
3213         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3214         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3215         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3216         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3217         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3218         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3219         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3220         for GLIBC_2.10.
3221         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3222         Add fallocate and fallocate64.
3224         * io/fcntl.h: Pretty printing.
3226 2009-03-02  Richard Guenther  <rguenther@suse.de>
3228         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3229         attribute also for non-C99 inline semantics variant.
3231 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3233         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3234         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3235         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3236         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3238         Likewise.
3239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3240         Likewise.
3242 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3244         * po/cs.po: Update from translation team.
3246 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3248         * po/bg.po: Update from translation team.
3249         * po/sv.po: Likewise.
3250         * po/fi.po: Likewise.
3251         * po/vi.po: Likewise.
3253 2009-02-27  Roland McGrath  <roland@redhat.com>
3255         * Makeconfig (%.v.i): Depend on Makeconfig.
3256         Exclude % lines from initial #-comment removal.
3258 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3260         * po/ko.po: Update from translation team.
3262 2009-02-26  Roland McGrath  <roland@redhat.com>
3264         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3265         avoids unused warning.
3267 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3268             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3270         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3271         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3272         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3273         and asm/user.h.  Include asm/ptrace.h.
3274         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3275         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3276         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3277         Undefine.
3278         (start_thread): Don't undefine.
3279         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3280         Define.
3282 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3284         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3285         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3286         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3287         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3288         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3289         200112L to 200809L.
3290         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3291         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3292         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3293         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3294         _SC_THREAD_ROBUST_PRIO_PROTECT.
3295         * posix/unistd.h: fexecve is in POSIX 2008.
3296         * time/time.h: strftime_l is in POSIX 2008.
3297         * io/sys/stat.h: futimens is in POSIX 2008.
3298         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3299         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3300         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3301         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3302         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3303         open_memstream, and vdprintf are in POSIX 2008.
3305 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3307         * include/features.h: Define macros for XPG7/POSIX 2008.
3308         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3309         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3310         POSIX 2008.
3311         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3312         * locale/xlocale.h: Define locale_t type.
3313         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3314         in POSIX 2008.  Don't define locale_t here.
3315         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3316         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3317         UTIME_OMIT only with __USE_ATFILE.
3318         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3319         * stdio-common/psiginfo.c: New file.
3320         * stdio-common/psiginfo-data.h: New file.
3321         * stdio-common/psiginfo-define.h: New file.
3322         * stdio-common/Makefile (routines): Add psiginfo.
3323         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3324         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3325         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3326         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3327         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3328         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3329         * io/sys/stat.h: Move mknodat definition into same conditional as
3330         mknod.
3331         * time/sys/time.h: futimesat is not among the functions accepted
3332         into the POSIX standard.
3334         * include/features.h: If no feature selection given and we select
3335         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3336         * posix/Versions: Export __posix_getopt.
3337         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3338         Use it to alternatively initialize __posixly_correct.
3339         (_getopt_internal_r): Take addition parameter.  Pass on to
3340         _getopt_initialize.
3341         (_getopt_internal): Take addition parameter.  Pass on to
3342         _getopt_internal_r.
3343         (getopt): Pass additional zero to _getopt_internal.
3344         (__posix_getopt): New function.
3345         * posix/getopt.h: Add redirection for getopt.
3346         * posix/getopt1.c (getopt_long): Pass additional zero to
3347         _getopt_internal.
3348         (getopt_long_only): Likewise.
3349         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3350         (_getopt_long_only_r): Likewise.
3351         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3352         _getopt_internal_r.
3354 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3356         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3357         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3358         * sysdeps/posix/sysconf.c (__sysconf): Handle
3359         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3360         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3362 2009-02-24  Roland McGrath  <roland@redhat.com>
3364         [BZ #9895]
3365         * README.template: Reworded not to use substituted version number.
3366         Renamed to ...
3367         * README: ... here (no longer generated).
3368         * Makefile (README): Target removed.
3370 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3372         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3373         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3374         instead.
3376         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3378         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3380 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3382         * po/bg.po: Update from translation team.
3384 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3386         * stdlib/monetary.h: Uglify function parameter names.
3387         * sunrpc/rpc/pmap_clnt.h: Likewise.
3388         * sunrpc/rpc/svc.h: Likewise.
3389         * sunrpc/rpc/xdr.h: Likewise.
3390         * sunrpc/rpc/clnt.h: Likewise.
3391         * resolv/netdb.h: Likewise.
3392         * resolv/arpa/nameser.h: Likewise.
3393         * resolv/resolv.h: Likewise.
3394         * argp/argp.h: Likewise.
3395         * locale/langinfo.h: Likewise.
3396         * io/sys/stat.h: Likewise.
3397         * posix/spawn.h: Likewise.
3398         * nis/rpcsvc/nislib.h: Likewise.
3399         * malloc/obstack.h: Likewise.
3400         * sysdeps/ia64/bits/link.h: Likewise.
3401         * sysdeps/i386/bits/link.h: Likewise.
3402         * sysdeps/s390/bits/link.h: Likewise.
3403         * sysdeps/powerpc/bits/link.h: Likewise.
3404         * sysdeps/x86_64/bits/link.h: Likewise.
3405         * sysdeps/sparc/bits/link.h: Likewise.
3406         * sysdeps/sh/bits/link.h: Likewise.
3407         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3408         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3409         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3410         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3412 2008-12-01  Fredrik Unger  <fred@tree.se>
3414         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3415         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3416         _FP_UNPACK_RAW_2, fix up first argument.
3418 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3420         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3421         (GET_NPROCS_PARSER): Change parameters and use next_line.
3422         (__get_nprocs): Rewrite to not use stdio routines.
3423         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3424         Change parameters and use next_line.
3426 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3428         [BZ #5381]
3429         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3430         Change mempool_alloc prototype.
3431         * nscd/mem.c (gc): Don't handle mem_in_flight.
3432         (mempool_alloc): Third parameter now only indicates whether this is the
3433         first call (to allocate data) or not.  If it is, get db rdlock.
3434         Release it on error.  Don't handle mem_in_flight.
3435         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3436         Adjust third parameter of mempool_alloc calls.
3437         Nothing to do here in case mempool_alloc fails.
3438         Avoid local variable shadowing parameter.  No need to get db rdlock
3439         before calling cache_add.
3440         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3441         no mem_in_flight array anymore.
3442         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3443         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3444         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3445         in case mempool_alloc fails. No need to get db rdlock before calling
3446         cache_add.
3447         * nscd/hstcache.c (cache_addhst): Likewise.
3448         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3449         * nscd/servicescache.c (cache_addserv): Likewise.
3450         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3452 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3454         * po/lt.po: Update from translation team.
3456 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3458         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3459         defined, allow additional data to be added using the optional
3460         MORE_ELF_HEADER_DATA macro.
3461         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3462         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3464 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3466         * include/atomic.h: Define catomic_and if not already defined.
3467         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3468         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3470 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3472         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3473         Change all callers.
3474         (_int_realloc): Likewise.  Third argument is now padded size
3475         All _int_* functions are now static.
3477         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3478         * malloc/arena.c: Likewise.
3479         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3480         functions.
3482         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3483         easily.
3485         * malloc/malloc.c: Add branch prediction for use of the hooks.
3487         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3489 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3491         [BZ #7095]
3492         * bits/confname.h: Add SUSv7 macros for getconf environments.
3493         * bits/environments.h: Likewise.
3494         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3495         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3496         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3497         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3498         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3499         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3500         * posix/getconf.c: Likewise.
3501         * posix/sysconf.c: Likewise.
3502         * sysdeps/posix/sysconf.c: Likewise.
3503         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3504         environments.
3506 2009-01-16  Petr Baudis  <pasky@suse.cz>
3508         [BZ #9753]
3509         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3510         even if we currently have zero nscount.
3512 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3514         [BZ #9781]
3515         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3516         the input line is too long.
3518         * po/Makefile (libc.pot): Add f_print as function taking c-format
3519         parameter.
3521         * debug/xtrace.sh: Unify translatable messages.
3522         * elf/ldd.bash.in: Likewise.
3523         * elf/sprof.c: Likewise.
3524         * locale/programs/locale.c: Likewise.
3525         * malloc/memusage.sh: Likewise.
3526         * nss/getent.c: Likewise.
3528 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3530         * debug/pcprofiledump.c (print_version,
3531         argp_program_version_hook): New function.
3532         * elf/ldconfig.c (more_help): New function.
3533         (argp): Use it.
3534         * elf/sln.c (usage): New function.
3535         (main): Support --help and --version.
3536         * malloc/memusagestat.c (print_version): New function.
3537         (argp_program_version_hook): New variable.
3538         * nscd/nscd.c (more_help): New function.
3539         (argp): Use it.
3540         * posix/getconf.c (main): Send --version output to stdout.
3541         Support --help.
3542         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3543         arguments.  All callers changed.
3544         (print_version): New function.
3545         (parseargs): Support --help and --version.
3546         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3547         changed.
3548         (print_version): New function.
3549         (main): Use getopt_long.  Support --help and --version.
3550         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3551         --version.
3553 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3555         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3556         (update_data): Fix handling of wrapping back
3557         to the beginning of the buffer.
3559         [BZ #9823]
3560         * stdio-common/psignal.c (psignal): Fix test for empty string.
3562 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3564         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3565         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3566         move _null_auth to .rodata.
3568         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3569         value of 24.
3571         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3573         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3574         today than when the original code was written.  Use larger
3575         buffers.  This also makes it unnecessary to have stat information,
3576         if this causes extra efforts.
3577         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3578         __alloc_dir.
3580 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3582         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3583         is set.
3584         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3585         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3586         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3587         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3588         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3589         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3591 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3593         * po/ru.po: Update from translation team.
3595 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3597         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3598         Add _tid slot to maintain consistency with kernel.
3600 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3602         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3603         incomplete characters at end of input buffer.
3604         * libio/Makefile (tests): Add tst-fgetwc.
3605         * libio/tst-fgetwc.c: New file.
3606         * libio/tst-fgetwc.input: New file.
3608 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3610         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3612 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3614         [BZ #9793]
3615         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3616         *OUTBUFSTART unless the whole output fit into the buffer.
3617         * iconv/Makefile (tests): Add tst-iconv4.
3618         * iconv/tst-iconv4.c: New file.
3620 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3622         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3623         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3625 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3627         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3628         newer linker scripts.
3630 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3632         [BZ #7040]
3633         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3634         inotify_rm_watch should have type int.
3636 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3638         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3639         Make aligned_restore_vmx a local symbol.
3640         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3641         Likewise.
3643 2009-01-30  Andreas Jaeger  <aj@suse.de>
3645         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3646         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3647         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3648         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3649         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3650         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3651         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3653 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3655         [BZ #9726]
3656         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3657         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3659 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3661         [BZ #9726]
3662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3663         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3665         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3667 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3669         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3670         memcpy instead of memcmp.
3671         (_dl_setup_pointer_guard): Likewise.
3673 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3675         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3676         manipulated brk, use malloc_printerr.
3677         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3678         requests.
3680 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3682         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3683         rindex): For C++ add inlines so that they can be recognized as
3684         builtins.
3685         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3687 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3688             Jakub Jelinek  <jakub@redhat.com>
3690         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3691         * wcsmbs/wchar.h: Likewise.
3693 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3695         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3696         (stackinfo_sub_sp): Define.
3698 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3700         [BZ #9750]
3701         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3702         * include/alloca.h (alloca_account): Define.
3703         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3704         (stackinfo_sub_sp): Define.
3706         * nscd/connections.c (nscd_init): If database file access fails
3707         check whether this is due to permission problems and bail in that
3708         case.
3710         [BZ #9741]
3711         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3712         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3714 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3716         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3717         Add "t" to clobber list.
3718         (INTERNAL_SYSCALL_NCS): Likewise.
3720 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3722         * nss/getent.c (print_networks): Don't print comma between aliases.
3724 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3726         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3728         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3729         the hash table.
3730         * misc/Makefile (tests): Add bug-hsearch1.
3731         * misc/bug-hsearch1.c: New file.
3733 2009-01-22  Roland McGrath  <roland@redhat.com>
3735         * Makeconfig (%.v.i): Strip trailing # comments,
3736         not only whole-line comments.
3738 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3740         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3741         one parameter.  If non-NULL use it to initialize return value.
3742         (_dl_setup_pointer_guard): New function.
3743         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3744         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3745         * elf/rtld.c (security_init): Pass _dl_random to
3746         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3747         pointer_chk_guard.
3748         * elf/dl-sysdep.c (_dl_random): New variable.
3749         (_dl_sysdep_start): Handle AT_RANDOM.
3750         (_dl_show_auxv): Likewise.
3751         * elf/dl-support.c (_dl_random): New variable.
3752         (_dl_aux_init): Handle AT_RANDOM.
3753         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3754         to _dl_setup_stack_chk_guard.
3756         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3758 2009-01-10  Roland McGrath  <roland@redhat.com>
3760         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3762 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3764         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3766         [BZ #9706]
3767         * nss/nss_files/files-parse.c (strtou32): New function.
3768         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3769         across 32-bit and 64-bit platforms.
3770         (INT_FIELD_MAYBE_NULL): Likewise.
3772 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3774         [BZ #9720]
3775         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3776         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3777         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3778         Likewise.
3780 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3782         [BZ #697]
3783         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3784         being NULL also if there are no backreferences.
3785         * posix/rxspencer/tests: Add testcases.
3787 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3789         [BZ #9697]
3790         * posix/bug-regex17.c: Add testcases.
3791         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3792         handling.
3794 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3796         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3797         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3798         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3799         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3800         for elf subdir.
3801         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3802         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3803         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3804         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3805         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3806         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3808 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3810         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3811         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3812         re_string_skip_chars, re_string_reconstruct): Likewise.
3813         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3815 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3817         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3818         adjust the buffer alignment.
3820 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3822         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3823         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3824         net/route.h.
3826         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3827         flavor to description only when flavor is not NULL.
3829         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3830         mutex after SIGIO/SIGURG lookup loop.
3832 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3834         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3836 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3838         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3839         handling.
3841 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3843         * sysdeps/unix/sysv/linux/kernel-features.h
3844         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3846         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3847         if no output is written.
3849         * version.h: Bump to 2.10 development.
3851         * posix/getconf.c: Update copyright year.
3852         * nss/getent.c: Likewise.
3853         * iconv/iconvconfig.c: Likewise.
3854         * iconv/iconv_prog.c: Likewise.
3855         * elf/ldconfig.c: Likewise.
3856         * catgets/gencat.c: Likewise.
3857         * csu/version.c: Likewise.
3858         * elf/ldd.bash.in: Likewise.
3859         * elf/sprof.c (print_version): Likewise.
3860         * locale/programs/locale.c: Likewise.
3861         * locale/programs/localedef.c: Likewise.
3862         * nscd/nscd.c (print_version): Likewise.
3863         * debug/xtrace.sh: Likewise.
3864         * malloc/memusage.sh: Likewise.
3865         * malloc/mtrace.pl: Likewise.
3866         * debug/catchsegv.sh: Likewise.
3868 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3870         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3871         script.
3873 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3875         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3876         gethostbyname4_r function call succeeded, just leave the loop.
3878         [BZ #9694]
3879         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3880         very end.
3881         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3882         * wctype/Makefile (tests): Add bug-wctypeh.
3883         * wctype/bug-wctypeh.c: New file.
3885         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3886         LOCALDOMAIN is defined.
3887         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3889         * sysdeps/x86_64/bits/select.h: New file.
3891         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3893 2008-12-21  Bruno Haible  <bruno@clisp.org>
3895         [BZ #9677]
3896         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3897         if no output is written.
3899 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3901         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3902         libc internal symbol __dup2 to avoid access through the PLT.
3904 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3906         [BZ #6545]
3907         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3908         available only for __USE_GNU.
3910         * inet/Makefile (tests): Add tst-getni2.
3911         * inet/tst-getni2.c: New file.
3913         [BZ #7080]
3914         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3915         NULL when NI_NAMEREQD is set.
3916         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3917         * inet/Makefile (tests): Add tst-getni1.
3918         * inet/tst-getni1.c: New file.
3920 2008-12-03  Petr Baudis  <pasky@suse.cz>
3922         [BZ #7067]
3923         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3924         instead of prune_lock.
3925         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3926         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3928 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3930         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3931         use.
3933         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3934         handling.
3936         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3937         after reading name server list.
3939         [BZ #7058]
3940         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3941         handling for host name aliases.
3943 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3945         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3946         instead of doing things manually.
3948 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3950         * posix/regex_internal.h (build_wcs_upper_buffer):
3951         Return type is reg_error_t.
3953 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3955         * posix/globtest.sh: Use mktemp to create temporary file and
3956         directory.
3958         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3959         sets correctly.
3960         (__CPU_CLR_S): Likewise.
3961         (__CPU_ISSET_S): Likewise.
3963 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3964             Ulrich Drepper  <drepper@redhat.com>
3966         * scripts/firstversion.awk: Use custom comparison function to compare
3967         version numbers.
3968         * scripts/versions.awk: Use sort invocation which can handle
3969         multi-digit sub-version numbers.
3971 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3973         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3974         * locale/iso-639.def: Add Chhattisgarhi entry.
3976 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3978         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3979         ESRCH return value.
3980         (_nss_dns_gethostbyname4_r): Likewise.
3981         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3982         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3983         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3984         the no_data variable.
3986         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3987         information at the correct index.
3989         * socket/sys/socket.h: Declare accept4.
3990         * socket/accept4.c: New file.
3991         * sysdeps/unix/sysv/linux/accept4.c: New file.
3992         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3993         * socket/Makefile (routines): Add accept4.
3994         * socket/Versions: Export accept4 with version GLIBC_2.10.
3995         * socket/paccept.c: Removed.
3996         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3997         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3998         * Versions.def: Define GLIBC_2.10 for libc.
3999         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4001         * nscd/connections.c: Use accept4.
4003         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4005 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4007         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4008         flag already set.
4010         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4011         not exist.
4012         * stdlib/Makefile (tests): Add tst-unsetenv1.
4013         * stdlib/tst-unsetenv1.c: New file.
4015 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4017         * login/utmp_file.c (file_writable): New variable.
4018         (setutent_file): Don't try to open file for writing.
4019         (pututline_file): Before writing, make descriptor writable if
4020         necessary.
4022 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4024         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4025         to IPv4 or IPv6 if an interface has been found.
4027 2008-11-26  Roland McGrath  <roland@redhat.com>
4029         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4030         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4032         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4033         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4034         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4036         * elf/elf.h (NT_386_IOPERM): New macro.
4037         (NT_PPC_VSX): New macro.
4039 2008-11-25  Roland McGrath  <roland@redhat.com>
4041         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4042         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4043         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4044         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4045         Subdirectories moved to ports repository.
4046         * configure.in (base_machine): Remove alpha case.
4048 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4050         * sysdeps/mach/strerror_l.c: New file.
4052 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4054         [BZ #6411]
4055         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4056         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4057         magic numbers.
4058         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4059         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4060         (relax_fenv_state): Same as above.
4061         (FPSCR_29): Reserve bit in ISA 2.05.
4062         (FPSCR_NI): Provide define for compat.
4063         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4064         magic numbers.
4065         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4066         magic numbers.
4067         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4068         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4069         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4070         access to hwcap to account for hwcap size increase to uint64_t.
4071         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4072         Likewise.
4073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4074         (*setcontext): Likewise.
4075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4076         New file.
4077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4078         New file.
4079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4080         (*setcontext): dynamically select mtfsf insn based on
4081         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4082         increase to uint64_t.
4083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4084         (*swapcontext): dynamically select mtfsf insn based on
4085         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4086         increase to uint64_t.
4087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4088         New file.
4089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4090         New file.
4091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4092         (*setcontext): dynamically select mtfsf insn based on
4093         PPC_FEATURE_HAS_DFP.
4094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4095         (*swapcontext): dynamically select mtfsf insn based on
4096         PPC_FEATURE_HAS_DFP.
4098 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4100         * version.h: Bump for 2.9 release.
4101         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4103         [BZ #7029]
4104         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4105         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4106         all the rounding.
4108 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4110         [BZ #7009]
4111         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4112         unknown request types for now.
4114 2008-11-11  Roland McGrath  <roland@redhat.com>
4116         * sysdeps/x86_64/configure: New file.
4118         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4119         * configure: Regenerated.
4121 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4123         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4124         correct instruction to remove the stack frame.
4126 2008-11-03  Michael Matz  <matz@suse.de>
4128         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4129         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4131 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4133         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4134         Remove.
4136         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4137         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4138         of the thread variable instead of void *.
4139         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4140         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4141         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4142         __libc_tsd_define arguments.
4143         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4144         __libc_tsd_address arguments.  Remove union hack.
4145         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4146         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4147         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4148         Adjust __libc_tsd_{set,get} arguments.
4149         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4150         __libc_tsd_define arguments.
4151         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4152         arguments.
4153         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4154         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4155         (LOCALE): Adjust __libc_tsd_define arguments.
4156         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4157         arguments.
4158         (LOCALE): Adjust __libc_tsd_define arguments.
4159         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4160         arguments.
4161         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4162         arguments.
4164 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4166         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4167         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4169 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4171         [BZ #6966]
4172         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4174 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4175             Ulrich Drepper  <drepper@redhat.com>
4177         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4178         definition for GCC 3.1 and later.
4180 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4182         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4183         refetch dtv, as it might have changed.
4184         * elf/Makefile: Add rules to build and run tst-tls18.
4185         * elf/tst-tls18.c: New test.
4186         * elf/tst-tlsmod18a.c: New file.
4188 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4190         [BZ #6875]
4191         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4193 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4195         [BZ #6867]
4196         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4198         [BZ #6919]
4199         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4200         Fix length of copy operation.
4202 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4204         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4205         and fix its calling convention.
4207 2008-10-07  Andreas Schwab  <schwab@suse.de>
4209         [BZ #6942]
4210         * resolv/res_send.c (send_vc): Fix last change.
4211         (send_dg): Align here as well.
4213 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4215         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4216         return value in case rlimit is RLIM_INFINITY.
4218         [BZ #6947]
4219         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4220         for UL_SETFSIZE.
4221         * resource/Makefile (tests): Add bug-ulimit1.
4222         * resource/bug-ulimit1.c: New file.
4224         [BZ #6974]
4225         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4226         without dot.  Properly terminate the string with a null byte.
4227         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4229         [BZ #6980]
4230         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4231         negative sizees.
4232         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4233         negative __size.
4235         [BZ #6995]
4236         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4238 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4240         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4241         abort if there is no initgroups_dyn function.
4243         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4244         result if any of the queries really provided an answer.
4246 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4248         * po/lt.po: Update from translation team.
4250 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4252         * po/id.po: Update from translation team.
4254 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4256         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4257         Fix tests for existence of second reply.
4259 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4261         * po/id.po: New file.
4262         Contributed by the Indonesian translation team.
4264 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4266         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4267         initialization.
4269 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4271         * elf/Makefile: Add rules to build and run tst-tls17.
4272         * elf/tst-tls17.c: New test.
4273         * elf/tst-tlsmod17a.c: New file.
4274         * elf/tst-tlsmod17b.c: Likewise.
4276 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4278         * stdlib/divmod_1.c: Use correct type for dummy variable.
4279         * stdlib/mod_1.c: Likewise.
4281 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4283         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4285 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4287         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4288         __nonnull order for C++.
4289         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4290         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4292 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4294         * stdlib/longlong.h: Update from GCC.
4296 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4297             David S. Miller  <davem@davemloft.net>
4299         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4300         make sure any registers used with 64-bit 'branch-on-register'
4301         instructions have their top 32-bits clear.
4302         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4303         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4305 2008-09-18  Andreas Schwab  <schwab@suse.de>
4307         [BZ #6942]
4308         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4309         Properly handle partial reads.
4311 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4313         * elf/elf.h (STO_MIPS_PLT): New.
4314         (R_MIPS_COPY): New.
4315         (R_MIPS_JUMP_SLOT): New.
4316         (R_MIPS_NUM): Redefine to 128.
4317         (DT_MIPS_PLTGOT): New.
4318         (DT_MIPS_RWPLT): New.
4319         (DT_MIPS_NUM): Redefine to 0x35.
4321 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4323         * timezone/africa: Update from tzdata2008f.
4324         * timezone/asia: Likewise.
4325         * timezone/australasia: Likewise.
4326         * timezone/europe: Likewise.
4327         * timezone/leapseconds: Likewise.
4328         * timezone/northamerica: Likewise.
4329         * timezone/southamerica: Likewise.
4330         * timezone/zone.tab: Likewise.
4332 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4334         * nscd/connections.c: Disable use of paccept for now.
4336 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4338         * socket/Versions: Remove paccept export for GLIBC_2.9.
4339         * socket/Makefile (routines): Remove paccept.
4340         * socket/sys/socket.h: Remove paccept declaration.
4342         * po/sv.po: Update from translation team.
4344 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4346         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4347         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4349 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4351         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4352         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4354 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4356         * sunrpc/rpc/svc.h: Declare svcfd_create.
4357         Patch by Michael Solberg <msolberg@redhat.com>.
4359 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4360             Ulrich Drepper  <drepper@redhat.com>
4362         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4363         _int_valloc fails.
4364         (public_pVALLOc): Likewise.
4366 2008-09-02  Andreas Jaeger  <aj@suse.de>
4368         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4369         commit.
4371 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4373         [BZ #6860]
4374         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4376 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4378         * Makefile (check-data): Check data directory in add-ons.
4379         * elf/Makefile (check-data): Likewise.
4381 2008-08-18  Roland McGrath  <roland@redhat.com>
4383         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4384         * configure: Regenerated.
4385         * config.make.in (cflags-cpu): New substituted variable.
4386         (with-cpu): Variable removed.
4387         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4389 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4391         [BZ #6845]
4392         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4393         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4394         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4395         redundant.  Functions which call floating point assembler operations
4396         should go into a sysdeps powerpc/fpu directory.
4398 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4400         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4401         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4403 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4405         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4407         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4408         change related to AT_EXECFN.  We cannot use that string.
4409         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4410         _dl_execfn member.
4411         * elf/dl-support.c: Remove _dl_execfn variable.
4412         (_dl_aux_init): Remove handling of AT_EXECFN.
4413         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4414         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4416 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4418         [BZ #6544]
4419         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4420         byte gets added to writes and seeks from the end use the length of
4421         the buffer and not the currently terminating NUL byte.
4423         [BZ #6634]
4424         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4425         Set to true if locking failed.
4426         (getutid_r_file): Adjust caller.
4427         (pututline_file): Likewise.  Return NULL in this case.
4428         Patch mostly by halesh.s@gmail.com.
4430 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4432         [BZ #6589]
4433         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4434         Define.
4435         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4437 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4439         [BZ #6839]
4440         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4441         macro since it is now available in elf/dynamic-link.h.
4443 2008-08-12  Roland McGrath  <roland@frob.com>
4445         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4446         in case used outside of libc.
4447         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4449 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4451         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4452         directly instead of going through dn_comp.
4454 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4456         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4457         Fix asm constraints.
4459 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4461         [BZ #6790]
4462         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4463         (IPV6_PMTUDISC_PROBE): Likewise.
4465 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4467         [BZ #6791]
4468         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4470 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4471             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4473         [BZ #6817]
4474         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4475         Added the members 'vsx' and 'arch_2_06'.
4476         (_dl_powerpc_platforms): Add the member 'power7'.
4477         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4478         to reflect the changes required by VSX and ISA 2.06.
4479         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4480         'power7'.
4481         Defined PPC_PLATFORM_POWER7.
4482         (_dl_string_platform): Add support for POWER7.
4483         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4484         capability and ISA 2.06.
4486 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4488         [BZ #6824]
4489         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4490         macro to detect use of 128 bit long double.
4491         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4493 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4495         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4497         [BZ #5794]
4498         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4499         parameters.
4500         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4501         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4503 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4505         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4506         guaranteed to be large enough to read inotify event.  Ignore
4507         EAGAIN error.  Better error message.  Add branch predicition.
4508         (main_loop_epoll): Likewise.
4510 2008-08-02  Roland McGrath  <roland@frob.com>
4512         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4513         Add memory clobbers.
4515 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4517         * manual/arith.texi: Avoid @strong{Note:}.
4518         * manual/creature.texi: Likewise.
4519         * manual/filesys.texi: Likewise.
4520         * manual/math.texi: Likewise.
4521         * manual/memory.texi: Likewise.
4522         * manual/resource.texi: Likewise.
4523         * manual/syslog.texi: Likewise.
4524         * manual/time.texi: Likewise.
4526         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4527         to prevent warning.
4529 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4531         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4532         new epoll_create1 interface.
4533         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4534         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4535         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4537         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4538         (NS_GET32): Likewise.
4540         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4541         syscalls, too.
4543         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4544         use the AT_EXECFN value if it is no absolute path.
4545         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4546         __ASSUME_AT_EXECFN.
4548         * Versions.def: Add GLIBC_2.9 to libresolv.
4549         * include/resolv.h: Remove hidden proto declarations for __ns_*
4550         functions.  Add them for __dn_count_labels and __p_secstodate.
4551         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4552         Define ns_msg_getflags macro here.
4553         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4554         and __p_secstodate.
4555         * resolv/Versions: Export functions from <arpa/nameser.h> from
4556         libresolv in version GLIBC_2.9.
4557         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4558         hidden definitions.
4559         * resolv/ns_netint.c: Likewise.
4560         * resolv/ns_parse.c: Likewise.
4561         * resolv/ns_print.c: Likewise.
4562         * resolv/ns_samedomain.c: Likewise.
4563         * resolv/ns_ttl.c: Likewise.
4564         * resolv/arpa/nameser_compat.h: Likewise.
4565         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4566         function calls.
4567         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4568         instead of ns_get16.
4569         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4570         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4571         (gaih_getanswer_slice): Likewise.
4572         * resolv/Makefile (libresolv-routines): Add ns_date.
4573         * resolv/ns_date.c: New file.
4575         * elf/Makefile (check-localplt.out): Also check libresolv and
4576         libcrypt.
4578 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4580         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4581         __ASSUME_O_CLOEXEC.
4583 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4585         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4586         buffer passed to NSS functions.
4588         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4590         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4591         Define.
4593         * misc/syslog.c (openlog_internal): Fix compile problem.
4595 2008-07-28  Roland McGrath  <roland@redhat.com>
4597         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4599 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4601         * io/ftw.c (add_object): Remove inline to avoid warning.
4603         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4605         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4606         Use it instead of locally defined resplen2 variable.
4607         (res_nsend): Adjust for __libc_res_nsend interface change.
4608         (send_vc): Initialize *resplen2 if necessary.  Read length of
4609         package into an appropriately aligned variable.  Store converted length
4610         in new variable and use it appropriately.
4611         Add branch prediction help.
4612         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4613         and pass it on to __libc_res_nsend.  Adjust all callers.
4614         (__libc_res_nsearch): Likewise.
4615         (__libc_res_nqeurydomain): Likewise.
4616         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4617         change.
4618         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4619         Define resplen2 variable and pass it to __libc_res_nsearch and then
4620         to gaih_getanswer.
4621         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4622         Add branch prediction.
4623         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4624         (gaih_getanswer): Don't decode second slice if first one failed due
4625         to a too small buffer.  Don't let not found status of second
4626         decoder shadow results of the first.
4627         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4628         and __libc_res_nquery interface changes
4629         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4630         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4631         __libc_res_nsearch, and __libc_res_nsend.
4632         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4633         change.
4634         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4635         __libc_res_nsearch interface changes.
4637 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4639         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4641         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4642         file descriptors with close-on-exec set.
4643         (exec_comm_child): Fix the case where the write end of the pipe is
4644         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4646         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4647         * io/pipe2.c: Likewise.
4648         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4649         instead of __ASSUME_PACCEPT.
4650         * include/unistd.h: Declare __have_pipe2.
4651         * libio/iopopen.c: Implement "e" flag.
4652         * libio/Makefile (tests): Add tst-popen1.
4653         * libio/tst-popen1.c: New file.
4655         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4656         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4658 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4660         [BZ #6771]
4661         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4662         success call of _IO_SEEKOFF or calls which failed because the
4663         descriptor is for a pipe.
4665         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4666         magic number.
4668         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4670         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4671         F_SETFD use if we know fopen set the flag.
4673         * login/utmp_file.c (setutent_file): Minor optimization in case
4674         O_CLOEXEC is available.
4676 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4678         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4679         * elf/Makefile: Use pie-ccflag variable.
4680         * nscd/Makefile: Likewise.
4681         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4683 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4685         [BZ #6724]
4686         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4687         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4688         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4689         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4690         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4691         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4692         utmp32, utmpx32 and login32.
4693         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4694         versions of struct utmp functions to libc and libutil.
4695         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4696         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4697         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4698         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4699         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4700         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4701         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4702         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4703         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4704         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4705         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4706         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4707         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4708         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4709         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4710         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4711         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4712         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4713         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4714         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4715         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4716         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4718 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4720         * scripts/gen-as-const.awk: Generate more widely usable code by
4721         using 64-bit arithmetic.
4723         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4724         the same treatment as narrow output code in last patch.
4726         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4728         [BZ #6763]
4729         * elf/dl-load.c (local_strdup): Remove inline.
4730         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4731         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4732         part of the object.
4734         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4736 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4738         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4739         the new syscalls, too.
4741         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4742         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4744         [BZ #6698]
4745         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4746         parameter for end of buffer.  If temporary copy is too large use
4747         malloc.
4748         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4749         interface change.
4750         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4751         string rewrite when allocating buffer.
4753         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4754         syscalls, too.
4756         * nscd/connections.c (nscd_init): Clean up fcntl call.
4758         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4759         SOCK_NONBLOCK if possible.
4761         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4762         SOCK_CLOEXEC if available.
4764         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4765         __libc_clntudp_bufcreate_internal.
4766         * include/sys/socket.h: Declare __have_sock_cloexec.
4767         * socket/Makefile (aux): Add have_sock_cloexec.
4768         * socket/have_sock_cloexec.c: New file.
4769         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4770         __libc_clntudp_bufcreate.
4771         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4772         which takes an additional parameter.  Create socket with non-blocking
4773         mode and close-on-exec flag set, if wanted.
4774         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4775         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4776         instead of clntudp_create.  The socket has already the close-on-exec
4777         flag set if SOCK_CLOEXEC is defined.
4779 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4781         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4782         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4783         appropriate.
4784         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4785         non-blocking mode by using socket, paccept, and inotify_init1.
4787         * Versions.def (glibc): Add GLIBC_2.9.
4788         * io/Makefile (routines): Add dup3 and pipe2.
4789         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4790         * io/dup3.c: New file.
4791         * io/pipe2.c: New file.
4792         * posix/unistd.h: Declare dup3 and pipe2.
4793         * socket/Makefile (routines): Add paccept.
4794         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4795         * socket/paccept.c: New file.
4796         * socket/sys/socket.h: Declare paccept.
4797         * sysdeps/unix/syscalls.list: Add entry for dup3.
4798         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4799         epoll_create2 and inotify_init1.
4800         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4801         * sysdeps/unix/sysv/linux/paccept.c: New file.
4802         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4803         possible.
4804         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4805         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4806         inotify_init1, and pipe2 entries.
4807         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4808         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4809         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4810         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4811         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4812         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4813         SOCK_NONBLOCK.
4814         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4815         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4816         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4817         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4818         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4819         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4820         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4821         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4822         EPOLL_NONBLOCK.  Declare epoll_create2.
4823         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4824         EFD_NONBLOCK.
4825         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4826         IN_NONBLOCK.  Declare inotify_init1.
4827         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4828         SFD_NONBLOCK.
4829         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4830         TFD_NONBLOCK.
4832         * elf/elf.h: Define AT_EXECFN.
4833         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4834         LD_ORIGIN_PATH.
4835         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4836         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4837         if __ASSUME_AT_EXECFN is defined.
4838         (_dl_aux_init): Handle AT_EXECFN.
4839         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4840         for 2.6.27 and up.
4841         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4842         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4843         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4844         _dl_execfn if available and avoid compatibility code if
4845         __ASSUME_AT_EXECFN is defined.
4847         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4848         _dl_discover_osversion only for older kernels.
4850 2008-07-22  Roland McGrath  <roland@frob.com>
4852         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4854 2008-07-21  Roland McGrath  <roland@frob.com>
4856         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4857         returned too much data out of line.
4859 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4861         * locale/setlocale.c (setname): Remove inline to avoid compiler
4862         warning.
4864         [BZ #6712]
4865         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4867 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4869         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4870         doesn't manage to write anything, fail.
4872         * malloc/hooks.c (__malloc_check_init): Remove printf.
4874 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4876         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4878 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4880         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4881         from inotify.
4882         (main_loop_epoll): Likewise.
4884 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4886         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4888         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4889         if DEBUG is defined.
4891         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4892         query.  Adjust buffer size computation for padding.
4894 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4896         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4897         * stdio-common/tst-setvbuf1.c: New file.
4898         * stdio-common/tst-setvbuf1.expect: New file.
4900         [BZ #6719]
4901         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4902         when selecting fully-buffered stream.
4903         Patch by Wang Xin <wxinee@gmail.com>.
4905 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4907         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4908         (__open_2): New function.
4909         (__open64_2): New alias to __open_2.
4910         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4911         (__openat_2): New function.
4912         (__openat64_2): New alias to __openat_2.
4914 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4916         [BZ #6723]
4917         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4919 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4921         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4922         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4923         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4924         __hurd_dfail.
4925         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4926         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4927         * sysdeps/mach/hurd/send.c (__send): Likewise.
4928         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4929         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4931 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4933         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4934         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4935         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4936         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4937         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4938         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4940 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4942         [BZ #6657]
4943         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4944         of %EY.
4945         Patch by Petr Baudis.
4947 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4949         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4950         Patch by Peter Jones <pjones@redhat.com>.
4952 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4954         [BZ #6654]
4955         * stdlib/canonicalize.c (__realpath): readlink can write too much
4956         into the buffer on platforms without PATH_MAX.
4958 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4960         [BZ #6653]
4961         * posix/tst-regex.c (main): Rename to...
4962         (do_test): ... this. Remove cmdline option processing.
4963         (TIMEOUT): Define.
4964         (TEST_FUNCTION): Define.
4965         (CMDLINE_OPTIONS): Define.
4967 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4969         [BZ #5210]
4970         * configure.in: Add -Werror to -fstack-protector test to catch
4971         unsupported architectures.
4972         Patch by Gilles Esponasse <g.esp@free.fr>.
4974 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4976         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4977         getcontext returns ENOSYS.
4979 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4981         * nscd/connections.c (main_loop_poll): Fix test for read error.
4982         (main_loop_epoll): Likewise.
4984 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4986         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4987         better place so it is not called when nscd is used.
4989         * nscd/connections.c: Also recognize and handle changes to the
4990         resolver configuration file.
4992 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4994         * time/strftime.c: Pass reference to tzset_called around to handle
4995         recursive calls.
4997         [BZ #6612]
4998         * time/strftime.c (__strftime_internal): Call tzset() only
4999         when printing timezone-dependent values.
5000         Based on a patch by Petr Baudis <pasky@suse.cz>.
5002         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5003         unconditionally use second gaih_getanswer_slice result.
5005         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5006         (getaddrinfo): RES must always be non-NULL.
5008 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5010         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5011         cr[34] registers.
5012         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5013         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5014         Likewise.
5015         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5016         register.
5018 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5020         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5021         fields.
5022         * nscd/connections.c (inotify_fd): New variable.
5023         (nscd_init): Try to open an inotify descriptor.
5024         If successful, watch files for databases using inotify instead of
5025         having prune threads stat the files.
5026         (nscd_run_prune): Recognize clear_cache flag being set and call
5027         prune_cache appropriately.
5028         (main_loop_poll): Add inotify descriptor to wait set and handle the
5029         reported changes.
5030         (main_loop_epoll): Likewise.
5031         * nscd/cache.c (prune_cache): Don't stat files for databases if
5032         inotify is used.
5033         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5034         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5036         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5037         fixed-size portion of the record.
5038         * nscd/servicescache.c (cache_addserv): Likewise.
5039         * nscd/pwdcache.c (cache_addpw): Likewise.
5040         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5042 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5044         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5045         out we don't use uninitialized memory.
5047         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5048         the client.
5050 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5052         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5053         ignore T_DNAME messages.
5054         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5056 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5058         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5059         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5061 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5063         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5064         instead of portstr to nscd_getserv_r.  Patch by
5065         Roman Kagan <rkagan@mail.ru>.
5067 2008-05-26  Jim Meyering  <meyering@redhat.com>
5069         Remove more useless "if" tests before "free".
5070         * include/inline-hashtab.h (htab_delete): Likewise.
5071         * libio/freopen.c (freopen): Likewise.
5072         * libio/freopen64.c (freopen64): Likewise.
5073         * locale/programs/ld-collate.c (collate_read): Likewise.
5074         * misc/fstab.c (libc_freeres_fn): Likewise.
5075         * posix/glob.c (globfree): Likewise.
5077 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5079         * string/Makefile (strop-tests): Add memmem.
5080         * string/test-memmem.c: New file.
5081         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5082         (test_init): Size buf1 according to BUF1PAGES.
5084 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5086         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5087         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5088         (CFLAGS-scanf17.c): New.
5089         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5090         * stdio-common/scanf15.c (main): Likewise.
5091         * stdio-common/scanf16.c: New file.
5092         * stdio-common/scanf17.c: New file.
5094 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5096         * resolv/res_send.c (send_dg): If we already have one of two
5097         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5098         use the one answer insted of failing.
5100 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5102         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5103         being executed on PowerPC as the expected result exceeds IBM
5104         long double 128 __LDBL_MAX__.
5106 2008-05-21  Roland McGrath  <roland@redhat.com>
5108         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5110         * Makefile (check-data): Use $(abi-name) before other guesses.
5111         Look in $(add-ons) dirs before scripts/data/.
5112         * elf/Makefile (check-data): Likewise.
5114         * scripts/soversions.awk: Grok ABI line.
5115         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5116         Emit definition for abi-name variable.
5118 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5120         * string/endian.h: Define new fixed-size hto* and *toh macros only
5121         if [__USE_BSD].
5123         * iconvdata/Depend: Add localedata.
5125 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5127         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5129 2008-05-08  David S. Miller  <davem@davemloft.net>
5131         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5132         HIDDEN_JUMPTARGET.
5133         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5134         (__SYSCALL_CLOBBERS): Remove %g* registers.
5135         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5136         (__SYSCALL_CLOBBERS): Likewise.
5137         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5138         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5140 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5142         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5143         (CALL_ERRNO_LOCATION): Define.
5144         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5145         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5146         (CALL_ERRNO_LOCATION): Define.
5147         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5148         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5149         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5151 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5153         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5154         variable.
5156 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5158         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5159         (FIRST_FRAME_POINTER): Define.
5161 2008-05-09  David S. Miller  <davem@davemloft.net>
5163         * sysdeps/sparc/sparc64/backtrace.c: New file.
5165 2008-05-14  David S. Miller  <davem@davemloft.net>
5167         * sysdeps/sparc/machine-gmon.h: New file.
5168         * sysdeps/sparc/sparc-mcount.S: Likewise.
5169         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5170         sysdep_routines in gmon directory.
5172 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5174         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5176 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5178         * resolv/res_query.c (__libc_res_nquery): In case one of two
5179         answer was too short don't try to read that answer's header.
5181         * resolv/res_send.c (send_dg): In case of timeout and there are
5182         two queries and one has been answered, return value indicating
5183         success.
5185 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5187         * nscd/cache.c (cache_add): Take additional parameter specifying
5188         whether this is in response of a cache refill.  Check alignment
5189         of package data.  Revamp waking of pruning thread.
5190         (prune_cache): Small optimization.
5191         * nscd/nscd.h: Adjust cache_add prototypes.
5192         * nscd/aicache.c: Adjust cache_add calls.
5193         * nscd/grpcache.c: Likewise.
5194         * nscd/hstcache.c: Likewise.
5195         * nscd/initgrcache.c: Likewise.
5196         * nscd/pwdcache.c: Likewise.
5197         * nscd/servicescache.c: Likewise.
5198         * nscd/connections.c (restart): Really disable cache use before
5199         exec attempt.  If it fails, reenable cache.
5200         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5201         time to max to be able to notice concurrent cache additions.  Unlock
5202         prune_lock while performing gc.  Afterwards compute wakeup time with
5203         current wakeup_time value in mind.
5205 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5207         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5209         * nscd/mem.c (gc): Correctly determine highest used array element
5210         in mark.
5212         * nscd/mem.c (markrange): Add assert to check entries are all
5213         aligned.  Small cleanup in bitmap use.
5215         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5216         blockoff of type nscd_ssize_t.
5217         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5218         (mempoll_alloc): Record block offset and not address.
5220         * nscd/mem.c (gc): Fix test for stack overuse.
5222         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5223         more asserts.
5225         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5226         entry is available, believe it.
5228         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5229         no answers return NSS_STATUS_NOTFOUND.
5230         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5231         buffer does not have any content.
5233 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5235         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5237         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5238         lookup, don't assign canon unconditionally.
5240 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5242         * string/Makefile (distribute): Add str-two-way.h.
5244 2008-03-29  Eric Blake  <ebb9@byu.net>
5246         Rewrite string searches to O(n) rather than O(n^2).
5247         * string/str-two-way.h: New file.  For linear fixed-allocation
5248         string searching.
5249         * string/memmem.c: New implementation.
5250         * string/strstr.c: New implementation.
5251         * string/strcasestr.c: New implementation.
5253 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5255         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5256         opr.ctx_type.
5257         (calc_first): Initialize constraint field.
5258         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5259         Use search_duplicated_node to avoid loops.  Fix grammar.
5260         (duplicate_node): Merge constraint field for all node types.
5261         (calc_eclosure_iter): Look at constraint field for all node types.
5262         * posix/regex_internal.c (create_cd_newstate): Don't look at
5263         create_cd_newstate.
5265 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5267         [BZ #6428]
5268         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5270         [BZ #6442]
5271         * string/endian.h: Add macros for fixed-size endian conversion.
5272         * bits/byteswap.h: Allow inclusion from <endian.h>.
5273         * sysdeps/i386/bits/byteswap.h: Likewise.
5274         * sysdeps/ia64/bits/byteswap.h: Likewise.
5275         * sysdeps/s390/bits/byteswap.h: Likewise.
5276         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5277         * string/Makefile (tests): Add tst-endian.
5278         * string/tst-endian.c: New file.
5280         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5281         Patch by Reuben Thomas.
5283 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5285         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5287 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5289         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5291         [BZ #6461]
5292         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5293         Add missing braces.
5294         (BODY for __gconv_transform_internal_ascii): Likewise.
5296         [BZ #6472]
5297         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5298         to be treated like link-local addresses.
5299         (match_prefix): Don't treat IPv4 loopback address special when
5300         converting to v4 mapped addressed.
5302         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5303         if necessary.
5304         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5305         * posix/tst-rfc3484-2.c: Likewise.
5306         * posix/tst-rfc3484-3.c: Likewise.
5308         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5309         and SCTP.
5311         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5313         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5315         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5317 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5319         * po/lt.po: New file.  From Lituanian translation team.
5321 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5323         Introduce TLS descriptors for i386 and x86_64.
5324         * include/inline-hashtab.h: New file, copied from 2005's
5325         libiberty, with fix for memory leak imported afterwards by
5326         Glauber de Oliveira Costa.
5327         * elf/tlsdeschtab.h: New file.
5328         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5329         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5330         (CHECK_STATIC_TLS): Move to...
5331         * elf/dynamic-link.h: ... this file.
5332         (TRY_STATIC_TLS): New macro.
5333         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5334         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5335         R_386_TLS_DESC): Define.
5336         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5337         binutils.
5338         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5339         R_X86_64_TLSDESC): Define.
5340         (R_386_NUM, R_X86_64_NUM): Adjust.
5341         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5342         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5343         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5344         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5345         release tlsdesc_table.
5346         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5347         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5348         (elf_machine_rel): Handle R_386_TLS_DESC.
5349         (elf_machine_rela): Likewise.
5350         (elf_machine_lazy_rel): Likewise.
5351         (elf_machine_lazy_rela): Likewise.
5352         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5353         * sysdeps/i386/dl-tlsdesc.S: New file.
5354         * sysdeps/i386/dl-tlsdesc.h: New file.
5355         * sysdeps/i386/tlsdesc.c: New file.
5356         * sysdeps/i386/tlsdesc.sym: New file.
5357         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5358         tlsdesc_table.
5359         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5360         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5361         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5362         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5363         release tlsdesc_table.
5364         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5365         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5366         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5367         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5368         (elf_machine_rela): Likewise.
5369         (elf_machine_lazy_rel): Likewise.
5370         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5371         (__tls_get_addr): Do not declare for non-shared compiles.
5372         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5373         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5374         * sysdeps/x86_64/tlsdesc.c: New file.
5375         * sysdeps/x86_64/tlsdesc.sym: New file.
5376         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5377         tlsdesc_table for both 32- and 64-bit structs.
5379 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5381         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5382         its own function.  This reduces the frame setup costs and more.
5384 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5386         [BZ #3406]
5387         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5388         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5390 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5392         * io/openat.c (__openat_2): Also pass fd to __openat.
5393         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5394         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5396         * string/tester.c (test_memcmp): Add a few more tests.
5397         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5399 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5401         * nscd/cache.c (cache_add): Before returning with failure and this
5402         is the first use of the record, mark it as unusable.
5403         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5404         reporting a failure.
5405         * nscd/grpcache.c: Likewise
5406         * nscd/hstcache.c: Likewise.
5407         * nscd/initgrcache.c: Likewise.
5408         * nscd/pwdcache.c: Likewise.
5409         * nscd/servicescache.c: Likewise.
5411 2008-05-10  Roland McGrath  <roland@redhat.com>
5413         [BZ #6505]
5414         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5416 2008-05-08  David S. Miller  <davem@davemloft.net>
5418         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5420         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5421         (__ieee754_y0l): Likewise.
5422         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5423         (__ieee754_y1l): Likewise.
5424         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5425         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5426         frexpl and ldexpl.  math_private.h provides them and the latter
5427         is not even used.
5428         (__log1pl): Use __frexpl.
5430 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5432         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5433         prototypes.
5434         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5435         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5436         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5437         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5438         af==AF_UNSPEC.
5439         (_nss_nis_gethostbyname4_r): New function.
5440         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5441         Change to also handle af==AF_UNSPEC.
5442         (get_tablename): New function.  Use it to avoid duplication.
5443         (_nss_nisplus_gethostbyname4_r): New function.
5444         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5445         available.
5446         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5447         * nss/nss.h: Define struct gaih_addrtuple.
5448         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5449         af==AF_UNSPEC.
5450         (_nss_files_gethostbyname4_r): New function.
5451         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5452         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5453         calls.
5454         * resolv/res_query.c (__libc_res_nquery): Take two additional
5455         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5456         look up IPv4 and IPv6.
5457         Change all callers.
5458         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5459         for an additional query and answer buffer.  Pass to send_vc and
5460         send_dg.
5461         (send_vc): Send possibly two requests and receive two answers.
5462         (send_dg): Likewise.
5463         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5464         __libc_res_nquery.
5465         (_nss_dns_gethostbyname4_r): New function.
5466         (gaih_getanswer_slice): Likewise.
5467         (gaih_getanswer): Likewise.
5468         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5469         __libc_res_nquery call.
5470         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5471         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5472         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5473         available.
5475 2008-05-05  David S. Miller  <davem@davemloft.net>
5477         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5478         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5480 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5482         Fix termios bit macros.
5483         Move *DLY definitions where they belong, in termios.h.
5484         Add *[0-3] definitions.
5485         Fixes confusion between VT and FF.
5486         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5487         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5488         are already defined to avoid collision with termios.h.
5489         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5490         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5491         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5492         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5493         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5494         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5495         VTDLY, VT0, VT1): New macros.
5496         [__USE_GNU] (OLCUC): Change value of macro.
5497         [__USE_XOPEN] (OFILL): New macro.
5498         [__USE_BSD] (CRTSCTS): Change value.
5499         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5500         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5501         (B7200, B14400, B28800, B76800): New macros.
5503 2008-05-01  David S. Miller  <davem@davemloft.net>
5505         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5506         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5507         (gen-as-const-headers): Add it.
5508         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5509         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5510         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5511         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5513         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5514         six system call parameters.
5515         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5517 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5519         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5520         RUSAGE_LWP.
5521         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5522         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5524 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5526         * stdlib/tst-setcontext.c: Include unistd.h.
5528 2008-04-25  David S. Miller  <davem@davemloft.net>
5530         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5531         Pass "union semun" properly in to sys_ipc, it must be passed
5532         by value, not by reference.
5534 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5536         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5537         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5538         * nscd/connections.c (mem_in_flight): Likewise.
5540         * nscd/nscd.h (dbs): Make hidden.
5542         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5543         Avoid returning -1, return 0 instead.
5545 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5547         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5549 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5551         [BZ #5209]
5552         * sysdeps/unix/sysv/linux/times.c: New file.
5554         [BZ #5381]
5555         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5556         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5557         prototype.
5558         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5559         appropriate mem_in_flight element.
5560         (gc): Take allocations which have not yet been committed to the
5561         database into account.
5562         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5563         Reset mem_in_flight before returning.
5564         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5565         cue it up in mem_in_flight_list.
5566         * nscd/aicache.c: Adjust mempool_alloc call.
5567         * nscd/grpcache.c: Likewise.
5568         * nscd/hstcache.c: Likewise.
5569         * nscd/initgrcache.c: Likewise.
5570         * nscd/pwdcache.c: Likewise.
5571         * nscd/servicescache.c: Likewise.
5572         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5573         of -fpie.
5575         * nscd/connections.c (handle_request): Provide better error message
5576         in case SELinux forbids the service.
5578         * version.h (VERSION): Bump to 2.8.90.
5580 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5582         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5584 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5586         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5587         Also use for 32-bit.
5588         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5589         __nextafter instead of nextafter to avoid local PLT.
5590         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5591         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5593         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5595         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5596         __fe_nomask_env.
5597         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5598         <fenv_libc.h> instead of <fenv.h>.
5599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5602         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5604         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5605         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5606         function from fegetexcept and make old name weak alias.
5607         * include/fenv.h: Declare __fegetexcept.
5608         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5609         fegetexcept.
5610         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5611         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5612         to fetestexcept.
5613         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5614         instead of frexpl to avoid local PLT.
5615         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5616         ilogbl to avoid local PLT.
5617         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5618         instead of ldexpl to avoid local PLT.
5619         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5620         __roundl not roundl to avoid local PLT.
5621         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5622         local PLTs.  Use __sincosl instead of separate sinl and cosl
5623         calls.
5624         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5626         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5627         version for ppc64 to 2.4.21 since without it makecontext will fail.
5629         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5630         to the ABI in use.
5631         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5632         .__tls_get_addr.
5633         [__powerpc64__] (TLS_GD): Likewise.
5635 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5637         [BZ #4997]
5638         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5639         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5640         mantissa.
5641         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5642         Likewise.  Also account for when x is an odd number between 2^52
5643         and 2^53-1.
5644         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5645         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5646         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5647         detect aforementioned erroneous conditions.
5649 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5651         * configure.in: Check for -fno-section-anchors in addition to
5652         -fno-toplevel-reorder.
5654 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5656         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5658         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5659         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5660         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5661         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5662         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5663         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5665 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5667         [BZ #5443]
5668         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5669         * time/alt_digit.c: Likewise.
5670         * wcsmbs/wcsmbsload.c: Likewise.
5672 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5674         * version.h (VERSION): Bump to 2.8.
5676         * timzeone/asia: Update from tzdata2008b.
5677         * timezone/backward: Likewise.
5678         * timezone/europe: Likewise.
5679         * timezone/northamerica: Likewise.
5680         * timezone/southamerica: Likewise.
5681         * timezone/iso3166.tab: Likewise.
5682         * timezone/leapseconds: Likewise.
5683         * timezone/zone.tab: Likewise.
5684         * timezone/private.h: Update from tzcode2008a.
5685         * timezone/zdump.c: Likewise.
5686         * timezone/zic.c: Likewise.
5688 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5690         [BZ #5741]
5691         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5692         Define additonal Data Cache Block instruction macros.
5693         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5694         Replace dcbst with dcbf and sync with sync/isync.
5696 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5698         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5699         Always set ELF_RTYPE_CLASS_PLT.
5700         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5702 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5704         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5705         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5706         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5707         For ISA 2.01 and later replace mftb with mfspr 268.
5709 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5711         [BZ #5768]
5712         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5713         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5715 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5717         [BZ #5768]
5718         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5719         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5720         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5721         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5723 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5725         * stdlib/tst-makecontext.c (othervar): New variable.
5726         (cf): Test sign extending the argument to long.
5728 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5730         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5731         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5732         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5733         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5734         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5735         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5736         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5738 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5740         * elf/Makefile (tests): Substitute tests-vis-yes here.
5741         (tests-vis-yes): Delete.
5742         (modules-name, modules-vis-yes): Similarly.
5744 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5746         [BZ #4407]
5747         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5748         Preserve sign in signgamp when x is zero.
5750 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5752         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5753         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5754         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5755         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5756         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5757         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5759 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5761         [BZ #4314]
5762         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5763         buffers.
5765         [BZ #5209]
5766         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5767         a reserved error value.
5769         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5770         value to check for correct sign extension.
5772         [BZ #5436]
5773         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5774         Copy 64-bit parameter values even though this is not required in
5775         the standard.
5777         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5778         PC save.
5780 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5782         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5783         PC save.
5785 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5787         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5789 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5791         [BZ #5998]
5792         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5793         in line-buffered stream failed.
5794         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5796 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5798         [BZ #6024]
5799         * scripts/abi-versions.awk: If the version specified by
5800         --enable-oldest-abi is older than the first version for this
5801         architecture, use the default version.
5803         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5804         as well when ignoring the whole category.
5806 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5808         [BZ #6042]
5809         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5810         ETHERTYPE_* definitions.
5811         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5813 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5815         * stdlib/mbtowc.c (__no_r_state): Remove.
5816         (mbtowc): New static state variable.  Use it instead of
5817         __no_r_state.
5818         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5819         (__wctomb_state): New hidden variable.
5820         (wctomb): Use __wctomb_state instead of __no_r_state.
5821         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5822         (__wctomb_state): New extern decl.
5823         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5825 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5827         [BZ #5475]
5828         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5830 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5832         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5834 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5836         * po/nl.po: Update from translation team.
5838 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5840         [BZ #6007]
5841         * string/strfry.c: Handle empty strings again.
5843 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5845         [BZ #5443]
5846         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5847         before looking for translation.
5848         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5849         * locale/freelocale.c: Likewise.
5850         * locale/newlocale.c: Likewise.
5851         * locale/setlocale.c: Likewise.
5852         Based partially on a patch by ryo@np.css.fujitsu.com.
5854 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5856         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5857         acquiring wrlock.  Do conv_tab allocation while holding lock.
5858         * intl/Makefile: Add rules to build and run tst-gettext6.
5859         * intl/tst-gettext6.c: New test.
5860         * intl/tst-gettext6.sh: New file.
5862 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5864         * po/nl.po: Update from translation team.
5866         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5867         provided through st_blksize, try the default size before giving up.
5869 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5871         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5873         [BZ #5939]
5874         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5876         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5877         error message.  POSIX today does not require the messages to be in
5878         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5880         [BZ #5979]
5881         * sunrpc/auth_unix.c: Unify printed strings.
5882         * sunrpc/clnt_tcp.c: Likewise.
5883         * sunrpc/clnt_udp.c: Likewise.
5884         * sunrpc/clnt_unix.c: Likewise.
5885         * sunrpc/svc_tcp.c: Likewise.
5886         * sunrpc/svc_udp.c: Likewise.
5887         * sunrpc/svc_unix.c: Likewise.
5888         * sunrpc/xdr.c: Likewise.
5889         * sunrpc/xdr_array.c: Likewise.
5890         * sunrpc/xdr_rec.c: Likewise.
5891         * sunrpc/xdr_ref.c: Likewise.
5892         * locale/programs/ld-time.c (time_finish): Unify messages.
5893         * locale/programs/locfile.c (handle_copy): Fix typo.
5894         * nscd/nscd.c (options): Fix typo.
5896         [BZ #5995]
5897         * stdlib/strtod_l.c: Use correct sign for result in one more
5898         underflow case.
5899         Patch by Eric Blake <ebb9@byu.net>.
5901 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5903         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5904         and creat system calls.
5905         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5906         call.
5907         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5908         system calls.
5909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5910         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5911         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5913 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5915         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5916         <linux/limits.h> has defined it.
5917         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5918         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5919         headers.
5920         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5921         it instead of ARG_MAX.
5923 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5925         * posix/gai.conf: Fix comment for scope nullbits.
5926         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5927         default to 128 bits for v4 mapped addresses.
5929 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5931         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5932         ptrace call to get the ieee_instruction_pointer from the kernel.
5933         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5934         ptrace call to set the ieee_instructtion_pointer.
5935         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5936         Add comment that ieee_instruction_pointer is always 0.
5938 2008-03-09  Andreas Jaeger  <aj@suse.de>
5940         [BZ #5857]
5941         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5942         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5943         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5945         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5946         (rint_test): Likewise.
5948 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5950         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5951         call.
5952         (__nisfind_server): Similar for open readColdStartFile call.
5953         Patch partially by Jim Meyering.
5954         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5955         around internal_setent call.
5957         * po/vi.po: New Vietnamese translation.
5959         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5960         ADJ_OFFSET_SS_READ.
5962         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5963         remove CLONE_STOPPED.
5965 2008-02-10  Jim Meyering  <meyering@redhat.com>
5967         Remove useless "if" before "free":
5968         * elf/ldconfig.c (parse_conf_include): Likewise.
5969         * gmon/gmon.c (weak_alias): Likewise.
5970         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5971         * inet/rcmd.c (__validuser2_sa): Likewise.
5972         * intl/bindtextdom.c (set_binding_values): Likewise.
5973         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5974         * libio/genops.c (save_for_backup): Likewise.
5975         * libio/wgenops.c (save_for_wbackup): Likewise.
5976         * locale/programs/ld-collate.c (collate_read): Likewise.
5977         * locale/programs/linereader.c (get_string): Likewise.
5978         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5979         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5980         * resolv/res_debug.c (do_section): Likewise.
5981         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5982         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5983         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5984         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5985         * time/tzset.c (tzset_internal): Likewise.
5987 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5989         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5990         of ASSEMBLER.
5992 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5994         [BZ #5903]
5995         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5996         not stream for output file.  Open output file here.
5997         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5998         and output file name.
5999         (process_fd): Likewise.
6000         (process_file): Likewise.
6001         (main): Adjust callers of changed functions.
6002         * iconv/iconv_prog.h: Adjust prototype.
6004 2008-03-09  Andreas Jaeger  <aj@suse.de>
6006         [BZ #5753]
6007         * sysdeps/ia64/ieee754.h: Use protected namespace
6008         __BIG_ENDIAN/__LITTLE_ENDIAN.
6009         * sysdeps/ieee754/ieee754.h: Likewise.
6010         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6012 2008-03-08  Roland McGrath  <roland@frob.com>
6014         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6015         ignore a signal that came from a machine exception, treat it as a
6016         fatal core-dump signal instead.
6017         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6019         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6020         Clear DF bit in thread state's eflags.
6021         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6023 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6025         [BZ #5774]
6026         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6027         of NAN(...) sequence.
6028         * stdlib/Makefile (tests): Add tst-strtod6.
6029         * stdlib/tst-strtod6.c: New file.
6031         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6033         [BZ #5762]
6034         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6035         putting offending option character in quotes.  Clean up error
6036         messages.
6037         * po/be.po: Adjust msgstr in translation file.
6038         * po/bg.po: Likewise.
6039         * po/ca.po: Likewise.
6040         * po/cs.po: Likewise.
6041         * po/da.po: Likewise.
6042         * po/de.po: Likewise.
6043         * po/es.po: Likewise.
6044         * po/fr.po: Likewise.
6045         * po/hr.po: Likewise.
6046         * po/ko.po: Likewise.
6047         * po/nl.po: Likewise.
6048         * po/rw.po: Likewise.
6049         * po/sk.po: Likewise.
6050         * po/sv.po: Likewise.
6051         * po/tr.po: Likewise.
6052         * po/zh_CN.po: Likewise.
6053         * po/zh_TW.po: Likewise.
6055         [BZ #5760]
6056         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6057         Patch by Roland Bless <roland@bless.de>.
6059         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6060         .o file.
6061         * elf/Makefile (routines): Add dl-sysdep.
6062         (elide-routines.os): Likewise.
6064 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6066         [BZ #5786]
6067         * elf/dl-sysdep.c: Undefine ROUND after use.
6068         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6069         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6070         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6071         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6072         to ...
6073         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6074         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6075         if necessary.
6076         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6078         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6079         _dl_tls_get_addr_soft element.
6080         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6081         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6082         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6083         GLRO.
6084         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6085         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6086         of internal_function.
6088         * stdlib/Makefile (aux): Add tens_in_limb.
6089         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6090         * stdlib/tens_in_limb.c: ...here.  New file.
6092         [BZ #5778]
6093         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6094         __statfs_chown_restricted.
6095         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6096         for _PC_CHOWN_RESTRICTED.
6097         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6098         Implement __statfs_chown_restricted.
6099         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6100         _POSIX_CHOWN_RESTRICTED value to zero.
6101         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6102         defined to zero.
6104         * sysdeps/x86_64/rtld-memset.c: New file.
6106 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6108         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6110         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6111         Barcelona machine.  Make default fall through branch of
6112         __x86_64_preferred_memory_instruction check as the integer code path.
6114 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6116         * sysdeps/x86_64/cacheinfo.c
6117         (__x86_64_preferred_memory_instruction): New variable.
6118         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6120         * sysdeps/x86_64/memset.S: Rewrite.
6122 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6124         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6125         __obstack_printf_chk): New prototypes.
6126         (__vasprintf_chk, __vdprintf_chk,
6127         __obstack_vprintf_chk): Likewise.
6128         Add libc_hidden_proto.
6129         * libio/obprintf.c
6130         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6131         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6132         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6133         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6134         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6135         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6136         __obstack_vprintf_chk): New prototypes.
6137         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6138         obstack_vprintf): New inlines.
6139         * debug/dprintf_chk.c: New file.
6140         * debug/vdprintf_chk.c: New file.
6141         * debug/asprintf_chk.c: New file.
6142         * debug/vasprintf_chk.c: New file.
6143         * debug/obprintf_chk.c: New file.
6144         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6145         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6146         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6147         @@GLIBC_2.8.
6148         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6149         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6150         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6151         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6152         libc_hidden_proto.
6153         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6154         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6155         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6156         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6157         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6158         @@GLIBC_2.8.
6159         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6160         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6161         obstack_vprintf_chk.
6162         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6163         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6164         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6165         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6166         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6167         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6169 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6171         [BZ #5779]
6172         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6173         Patch by Roy Marples <roy@marples.name>.
6175         [BZ #5736]
6176         * malloc/malloc.c: Fix typo in comment.
6178         [BZ #5627]
6179         * locale/iso-639.def: Add Shuswap.
6181 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6183         [BZ #5790]
6184         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6185         overwrite *h_errnop/*errnop values from getanswer_r in case of
6186         failure.
6188 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6190         [BZ #5818]
6191         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6192         (verify_persistent_db): Remove one unnecessary test and add a new one
6193         for bad configuration.
6194         (nscd_init): Improve error reported when persistent database cannot
6195         be reused.
6196         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6197         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6198         .suggested_module and .max_db_size and case config file says the
6199         values are zero.
6200         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6202         [BZ #5854]
6203         * nis/ypclnt.c (yp_order): Fix handling of return value of
6204         do_ypcall_tr call.
6205         Patch by Jeff Moyer <jmoyer@redhat.com>.
6207         * po/fr.po: Update from translation team.
6209 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6210             Carlos O'Donell <carlos@systemhalted.org>
6212         [BZ #5012]
6213         * FAQ.in: Describe why glibc needs to be compiled with
6214         optimization.
6216 2008-02-19  Roland McGrath  <roland@redhat.com>
6218         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6220 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6222         [BZ #5737]
6223         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6224         __USE_MISC is defined.
6226 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6228         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6229         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6230         sys/timerfd.h.
6231         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6232         timerfd_gettime, timerfd_settime.
6233         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6234         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6236 2008-02-08  Roland McGrath  <roland@redhat.com>
6238         * elf/elf.h (NT_PPC_SPE): New macro.
6240 2008-02-06  Roland McGrath  <roland@redhat.com>
6242         * Makerules ($(common-objpfx)sysd-rules):
6243         Depend on $(sysdep-makeconfigs).
6245 2008-01-31  Roland McGrath  <roland@redhat.com>
6247         [BZ #5442]
6248         * configure.in: Use -print-file-name if it yields a directory,
6249         for each of include and include-fixed.
6250         * configure: Regenerated.
6252         * Makeconfig (sysd-rules-targets): New variable.
6253         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6254         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6256 2008-01-30  Roland McGrath  <roland@redhat.com>
6258         * manual/libc.texinfo: Update back-cover text.
6260         * elf/elf.h (NT_386_TLS): New macro.
6262 2008-01-29  Roland McGrath  <roland@redhat.com>
6264         * Makeconfig (sysd-rules-patterns): New variable.
6265         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6266         (check-inhibit-asm): New canned sequence, replaces ...
6267         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6268         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6269         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6270         (CFLAGS-rtld): Variable removed.
6272 2008-01-24  Roland McGrath  <roland@redhat.com>
6274         * configure.in: Let configure fragments set base_os.
6275         * configure: Regenerated.
6277 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6279         * po/ko.po: Update from translation team.
6281 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6283         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6285 2008-01-12  Andreas Jaeger  <aj@suse.de>
6287         [BZ #5040]
6288         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6289         Add EPOLLRDHUP.
6291 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6293         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6294         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6295         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6297 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6299         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6300         * elf/dl-close.c (_dl_close): Check for it.
6301         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6302         (_dl_allocate_static_tls): Likewise.
6303         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6304         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6305         to it.
6306         * elf/tst-tls16.c: New file.
6307         * elf/tst-tlsmod16a.c: New file.
6308         * elf/tst-tlsmod16b.c: New file.
6309         * elf/Makefile: Add rules to build and run tst-tls16.
6311 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6313         [BZ #5628]
6314         * bits/shm.h: Fix comment describing shmid_ds.
6315         * sysdeps/gnu/bits/shm.h: Likewise.
6316         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6317         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6318         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6319         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6320         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6321         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6322         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6323         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6324         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6326         [BZ #5607]
6327         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6328         prototypes.
6329         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6330         additional suffixes.
6331         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6332         Add optional functions mq_timedreceive and mq_timedsend.
6333         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6334         * conform/data/pthread.h-data: Fix prototype of
6335         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6336         * conform/data/semaphore.h-data: Allow time.h definitions.
6337         * conform/data/signal.h-data: Likewise.
6338         * conform/data/stdio.h-data: getw and putw are not required in v6.
6339         * conform/data/stdlib.h-data: Change setstate prototype.
6340         * conform/data/string.h-data: Fix strerror_r prototype.
6341         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6342         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6343         Fix readlink prototype.
6344         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6345         in6addr_loopback.
6346         * inet/netinet/in.h: Cleanup namespace.
6347         * posix/regex.h: Likewise.
6348         * resolv/netdb.h: Likewise.
6349         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6350         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6351         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6352         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6353         of names of in in6_addr.
6354         (default_precedence): Likewise.
6355         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6356         NULL definition.
6358 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6360         * conform/data/fmtmsg.h-data: Add missing allows.
6361         * conform/data/ftw.h-data: Likewise.
6362         * conform/data/inttypes.h-data: Likewise.
6363         * conform/data/math.h-data: Likewise.
6364         * conform/data/signal.h-data: Likewise.
6365         * conform/data/net/if.h-data: Likewise.
6366         * conform/data/netinet/in.h-data: Likewise.
6367         * conform/data/sys/socket.h-data: Likewise.
6369         [BZ #5614]
6370         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6371         (__strtok_r): Simplify.
6372         * string/tester.c (test_strtok_r): Add test case for futile search
6373         with single-character seach string.
6375 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6377         * po/ko.po: Update from translation team.
6379 2008-01-11  Andreas Jaeger  <aj@suse.de>
6381         [BZ #5600]
6382         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6383         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6384         kernel header.
6386 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6388         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6389         native interface lookup in all the relevant places.
6391 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6392             Ulrich Drepper  <drepper@redhat.com>
6394         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6395         field.  Use sockaddr_in6 for source_addr.
6396         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6397         (match_prefix): Likewise.
6398         (get_label): Likewise.
6399         (get_precedence): Likewise.
6400         (rfc3484_sort): Change to use indirect access to results array.
6401         Adjust to use of sockaddr_in6.  Replace service_order test with
6402         simple index comparison.
6403         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6404         service_order field.  Adjust qsort_t calls.  Access sorted result
6405         array indirectly through order array.
6406         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6407         * posix/tst-rfc3484-2.c: Likewise.
6408         * posix/tst-rfc3484-3.c: Likewise.
6410 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6412         [BZ #5541]
6413         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6414         pollfd structures.
6415         Patch by André Cruz.
6417         [BZ #5545]
6418         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6419         (clnt_spcreateerror): Likewise.
6421         [BZ #5553]
6422         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6423         (public_mEMALIGn): Likewise.
6424         Patch mostly by Daniel Jacobowitz.
6426 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6428         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6429         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6430         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6431         * stdlib/tst-makecontext2.c: New test.
6433 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6435         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6436         defined.
6437         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6438         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6439         transliteration hooks and REINIT_PARAMS afterwards.
6440         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6441         status.
6442         (REINIT_PARAMS): Define.
6443         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6444         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6445         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6446         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6447         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6448         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6449         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6450         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6451         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6452         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6453         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6454         * iconvdata/tst-iconv7.c: New test.
6456 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6458         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6460 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6462         [BZ #5112]
6463         * nscd/connections.c (restart): Fix condition.
6465 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6467         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6468         __ctype_toupper_loc): Add __THROW.
6470 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6472         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6473         recognition of interface family.
6475         * posix/getconf.c: Update copyright year.
6476         * nss/getent.c: Likewise.
6477         * iconv/iconvconfig.c: Likewise.
6478         * iconv/iconv_prog.c: Likewise.
6479         * elf/ldconfig.c: Likewise.
6480         * catgets/gencat.c: Likewise.
6481         * csu/version.c: Likewise.
6482         * elf/ldd.bash.in: Likewise.
6483         * elf/sprof.c (print_version): Likewise.
6484         * locale/programs/locale.c: Likewise.
6485         * locale/programs/localedef.c: Likewise.
6486         * nscd/nscd.c (print_version): Likewise.
6487         * debug/xtrace.sh: Likewise.
6488         * malloc/memusage.sh: Likewise.
6489         * malloc/mtrace.pl: Likewise.
6490         * debug/catchsegv.sh: Likewise.
6492 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6494         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6495         second lookup.
6497 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6499         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6500         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6502 2007-12-17  Roland McGrath  <roland@redhat.com>
6504         * inet/ether_line.c (ether_line): Remove unused variable.
6506 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6508         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6509         and winp.
6510         * login/openpty.c (openpty): Likewise.
6511         * login/pty.h (openpty, forkpty): Likewise.
6512         * manual/terminal.texi (openpty, forkpty): Likewise.
6514 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6516         * malloc/malloc.c (public_cALLOc): For arenas other than
6517         main_arena, count all bytes inside the mprotect_size range of the
6518         heap as uninitialized.
6520 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6522         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6523         executable stacks.
6525         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6526         mTRIm for all of them.
6527         (mTRIm): Additionally iterate over all free blocks and use madvise
6528         to free memory for all those blocks which contain at least one
6529         memory page.
6530         * malloc/tst-trim1.c: New file.
6531         * malloc/Makefile (tests): Add tst-trim1.
6533         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6535 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6537         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6538         First cast argument to long
6539         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6540         Return long.
6541         (__vdso_clock_gettime): Likewise.
6542         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6543         return long.
6545 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6547         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6548         * locale/nl_langinfo_l.c: Real implementation, copied from
6549         nl_langinfo.c.
6550         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6552 2007-12-01  Jim Meyering  <meyering@redhat.com>
6554         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6555         that would inhibit utf8-optimization of a regexp containing line-
6556         or buffer-anchors, e.g., `^', `$'.
6558 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6560         * time/bug-getdate1.c (do_test): Don't use century values which
6561         aren't valid on 32-bit systems.
6563 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6565         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6566         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6567         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6568         __strcat_g, __strncat_g): Add __asm__.
6570 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6572         [BZ #5477]
6573         * io/fchmodat.c: Fix typo in stub_warning use.
6574         Patch by Petr Salinger.
6576 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6578         * iconvdata/hp-thai8.c: New file.
6579         * iconvdata/Makefile: Add rules for hp-thai8.c.
6580         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6581         * iconvdata/gconv-modules: Likewise.
6583         [BZ #5464]
6584         * iconvdata/hp-greek8.c: New file.
6585         * iconvdata/Makefile: Add rules for hp-greek8.c.
6586         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6587         * iconvdata/gconv-modules: Likewise.
6589         [BZ #5463]
6590         * iconvdata/hp-turkish8.c: New file.
6591         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6592         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6593         * iconvdata/gconv-modules: Likewise.
6595         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6596         (shrink_heap): ... this new function.
6597         (heap_trim): Call shrink_heap instead of grow_heap.
6599         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6600         case don't call alloc_perturb.
6602 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6604         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6605         possible.
6606         * sysdeps/unix/sysv/linux/kernel-features.h
6607         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6608         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6610 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6612         [BZ #5424]
6613         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6614         * stdio-common/Makefile (tests): Add bug22.
6615         * stdio-common/bug22.c: New file.
6617         [BZ #5451]
6618         * time/getdate.c: Fix filling in default values.
6619         * time/bug-getdate1.c: New file.
6620         * time/Makefile: Add rules to build and run bug-getdate1.
6622         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6623         * iconvdata/ebcdic-es.c: Likewise.
6624         * iconvdata/ebcdic-es-a.c: Likewise.
6625         * iconvdata/ebcdic-uk.c: Likewise.
6626         * iconvdata/iso8859-16.c: Likewise.
6627         * iconvdata/viscii.c: Likewise.
6628         * iconvdata/iso8859-9e.c: Likewise.
6629         * iconvdata/Makefile: Adjust appropriately.
6631         [BZ #5428]
6632         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6633         __need_wint_t.
6635 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6637         [BZ #5427]
6638         * iconvdata/hp-roman9.c: New file.
6639         * iconvdata/Makefile: Add rules for hp-roman9.c.
6640         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6641         * iconvdata/gconv-modules: Likewise.
6643         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6644         * iconvdata/Makefile: Adjust appropriately.
6646         [BZ #5441]
6647         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6648         structure, it's allocated with alloca.
6649         * stdio-common/Makefile (tests): Add bug21.
6650         * stdio-common/bug21.c: New file.
6652 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6654         [BZ #5452]
6655         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6656         keyword for gcc's braced-groups.
6658 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6660         [BZ #5454]
6661         * inet/ether_line.c: Strip hostname of whitespaces.
6662         * inet/Makefile (tests): Add tst-ether_line.
6663         * inet/tst-ether_line.c: New file.
6665 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6667         [BZ #5439]
6668         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6670         [BZ #5435]
6671         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6673         * stdlib/tst-setcontext.c: Catch the case where the links gets
6674         messed up and we do not reach main again.
6676         * po/ca.po: Update from translation team.
6678 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6680         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6681         * posix/regex.h (REG_ENOSYS): Likewise.
6682         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6684 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6686         * nscd/nscd.h (MAX_STACK_USE): Define.
6687         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6688         (gc): Initialize stack_used based on allocation in prune_cache.
6689         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6690         Clear array before use.
6692         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6693         memory allocation failed.
6694         * nscd/hstcache.c (cache_addhst): Likewise.
6695         * nscd/grpcache.c (cache_addgr): Likewise.
6696         * nscd/servicescache.c (cache_addserv): Likewise.
6697         * nscd/pwdcache.c (cache_addpw): Likewise.
6698         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6700 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6703         and creat system calls.
6705         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6707 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6709         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6710         Add netiucv/iucv.h.
6711         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6712         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6713         protocol.
6714         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6715         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6716         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6718 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6720         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6721         strncat): Define as macros to avoid compile errors.
6723         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6724         creat entries.
6726 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6728         [BZ #5382]
6729         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6730         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6731         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6732         overflow it.
6733         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6735         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6736         Return zero in case the thread library is not NPTL.
6738         [BZ #5375]
6739         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6740         initializing interface list.
6742         [BZ #5378]
6743         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6744         use result of nss_getgrgid_r if nothing was found.  For other
6745         error return with a failure.
6746         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6748         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6749         macro name.
6751 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6753         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6754         (get_scope): For IPv4 scope, use scopes table.
6755         (fini): Free scopes table if necessary.
6756         (free_scopelist): New function.
6757         (scopecmp): New function.
6758         (gaiconf_init): Also handle scopev4 entries.
6759         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6760         * posix/tst-rfc3484-2.c (do_test): Likewise.
6761         * posix/gai.conf: Document scopev4 defaults.
6762         * posix/Makefile (tests): Add tst-rfc3484-3.
6763         * posix/tst-rfc3484-3.c: New file.
6765         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6766         Teredo tunnels.
6767         * posix/gai.conf: Update for current default tables.
6769 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6771         * po/tr.po: Update from translation team.
6773 2007-11-18  Roland McGrath  <roland@frob.com>
6775         * manual/arith.texi (Remainder Functions): Spelling fix.
6776         From Shaun Silk <genix@mysoul.com.au>.
6778         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6780 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6782         * po/zh_CN.po: Update from translation team.
6784         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6785         Add sys/signalfd.h and sys/eventfd.h.
6787 2007-11-15  Bruno Haible  <bruno@clisp.org>
6789         [BZ #5346]
6790         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6791         union.
6792         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6793         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6794         it needs only fixed stack space. Delay the initialization of
6795         msgid_len until it is needed.
6797 2007-11-15  Andreas Jaeger  <aj@suse.de>
6799         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6800         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6802 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6804         * po/ko.po: Update from translation team.
6806 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6808         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6809         significantly.  The device type is also part of the ifinfomsg data.
6811         * po/sv.po: Update from translation team.
6812         * po/nl.po: Likewise.
6814         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6815         to wake up in 24 hours.
6817         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6819 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6821         * po/cs.po: Update from translation team.
6822         * po/pl.po: Likewise.
6824         * include/ifaddrs.h: Remove in6ai_temporary.
6825         (struct in6addrinfo): Add index element.
6826         Declare __check_native.
6827         * inet/Makefile (aux): Add check_native.
6828         * sysdeps/unix/sysv/linux/check_native.c: New file.
6829         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6830         IFA_F_TEMPORARY.  Pass back ifa_index.
6831         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6832         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6833         call __check_native if necessary.
6834         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6835         to sort addresses.  Pass information about the results.
6836         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6837         of rfc3484_sort interface.
6838         * posix/tst-rfc3484-2.c: Likewise.
6840         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6841         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6842         for _quicksort.
6843         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6844         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6845         on as third parameter to compare function and _quicksort.
6846         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6847         to the compare function.
6848         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6849         * Versions.def: Add GLIBC_2.8 for libc.
6851         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6852         * posix/tst-rfc3484-2.c: Likewise.
6854         * include/kernel-features.h: Moved to...
6855         * sysdeps/mach/hurd/kernel-features.h: ...here.
6857 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6859         * sysdeps/i386/i586/memcpy_chk.S: New file.
6860         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6861         * sysdeps/i386/i586/memset_chk.S: Likewise.
6863 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6865         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6866         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6867         list of interfaces.  Also store prefix length.
6868         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6869         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6870         prefix if source and destination address are in the same subnet.
6871         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6872         Always look for matching record in in6ai list.
6873         Correct source_addr_len value for IPv6->IPv4 converted records.
6875 2007-11-11  Roland McGrath  <roland@frob.com>
6877         * include/kernel-features.h: New file.
6879 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6881         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6882         complications for 64-bit platforms.
6884         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6885         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6886         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6887         open64_2.
6888         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6889         entries.
6890         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6891         * sysdeps/wordsize-64/alphasort.c: New file.
6892         * sysdeps/wordsize-64/alphasort64.c: New file.
6893         * sysdeps/wordsize-64/fseeko.c: New file.
6894         * sysdeps/wordsize-64/fseeko64.c: New file.
6895         * sysdeps/wordsize-64/ftello.c: New file.
6896         * sysdeps/wordsize-64/ftello64.c: New file.
6897         * sysdeps/wordsize-64/ftw.c: New file.
6898         * sysdeps/wordsize-64/ftw64.c: New file.
6899         * sysdeps/wordsize-64/iofgetpos.c: New file.
6900         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6901         * sysdeps/wordsize-64/iofopen.c: New file.
6902         * sysdeps/wordsize-64/iofopen64.c: New file.
6903         * sysdeps/wordsize-64/iofsetpos.c: New file.
6904         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6905         * sysdeps/wordsize-64/lockf.c: New file.
6906         * sysdeps/wordsize-64/lockf64.c: New file.
6907         * sysdeps/wordsize-64/mkostemp.c: New file.
6908         * sysdeps/wordsize-64/mkostemp64.c: New file.
6909         * sysdeps/wordsize-64/mkstemp.c: New file.
6910         * sysdeps/wordsize-64/mkstemp64.c: New file.
6911         * sysdeps/wordsize-64/scandir.c: New file.
6912         * sysdeps/wordsize-64/scandir64.c: New file.
6913         * sysdeps/wordsize-64/tmpfile.c: New file.
6914         * sysdeps/wordsize-64/tmpfile64.c: New file.
6915         * sysdeps/wordsize-64/versionsort.c: New file.
6916         * sysdeps/wordsize-64/versionsort64.c: New file.
6917         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6918         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6919         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6920         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6921         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6922         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6923         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6924         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6925         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6926         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6927         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6928         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6930         * crypt/sha256-crypt.c: Fix a comment.
6931         * crypt/sha512-crypt.c: Likewise.
6933 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6935         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6937 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6939         [BZ #5277]
6940         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6941         because output buffer is too small break, don't loop.
6942         * iconvdata/Makefile (tests): Add bug-iconv6.
6943         * iconvdata/bug-iconv6.c: New file.
6945 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6947         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6948         with size_t type.
6949         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6950         size_t.  Add casts where needed.
6952         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6953         old headers, don't call avc_has_perm if we don't have the
6954         permission information.
6956 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6958         * elf/rtld.c (dl_main): Use the page size to find the map start.
6960 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6962         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6963         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6965         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6966         when the lookup call failed.
6968         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6969         Add prune_cond and wakeup_time.
6970         (CACHE_PRUNE_INTERNAL): Define.
6971         Update declarations of prune_cache and setup_thread.
6972         * nscd/connections.c (dbs): Update initializers.
6973         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6974         (nscd_init): Default number of threads is now 4.
6975         (invalidate_cache): Take lock before calling prune_cache.
6976         (handle_request): If SELinux forbids the request, say so.
6977         (readylist_cond): Use static initializer.
6978         (nscd_run_prune): New function.  Used only by pruning threads.
6979         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6980         here.
6981         (fd_ready): Update nscd_run reference.
6982         (start_threads): No need to initialize readylist_cond.
6983         Start pruning threads separately.
6984         * nscd/nscd_setup_thread.c: Change return value type to int and always
6985         return 0.
6986         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6987         to int and return nonzero value if we can use the TID address hack.
6988         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6989         the database is later than the new entry's timeout, update the
6990         wakeup time and wake the cleanup thread.
6991         (prune_cache): Return seconds the next entry in the database is still
6992         valid.  Remove locking for pruning here.
6993         * nscd/nscd.conf: Document default number of threads.
6995 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6997         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6998         stack is properly aligned for the target function.
6999         Correct unwind info.
7001         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7002         when using auditing libraries.
7004 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7006         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7007         _nss_dns_getnetbyaddr2_r.
7008         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7009         extra parameter to getanswer_r.
7010         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7011         _nss_dns_getnetbyaddr2_r.
7013         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7014         gethstbynm3_r.
7015         * nscd/gethstbynm2_r.c: Remove.
7016         * nscd/gethstbynm3_r.c: New file.
7017         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7018         __gethostbyaddr_r.
7019         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7020         __gethostbyaddr_r compatibility wrapper.
7021         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7022         determining timeout of entry.
7023         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7024         __gethostbyaddr2_r.
7025         (addhstbyX): Pass reference to variable for TTL to lookup and
7026         cache_addhst.
7027         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7028         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7029         and __nss_next2.  Remove __nss_services_lookup.
7030         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7031         Add compat wrapper.
7032         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7033         __nss_next2.
7034         * nss/getXXent_r.c: Likewise.
7035         * nss/getnssent_r.c: Likewise.
7036         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7037         does not exist in module, try the optional second name.
7038         (__nss_next2): New function.
7039         (__nss_next): Now wrapper around __nss_next2.
7040         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7041         Declare __nss_next2.
7042         Adjust definition of db_lookup_function type.
7043         * nss/service-lookup.c: Define NO_COMPAT.
7044         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7045         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7046         * inet/ether_ntoh.c: Likewise.
7047         * sunrpc/netname.c: Likewise.
7048         * sunrpc/publickey.c: Likewise.
7049         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7050         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7051         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7052         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7053         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7055         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7057         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7059 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7061         [BZ #5204]
7062         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7063         * crypt/sha512c-test.c: Likewise.
7065         [BZ #5225]
7066         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7067         to keep track of end of %[ format string element.
7068         * stdio-common/Makefile (tests): Add bug20.
7069         * stdio-common/bug20.c: New file.
7071         [BZ #5222]
7072         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7073         path elements in counting mode.
7075 2007-10-27  Andreas Jaeger  <aj@suse.de>
7077         [BZ #5040]
7078         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7080         [BZ #3112]
7081         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7082         (__cleanup): Free shared library when exiting.
7083         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7084         (__cleanup): Free shared library when exiting.
7086 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7088         [BZ #2549]
7089         * math/libm-test.inc (check_float_internal): Support
7090         denormalized return.
7092 2007-10-23  Andreas Jaeger  <aj@suse.de>
7094         [BZ #5208]
7095         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7096         __LONG_LONG_PAIR to handle little endian byte order.
7097         Suggested by abhishekrai@google.com
7099 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7101         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7103 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7105         * nscd/cache.c (prune_cache): Move test for modified file outside
7106         of locking.
7108 2007-10-21  Andreas Jaeger  <aj@suse.de>
7110         * manual/texinfo.tex: Update to latest version.
7112         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7114         * manual/arith.texi (Status bit operations): Fix formatting.
7116         * manual/errno.texi (Error Messages): Fix formatting.
7118         * manual/sysinfo.texi (System Parameters): Fix formatting.
7120         * manual/libc.texinfo: Update VERSION and UPDATED.
7122 2007-10-19  Roland McGrath  <roland@redhat.com>
7124         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7126 2007-10-06  David S. Miller  <davem@davemloft.net>
7128         * configure.in: Add sparcv9v2 and sparc64v2.
7129         * scripts/config.sub: Likewise.
7130         * configure: Regenerate.
7131         * elf/elf.h (HWCAP_SPARC_N2): New.
7132         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7133         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7134         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7135         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7136         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7137         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7138         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7140 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7142         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7143         even if the poll result indicates there is data to read.
7144         Patch by Jeff Moyer <jmoyer@redhat.com>.
7146 2007-10-18  Roland McGrath  <roland@redhat.com>
7148         * elf/elf.h (NT_PPC_VMX): New macro.
7150 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7152         * version.h (VERSION): Set to 2.7.90.
7154 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7156         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7157         weak_alias.
7159 2007-10-17  Roland McGrath  <roland@frob.com>
7161         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7162         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7164 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7166         * version.h (VERSION): Bump to 2.7.
7167         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7169         [BZ #5186]
7170         * time/tzset.c (__tz_convert): Don't force testing for a change of
7171         TZ if not called from localtime.  But then also see whether the
7172         file changed, in case __use_tzfile is set.
7174         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7175         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7176         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7177         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7178         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7179         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7180         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7181         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7183 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7185         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7186         and admin selects to be able to replace the gai.conf file, lock
7187         data structures around the qsort call.
7189 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7191         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7192         new memset.
7193         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7194         too high for the improvements.  Implement bzero unconditionally for
7195         use in libc.
7197 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7198             Jakub Jelinek  <jakub@redhat.com>
7200         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7201         even when time_t is 32-bit.
7202         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7203         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7204         always set after the search.
7206 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7208         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7209         unreachable code on 32-bit machines.
7211 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7213         [BZ #5184]
7214         * time/strftime_l.c: Include stdbool.h.
7215         (my_strftime): New wrapper, old function renamed to...
7216         (__strftime_internal): ... new function.  Add tzset_called
7217         argument, pass it down to recursive calls, don't call tzset ()
7218         if already true, set to true after call to tzset ().
7220 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7222         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7223         into account when copying TZ string.
7225 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7227         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7228         num_transition rather than num_transitions - 1.
7230 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7232         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7233         PIC indirect jump.
7235         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7236         a local label rather than HIDDEN_JUMPTARGET.
7238 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7240         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7241         (init_cacheinfo): Initialize it.
7242         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7243         Always define bzero.
7244         Remove non-glibc code.
7245         * sysdeps/x86_64/bzero.S: Make an empty file.
7247 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7249         * sysdeps/x86_64/cacheinfo.c
7250         (__x86_64_preferred_memory_instruction): New.
7251         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7253         * sysdeps/x86_64/memset.S: Rewrite.
7255 2007-10-15  Roland McGrath  <roland@redhat.com>
7257         * po/libc.pot: Regenerated.
7259 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7261         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7262         pointers.
7264         [BZ #3425]
7265         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7266         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7267         address record to T_A/T_AAAA requests.
7269 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7271         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7273         * posix/glob.c: Add some branch prediction throughout.
7275         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7276         read from nscd.
7278         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7279         service_order.
7280         (rfc3484_sort): Make sure that even if qsort doesn't support
7281         stable sorting out sorting here is stable by comparing service_order.
7282         (getaddrinfo): Initialize service_order.
7283         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7284         service_order field to sorting structure.
7285         * posix/tst-rfc3484-2.c (do_test): Likewise.
7287         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7288         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7289         __tzset_parse_tz and updating of daylight, timezone, tzname into
7290         update_vars.
7291         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7292         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7293         happens in __tz_compute.
7294         * time/tzfile.c (__tzfile_read): Also read TZ string.
7295         (find_transition): Fold into __tzfile_compute.
7296         (__tzfile_compute): For times beyond the last transition try to
7297         use the TZ string.
7298         * timezone/tst-timezone.c: Information in daylight and tzname does
7299         change for Asia/Tokyo timezone with more concrete information.
7300         Remove the test.
7302         * include/stdio.h: Add libc_hidden_proto for ftello.
7303         * libio/ftello.c: Add libc_hidden_def.
7305         [BZ #1140]
7306         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7307         on the specified time and not the last entries in the file.  Move
7308         code to determine tzname[] to...
7309         (find_transition): ...here.  Add ugly guess for times before the
7310         first transition.
7312 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7314         [BZ #3195]
7315         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7316         no entry.
7317         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7318         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7319         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7320         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7322         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7323         read mechanism when there are no group members and avoid no-op
7324         read syscall in this case.
7326         [BZ #3242]
7327         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7328         (__readall): If reading failed due to EAGAIN error wait a bit
7329         and possibly try again.
7330         (__readvall): Likewise.
7332 2007-10-13  Bruno Haible  <bruno@clisp.org>
7334         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7335         when we cannot recode the message.
7337 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7339         [BZ #4359]
7340         * libio/__freading.c (__freading): Don't return true for
7341         write-only streams.  For read/write streams, check whether we
7342         performed a read operation already.
7343         * libio/Makefile (tests): Add tst-ext2.
7344         * libio/tst-ext2.c: New file.
7346 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7348         * locale/programs/repertoire.c (repertoire_read): Always free
7349         memory for repertoire file name [Coverity CID 270].
7351         * elf/cache.c (save_aux_cache): Free memory allocated for
7352         temporary file name [Coverity CID 267].
7354 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7356         * misc/Makefile (headers): Add bits/error.h.
7358 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7360         * posix/fnmatch_loop.c: Take rule index returned as part of
7361         findidx return value into account when accessing weights.
7362         * posix/regcomp.c: Likewise.
7363         * posix/regexec.c: Likewise.
7365         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7366         (skip_to): Fix problems with parameter of elifdef/elifndef.
7368 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7370         * iconv/gconv_simple.c: Add some branch prediction.
7372 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7374         * locale/programs/ld-collate.c (collate_read): If ignore_content
7375         and nowtok is tok_define, eat any tok_eol tokens.
7377 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7379         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7380         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7382         * inet/netinet/in.h: Don't include bits/socket.h.
7383         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7384         macro.
7385         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7387 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7389         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7390         and tok_elifndef.
7391         * locale/programs/locfile-kw.gperf: Likewise.
7392         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7394 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7396         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7397         (__find_specwc): Change into __extern_always_inline function.
7398         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7399         (__parse_one_specmb): Remove ps argument.
7400         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7401         Adjust __find_specmb and __parse_one_specmb callers.
7402         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7403         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7404         Removed.
7405         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7406         caller.
7408 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7410         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7411         with some Pentium Ds.
7413 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7415         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7416         __read not read.
7417         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7418         __write not write.
7420 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7422         [BZ #181]
7423         * locale/C-time.c: Set week_1stday data to 19971201.
7424         * locale/programs/ld-time.c (time_finish): Default for
7425         first_workday is Monday.
7427         [BZ #2633]
7428         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7430         [BZ #5103]
7431         * posix/glob.c (glob): Recognize patterns starting \/.
7432         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7433         (main): Add test for pattern starting \/.
7435         * misc/error.h: Use __const instead of const.
7436         * misc/bits/error.h: Likewise.
7438 2007-10-07  Andreas Jaeger  <aj@suse.de>
7440         * include/bits/error.h: New file.
7442         * misc/bits/error.h (error_at_line): Fix prototype.
7444 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7446         [BZ #3924]
7447         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7448         more little bugs in creating the stack frame when pltexit has to
7449         be called.
7451         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7452         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7454         [BZ #4407]
7455         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7456         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7457         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7458         * math/libm-test.inc: Add test for this case.
7460         [BZ #5010]
7461         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7462         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7463         map service succeeded.
7464         (svc_is_mapped): New function.
7465         (svc_unregister): Use it before trying to unmap service.
7467 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7469         * timezone/zic.c: Update from tzcode2007h.
7471         [BZ #5063]
7472         * timezone/africa: Update from tzdata2007h.
7473         * timezone/antarctica: Likewise.
7474         * timezone/asia: Likewise.
7475         * timezone/australasia: Likewise.
7476         * timezone/europe: Likewise.
7477         * timezone/leapseconds: Likewise.
7478         * timezone/northamerica: Likewise.
7479         * timezone/southamerica: Likewise.
7480         * timzeone/zone.tab: Likewise.
7482         [BZ #5104]
7483         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7485         [BZ #5113]
7486         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7487         avoid warning with -Wconversion.
7488         (__strndup): Likewise.
7489         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7491         [BZ #5112]
7492         * nscd/connections.c (restart): Don't resync if database is
7493         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7495         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7496         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7498         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7499         evetnfd_read, eventfd_write.
7500         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7501         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7502         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7503         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7504         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7505         eventfd_write for GLIBC_2.7.
7507         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7508         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7509         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7510         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7512 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7514         * stdlib/msort.c: Include stdint.h.
7515         (struct msort_param): New type.
7516         (msort_with_tmp): Use struct msort_param pointer for unchanging
7517         parameters.  Add optimized handling for several common sizes
7518         and indirect sorting mode.
7519         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7520         sorting.
7521         Suggested by Belazougui Djamel .
7523         * stdlib/Makefile (tests): Add tst-qsort2.
7524         * stdlib/tst-qsort2.c: New test.
7526 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7528         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7529         for dup2 in case another thread races with the current one.  Retry
7530         in this case.
7532         * misc/error.h: Remove support for use outside of libc.  We have to
7533         include <features.h> now.  Include <bits/error.h> if possible.
7534         * misc/bits/error.h: New file.
7536 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7538         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7539         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7540         __extern_always_inline functions unconditionally, drop macros.
7542         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7543         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7544         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7546         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7547         add __artificial__ attribute.
7549 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7551         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7552         backward to forward direction.
7554         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7556         [BZ #645]
7557         * locale/programs/ld-collate.c (collate_finish): Compare against last
7558         used section which is known to have rules defined.
7559         (collate_read): After order_start, correctly record order of sections
7560         and queue sections up.
7562 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7564         [BZ #5071]
7565         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7566         the same number of pages.
7567         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7569         * locale/programs/ld-collate.c (collate_read): After initial copy
7570         statement, continue in state 0.
7572         * include/stdio_ext.h (__fsetlocking): Define as macro.
7574 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7576         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7577         of section order.
7579         * po/pt_BR.po: Fix typo.
7581 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7583         * iconvdata/Makefile (modules): Add ISO8859-9E.
7584         (distribute): Add iso8859-9e.c.
7585         (gen-8bit-gap-modules): Add iso8859-9e.
7586         * iconvdata/iso8859-9e.c: New file.
7587         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7588         * iconvdata/TESTS: Likewise.
7589         * iconvdata/tst-tables.sh: Likewise.
7591         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7593         * locale/iso-639.def: Add several new entries.
7595 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7597         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7598         void * pointers instead of struct link_map **.
7599         (_dl_scope_free): Change argument type to void *.
7600         * include/link.h (struct link_map): Change type of l_reldeps
7601         to struct link_map_reldeps, move l_reldepsact into that
7602         struct too.
7603         * elf/dl-deps.c: Include atomic.h.
7604         (_dl_map_object_deps): Only change l->l_initfini when it is
7605         fully populated, use _dl_scope_free for freeing it.  Optimize
7606         removal of libs from reldeps by using l_reserved flag, when
7607         some removal is needed, allocate a new list instead of
7608         reallocating and free the old with _dl_scope_free.  Adjust
7609         for l_reldeps and l_reldepsact changes.
7610         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7611         searching in l_initfini and l_reldeps without holding dl_load_lock.
7612         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7613         l_reldepsact changes.
7614         * elf/dl-close.c (_dl_close_worker): Likewise.
7615         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7617 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7619         * iconvdata/Makefile (modules): Add KOI8-RU.
7620         (distribute): Add koi8-ru.c.
7621         (gen-8bit-gap-modules): Add koi8-ru.
7622         * iconvdata/koi8-ru.c: New file.
7623         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7624         * iconvdata/TESTS: Likewise.
7625         * iconvdata/tst-tables.sh: Likewise.
7627         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7629 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7631         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7632         with __warning__/__error__ attributes.
7633         (__warnattr): Define.
7634         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7635         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7636         __warnattr.
7637         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7638         of __*_chk if compile time detectable overflow is found.
7639         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7640         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7641         with __warnattr.
7642         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7643         instead of __*_chk if compile time detectable overflow is found.
7644         (__gets_alias): Rename to...
7645         (__gets_warn): ... this.  Add __warnattr.
7646         (gets): Call __gets_warn instead of __gets_alias.
7647         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7648         aliases with __warnattr.
7649         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7650         time detectable overflow is found.
7651         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7652         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7653         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7654         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7655         __getdomainname_chk_warn): New aliases with __warnattr.
7656         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7657         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7658         __*_chk_warn instead of __*_chk if compile time detectable overflow
7659         is found.
7660         (__getgroups_chk): Rename argument to __listlen from listlen.
7661         (__getwd_alias): Rename to...
7662         (__getwd_warn): ... this.  Add __warnattr.
7663         (getwd): Call __getwd_warn instead of __getwd_alias.
7664         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7665         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7666         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7667         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7668         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7669         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7670         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7671         compile time detectable overflow is found.
7672         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7673         to use __*_chk or not.
7674         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7675         in comparisons which function should be called and in __*_chk*
7676         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7677         detectable overflow is found.
7678         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7679         __*_chk argument.
7680         * debug/tst-chk1.c (do_test): Add a few more tests.
7682 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7684         [BZ #5058]
7685         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7686         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7687         (_nl_unload_domain): Finalize conversions_lock.
7688         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7689         handling table of known conversions.
7691 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7693         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7694         close_not_cancel_no_status instead of close.
7696 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7698         [BZ #5028]
7699         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7700         nrules != 0 for multibyte chars.
7702 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7704         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7705         Provide better error message in case the type is unknown.
7707         [BZ #4963]
7708         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7709         * string/stratcliff.c: Make usable to test wide char functions.
7710         * wcsmbs/wcsatcliff.c: New file.
7711         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7713         [BZ #4972]
7714         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7715         (distribute): Add mac-centraleurope.c.
7716         (gen-8bit-gap-modules): Add mac-centraleurope.
7717         * iconvdata/mac-centraleurope.c: New file.
7718         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7719         * iconvdata/TESTS: Likewise.
7720         * iconvdata/tst-tables.sh: Likewise.
7722         [BZ #5043]
7723         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7725 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7727         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7728         from __x86_64_core_cache_size_half.
7729         (init_cacheinfo): Compute shared cache size for AMD processors with
7730         shared L3 correctly.
7731         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7732         name change.
7733         Patch in large parts by Evandro Menezes.
7735 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7737         * elf/dl-lookup.c (add_dependency): Handle failing memory
7738         allocation for dependency list.  Remove unnecessary check.
7740         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7741         open/close when determining source addresses.
7743         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7744         sha512-crypt, and sha512.
7745         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7746         (distribute): Add sha256.h and sha512.h.
7747         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7748         and call the appropriate code.
7749         * crypt/sha256-crypt.c: New file.
7750         * crypt/sha256.c: New file.
7751         * crypt/sha256.h: New file.
7752         * crypt/sha256c-test.c: New file.
7753         * crypt/sha256test.c: New file.
7754         * crypt/sha512-crypt.c: New file.
7755         * crypt/sha512.c: New file.
7756         * crypt/sha512.h: New file.
7757         * crypt/sha512c-test.c: New file.
7758         * crypt/sha512test.c: New file.
7760 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7762         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7763         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7764         __syslog_chk.
7766 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7768         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7769         %as in fscanf format strings.
7771         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7772         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7773         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7774         Likewise.
7775         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7776         Likewise.
7778         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7779         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7780         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7781         * elf/dl-sym.c (do_sym): Likewise.
7782         * include/link.h (struct link_map): Add l_serial field.
7783         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7784         * elf/dl-lookup.c (add_dependency): Add flags argument.
7785         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7786         flags, use THREAD_GSCOPE_RESET_FLAG before and
7787         THREAD_GSCOPE_SET_FLAG after
7788         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7789         Don't dereference map until it has been found on some list.
7790         If map->l_serial changed, return -1.
7792 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7794         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7795         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7796         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7797         libc_hidden_proto.
7798         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7799         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7800         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7801         add libc_hidden_proto.
7802         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7803         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7804         conformance requested.
7805         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7806         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7807         conformance requested.
7808         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7809         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7810         conformance requested.
7811         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7812         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7813         ISO C99 or POSIX conformance requested.
7814         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7815         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7816         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7817         and __isoc99_vsscanf@@GLIBC_2.7.
7818         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7819         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7820         (tests): Add scanf14.
7821         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7822         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7823         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7824         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7825         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7826         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7827         from using internal headers.
7828         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7829         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7830         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7831         and __isoc99_vswscanf@@GLIBC_2.7.
7832         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7833         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7834         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7835         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7836         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7837         * stdio-common/isoc99_scanf.c: New file.
7838         * stdio-common/isoc99_vsscanf.c: New file.
7839         * stdio-common/isoc99_vscanf.c: New file.
7840         * stdio-common/isoc99_vfscanf.c: New file.
7841         * stdio-common/isoc99_fscanf.c: New file.
7842         * stdio-common/isoc99_sscanf.c: New file.
7843         * wcsmbs/isoc99_fwscanf.c: New file.
7844         * wcsmbs/isoc99_vswscanf.c: New file.
7845         * wcsmbs/isoc99_swscanf.c: New file.
7846         * wcsmbs/isoc99_wscanf.c: New file.
7847         * wcsmbs/isoc99_vwscanf.c: New file.
7848         * wcsmbs/isoc99_vfwscanf.c: New file.
7849         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7850         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7851         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7852         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7853         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7854         * stdio-common/scanf14.c: New test.
7855         * stdio-common/scanf15.c: New test.
7856         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7857         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7858         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7859         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7860         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7861         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7862         __nldbl___isoc99_scanf@@GLIBC_2.7,
7863         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7864         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7865         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7866         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7867         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7868         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7869         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7870         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7871         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7872         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7873         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7874         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7875         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7876         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7877         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7878         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7879         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7880         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7881         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7882         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7883         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7884         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7885         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7886         functions.
7887         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7888         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7889         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7890         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7891         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7892         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7893         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7894         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7895         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7896         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7897         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7898         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7900         * stdio-common/Makefile (tests): Add scanf13.
7901         (scanf13-ENV): New.
7902         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7903         m modifier followed by l.
7904         (STRING_ARG): Add width argument.
7905         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7906         <case L_('C')>: Handle %mlc and %mC.
7907         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7908         arguments.
7909         * stdio-common/scanf13.c: New test.
7911         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7912         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7914 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7916         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7917         type and __THROW marker of splice, vmsplice, and tee.
7918         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7919         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7920         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7921         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7922         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7923         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7924         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7925         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7926         as cancellation points.
7928 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7930         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7931         parse more than three parts of the version number.
7933 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7935         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7936         modifier.  Patch by Jakub Jelinek.
7938 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7940         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7941         call_fallocate in misc subdir.
7942         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7943         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7944         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7945         instead of __fallocate64.
7946         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7948 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7950         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7951         * rt/Makefile (headers): Add bits/mqueue2.h.
7952         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7953         optimizing with GCC and __va_arg_pack_len is defined.
7954         * rt/bits/mqueue2.h: New file.
7955         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7956         (mq_open): New strong_alias.
7957         (__mq_open_2): New function.
7958         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7959         (mq_open): New strong_alias.
7960         (__mq_open_2): New function.
7961         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7962         * Versions.def (librt): Add GLIBC_2.7 version.
7963         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7964         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7966         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7967         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7968         is defined rather than when not C++.
7969         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7970         __openat64_alias): New redirects.
7971         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7972         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7973         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7974         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7975         functions instead of function-like macros.
7977 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7979         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7980         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7981         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7983 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7985         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7986         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7988 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7990         * inet/tst-network.c: Increment ERRORS for failing tests.
7992 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7994         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7995         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7996         implement as __extern_always_inline function.
7997         (vsyslog): Define as __extern_always_inline function unconditionally.
7998         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7999         When __va_arg_pack is defined, implement as __extern_always_inline
8000         functions.
8001         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8002         __extern_always_inline functions unconditionally.
8003         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8004         bits/stdio2.h will be included.
8005         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8006         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8007         implement as __extern_always_inline functions.
8008         (vswprintf, vwprintf, vfwprintf): Define as
8009         __extern_always_inline functions unconditionally.
8010         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8012 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8014         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8015         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8016         attribute.
8017         * include/features.h (__USE_EXTERN_INLINES): Define only when
8018         __extern_inline is defined.
8019         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8020         is defined instead of when not __cplusplus.
8021         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8022         is defined instead of when not __cplusplus.
8023         * socket/sys/socket.h: Include bits/socket2.h when
8024         __extern_always_inline is defined instead of when not __cplusplus.
8025         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8026         is defined instead of when not __cplusplus.
8027         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8028         is defined instead of when not __cplusplus.
8029         * string/string.h: Include bits/string3.h when __extern_always_inline
8030         is defined instead of when not __cplusplus.
8031         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8032         is defined instead of when not __cplusplus.
8033         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8034         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8035         is not defined.
8036         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8037         defined __extern_always_inline instead of !defined __cplusplus.
8038         * libio/bits/stdio-ldbl.h: Likewise.
8039         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8040         * misc/bits/syslog.h (syslog): Don't define for C++.
8041         (vsyslog): Use __extern_always_inline function for C++ instead of
8042         a macro.
8043         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8044         whenever that macro is defined.
8045         (vprintf): Don't provide the inline for C++.
8046         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8047         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8048         define the macros for C++.
8049         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8050         __extern_always_inline functions for C++.
8051         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8052         stat64, lstat64, fstat64, fstatat64): Don't define if not
8053         __USE_EXTERN_INLINES.
8054         * wcsmbs/bits/wchar2.h: Fix #error message.
8055         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8056         (vswprintf, vwprintf, vfwprintf): Define using
8057         __extern_always_inline functions for C++.
8058         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8059         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8060         strncpy, strcat, strncat): Define as __extern_always_inline
8061         functions instead of macros for C++.
8062         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8063         defined __extern_inline.
8064         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8065         to __extern_inline whenever that macro is defined.
8066         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8067         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8068         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8069         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8070         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8071         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8072         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8073         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8074         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8075         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8076         prototypes.  Only provide __extern_inline routines if
8077         __USE_EXTERN_INLINES.
8078         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8079         tests.
8080         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8081         For now avoid some *printf tests in C++.  Skip all testing
8082         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8083         is not.
8084         * debug/tst-chk4.cc: New file.
8085         * debug/tst-chk5.cc: New file.
8086         * debug/tst-chk6.cc: New file.
8087         * debug/tst-lfschk4.cc: New file.
8088         * debug/tst-lfschk5.cc: New file.
8089         * debug/tst-lfschk6.cc: New file.
8090         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8091         prototypes in C++.
8092         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8093         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8094         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8096 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8098         * po/cs.po: Update from translation team.
8100 2007-09-11  Roland McGrath  <roland@redhat.com>
8102         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8103         compiling.
8105 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8107         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8109 2007-09-05  Roland McGrath  <roland@redhat.com>
8111         * manual/signal.texi (Signaling Another Process): Typo fix.
8112         From Karl Berry <karl@freefriends.org>.
8114 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8116         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8117         zero if not defined.
8118         (make_request): Recognize optimistic addresses and treat them like
8119         deprecated addresses.
8120         Reported by Neil Horman <nhorman@redhat.com>.
8122 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8124         * nscd/connections.c (send_ro_fd): Also transfer file size.
8125         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8126         file size don't call fstat.
8128         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8129         ahead and map the file.  This should always be correct and we can
8130         catch problems later.
8132 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8134         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8135         prototypes.
8136         (__fread_alias, __fread_unlocked_alias): New aliases.
8137         (fread): New extern inline.
8138         (fread_unlocked): Likewise.  Undef macro before definition of
8139         the inline function.
8140         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8141         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8142         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8143         and __fread_unlocked_chk@@GLIBC_2.7.
8144         * debug/fread_chk.c: New file.
8145         * debug/fread_u_chk.c: New file.
8146         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8148 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8150         * sysdeps/unix/sysv/linux/syscalls.list
8151         (personality): Change caller to EXTRA.
8153 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8155         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8156         to keep gcc quiet.
8157         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8159         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8160         NDEBUG is defined.
8162         * Makerules: Use -p option with mkdir.
8164         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8165         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8166         (_xdr_directory_obj): Likewise.
8167         (xdr_entry_obj): Likewise.
8168         (xdr_group_obj): Likewise.
8169         (xdr_link_obj): Likewise.
8170         (xdr_table_obj): Likewise.
8171         (_xdr_nis_result): Likewise.
8172         (_xdr_ns_request): Likewise.
8173         (_xdr_ib_request): Likewise.
8174         (_xdr_nis_taglist): Likewise.
8175         (xdr_cback_data): Likewise.
8176         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8177         (xdr_ypresp_maplist): Likewise.
8179         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8181         * posix/regex_internal.h: Prevent some declarations and definitions
8182         to be seen when used in tests.
8184         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8185         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8187         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8189         * config.make.in (datarootdir): Add to shut up configure.
8191         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8192         associativity for fully-associative caches.
8194         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8195         requests.  Fill on more associativity values for L2.
8196         Patch mostly by Evandro Menezes.
8198 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8200         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8201         (_libc_vdso_platform_setup): Avoid using exported variable by using
8202         alias.
8204         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8206         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8207         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8208         defined.
8210 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8212         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8213         align stack for call if pltexit is to be used.
8215         [BZ #3924]
8216         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8217         align for function call in case pltexit has to be called later.
8219         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8220         implicit atomic operation when storing function pointer.
8221         (_dl_runtime_profile): Likewise.
8223 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8225         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8226         NIS_NOTFOUND.
8228 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8230         [BZ #4566]
8231         * string/strtok.c: Fix typo in comment.
8233         [BZ #4582]
8234         * debug/segfault.c: Fix typos in comments.
8236         [BZ #4588]
8237         * stdio-common/tempnam.c: Fix comment, it is not checked that
8238         TMPDIR points to a writable directory.
8240         [BZ #4726]
8241         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8242         memory allocated for the name server address.
8244         [BZ #4946]
8245         * nscd/connections.c (handle_request): Using sendfile always
8246         requires that mmap is used for the database.
8247         Patch by Petr Baudis <pasky@suse.cz>.
8249         [BZ #4905]
8250         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8251         suddenly has two or more addresses, ignore it and remove the old
8252         entry.
8254         [BZ #4814]
8255         * resolv/res_hconf.c: Prepare for compiling outside libc.
8256         * nscd/res_hconf.c: New file.
8257         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8258         the new file.
8259         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8260         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8262         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8264         [BZ #4925]
8265         * debug/pcprofiledump.c: Turn on internationalization by calling
8266         setlocale.  Patch mostly by Benno Schulenberg.
8268         [BZ #4936]
8269         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8270         the state.
8271         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8272         * iconvdata/bug-iconv5.c: New file.
8274 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8276         [BZ #4896]
8277         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8278         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8279         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8280         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8281         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8282         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8283         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8284         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8286 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8288         [BZ #4937]
8289         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8290         lookup loop.  Suggested by John Reiser.
8292 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8294         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8296 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8298         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8299         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8300         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8301         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8302         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8303         to...
8304         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8306 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8308         * po/nl.po: Update from translation team.
8310 2007-08-16  Andreas Jaeger  <aj@suse.de>
8312         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8313         Reported by Peter Festner <peter.festner@ewetel.net>.
8315 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8317         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8319 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8321         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8322         to check for undefined symbols.
8324         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8325         If the syscall fails, set errno to the actual returned error number
8326         rather than EINVAL.
8327         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8328         arguments are incorrect, set errno to EINVAL, if the syscall
8329         fails, set errno to the actual returned error number.
8331         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8332         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8334         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8335         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8336         file.
8337         (ASI_PNF, ASI_BLK_P): Don't define.
8338         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8339         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8340         file.
8341         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8342         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8343         file.
8345 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8347         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8348         FE_UNDERFLOW on Niagara CPUs.
8350         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8351         exceptions.
8353 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8355         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8356         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8357         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8358         flush should be used or not inside of the function.
8359         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8361         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8362         __thread_start): Use HIDDEN_JUMPTARGET.
8363         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8364         __thread_start): Likewise.
8365         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8367         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8368         Add libc_hidden_proto.
8369         (STRTOF): Add libc_hidden_proto.
8370         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8371         (strtold_l, wcstold_l): Use them as second argument for
8372         long_double_symbol.
8374 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8376         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8378 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8380         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8382 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8384         * po/bg.po: New file.  From the translation team.
8386 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8388         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8389         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8390         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8391         when each feature was introduced.
8393         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8394         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8395         (CHECK_HASH): New macro.
8396         (PREPARE_VERSION): Use it.
8398         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8399         prototype if not __ASSUME_PSELECT.
8400         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8401         prototype if not __ASSUME_PPOLL.
8403         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8405         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8406         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8407         is defined.
8409 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8411         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8412         (_libc_vdso_platform_setup): If vDSO is not available point
8413         __vdso_gettimeofday to the vsyscall.
8414         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8415         __vdso_gettimeofday instead of vsyscall.
8417 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8419         * nscd/servicescache.c: Include kernel-features.h.
8420         * nscd/gai.c: Likewise.
8421         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8422         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8423         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8424         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8425         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8426         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8427         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8428         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8429         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8431 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8433         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8434         and _dl_get_origin defines anymore.
8436         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8437         Build fix for systems which might lack POSIX timer support.
8439         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8440         (_libc_vdso_platform_setup): Mangle function pointers before storing
8441         them.
8442         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8443         Demangle vdso pointer before use.
8444         (INTERNAL_VSYSCALL): Likewise.
8446         * elf/cache.c (primes): Mark as const.
8447         Noted by Roland McGrath.
8449 2007-08-01  Andreas Jaeger  <aj@suse.de>
8450             Jakub Jelinek  <jakub@redhat.com>
8452         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8453         (options): Add option.
8454         (parse_opt): Handle option.
8455         (manual_link): Adjust process_file caller.  Call implicit_soname.
8456         (search_dir): Formatting.  Use and populate auxiliary cache.
8457         (main): Load and save auxiliary cache.
8458         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8459         stat64 from fstat64 to caller.
8460         (implicit_soname): New function.
8461         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8462         leave *soname as NULL.
8463         * elf/cache.c: Include libgen.h.
8464         (print_entry, print_cache, compare, save_cache, add_to_cache):
8465         Formatting and cleanups.
8466         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8467         aux_cache_file): New structures.
8468         (AUX_CACHEMAGIC): Define.
8469         (primes): New array.
8470         (aux_hash_size, aux_hash): New variables.
8471         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8472         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8473         load_aux_cache, save_aux_cache): New functions.
8474         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8475         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8476         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8477         (process_file): Adjust prototype.
8479 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8481         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8482         with __need_size_t.
8484 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8486         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8487         r_found_version structure as second parameter.
8488         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8489         (_dl_vdso_vsym): Change type of second parameter accordingly.
8490         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8491         (_libc_vdso_platform_setup): Adjust.
8492         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8493         (_libc_vdso_platform_setup): Likewise.
8495         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8496         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8497         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8498         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8499         * csu/libc-start.c: Pretty printing.
8500         Use VDSO_SETUP if defined.
8501         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8502         and let generic code call into _libc_vdso_platform_setup.
8503         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8504         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8505         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8506         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8507         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8508         for GLIBC_PRIVATE.
8509         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8510         (sysdep_rountines): Add dl-vdso.
8512         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8513         of routines.
8515         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8516         attribute_hidden to __vdso_gettimeofday prototype.
8518 2007-08-12  Roland McGrath  <roland@redhat.com>
8520         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8521         From: Karl Berry <karl@freefriends.org>.
8523 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8525         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8526         an atime update for the files we read.
8528 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8530         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8532         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8533         instead of mkstemp.
8535         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8536         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8537         * misc/mkostemp.c: New file.
8538         * misc/mkostemp64.c: New file.
8539         * stdlib/stdlib.h: Declare the new functions.
8540         * sysdeps/posix/tempname.c: Add new parameter which is added to
8541         the flags for open.  Remove __GT_BIGFILE handling.
8542         * stdio-common/tempname.c: Likewise.
8543         * include/stdio.h: Adjust __gen_tempname prototype.
8544         Renumber __GT_* constants.
8545         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8546         * misc/mkdtemp.c: Likewise.
8547         * misc/mkstemp.c: Likewise.
8548         * misc/mkstemp64.c: Likewise.
8549         * misc/mktemp.c: Likewise.
8550         * stdio-common/tempnam.c: Likewise.
8551         * stdio-common/tmpfile.c: Likewise.
8552         * stdio-common/tmpfile64.c: Likewise.
8553         * stdio-common/tmpnam.c: Likewise.
8554         * stdio-common/tmpnam_r.c: Likewise.
8556 2007-08-10  Roland McGrath  <roland@frob.com>
8558         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8559         New macros.
8560         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8561         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8563 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8565         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8566         possible.
8567         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8568         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8569         * nss/nss_files/files-have_o_cloexec.c: New file.
8571         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8572         available.
8574 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8576         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8577         ___new_wcstold_l): New weak aliases.
8578         (strtold_l, wcstold_l): Use them as second argument for
8579         long_double_symbol.
8581 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8583         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8584         register in test for error.
8586         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8587         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8589         * po/sv.po: Update from translation team.
8591 2007-08-06  Roland McGrath  <roland@redhat.com>
8593         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8594         Remove __strto*_l inlines.
8595         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8596         * stdlib/strtod.c: Add libc_hidden_def.
8597         * stdlib/strtod_l.c: Likewise.
8598         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8599         for __new_strtold and __new_wcstold.
8600         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8601         __STRTOF, STRTOF.
8602         * stdlib/strtol.c: Add libc_hidden_def.
8603         * stdlib/strtol_l.c: Likewise.
8604         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8605         strtoq.
8607         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8609         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8610         * scripts/data/localplt-generic.data: ... here.
8611         * elf/Makefile (check-data): Get generic file if no other.
8612         ($(objpfx)check-localplt.out): Make target unconditional.
8614         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8615         Use ElfW(Nhdr).
8617 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8619         * po/zh_CN.po: Updated translation from translation team.
8621 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8624         Don't use CGOTSETUP and CGOTRESTORE macros.
8626 2007-08-04  Roland McGrath  <roland@redhat.com>
8628         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8630 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8632         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8633         __extension__ around the whole statement expression.
8635 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8637         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8638         elements during initialization.
8640         * po/pl.po: Updated translation from translation team.
8641         * po/tr.po: Likewise.
8642         * po/nl.po: Likewise.
8644 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8646         * rt/aio.h: Add __nonnull attributes.
8648 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8650         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8651         * stdlib/Makefile (tests): Add tst-strtod5.
8652         (tst-strtod5-ENV): New.
8653         * stdlib/tst-strtod5.c: New file.
8655         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8656         failed.
8657         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8658         on failure.
8660         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8661         allocated.
8663 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8665         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8666         numbers.
8668 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8670         * io/Makefile (aux): Add have_o_cloexec.
8671         * include/fcntl.h: Declare __have_o_cloexec.
8672         * io/have_o_cloexec.c: New file.
8673         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8674         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8675         fcntl call if not necessary.
8676         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8677         of local variable.
8679         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8680         Avoid memset, add explicit initialization.
8681         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8682         to the end and change into zero-sized array.
8683         Move lock member to fill a hole on 64-bit platforms.
8685         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8686         inline functions.
8687         * include/stdlib.h: Add __strto*_internal prototypes here.
8688         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8689         inline functions.
8690         * include/wchar.h: Add __wcsto*_internal prototypes.
8691         * sysdeps/generic/inttypes.h: No need to protect the declaration
8692         of the __strto*_internal and __wcsto*_internal members here.
8694         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8696 2007-08-02  Roland McGrath  <roland@redhat.com>
8698         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8699         $(inst_bindir)/getconf if possible.
8701         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8702         (generated): Add it.
8703         ($(inst_libexecdir)/getconf): Use it.
8705 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8707         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8708         /proc is faster and sufficient.  /sys is still needed for
8709         __get_nprocs_conf.
8711 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8713         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8714         syscall as __fallocate64.
8715         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8716         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8718 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8720         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8721         value.
8723         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8724         if off_t is different rank from size_t.
8726         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8727         uw_frame_state_for): Avoid type punning warnings.
8728         * sysdeps/generic/unwind-dw2-fde-glibc.c
8729         (_Unwind_IteratePhdrCallback): Likewise.
8730         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8731         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8732         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8733         pointers.
8735 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8737         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8738         total processors using sysfs.
8739         (__get_nprocs): Use sysfs to determine which processors are online.
8741 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8743         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8744         syscall arguments count.
8746         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8748 2007-07-30  Roland McGrath  <roland@redhat.com>
8750         * manual/libc.texinfo: Update copyrights, formatting magic, and
8751         @dircategory.  From Karl Berry <karl@freefriends.org>.
8753 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8755         [BZ #4860]
8756         * io/Makefile (headers): Add bits/fcntl2.h.
8758         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8759         using gcc builtin.
8760         (__CPU_EQUAL_S): Likewise.
8762         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8763         (tests): Add tst-cpuset.
8764         * posix/sched_cpualloc.c: New file.
8765         * posix/sched_cpufree.c: New file.
8766         * posix/tst-cpuset.c: New file.
8767         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8768         GLIBC_2.7.
8769         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8770         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8771         macros.  Define CPU_*_S macros.
8773 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8775         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8776         entry.
8778         [BZ #4858]
8779         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8780         #.0g and value rounded to 1.0.
8781         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8783 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8785         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8786         for int_frac_digits and frac_digits.
8788         * login/logout.c (logout): Avoid aliasing violation.
8789         * login/logwtmp.c (logwtmp): Likewise.
8791         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8793         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8794         to avoid warning.
8795         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8796         warning.
8797         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8798         warning.
8799         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8800         to avoid warnings.
8802         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8803         void **.
8804         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8806         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8807         char * to avoid warning.
8808         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8810         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8812         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8813         allocate_arrays): Cast second argument to charmap_find_symbol
8814         to char * to avoid warnings.
8816         * locale/programs/repertoire.c (repertoire_new_char): Change
8817         from_nr, to_nr and cnt to unsigned long, adjust printf format
8818         string.
8820         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8821         Cast second argument to new_element to char * to avoid warnings.
8823         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8825         * intl/gettextP.h (struct loaded_domain): Change plural to const
8826         struct expression *.
8827         * intl/plural-eval.c (plural_eval): Change first argument to
8828         const struct expression *.
8829         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8830         argument to const struct expression **.
8831         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8832         prototypes.
8833         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8834         in call to __gettext_free_exp.
8836         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8837         unitialized wstring/wpattern var warnings.
8839         * posix/runtests.c (struct a_test): Make data field const char *.
8841         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8842         vars if not LDBL_MANT_DIG >= 106.
8844         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8846         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8847         __find_specmb to avoid warning.
8849         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8851         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8852         to avoid warnings.
8854         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8855         initializer.
8857         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8858         tv var when it will be actually used.
8860         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8861         to avoid warnings.
8863         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8864         char array resp. pointer.
8865         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8866         char array.
8867         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8868         to const unsigned char **.
8869         (ucs4_to_cns11643): Change second argument to unsigned char *.
8870         * iconvdata/euc-tw.c (BODY): Change endp type to
8871         const unsigned char *.
8872         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8873         to unsigned char *.
8874         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8875         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8876         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8877         types to unsigned char pointers/arrays instead of char.
8878         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8879         to unsigned char *.
8880         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8881         * iconvdata/jis0212.h: Include assert.h.
8882         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8883         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8884         of trying to handle that.
8885         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8886         shut up a warning.
8887         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8888         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8889         two dimensional const unsigned char arrays.
8890         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8891         Initialize endp to inptr to shut up a warning.
8893 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8895         [BZ #4772]
8896         * time/strptime_l.c (__strptime_internal): Silently ignore
8897         strftime modifiers and field width in recursive calls.
8899         * include/time.h (enum ptime_locale_status): Remove.
8900         (__strptime_internal): Remove decided and era_cnt arguments,
8901         add statep argument.
8902         * time/strptime_l.c (__strptime_internal): Remove decided
8903         and era_cnt arguments, add statep argument.  Don't recompute
8904         any fields in recursive calls, only update caller's tm
8905         and state, if recursive call fails, don't change tm nor
8906         any state.
8907         (get_alt_number): Adjust.
8908         (recursive): Adjust caller.
8909         (strptime): Likewise.
8910         * time/strptime.c (strptime): Likewise.
8912 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8914         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8915         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8916         if from and to charsets are the same.
8917         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8918         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8919         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8921 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8923         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8924         Don't define wint_t when __need_mbstate_t unless it
8925         is necessary.
8926         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8927         in the typedef if possible.
8928         * wctype/wctype.h (wint_t): Define by including
8929         wchar.h with __need_wint_t instead of including stddef.h
8930         with __need_wint_t and as fallback definining it ourselves.
8931         * iconv/gconv.h (__need_wint_t): Define before including
8932         wchar.h.
8933         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8934         or _GLIBCPP_USE_WCHAR_T.
8935         (__need_wchar_t): Don't define
8936         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8937         (__need_wint_t): Don't define before including stddef.h,
8938         define before including wchar.h only if _LIBC or
8939         _GLIBCPP_USE_WCHAR_T.
8940         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8941         * sysdeps/mach/hurd/_G_config.h: Likewise.
8942         * sysdeps/generic/_G_config.h: Likewise.
8943         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8944         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8945         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8946         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8948 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8950         * sysdeps/posix/posix_fallocate64.c: Undefine
8951         __posix_fallocate64_l64 before alias handling.
8952         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8953         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8954         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8955         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8957         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8959 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8961         * locale/programs/ld-collate.c (atwc): New variable.
8962         (add_to_tablewc): New toplevel function, moved from collate_output.
8963         (collate_output): Remove add_to_tablewc nested function.
8965         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8966         (name_insert): New function.
8967         (write_output): Remove hash_table and hash_size vars and name_insert
8968         nested function.
8970 2007-07-24  Roland McGrath  <roland@redhat.com>
8972         * Makerules (install-others-programs-nosubdir): New target.
8973         (install-no-libc.a-nosubdir): Depend on it.
8975         * iconv/Makefile (install-others-programs): Set this instead of
8976         install-others.
8977         * login/Makefile (install-others-programs): Likewise.
8978         * posix/Makefile (install-others-programs): Likewise.
8980         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8981         dependencies.
8983 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8985         * io/Makefile (tests): Add tst-posix_fallocate.
8986         * io/tst-posix_fallocate.c: New file.
8988         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8989         __ASSUME_FALLOCATE.
8991 2007-07-22  Roland McGrath  <roland@frob.com>
8993         * hurd/getdport.c: Add missing copyright year update.
8995         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8996         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8998 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9000         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9002         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9003         O_CLOEXEC is needed.
9004         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9005         Avoid additional fcntl to set O_CLOEXEC if not needed.
9006         * nis/nss_compat/compat-initgroups.c: Likewise.
9007         * nis/nss_compat/compat-pwd.c: Likewise.
9008         * nis/nss_compat/compat-spwd.c: Likewise.
9010 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9012         [BZ #3665]
9013         * manual/errno.texi: Change ECANCELED value to 119.
9015         [BZ #4610]
9016         * mach/lock-intern.h: Include <sys/cdefs.h>.
9018         [BZ #4178]
9019         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9020         reading A.
9022         [BZ #4126]
9023         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9024         to __sigsuspend.
9026         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9028 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9030         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9031         `__ASSEMBLER__'.
9032         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9034 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9036         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9037         descriptor received from nscd.
9039         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9041         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9042         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9043         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9044         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9045         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9046         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9048 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9050         [BZ #4816]
9051         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9053         [BZ #4813]
9054         * login/forkpty.c (forkpty): Close master and slave fds on
9055         fork failure.  Patch by
9056         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9058 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9060         * include/features.h (__USE_ISOC95): New define.
9061         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9062         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9063         for -std=iso9899:199409.
9064         * CONFORMANCE: Remove comments about unsupported AMD1.
9066 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9068         * sysdeps/ia64/sched_cpucount.c: New file.
9069         * sysdeps/powerpc/sched_cpucount.c: New file.
9071         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9072         __BEGIN_DECLS/__END_DECLS around the prototype.
9073         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9074         pointer to const cpu_set_t.
9076         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9077         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9078         __need_size_t and include stddef.h.
9079         * sysvipc/sys/msg.h: Likewise.
9080         * posix/sched.h: Likewise.
9081         * hurd/hurd/signal.h (__need_size_t): Define.
9083         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9084         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9085         no longer defines wint_t or wchar_t.
9087         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9088         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9089         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9090         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9091         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9092         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9093         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9094         * debug/printf_chk.c (__printf_chk): Likewise.
9095         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9096         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9098         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9099         Define.
9101         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9102         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9104 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9106         [BZ #4792]
9107         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9108         * malloc/malloc.h (realloc): Likewise.
9110         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9111         if one of proc_file_chain streams has that fileno.
9112         * stdio-common/Makefile (tests): Add tst-popen2.
9113         * stdio-common/tst-popen2.c: New test.
9115 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9117         * elf/ldconfig.c: Allow GPLv2 or any later version.
9118         * elf/readlib.c: Likewise.
9119         * elf/chroot_canon.c: Likewise.
9120         * elf/cache.c: Likewise.
9121         * nscd/mem.c: Likewise.
9122         * nscd/getpwuid_r.c: Likewise.
9123         * nscd/grpcache.c: Likewise.
9124         * nscd/aicache.c: Likewise.
9125         * nscd/getsrvbynm_r.c: Likewise.
9126         * nscd/nscd.c: Likewise.
9127         * nscd/servicescache.c: Likewise.
9128         * nscd/getsrvbypt_r.c: Likewise.
9129         * nscd/initgrcache.c: Likewise.
9130         * nscd/gethstbyad_r.c: Likewise.
9131         * nscd/gethstbynm2_r.c: Likewise.
9132         * nscd/getgrnam_r.c: Likewise.
9133         * nscd/nscd_setup_thread.c: Likewise.
9134         * nscd/getpwnam_r.c: Likewise.
9135         * nscd/gai.c: Likewise.
9136         * nscd/connections.c: Likewise.
9137         * nscd/dbg_log.c: Likewise.
9138         * nscd/cache.c: Likewise.
9139         * nscd/hstcache.c: Likewise.
9140         * nscd/nscd_conf.c: Likewise.
9141         * nscd/getgrgid_r.c: Likewise.
9142         * nscd/pwdcache.c: Likewise.
9143         * catgets/gencat.c: Likewise.
9144         * locale/programs/linereader.h: Likewise.
9145         * locale/programs/locarchive.c: Likewise.
9146         * locale/programs/ld-paper.c: Likewise.
9147         * locale/programs/locfile-kw.h: Likewise.
9148         * locale/programs/ld-address.c: Likewise.
9149         * locale/programs/xmalloc.c: Likewise.
9150         * locale/programs/ld-time.c: Likewise.
9151         * locale/programs/localedef.c: Likewise.
9152         * locale/programs/simple-hash.c: Likewise.
9153         * locale/programs/xstrdup.c: Likewise.
9154         * locale/programs/ld-numeric.c: Likewise.
9155         * locale/programs/locfile-kw.gperf: Likewise.
9156         * locale/programs/ld-collate.c: Likewise.
9157         * locale/programs/charmap-kw.gperf: Likewise.
9158         * locale/programs/charmap.h: Likewise.
9159         * locale/programs/charmap-kw.h: Likewise.
9160         * locale/programs/config.h: Likewise.
9161         * locale/programs/locfile.c: Likewise.
9162         * locale/programs/ld-ctype.c: Likewise.
9163         * locale/programs/charmap.c: Likewise.
9164         * locale/programs/ld-messages.c: Likewise.
9165         * locale/programs/repertoire.h: Likewise.
9166         * locale/programs/locale.c: Likewise.
9167         * locale/programs/ld-name.c: Likewise.
9168         * locale/programs/linereader.c: Likewise.
9169         * locale/programs/locfile.h: Likewise.
9170         * locale/programs/3level.h: Likewise.
9171         * locale/programs/ld-monetary.c: Likewise.
9172         * locale/programs/ld-measurement.c: Likewise.
9173         * locale/programs/charmap-dir.c: Likewise.
9174         * locale/programs/ld-identification.c: Likewise.
9175         * locale/programs/localedef.h: Likewise.
9176         * locale/programs/charmap-dir.h: Likewise.
9177         * locale/programs/repertoire.c: Likewise.
9178         * locale/programs/simple-hash.h: Likewise.
9179         * locale/programs/ld-telephone.c: Likewise.
9180         * locale/programs/locale-spec.c: Likewise.
9181         * locale/programs/locfile-token.h: Likewise.
9182         * posix/getconf.c: Likewise.
9183         * iconv/dummy-repertoire.c: Likewise.
9184         * iconv/iconv_charmap.c: Likewise.
9185         * iconv/iconvconfig.c: Likewise.
9186         * iconv/iconv_prog.c: Likewise.
9187         * malloc/memusagestat.c: Likewise.
9188         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9190 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9192         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9193         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9194         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9195         check for the first argument.
9197 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9199         [BZ #4775]
9200         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9201         (__tgmath_real_type): Fix if expr is const int or other const
9202         qualified integral type.
9203         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9204         expressions and handle const qualified arguments.
9205         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9206         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9207         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9208         statement expressions.
9209         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9210         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9211         (__TGMATH_UNARY_IMAG): Define.
9212         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9213         * math/Makefile (tests): Add test-tgmath2.
9214         (CFLAGS-test-tgmath2.c): Add.
9215         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9216         count_cfloat, count_cldouble): New variables.
9217         (NCCALLS): Define.
9218         (main): Check number of complex calls as well.
9219         (F(compile_test)): Add complex tests and tests with const qualified
9220         arguments.
9221         (y, z, ccount): Define.
9222         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9223         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9224         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9225         F(cproj)): New functions.
9226         * math/test-tgmath2.c: New test.
9228 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9230         [BZ #4776]
9231         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9232         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9233         instead output ".".
9234         * dlfcn/Makefile (distribute): Add glreflib3.c.
9235         (module-names): Add glreflib3.
9236         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9237         glreflib1.so.
9238         (LDFLAGS_glreflib3.so): New.
9239         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9240         glreflib1.so.
9241         * dlfcn/glreflib3.c: New file.
9243         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9244         returned -1, return NULL.
9245         * intl/explodename.c (_nl_explode_name): Return -1 if
9246         _nl_normalize_codeset failed.
9248 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9250         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9251         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9252         and avoid branch misspredicts for > 31 bytes memset case.
9253         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9254         Remove toc ref to __cache_line_size.
9256         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9257         to get ISA-V2.0 branch hints.
9258         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9259         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9260         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9261         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9262         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9263         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9264         Remove toc ref to __cache_line_size.
9266         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9267         Include math_ldbl_opt.h.
9269 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9271         [BZ #4773]
9272         * time/strptime_l.c (__strptime_internal): Implement greedy
9273         matching of weekday and month names.
9275 2007-07-09  Roland McGrath  <roland@redhat.com>
9277         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9278         (ELF_NOTE_ABI): Use it.
9279         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9281 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9283         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9284         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9286 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9288         [BZ #4745]
9289         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9290         in loop to look for conversion specifier to avoid testing of
9291         wrong errno value.
9292         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9293         * stdio-common/bug18.c: New file.
9294         * stdio-common/bug18a.c: New file.
9295         * stdio-common/bug19.c: New file.
9296         * stdio-common/bug19a.c: New file.
9298 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9300         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9301         running awk script.
9303 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9305         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9306         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9307         Return NULL if mmap failed instead of asserting it does not.
9308         (calloc): Check for integer overflow.
9310         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9311         than LONG_MAX / 10.
9313 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9315         [BZ #4702]
9316         * nis/nss-default.c: Include errno.h.
9317         (init): Preserve errno.
9319 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9321         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9323 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9325         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9327 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9329         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9331 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9333         * sysdeps/s390/dl-procinfo.c: New file.
9334         * sysdeps/s390/dl-procinfo.h: New file.
9335         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9337 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9339         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9340         in PT_NOTE segments with multiple notes.
9341         * elf/readelflib.c (process_elf_file): Likewise.
9343 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9345         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9346         ISO C compliant.
9348 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9350         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9352 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9354         * include/link.h: Don't include rtld-lowlevel.h.
9355         (struct link_map): Remove l_scope_lock.
9356         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9357         (_dl_scope_free_list): New field (variable) in _rtld_global.
9358         (DL_LOOKUP_SCOPE_LOCK): Remove.
9359         (_dl_scope_free): New prototype.
9360         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9361         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9362         (_dl_profile_fixup): Likewise.
9363         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9364         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9365         THREAD_GSCOPE_RESET_FLAG around it.
9366         * elf/dl-close.c (_dl_close_worker): Don't use
9367         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9368         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9369         scopes were queued or if l_scope_mem has been abandoned.
9370         * elf/dl-open.c (_dl_scope_free): New function.
9371         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9372         * elf/dl-support.c (_dl_scope_free_list): New variable.
9373         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9374         Remove DL_LOOKUP_SCOPE_LOCK handling.
9375         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9376         handling.
9377         * elf/dl-object.c (_dl_new_object): Don't use
9378         __rtld_mrlock_initialize.
9380 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9382         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9383         to fill in holes
9384         (rtld_global_ro): Likewise.
9386 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9388         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9389         Move PT_LOAD checking to...
9390         (_dl_addr_inside_object): ... here, new function.
9391         * elf/dl-sym.c (do_sym): If not l_contiguous,
9392         call _dl_addr_inside_object.
9393         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9394         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9395         * elf/dl-open.c (dl_open_worker): Likewise.
9396         (_dl_addr_inside_object): New function if IS_IN_rtld.
9397         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9398         holes are present or are PROT_NONE protected.
9399         * include/link.h (struct link_map): Add l_contiguous field.
9400         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9402 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9403             Tomas Janousek  <tjanouse@redhat.com>
9404             Ulrich Drepper  <drepper@redhat.com>
9406         [BZ #4647]
9407         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9408         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9409         socket.
9410         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9411         unused member a bitmap.
9412         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9413         servers are configured.
9415 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9417         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9419 2007-06-17  Andreas Schwab  <schwab@suse.de>
9421         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9423 2007-06-16  Andreas Jaeger  <aj@suse.de>
9425         [BZ #4125]
9426         * sysdeps/unix/sysv/linux/sys/ptrace.h
9427         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9428         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9429         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9430         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9431         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9432         Define.
9433         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9434         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9435         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9436         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9438 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9440         [BZ #4599]
9441         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9442         determining whether there are IPv4/IPv6 addresses, ignore loopback
9443         addresses.
9445 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9447         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9448         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9449         as the return type.  Change type of "r" variable to CMPtype.
9450         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9451         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9452         * soft-fp/gedf2.c (__gedf2): Likewise.
9453         * soft-fp/gesf2.c (__gesf2): Likewise.
9454         * soft-fp/getf2.c (__getf2): Likewise.
9455         * soft-fp/ledf2.c (__ledf2): Likewise.
9456         * soft-fp/lesf2.c (__lesf2): Likewise.
9457         * soft-fp/letf2.c (__letf2): Likewise.
9458         * soft-fp/unorddf2 (__unorddf2): Likewise.
9459         * soft-fp/unordsf2 (__unordsf2): Likewise.
9460         * soft-fp/unordtf2 (__unordtf2): Likewise.
9462 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9464         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9465         make sure gcc doesn't mess around with this.
9467 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9469         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9471 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9473         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9474         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9475         at most once per _dl_close_worker.
9477 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9479         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9480         __sched_cpucount as const.
9481         * posix/sched_cpucount.c: Adjust.
9483         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9484         instruction for counting bits.
9485         * sysdeps/x86_64/sched_cpucount.c: New file.
9487 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9489         * configure.in: Avoid variable named BASH.
9490         * config.make.in: Likewise.
9491         Patch in part by Mike Frysinger.
9493 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9495         [BZ #4586]
9496         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9497         pseudo-zeros as zero.
9498         * sysdeps/x86_64/ldbl2mpn.c: New file.
9499         * sysdeps/ia64/ldbl2mpn.c: New file.
9501 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9503         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9504         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9505         Remove unreachable code at the end.
9507 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9509         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9510         ldbl-128ibm in comment.
9511         (fpclassifyl): Correct classification of denormals.
9512         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9513         return value for MIN denormal. Rewrite using long double math too
9514         correctly handle denormals and canonicalize the results.
9516 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9518         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9519         (__mpn_construct_long_double): Fix conversion where result ought
9520         to be smaller than __LDBL_MIN__, or the low double should be
9521         denormal.  Fix decision where to negate low double - honor round
9522         to even rules.
9523         * stdio-common/tst-sprintf2.c: Include string.h.
9524         (COMPARE_LDBL): Define.
9525         (TEST): Also test whether a string hexadecimal float representation
9526         can be parsed back to the number.
9527         (main): Add a couple of further tests.
9529 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9531         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9532         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9533         is non-zero, but smaller than 2 * __DBL_MIN__.
9534         * stdio-common/tst-sprintf2.c: New test.
9535         * stdio-common/Makefile (tests): Add tst-sprintf2.
9537         * math/test-misc.c (main): Don't run last batch of tests with
9538         IBM long double format.
9540 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9542         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9543         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9544         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9545         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9546         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9547         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9548         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9549         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9550         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9551         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9554         New file.
9555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9556         New file.
9557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9558         New file.
9559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9560         New file.
9561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9562         New file.
9563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9565         New file.
9566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9567         New file.
9568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9569         New file.
9570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9571         New file.
9572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9573         New file.
9575 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9577         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9578         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9579         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9580         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9581         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9582         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9583         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9584         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9586 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9588         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9589         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9590         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9591         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9592         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9593         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9594         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9595         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9597 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9599         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9600         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9601         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9602         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9604 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9606         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9607         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9609 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9611         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9612         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9613         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9614         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9616 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9618         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9619         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9621 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9623         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9624         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9626         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9627         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9628         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9629         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9631 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9633         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9634         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9635         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9636         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9638 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9640         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9641         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9642         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9643         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9644         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9645         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9647 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9649         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9650         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9651         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9652         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9654 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9656         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9657         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9658         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9659         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9660         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9661         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9662         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9663         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9664         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9665         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9666         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9667         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9668         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9669         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9670         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9671         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9673 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9675         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9676         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9678 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9680         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9681         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9683 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9685         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9686         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9687         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9688         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9689         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9690         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9691         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9692         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9693         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9694         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9696 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9698         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9700 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9702         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9703         branch miss-predicts. Ensure that cache line crossing does not impact
9704         dispatch grouping.
9706 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9708         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9709         "../../powerpc32/power4/memcopy.h".
9710         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9711         "../../powerpc32/power4/wordcopy.c".
9713 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9715         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9716         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9717         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9718         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9719         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9720         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9722 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9724         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9726 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9728         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9729         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9730         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9731         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9732         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9733         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9734         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9735         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9737 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9739         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9741 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9743         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9744         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9745         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9746         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9747         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9748         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9749         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9751 2007-05-29  Roland McGrath  <roland@redhat.com>
9753         * po/Makefile (po-sed-cmd): New variable.
9754         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9756 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9758         * crypt/md5-crypt.c: Fix comment.
9760         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9761         of crashing.  When this is the case or if the reply is malformed,
9762         don't try to close the new file descriptor since it does not
9763         exist.
9764         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9766 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9768         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9769         if __NR_utimensat is not defined.
9771 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9773         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9775 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9777         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9778         (open): Fix comment typos.  Don't call __open_2 if flags
9779         is a compile time constant without O_CREAT.
9780         (__open64_2): Add nonnull attribute.
9781         (open64): Fix comment typos.  Don't call __open64_2 if flags
9782         is a compile time constant without O_CREAT.
9783         (__openat_2): Add nonnull attribute, fix nonnull attribute
9784         on redirect.
9785         (openat): Fix comment typos.  Don't call __openat_2 if flags
9786         is a compile time constant without O_CREAT.
9787         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9788         on redirect.
9789         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9790         is a compile time constant without O_CREAT.
9792 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9794         * Makerules (sysd-rules): Define PTW for ptw-* files.
9795         * Versions: Define GLIBC_2.7 for libc.
9796         * include/stdio.h: Declare __fortify_fail.
9797         * debug/fortify_fail.c: New file.
9798         * debug/Makefile (routines): Add fortify_fail.
9799         * debug/chk_fail.c: Use __fortify_fail.
9800         * debug/stack_chk_fail.c: Likewise.
9801         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9802         __openat64_2 for GLIBC_2.7.
9803         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9804         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9805         and fails if necessary.
9806         * io/open64.c: Likewise.
9807         * io/openat.c: Likewise.
9808         * io/openat64.c: Likewise.
9809         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9810         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9811         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9812         * io/bits/fcntl2.h: New file.
9813         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9814         __openat64_2.
9815         * include/bits/fcntl2.h: New file.
9816         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9817         Add open_2.
9818         * sysdeps/unix/sysv/linux/open_2.c: New file.
9820 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9822         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9823         as second parameter to handle_intel.
9825         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9826         the entry.
9828         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9829         handling to ...
9830         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9831         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9832         cacheinfo.
9833         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9834         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9835         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9837         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9839 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9841         [BZ #4525]
9842         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9843         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9844         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9846         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9848         [BZ #4514]
9849         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9850         reinitialize workend at the start of each do_positional format spec
9851         loop, free workstart before do_positional loops.
9852         (printf_unknown): Fix size of work_buffer.
9853         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9855         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9856         (public_sET_STATe): If ms->version < 3, put all chunks into
9857         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9858         chunks.
9860         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9861         * malloc/hooks.c: Likewise.
9862         * malloc/arena.c: Likewise.
9863         * malloc/malloc.c (do_check_malloc_state): Don't assert
9864         n_mmaps is not greater than n_mmaps_max.  This removes the need
9865         for the previous change.
9867         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9868         2007-05-07 commit.
9870 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9872         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9873         Define for kernel >= 2.6.22.
9875 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9877         * elf/dl-close.c (_dl_close_worker): When removing object from
9878         global scope, wait for all lookups to finish afterwards.
9879         * elf/dl-open.c (add_to_global): When global scope array must
9880         grow, allocate a new one and free old array only after all
9881         lookups finish.
9882         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9883         (_dl_lookup_symbol_x): Likewise.
9884         * elf/dl-support.c: Define _dl_wait_lookup_done.
9885         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9886         _dl_wait_lookup_done.
9888         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9889         not overlapping with arena.
9891         * malloc/mcheck.c (reallochook): If size==0, free the block.
9893         * rt/tst-shm.c: Use fstat64 instead of fstat.
9895         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9896         __NR_sync_file_range is not defined.
9898 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9900         Dummy files to prevent stub versions from being used.
9901         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9902         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9903         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9904         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9906         * version.h (VERSION): Set to 2.6.90.
9908 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9910         * version.h (VERSION): Define to 2.6.
9911         * include/features.h (__GLIBC_MINOR__): Define to 6.
9913         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9915         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9916         sizes.
9918 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9920         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9921         number of mmaps.  n_mmaps_max is the target.
9922         * malloc/hooks.c: Likewise.
9923         * malloc/arena.c: Likewise.
9925 2007-05-12  Andreas Jaeger  <aj@suse.de>
9927         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9928         getpid.
9930 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9932         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9933         adding new variables.
9935         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9936         optimize.  Completely extend global scope array before making the
9937         new entries visible.
9939 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9941         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9942         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9943         tst-getcpu.
9945         * include/link.h: Move l_version and l_nversion members around to
9946         fill gaps.
9948         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9950         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9951         (__sched_setaffinity_new): If syscall was successful and
9952         RESET_VGETCPU_CACHE is defined, use it before returning.
9953         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9955         * io/sys/stat.h: Make sure struct timespec is defined for
9956         __USE_ATFILE.
9958         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9959         UTIME_OMIT.
9960         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9961         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9962         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9963         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9964         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9965         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9966         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9967         * io/sys/stat.h: Declare utimensat, futimens.
9968         * io/utimensat.c: New file.
9969         * io/futimens.c: New file.
9970         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9971         * sysdeps/unix/sysv/linux/futimens.c: New file.
9972         * io/Makefile (routines): Add utimensat, futimens.
9973         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9974         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9975         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9976         available.
9978         * include/sys/cdefs.h: Redefine __nonnull so that test for
9979         incorrect parameters in the libc code itself are not omitted.
9981 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9983         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9984         exception in addition to inexact when asked to raise only FE_INEXACT.
9986         [BZ #3427]
9987         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9988         in *envp.
9990 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9992         [BZ #4403]
9993         * string/strfry.c (strfry): Make result more random.
9995 2007-05-07  Richard Henderson  <rth@redhat.com>
9997         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9998         if __NO_LONG_DOUBLE_MATH.
9999         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10000         available in the compiler, add .arch directive to the assembly.
10002 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10004         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10005         compat_symbol to GLIBC_2_1.
10006         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10007         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10008         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10009         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10010         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10011         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10012         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10013         libc, not libm.
10014         (__isnanl): New compat_symbol.
10016 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10017             Jakub Jelinek  <jakub@redhat.com>
10019         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10020         (new_heap): Initialize mprotect_size.
10021         (grow_heap): When growing, only mprotect from mprotect_size till
10022         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10023         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10025 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10026             Peter Bergner  <bergner@us.ibm.com>
10028         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10029         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10030         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10031         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10032         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10033         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10034         Call __fe_mask_env() if all FP exceptions disabled.
10035         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10036         from old FPSCR to new fenv to propagate DFP rounding modes.
10037         Call __fe_mask_env() if FP exceptions previously enabled.
10038         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10039         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10040         transitioning from all exceptions disabled to any exception enabled
10041         or visa versa.
10042         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10043         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10044         when transitioning from all exceptions disabled to any exception
10045         enabled or visa versa.
10046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10053 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10055         [BZ #4465]
10056         * posix/unistd.h: Remove __THROW from fdatasync.
10058 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10060         [BZ #4465]
10061         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10063 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10065         * stdio-common/vfprintf.c (process_string_arg): Optimize
10066         ridiculous precision in wide char code printing multi-byte string.
10067         Reported by Jim Meyering <jim@meyering.net>.
10069         [BZ #4131]
10070         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10071         boundaries to work around systems with overlapping binary loading.
10072         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10074 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10076         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10077         __mbsnrtowcs after last change.
10079         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10080         (get_ident): Likewise.
10082 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10084         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10085         with setting the sticky bit.
10086         * math/test-misc.c (main): Add more truncation tests.
10088 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10090         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10091         double in the function declaration.
10092         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10093         double in the function declaration.
10094         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10095         float in the function declaration.
10096         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10097         float in the function declaration.
10099         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10100         denormal operands.  Do not generate FP_EX_DENORM exception.
10101         (FP_UNPACK_RAW_EP): Ditto.
10102         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10103         undefined _FP_UNPACK_RAW_E.
10104         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10105         undefined _FP_UNPACK_RAW_EP.
10106         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10107         undefined _FP_PACK_RAW_E.
10108         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10109         undefined _FP_PACK_RAW_EP.
10111         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10112         _FP_FRAC_COPY_2.
10113         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10114         _FP_FRAC_COPY_4.
10116 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10117             Jakub Jelinek  <jakub@redhat.com>
10119         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10120         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10121         this case.
10122         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10124 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10126         * math/test-misc.c (main): Add tests for rounding long double
10127         values close to smallest double denormalized value to double.
10129 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10131         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10132         condition for truncating to 0.  Set sticky bit for such
10133         truncation.
10135 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10137         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10138         fixed length array for ignore.
10140 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10142         [BZ #4438]
10143         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10144         stack for large precisions.
10145         * stdio-common/test-vfprintf.c (main): Add test for large
10146         precision.
10148 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10150         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10151         for exponent 0.
10152         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10154         [BZ #4439]
10155         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10156         account in the size check.
10157         * resolv/tst-inet_ntop.c: New test.
10158         * resolv/Makefile (tests): Add tst-inet_ntop.
10160 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10161             Jakub Jelinek  <jakub@redhat.com>
10163         [BZ #4349]
10164         * malloc/malloc.c: Keep separate list for first blocks on the bin
10165         lists with a given size.  This helps skipping over list elements
10166         we know won't fit in two places.
10167         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10169 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10171         [BZ #4102]
10172         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10173         label to Teredo tunnel addresses 2001://32.
10175 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10177         * locale/programs/ld-collate.c (collate_read): Allow order_start
10178         after copy.
10180         * locale/programs/ld-collate.c (collate_read): Fix printing of
10181         error message.
10183         [BZ #3213]
10184         * locale/C-translit.h.in: Add entry for U2044.
10186         [BZ #4342]
10187         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10188         hexa-decimal floats without exponent.
10189         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10191 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10193         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10194         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10195         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10196         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10197         GLIBC_2.6.
10198         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10199         Add sched_getcpu.
10201 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10203         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10204         of 0 after the out_fail label.
10206 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10208         [BZ #4406]
10209         * iconv/gconv_charset.h (strip): Allow ':'.
10210         * iconv/iconv_open.c (iconv_open): Adjust comment.
10212 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10214         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10215         version.
10217 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10219         [BZ #4381]
10220         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10221         alignment of buffer and tmp_buffer.
10222         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10223         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10224         alignment of buffer.
10225         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10226         bigger than INT_MAX.
10227         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10228         h_errnop arguments.  Fail if buflen is too small.
10229         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10231 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10233         [BZ #4405]
10234         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10235         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10237 2007-04-22  Roland McGrath  <roland@redhat.com>
10239         * elf/elf.h (NT_PRXFPREG): New macro.
10241 2007-04-19  Andreas Jaeger  <aj@suse.de>
10243         [BZ #3905]
10244         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10245         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10246         Added.
10248 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10250         * include/sys/mman.h: Mark madvise hidden.
10251         * misc/madvise.c: Add libc_hidden_def.
10253 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10255         * nis/nis_domain_of.c (__nis_domain_of): New function.
10256         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10257         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10258         * nis/nis_call.c (rec_dirsearch): Likewise.
10259         (first_shoot): Likewise.  Remove search_parent_first argument.
10260         (struct nis_server_cache): Rename search_parent_first field
10261         to search_parent.
10262         (nis_server_cache_search, nis_server_cache_add): Rename
10263         search_parent_first argument to search_parent.
10264         (__nisfind_server): Likewise.  If search_parent, call
10265         __nis_domain_of.
10267 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10269         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10271 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10273         [BZ #4368]
10274         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10276 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10278         [BZ #4364]
10279         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10281 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10283         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10284         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10285         current number of locales in SUPPORTED.
10286         (create_archive): Initialize serial.
10287         (enlarge_archive): Preserve aliases rather than duplicating
10288         their locrecs.
10290 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10292         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10293         after _IO_un_link, not before it.
10295         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10296         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10297         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10299 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10301         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10302         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10303         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10304         Remove __THROW.
10305         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10306         _IO_file_xsgetn_maybe_mmap): Likewise.
10307         * libio/oldfileops.c (old_do_write): Likewise.
10308         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10309         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10310         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10311         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10312         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10313         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10314         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10315         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10316         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10317         _IO_file_underflow, _IO_file_underflow_mmap,
10318         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10319         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10320         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10321         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10322         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10323         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10324         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10325         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10326         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10327         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10328         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10329         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10330         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10331         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10332         _IO_adjust_column_internal, _IO_default_uflow_internal,
10333         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10334         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10335         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10336         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10337         _IO_file_close_it_internal, _IO_file_underflow_internal,
10338         _IO_file_overflow_internal, _IO_file_attach_internal,
10339         _IO_file_fopen_internal, _IO_file_sync_internal,
10340         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10341         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10342         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10343         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10344         _IO_seekpos_unlocked): Likewise.
10345         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10346         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10348 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10350         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10351         argument in xmalloc size computation.
10353 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10355         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10356         math_opt_barrier and math_force_eval macros.
10358 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10360         [BZ #3306]
10361         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10362         * sysdeps/i386/fpu/math_private.h: New file.
10363         * sysdeps/x86_64/fpu/math_private.h: New file.
10364         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10365         math_force_eval macros.  Use "+m" constraint on asm rather than
10366         "=m" and "m".
10367         * math/s_nextafter.c (__nextafter): Likewise.
10368         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10369         Likewise.
10370         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10371         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10372         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10373         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10374         math_opt_barrier and math_force_eval macros.
10375         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10376         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10377         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10378         (__nexttoward): Use math_opt_barrier and
10379         math_force_eval macros.  Use "+m" constraint on asm rather than
10380         "=m" and "m".  Only use asm to force double result if
10381         FLT_EVAL_METHOD is 2.
10382         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10383         (__nexttowardf): Use math_opt_barrier and
10384         math_force_eval macros.  Use "+m" constraint on asm rather than
10385         "=m" and "m".  Only use asm to force double result if
10386         FLT_EVAL_METHOD is not 0.
10387         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10388         (__nexttowardf): Use math_opt_barrier and
10389         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10390         x to float using asm.
10391         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10392         (__nldbl_nexttowardf): Use math_opt_barrier and
10393         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10394         x to float using asm.
10395         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10396         (__nexttowardf): Use math_opt_barrier and math_force_eval
10397         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10398         * math/bug-nextafter.c (zero, inf): New variables.
10399         (main): Add new tests.
10400         * math/bug-nexttoward.c (zero, inf): New variables.
10401         (main): Add new tests.
10403 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10405         [BZ #3427]
10406         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10407         exceptions both in SW and MXCSR.
10408         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10409         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10410         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10411         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10412         in MXCSR if SSE is available.
10413         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10414         and ldsodefs.h.
10415         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10416         Fix comment typo.
10417         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10418         Return 0 rather than 1.
10419         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10420         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10421         * math/test-fenv.c (feholdexcept_tests): New function.
10422         (main): Call it.
10424 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10426         [BZ #3427]
10427         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10428         in SW.
10430 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10432         [BZ #4344]
10433         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10434         Reported by David Anderson <davea42@earthlink.net>.
10436 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10438         * posix/sys/wait.h: Remove unnecessary forward declaration.
10440 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10442         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10443         with obj->do_servers after first_shoot.
10445 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10447         * posix/Makefile (routines): Add sched_cpucount.
10448         (tests): Add tst-cpucount.
10449         * posix/sched_cpucount.c: New file.
10450         * posix/tst-cpucount.c: New file.
10451         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10452         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10453         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10454         * posix/sched.h: Define CPU_COUNT.
10456 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10458         * posix/fnmatch.c (STRUCT): Define.
10459         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10460         * posix/fnmatch_loop.c (struct STRUCT): New type.
10461         (FCT): Add ends argument.  If ends != NULL and normal * is
10462         seen in the pattern, store current pattern and string pointers
10463         and return.  Adjust recursive calls.
10464         (EXT): Adjust FCT callers.
10465         (STRUCT): Undef at the end of the file.
10466         * posix/Makefile (tests): Add tst-fnmatch2.
10467         * posix/tst-fnmatch2.c: New test.
10469 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10471         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10472         and 1 on failure.
10474         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10475         Change last argument to unsigned int.
10477 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10479         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10481 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10483         * config.h.in (HAVE_LIBCAP): Add.
10484         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10485         sys/capabilities.h.
10486         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10487         free_caps.  Cast away const from 4th cap_set_flag argument.
10489 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10491         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10492         GLIBC_2.6.
10493         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10494         Add sync_file_range.
10495         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10497 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10499         * sysdeps/powerpc/bits/atomic.h
10500         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10501         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10502         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10503         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10504         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10505         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10506         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10507         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10508         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10509         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10510         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10511         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10512         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10513         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10514         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10515         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10516         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10517         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10518         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10519         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10521 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10523         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10524         (__cache_line_size): Define the variable here.  Add
10525         attribute_hidden, remove weak_extern.
10526         (__libc_start_main): Set __cache_line_size
10527         unconditionally.
10528         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10529         (__cache_line_size): Define the variable here.  Add
10530         attribute_hidden, remove weak_extern.
10531         (DL_PLATFORM_AUXV): Set __cache_line_size
10532         unconditionally.
10533         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10534         weak_extern, add attribute_hidden.
10535         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10536         defined in ld.so.
10537         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10538         definition.
10539         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10541 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10543         [BZ #4276]
10544         * timezone/africa: Update from tzdata2007d.
10545         * timezone/asia: Likewise.
10546         * timezone/australasia: Likewise.
10547         * timezone/backward: Likewise.
10548         * timezone/europe: Likewise.
10549         * timezone/iso3166.tab: Likewise.
10550         * timezone/leapseconds: Likewise.
10551         * timezone/northamerica: Likewise.
10552         * timezone/southamerica: Likewise.
10553         * timezone/zone.tab: Likewise.
10555         * timezone/private.h: Update from tzcode2007d.
10556         * timezone/zdump.c: Likewise.
10557         * timezone/zic.c: Likewise.
10559 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10561         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10562         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10563         variables.
10564         (nis_server_cache_search, nis_server_cache_add): New functions.
10565         (__nisfind_server): Use them.  Add dbp and flags argument, if
10566         call __nisbind_create.
10567         (__nisbind_create): Add server_used and current_ep arguments,
10568         only call __nis_findfastest if server_used is ~0.
10569         (__do_niscall2, __prepare_niscall): Adjust callers.
10570         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10571         ckey_cache_euid, ckey_cache_lock): New variables.
10572         (get_ckey): New function.
10573         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10574         __pmap_getnisport.  Save __pmap_getnisport result in
10575         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10576         key.
10577         * nis/nis_lookup.c (nis_lookup): Likewise.
10578         * nis/nis_table.c (nis_list): Likewise.
10579         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10580         prototypes.
10582         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10583         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10584         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10585         _nss_nisplus_getservbyport_r): Likewise.
10586         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10587         _nss_nisplus_getnetbyaddr_r): Likewise.
10588         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10589         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10590         _nss_nisplus_getntohost_r): Likewise.
10591         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10592         _nss_nisplus_getrpcbynumber_r): Likewise.
10594 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10596         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10597         * configure: Rebuilt.
10599         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10600         bit-fields.
10601         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10603 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10605         [BZ #2831]
10606         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10607         bit-fields.
10609 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10611         * nscd/gai.c: Include alloca.h.
10612         (__libc_use_alloca): Define.
10614 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10616         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10617         smaller scopes.
10618         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10619         (DL_DST_REQUIRED): Adjust user.
10621         * include/dlfcn.h (struct link_map): New forward decl.
10623         * inet/getnameinfo.c: Include stddef.h.
10624         (getnameinfo): Use offsetof.
10626         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10628         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10630         * string/strerror_l.c: Include stdlib.h.
10632         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10633         * config.make.in (gnu89-inline-CFLAGS): New variable.
10634         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10635         -std=gnu99.
10636         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10637         * argp/argp.h: Use it.
10638         * bits/mathinline.h: Likewise.
10639         * bits/sigset.h: Likewise.
10640         * bits/string.h: Likewise.
10641         * ctype/ctype.h: Likewise.
10642         * hurd/hurd.h: Likewise.
10643         * hurd/hurd/fd.h: Likewise.
10644         * hurd/hurd/port.h: Likewise.
10645         * hurd/hurd/signal.h: Likewise.
10646         * hurd/hurd/threadvar.h: Likewise.
10647         * hurd/hurd/userlink.h: Likewise.
10648         * io/sys/stat.h: Likewise.
10649         * libio/bits/stdio.h: Likewise.
10650         * libio/bits/stdio2.h: Likewise.
10651         * mach/lock-intern.h: Likewise.
10652         * mach/mach/mig_support.h: Likewise.
10653         * math/bits/cmathcalls.h: Likewise.
10654         * posix/bits/unistd.h: Likewise.
10655         * socket/bits/socket2.h: Likewise.
10656         * stdlib/bits/stdlib.h: Likewise.
10657         * stdlib/stdlib.h: Likewise.
10658         * string/argz.h: Likewise.
10659         * string/bits/string2.h: Likewise.
10660         * string/bits/string3.h: Likewise.
10661         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10662         * sysdeps/generic/inttypes.h: Likewise.
10663         * sysdeps/generic/machine-lock.h: Likewise.
10664         * sysdeps/generic/machine-sp.h: Likewise.
10665         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10666         * sysdeps/i386/i486/bits/string.h: Likewise.
10667         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10668         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10669         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10670         * sysdeps/mach/i386/machine-lock.h: Likewise.
10671         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10672         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10673         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10674         * sysdeps/s390/bits/string.h: Likewise.
10675         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10676         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10677         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10678         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10679         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10680         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10681         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10682         * wcsmbs/bits/wchar2.h: Likewise.
10683         * wcsmbs/wchar.h: Likewise.
10684         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10685         __extern_inline definition.
10687 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10689         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10690         NULL.
10692         [BZ #3919]
10693         * math/libm-test.inc (log_test): Test -Inf and NaN.
10694         (log10_test, log1p_test, log2_test): Test -Inf.
10695         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10696         FE_INVALID when argument is qNaN.
10697         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10698         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10699         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10700         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10701         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10702         testb $4, %ah and jump if non-zero.
10703         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10704         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10706         [BZ #4101]
10707         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10708         ancestors with the same depths.
10709         Patch by Niels Moeller <nisse@lysator.liu.se>.
10710         (filter_doc): Don't crash if argp is NULL.
10711         * argp/Makefile (tests): Add tst-argp2.
10712         * argp/tst-argp2.c: New test.
10714         [BZ #4130]
10715         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10716         open_not_cancel_2.
10717         (updwtmp_file): Likewise.
10719         [BZ #4181]
10720         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10721         (inet6_opt_append): Don't check extlen is big enough if extbuf
10722         is NULL.
10723         (inet6_opt_finish): Likewise.
10724         * inet/Makefile (tests): Add test-inet6_opt.
10725         * inet/test-inet6_opt.c: New test.
10727         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10728         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10729         NLMSG_ERR.  Instead use a page sized buffer.
10730         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10731         buffer.
10733 2007-03-14  Richard Henderson  <rth@redhat.com>
10735         * sysdeps/alpha/fpu/s_llround.c: New file.
10736         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10737         * sysdeps/alpha/fpu/s_lround.c: New file.
10738         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10739         * sysdeps/alpha/fpu/s_round.c: New file.
10740         * sysdeps/alpha/fpu/s_roundf.c: New file.
10741         * sysdeps/alpha/fpu/s_trunc.c: New file.
10742         * sysdeps/alpha/fpu/s_truncf.c: New file.
10744         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10745         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10746         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10747         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10748         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10749         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10751         * sysdeps/alpha/fpu/s_fmax.S: New file.
10752         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10753         * sysdeps/alpha/fpu/s_fmin.S: New file.
10754         * sysdeps/alpha/fpu/s_fminf.S: New file.
10755         * sysdeps/alpha/fpu/s_isnan.c: New file.
10756         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10757         * sysdeps/alpha/fpu/s_llrint.c: New file.
10758         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10759         * sysdeps/alpha/fpu/s_lrint.c: New file.
10760         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10761         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10762         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10764         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10765         (__fdimf, fdimf, __fdim, fdim): Remove.
10766         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10767         (__isnanf, __isnan, __isnanl): New.
10769 2007-03-13  Richard Henderson  <rth@redhat.com>
10771         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10773 2007-03-13  Richard Henderson  <rth@redhat.com>
10775         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10776         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10777         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10778         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10779         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10780         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10782 2007-03-13  Richard Henderson  <rth@redhat.com>
10784         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10785         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10786         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10787         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10788         Move to dl-auxv.h; initialize instead of extern weak.
10789         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10790         weak symbol.
10791         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10792         Extern instead of initialized.
10794 2007-03-13  Richard Henderson  <rth@redhat.com>
10796         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10797         __sigsuspend_nocancel.
10799 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10801         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10802         172.16/12 address range.
10804 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10806         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10807         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10808         message.
10810 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10812         [BZ #4069]
10813         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10814         earlier.
10815         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10817         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10818         for x qNaN and y either +-inf or non-integer value.
10819         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10820         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10821         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10823 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10825         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10826         from sysdep_headers.
10828 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10830         * time/tzfile.c (find_transition): Instead of a linear search try to
10831         guess the transition index, use a linear search if the result is at
10832         most 10 transitions away from the guess or binary search otherwise.
10834 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10836         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10837         memory reallocation.
10839 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10841         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10842         and fix some typos.
10843         Optimize use of TOLOWER.
10845         [BZ #3325]
10846         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10847         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10848         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10850         [BZ #3458]
10851         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10852         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10854         [BZ #4076]
10855         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10856         (open_dir_stream): Likewise.
10857         * io/Makefile (tests): Add bug-ftw5.
10858         * io/bug-ftw5.c: New file.
10860         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10861         * nscd/servicescache.c (cache_addserv): Likewise.
10863         * nscd/grpcache.c (cache_addgr): In case a record changed on
10864         refresh, adjust key_copy.
10866         [BZ #4074]
10867         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10868         refresh, adjust key_copy.
10870         [BZ #4070]
10871         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10872         special cases.
10873         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10875 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10877         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10878         optimization.
10880         * stdio-common/vfscanf.c: Small cleanups throughout.
10882 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10884         [BZ #3325]
10885         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10886         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10887         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10888         Patch by Jared Casper <jaredcasper@gmail.com>.
10890         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10891         * sysdeps/unix/opendir.c: Likewise.
10892         * sysdeps/unix/readdir.c: Likewise.
10894         [BZ #2211]
10895         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10896         point numbers.
10897         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10899         * stdio-common/vfscanf.c: Fix problems in width accounting.
10900         * stdio-common/tst-sscanf.c (double_tests): New tests.
10901         (main): Hook them up.
10903         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10904         More simplifications of floating-point reader.
10906         * stdio-common/Makefile (tests): Add tst-swscanf.
10907         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10908         testing.
10909         * stdio-common/tst-swscanf.c: New file.
10911 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10913         [BZ #2633]
10914         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10915         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10916         Remove using for __jmp_buf_tag.
10917         * locale/locale.h (struct lconv): Also define in std namespace.
10918         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10920         [BZ #3842]
10921         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10922         using __libc_enable_secure.
10924         [BZ #3818]
10925         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10927         [BZ #3745]
10928         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10929         of names for ellipsises.
10931         [BZ #3348]
10932         * malloc/memusage.sh: Cleanups.
10933         * debug/xtrace.sh: Quoting and trap changes.
10935 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10937         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10939         * locale/iso-3166.def: Update entry for Serbia.
10940         * locale/iso-4217.def: Define RSD, remove CSD.
10942         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10943         and 64-bit operations.
10945         [BZ #4040]
10946         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10947         16-bit operations.
10949         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10950         of writev.
10952 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10954         [BZ #3991]
10955         * assert/assert.h (assert): Simplify.
10956         (assert_perror): Likewise.
10957         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10959         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10960         reqdata.
10962         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10963         change: don't pass NULL in place of an integer.
10965 2007-02-02  Bruno Haible  <bruno@clisp.org>
10967         [BZ #3954]
10968         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10969         Add mapping for U+327E.
10970         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10971         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10972         mapping of 0xD9 0xE8.
10973         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10974         mapping of U+327E.
10975         Reported by Jungshik Shin <jungshik@google.com>.
10977         [BZ #3955]
10978         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10979         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10980         Reported by Jungshik Shin <jungshik@google.com>.
10982 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10984         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10985         byte variants.
10987         [BZ #4040]
10988         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10989         byte variants.  Patch mostly be tom@tommay.net.
10991 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10993         [BZ #3996]
10994         * posix/glob.c (attribute_hidden): Define if not defined.
10995         (glob): Unescape dirname, filename or username when needed and not
10996         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10997         is NULL.  Handle unescaped [ in pattern without closing ].
10998         Don't pass GLOB_CHECK down to recursive glob for directories.
10999         (__glob_pattern_type): New function.
11000         (__glob_pattern_p): Implement using __glob_pattern_type.
11001         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11002         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11003         Remove unreachable code.
11004         * posix/globtest.sh: Add a couple of new tests.
11006 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11008         * po/ru.po: Update from translation team.
11010 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11012         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11013         to the list of i486+ CPUs.
11014         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11016 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11018         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11019         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11020         references.
11022 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11024         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11026         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11027         * resolv/res_mkquery.c: Define __res_nopt.
11028         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11029         try adding EDNS0 record.
11030         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11031         EDNS0 record was send make sure we don't try it again.
11032         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11033         * include/resolv.h: Declare __res_nopt.
11035 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11037         [BZ #3944]
11038         * time/strptime_l.c (__strptime_internal): Set have_mon for
11039         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11040         have been computed from tm_yday and tm_year.  Don't crash
11041         in day_of_the_week or day_of_the_year if not have_mon
11042         and tm_mon contains bogus value.
11043         * time/Makefile (tests): Add tst-strptime3.
11044         * time/tst-strptime3.c: New test.
11046 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11048         [BZ #3957]
11049         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11050         bit for RE_HAT_LISTS_NOT_NEWLINE.
11051         (build_charclass_op): Remove bogus comment.
11052         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11053         * posix/bug-regex27.c: New test.
11054         * posix/bug-regex28.c: New test.
11056 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11058         * po/sv.po: Update from translation team.
11060 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11062         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11064 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11066         * include/locale.h (__uselocale): Add libc_hidden_proto.
11067         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11069         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11070         gettimeofday.
11072 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11074         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11075         returning.
11076         (PTR_DEMANGLE): Real definition now that it's not the same as
11077         PRT_MANGLE anymore.
11078         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11080         * string/strerror_l.c: New file.
11081         * string/Makefile (routines): Add strerror_l.
11082         * string/string.h: Declare strerror_l.
11083         * string/Versions: Export strerror_l for GLIBC_2.6.
11085 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11087         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11088         as parameter.  Construct request record.  Try sending request
11089         before the first poll use, it usually succeeds.  Adjust all
11090         callers.
11091         * nscd/nscd-client.h: Define MAXKEYLEN.
11092         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11094 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11096         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11097         from return value.
11098         * nscd/nscd_helper.c: Include string.h.
11099         (__nscd_cache_search): Remove const qualifier from return value.
11100         On strict alignment architectures check hash entry and data head
11101         alignment.
11102         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11103         mmapped data during GC cycle contains garbage.  If
11104         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11105         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11106         dropped to 0.
11107         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11108         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11109         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11110         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11111         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11113 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11115         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11117 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11119         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11120         names not numbers in cfi_*.
11122 2007-01-26  Andreas Jaeger  <aj@suse.de>
11124         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11125         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11126         Correct values of PER_HPUX and PER_OSF4.
11128 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11130         * elf/dl-minimal.c: Undefine _itoa first.
11131         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11132         * malloc/mtrace.c: Revert last change.
11133         * posix/wordexp.c: Likewise.
11135 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11137         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11138         and __geode__ to the list of i486+ CPUs.
11139         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11141 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11143         * stdio-common/_itoa.c: Include <limits.h>.
11144         * stdio-common/_itowa.c: Likewise.
11146 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11148         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11149         platforms.
11150         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11151         64-bit platforms.
11152         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11153         possible.
11154         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11155         if possible.
11157         [BZ #3902]
11158         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11159         * stdio-common/Makefile (tests): Add bug17.
11160         * stdio-common/bug17.c: New file.
11162 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11164         * iconvdata/brf.c: New file.
11165         * iconvdata/testdata/BRF: New file.
11166         * iconvdata/testdata/BRF..UTF8: New file.
11167         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11168         * iconvdata/Makefile: Add rules to build BRF.
11169         * iconvdata/TESTS: Add BRF entry.
11170         * iconvdata/gconv-modules: Likewise.
11171         * iconvdata/tst-tables.sh: Likewise.
11173 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11175         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11176         type `long long int', not `long int'.
11177         (wcstoq): Likewise.
11179 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11181         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11182         of values on 64-bit platforms which are too large.
11184 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11185             Joe Kerian  <jkerian@us.us.ibm.com>
11187         [BZ #2749]
11188         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11189         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11190         (__copysignl): Use signbit() for comparison.
11191         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11192         SET_LDOUBLE_WORDS64.
11194         [BZ #2423, #2749]
11195         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11196         (__ceill): Remove calls to fegetround(), fesetround().
11197         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11198         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11199         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11201 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11203         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11205         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11207 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11209         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11210         demangle pointer.
11211         * csu/libc-start.c: Likewise.
11213 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11215         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11216         really work anyway.
11218 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11220         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11221         users.
11222         (handle_request): Remove unnecessary tests.
11224         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11226 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11228         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11229         workbits in semi-raw fraction.
11231         * math/test-misc.c: Add new tests.
11233 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11235         * math/basic-test.c: Include test-skeleton.c.
11236         (TEST_TRUNC): Define.
11237         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11238         (main): Rename to ...
11239         (do_test): ...this.  Run new tests.
11240         (TEST_FUNCTION): Define.
11242 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11243             Joe Kerian  <jkerian@us.us.ibm.com>
11245         [BZ #2749]
11246         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11247         handling for high words.
11248         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11249         and overflow for infinity.
11251 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11253         * nscd/connections.c (handle_request): Add a __builtin_expect.
11255         * nscd/connections.c (serv2db): Change type into structure which
11256         also says whether this is a request for data.  Renamed to
11257         servinfo.  All users changed.
11258         (handle_request): Much simpler test whether we should search the cache.
11260         * nscd/connections.c (handle_request): Fix thinko in selinux test
11261         invocation.
11263         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11264         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11265         it before getting dl_load_lock and then relock.
11266         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11267         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11268         case we unlocked the scope.
11269         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11270         _dl_lookup_symbol_x in case we locked the scope.
11271         (_dl_profile_fixup): Likewise.
11272         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11273         set DL_LOOKUP_SCOPE_LOCK.
11275 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11277         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11278         CFLAGS-getsrvbynpt_r.c.
11279         * nscd/getsrvbynm_r.c: New file.
11280         * nscd/getsrvbypt_r.c: New file.
11281         * nscd/nscd_getserv_r.c: New file.
11282         * nscd/servicescache.c: New file.
11283         * nscd/Makefile (routines): Add nscd_getserv_r.
11284         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11285         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11286         CFLAGS-getsrvbypt_r.c.
11287         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11288         table.  Add entries for services database.
11289         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11290         services database.
11291         (dbs): Add .reset_res and servdb initialization.
11292         (serv2db): Add entries for services database.
11293         (verify_persistent_db): Accept dbnr == servdb.
11294         (invalidate_cache): Rewrite database name recognition to use a table.
11295         Call res_init() if .reset_res is set for database.
11296         (handle_request): Add code to handle services database.
11297         * nscd/gai.c: Don't define __getservbyname_r.
11298         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11299         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11300         (serv_response_header): Define.
11301         (struct datahead): Add serv_response_header member.
11302         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11303         using table.
11304         * nscd/nscd.conf: Add entries for services database.
11305         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11306         Declare serv_iov_disabled.
11307         Declare addservbyname, readdservbyname, addservbyport, and
11308         readdservbyport.
11309         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11310         (find_db): Fix error message.
11311         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11312         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11313         * nscd/selinux.c (perms): Add entries for services database.
11314         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11315         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11317         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11318         * nscd/hstcache.c: Likewise.
11319         * nscd/pwdcache.c: Likewise.
11321         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11322         computation of keylen.
11324         * include/string.h: Only redefine strndupa if this is really for
11325         libc code.
11327 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11329         * nscd/nscd_gethst_r.c: Minor cleanups.
11331         * nscd/connections.c (handle_request): Check selinux permissions
11332         for all non-admin commands.
11334         * sysdeps/i386/i486/bits/atomic.h: Define
11335         atomic_compare_and_exchange_val_acq,
11336         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11337         using __sync_* built-ins for gcc >= 4.1.
11338         * sysdeps/x86_64/bits/atomic.h: Likewise.
11340         [BZ #3840]
11341         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11342         and .oS.d files.
11344 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11346         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11347         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11348         (do_test): Check errno and exit(0) if ENOSYS.
11350 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11352         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11353         thousands separators.
11354         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11355         * stdlib/tst-strtod4.c: New test.
11357         [BZ #3855]
11358         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11359         hexadecimal digit should accept just the initial 0.
11360         * stdlib/tst-strtod2.c (tests): New variable.
11361         (do_test): Run several tests rather than just one.
11363 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11365         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11366         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11368 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11370         * io/fts.c: Make sure fts_cur is always valid after return from
11371         fts_read.
11372         Patch by Miloslav Trmac <mitr@redhat.com>.
11374 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11376         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11377         (R_MIPS_NUM): Bump by 1.
11379 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11381         * posix/execvp.c: Include alloca.h.
11382         (allocate_scripts_argv): Renamed to...
11383         (scripts_argv): ... this.  Don't allocate buffer here nor count
11384         arguments.
11385         (execvp): Use alloca if possible.
11386         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11387         * posix/tst-vfork3.c: New test.
11389 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11391         * string/Makefile (tst-strxfrm2-ENV): Define.
11392         * stdlib/Makefile (tst-strtod3-ENV): Define.
11394 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11396         * posix/getconf.c: Update copyright year.
11397         * nss/getent.c: Likewise.
11398         * iconv/iconvconfig.c: Likewise.
11399         * iconv/iconv_prog.c: Likewise.
11400         * elf/ldconfig.c: Likewise.
11401         * catgets/gencat.c: Likewise.
11402         * csu/version.c: Likewise.
11403         * elf/ldd.bash.in: Likewise.
11404         * elf/sprof.c (print_version): Likewise.
11405         * locale/programs/locale.c: Likewise.
11406         * locale/programs/localedef.c: Likewise.
11407         * nscd/nscd.c (print_version): Likewise.
11408         * debug/xtrace.sh: Likewise.
11409         * malloc/memusage.sh: Likewise.
11410         * malloc/mtrace.pl: Likewise.
11411         * debug/catchsegv.sh: Likewise.
11413 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11415         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11416         attempts.
11418 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11420         * posix/wordexp.c: Remove some unnecessary tests.
11422 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11424         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11425         blacklist the group till after we look it up.
11427 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11429         * include/atomic.h (atomic_forced_read): New macro.
11431 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11433         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11435 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11437         * nss/getXXbyYY_r.c: Include atomic.h.
11438         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11439         add atomic_write_barrier () in between.
11441         * stdlib/Makefile (tests): Add tst-makecontext.
11442         * stdlib/tst-makecontext.c: New test.
11444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11445         (__makecontext): Don't realign uc_mcontext.uc_regs.
11447 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11449         * elf/dl-support.c: Include dl-procinfo.h.
11450         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11451         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11452         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11453         Define.
11454         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11455         hardcoded constants.
11456         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11457         PPC_PLATFORM_* macros for array designators.
11459 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11461         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11462         names to the beginning.
11463         (_dl_powerpc_platforms): Add "power6x".
11464         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11465         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11466         (_DL_PLATFORMS_COUNT): Increase.
11467         (_dl_string_platform): Handle power6x case.
11468         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11469         PPC_FEATURE_POWER6_EXT): Define.
11470         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11472 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11474         [BZ #3747]
11475         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11476         [-2^31 .. 2^31) range.
11477         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11478         targets.
11479         * stdlib/tst-rand48-2.c: New test.
11480         * stdlib/Makefile (tests): Add tst-rand48-2.
11482 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11484         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11486 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11488         * misc/tst-pselect.c (do_test): Make sure the helper process is
11489         terminating when the test is aborted.
11491 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11493         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11494         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11495         Handle relatime mount option.
11497         [BZ #2337]
11498         * libio/Makefile (tests): Add tst-setvbuf1.
11499         * libio/tst-setvbuf1.c: New file.
11501 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11503         [BZ #2337]
11504         * libio/genops.c (__uflow): Fix a typo.
11505         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11506         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11507         the narrow buffer size.
11509 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11511         [BZ #2337]
11512         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11513         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11514         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11515         in _flags.
11516         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11517         _IO_wstr_finish): Likewise.
11518         * libio/wmemstream.c (open_wmemstream): Likewise.
11519         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11520         even for wide streams.
11522 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11525         kernel-features.h.
11527 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11529         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11530         separators also if no non-zero digits found.
11531         * stdlib/Makefile (tests): Add tst-strtod3.
11533 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11535         [BZ #3632]
11536         * include/features.h: Fix comment about default value for
11537         _POSIX_C_SOURCE.
11539         [BZ #3664]
11540         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11541         empty parsed strings.
11542         * stdlib/Makefile (tests): Add tst-strtod2.
11543         * stdlib/tst-strtod2.c: New file.
11545         [BZ #3673]
11546         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11547         computation.
11548         * stdlib/Makefile (tests): Add tst-atof2.
11549         * stdlib/tst-atof2.c: New file.
11551         [BZ #3674]
11552         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11553         correctly if removing trailing zero of hex-float.
11554         * stdlib/Makefile (tests): Add tst-atof1.
11555         * stdlib/tst-atof1.c: New file.
11557 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11559         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11560         Start searching for next comma at p rather than rest.
11561         * misc/Makefile (tests): Add tst-mntent2.
11562         * misc/tst-mntent2.c: New test.
11564         * misc/getusershell.c (initshells): Check for integer overflows.
11565         Make strings buffer one bigger as fgets always succeeds when second
11566         argument is 1.  Don't use calloc for shells array.  Disallow
11567         / as shell.
11569 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11571         * malloc/memusage.c: Handle realloc with new size of zero and
11572         non-NULL pointer correctly.
11573         (me): Really write first record twice.
11574         (struct entry): Make format bi-arch safe.
11575         (dest): Write out more realloc statistics.
11576         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11578 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11580         * nis/nis_subr.c (nis_getnames): Revert last change.
11582 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11584         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11585         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11586         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11587         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11588         ENOTTY.
11589         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11590         * io/tst-ttyname_r.c: New test.
11592 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11594         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11596 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11598         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11599         jump table entries.
11601 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11603         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11604         `clone' function to ensure proper unwinding stop of gdb.
11605         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11607 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11609         * nscd/nscd.init: Remove obsolete and commented-out -S option
11610         handling.
11612 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11614         [BZ #3514]
11615         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11617         [BZ #3515]
11618         * manual/string.texi (strtok): Remove duplicate paragraph.
11620 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11622         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11623         libgcc not supporting `rflags' unwinding (register # >= 17).
11625 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11627         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11628         succeeded.
11630 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11631             Jakub Jelinek  <jakub@redhat.com>
11632             Jan Kratochvil  <jan.kratochvil@redhat.com>
11634         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11635         unwind information.
11636         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11637         'restore_rt' even in the 'signal' directory.
11638         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11640 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11642         [BZ #3559]
11643         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11644         malloc crashed.  Don't allocate memory unnecessarily in each
11645         loop.
11647 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11649         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11651 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11653         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11655 2006-11-18  Bruno Haible  <bruno@clisp.org>
11657         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11658         __sysconf only after having tried to call getgroups32.
11660 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11662         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11663         addresses for IPv4 queries if they can be mapped.
11665 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11667         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11668         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11669         (signmask): Add .size directive.
11670         (othermask): Add .type directive.
11672 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11674         * po/nl.po: Update from translation team.
11676         * timezone/zdump.c: Redo fix for BZ #3137.
11678 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11680         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11681         to first_unused after parsing :include: file.
11683 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11685         * timezone/africa: Update from tzdata2006o.
11686         * timezone/antarctica: Likewise.
11687         * timezone/asia: Likewise.
11688         * timezone/australasia: Likewise.
11689         * timezone/backward: Likewise.
11690         * timezone/europe: Likewise.
11691         * timezone/iso3166.tab: Likewise.
11692         * timezone/northamerica: Likewise.
11693         * timezone/southamerica: Likewise.
11694         * timezone/zone.tab: Likewise.
11696         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11697         on machines with 64-bit time_t.
11699         * timezone/checktab.awk: Update from tzcode2006o.
11700         * timezone/ialloc.c: Likewise.
11701         * timezone/private.h: Likewise.
11702         * timezone/scheck.c: Likewise.
11703         * timezone/tzfile.h: Likewise.
11704         * timezone/tzselect.ksh: Likewise.
11705         * timezone/zdump.c: Likewise.
11706         * timezone/zic.c: Likewise.
11708         [BZ #3483]
11709         * elf/ldconfig.c (main): Call setlocale and textdomain.
11710         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11712         [BZ #3480]
11713         * manual/argp.texi: Fix typos.
11714         * manual/charset.texi: Likewise.
11715         * manual/errno.texi: Likewise.
11716         * manual/filesys.texi: Likewise.
11717         * manual/lang.texi: Likewise.
11718         * manual/maint.texi: Likewise.
11719         * manual/memory.texi: Likewise.
11720         * manual/message.texi: Likewise.
11721         * manual/resource.texi: Likewise.
11722         * manual/search.texi: Likewise.
11723         * manual/signal.texi: Likewise.
11724         * manual/startup.texi: Likewise.
11725         * manual/stdio.texi: Likewise.
11726         * manual/sysinfo.texi: Likewise.
11727         * manual/syslog.texi: Likewise.
11728         * manual/time.texi: Likewise.
11729         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11731         [BZ #3465]
11732         * sunrpc/clnt_raw.c: Minimal message improvements.
11733         * sunrpc/pm_getmaps.c: Likewise.
11734         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11735         * nis/nis_print_group_entry.c: Likewise.
11736         * locale/programs/repertoire.c: Likewise.
11737         * locale/programs/charmap.c: Likewise.
11738         * malloc/memusage.sh: Likewise.
11739         * elf/dl-deps.c: Likewise.
11740         * locale/programs/ld-collate.c: Likewise.
11741         * libio/vswprintf.c: Likewise.
11742         * malloc/memusagestat.c: Likewise.
11743         * sunrpc/auth_unix.c: Likewise.
11744         * sunrpc/rpc_main.c: Likewise.
11745         * nscd/cache.c: Likewise.
11746         * locale/programs/repertoire.c: Unify output messages.
11747         * locale/programs/charmap.c: Likewise.
11748         * locale/programs/ld-ctype.c: Likewise.
11749         * locale/programs/ld-monetary.c: Likewise.
11750         * locale/programs/ld-numeric.c: Likewise.
11751         * locale/programs/ld-time.c: Likewise.
11752         * elf/ldconfig.c: Likewise.
11753         * nscd/selinux.c: Likewise.
11754         * elf/cache.c: Likewise.
11755         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11757         [BZ #3451]
11758         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11759         change atomic.
11760         (ceil): Likewise.
11762 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11764         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11765         if N is one bigger than return value.
11766         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11767         and l1 last arguments, if buf is defined, verify the return value
11768         equals to strlen (buf) and verify no byte beyond passed length
11769         is modified.
11771 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11773         * po/sv.po: Update from translation team.
11775 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11777         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11778         noinline attribute.
11780 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11782         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11783         noinline attribute.
11785         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11786         Use __new_sys_siglist instead of _sys_siglist_internal as
11787         second macro argument.
11788         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11789         strong_alias.
11791 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11793         [BZ #3493]
11794         * posix/unistd.h (sysconf): Remove const attribute.
11796         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11797         temporary or deprecated addresses.
11798         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11800         * string/Makefile (tests): Add tst-strxfrm2.
11801         * string/tst-strxfrm2.c: New file.
11803 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11805         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11806         rather than r->r_brk.
11808 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11810         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11811         optimization even if needed > n.
11813         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11814         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11815         return false, otherwise return true.
11816         (cache_rpath): Return decompose_rpath return value.
11818 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11820         * include/libc-symbols.h (declare_symbol): Rename to...
11821         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11822         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11823         .size directive.
11824         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11825         changes.
11826         * sysdeps/gnu/siglist.c: Likewise.
11828 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11830         * sysdeps/powerpc/fpu/bits/mathinline.h
11831         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11832         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11834 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11836         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11837         Update handling of cache descriptor 0x49 for new models.
11838         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11839         Likewise.
11841 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11843         * malloc/memusage.c (dest): Reset not_me back to false after
11844         printing statistics.
11846 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11848         * configure.in: Work around ld --help change and avoid -z relro
11849         test completely if the architecture doesn't care about security.
11851 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11853         * po/sv.po: Update from translation team.
11855 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11857         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11858         generate compatibility version.
11860 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11862         * configure.in: Relax -z relro requirement a bit.
11864         * po/sv.po: Update from translation team.
11866 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11868         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11869         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11870         * elf/dl-close.c (_dl_close_worker): Likewise.
11871         * elf/dl-open.c (_dl_open_worker): Likewise.
11872         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11874 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11876         * configure.in: Require assembler support for visibility, compiler
11877         support for visibility and aliases, linker support for various -z
11878         options.
11879         * Makeconfig: Remove conditional code which now is unnecessary.
11880         * config.h.in: Likewise.
11881         * config.make.in: Likewise.
11882         * dlfcn/Makefile: Likewise.
11883         * elf/Makefile: Likewise.
11884         * elf/dl-load.c: Likewise.
11885         * elf/rtld.c: Likewise.
11886         * include/libc-symbols.h: Likewise.
11887         * include/stdio.h: Likewise.
11888         * io/Makefile: Likewise.
11889         * io/fstat.c: Likewise.
11890         * io/fstat64.c: Likewise.
11891         * io/fstatat.c: Likewise.
11892         * io/fstatat64.c: Likewise.
11893         * io/lstat.c: Likewise.
11894         * io/lstat64.c: Likewise.
11895         * io/mknod.c: Likewise.
11896         * io/mknodat.c: Likewise.
11897         * io/stat.c: Likewise.
11898         * io/stat64.c: Likewise.
11899         * libio/stdio.c: Likewise.
11900         * nscd/Makefile: Likewise.
11901         * stdlib/Makefile: Likewise.
11902         * stdlib/atexit.c: Likewise.
11903         * sysdeps/generic/ldsodefs.h: Likewise.
11904         * sysdeps/i386/dl-machine.h: Likewise.
11905         * sysdeps/i386/sysdep.h: Likewise.
11906         * sysdeps/i386/i686/memcmp.S: Likewise.
11907         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11908         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11909         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11911         * Makerules: USE_TLS support is now default.
11912         * tls.make.c: Likewise.
11913         * csu/Versions: Likewise.
11914         * csu/libc-start.c: Likewise.
11915         * csu/libc-tls.c: Likewise.
11916         * csu/version.c: Likewise.
11917         * dlfcn/dlinfo.c: Likewise.
11918         * elf/dl-addr.c: Likewise.
11919         * elf/dl-cache.c: Likewise.
11920         * elf/dl-close.c: Likewise.
11921         * elf/dl-iteratephdr.c: Likewise.
11922         * elf/dl-load.c: Likewise.
11923         * elf/dl-lookup.c: Likewise.
11924         * elf/dl-object.c: Likewise.
11925         * elf/dl-open.c: Likewise.
11926         * elf/dl-reloc.c: Likewise.
11927         * elf/dl-support.c: Likewise.
11928         * elf/dl-sym.c: Likewise.
11929         * elf/dl-sysdep.c: Likewise.
11930         * elf/dl-tls.c: Likewise.
11931         * elf/ldconfig.c: Likewise.
11932         * elf/rtld.c: Likewise.
11933         * elf/tst-tls-dlinfo.c: Likewise.
11934         * elf/tst-tls1.c: Likewise.
11935         * elf/tst-tls10.h: Likewise.
11936         * elf/tst-tls14.c: Likewise.
11937         * elf/tst-tls2.c: Likewise.
11938         * elf/tst-tls3.c: Likewise.
11939         * elf/tst-tls4.c: Likewise.
11940         * elf/tst-tls5.c: Likewise.
11941         * elf/tst-tls6.c: Likewise.
11942         * elf/tst-tls7.c: Likewise.
11943         * elf/tst-tls8.c: Likewise.
11944         * elf/tst-tls9.c: Likewise.
11945         * elf/tst-tlsmod1.c: Likewise.
11946         * elf/tst-tlsmod13.c: Likewise.
11947         * elf/tst-tlsmod13a.c: Likewise.
11948         * elf/tst-tlsmod14a.c: Likewise.
11949         * elf/tst-tlsmod2.c: Likewise.
11950         * elf/tst-tlsmod3.c: Likewise.
11951         * elf/tst-tlsmod4.c: Likewise.
11952         * elf/tst-tlsmod5.c: Likewise.
11953         * elf/tst-tlsmod6.c: Likewise.
11954         * include/errno.h: Likewise.
11955         * include/link.h: Likewise.
11956         * include/tls.h: Likewise.
11957         * locale/global-locale.c: Likewise.
11958         * locale/localeinfo.h: Likewise.
11959         * malloc/arena.c: Likewise.
11960         * malloc/hooks.c: Likewise.
11961         * malloc/malloc.c: Likewise.
11962         * resolv/Versions: Likewise.
11963         * sysdeps/alpha/dl-machine.h: Likewise.
11964         * sysdeps/alpha/libc-tls.c: Likewise.
11965         * sysdeps/generic/ldsodefs.h: Likewise.
11966         * sysdeps/generic/tls.h: Likewise.
11967         * sysdeps/i386/dl-machine.h: Likewise.
11968         * sysdeps/ia64/dl-machine.h: Likewise.
11969         * sysdeps/ia64/libc-tls.c: Likewise.
11970         * sysdeps/mach/hurd/fork.c: Likewise.
11971         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11972         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11973         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11974         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11975         * sysdeps/s390/libc-tls.c: Likewise.
11976         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11977         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11978         * sysdeps/sh/dl-machine.h: Likewise.
11979         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11980         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11981         * sysdeps/x86_64/dl-machine.h: Likewise.
11983         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11984         split out locking and parameter checking.
11985         (_dl_close): Call _dl_close_worker after locking and checking.
11986         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11987         _dl_close.
11988         * elf/Makefile: Add rules to build and run tst-thrlock.
11989         * elf/tst-thrlock.c:  New file.
11991         [BZ #3426]
11992         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11993         reality.
11995         [BZ #3429]
11996         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11997         we are sure we do not need it anymore for _dl_close.  Also move
11998         the asserts inside the lock region.
11999         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12001 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12003         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12004         argument.
12005         (_dl_lookup_symbol_x): Adjust caller.
12007         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12008         _ns_global_scope.
12009         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12011         * elf/dl-libc.c: Revert l_scope name changes.
12012         * elf/dl-load.c: Likewise.
12013         * elf/dl-object.c: Likewise.
12014         * elf/rtld.c: Likewise.
12015         * elf/dl-close.c (_dl_close): Likewise.
12016         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12017         always use __rtld_mrlock_{change,done}.  Always free old scope list
12018         here if not l_scope_mem.
12019         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12020         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12021         the lookup and __rtld_mrlock_unlock it after the lookup.
12022         * elf/dl-sym.c: Likewise.
12023         * include/link.h (struct r_scoperec): Remove.
12024         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12025         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12027 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12029         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12031 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12033         * configure.in: Disable building profile libraries by default.
12035 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12037         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12038         as signed longs, check for x_base + pos overflow.
12039         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12040         * sunrpc/tst-xdrmem2.c: New test.
12042 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12044         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12045         _dl_lookup_symbol_x code.
12047 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12049         * elf/dl-runtime.c: Include sysdep-cancel.h.
12050         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12051         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12052         instead of catomic_* macros.
12053         * elf/dl-sym.c: Include sysdep-cancel.h.
12054         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12055         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12056         * elf/dl-close.c: Include sysdep-cancel.h.
12057         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12058         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12059         * elf/dl-open.c: Include sysdep-cancel.h.
12060         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12061         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12063 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12065         [BZ #3313]
12066         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12067         fastbin rather than end of fastbin array.
12069 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12071         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12072         body macro.
12073         * sysdeps/x86_64/bits/atomic.h
12074         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12075         (catomic_decrement): Use correct body macro.
12077 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12079         * include/atomic.h: Add a unique prefix to all local variables
12080         in macros.
12081         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12083 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12085         [BZ #3369]
12086         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12087         and 7.
12089 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12091         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12093 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12095         [BZ #3313]
12096         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12097         determine highest fast bin to consolidate, always look into all of
12098         them.
12099         (do_check_malloc_state): Only require for empty bins for large
12100         sizes in main arena.
12102         * libio/stdio.h: Add more __wur attributes.
12104         * elf/dl-minimal.c (realloc): Optimize last patch.
12106 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12108         [BZ #3352]
12109         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12110         and use memcpy() if it does.
12112 2006-11-12  Andreas Jaeger  <aj@suse.de>
12114         [BZ #2510]
12115         * manual/search.texi (Hash Search Function): Clarify.
12116         (Array Search Function): Clarify.
12118 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12120         [BZ #2830]
12121         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12122         shifting.
12123         * math/atest-exp2.c (read_mpn_hex): Likewise.
12124         * math/atest-sincos.c (main): Likewise.
12126 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12128         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12129         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12130         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12131         version GLIBC_2.6.
12132         * Versions.def: Add GLIBC_2.6 for libc.
12134         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12136         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12138 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12140         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12142         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12144         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12145         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12147 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12149         * include/atomic.c: Define catomic_* operations.
12150         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12151         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12152         * malloc/memusage.c: Likewise.
12153         * gmon/mcount.c: Likewise.
12154         * elf/dl-close.c: Likewise.
12155         * elf/dl-open.c: Likewise.
12156         * elf/dl-profile.c: Likewise.
12157         * elf/dl-sym.c: Likewise.
12158         * elf/dl-runtime.c: Likewise.
12159         * elf/dl-fptr.c: Likewise.
12160         * resolv/res_libc.c: Likewise.
12162 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12164         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12165         components which lack them.
12167         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12168         at least one entry consisting of the parameter concatenated with
12169         the domain.
12171 2006-10-10  Roland McGrath  <roland@frob.com>
12173         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12174         * sysdeps/mach/hurd/futimes.c: Likewise.
12175         * sysdeps/mach/hurd/lutimes.c: Likewise.
12177 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12178             Jakub Jelinek  <jakub@redhat.com>
12180         Implement reference counting of scope records.
12181         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12182         from the list in objects which remain.  Always allocate new scope
12183         record.
12184         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12185         don't resize, allocate a new one.
12186         * elf/dl-runtime.c: Update reference counters before using a scope
12187         array.
12188         * elf/dl-sym.c: Likewise.
12189         * elf/dl-libc.c: Adjust for l_scope name change.
12190         * elf/dl-load.c: Likewise.
12191         * elf/dl-object.c: Likewise.
12192         * elf/rtld.c: Likewise.
12193         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12194         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12195         Add l_scoperec_lock.
12196         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12197         * sysdeps/generic/rtld-lowlevel.h: New file.
12199         * include/atomic.h: Rename atomic_and to atomic_and_val and
12200         atomic_or to atomic_or_val.  Define new macros atomic_and and
12201         atomic_or which do not return values.
12202         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12203         Various cleanups.
12204         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12206         * po/sv.po: Update from translation team.
12208 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12210         * Versions.def: Add GLIBC_2.6 to libpthread.
12212         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12213         (versioned_symbol): Likewise.
12214         (compat_symbol): Likewise.
12216         * po/tr.po: Update from translation team.
12218 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12220         * nis/Banner: Removed.  It's been integral part forever and the
12221         author info is incomplete anyway.
12222         * libio/Banner: Likewise.
12224         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12225         code, make sure the nis_freeresult call doesn't crash and that the
12226         result is reported correctly.
12228 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12230         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12231         when callback is NULL.
12233         * nis/Versions (libnss_nisplus): Add
12234         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12235         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12236         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12237         _nss_create_tablename): Rename to...
12238         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12239         ... these.  No longer static.
12240         (internal_setgrent): Adjust users.
12241         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12242         Don't use locking around _nss_grp_create_tablename call.
12243         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12245 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12247         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12249 2006-10-06  Andreas Jaeger  <aj@suse.de>
12251         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12253 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12255         * po/pl.po: Update from translation team.
12257         * nscd/nscd.c (main): Fix typo in message.
12258         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12260 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12262         [BZ #3291]
12263         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12264         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12265         (__sigprocmask): Define.
12267 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12269         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12270         used.
12272 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12274         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12275         in oldtotal and newtotal calculation.
12276         * nscd/nscd-client.h (struct mapped_database): Add datasize
12277         field.
12278         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12279         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12280         increased.
12281         (__nscd_cache_search): Add checks to make sure we never reference
12282         data beyond the current mapping.
12284 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12286         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12287         variables const to avoid compiler warnings.
12289         * io/fts.c (fts_close): Remove redundant checks.
12290         (fts_build): Likewise.
12291         (fts_palloc): Likewise.
12293         * manual/message.texi (Advanced gettext functions,
12294         Using gettextized software): Fix typos.
12296 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12298         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12299         explain why there are no leaks.
12301 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12303         * libio/wmemstream.c: Include <wchar.h>.
12304         * libio/bug-wmemstream1.c: Likewise.
12305         * libio/tst-wmemstream1.c: Likewise.
12306         * libio/tst-wmemstream2.c: Likewise.
12308         * version.h (RELEASE): Bump to 2.5.
12309         * README: Regenerated.
12311         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12313         [BZ #3273]
12314         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12315         found no group members.
12316         Patch by Petr Baudis.
12318 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12320         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12321         assert bootstrap_map.l_tls_modid is zero.
12322         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12323         if USE___THREAD.
12325 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12327         * libio/stdio.h: Move open_wmemstream prototype to ...
12328         * wcsmbs/wchar.h: ... here.
12330 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12332         [BZ #3252]
12333         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12334         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12335         __{,l}chown to handle the rest.
12336         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12337         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12338         __{,l}chown to handle the rest.
12339         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12340         i386/fchownat.c.
12341         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12342         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12344         [BZ #3253]
12345         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12346         time, rather allocate increasingly bigger arrays of pointers, if
12347         possible with alloca, if too large with malloc.
12349 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12351         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12353         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12355 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12357         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12358         home addresses.
12359         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12360         IFA_F_HOMEADDRESS flag for interfaces.
12361         * include/ifaddrs.h (struct in6addrinfo): Define
12362         in6ai_homeaddress.
12364 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12366         [BZ #3225]
12367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12368         PTR_DEMANGLE3): Define.
12369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12370         PTR_DEMANGLE3): Likewise.
12371         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12372         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12373         Likewise.
12374         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12376 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12378         * po/libc.pot: Regenerated.
12379         * po/be.po: Updated.
12380         * po/ca.po: Likewise.
12381         * po/cs.po: Likewise.
12382         * po/da.po: Likewise.
12383         * po/de.po: Likewise.
12384         * po/el.po: Likewise.
12385         * po/en_GB.po: Likewise.
12386         * po/es.po: Likewise.
12387         * po/fi.po: Likewise.
12388         * po/fr.po: Likewise.
12389         * po/gl.po: Likewise.
12390         * po/hr.po: Likewise.
12391         * po/hu.po: Likewise.
12392         * po/ja.po: Likewise.
12393         * po/ko.po: Likewise.
12394         * po/nb.po: Likewise.
12395         * po/nl.po: Likewise.
12396         * po/pl.po: Likewise.
12397         * po/pt_BR.po: Likewise.
12398         * po/ru.po: Likewise.
12399         * po/rw.po: Likewise.
12400         * po/sk.po: Likewise.
12401         * po/sv.po: Likewise.
12402         * po/tr.po: Likewise.
12403         * po/zh_CN.po: Likewise.
12404         * po/zh_TW.po: Likewise.
12406         [BZ #3137]
12407         * iconv/iconv_prog.c (main): Fix spelling in error message.
12408         * iconv/iconvconfig.c (main): Likewise.
12409         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12410         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12411         * locale/programs/localedef.c (main): Likewise.
12412         * locale/programs/repertoire.c (repertoire_read): Likewise.
12413         * timezone/zdump.c (main): Likewise.
12414         * nscd/connections.c (handle_request): Fix spelling in log message.
12415         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12417 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12419         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12420         interfaces.
12422 2006-09-20  Andreas Jaeger  <aj@suse.de>
12424         * math/libm-test.inc (lrint_test_upward): Fix typo.
12426 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12428         [BZ #2592]
12429         * math/libm-test.inc (lrint_test_tonearest): New function.
12430         (lrint_test_towardzero): New function.
12431         (lrint_test_downward): New function.
12432         (lrint_test_upward): New function.
12433         (main): Run these new tests.
12434         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12435         of values near to 0.
12436         (two52): Use double not long double.
12437         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12438         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12439         (two23): Use float not double.
12440         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12441         (two23): Use float not double.
12442         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12443         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12444         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12445         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12447 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12449         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12450         Cast sp to unsigned long to avoid compiler warning.
12451         Use __makecontext_ret function instead of a trampoline on the stack.
12452         (__makecontext_ret): New function.
12453         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12455 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12457         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12458         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12459         bits.
12461 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12463         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12464         sure no reference to the unloaded map's search list remains in the
12465         dependency's scope.
12467 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12469         * elf/Makefile: Add rules to build and run unload7 test.
12470         * elf/unload7.c: New test.
12471         * elf/unload7mod1.c: New file.
12472         * elf/unload7mod2.c: New file.
12474 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12476         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12477         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12478         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12479         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12480         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12481         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12482         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12483         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12484         PTRACE_GETEVENTMSG): Likewise.
12485         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12486         values.
12488 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12490         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12491         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12492         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12493         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12495 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12497         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12498         write '\0' to the fd.
12499         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12500         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12501         Change regs to unsigned long pointer from unsigned int, fix fscr
12502         offset.
12504 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12506         * io/Makefile (CFLAGS-fstatat.c): Set.
12507         (CFLAGS-fstatat64.c): Likewise.
12508         (CFLAGS-mknodat.c): Likewise.
12510         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12511         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12512         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12513         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12515 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12516             Steven Munroe  <sjmunroe@us.ibm.com>
12518         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12519         names to the beginning.  Rename "cell" to "cellbe".
12520         (_dl_powerpc_platforms): New.
12521         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12522         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12523         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12524         (_DL_HWCAP_PLATFORM): Define to new mask.
12525         (_dl_platform_string, _dl_string_platform): New functions.
12526         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12527         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12529 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12531         [BZ #2526]
12532         * README.libm: Fix a thinko in sqrt algorithm description.
12534         [BZ #3143]
12535         * manual/string.texi (argz_delete): Fix prototype.
12536         Patch by <alpt@freaknet.org>.
12538 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12540         [BZ #3138]
12541         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12542         * io/tst-fcntl.c (do_prepare): Likewise.
12543         * posix/tst-exec.c (do_prepare): Likewise.
12544         * posix/tst-preadwrite.c (do_prepare): Likewise.
12545         * posix/tst-spawn.c (do_prepare): Likewise.
12546         * posix/tst-truncate.c (do_prepare): Likewise.
12547         * rt/tst-aio.c (do_prepare): Likewise.
12548         * rt/tst-aio64.c (do_prepare): Likewise.
12549         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12550         size_t.
12552 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12554         [BZ #2821]
12555         * time/mktime.c (guess_time_tm): Fix overflow detection.
12556         * time/Makefile (tests): Add bug-mktime1.
12557         * time/bug-mktime1.c: New file.
12559         [BZ #3189, #3188]
12560         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12561         (mremap): Likewise.
12563 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12565         [BZ #1006]
12566         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12567         Ensure relocation doesn't clobber any bits outside of the
12568         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12569         R_SPARC_HI22 and R_SPARC_H44.
12571         [BZ #2775]
12572         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12573         (long) (MINSIZE + nb - old_size) is positive.
12575         * malloc/arena.c (grow_heap): When growing bail even if new_size
12576         is negative.
12578         [BZ #3155]
12579         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12580         stack below r1.
12582 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12584         * posix/regex_internal.c (re_string_reconstruct): Handle
12585         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12586         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12587         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12588         re_string_context_at.
12589         * posix/Makefile: Add rules to build and run bug-regex26 test.
12590         * posix/bug-regex26.c: New test.
12592         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12593         rather than col_sym_free.  Move seqp declaration earlier.
12595         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12597 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12599         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12600         decl before first goto out.
12602 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12604         * Makerules (shlib.lds): If have-hash-style, put .hash section
12605         at the end of the RO segment.
12607 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12609         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12610         style hash table format is used.
12612 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12614         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12615         randomization rather than before.
12616         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12618 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12620         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12622         * malloc/malloc.c (_int_malloc): Use full list insert and not
12623         shortcut which assumes the list is empty for large requests
12624         too.
12626         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12628 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12630         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12631         and offout arguments to the prototype.
12632         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12633         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12634         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12635         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12636         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12637         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12638         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12639         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12641 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12643         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12645         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12646         dlopen parameters.
12648 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12650         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12651         only if herrno is NETDB_INTERNAL.  Handle errors other than
12652         ERANGE outside of the loops, handle TRY_AGAIN.
12654         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12655         if other's ctype category was missing.
12656         * locale/programs/ld-collate.c (collate_read): Return if
12657         copy_locale's collate category is missing.
12659 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12661         [BZ #2684]
12662         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12663         arenas if allocation failed.
12664         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12666 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12668         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12669         waste bins[0..1].
12670         (malloc_state): Reduce bins size by 2.
12671         (_int_malloc): Fix test for large enough buffer for early termination.
12672         When no unsorted block matches perfectly and an exiting block has
12673         to be split, use full list insert and not shortcut which assumes
12674         the list is empty.
12676         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12677         failure.
12679 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12681         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12682         do anything.
12684         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12685         symbol require exact match (these are PLTs).
12686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12687         (_dl_ppc64_addr_sym_match): Likewise.
12689         [BZ #2683]
12690         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12691         If symbol has a value use it.
12692         * elf/tst-dladdr1.c: New file.
12693         * elf/Makefile: Add rules to build and run tst-addr1.
12695 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12697         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12698         keeps failing and heap growth or new heap creation isn't
12699         successful either.
12700         * malloc/tst-malloc.c (main): Add new tests.
12702 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12704         [BZ #2734]
12705         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12706         as in the x86-64 code to use bswap.
12708 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12710         [BZ #2680]
12711         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12712         __USE_UNIX98.
12713         * posix/bits/unistd.h: Likewise.
12715 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12717         [BZ #2751]
12718         * string/strchr.c: Add cast to avoid warning.
12720 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12722         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12723         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12724         limit is needed to avoid the exploding of the address space
12725         requirement for secondary heaps.
12726         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12727         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12729 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12731         [BZ #3018]
12732         * Makerules (depfiles): Handle extra-test-objs the same as
12733         extra-objs.
12734         (common-mostlyclean): Likewise.
12735         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12736         instead.
12737         * elf/Makefile (extra-objs): Likewise.
12738         * stdlib/Makefile (extra-objs): Likewise.
12740 2006-08-14  Eric Blake  <ebb9@byu.net>
12742         [BZ #3044]
12743         * misc/error.h: Assume C89 or better.
12744         * misc/error.c: Likewise.
12746 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12748         [BZ #3040]
12749         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12750         __ASSUME_ATFCTS is defined.
12752 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12754         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12755         to sort in each call.
12757         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12758         is empty simply return and use next service.
12759         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12761         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12762         tells us when not finding a charmap file is an error.
12763         * locale/programs/charmap.h: Adjust charmap_read prototype.
12764         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12765         cannot find a charmap.
12766         * locale/programs/localedef.c (main): Adjust charmap_read call.
12768 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12770         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12771         sysdeps/posix/pause.c implementation instead.
12773 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12775         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12776         to EPERM.
12778 2006-08-13  Andreas Schwab  <schwab@suse.de>
12780         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12781         Don't clobber caller's LRSAVE.
12782         (_dl_prof_resolve): Likewise.
12784 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12786         [BZ #1996]
12787         * libio/memstream.c (open_memstream): Allocate initial buffer with
12788         calloc.
12789         * libio/wmemstream.c (open_wmemstream): Likewise.
12790         * libio/strops.c: Pretty printing.
12791         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12792         (enlarge_userbuf): New function.
12793         (_IO_str_seekoff): Call it if seek position is larger than current
12794         buffer.
12795         * libio/wstrops.c: Likewise.
12796         * libio/vasprintf.c: Add comment as to why we do not have to use
12797         calloc instead of malloc to allocate initial buffer.
12798         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12799         * libio/bug-memstream1.c: New file.
12800         * libio/bug-wmemstream1.c: New file.
12802 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12804         * libio/wstrops.c: Remove dead macro definitions and comments.
12805         * libio/strops.c: Likewise.
12807         [BZ #2764]
12808         * login/utmpname.c (__utmpname): Remove unnecessary test.
12810 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12812         [BZ #2832]
12813         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12814         0s from integers.
12816 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12818         [BZ #2987]
12819         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12820         for CPU clocks.
12821         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12822         setting of CPU clocks.
12824 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12826         [BZ #2841]
12827         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12828         since C99 requires the result to promote to 'int' when uint_least8_t
12829         and uint_least16_t promote to 'int'.
12831 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12833         [BZ #3013]
12834         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12835         lenght of one output field, correct bitmask creation.
12836         * locale/programs/ld-time.c: Add alignment.
12838         [BZ #2997]
12839         * misc/error.c: Add space between program name and message if file
12840         name is missing.
12842 2006-08-03  Eric Blake  <ebb9@byu.net>
12844         [BZ #2998]
12845         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12847 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12849         * malloc/memusagestat.c: Silence warnings.
12851         * malloc/malloc.c: Dynamically size mmap treshold if the program
12852         frees mmaped blocks.
12853         Patch by Valerie Henson and Arjan van de Ven.
12855 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12857         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12858         __USE_GNU.
12860         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12861         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12862         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12863         Only provide var definitions in strtol_l (or for *ull*
12864         in strtoll_l).
12866         * stdio-common/bug16.c (tests): New array.
12867         (do_tests): Allow the first hexadecimal digit
12868         to be 1, 2, 4 or 8.  Do 3 additional tests.
12870         * sysdeps/s390/fpu/libm-test-ulps: Update.
12872         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12873         fchownat syscall if available.
12874         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12875         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12876         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12878 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12880         * nis/nis_xdr.c: Avoid some function calls.
12882 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12883             Ulrich Drepper  <drepper@redhat.com>
12885         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12886         short cut if only one name component is stripped away.
12888 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12890         * nis/nis_call.c: Minor cleanups throughout.
12891         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12892         (first_shoot): Add search_parent_first parameter.  Only if it is set
12893         search parent server first.
12894         If directory for table found through cold start cache is not the same
12895         as referenced in the cache, don't use it.
12896         (__nisfind_server): Take additional parameter.  Pass it on to
12897         first_shoot.
12898         (__prepare_niscall): Adjust __nisfind_server call.
12899         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12900         * nis/nis_table.c: Adjust __nisfind_server call.
12901         * nis/nis_lookup.c: Likewise.
12902         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12904 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12906         [BZ #2182]
12907         * math/s_cacosh.c: Return values from positive branch.
12908         * math/s_cacoshf.c: Likewise.
12909         * math/s_cacoshl.c: Likewise.
12911         [BZ #2883]
12912         * sysvipc/sys/msg.h: Change return value to ssize_t.
12913         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12914         * sysvipc/msgrcv.c: Likewise.
12915         * include/sys/msg.h: Likewise.
12917         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12918         test introduced in patch for bz #661.
12919         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12920         element for NEWGROUPS.
12922         [BZ #2908]
12923         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12924         'f', use '1' as leading digit not '\1'.
12925         * stdio-common/Makefile (tests): Add bug16.
12926         * stdio-common/bug16.c: New file.
12928         [BZ #2914]
12929         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12930         and don't try to open it.  The patch introducing the macro
12931         contained a bug and used the same file name as the new file
12932         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12933         this out completely.
12935         [BZ #2926]
12936         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12937         Patch by Jerry James <Jerry.James@usu.edu>.
12939         * rt/Makefile (tests): Add tst-clock2.
12940         * rt/tst-clock2.c: New file.
12942         [BZ #2978]
12943         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12944         function and its parameters and pass it to new thread.
12945         (__gai_notify): Add support for alternative waiting for completion.
12946         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12947         waiting for completion.
12948         * resolv/getaddrinfo_a.c: Likewise.
12949         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12950         waiting for completion is used.
12951         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12952         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12953         * resolv/gai_error.c: Likewise.
12954         * resolv/gai_sigqueue.c: Likewise.
12956 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12958         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12959         errno to EBADF and return MACH_PORT_NULL.
12961 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12963         [BZ #2980]
12964         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12966 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12968         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12969         walk them instead of the symbol table.
12971 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12973         [BZ #2098]
12974         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12975         status of NSS calls, not the number of returned entries.
12977         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12978         request_key, keyctl.
12980 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12982         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12984 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12986         * elf/tst-auditmod1.c: Fix typo in #error.
12988 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12990         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12992         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12994 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12996         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12997         that the directory is empty even on non-POSIX filesystems.
12999 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13001         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13003         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13004         the backend NSS module.  If backend setgrent call failed, don't have
13005         internal_setgrent fail.  Just remember this until it is needed.
13006         * nis/nss_compat/compat-pwd.c: Likewise.
13007         * nis/nss_compat/compat-spwd.c: Likewise.
13009 2006-07-30  Roland McGrath  <roland@redhat.com>
13011         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13012         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13013         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13014         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13016         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13017         (nanosleep_not_cancel): New macro.
13018         (sigsuspend_not_cancel): new macro.
13019         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13020         (do_sigsuspend): Define as inline.
13021         (__sigsuspend): Always use do_sigsuspend.
13022         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13023         * include/signal.h: Declare __sigsuspend_nocancel.
13024         * sysdeps/posix/pause.c
13025         [! NO_CANCELLATION] (__pause_nocancel): New function.
13027         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13028         * include/time.h (__nanosleep_nocancel): Likewise.
13030 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13032         * locale/programs/localedef.c (add_to_readlist): Rename local
13033         variables to avoid confusion.
13035         * locale/programs/charmap.c (charmap_read): Emit error message if
13036         charmap couldn't be found or read.
13038 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13040         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13041         __ASSUME_FUTEX_LOCK_PI.
13042         * include/time.h: Declare __nanosleep_nocancel.
13043         * include/unistd.h: Declare __pause_nocancel.
13045         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13046         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13047         get the __stack_chk_fail_local definition when it's needed.
13049 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13051         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13052         * dlfcn/bug-atexit3.c: New file.
13053         * dlfcn/bug-atexit3-lib.cc: New file.
13055         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13056         used when the namespace is not the base namespace.
13058 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13060         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13061         (__new_exitfn): Bump it in every successful call.
13062         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13063         more exit handlers, call them right away.
13064         * stdlib/exit.h: Declare __new_exitfn_called.
13066 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13068         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13069         calling registered handler.
13071         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13072         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13073         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13074         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13075         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13076         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13077         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13078         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13080 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13082         * elf/dl-lookup.c (dl_new_hash): New functions.
13083         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13084         value here.  Compute new-style hash value.  Pass new hash value
13085         and reference to variable with the old value to do_lookup_x.
13086         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13087         old-style hash table.
13088         (_dl_debug_bindings): Pass new hash value and reference to variable
13089         with the old value to do_lookup_x.
13090         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13091         new-style hash value and change old-style hash value parameter to
13092         be a reference.  Reoganize functions to determine whether
13093         new-style hash table is available.  Only fall back on old-style
13094         table.  If old-style hash value is needed, compute it here.
13095         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13096         entry.
13097         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13098         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13099         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13100         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13101         * Makeconfig: If linker supports --hash-style option add it to all
13102         linker command lines to build DSOs.
13103         * config.make.in: Define have-hash-style.
13104         * configure.in: Test whether linker supports --hash-style option.
13106         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13107         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13109 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13111         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13112         auditing.
13114         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13115         RPATH of main map twice.
13117 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13119         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13120         look further, return original strings.
13121         (_nl_find_msg): Do not return found translation if the conversion
13122         failed.  Either signal the string is unusable or that something went
13123         wrong and the original should be used.
13125 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13127         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13129 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13131         [BZ #2766]
13132         * misc/insremque.c (insque): Handle prev == NULL.
13133         * misc/Makefile (tests): Add tst-insremque.
13134         * misc/tst-insremque.c: New test.
13136 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13138         [BZ #2792]
13139         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13140         conflict with DL_DST_REQUIRED.
13142 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13144         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13145         match what Solaris does.
13147 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13149         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13150         local_setegid instead of seteuid and setegid.
13151         * sysdeps/generic/local-setxid.h: New file.
13152         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13154         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13156         * string/Makefile (tests): Add bug-envz1.
13157         * string/bug-envz1.c: New file.
13159 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13161         * posix/regex_internal.c (re_string_skip_chars): If no character has
13162         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13163         to the byte which couldn't be converted.
13164         (re_string_reconstruct): Don't clear valid_raw_len before calling
13165         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13166         tip_context using re_string_context_at.
13167         * posix/Makefile: Add rules to build and run bug-regex25 test.
13168         * posix/bug-regex25.c: New test.
13170 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13172         [BZ #2703]
13173         * string/envz.c (envz_strip): Correct erroneously reversed src
13174         and dest parameters to memmove() invocation.
13176 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13178         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13179         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13180         to make sure the database has been already invalidated.
13181         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13182         after the cache has been invalidated.  Use pthread_mutex_lock rather
13183         than pthread_mutex_trylock if fd != -1.
13184         * nscd/connections.c (invalidate_cache): Add fd argument, write
13185         response to fd if not calling prune_cache, pass fd to prune_cache.
13186         (handle_request): Adjust invalidate_cache caller.
13187         (nscd_run): Pass -1 as fd to prune_cache.
13189 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13191         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13192         the correct place.
13194 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13196         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13197         * nscd/cache.c (prune_cache): Take prunelock before starting the
13198         work.  Just return in case it is already taken.
13199         * nscd/connections.c (dbs): Initialize .prunelock.
13201 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13203         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13204         copying.  No need to allocate new array for group members.  Just
13205         move the pointers and update the size.
13207         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13208         Avoid memory leak in case realloc fails.  Simplification for
13209         better code generation.
13211         Avoid deprecation warning because of libc_hidden_proto for
13212         inet6_option_alloc.
13213         * inet/inet6_option.c (option_alloc): Renamed from
13214         inet6_option_alloc.  Made static.
13215         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13216         (inet6_option_append): Call option_alloc.
13217         * include/netinet/in.h: Remove libc_hidden_proto for
13218         inet6_option_alloc.
13220         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13221         for cleanup when cb!=NULL [Coverity CID 233].
13223 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13225         [BZ #2693]
13226         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13227         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13228         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13229         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13230         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13231         and inet6_rth_getaddr.
13232         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13233         array.
13234         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13235         Mark inet6_option_* interfaces as deprecated.
13236         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13237         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13238         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13239         inet6_rth_segments, and inet6_rth_getaddr.
13240         * inet/inet6_opt.c: New file.
13241         * inet/inet6_rth.c: New file.
13243         * inet/netinet/icmp6.h: Pretty printing.
13245         [BZ #2683]
13246         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13248 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13250         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13251         doing it all here.  When server does not know the answer do not
13252         fail immediate, try parent first.
13254         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13255         overflow test.
13257 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13259         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13260         from __do_niscall.
13261         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13262         and exported.
13263         (__follow_path): New function.  Split out from nis_list.
13264         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13265         _xdr_nis_result.
13266         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13267         _xdr_nis_result.
13268         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13269         and __follow_path.
13270         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13271         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13272         from libnsl for version GLIBC_PRIVATE.
13273         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13274         Remove entry parameter from _nss_nisplus_parse_pwent and
13275         _nss_nisplus_parse_grent.
13276         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13277         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13278         again.  Rewrite getpwent handling to not use nis_first_entry and
13279         nis_next_entry.  Roll out own niscall handling.
13280         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13282         * sunrpc/xdr_rec.c: Fix typo in comment.
13284 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13286         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13287         handling.
13289         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13290         to allocate memory for my_pollfd.  Better initialization of
13291         cb_is_running.  Use TEMP_FAILURE_RETRY.
13293         * malloc/memusage.sh (memusageso): Add quotes.
13294         (memusagestat): Likewise.
13295         * debug/xtrace.sh (pcprofileso): Likewise.
13296         (pcprofiledump): Likewise.
13297         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13298         replacement.
13299         * malloc/Makefile ($(objpfx)memusage): Likewise.
13301         * nis/nis_callback.c (__nis_create_callback): Calls to
13302         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13303         asprintf call fails.
13305         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13306         no uninitialized memory is passed to sendto.
13308 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13310         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13311         of snprintf+strdup.  Handle OOM.
13312         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13313         cb->serv together.  Remove now obsolete free calls.
13314         (__nis_destroy_callback): Remove now obsolete free call.
13316 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13318         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13319         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13320         and ULA respectively). Set precedence for IPv4 address to 10 as
13321         defined in RFC3484 for preferring IPv6.
13322         * posix/gai.conf: Update to match the new default tables.
13324 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13326         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13327         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13328         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13329         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13331         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13332         Removed.
13333         (init_nss_interface): Remove initialization of these variables.
13335 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13337         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13338         nis_free_directory forward to avoid duplication.
13340 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13342         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13343         rec_dirsearch returning NULL.
13344         (first_shoot): Handle __nis_finddirectory returning NULL.
13345         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13347         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13348         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13350 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13352         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13353         pid changed.
13355 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13357         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13359         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13360         * nscd/nscd_getgr_r.c: Likewise.
13362         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13364         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13365         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13367         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13369         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13371         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13373         * include/rpc/auth.h: Mark xdr_des_block_internal and
13374         xdr_opaque_auth_internal as hidden.
13376         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13377         hidden.
13379         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13381         * misc/getusershell.c (okshells): Don't use static initializers,
13382         do it dynamically.
13384         * stdlib/fmtmsg.c (keywords): Change type of len element to
13385         uint32_t to not waste space on 64bit machines.
13387         * locale/setlocale.c: Change _nl_category_names into a string.
13388         Add new _nl_category_name_idxs.  Change all users.
13389         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13390         Declare _nl_category_name_idxs.
13391         * locale/findlocale.c: Adjust for _nl_category_names change.
13392         * locale/loadlocale.c: Likewise.
13393         * locale/newlocale.c: Likewise.
13394         * intl/dcigettext.c: Likewise.
13396         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13397         (add_alias2): ...here.  New function.
13398         (__gconv_read_conf): Simplify builtin alias handling.
13399         (builtin_aliases): Convert to string to avoid relocations.
13400         * iconv/gconv_builtin.h: Add comment about correct formatting.
13402 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13404         * resolv/res_debug.c (loc_ntoa): Make error const.
13406 2006-05-14  Andreas Schwab  <schwab@suse.de>
13408         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13410 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13412         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13413         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13414         sizeof (cpu_set_t).
13416 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13418         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13420         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13422         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13423         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13425         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13426         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13428         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13429         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13430         xdr_cback_data.
13432         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13433         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13434         xdr_ypupdate_args.
13436         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13437         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13439         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13440         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13442         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13443         * include/rpcsvc/nis_callback.h: New file.
13445         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13446         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13448         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13449         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13451         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13452         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13454         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13455         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13457         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13458         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13459         xdr_ypdelete_args.
13461         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13462         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13464         * nis/nis_error.c: Remove table of strings.  Use position
13465         independent mechanism.
13466         * nis/nis_error.h: New file.
13468 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13470         * locale/programs/ld-time.c (time_finish): If wide era name or
13471         format aren't provided, set both wname and wformat to L"".
13473 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13475         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13476         results if the call was succesful.
13478         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13480         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13481         as hidden.
13483 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13485         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13487 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13489         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13490         caller makes sure this is not the case.
13491         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13493 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13495         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13496         calls.
13498         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13499         [Coverity CID 229, 230]
13501         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13502         DGETTEXT calls.
13503         (hol_help): Likewise.  [Coverity CID 226, 227]
13505         * string/argz-replace.c (__argz_replace): Unconditionally call
13506         free on SRC.  [Coverity CID 225]
13508         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13509         the return value of __nis_default_owner and __nis_default_group,
13510         it has been especially allocated.  [Coverity CID 224]
13512         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13513         searchgroup and searchowner.  Significantly simplified.
13514         (__nis_default_owner): Remove duplication.  Do not locally copy the
13515         string before duplicating it.
13516         (__nis_default_group): Likewise.
13518         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13519         we must clear the variable before calling __nisfind_server.
13521         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13522         nis_getnames.  [Coverity CID 223]
13524         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13525         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13527         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13528         allocate memory for the input to add_bytes.  [Coverity CID 221]
13530         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13531         was allocated here.  [Coverity CID 219, 220]
13533         * posix/getconf.c (print_all): Free confstr data after printing.
13534         [Coverity CID 218]
13536         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13537         list allocation fails.  [Coverity CID 215]
13539         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13540         [Coverity CID 213]
13542         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13543         string is NULL.  [Coverity CID 212]
13544         * argp/Makefile: Add rules to build and run bug-argp1.
13545         * argp/bug-argp1.c: New file.
13547         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13548         end of string.
13549         * stdlib/canonicalize.c (__realpath): Likewise.
13551         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13552         pointer.  [Coverity CID 206]
13554         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13555         in statically linked code.
13556         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13557         statically built code, be prepared to have no link map.
13558         [Coverity CID 205]
13560         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13561         dgettext calls. [Coverity CID 204]
13563         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13564         the one user.
13565         (uparam_names): Reduce size.  Avoid relative relocations.
13566         Moved to read-only segment.
13567         (fill_in_uparams): Update for new layout.
13569         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13570         assumed to always be != NULL. [Coverity CID 202]
13572         * argp/argp-help.c (hol_entry_help): Remove some dead code
13573         [Coverity CID 200].
13575         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13576         away a few more unconditional yperr2nss calls.
13577         (_nss_nis_getservbyname_r): Likewise.
13579 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13581         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13582         architectures.
13584         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13585         that unused memory passed to sendto is nevertheless initialized.
13587         [BZ #2499]
13588         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13589         possibly unaligned memory accesses.
13591         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13592         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13593         and __putlong respectively.  Correct buffer overflow check for
13594         NS_NOTIFY_OP.
13596         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13598         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13599         (send_dg): Rewrite error handling to be more compact and avoid
13600         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13602         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13604         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13605         instead of ns_get16.
13606         (res_queriesmatch): Likewise.  Minor optimization.
13608         [BZ #2499]
13609         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13610         __libc_res_nsend might reallocate the buffer for the answer.  In
13611         this case we have to reload the HP pointer.
13613 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13615         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13616         some branch prediction hints.
13618         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13619         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13620         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13621         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13622         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13623         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13624         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13625         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13627 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13629         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13630         by a GOT relocation to make Scrt1.o position independent.
13631         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13633         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13634         six system call parameters.
13635         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13637 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13639         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13640         malloc&bzero.
13642         * sunrpc/svc_udp.c (BZERO): Remove definition.
13643         (CALLOC): Define.
13644         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13646         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13647         (des_SPtrans): Use uint32_t type.
13648         (des_skb): Likewise.
13650         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13652 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13654         [BZ #2509]
13655         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13656         on 32-bit arches.
13658 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13660         * locale/programs/ld-address.c (address_finish): Fix one more
13661         place where the iso639 array might be accessed beyond the limits.
13663 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13665         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13666         filling it for the first time.
13668         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13669         Adjust all callers.
13670         Free res object content before returning.
13672         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13674         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13675         client->cl_auth.
13677         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13678         cleanup for initial thread, just the free call on TVP.
13680         * nscd/gai.c (__getline): Define.
13683 See ChangeLog.16 for earlier changes.