Define bit_XXX and index_XXX.
[glibc.git] / ChangeLog
blob45b9d2d42d7d63c32f5dc439826af7d8b6249e50
1 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
3         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
4         if __ASSEMBLER__ is defined.
5         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
6         (bit_SSE4_2): Likewise.
7         (index_SSSE3): Likewise.
8         (index_SSE4_2): Likewise.
9         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
10         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
11         check processor feature.
12         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
15         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
16         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
17         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
20 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
24 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
26         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
28 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
30         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
31         O_DSYNC to match 2.6.33+ kernels.
32         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
33         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
34         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
37         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
39 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
41         [BZ #11000]
42         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
43         *herrnop before returning.
44         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
45         Likewise.
46         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
47         TRYAGAIN errors separately.
48         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
49         *name4_r after functions.
51 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
53         [BZ #11046]
54         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
55         version check.
57 2009-11-05  Bruno Haible  <bruno@clisp.org>
59         [BZ #11056]
60         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
61         argv argument as non-NULL.
62         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
64 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
66         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
67         recvmmsg.
68         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
69         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
71 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
74         registers.
75         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
76         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
77         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
79 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
81         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
82         SCHED_RESET_ON_FORK.
84 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
86         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
87         only used on truly ancient kernel if configuration requires a more
88         recent kernel.
90 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
92         [BZ #3662]
93         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
94         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
96         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
97         pass it on to __ptsname_internal.
98         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
99         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
100         All the code from __ptsname_r but take additional parameter.  Use that
101         instead of pointer to local stat64 variable.
102         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
103         variable.
104         * include/stdlib.h: Declare __ptsname_internal.
106         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
107         before the exec.
108         * sysdeps/unix/sysv/linux/grantpt.c: New file.
109         * login/programs/pt_chown.c (main): Don't print message on errors
110         when doing real work.
112         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
113         once.
115         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
116         irel relocations split out from...
117         (__libc_csu_init): ...here.
118         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
120 2009-11-23  Andreas Schwab  <schwab@redhat.com>
122         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
123         for timestamps also if __USE_XOPEN2K8.
124         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
125         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
126         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
127         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
129 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
131         * nscd/connections.c (restart): Try harder to re-exec.
133         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
135         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
136         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
137         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
138         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
139         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
140         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
142         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
143         Define.
144         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
146 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
148         [BZ #10162]
149         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
150         than software pipeline.  Properly recover from shorter read.
152 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
154         [BZ #10958]
155         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
156         initialized before using it.
157         (_IO_putwc_unlocked): Likewise.
159         [BZ #10918]
160         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
161         in cast to not throw away const-ness of parameters.
162         (__CPU_EQUAL_S): Likewise.
163         (__CPU_OP_S): Likewise.
165         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
166         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
167         this gratuitous change and we have to keep compatibility.
168         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
169         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
170         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
171         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
172         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
173         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
175 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
177         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
178         of parameters of sync_file_range.
179         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
180         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
181         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
182         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
183         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
184         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
186 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
188         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
189         Implement using sync_file_range2 syscall if __NR_sync_file_range2
190         is defined.
191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
192         file.
194 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
196         * posix/bug-regex30.c: New file.
197         * posix/Makefile: Add rules to build and run bug-regex30.
198         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
199         character lead bytes when there is a range in a COMPLEX_BRACKET.
200         Reported by Oleg Bylatov.
202 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
204         [BZ #10969]
205         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
206         * locale/tst-duplocale.c: New file.
207         * locale/Makefile (tests): Add tst-duplocale.
209         [BZ #10968]
210         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
211         Patch by Bruno Haible <bruno@clisp.org>.
212         * locale/tst-locname.c: New file.
213         * locale/Makefile (tests): Add tst-locname.
215         [BZ #10972]
216         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
217         constants from recent kernels.
218         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
219         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
220         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
221         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
222         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
223         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
225 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
227         [BZ #10162]
228         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
229         software pipeline.
231 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
233         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
234         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
235         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
237 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
239         * posix/bug-regex29.c: Include stdio.h.
241 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
243         [BZ #10939]
244         * Versions.def: Define GLIBC_2.12 for libc.
245         * manual/errno.texi: Add ERFKILL entry.
246         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
247         for 2.12.
248         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
249         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
251         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
252         F_GETOWN_EX definitions according to corrected kernel definitions.
253         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
254         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
255         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
256         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
257         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
258         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
260 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
262         * version.h: Bump for 2.12 development.
264 2009-11-10  Andreas Schwab  <schwab@redhat.com>
266         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
267         out of buffer space.
268         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
269         map_v4v6_hostent running out of space.
271 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
273         * string/bits/string3.h (memset): If the second parameter is constant
274         and zero there is likely no transposition.
275         Patch by Caolan McNamara <caolanm@redhat.com.
277 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
279         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
280         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
282 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
284         * malloc/memusagestat.c (main): Fix spelling in an error message.
286 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
288         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
289         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
291 2009-11-03  Andreas Schwab  <schwab@redhat.com>
293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
294         readahead.
296 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
298         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
299         relocate opd entry when resolving prelink conflicts.
301 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
303         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
304         when -D_FILE_OFFSET_BITS=64.
306         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
307         of last two arguments when -D_FILE_OFFSET_BITS=64.
308         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
309         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
310         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
311         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
312         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
313         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
315 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
317         [BZ #4457]
318         * sysdeps/generic/libgcc_s.h: New file.
319         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
321 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
323         * malloc/hooks.c (free_check): Restore locking and call _int_free
324         appropriately.
326 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
328         * version.h (VERSION): Bump for 2.11 release.
329         * include/features.h (__GLIBC_MINOR__): Bump to 11.
331         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
333         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
335         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
336         to avoid warning.
337         * stdlib/tst-strtoll.c (tests): Likewise.
339         [BZ #9986]
340         * time/strftime_l.c (__strftime_internal): Allow %OC.
342         * misc/mkostemps.c: New file.
343         * misc/mkostemps64.c: New file.
345 2009-10-30  Andreas Schwab  <schwab@redhat.com>
347         * locale/programs/locale-spec.c: Include <error.h> and
348         <libintl.h>.
350         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
352 2009-10-28  Roland McGrath  <roland@redhat.com>
354         * Makefile (dist-prepare): New target.
355         (tag-for-dist): Target removed.
356         (glibc-%.tar): Pattern rule removed.
357         (%.tar): New pattern rule, does simple use of git archive.
358         (dist-version): Remove variable definition.
359         (dist): Just depend on that.  Add .tar.xz dependency.
360         If dist-version variable not set on command line, depend on
361         dist-prepare, re-invoke with dist-version set via git describe.
363         * Makerules (%.xz): New pattern rule.
365 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
367         * elf/ifuncdep2.c: Include ifunc-sel.h.
368         (global): Delete.
369         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
370         * elf/ifuncmain1.c (global): Delete.
371         * elf/ifuncmain1vis.c: Likewise.
372         * elf/ifuncmain2.c: Likewise.
373         * elf/ifuncmain5.c: Likewise.
374         * elf/ifuncmod3.c: Likewise.
375         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
376         (foo_ifunc): Use ifunc_one.
377         * elf/ifuncmain7.c: Likewise.
378         * elf/ifuncmod1.c: Include ifunc-sel.h.
379         (global): Define protected var.
380         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
381         * elf/ifuncmod5.c: Likewise.
382         * sysdeps/generic/elf/ifunc-sel.h: New file.
383         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
385 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
387         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
388         (R_PPC_REL16*): Correct comments.
389         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
390         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
391          R_PPC64_REL16_HA): Define.
392         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
393         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
394         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
395         Delete unused "reloc" param.
396         (__process_machine_rela): Handle R_PPC_IRELATIVE.
397         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
398         Delete "reloc" param.
399         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
400         R_PPC_IRELATIVE.
401         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
402         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
403         relocations.
405 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
407         [BZ #10315]
408         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
409         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
410         UDP_ENCAP_L2TPINUDP.
412         [BZ #10349]
413         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
414         parameter, specifying length of prefix.
415         * stdio-common/tempname.c: Likewise.
416         * include/stdio.h: Adjust prototypes.
417         * libio/oldtmpfile.c: Adjust caller.
418         * misc/mkdtemp.c: Likewise.
419         * misc/mkostemp.c: Likewise.
420         * misc/mkostemp64.c: Likewise.
421         * misc/mkstemp.c:  Likewise.
422         * misc/mkstemp64.c: Likewise.
423         * misc/mktemp.c: Likewise.
424         * stdio-common/tempnam.c: Likewise.
425         * stdio-common/tmpfile.c: Likewise.
426         * stdio-common/tmpnam.c: Likewise.
427         * stdio-common/tmpnam_r.c: Likewise.
428         * misc/mkstemps.c: New file.
429         * misc/mkstemps64.c: New file.
430         * stdlib/stdlib.h: Add prototypes.
431         * misc/Makefile (routines): Add mkstemps and mkstemps64.
432         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
434 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
436         * locale/iso-639.def: Add sml entry.
438         [BZ #10391]
439         * resolv/res_send.c (send_dg): Initialize resplen.
441         [BZ #10446]
442         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
443         definition to the kernel's.
444         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
446 2009-08-18  Anders Johansson  <ajohansson@novell.com>
448         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
449         offsets and record sizes in assert()s and response sending.
450         * nscd/grpcache.c: Likewise.
451         * nscd/hstcache.c: Likewise.
452         * nscd/initgrcache.c: Likewise.
453         * nscd/pwdcache.c: Likewise.
455 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
457         [BZ #10540]
458         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
459         /etc/hosts does not exist set errnop and herrnop appropriately.
460         Patch by Steve Langasek <vorlon@debian.org>.
462         [BZ #10553]
463         * malloc/malloc.c (malloc_info): Fix typos in format strings.
464         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
466         [BZ #10564]
467         * login/utmp_file.c (TIMEOUT): Increase to 10.
469         [BZ #10609]
470         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
471         for file names in case the syscall is not available.
472         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
473         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
474         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
475         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
476         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
477         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
478         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
479         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
480         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
481         * sysdeps/unix/sysv/linux/openat.c: Likewise.
482         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
483         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
484         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
485         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
486         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
487         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
488         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
490         [BZ #10643]
491         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
492         creation filed, remove the request from the 'requests' list and signal
493         the caller that the request is finished.
495         [BZ #10692]
496         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
497         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
499         [BZ #10713]
500         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
501         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
503         [BZ #10780]
504         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
505         overflows the int return type.
507         [BZ #10717]
508         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
509         have to compute maxsize_total, we have to update the variables, and
510         the also_total handling must happen after the repair.
512         [BZ #10742]
513         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
514         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
516 2009-10-27  Andreas Schwab  <schwab@redhat.com>
518         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
519         errno is always set when returning unsuccessfully.
521 2009-10-29  Andreas Schwab  <schwab@redhat.com>
523         * malloc/memusage.c (update_data): Fix index wraparound handling
524         so that buffer_cnt is actually reset.
526 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
528         [BZ #10784]
529         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
530         of the directory we look at into the static buffer if there is one
531         at the start of the loop.
533         [BZ #10789]
534         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
535         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
537         [BZ #10840]
538         * sysdeps/unix/sysv/linux/kernel-features.h: Define
539         __ASSUME_F_GETOWN_EX.
540         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
541         if possible.
542         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
544         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
545         and f_owner_ex.
546         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
547         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
548         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
549         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
550         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
551         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
553         [BZ #10847]
554         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
555         getutmpx symbol.
557         [BZ #10823]
558         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
559         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
561 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
563         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
565 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
567         [BZ #10817]
568         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
569         Reported by Ray Chason.
571 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
573         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
574         strend-sse4.
575         * sysdeps/x86_64/multiarch/strchr.S: New file.
576         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
577         * sysdeps/x86_64/multiarch/strrchr.S: New file.
579 2009-10-21  Andreas Schwab  <schwab@redhat.com>
581         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
583 2009-10-19  Andreas Schwab  <schwab@redhat.com>
585         * include/math.h: Add hidden protos for __exp/__expf/__expl.
586         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
587         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
588         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
589         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
590         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
591         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
592         __ieee751_expl to handle overflow.
594 2009-10-14  David S. Miller  <davem@davemloft.net>
596         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
597         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
599 2009-10-13  Andreas Schwab  <schwab@redhat.com>
601         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
602         !USE_MULTIARCH.
604 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
606         [BZ #10730]
607         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
608         Patch in part by Steve Ward <planet36@gmail.com>.
610         [BZ #10731]
611         * stdlib/rand_r.c: Fix typo.
613         * po/cs.po: Update from translation team.
615 2009-10-06  Andreas Schwab  <schwab@redhat.com>
617         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
618         returning if RTLD_NOLOAD.
620 2009-10-06  Roland McGrath  <roland@redhat.com>
622         * sysdeps/x86_64/multiarch/strstr-c.c
623         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
625         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
626         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
628         * sysdeps/x86_64/multiarch/init-arch.h
629         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
630         (HAS_CPU_FEATURE): New macro.
631         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
632         * sysdeps/x86_64/multiarch/init-arch.c
633         (__get_cpu_features): #undef it before definition.
635 2009-10-05  Andreas Schwab  <schwab@redhat.com>
637         * locale/C-time.c: Revert week-1stday back to 19971130 and set
638         first_weekday to 1 and first_workday to 2.
640 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
642         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
643         F_GETOWN_EX.
644         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
645         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
646         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
647         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
648         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
649         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
651 2009-09-28  Andreas Schwab  <schwab@redhat.com>
653         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
654         * stdio-common/vfprintf.c: Likewise.
656 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
658         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
659         (mkdirat): Call __directory_name_split_at instead of
660         __directory_name_split.
662 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
664         * locale/programs/locale-spec.c (locale_special): If nothing matches
665         fail with an appropriate message.
667 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
669         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
670         and XX.
672 2009-09-25  Andreas Schwab  <schwab@redhat.com>
674         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
675         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
677 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
679         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
681 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
683         * iconvdata/iso646.c (gconv_init): Correctly initialize the
684         character size elements in step data.
686 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
688         * po/hu.po: Update from translation team.
689         * po/vi.po: Likewise.
691 2009-09-19  Roland McGrath  <roland@redhat.com>
693         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
695 2009-09-15  Roland McGrath  <roland@redhat.com>
697         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
698         * nptl/sysdeps/pthread/configure: Regenerated.
699         * nptl/sysdeps/x86_64/configure: Regenerated.
700         * sysdeps/unix/sysv/linux/configure: Regenerated.
701         * sysdeps/x86_64/elf/configure: Regenerated.
703         * Makefile (autoconf-it): Set execute bit only on top-level configure.
705         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
706         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
707         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
708         * configure: Regenerated.
710 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
712         * posix/getconf.c (main): Handle -- on command line.
714 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
716         * configure.in: Support binutils 2.100 and 3.0.
718 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
720         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
721         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
722         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
723         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
725 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
727         * locale/programs/ld-collate.c (struct locale_collate_t): Add
728         unnamed_section_defined field.
729         (collate_read): Test and set unnamed_section_defined.
731         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
732         _POSIX2_LINE_MAX.
734 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
736         * configure.in: Support binutils 2.20.
738 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
740         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
741         __strstr_ia32): Add attribute_hidden.
743 2009-09-01  Andreas Schwab  <schwab@redhat.com>
745         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
746         parsing of group entry.
748 2009-09-02  Andreas Schwab  <schwab@redhat.com>
750         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
751         external buffer.  Always discard readahead in internal buffer.
752         * libio/Makefile (tests): Add bug-wsetpos.
753         * libio/bug-wsetpos.c: New file.
755 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
757         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
758         Add attribute_hidden.
759         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
760         __strcasestr_sse2): Likewise.
761         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
762         (__fma_fma): Make static.
763         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
764         (__fmaf_fma): Make static.
766 2009-08-31  Andreas Schwab  <schwab@redhat.com>
768         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
769         reformulate in-buffer optimisation check to match code in
770         _IO_new_file_seekoff.
772 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
774         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
775         to srwi in 32-bit memcpy for power6.
777 2009-09-01  Andreas Schwab  <schwab@redhat.com>
779         * include/stdio.h: Declare hidden proto for fflush.
780         * libio/iofflush.c: Add hidden weak alias for fflush.
782 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
784         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
785         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
787 2009-08-31  Andreas Schwab  <schwab@redhat.com>
789         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
791 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
793         [BZ #10560]
794         * malloc/malloc.c: Add local assert definition to avoid problems with
795         memory allocation in the real one.
797 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
799         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
800         Removed.
801         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
802         turn off SSSE3 on Atom.
804 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
806         * stdlib/tst-strtol.c (tests): More tests.
807         * stdlib/tst-strtoll.c (tests): Likewise.
809 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
811         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
813         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
815 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
817         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
818         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
820         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
822         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
824         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
826 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
828         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
830 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
832         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
833         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
835         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
837         * sysdeps/x86_64/fpu/s_signbit.S: New file.
838         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
840         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
841         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
843         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
844         leftover YMM_SIZE definition.
846 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
848         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
849         union.
850         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
851         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
852         Redefine.
853         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
855         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
856         and SET_FLOAT_WORD definitions.
858 2009-08-24  Roland McGrath  <roland@redhat.com>
860         * sysdeps/unix/syscall-template.S: New file.
861         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
862         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
863         (compile-syscall): Pass mkdep and -g options as normal.
864         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
865         (common-generated): Don't add them here.
867 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
869         * math/s_fdim.c: In case of overflows set errno.
870         * math/s_fdimf.c: Likewise.
871         * math/s_fdiml.c: Likewise.
873         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
874         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
875         are using the inline optimizations.
877         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
878         (__signbitf): Likewise.
880 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
882         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
883         terminated.
884         * posix/Makefile (tests): Add bug-regex29.
885         * posix/bug-regex29.c: New file.
887         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
888         older POSIX versions are selected.
890         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
891         as well.
892         * stdio-common/printf_fphex.c: Likewise.
893         * stdio-common/tstdiomisc.c: Add more tests.
895         * locale/locale.h: Include xlocale.h and the thread-local locale
896         declarations for XPG7, not XPG6.
898 2009-08-21  Andreas Schwab  <schwab@redhat.com>
900         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
901         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
904         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
905         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
907 2009-08-20  Roland McGrath  <roland@redhat.com>
909         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
910         Use l_addr instead of l_map_start (dli_fbase).
911         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
912         address when there is no proximate symbol.
913         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
914         Likewise.
916 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
918         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
920 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
922         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
923         Also handle SIGINT.  In that case only do the cleanup and then
924         re-raise the signal.
925         (main): Install handler for SIGINT.
927 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
929         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
930         clobber list.
932 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
934         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
935         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
936         tst-auditmod7b.c.
937         (tests): Add tst-audit6 tst-audit7.
938         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
939         tst-auditmod7a tst-auditmod7b.
940         ($(objpfx)tst-audit6): New.
941         ($(objpfx)tst-audit6.out): Likewise.
942         ($(objpfx)tst-audit7): Likewise.
943         ($(objpfx)tst-audit7.out): Likewise.
944         (tst-audit6-ENV): Likewise.
945         (tst-audit7-ENV): Likewise.
946         (CFLAGS-tst-auditmod6b.c): Likewise.
947         (CFLAGS-tst-auditmod6c.c): Likewise.
948         (CFLAGS-tst-auditmod7b.c): Likewise.
949         * elf/tst-audit6.c: New file.
950         * elf/tst-audit7.c: New file.
951         * elf/tst-auditmod6a.c: New file.
952         * elf/tst-auditmod6b.c: New file.
953         * elf/tst-auditmod6c.c: New file.
954         * elf/tst-auditmod7a.c: New file.
955         * elf/tst-auditmod7b.c: New file.
956         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
957         saving and restoring SSE/AVX registers to ...
958         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
960 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
962         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
963         only if SHARED is defined.
964         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
966 2009-08-03  Jim Meyering  <meyering@redhat.com>
968         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
970 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
972         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
973         section as the other functions for this architecture.
974         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
976 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
978         * sysdeps/x86_64/strcmp.S: Add support to compile with
979         USE_SSSE3.  In this case palignr is used.
980         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
981         available but SSSE3 is, pick __str{,n}cmp_ssse3.
982         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
983         Add strcmp-ssse3 and strncmp-ssse3.
984         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
985         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
987         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
988         warning through fake initialization.
990 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
992         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
994 2009-08-07  Andreas Schwab  <schwab@redhat.com>
996         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
997         unique symbols.
999 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1001         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1002         EBX from EAX = 1.  Handle EAX = 11.
1004 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1006         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1007         inside ''.
1009 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1011         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1012         hidden IFUNC functions.
1013         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1015         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1017         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1018         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1019         strcasestr-c.
1020         (CFLAGS-strcspn-c.c): Define.
1021         (CFLAGS-strpbrk-c.c): Define.
1022         (CFLAGS-strspn-c.c): Define.
1023         (CFLAGS-strstr.c): Define.
1024         (CFLAGS-strcasestr.c): Define.
1025         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1026         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1027         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1028         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1029         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1030         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1031         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1032         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1033         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1034         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1035         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1036         -16L instead of 0xfffffffffffffff0L.
1037         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1039 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1041         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1043 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1045         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1046         another rewrite.  Much smaller and faster.
1047         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1049         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1050         ss_flags from the correct location.
1052 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1054         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1055         * sysdeps/i386/i686/cacheinfo.c: New file.
1056         * sysdeps/i386/i686/multiarch/Makefile: New file.
1057         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1058         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1059         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1060         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1061         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1062         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1063         (__cpuid_count): New. Provide the default.
1064         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1065         (__x86_64_preferred_memory_instruction): Define only if
1066         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1067         (intel_check_word): Use __cpuid.
1068         (handle_intel): Likewise.
1069         (handle_amd): Likewise.
1070         (__cache_sysconf): Likewise.
1071         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1072         (__cache_sysconf): Likewise.
1073         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1074         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1075         (get_common_indeces): Use __cpuid.
1076         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1077         if ENABLE_SSSE3_ON_ATOM is not defined.
1078         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1079         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1080         popcnt instead of popcntq.
1082 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1084         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1086 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1088         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1089         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1090         which always causes a compile error.
1092         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1094         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1095         comes from...
1096         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1097         which always causes a compile error.
1099         * debug/Makefile (tests): Add tst-longjmp_chk2.
1100         * debug/tst-longjmp_chk2.c: New file.
1102         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1103         Remove incorrect use of BP_SYM.
1104         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1105         here now since it is more complex than just a simple check.
1107         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1108         we make no more progress.
1110 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1112         * math/s_fma.c: Don't define alias if __fma is a macro.
1113         * math/s_fmaf.c: Likewise.
1114         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1115         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1116         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1118         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1119         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1120         New macro HAS_FMA.
1121         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1122         function.
1123         * include/libc-symbols.h (libm_ifunc): Define.
1124         * sysdeps/x86_64/multiarch/Versions: New file.
1126         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1128 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1130         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1132 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1134         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1135         call that registers used in calling conventions need to be preserved.
1136         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1137         to preserve register content if necessary.
1138         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1139         (_dl_x86_64_restore_sse): New function.
1140         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1141         is allowed to modify xmm/ymm registers.
1143         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1144         application's perspective.
1145         * stdio-common/scanf17.c: Likewise.
1147 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1149         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1150         size to memsz.
1151         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1152         here.
1153         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1154         two steps to catch bugs.
1156 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1158         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1159         determines which files are used in runtime lookups and only checks
1160         those for SSE use.
1161         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1162         testing.
1163         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1164         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1165         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1166         take a while.
1168         * elf/dl-open.c: Move _dl_scope_free to...
1169         * elf/dl-scope.c: ...here.  New file.
1170         * elf/Makefile (dl-routines): Add scope.
1172         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1173         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1174         RES_USE_DNSSEC.
1175         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1176         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1177         all the places we handled RES_USE_EDNS0 only before.
1178         Patch by Adam Tkac <atkac@redhat.com>.
1180 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1182         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1183         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1184         Update size when reallocating.
1186 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1188         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1189         functions used in ld.so modify xmm/ymm registers.
1190         * sysdeps/x86_64/Makefile:  Hook new test up.
1191         * sysdeps/x86_64/rtld-memchr.c: New file.
1192         * sysdeps/x86_64/rtld-memcmp.c: New file.
1193         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1194         * sysdeps/x86_64/rtld-strchr.S: New file.
1195         * sysdeps/x86_64/rtld-strlen.S: New file.
1196         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1197         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1199 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1201         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1202         strncmp-c.
1203         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1204         (exit): Likewise.
1205         (Byte1): Likewise.
1206         (Byte2): Likewise.
1207         (Byte3): Likewise.
1208         (Byte4): Likewise.
1209         (Byte5): Likewise.
1210         (Byte6): Likewise.
1211         (next_8_bytes): Likewise.
1212         (Byte0): Remove commented out codes.
1213         (unaligned_table): Align jump table at 8 bytes.
1214         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1215         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1216         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1217         * sysdeps/x86_64/strncmp.S: New file.
1219 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1221         [BZ #10422]
1222         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1223         kernels, dropped when eventfd2 support was added.
1224         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1225         kernels, dropped when signalfd4 support was added.
1226         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1227         added, name them.
1229         [BZ #10452]
1230         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1231         replies up.
1233         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1235 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1237         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1238         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1240         [BZ #10448]
1241         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1242         callback we must touch the status to avoid using stale value.
1244         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1245         compiled in.
1247 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1249         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1250         /lib/modules/* headers anymore.  We have sane headers in the standard
1251         place now.
1253 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1255         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1256         "etf3enh" and "highgprs" added.
1257         (_dl_s390_platforms): "z10" added.
1258         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1259         Increased for the new entries.
1260         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1261         HWCAP_S390_HIGH_GPRS added.
1263         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1264         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1265         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1266         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1267         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1269 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1271         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1272         avoid additional cpuid instructions.  Most of the information is
1273         stored somewhere.
1275         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1276         cache descriptors.
1277         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1279         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1280         SSSE3 bit for Atoms.
1281         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1282         here anymore.
1284         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1285         structure before copying it to avoid warning.
1286         * posix/tst-rfc3484-2.c (do_test): Likewise.
1287         * posix/tst-rfc3484-3.c (do_test): Likewise.
1289         [BZ #10416]
1290         * include/unistd.h: Make header file suitable for C++ test cases.
1291         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1293         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1294         stack alignment in the exit code.
1296         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1297         potentially be zero.
1299         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1300         unique symbol definition.
1301         Patch by Jakub Jelinek.
1302         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1303         make sure the object with the definition cannot be unloaded.  Adjust
1304         a few types.
1305         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1306         the unique symbol hash table should not be const.
1308 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1310         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1311         unnecesary variables.  Comment fixes.
1313 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1315         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1316         Use NONASCII_CASE information provided by the locale to determine
1317         whether optimized string load function can be used.  Minor cleanups.
1319 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1321         * string/strcasestr.c (STRCASESTR): New macro.
1322         (__strcasestr): Renamed to ..
1323         (STRCASESTR): ...this.
1324         * string/strstr.c (STRSTR): New macro.
1325         (strstr): Renamed to ..
1326         (STRSTR): ...this.
1327         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1328         strstr-c strcasestr-c
1329         (CFLAGS-strstr.c): New.
1330         (CFLAGS-strcasestr.c): Likewise.
1331         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1332         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1333         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1334         * sysdeps/x86_64/multiarch/strstr.c: New file.
1336 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1338         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1339         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1340         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1341         _NL_CTYPE_NONASCII_CASE.
1342         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1343         field.
1344         (ctype_finish): Check whether there are any 8-bit characters outside
1345         the range ASCII has or whether the mapping isn't the same as for
1346         ASCII (±0x20).  Set nonascii_case appropriately.
1347         (ctype_output): Add output handler for nonascii_case.
1349 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1351         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1352         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1354 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1356         [BZ #10360]
1357         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1358         0xffff in the EDNS0 record.
1360 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1362         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1363         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1364         is written before the list head update.
1365         Patch by Andreas Schwab <aschwab@redhat.com>.
1367 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1368             Jakub Jelinek  <jakub@redhat.com>
1370         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1371         corruption thread-safe.
1373 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1375         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1376         overrides atomic_compare_and_exchange_val_rel, define to
1377         atomic_compare_and_exchange_val_rel by default, otherwise default
1378         to catomic_compare_and_exchange_val_acq.
1379         (catomic_compare_and_exchange_bool_rel): If arch overrides
1380         atomic_compare_and_exchange_bool_rel, define to
1381         atomic_compare_and_exchange_bool_rel by default.
1382         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1383         Use catomic_compare_and_exchange_val_rel instead of
1384         catomic_compare_and_exchange_val_acq.
1386 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1388         * sysdeps/generic/ldsodefs.h: Add prototype for
1389         _dl_higher_prime_number.
1390         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1392         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1393         restoring of ymm registers a bit.
1395 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1397         * sysdeps/x86_64/memcmp.S: New file.
1399 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1401         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1402         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1403         pointers in writable memory.
1405 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1407         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1408         * config.make.in: Add config-cflags-avx entry.
1409         * configure.in: Substitute libc_cv_cc_avx.
1410         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1411         * elf/tst-audit4.c: New file.
1412         * elf/tst-audit5.c: New file.
1413         * elf/tst-auditmod4a.c: New file.
1414         * elf/tst-auditmod4b.c: New file.
1415         * elf/tst-auditmod5a.c: New file.
1416         * elf/tst-auditmod5b.c: New file.
1417         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1418         link-defines.sym.
1419         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1420         (La_x86_64_vector): Likewise.
1421         (La_x86_64_regs): Append lr_vector.
1422         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1423         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1424         saving and restoring SSE registers to ...
1425         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1426         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1427         <link-defines.h>.
1428         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1429         La_x86_64_regs.  Allocate extra space and jump to memory at
1430         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1431         (save_and_restore_vector_sse): New.
1432         (save_and_restore_vector_avx): Likewise.
1433         (check_avx): Likewise.
1434         (save_and_restore_vector): Likewise.
1435         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1436         HAVE_AVX_SUPPORT.
1437         * sysdeps/x86_64/link-defines.sym: New file.
1439 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1441         * elf/do-lookup.h: Removed after folding content into...
1442         * elf/dl-lookup.c: ...here.
1444         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1446 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1448         * configure.in: Check for gnu_unique_symbol symbol type.
1449         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1450         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1451         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1452         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1453         change.
1454         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1455         unique symbol table.
1456         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1457         for first namespace.
1458         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1459         unique symbol hash table.
1460         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1461         * elf/tst-unique1.c: New file.
1462         * elf/tst-unique1mod1.c: New file.
1463         * elf/tst-unique1mod2.c: New file.
1464         * elf/tst-unique2.c: New file.
1465         * elf/tst-unique2mod1.c: New file.
1466         * elf/tst-unique2mod2.c: New file.
1468 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1470         * elf/elf.h (STB_GNU_UNIQUE): Define.
1472         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1473         from...
1474         * include/inline-hashtab.h: ...here.
1475         (htab_expand): Adjust for renamed function.  Correct memory handling.
1477 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1479         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1481 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1483         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1484         (PPC_FEATURE_HAS_VSX): Likewise.
1486 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1488         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1489         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1491         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1492         aligned to 16 byte boundaries.
1493         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1494         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1495         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1497 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1499         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1500         * config.make.in (config-cflags-sse4): New variable.
1501         * configure.in: Substitute libc_cv_cc_sse4.
1502         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1503         HAVE_SSE4_SUPPORT.
1504         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1505         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1506         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1507         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1508         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1509         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1510         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1511         * sysdeps/x86_64/multiarch/strspn.S: New file.
1513 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1515         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1516         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1517         (tests): Add tst-audit3 for x86_64.
1518         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1519         ($(objpfx)tst-audit3): Define.
1520         ($(objpfx)tst-audit3.out): Define.
1521         (tst-audit3-ENV): Define.
1522         * elf/tst-audit3.c: New file.
1523         * elf/tst-auditmod3a.c: New file.
1524         * elf/tst-auditmod3b.c: New file.
1525         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1526         and restore xmm6.
1528         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1529         (__stpncpy): Renamed to ...
1530         (STPNCPY): This.
1531         (stpncpy): Create alias only if STPNCPY is not defined.
1532         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1533         defined.
1534         (strncpy): Renamed to ...
1535         (STRNCPY): This.
1536         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1537          stpncpy-c strncpy-c for string.
1538         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1539         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1540         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1541         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1542         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1543         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1545 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1547         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1548         adding to fast bin list.
1550 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1552         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1553         inet_makeaddr.  This worked only with class-based networks.
1554         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1555         Likewise.
1557         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1558         recognize all types.
1559         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1560         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1561         be in host byte order.
1563 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1565         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1566         (MODEL_OFFSET): Define.
1567         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1568         family and model.
1569         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1570         out common code into new function get_common_indeces. Determine
1571         extended family and model for Intel processors.
1573 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1575         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1576         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1577         option.
1578         * resolv/res_send.c (reopen): New function.  Broken out of...
1579         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1580         fallback mechanism.  If single-request fails switch to
1581         single-request-reopen mode which opens a new socket for the second
1582         request.
1584 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1586         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1587         (CHECK_SP): Use it.
1589 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1591         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1592         for saved registers.
1593         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1594         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1595         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1597 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1599         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1601 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1603         * po/id.po: Update from translation team.
1605         * po/bg.po: Update from translation team.
1607 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1609         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1610         defined.
1611         (strncmp): Renamed to STRNCMP.
1612         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1613         strncmp-c for string.
1614         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1615         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1616         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1617         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1619 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1621         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1622         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1623         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1624         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1625         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1626         ifuncmain7static.c.
1627         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1628         ifuncmain7static, and ifuncmain7picstatic.
1629         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1630         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1631         $(objpfx)ifuncmain7pie.out.
1632         (modules-names): Add ifuncmod5 ifuncmod6
1633         (ifuncmod5.so-no-z-defs): Define.
1634         (ifuncmod6.so-no-z-defs): Define.
1635         (CFLAGS-ifuncmain5pic.c): Define.
1636         (CFLAGS-ifuncmain5picstatic.c): Define.
1637         (CFLAGS-ifuncmain5staticpic.c): Define.
1638         (CFLAGS-ifuncdep5pic.c): Define.
1639         (CFLAGS-ifuncmain7pic.c): Define.
1640         (CFLAGS-ifuncmain7picstatic.c): Define.
1641         (CFLAGS-ifuncmain1staticpie.c): Define.
1642         (CFLAGS-ifuncmain5pie.c): Define.
1643         (CFLAGS-ifuncmain6pie.c): Define.
1644         (CFLAGS-ifuncmain7pie.c): Define.
1645         ($(objpfx)ifuncmain1staticpie.out): Define.
1646         ($(objpfx)ifuncmain1staticpie): Define.
1647         ($(objpfx)ifuncmain5pie.out): Define.
1648         ($(objpfx)ifuncmain5pie): Define.
1649         ($(objpfx)ifuncmain6pie.out): Define.
1650         ($(objpfx)ifuncmain6pie): Define.
1651         ($(objpfx)ifuncmain5): Define.
1652         ($(objpfx)ifuncmain5pic): Define.
1653         ($(objpfx)ifuncmain5static): Define.
1654         ($(objpfx)ifuncmain5staticpic): Define.
1655         ($(objpfx)ifuncmain5picstatic): Define.
1656         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1657         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1658         ifuncmain6pie.out.
1659         * elf/b/elf/ifuncmain1staticpie.c: New file.
1660         * elf/ifuncdep5.c: New file.
1661         * elf/ifuncdep5pic.c: New file.
1662         * elf/ifuncmain5.c: New file.
1663         * elf/ifuncmain5pic.c: New file.
1664         * elf/ifuncmain5picstatic.c: New file.
1665         * elf/ifuncmain5pie.c: New file.
1666         * elf/ifuncmain5static.c: New file.
1667         * elf/ifuncmain5staticpic.c: New file.
1668         * elf/ifuncmain6pie.c: New file.
1669         * elf/ifuncmain7.c: New file.
1670         * elf/ifuncmain7pic.c: New file.
1671         * elf/ifuncmain7picstatic.c: New file.
1672         * elf/ifuncmain7pie.c: New file.
1673         * elf/ifuncmain7static.c: New file.
1674         * elf/ifuncmod5.c: New file.
1675         * elf/ifuncmod6.c: New file.
1677 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1679         [BZ #10085]
1680         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1681         (nss_endgrent): New variable.
1682         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1683         fields. Change type of files to bool and adjust all users.
1684         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1685         (internal_endgrent): Call nss_endgrent if necessary.
1686         (add_group): New function.  Broken out of...
1687         (check_and_add_group): ...here.
1688         (getgrent_next_nss): Remove test that any callback is available.
1689         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1690         callback.  If there is no blacklist we can trust the results returned
1691         by the initgroups_dyn callback.  In case there is a callback and we
1692         find a group entry for the group ID but it doesn't contain the
1693         correct member, switch to the slow mode and use getgrent_r.
1694         (internal_getgrent_r): When we see a +: entry, determine whether
1695         there is any callback and which we can use the initgroups_dyn
1696         callback.
1698 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1700         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1701         (_int_free): Likewise.
1703         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1704         AF_IEEE802154.
1705         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1706         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1707         and ARPHRD_IEEE802154_PHY.
1709         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1710         relative to generic Linux version.
1712 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1714         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1715         ($(objpfx)ifuncmain1vispie): Likewise.
1717 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1719         * login/Makefile: Build pt_chown as PIE.
1721 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1723         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1724         a format string.
1725         * elf/sln.c (usage): Likewise.
1726         * malloc/memusage.sh (do_help): Likewise.
1727         * nss/getent.c (more_help): Likewise.
1728         * posix/getconf.c (main): Likewise.
1729         * sunrpc/rpcinfo.c (usage): Likewise.
1730         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1732 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1734         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1735         those needed.
1736         * login/Makefile: If necessary link pt_chown with -lcap.
1737         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1738         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1740 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1742         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1743         comparisons.
1744         * string/test-memchr.c (do_random_tests): Test very large lengths
1745         as well.
1747 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1749         * Makeconfig (+link-pie): Define.
1750         (+prectorS): Define.
1751         (+postctorS): Define.
1752         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1753         * nscd/Makefile ($(objpfx)nscd): Likewise.
1755 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1757         [BZ #10107]
1758         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1759         with cmplwi.
1760         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1762 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1764         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1765         into ...
1766         * sysdeps/unix/grantpt.c: ...here.
1768 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1770         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1771         chmod if it is necessary.
1773         [BZ #10166]
1774         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1775         when the slave device is in devpts or devfs.
1777         [BZ #10183]
1778         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1780         [BZ #10195]
1781         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1782         of nd_opt_home_agent_info_preference to uint16_t.
1783         Patch by Arnaud Ebalard <arno@natisbad.org>.
1785         [BZ #10207]
1786         * nss/getent.c: Add support for printing gshadow data.
1788         [BZ #10203]
1789         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1790         not just the currently used one and those which follow.
1791         Patch by Joe Landers <jlanders@vmware.com>.
1793         [BZ #10196]
1794         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1795         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1796         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1798         [BZ #10217]
1799         * stdlib/abort.c: Define variable __abort_msg.
1800         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1801         * include/stdlib.h: Declare __abort_msg.
1802         * assert/assert-perr.c: Don't free buffer for message immediately.
1803         Store atomically in __abort_msg and free old buffer if necessary.
1804         * assert/assert.c: Likewise.
1805         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1806         store pointer in __abort_msg, and possibly free old string.
1807         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1809         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1811         [BZ #10211]
1812         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1813         handle leap seconds if they are available.
1814         Patch by Akinori Hattori <hattya@gentoo.org>.
1816         * timezone/tzselect.ksh: Update from tzcode2009i.
1817         * timezone/zdump.c: Likewise.
1818         * timezone/zic.c: Likewise.
1820         * timezone/africa: Update from tzdata2009i.
1821         * timezone/antarctica: Likewise.
1822         * timezone/asia: Likewise.
1823         * timezone/australasia: Likewise.
1824         * timezone/backward: Likewise.
1825         * timezone/etcetera: Likewise.
1826         * timezone/europe: Likewise.
1827         * timezone/factory: Likewise.
1828         * timezone/iso3166.tab: Likewise.
1829         * timezone/leapseconds: Likewise.
1830         * timezone/northamerica: Likewise.
1831         * timezone/pacificnew: Likewise.
1832         * timezone/solar87: Likewise.
1833         * timezone/solar88: Likewise.
1834         * timezone/solar89: Likewise.
1835         * timezone/southamerica: Likewise.
1836         * timezone/systemv: Likewise.
1837         * timezone/yearistype: Likewise.
1838         * timezone/zone.tab: Likewise.
1840 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1842         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1843         STT_GNU_IFUNC symbol or in 8 into type_class.
1845         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1846         instead of Elf64_Addr.
1848 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1850         * po/sv.po: Update from translation team.
1852         [BZ #10229]
1853         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1854         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1855         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1856         the C version.
1858 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1860         * Versions.def: Add GLIBC_2.11 for libpthread.
1862 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1864         * resolv/res_send.c (send_dg): Remember we switched to
1865         single-request mode.
1867 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1869         * dlfcn/dlfcn.h: Remove comma at end of enum.
1870         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1872         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1873         parsing mode string.
1875 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1877         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1879         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1881         * sysdeps/x86_64/multiarch/strlen.S: New file.
1882         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1883         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1884         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1885         content.
1887         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1888         is defined.
1890 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1892         * sysdeps/x86_64/strlen.S: Minor optimizations.
1894 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1896         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1897         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1898         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1899         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1900         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1901         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1902         ifuncmain3.c, ifuncmod3.c,.
1903         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1904         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1905         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1906         ifuncmain4picstatic.
1907         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1908         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1909         ifuncmain3, ifuncmain4.
1910         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1911         $(objpfx)ifuncmain1vispie.out.
1912         (modules-names): Add ifuncmod1 ifuncmod3.
1913         (generated): Add ifuncmain1pie ifuncmain1pie.out
1914         ifuncmain1vispie ifuncmain1vispie.out.
1915         Define rules to build and run the tests.
1916         * elf/ifuncdep1.c: New file.
1917         * elf/ifuncdep1pic.c: New file.
1918         * elf/ifuncdep2.c: New file.
1919         * elf/ifuncdep2pic.c: New file.
1920         * elf/ifuncmain1.c: New file.
1921         * elf/ifuncmain1pic.c: New file.
1922         * elf/ifuncmain1picstatic.c: New file.
1923         * elf/ifuncmain1pie.c: New file.
1924         * elf/ifuncmain1static.c: New file.
1925         * elf/ifuncmain1staticpic.c: New file.
1926         * elf/ifuncmain1vis.c: New file..
1927         * elf/ifuncmain1vispic.c: New file..
1928         * elf/ifuncmain1vispie.c: New file.
1929         * elf/ifuncmain2.c: New file.
1930         * elf/ifuncmain2pic.c: New file.
1931         * elf/ifuncmain2picstatic.c: New file.
1932         * elf/ifuncmain2static.c: New file.
1933         * elf/ifuncmain3.c: New file.
1934         * elf/ifuncmain4.c: New file.
1935         * elf/ifuncmain4picstatic.c: New file.
1936         * elf/ifuncmain4static.c: New file.
1937         * elf/ifuncmod1.c: New file.
1938         * elf/ifuncmod3.c: New file.
1940 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1942         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1944 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1946         [BZ #10221]
1947         * posix/Makefile (routines): Add execvpe.
1948         * posix/Versions: Export execvpe for GLIBC_2.11.
1949         * posix/execvp.c: Now only a wrapper.  Move code to...
1950         * posix/execvpe.c: ...here.  New file.
1951         * posix/unistd.h: Declare execvpe.
1953 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1955         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1956         for STT_GNU_IFUNC handling for efficiency.
1957         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1959         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1960         _exit.
1961         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1963 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1965         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1966         for !SHARED.
1968 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1970         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1971         is not defined.
1972         (__rela_iplt_start): New declaration.
1973         (__rela_iplt_end): Likewise.
1974         (__rel_iplt_start): Likewise.
1975         (__rel_iplt_end): Likewise.
1976         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1977         * elf/elf.h (R_386_IRELATIVE): New macro.
1978         (R_X86_64_IRELATIVE): New macro.
1979         (R_386_NUM): Updated.
1980         (R_X86_64_NUM): Likewise.
1981         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1982         (libc_ifunc_hidden_def): New macro.
1983         * sysdeps/generic/dl-irel.h: New file.
1984         * sysdeps/i386/dl-irel.h: New file.
1985         * sysdeps/x86_64/dl-irel.h: New file.
1986         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1987         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1988         Handle R_386_IRELATIVE.
1989         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1990         (elf_machine_lazy_rela): Likewise.
1991         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1992         R_X86_64_IRELATIVE.
1993         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1995 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1997         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1998         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
1999         are no differences.  If an architecture has bits in CPUID index 1
2000         meaning different things the values for the COMMON_CPUID_INDEX_1
2001         index must not be set.
2002         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2003         (HAS_POPCOUNT): ...this.  New macro.
2004         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2005         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2006         to set the value for Intel and AMD architectures.
2007         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2008         INTEL_CPUID_INDEX_1.
2009         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2010         change.
2012 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2014         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2015         and $build.
2017 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2019         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2020         (__expm1l): Set errno to ERANGE on overflow.
2021         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2022         (__tanl): Set errno to EDOM for Â±Inf.
2023         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2024         (__cosl): Set errno to EDOM for Â±Inf.
2025         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2026         (__sinl): Set errno to EDOM for Â±Inf.
2028         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2029         defined, use it.
2030         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2031         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2032         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2034 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2036         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2037         code accessing it.
2038         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2040 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2042         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2043         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2044         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2045         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2047         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2048         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2049         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2050         defined.
2051         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2052         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2054 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2056         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2057         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2058         is, either do nothing at all if __ASSUME_ACCEPT4, or
2059         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2060         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2061         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2062         define.
2063         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2064         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2065         internal_accept4 in socket directory.
2067 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2069         * sysdeps/ia64/configure.in: New file.
2071 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2073         [BZ #10162]
2074         * sysdeps/ia64/memchr.S: Use speculative load.
2076         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2077         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2078         use it.
2080         * sysdeps/i386/__longjmp.S: Add .text.
2081         * sysdeps/x86_64/__longjmp.S: Likewise.
2083 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2085         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2086         __ASSUME_ACCEPT4 for IA-64.
2088 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2090         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2092         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2093         (SOCKOP_accept4): Define.
2095 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2097         Sun approved the change of the license.
2098         * sunrpc/auth_des.c: Replace license text.
2099         * sunrpc/auth_none.c: Likewise.
2100         * sunrpc/auth_unix.c: Likewise.
2101         * sunrpc/authdes_prot.c: Likewise.
2102         * sunrpc/authuxprot.c: Likewise.
2103         * sunrpc/bindrsvprt.c: Likewise.
2104         * sunrpc/clnt_gen.c: Likewise.
2105         * sunrpc/clnt_perr.c: Likewise.
2106         * sunrpc/clnt_raw.c: Likewise.
2107         * sunrpc/clnt_simp.c: Likewise.
2108         * sunrpc/clnt_tcp.c: Likewise.
2109         * sunrpc/clnt_udp.c: Likewise.
2110         * sunrpc/clnt_unix.c: Likewise.
2111         * sunrpc/des_crypt.c: Likewise.
2112         * sunrpc/des_soft.c: Likewise.
2113         * sunrpc/get_myaddr.c: Likewise.
2114         * sunrpc/getrpcport.c: Likewise.
2115         * sunrpc/key_call.c: Likewise.
2116         * sunrpc/key_prot.c: Likewise.
2117         * sunrpc/openchild.c: Likewise.
2118         * sunrpc/pm_getmaps.c: Likewise.
2119         * sunrpc/pm_getport.c: Likewise.
2120         * sunrpc/pmap_clnt.c: Likewise.
2121         * sunrpc/pmap_prot.c: Likewise.
2122         * sunrpc/pmap_prot2.c: Likewise.
2123         * sunrpc/pmap_rmt.c: Likewise.
2124         * sunrpc/rpc/auth.h: Likewise.
2125         * sunrpc/rpc/auth_unix.h: Likewise.
2126         * sunrpc/rpc/clnt.h: Likewise.
2127         * sunrpc/rpc/des_crypt.h: Likewise.
2128         * sunrpc/rpc/key_prot.h: Likewise.
2129         * sunrpc/rpc/netdb.h: Likewise.
2130         * sunrpc/rpc/pmap_clnt.h: Likewise.
2131         * sunrpc/rpc/pmap_prot.h: Likewise.
2132         * sunrpc/rpc/pmap_rmt.h: Likewise.
2133         * sunrpc/rpc/rpc.h: Likewise.
2134         * sunrpc/rpc/rpc_des.h: Likewise.
2135         * sunrpc/rpc/rpc_msg.h: Likewise.
2136         * sunrpc/rpc/svc.h: Likewise.
2137         * sunrpc/rpc/svc_auth.h: Likewise.
2138         * sunrpc/rpc/types.h: Likewise.
2139         * sunrpc/rpc/xdr.h: Likewise.
2140         * sunrpc/rpc_clntout.c: Likewise.
2141         * sunrpc/rpc_cmsg.c: Likewise.
2142         * sunrpc/rpc_common.c: Likewise.
2143         * sunrpc/rpc_cout.c: Likewise.
2144         * sunrpc/rpc_dtable.c: Likewise.
2145         * sunrpc/rpc_hout.c: Likewise.
2146         * sunrpc/rpc_main.c: Likewise.
2147         * sunrpc/rpc_parse.c: Likewise.
2148         * sunrpc/rpc_parse.h: Likewise.
2149         * sunrpc/rpc_prot.c: Likewise.
2150         * sunrpc/rpc_sample.c: Likewise.
2151         * sunrpc/rpc_scan.c: Likewise.
2152         * sunrpc/rpc_scan.h: Likewise.
2153         * sunrpc/rpc_svcout.c: Likewise.
2154         * sunrpc/rpc_tblout.c: Likewise.
2155         * sunrpc/rpc_util.c: Likewise.
2156         * sunrpc/rpc_util.h: Likewise.
2157         * sunrpc/rpcinfo.c: Likewise.
2158         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2159         * sunrpc/rpcsvc/key_prot.x: Likewise.
2160         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2161         * sunrpc/rpcsvc/mount.x: Likewise.
2162         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2163         * sunrpc/rpcsvc/rex.x: Likewise.
2164         * sunrpc/rpcsvc/rstat.x: Likewise.
2165         * sunrpc/rpcsvc/rusers.x: Likewise.
2166         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2167         * sunrpc/rpcsvc/spray.x: Likewise.
2168         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2169         * sunrpc/rtime.c: Likewise.
2170         * sunrpc/svc.c: Likewise.
2171         * sunrpc/svc_auth.c: Likewise.
2172         * sunrpc/svc_authux.c: Likewise.
2173         * sunrpc/svc_raw.c: Likewise.
2174         * sunrpc/svc_run.c: Likewise.
2175         * sunrpc/svc_simple.c: Likewise.
2176         * sunrpc/svc_tcp.c: Likewise.
2177         * sunrpc/svc_udp.c: Likewise.
2178         * sunrpc/svc_unix.c: Likewise.
2179         * sunrpc/svcauth_des.c: Likewise.
2180         * sunrpc/xcrypt.c: Likewise.
2181         * sunrpc/xdr.c: Likewise.
2182         * sunrpc/xdr_array.c: Likewise.
2183         * sunrpc/xdr_float.c: Likewise.
2184         * sunrpc/xdr_mem.c: Likewise.
2185         * sunrpc/xdr_rec.c: Likewise.
2186         * sunrpc/xdr_ref.c: Likewise.
2187         * sunrpc/xdr_sizeof.c: Likewise.
2188         * sunrpc/xdr_stdio.c: Likewise.
2190         * po/da.po: Update from translation team.
2192 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2194         * sysdeps/sh/____longjmp_chk.S: New file.
2195         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2196         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2198 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2199             Ulrich Drepper  <drepper@redhat.com>
2201         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2202         (__nscd_cache_search): Assume each entry in the
2203         hash chain needs one hashentry and half of datahead.  Use
2204         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2206 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2208         * posix/sys/wait.h: Fix typos.  Pretty printing.
2209         * stdlib/stdlib.h: Likewise.  Correct comments.
2211         [BZ #10159]
2212         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2214         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2215         patch.
2217 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2219         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2220         Use it if we absolutely cannot reach any more correct list elements
2221         because that many do not fit into the currently mapped database.
2223 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2225         * nscd/nscd_helper.c: Include stddef.h.
2226         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2227         in a couple of places.  Return NULL if trail is not less than
2228         datasize, don't consider dataheads with length smaller than
2229         offsetof (struct datahead, data) + datalen.
2230         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2231         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2232         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2233         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2234         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2235         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2236         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2238         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2239         Rename ...
2240         (fallocate64): ... to this.
2241         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2242         Rename ...
2243         (fallocate64): ... to this.
2244         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2245         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2246         fallocate64@@GLIBC_2.10.
2247         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2248         fallocate64@@GLIBC_2.11.
2249         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2251         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2252         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2254         * nscd/selinux.c (nscd_avc_destroy): Removed.
2255         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2256         * nscd/nscd.c (termination_handler): Don't call
2257         nscd_avc_destroy.
2259 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2261         * include/atomic.h: Formatting.
2262         (catomic_compare_and_exchange_val_acq): Don't define if already
2263         defined by bits/atomic.h.
2265 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2267         * math/libm-test.inc (expm1_test): Add test for range error.
2269         * Versions.def: Add GLIBC_2.11 for libc.
2270         * debug/Makefile (routines): Add longjmp_chk.
2271         Add rules to build and run tst-longjmp_chk.
2272         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2273         * debug/longjmp_chk.c: New file.
2274         * debug/tst-longjmp_chk.c: New file.
2275         * include/bits/setjmp2.: New file.
2276         * include/stdio.h: Mark __fortify_fail as internal_function.
2277         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2278         * setjmp/bits/setjmp2.h: New file.
2279         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2280         of the aliases.
2281         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2282         defined.
2283         * sysdeps/i386/____longjmp_chk.S: New file.
2284         * sysdeps/x86_64/____longjmp_chk.S: New file.
2285         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2286         * sysdeps/x86_64/__longjmp.S: Likewise.
2288         * version.h: Bump for 2.11 development.
2290         * elf/check-execstack.c: New file.
2291         * elf/Makefile: Add rules to build and run check-execstack.
2293 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2295         * version.h (VERSION): Bump to 2.10.1.
2297         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2298         compatibility functions.
2299         * nss/getXXent_r.c: Likewise.
2300         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2301         * gshadow/getsgnam_r.c: Likewise.
2302         * gshadow/Version: Remove duplicate entries.
2304         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2305         for recent processor.
2306         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2307         Likewise.
2309 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2311         * version.h (VERSION): Bump for 2.10 release.
2312         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2314         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2315         same place we add ASFLAGS-config.
2317 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2319         [BZ #10128]
2320         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2321         or FORMERR and the other NOERROR, don't raise an error.
2323 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2325         [BZ #10118]
2326         * Makeconfig (+asflags): New variable based upon ASFLAG or
2327         asflags-cpu.
2328         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2329         * config.make.in (asflags-cpu): Add variable based upon
2330         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2331         the assembler.
2332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2333         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2334         recognizes power6 instruction set due to passing -mcpu=power6 from
2335         --with-cpu=power6 when compiling .S files.
2336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2337         Likewise.
2338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2339         Likewise.
2340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2341         Likewise.
2343 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2345         * string/stratcliff.c (do_test): Test for zero length
2346         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2347         at the end of the page.
2349 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2351         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2353         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2354         count is zero.
2356         * po/da.po: Update from translation team.
2358 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2360         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2361         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2363 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2365         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2366         and READ_IMPLIES_EXEC.
2368 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2370         * po/da.po: Update from translation team.
2372 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2374         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2375         comment change.
2377 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2379         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2380         to MAP_ANON in PROT_NONE mmap64 call.
2381         (open_archive): Likewise.
2382         (file_data_available_p): Use mmap64 instead of mremap.
2383         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2384         Attempt to reserve address space after mmap64 region.
2386 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2388         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2389         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2390         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2392         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2393         atanh should set ERANGE.
2395         [BZ #10087]
2396         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2397         result of lookup to make call to implement STT_GNU_IFUNC.
2398         (_dl_profile_fixup): Likewise.
2399         Patch by H.J. Lu <hjl.tools@gmail.com>.
2401         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2402         warning.
2404         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2405         from definition.
2407         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2408         label if it is not used.
2410         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2411         of gmon_hist_hdr and gmon_hdr structures and use them.
2412         * elf/sprof.c: Likewise.
2414         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2415         warning.
2417         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2419         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2420         to avoid cast.
2422         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2423         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2424         to avoid warnings.
2425         (iruserok_af): Use ss_family instead of casts.
2427         * gmon/gmon.c (write_hist): Define real-type variant of
2428         gmon_hist_hdr structure and use it.
2429         (write_gmon): Likewise for gmon_hdr.
2431         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2432         function if we are not going to define it.
2433         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2435         * inet/inet6_option.c (option_alloc): Add temporary variable to
2436         avoid warning.
2438         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2439         name of VTable element.
2440         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2441         * libio/iovsscanf.c: Likewise.
2442         * libio/vasprintf.c: Likewise.
2443         * libio/vsnprintf.c: Likewise.
2444         * stdio-common/isoc99_vsscanf.c: Likewise.
2445         * stdlib/strfmon_l.c: Likewise.
2446         * debug/vasprintf_chk.c: Likewise.
2447         * debug/vsnprintf_chk.c: Likewise.
2448         * debug/vsprintf_chk.c: Likewise.
2450         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2451         function pointers.
2453 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2455         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2457 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2459         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2461         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2462         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2463         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2464         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2465         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2466         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2467         * math/libm-test.inc: Add tests for errno after tan calls with
2468         Â±Inf.
2470         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2471         errno value vor pow(+-0,neg).
2472         * math/libm-test.inc (pow_test): Add tests for errno value for
2473         pole errors.
2475         * math/w_fmod.c: Also handle x=±Inf as error.
2476         * math/w_fmodf.c: Likewise.
2477         * math/w_fmodl.c: Likewise.
2478         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2479         x=±Inf or y=0.
2481         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2482         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2483         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2484         * sysdeps/i386/fpu/s_sin.S: Likewise.
2485         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2486         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2487         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2488         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2489         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2490         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2491         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2492         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2493         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2494         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2495         Â±Inf.
2497         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2498         ERANGE for underflows.
2499         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2501         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2502         the 2001 revision.
2504         * libio/tst-widetext.input: Remove surrogates.
2506         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2508         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2509         for lgamma should set errno to ERANGE, not EDOM.
2510         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2512 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2514         [BZ #10093]
2515         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2516         UTF-16 surrogates.
2518         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2519         space when temporarily mapping the whole content of the old file.
2521         [BZ #10100]
2522         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2523         not zero.
2525 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2527         * iconvdata/sjis.c (BODY): Don't advance inptr before
2528         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2529         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2530         two byte chars.
2532 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2534         * locale/locarchive.h (struct locarhandle): Rename len field to
2535         mmaped and add new reserved field.
2536         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2537         (create_archive): Reserve address space and then map file into it.
2538         (open_archive): Likewise.
2539         (file_data_available_p): New function.
2540         (compare_from_file): New function.
2541         (close_archive): Adjust to member name changes.
2542         (add_locale): Before comparing locale data, check it is mapped.
2543         Otherwise fall back to reading from the file.
2545 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2547         * stdio-common/psiginfo.c: Include <errno.h>.
2549 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2551         [BZ #9920]
2552         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2553         to get consistency between 32 and 64 bit architectures.
2555         [BZ #10052]
2556         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2557         directory for dummy syscall rules.
2558         Patch by Chris Steinbroner <hesh@pobox.com>.
2560 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2562         [BZ #10092]
2563         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2564         MNT_EXPIRE.
2566 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2568         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2569         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2571 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2573         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2574         data from vector to temporary buffer and call PWRITEV after it
2575         instead of vice versa.
2576         * sysdeps/posix/preadv.c: Fix up comment.
2577         * misc/preadv.c: Likewise.
2578         * misc/preadv64.c: Likewise.
2579         * misc/pwritev.c: Likewise.
2580         * misc/pwritev64.c: Likewise.
2581         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2583 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2585         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2587         * shadow/Makefile (tests): Add tst-shadow.
2588         * shadow/tst-shadow.c: New file.
2590         [BZ #9955]
2591         * gshadow/Makefile: New file.
2592         * gshadow/Versions: New file.
2593         * gshadow/fgetsgent.c: New file.
2594         * gshadow/fgetsgent_r.c: New file.
2595         * gshadow/getsgent.c: New file.
2596         * gshadow/getsgent_r.c: New file.
2597         * gshadow/getsgnam.c: New file.
2598         * gshadow/getsgnam_r.c: New file.
2599         * gshadow/gshadow.h: New file.
2600         * gshadow/putsgent.c: New file.
2601         * gshadow/sgetsgent.c: New file.
2602         * gshadow/sgetsgent_r.c: New file.
2603         * gshadow/tst-gshadow.c: New file.
2604         * include/gshadow.h: New file.
2605         * Makeconfig (all-subdirs): Add gshadow.
2606         * Makefile (installed-headers): Add gshadow/gshadow.h.
2607         * nss/Makefile (databases): Add sgrp.
2608         * nss/Versions: Add gshadow functions as private exports.
2609         * nss/nsswitch.conf: Add gshadow entry.
2610         * nss/sgrp-lookup.c: New file.
2611         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2612         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2613         * nss/nss_files/files-sgrp.c: New file.
2614         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2615         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2617 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2619         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2620         * stdio-common/reg-modifier.c: Likewise.
2622 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2624         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2625         is no FPU.
2627 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2629         [BZ #10086]
2630         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2631         headers up to 2.6.30.
2633         * po/ca.po: Update from translation team.
2635 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2637         [BZ #10069]
2638         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2639         an object that uses static TLS if the TLS modid is higher than the
2640         reserve we always allocate.  At least for multi-threaded code.
2642 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2644         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2645         Numerically stable check for valid width.
2647         * locale/programs/locarchive.c (open_archive): Map the entire file
2648         and not just the administrative data.
2649         (add_locale): When we find a hash sum match compare the content
2650         to be sure.
2652         * malloc/malloc.c (malloc_info): Output address space information.
2654 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2656         * malloc/malloc.c (malloc_info): Also output system memory information.
2658         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2659         architectures have preadv/pwritev in 2.6.30.
2661         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2662         * sysdeps/posix/readv.c: Likewise.
2663         Reported by Markus Armbruster <armbru@redhat.com>.
2665         * malloc/hooks.c (top_check): Force hook value into register.
2667 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2669         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2670         calls to _dl_relocate_object.
2672 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2674         [BZ #9957]
2675         * malloc/malloc.c (force_reg): Define.
2676         (sYSMALLOc): Load hook variable into variable
2677         before test and force into register.
2678         (sYSTRIm): Likewise.
2679         (public_mALLOc): Force hook value into register.
2680         (public_fREe): Likewise.
2681         (public_rEALLOc): Likewise.
2682         (public_mEMALIGn): Likewise.
2683         (public_vALLOc): Likewise.
2684         (public_pVALLOc): Likewise.
2685         (public_cALLOc): Likewise.
2686         (__posix_memalign): Likewise.
2687         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2688         before test and force into register.
2689         * malloc/hooks.c (top_check): Likewise.
2690         (public_sET_STATe): Pretty printing.
2692         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2693         in case we only receive one reply in single-request mode.
2695 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2697         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2698         are dlopened in statically linked program even for __LM_ID_CALLER.
2700 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2702         * resolv/res_send.c (send_dg): Don't switch into single-request
2703         mode if we already are in it.
2705 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2707         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2708         are always at least 4 bytes in the returned line.
2710 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2712         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2713         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2714         instead of 8K.  Stop searching in /proc/stat after hitting first
2715         line not starting with cpu.
2716         (next_line): Truncate too long
2717         lines at buffer size * 3/4 instead of pretending there were line
2718         breaks inside of large lines.
2720 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2722         * sysdeps/x86_64/mp_clz_tab.c: New file.
2724 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2725             Ulrich Drepper  <drepper@redhat.com>
2727         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2728         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2729         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2731 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2733         * sysdeps/sh/libc-tls.c: New file.
2735         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2737 2009-04-14  Roland McGrath  <roland@redhat.com>
2739         * elf/elf.h: Add various missing ARM constants, to match binutils.
2741 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2743         Optimizations from GMP.
2744         * sysdeps/x86_64/add_n.S: New file.
2745         * sysdeps/x86_64/addmul_1.S: New file.
2746         * sysdeps/x86_64/lshift.S: New file.
2747         * sysdeps/x86_64/mul_1.S: New file.
2748         * sysdeps/x86_64/rshift.S: New file.
2749         * sysdeps/x86_64/sub_n.S: New file.
2750         * sysdeps/x86_64/submul_1.S: New file.
2752 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2754         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2755         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2756         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2757         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2759 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2761         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2762         preadv/pwritev.
2764 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2766         * sysdeps/x86-64/strrchr.S: New file.
2768 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2770         * stdio-common/printf.h (struct printf_info): Add user element.
2771         New types printf_arginfo_size_function, printf_va_arg_function.
2772         Declare register_printf_specifier, register_printf_modifier,
2773         register_printf_type.
2774         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2775         (union printf_arg): Add pa_user element.
2776         Adjust __printf_arginfo_table type.
2777         Add __printf_va_arg_table, __printf_modifier_table,
2778         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2779         declarations.
2780         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2781         If registered arginfo call failed try normal specifier.
2782         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2783         function.
2784         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2785         * stdio-common/Versions: Export register_printf_modifier,
2786         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2787         * stdio-common/reg-modifier.c: New file.
2788         * stdio-common/reg-type.c: New file.
2789         * stdio-common/reg-printf.c (__register_printf_specifier): New
2790         function.  Mostly the old __register_printf_function function but
2791         uses locking and type of third parameter changed.
2792         (__register_printf_function): Implement using
2793         __register_printf_specifier.
2794         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2795         calls to arginfo functions.  Allocate enough memory for user-defined
2796         types.  Call new va_arg functions to get user-defined types.
2797         Try installed handlers even for existing format specifiers first.
2799 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2801         * sysdeps/x86_64/rawmemchr.S: New file.
2803         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2804         Simplified code and possible copy problem fixed.
2806         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2807         function if it is not defined.  Add some necessary casts.
2808         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2810         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2811         have preadv/pwritev in 2.6.30.
2813 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2815         * malloc/malloc.c (malloc_info): New function.
2816         * malloc/malloc.h: Declare it.
2817         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2819         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2820         to avoid PLT slot.
2822         * malloc/malloc.c (_int_realloc): Add parameter with old block
2823         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2824         Adjust all callers.
2825         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2827 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2829         * sysdeps/x86_64/strchrnul.S: New file.
2831         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2832         depending libcrypt on -lfreebl3.
2834         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2835         preadv/pwritev in 2.6.30.
2837         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2838         instead of __strcasecmp.
2840         * string/stratcliff.c (do_test): Add memchr tests..
2841         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2842         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2843         first read quad word.
2845 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2847         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2848         * string/tst-svc.input: Add new test case.
2849         * string/tst-svc.expect: Adjust.
2850         * string/Makefile: Don't ignore tst-svc error.
2852         * sysdeps/x86_64/memchr.S: New file.
2854         * resolv/resolv.h (RES_SNGLKUP): Define.
2855         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2856         * resolv/res_send.c (send_dg): If we sent two requests at once and
2857         only get one reply before timeout switch to mode where we send the
2858         second request only after the first answer has been received.
2860 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2862         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2863         * sysdeps/x86_64/strchr.S: Likewise.
2865 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2867         * configure.in: We need to test for the compiler earlier.
2869         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2870         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2871         GLIBC_2.10.
2872         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2873         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2874         and pwritev.
2875         * misc/preadv.c: New file.
2876         * misc/preadv64.c: New file.
2877         * misc/pwritev.c: New file.
2878         * misc/pwritev64.c: New file.
2879         * sysdeps/posx/preadv.c: New file.
2880         * sysdeps/posx/preadv64.c: New file.
2881         * sysdeps/posx/pwritev.c: New file.
2882         * sysdeps/posx/pwritev64.c: New file.
2883         * sysdeps/unix/sysv/linux/preadv.c: New file.
2884         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2885         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2886         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2887         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2888         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2890         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2891         compatibility code.
2892         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2894         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2895         __ASSUME_COMPLETE_READV_WRITEV.
2896         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2897         with modern kernels.
2898         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2900         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2901         to free a possible malloced buffer in case of cancellation.
2902         * sysdeps/posix/writev.c: Likewise for write.
2904 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2906         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2908         * configure.in: Recognize --enable-nss-crypt.
2909         * config.make.in: Add nss-crypt entry.
2910         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2911         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2912         and include path for NSS directory to compiler for md5-crypt,
2913         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2914         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2915         function implementation, use NSS.  Introduce wrappers around the
2916         hash function calls.  Little code size optimization.
2917         * crypt/sha256-crypt.c: Likewise.
2918         * crypt/sha512-crypt.c: Likewise.
2919         * scripts/check-local-headers.sh: Ignore nss3 directory.
2921         * configure.in: Rename pic_default to libc_cv_pic_default.
2922         * config.make.in: Likewise.
2924 2009-04-01  Roland McGrath  <roland@redhat.com>
2926         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2927         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2928         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2929         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2930         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2931         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2932         (R_SPARC_NUM): Update.
2933         From Dave Miller <davem@davemloft.net>.
2935 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2937         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2939 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2941         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2942         those which are used.
2943         * elf/dl-addr.c: Likewise.
2944         * elf/dl-caller.c: Likewise.
2945         * elf/dl-fini.c: Likewise.
2946         * elf/dl-iteratephdr.c: Likewise.
2947         * elf/dl-libc.c: Likewise.
2948         * elf/dl-load.c: Likewise.
2949         * elf/dl-support.c: Likewise.
2950         * elf/dl-sym.c: Likewise.
2951         * elf/rtld.c: Likewise.
2952         * sysdeps/generic/ldsodefs.h: Likewise.
2954         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2955         * elf/dl-minimal.c: Likewise.
2956         * elf/dl-misc.c: Likewise.
2957         * elf/rtld.c: Likewise.
2958         * sysdeps/generic/ldsodefs.h: Likewise.
2960 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2962         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2963         Avoid reuse of complex expression.
2965         * po/fr.po: Update from translation team.
2967 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2969         * include/dirent.h: Yet more changes to match sort function type
2970         change.
2971         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2972         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2973         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2975 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2977         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2979 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2981         * nscd/connections.c (restart): Try to preserve the process name
2982         by reading the /proc/self/exe symlink and using the return name.
2983         Patch by Jeff Bastian <jbastian@redhat.com>.
2985 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2987         [BZ #9733]
2988         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2989         if we are not loading a new audit library.
2990         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2991         Only use profiling trampoline for auditing if we are not relocating
2992         an audit library.
2993         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2994         * elf/rtld.c: Likewise.
2995         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2997         * elf/rtld.c (dl_main): Extend help message for --audit option.
2999         [BZ #9759]
3000         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3001         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3002         * dirent/alphasort.c: Adjust implementation to type change.
3003         * dirent/alphasort64.c: Likewise.
3004         * dirent/scandir.c: Likewise.
3005         * dirent/versionsort.c: Likewise.
3006         * dirent/versionsort64.c: Likewise.
3007         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3008         declaration.
3009         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3010         declaration.
3012         [BZ #9880]
3013         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3014         correctly.  Set segleft member in output as required.
3015         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3016         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3018         [BZ #9881]
3019         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3020         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3021         * inet/Makefile (tests): Add tst-inet6_rth.
3022         * inet/tst-inet6_rth.c: New file.
3024         [BZ #5807]
3025         * string/strlen.c (strlen): Fix omission in the expression to test
3026         for NUL bytes.
3028 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3030         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3032         * elf/dl-runtime.c (reloc_offset): Define.
3033         (reloc_index): Define.
3034         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3035         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3036         computing index from reloc_offset.
3037         (_dl_call_pltexit): Likewise.
3038         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3039         the relocation index to _dl_fixup.
3040         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3041         _dl_call_pltexit.
3042         * sysdeps/x86_64/dl-runtime.c: New file.
3044         [BZ #9893]
3045         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3046         alignment of La_x86_64_regs.  Store xmm parameters.
3047         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3049         [BZ #9913]
3050         * string/strverscmp.c (__strverscmp): Fix case of different digits
3051         in fractional part of string.
3052         Patch by Jingyu Liu <jyliu@fortinet.com>.
3053         * string/Makefile (tests): Add tst-svc2.
3054         * string/tst-svc2.c: New file.
3056         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3058         * locale/iso-639.def: Add Min Nan.
3060 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3062         [BZ #9948]
3063         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3065 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3067         * elf/dl-sysdep.c (auxvars): Compress data structure.
3069         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3070         STT_GNU_IFUNC handling.
3071         (elf_machine_rela): Likewise.
3073 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3075         * config.h.in (USE_MULTIARCH): Define.
3076         * configure.in: Handle --enable-multi-arch.
3077         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3078         (_dl_fixup_profile): Likewise.
3079         * elf/do-lookup.c (dl_lookup_x): Likewise.
3080         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3081         * elf/elf.h (STT_GNU_IFUNC): Define.
3082         * include/libc-symbols.h (libc_ifunc): Define.
3083         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3084         framework in init-arch.h to get CPUID values.
3085         * sysdeps/x86_64/multiarch/Makefile: New file.
3086         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3087         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3088         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3090         * config.make.in (experimental-malloc): Define.
3091         * configure.in: Handle --enable-experimental-malloc.
3092         * malloc/Makefile: Handle experimental-malloc flag.
3093         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3094         * malloc/arena.c: Likewise.
3095         * malloc/hooks.c: Likewise.
3096         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3098 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3100         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3101         prediction.  A few size optimizations.
3103 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3105         * time/tzset.c: Optimize a bit for size.
3107 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3109         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3110         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3112         * elf/sprof.c: Avoid warning about multi-line comment.
3114 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3116         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3117         DST name.
3118         * time/tst-posixtz.c: Add tests for quoted timezone names.
3120 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3122         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3123         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3124         200809L instead of 200112L.
3125         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3126         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3128         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3129         instead of __quick_exit_funcs to __run_exit_handlers.
3130         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3131         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3132         (__cxa_at_quick_exit): Remove attribute_hidden.
3133         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3134         to __run_exit_handlers.
3135         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3136         attribute_hidden.
3138 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3140         * po/id.po: Update from translation team.
3142 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3145         .machine push; .machine "power6" and .machine pop around mtfsf
3146         insns outside of _ARCH_PWR6 define.
3147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3149         Likewise.
3150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3151         Likewise.
3152         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3153         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3154         relax_fenv_state): Likewise.
3156 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3158         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3159         cxa_at_quick_exit.
3160         (static-only-routines): Add at_quick_exit.
3161         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3162         GLIBC_2.10.
3163         * stdlib/quick_exit.c: New file.
3164         * stdlib/at_quick_exit.c: New file.
3165         * stdlib/cxa_at_quick_exit.c: New file.
3166         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3167         it appropriately.
3168         (__internal_atexit): New function.
3169         (__new_exitfn): Now takes parameter to point to the list to use.
3170         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3171         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3172         (exit): ...here.  Just call __run_exit_handlers appropriately.
3173         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3174         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3175         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3176         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3178         * po/id.po: Update from translation team.
3180 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3182         * po/ru.po: Update from translation team.
3184 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3186         * po/nl.po: Update from translation team.
3188 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3190         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3191         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3192         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3193         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3194         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3195         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3196         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3198         * po/pl.po: Update from translation team.
3200 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3202         [BZ #7083]
3203         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3204         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3205         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3206         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3207         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3208         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3209         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3210         for GLIBC_2.10.
3211         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3212         Add fallocate and fallocate64.
3214         * io/fcntl.h: Pretty printing.
3216 2009-03-02  Richard Guenther  <rguenther@suse.de>
3218         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3219         attribute also for non-C99 inline semantics variant.
3221 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3223         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3224         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3225         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3226         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3228         Likewise.
3229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3230         Likewise.
3232 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3234         * po/cs.po: Update from translation team.
3236 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3238         * po/bg.po: Update from translation team.
3239         * po/sv.po: Likewise.
3240         * po/fi.po: Likewise.
3241         * po/vi.po: Likewise.
3243 2009-02-27  Roland McGrath  <roland@redhat.com>
3245         * Makeconfig (%.v.i): Depend on Makeconfig.
3246         Exclude % lines from initial #-comment removal.
3248 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3250         * po/ko.po: Update from translation team.
3252 2009-02-26  Roland McGrath  <roland@redhat.com>
3254         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3255         avoids unused warning.
3257 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3258             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3260         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3261         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3262         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3263         and asm/user.h.  Include asm/ptrace.h.
3264         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3265         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3266         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3267         Undefine.
3268         (start_thread): Don't undefine.
3269         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3270         Define.
3272 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3274         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3275         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3276         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3277         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3278         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3279         200112L to 200809L.
3280         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3281         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3282         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3283         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3284         _SC_THREAD_ROBUST_PRIO_PROTECT.
3285         * posix/unistd.h: fexecve is in POSIX 2008.
3286         * time/time.h: strftime_l is in POSIX 2008.
3287         * io/sys/stat.h: futimens is in POSIX 2008.
3288         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3289         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3290         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3291         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3292         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3293         open_memstream, and vdprintf are in POSIX 2008.
3295 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3297         * include/features.h: Define macros for XPG7/POSIX 2008.
3298         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3299         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3300         POSIX 2008.
3301         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3302         * locale/xlocale.h: Define locale_t type.
3303         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3304         in POSIX 2008.  Don't define locale_t here.
3305         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3306         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3307         UTIME_OMIT only with __USE_ATFILE.
3308         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3309         * stdio-common/psiginfo.c: New file.
3310         * stdio-common/psiginfo-data.h: New file.
3311         * stdio-common/psiginfo-define.h: New file.
3312         * stdio-common/Makefile (routines): Add psiginfo.
3313         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3314         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3315         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3316         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3317         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3318         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3319         * io/sys/stat.h: Move mknodat definition into same conditional as
3320         mknod.
3321         * time/sys/time.h: futimesat is not among the functions accepted
3322         into the POSIX standard.
3324         * include/features.h: If no feature selection given and we select
3325         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3326         * posix/Versions: Export __posix_getopt.
3327         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3328         Use it to alternatively initialize __posixly_correct.
3329         (_getopt_internal_r): Take addition parameter.  Pass on to
3330         _getopt_initialize.
3331         (_getopt_internal): Take addition parameter.  Pass on to
3332         _getopt_internal_r.
3333         (getopt): Pass additional zero to _getopt_internal.
3334         (__posix_getopt): New function.
3335         * posix/getopt.h: Add redirection for getopt.
3336         * posix/getopt1.c (getopt_long): Pass additional zero to
3337         _getopt_internal.
3338         (getopt_long_only): Likewise.
3339         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3340         (_getopt_long_only_r): Likewise.
3341         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3342         _getopt_internal_r.
3344 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3346         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3347         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3348         * sysdeps/posix/sysconf.c (__sysconf): Handle
3349         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3350         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3352 2009-02-24  Roland McGrath  <roland@redhat.com>
3354         [BZ #9895]
3355         * README.template: Reworded not to use substituted version number.
3356         Renamed to ...
3357         * README: ... here (no longer generated).
3358         * Makefile (README): Target removed.
3360 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3362         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3363         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3364         instead.
3366         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3368         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3370 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3372         * po/bg.po: Update from translation team.
3374 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3376         * stdlib/monetary.h: Uglify function parameter names.
3377         * sunrpc/rpc/pmap_clnt.h: Likewise.
3378         * sunrpc/rpc/svc.h: Likewise.
3379         * sunrpc/rpc/xdr.h: Likewise.
3380         * sunrpc/rpc/clnt.h: Likewise.
3381         * resolv/netdb.h: Likewise.
3382         * resolv/arpa/nameser.h: Likewise.
3383         * resolv/resolv.h: Likewise.
3384         * argp/argp.h: Likewise.
3385         * locale/langinfo.h: Likewise.
3386         * io/sys/stat.h: Likewise.
3387         * posix/spawn.h: Likewise.
3388         * nis/rpcsvc/nislib.h: Likewise.
3389         * malloc/obstack.h: Likewise.
3390         * sysdeps/ia64/bits/link.h: Likewise.
3391         * sysdeps/i386/bits/link.h: Likewise.
3392         * sysdeps/s390/bits/link.h: Likewise.
3393         * sysdeps/powerpc/bits/link.h: Likewise.
3394         * sysdeps/x86_64/bits/link.h: Likewise.
3395         * sysdeps/sparc/bits/link.h: Likewise.
3396         * sysdeps/sh/bits/link.h: Likewise.
3397         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3398         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3399         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3400         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3402 2008-12-01  Fredrik Unger  <fred@tree.se>
3404         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3405         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3406         _FP_UNPACK_RAW_2, fix up first argument.
3408 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3410         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3411         (GET_NPROCS_PARSER): Change parameters and use next_line.
3412         (__get_nprocs): Rewrite to not use stdio routines.
3413         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3414         Change parameters and use next_line.
3416 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3418         [BZ #5381]
3419         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3420         Change mempool_alloc prototype.
3421         * nscd/mem.c (gc): Don't handle mem_in_flight.
3422         (mempool_alloc): Third parameter now only indicates whether this is the
3423         first call (to allocate data) or not.  If it is, get db rdlock.
3424         Release it on error.  Don't handle mem_in_flight.
3425         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3426         Adjust third parameter of mempool_alloc calls.
3427         Nothing to do here in case mempool_alloc fails.
3428         Avoid local variable shadowing parameter.  No need to get db rdlock
3429         before calling cache_add.
3430         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3431         no mem_in_flight array anymore.
3432         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3433         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3434         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3435         in case mempool_alloc fails. No need to get db rdlock before calling
3436         cache_add.
3437         * nscd/hstcache.c (cache_addhst): Likewise.
3438         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3439         * nscd/servicescache.c (cache_addserv): Likewise.
3440         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3442 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3444         * po/lt.po: Update from translation team.
3446 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3448         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3449         defined, allow additional data to be added using the optional
3450         MORE_ELF_HEADER_DATA macro.
3451         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3452         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3454 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3456         * include/atomic.h: Define catomic_and if not already defined.
3457         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3458         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3460 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3462         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3463         Change all callers.
3464         (_int_realloc): Likewise.  Third argument is now padded size
3465         All _int_* functions are now static.
3467         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3468         * malloc/arena.c: Likewise.
3469         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3470         functions.
3472         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3473         easily.
3475         * malloc/malloc.c: Add branch prediction for use of the hooks.
3477         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3479 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3481         [BZ #7095]
3482         * bits/confname.h: Add SUSv7 macros for getconf environments.
3483         * bits/environments.h: Likewise.
3484         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3485         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3486         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3487         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3488         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3489         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3490         * posix/getconf.c: Likewise.
3491         * posix/sysconf.c: Likewise.
3492         * sysdeps/posix/sysconf.c: Likewise.
3493         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3494         environments.
3496 2009-01-16  Petr Baudis  <pasky@suse.cz>
3498         [BZ #9753]
3499         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3500         even if we currently have zero nscount.
3502 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3504         [BZ #9781]
3505         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3506         the input line is too long.
3508         * po/Makefile (libc.pot): Add f_print as function taking c-format
3509         parameter.
3511         * debug/xtrace.sh: Unify translatable messages.
3512         * elf/ldd.bash.in: Likewise.
3513         * elf/sprof.c: Likewise.
3514         * locale/programs/locale.c: Likewise.
3515         * malloc/memusage.sh: Likewise.
3516         * nss/getent.c: Likewise.
3518 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3520         * debug/pcprofiledump.c (print_version,
3521         argp_program_version_hook): New function.
3522         * elf/ldconfig.c (more_help): New function.
3523         (argp): Use it.
3524         * elf/sln.c (usage): New function.
3525         (main): Support --help and --version.
3526         * malloc/memusagestat.c (print_version): New function.
3527         (argp_program_version_hook): New variable.
3528         * nscd/nscd.c (more_help): New function.
3529         (argp): Use it.
3530         * posix/getconf.c (main): Send --version output to stdout.
3531         Support --help.
3532         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3533         arguments.  All callers changed.
3534         (print_version): New function.
3535         (parseargs): Support --help and --version.
3536         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3537         changed.
3538         (print_version): New function.
3539         (main): Use getopt_long.  Support --help and --version.
3540         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3541         --version.
3543 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3545         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3546         (update_data): Fix handling of wrapping back
3547         to the beginning of the buffer.
3549         [BZ #9823]
3550         * stdio-common/psignal.c (psignal): Fix test for empty string.
3552 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3554         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3555         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3556         move _null_auth to .rodata.
3558         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3559         value of 24.
3561         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3563         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3564         today than when the original code was written.  Use larger
3565         buffers.  This also makes it unnecessary to have stat information,
3566         if this causes extra efforts.
3567         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3568         __alloc_dir.
3570 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3572         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3573         is set.
3574         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3575         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3576         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3577         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3578         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3579         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3581 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3583         * po/ru.po: Update from translation team.
3585 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3587         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3588         Add _tid slot to maintain consistency with kernel.
3590 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3592         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3593         incomplete characters at end of input buffer.
3594         * libio/Makefile (tests): Add tst-fgetwc.
3595         * libio/tst-fgetwc.c: New file.
3596         * libio/tst-fgetwc.input: New file.
3598 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3600         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3602 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3604         [BZ #9793]
3605         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3606         *OUTBUFSTART unless the whole output fit into the buffer.
3607         * iconv/Makefile (tests): Add tst-iconv4.
3608         * iconv/tst-iconv4.c: New file.
3610 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3612         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3613         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3615 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3617         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3618         newer linker scripts.
3620 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3622         [BZ #7040]
3623         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3624         inotify_rm_watch should have type int.
3626 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3628         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3629         Make aligned_restore_vmx a local symbol.
3630         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3631         Likewise.
3633 2009-01-30  Andreas Jaeger  <aj@suse.de>
3635         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3636         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3637         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3638         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3639         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3640         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3641         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3643 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3645         [BZ #9726]
3646         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3647         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3649 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3651         [BZ #9726]
3652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3653         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3655         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3657 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3659         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3660         memcpy instead of memcmp.
3661         (_dl_setup_pointer_guard): Likewise.
3663 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3665         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3666         manipulated brk, use malloc_printerr.
3667         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3668         requests.
3670 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3672         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3673         rindex): For C++ add inlines so that they can be recognized as
3674         builtins.
3675         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3677 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3678             Jakub Jelinek  <jakub@redhat.com>
3680         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3681         * wcsmbs/wchar.h: Likewise.
3683 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3685         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3686         (stackinfo_sub_sp): Define.
3688 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3690         [BZ #9750]
3691         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3692         * include/alloca.h (alloca_account): Define.
3693         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3694         (stackinfo_sub_sp): Define.
3696         * nscd/connections.c (nscd_init): If database file access fails
3697         check whether this is due to permission problems and bail in that
3698         case.
3700         [BZ #9741]
3701         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3702         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3704 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3706         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3707         Add "t" to clobber list.
3708         (INTERNAL_SYSCALL_NCS): Likewise.
3710 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3712         * nss/getent.c (print_networks): Don't print comma between aliases.
3714 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3716         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3718         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3719         the hash table.
3720         * misc/Makefile (tests): Add bug-hsearch1.
3721         * misc/bug-hsearch1.c: New file.
3723 2009-01-22  Roland McGrath  <roland@redhat.com>
3725         * Makeconfig (%.v.i): Strip trailing # comments,
3726         not only whole-line comments.
3728 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3730         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3731         one parameter.  If non-NULL use it to initialize return value.
3732         (_dl_setup_pointer_guard): New function.
3733         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3734         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3735         * elf/rtld.c (security_init): Pass _dl_random to
3736         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3737         pointer_chk_guard.
3738         * elf/dl-sysdep.c (_dl_random): New variable.
3739         (_dl_sysdep_start): Handle AT_RANDOM.
3740         (_dl_show_auxv): Likewise.
3741         * elf/dl-support.c (_dl_random): New variable.
3742         (_dl_aux_init): Handle AT_RANDOM.
3743         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3744         to _dl_setup_stack_chk_guard.
3746         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3748 2009-01-10  Roland McGrath  <roland@redhat.com>
3750         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3752 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3754         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3756         [BZ #9706]
3757         * nss/nss_files/files-parse.c (strtou32): New function.
3758         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3759         across 32-bit and 64-bit platforms.
3760         (INT_FIELD_MAYBE_NULL): Likewise.
3762 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3764         [BZ #9720]
3765         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3766         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3767         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3768         Likewise.
3770 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3772         [BZ #697]
3773         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3774         being NULL also if there are no backreferences.
3775         * posix/rxspencer/tests: Add testcases.
3777 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3779         [BZ #9697]
3780         * posix/bug-regex17.c: Add testcases.
3781         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3782         handling.
3784 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3786         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3787         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3788         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3789         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3790         for elf subdir.
3791         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3792         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3793         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3794         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3795         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3796         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3798 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3800         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3801         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3802         re_string_skip_chars, re_string_reconstruct): Likewise.
3803         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3805 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3807         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3808         adjust the buffer alignment.
3810 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3812         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3813         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3814         net/route.h.
3816         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3817         flavor to description only when flavor is not NULL.
3819         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3820         mutex after SIGIO/SIGURG lookup loop.
3822 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3824         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3826 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3828         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3829         handling.
3831 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3833         * sysdeps/unix/sysv/linux/kernel-features.h
3834         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3836         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3837         if no output is written.
3839         * version.h: Bump to 2.10 development.
3841         * posix/getconf.c: Update copyright year.
3842         * nss/getent.c: Likewise.
3843         * iconv/iconvconfig.c: Likewise.
3844         * iconv/iconv_prog.c: Likewise.
3845         * elf/ldconfig.c: Likewise.
3846         * catgets/gencat.c: Likewise.
3847         * csu/version.c: Likewise.
3848         * elf/ldd.bash.in: Likewise.
3849         * elf/sprof.c (print_version): Likewise.
3850         * locale/programs/locale.c: Likewise.
3851         * locale/programs/localedef.c: Likewise.
3852         * nscd/nscd.c (print_version): Likewise.
3853         * debug/xtrace.sh: Likewise.
3854         * malloc/memusage.sh: Likewise.
3855         * malloc/mtrace.pl: Likewise.
3856         * debug/catchsegv.sh: Likewise.
3858 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3860         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3861         script.
3863 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3865         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3866         gethostbyname4_r function call succeeded, just leave the loop.
3868         [BZ #9694]
3869         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3870         very end.
3871         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3872         * wctype/Makefile (tests): Add bug-wctypeh.
3873         * wctype/bug-wctypeh.c: New file.
3875         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3876         LOCALDOMAIN is defined.
3877         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3879         * sysdeps/x86_64/bits/select.h: New file.
3881         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3883 2008-12-21  Bruno Haible  <bruno@clisp.org>
3885         [BZ #9677]
3886         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3887         if no output is written.
3889 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3891         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3892         libc internal symbol __dup2 to avoid access through the PLT.
3894 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3896         [BZ #6545]
3897         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3898         available only for __USE_GNU.
3900         * inet/Makefile (tests): Add tst-getni2.
3901         * inet/tst-getni2.c: New file.
3903         [BZ #7080]
3904         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3905         NULL when NI_NAMEREQD is set.
3906         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3907         * inet/Makefile (tests): Add tst-getni1.
3908         * inet/tst-getni1.c: New file.
3910 2008-12-03  Petr Baudis  <pasky@suse.cz>
3912         [BZ #7067]
3913         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3914         instead of prune_lock.
3915         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3916         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3918 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3920         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3921         use.
3923         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3924         handling.
3926         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3927         after reading name server list.
3929         [BZ #7058]
3930         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3931         handling for host name aliases.
3933 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3935         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3936         instead of doing things manually.
3938 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3940         * posix/regex_internal.h (build_wcs_upper_buffer):
3941         Return type is reg_error_t.
3943 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3945         * posix/globtest.sh: Use mktemp to create temporary file and
3946         directory.
3948         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3949         sets correctly.
3950         (__CPU_CLR_S): Likewise.
3951         (__CPU_ISSET_S): Likewise.
3953 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3954             Ulrich Drepper  <drepper@redhat.com>
3956         * scripts/firstversion.awk: Use custom comparison function to compare
3957         version numbers.
3958         * scripts/versions.awk: Use sort invocation which can handle
3959         multi-digit sub-version numbers.
3961 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3963         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3964         * locale/iso-639.def: Add Chhattisgarhi entry.
3966 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3968         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3969         ESRCH return value.
3970         (_nss_dns_gethostbyname4_r): Likewise.
3971         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3972         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3973         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3974         the no_data variable.
3976         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3977         information at the correct index.
3979         * socket/sys/socket.h: Declare accept4.
3980         * socket/accept4.c: New file.
3981         * sysdeps/unix/sysv/linux/accept4.c: New file.
3982         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3983         * socket/Makefile (routines): Add accept4.
3984         * socket/Versions: Export accept4 with version GLIBC_2.10.
3985         * socket/paccept.c: Removed.
3986         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3987         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3988         * Versions.def: Define GLIBC_2.10 for libc.
3989         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3991         * nscd/connections.c: Use accept4.
3993         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3995 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
3997         * resolv/res_send.c (send_dg): Create sockets with non-blocking
3998         flag already set.
4000         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4001         not exist.
4002         * stdlib/Makefile (tests): Add tst-unsetenv1.
4003         * stdlib/tst-unsetenv1.c: New file.
4005 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4007         * login/utmp_file.c (file_writable): New variable.
4008         (setutent_file): Don't try to open file for writing.
4009         (pututline_file): Before writing, make descriptor writable if
4010         necessary.
4012 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4014         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4015         to IPv4 or IPv6 if an interface has been found.
4017 2008-11-26  Roland McGrath  <roland@redhat.com>
4019         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4020         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4022         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4023         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4024         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4026         * elf/elf.h (NT_386_IOPERM): New macro.
4027         (NT_PPC_VSX): New macro.
4029 2008-11-25  Roland McGrath  <roland@redhat.com>
4031         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4032         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4033         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4034         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4035         Subdirectories moved to ports repository.
4036         * configure.in (base_machine): Remove alpha case.
4038 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4040         * sysdeps/mach/strerror_l.c: New file.
4042 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4044         [BZ #6411]
4045         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4046         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4047         magic numbers.
4048         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4049         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4050         (relax_fenv_state): Same as above.
4051         (FPSCR_29): Reserve bit in ISA 2.05.
4052         (FPSCR_NI): Provide define for compat.
4053         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4054         magic numbers.
4055         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4056         magic numbers.
4057         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4058         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4059         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4060         access to hwcap to account for hwcap size increase to uint64_t.
4061         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4062         Likewise.
4063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4064         (*setcontext): Likewise.
4065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4066         New file.
4067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4068         New file.
4069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4070         (*setcontext): dynamically select mtfsf insn based on
4071         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4072         increase to uint64_t.
4073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4074         (*swapcontext): dynamically select mtfsf insn based on
4075         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4076         increase to uint64_t.
4077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4078         New file.
4079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4080         New file.
4081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4082         (*setcontext): dynamically select mtfsf insn based on
4083         PPC_FEATURE_HAS_DFP.
4084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4085         (*swapcontext): dynamically select mtfsf insn based on
4086         PPC_FEATURE_HAS_DFP.
4088 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4090         * version.h: Bump for 2.9 release.
4091         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4093         [BZ #7029]
4094         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4095         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4096         all the rounding.
4098 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4100         [BZ #7009]
4101         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4102         unknown request types for now.
4104 2008-11-11  Roland McGrath  <roland@redhat.com>
4106         * sysdeps/x86_64/configure: New file.
4108         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4109         * configure: Regenerated.
4111 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4113         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4114         correct instruction to remove the stack frame.
4116 2008-11-03  Michael Matz  <matz@suse.de>
4118         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4119         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4121 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4123         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4124         Remove.
4126         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4127         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4128         of the thread variable instead of void *.
4129         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4130         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4131         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4132         __libc_tsd_define arguments.
4133         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4134         __libc_tsd_address arguments.  Remove union hack.
4135         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4136         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4137         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4138         Adjust __libc_tsd_{set,get} arguments.
4139         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4140         __libc_tsd_define arguments.
4141         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4142         arguments.
4143         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4144         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4145         (LOCALE): Adjust __libc_tsd_define arguments.
4146         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4147         arguments.
4148         (LOCALE): Adjust __libc_tsd_define arguments.
4149         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4150         arguments.
4151         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4152         arguments.
4154 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4156         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4157         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4159 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4161         [BZ #6966]
4162         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4164 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4165             Ulrich Drepper  <drepper@redhat.com>
4167         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4168         definition for GCC 3.1 and later.
4170 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4172         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4173         refetch dtv, as it might have changed.
4174         * elf/Makefile: Add rules to build and run tst-tls18.
4175         * elf/tst-tls18.c: New test.
4176         * elf/tst-tlsmod18a.c: New file.
4178 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4180         [BZ #6875]
4181         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4183 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4185         [BZ #6867]
4186         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4188         [BZ #6919]
4189         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4190         Fix length of copy operation.
4192 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4194         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4195         and fix its calling convention.
4197 2008-10-07  Andreas Schwab  <schwab@suse.de>
4199         [BZ #6942]
4200         * resolv/res_send.c (send_vc): Fix last change.
4201         (send_dg): Align here as well.
4203 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4205         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4206         return value in case rlimit is RLIM_INFINITY.
4208         [BZ #6947]
4209         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4210         for UL_SETFSIZE.
4211         * resource/Makefile (tests): Add bug-ulimit1.
4212         * resource/bug-ulimit1.c: New file.
4214         [BZ #6974]
4215         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4216         without dot.  Properly terminate the string with a null byte.
4217         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4219         [BZ #6980]
4220         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4221         negative sizees.
4222         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4223         negative __size.
4225         [BZ #6995]
4226         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4228 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4230         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4231         abort if there is no initgroups_dyn function.
4233         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4234         result if any of the queries really provided an answer.
4236 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4238         * po/lt.po: Update from translation team.
4240 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4242         * po/id.po: Update from translation team.
4244 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4246         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4247         Fix tests for existence of second reply.
4249 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4251         * po/id.po: New file.
4252         Contributed by the Indonesian translation team.
4254 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4256         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4257         initialization.
4259 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4261         * elf/Makefile: Add rules to build and run tst-tls17.
4262         * elf/tst-tls17.c: New test.
4263         * elf/tst-tlsmod17a.c: New file.
4264         * elf/tst-tlsmod17b.c: Likewise.
4266 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4268         * stdlib/divmod_1.c: Use correct type for dummy variable.
4269         * stdlib/mod_1.c: Likewise.
4271 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4273         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4275 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4277         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4278         __nonnull order for C++.
4279         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4280         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4282 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4284         * stdlib/longlong.h: Update from GCC.
4286 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4287             David S. Miller  <davem@davemloft.net>
4289         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4290         make sure any registers used with 64-bit 'branch-on-register'
4291         instructions have their top 32-bits clear.
4292         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4293         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4295 2008-09-18  Andreas Schwab  <schwab@suse.de>
4297         [BZ #6942]
4298         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4299         Properly handle partial reads.
4301 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4303         * elf/elf.h (STO_MIPS_PLT): New.
4304         (R_MIPS_COPY): New.
4305         (R_MIPS_JUMP_SLOT): New.
4306         (R_MIPS_NUM): Redefine to 128.
4307         (DT_MIPS_PLTGOT): New.
4308         (DT_MIPS_RWPLT): New.
4309         (DT_MIPS_NUM): Redefine to 0x35.
4311 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4313         * timezone/africa: Update from tzdata2008f.
4314         * timezone/asia: Likewise.
4315         * timezone/australasia: Likewise.
4316         * timezone/europe: Likewise.
4317         * timezone/leapseconds: Likewise.
4318         * timezone/northamerica: Likewise.
4319         * timezone/southamerica: Likewise.
4320         * timezone/zone.tab: Likewise.
4322 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4324         * nscd/connections.c: Disable use of paccept for now.
4326 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4328         * socket/Versions: Remove paccept export for GLIBC_2.9.
4329         * socket/Makefile (routines): Remove paccept.
4330         * socket/sys/socket.h: Remove paccept declaration.
4332         * po/sv.po: Update from translation team.
4334 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4336         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4337         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4339 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4341         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4342         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4344 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4346         * sunrpc/rpc/svc.h: Declare svcfd_create.
4347         Patch by Michael Solberg <msolberg@redhat.com>.
4349 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4350             Ulrich Drepper  <drepper@redhat.com>
4352         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4353         _int_valloc fails.
4354         (public_pVALLOc): Likewise.
4356 2008-09-02  Andreas Jaeger  <aj@suse.de>
4358         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4359         commit.
4361 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4363         [BZ #6860]
4364         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4366 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4368         * Makefile (check-data): Check data directory in add-ons.
4369         * elf/Makefile (check-data): Likewise.
4371 2008-08-18  Roland McGrath  <roland@redhat.com>
4373         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4374         * configure: Regenerated.
4375         * config.make.in (cflags-cpu): New substituted variable.
4376         (with-cpu): Variable removed.
4377         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4379 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4381         [BZ #6845]
4382         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4383         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4384         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4385         redundant.  Functions which call floating point assembler operations
4386         should go into a sysdeps powerpc/fpu directory.
4388 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4390         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4391         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4393 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4395         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4397         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4398         change related to AT_EXECFN.  We cannot use that string.
4399         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4400         _dl_execfn member.
4401         * elf/dl-support.c: Remove _dl_execfn variable.
4402         (_dl_aux_init): Remove handling of AT_EXECFN.
4403         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4404         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4406 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4408         [BZ #6544]
4409         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4410         byte gets added to writes and seeks from the end use the length of
4411         the buffer and not the currently terminating NUL byte.
4413         [BZ #6634]
4414         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4415         Set to true if locking failed.
4416         (getutid_r_file): Adjust caller.
4417         (pututline_file): Likewise.  Return NULL in this case.
4418         Patch mostly by halesh.s@gmail.com.
4420 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4422         [BZ #6589]
4423         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4424         Define.
4425         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4427 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4429         [BZ #6839]
4430         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4431         macro since it is now available in elf/dynamic-link.h.
4433 2008-08-12  Roland McGrath  <roland@frob.com>
4435         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4436         in case used outside of libc.
4437         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4439 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4441         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4442         directly instead of going through dn_comp.
4444 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4446         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4447         Fix asm constraints.
4449 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4451         [BZ #6790]
4452         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4453         (IPV6_PMTUDISC_PROBE): Likewise.
4455 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4457         [BZ #6791]
4458         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4460 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4461             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4463         [BZ #6817]
4464         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4465         Added the members 'vsx' and 'arch_2_06'.
4466         (_dl_powerpc_platforms): Add the member 'power7'.
4467         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4468         to reflect the changes required by VSX and ISA 2.06.
4469         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4470         'power7'.
4471         Defined PPC_PLATFORM_POWER7.
4472         (_dl_string_platform): Add support for POWER7.
4473         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4474         capability and ISA 2.06.
4476 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4478         [BZ #6824]
4479         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4480         macro to detect use of 128 bit long double.
4481         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4483 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4485         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4487         [BZ #5794]
4488         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4489         parameters.
4490         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4491         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4493 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4495         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4496         guaranteed to be large enough to read inotify event.  Ignore
4497         EAGAIN error.  Better error message.  Add branch predicition.
4498         (main_loop_epoll): Likewise.
4500 2008-08-02  Roland McGrath  <roland@frob.com>
4502         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4503         Add memory clobbers.
4505 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4507         * manual/arith.texi: Avoid @strong{Note:}.
4508         * manual/creature.texi: Likewise.
4509         * manual/filesys.texi: Likewise.
4510         * manual/math.texi: Likewise.
4511         * manual/memory.texi: Likewise.
4512         * manual/resource.texi: Likewise.
4513         * manual/syslog.texi: Likewise.
4514         * manual/time.texi: Likewise.
4516         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4517         to prevent warning.
4519 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4521         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4522         new epoll_create1 interface.
4523         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4524         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4525         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4527         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4528         (NS_GET32): Likewise.
4530         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4531         syscalls, too.
4533         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4534         use the AT_EXECFN value if it is no absolute path.
4535         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4536         __ASSUME_AT_EXECFN.
4538         * Versions.def: Add GLIBC_2.9 to libresolv.
4539         * include/resolv.h: Remove hidden proto declarations for __ns_*
4540         functions.  Add them for __dn_count_labels and __p_secstodate.
4541         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4542         Define ns_msg_getflags macro here.
4543         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4544         and __p_secstodate.
4545         * resolv/Versions: Export functions from <arpa/nameser.h> from
4546         libresolv in version GLIBC_2.9.
4547         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4548         hidden definitions.
4549         * resolv/ns_netint.c: Likewise.
4550         * resolv/ns_parse.c: Likewise.
4551         * resolv/ns_print.c: Likewise.
4552         * resolv/ns_samedomain.c: Likewise.
4553         * resolv/ns_ttl.c: Likewise.
4554         * resolv/arpa/nameser_compat.h: Likewise.
4555         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4556         function calls.
4557         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4558         instead of ns_get16.
4559         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4560         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4561         (gaih_getanswer_slice): Likewise.
4562         * resolv/Makefile (libresolv-routines): Add ns_date.
4563         * resolv/ns_date.c: New file.
4565         * elf/Makefile (check-localplt.out): Also check libresolv and
4566         libcrypt.
4568 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4570         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4571         __ASSUME_O_CLOEXEC.
4573 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4575         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4576         buffer passed to NSS functions.
4578         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4580         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4581         Define.
4583         * misc/syslog.c (openlog_internal): Fix compile problem.
4585 2008-07-28  Roland McGrath  <roland@redhat.com>
4587         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4589 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4591         * io/ftw.c (add_object): Remove inline to avoid warning.
4593         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4595         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4596         Use it instead of locally defined resplen2 variable.
4597         (res_nsend): Adjust for __libc_res_nsend interface change.
4598         (send_vc): Initialize *resplen2 if necessary.  Read length of
4599         package into an appropriately aligned variable.  Store converted length
4600         in new variable and use it appropriately.
4601         Add branch prediction help.
4602         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4603         and pass it on to __libc_res_nsend.  Adjust all callers.
4604         (__libc_res_nsearch): Likewise.
4605         (__libc_res_nqeurydomain): Likewise.
4606         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4607         change.
4608         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4609         Define resplen2 variable and pass it to __libc_res_nsearch and then
4610         to gaih_getanswer.
4611         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4612         Add branch prediction.
4613         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4614         (gaih_getanswer): Don't decode second slice if first one failed due
4615         to a too small buffer.  Don't let not found status of second
4616         decoder shadow results of the first.
4617         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4618         and __libc_res_nquery interface changes
4619         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4620         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4621         __libc_res_nsearch, and __libc_res_nsend.
4622         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4623         change.
4624         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4625         __libc_res_nsearch interface changes.
4627 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4629         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4631         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4632         file descriptors with close-on-exec set.
4633         (exec_comm_child): Fix the case where the write end of the pipe is
4634         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4636         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4637         * io/pipe2.c: Likewise.
4638         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4639         instead of __ASSUME_PACCEPT.
4640         * include/unistd.h: Declare __have_pipe2.
4641         * libio/iopopen.c: Implement "e" flag.
4642         * libio/Makefile (tests): Add tst-popen1.
4643         * libio/tst-popen1.c: New file.
4645         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4646         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4648 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4650         [BZ #6771]
4651         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4652         success call of _IO_SEEKOFF or calls which failed because the
4653         descriptor is for a pipe.
4655         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4656         magic number.
4658         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4660         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4661         F_SETFD use if we know fopen set the flag.
4663         * login/utmp_file.c (setutent_file): Minor optimization in case
4664         O_CLOEXEC is available.
4666 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4668         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4669         * elf/Makefile: Use pie-ccflag variable.
4670         * nscd/Makefile: Likewise.
4671         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4673 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4675         [BZ #6724]
4676         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4677         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4678         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4679         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4680         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4681         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4682         utmp32, utmpx32 and login32.
4683         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4684         versions of struct utmp functions to libc and libutil.
4685         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4686         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4687         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4688         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4689         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4690         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4691         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4692         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4693         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4694         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4695         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4696         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4697         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4698         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4699         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4700         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4701         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4702         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4703         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4704         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4705         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4706         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4708 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4710         * scripts/gen-as-const.awk: Generate more widely usable code by
4711         using 64-bit arithmetic.
4713         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4714         the same treatment as narrow output code in last patch.
4716         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4718         [BZ #6763]
4719         * elf/dl-load.c (local_strdup): Remove inline.
4720         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4721         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4722         part of the object.
4724         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4726 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4728         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4729         the new syscalls, too.
4731         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4732         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4734         [BZ #6698]
4735         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4736         parameter for end of buffer.  If temporary copy is too large use
4737         malloc.
4738         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4739         interface change.
4740         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4741         string rewrite when allocating buffer.
4743         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4744         syscalls, too.
4746         * nscd/connections.c (nscd_init): Clean up fcntl call.
4748         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4749         SOCK_NONBLOCK if possible.
4751         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4752         SOCK_CLOEXEC if available.
4754         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4755         __libc_clntudp_bufcreate_internal.
4756         * include/sys/socket.h: Declare __have_sock_cloexec.
4757         * socket/Makefile (aux): Add have_sock_cloexec.
4758         * socket/have_sock_cloexec.c: New file.
4759         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4760         __libc_clntudp_bufcreate.
4761         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4762         which takes an additional parameter.  Create socket with non-blocking
4763         mode and close-on-exec flag set, if wanted.
4764         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4765         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4766         instead of clntudp_create.  The socket has already the close-on-exec
4767         flag set if SOCK_CLOEXEC is defined.
4769 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4771         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4772         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4773         appropriate.
4774         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4775         non-blocking mode by using socket, paccept, and inotify_init1.
4777         * Versions.def (glibc): Add GLIBC_2.9.
4778         * io/Makefile (routines): Add dup3 and pipe2.
4779         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4780         * io/dup3.c: New file.
4781         * io/pipe2.c: New file.
4782         * posix/unistd.h: Declare dup3 and pipe2.
4783         * socket/Makefile (routines): Add paccept.
4784         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4785         * socket/paccept.c: New file.
4786         * socket/sys/socket.h: Declare paccept.
4787         * sysdeps/unix/syscalls.list: Add entry for dup3.
4788         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4789         epoll_create2 and inotify_init1.
4790         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4791         * sysdeps/unix/sysv/linux/paccept.c: New file.
4792         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4793         possible.
4794         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4795         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4796         inotify_init1, and pipe2 entries.
4797         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4798         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4799         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4800         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4801         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4802         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4803         SOCK_NONBLOCK.
4804         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4805         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4806         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4807         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4808         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4809         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4810         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4811         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4812         EPOLL_NONBLOCK.  Declare epoll_create2.
4813         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4814         EFD_NONBLOCK.
4815         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4816         IN_NONBLOCK.  Declare inotify_init1.
4817         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4818         SFD_NONBLOCK.
4819         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4820         TFD_NONBLOCK.
4822         * elf/elf.h: Define AT_EXECFN.
4823         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4824         LD_ORIGIN_PATH.
4825         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4826         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4827         if __ASSUME_AT_EXECFN is defined.
4828         (_dl_aux_init): Handle AT_EXECFN.
4829         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4830         for 2.6.27 and up.
4831         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4832         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4833         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4834         _dl_execfn if available and avoid compatibility code if
4835         __ASSUME_AT_EXECFN is defined.
4837         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4838         _dl_discover_osversion only for older kernels.
4840 2008-07-22  Roland McGrath  <roland@frob.com>
4842         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4844 2008-07-21  Roland McGrath  <roland@frob.com>
4846         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4847         returned too much data out of line.
4849 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4851         * locale/setlocale.c (setname): Remove inline to avoid compiler
4852         warning.
4854         [BZ #6712]
4855         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4857 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4859         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4860         doesn't manage to write anything, fail.
4862         * malloc/hooks.c (__malloc_check_init): Remove printf.
4864 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4866         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4868 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4870         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4871         from inotify.
4872         (main_loop_epoll): Likewise.
4874 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4876         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4878         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4879         if DEBUG is defined.
4881         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4882         query.  Adjust buffer size computation for padding.
4884 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4886         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4887         * stdio-common/tst-setvbuf1.c: New file.
4888         * stdio-common/tst-setvbuf1.expect: New file.
4890         [BZ #6719]
4891         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4892         when selecting fully-buffered stream.
4893         Patch by Wang Xin <wxinee@gmail.com>.
4895 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4897         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4898         (__open_2): New function.
4899         (__open64_2): New alias to __open_2.
4900         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4901         (__openat_2): New function.
4902         (__openat64_2): New alias to __openat_2.
4904 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4906         [BZ #6723]
4907         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4909 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4911         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4912         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4913         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4914         __hurd_dfail.
4915         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4916         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4917         * sysdeps/mach/hurd/send.c (__send): Likewise.
4918         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4919         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4921 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4923         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4924         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4925         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4926         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4927         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4928         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4930 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4932         [BZ #6657]
4933         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4934         of %EY.
4935         Patch by Petr Baudis.
4937 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4939         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4940         Patch by Peter Jones <pjones@redhat.com>.
4942 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4944         [BZ #6654]
4945         * stdlib/canonicalize.c (__realpath): readlink can write too much
4946         into the buffer on platforms without PATH_MAX.
4948 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4950         [BZ #6653]
4951         * posix/tst-regex.c (main): Rename to...
4952         (do_test): ... this. Remove cmdline option processing.
4953         (TIMEOUT): Define.
4954         (TEST_FUNCTION): Define.
4955         (CMDLINE_OPTIONS): Define.
4957 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4959         [BZ #5210]
4960         * configure.in: Add -Werror to -fstack-protector test to catch
4961         unsupported architectures.
4962         Patch by Gilles Esponasse <g.esp@free.fr>.
4964 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4966         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4967         getcontext returns ENOSYS.
4969 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4971         * nscd/connections.c (main_loop_poll): Fix test for read error.
4972         (main_loop_epoll): Likewise.
4974 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4976         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4977         better place so it is not called when nscd is used.
4979         * nscd/connections.c: Also recognize and handle changes to the
4980         resolver configuration file.
4982 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4984         * time/strftime.c: Pass reference to tzset_called around to handle
4985         recursive calls.
4987         [BZ #6612]
4988         * time/strftime.c (__strftime_internal): Call tzset() only
4989         when printing timezone-dependent values.
4990         Based on a patch by Petr Baudis <pasky@suse.cz>.
4992         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4993         unconditionally use second gaih_getanswer_slice result.
4995         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4996         (getaddrinfo): RES must always be non-NULL.
4998 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5000         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5001         cr[34] registers.
5002         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5003         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5004         Likewise.
5005         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5006         register.
5008 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5010         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5011         fields.
5012         * nscd/connections.c (inotify_fd): New variable.
5013         (nscd_init): Try to open an inotify descriptor.
5014         If successful, watch files for databases using inotify instead of
5015         having prune threads stat the files.
5016         (nscd_run_prune): Recognize clear_cache flag being set and call
5017         prune_cache appropriately.
5018         (main_loop_poll): Add inotify descriptor to wait set and handle the
5019         reported changes.
5020         (main_loop_epoll): Likewise.
5021         * nscd/cache.c (prune_cache): Don't stat files for databases if
5022         inotify is used.
5023         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5024         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5026         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5027         fixed-size portion of the record.
5028         * nscd/servicescache.c (cache_addserv): Likewise.
5029         * nscd/pwdcache.c (cache_addpw): Likewise.
5030         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5032 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5034         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5035         out we don't use uninitialized memory.
5037         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5038         the client.
5040 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5042         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5043         ignore T_DNAME messages.
5044         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5046 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5048         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5049         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5051 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5053         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5054         instead of portstr to nscd_getserv_r.  Patch by
5055         Roman Kagan <rkagan@mail.ru>.
5057 2008-05-26  Jim Meyering  <meyering@redhat.com>
5059         Remove more useless "if" tests before "free".
5060         * include/inline-hashtab.h (htab_delete): Likewise.
5061         * libio/freopen.c (freopen): Likewise.
5062         * libio/freopen64.c (freopen64): Likewise.
5063         * locale/programs/ld-collate.c (collate_read): Likewise.
5064         * misc/fstab.c (libc_freeres_fn): Likewise.
5065         * posix/glob.c (globfree): Likewise.
5067 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5069         * string/Makefile (strop-tests): Add memmem.
5070         * string/test-memmem.c: New file.
5071         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5072         (test_init): Size buf1 according to BUF1PAGES.
5074 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5076         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5077         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5078         (CFLAGS-scanf17.c): New.
5079         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5080         * stdio-common/scanf15.c (main): Likewise.
5081         * stdio-common/scanf16.c: New file.
5082         * stdio-common/scanf17.c: New file.
5084 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5086         * resolv/res_send.c (send_dg): If we already have one of two
5087         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5088         use the one answer insted of failing.
5090 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5092         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5093         being executed on PowerPC as the expected result exceeds IBM
5094         long double 128 __LDBL_MAX__.
5096 2008-05-21  Roland McGrath  <roland@redhat.com>
5098         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5100         * Makefile (check-data): Use $(abi-name) before other guesses.
5101         Look in $(add-ons) dirs before scripts/data/.
5102         * elf/Makefile (check-data): Likewise.
5104         * scripts/soversions.awk: Grok ABI line.
5105         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5106         Emit definition for abi-name variable.
5108 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5110         * string/endian.h: Define new fixed-size hto* and *toh macros only
5111         if [__USE_BSD].
5113         * iconvdata/Depend: Add localedata.
5115 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5117         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5119 2008-05-08  David S. Miller  <davem@davemloft.net>
5121         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5122         HIDDEN_JUMPTARGET.
5123         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5124         (__SYSCALL_CLOBBERS): Remove %g* registers.
5125         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5126         (__SYSCALL_CLOBBERS): Likewise.
5127         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5128         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5130 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5132         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5133         (CALL_ERRNO_LOCATION): Define.
5134         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5135         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5136         (CALL_ERRNO_LOCATION): Define.
5137         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5138         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5139         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5141 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5143         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5144         variable.
5146 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5148         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5149         (FIRST_FRAME_POINTER): Define.
5151 2008-05-09  David S. Miller  <davem@davemloft.net>
5153         * sysdeps/sparc/sparc64/backtrace.c: New file.
5155 2008-05-14  David S. Miller  <davem@davemloft.net>
5157         * sysdeps/sparc/machine-gmon.h: New file.
5158         * sysdeps/sparc/sparc-mcount.S: Likewise.
5159         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5160         sysdep_routines in gmon directory.
5162 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5164         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5166 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5168         * resolv/res_query.c (__libc_res_nquery): In case one of two
5169         answer was too short don't try to read that answer's header.
5171         * resolv/res_send.c (send_dg): In case of timeout and there are
5172         two queries and one has been answered, return value indicating
5173         success.
5175 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5177         * nscd/cache.c (cache_add): Take additional parameter specifying
5178         whether this is in response of a cache refill.  Check alignment
5179         of package data.  Revamp waking of pruning thread.
5180         (prune_cache): Small optimization.
5181         * nscd/nscd.h: Adjust cache_add prototypes.
5182         * nscd/aicache.c: Adjust cache_add calls.
5183         * nscd/grpcache.c: Likewise.
5184         * nscd/hstcache.c: Likewise.
5185         * nscd/initgrcache.c: Likewise.
5186         * nscd/pwdcache.c: Likewise.
5187         * nscd/servicescache.c: Likewise.
5188         * nscd/connections.c (restart): Really disable cache use before
5189         exec attempt.  If it fails, reenable cache.
5190         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5191         time to max to be able to notice concurrent cache additions.  Unlock
5192         prune_lock while performing gc.  Afterwards compute wakeup time with
5193         current wakeup_time value in mind.
5195 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5197         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5199         * nscd/mem.c (gc): Correctly determine highest used array element
5200         in mark.
5202         * nscd/mem.c (markrange): Add assert to check entries are all
5203         aligned.  Small cleanup in bitmap use.
5205         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5206         blockoff of type nscd_ssize_t.
5207         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5208         (mempoll_alloc): Record block offset and not address.
5210         * nscd/mem.c (gc): Fix test for stack overuse.
5212         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5213         more asserts.
5215         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5216         entry is available, believe it.
5218         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5219         no answers return NSS_STATUS_NOTFOUND.
5220         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5221         buffer does not have any content.
5223 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5225         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5227         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5228         lookup, don't assign canon unconditionally.
5230 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5232         * string/Makefile (distribute): Add str-two-way.h.
5234 2008-03-29  Eric Blake  <ebb9@byu.net>
5236         Rewrite string searches to O(n) rather than O(n^2).
5237         * string/str-two-way.h: New file.  For linear fixed-allocation
5238         string searching.
5239         * string/memmem.c: New implementation.
5240         * string/strstr.c: New implementation.
5241         * string/strcasestr.c: New implementation.
5243 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5245         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5246         opr.ctx_type.
5247         (calc_first): Initialize constraint field.
5248         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5249         Use search_duplicated_node to avoid loops.  Fix grammar.
5250         (duplicate_node): Merge constraint field for all node types.
5251         (calc_eclosure_iter): Look at constraint field for all node types.
5252         * posix/regex_internal.c (create_cd_newstate): Don't look at
5253         create_cd_newstate.
5255 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5257         [BZ #6428]
5258         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5260         [BZ #6442]
5261         * string/endian.h: Add macros for fixed-size endian conversion.
5262         * bits/byteswap.h: Allow inclusion from <endian.h>.
5263         * sysdeps/i386/bits/byteswap.h: Likewise.
5264         * sysdeps/ia64/bits/byteswap.h: Likewise.
5265         * sysdeps/s390/bits/byteswap.h: Likewise.
5266         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5267         * string/Makefile (tests): Add tst-endian.
5268         * string/tst-endian.c: New file.
5270         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5271         Patch by Reuben Thomas.
5273 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5275         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5277 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5279         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5281         [BZ #6461]
5282         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5283         Add missing braces.
5284         (BODY for __gconv_transform_internal_ascii): Likewise.
5286         [BZ #6472]
5287         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5288         to be treated like link-local addresses.
5289         (match_prefix): Don't treat IPv4 loopback address special when
5290         converting to v4 mapped addressed.
5292         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5293         if necessary.
5294         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5295         * posix/tst-rfc3484-2.c: Likewise.
5296         * posix/tst-rfc3484-3.c: Likewise.
5298         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5299         and SCTP.
5301         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5303         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5305         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5307 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5309         * po/lt.po: New file.  From Lituanian translation team.
5311 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5313         Introduce TLS descriptors for i386 and x86_64.
5314         * include/inline-hashtab.h: New file, copied from 2005's
5315         libiberty, with fix for memory leak imported afterwards by
5316         Glauber de Oliveira Costa.
5317         * elf/tlsdeschtab.h: New file.
5318         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5319         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5320         (CHECK_STATIC_TLS): Move to...
5321         * elf/dynamic-link.h: ... this file.
5322         (TRY_STATIC_TLS): New macro.
5323         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5324         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5325         R_386_TLS_DESC): Define.
5326         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5327         binutils.
5328         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5329         R_X86_64_TLSDESC): Define.
5330         (R_386_NUM, R_X86_64_NUM): Adjust.
5331         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5332         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5333         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5334         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5335         release tlsdesc_table.
5336         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5337         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5338         (elf_machine_rel): Handle R_386_TLS_DESC.
5339         (elf_machine_rela): Likewise.
5340         (elf_machine_lazy_rel): Likewise.
5341         (elf_machine_lazy_rela): Likewise.
5342         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5343         * sysdeps/i386/dl-tlsdesc.S: New file.
5344         * sysdeps/i386/dl-tlsdesc.h: New file.
5345         * sysdeps/i386/tlsdesc.c: New file.
5346         * sysdeps/i386/tlsdesc.sym: New file.
5347         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5348         tlsdesc_table.
5349         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5350         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5351         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5352         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5353         release tlsdesc_table.
5354         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5355         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5356         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5357         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5358         (elf_machine_rela): Likewise.
5359         (elf_machine_lazy_rel): Likewise.
5360         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5361         (__tls_get_addr): Do not declare for non-shared compiles.
5362         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5363         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5364         * sysdeps/x86_64/tlsdesc.c: New file.
5365         * sysdeps/x86_64/tlsdesc.sym: New file.
5366         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5367         tlsdesc_table for both 32- and 64-bit structs.
5369 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5371         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5372         its own function.  This reduces the frame setup costs and more.
5374 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5376         [BZ #3406]
5377         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5378         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5380 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5382         * io/openat.c (__openat_2): Also pass fd to __openat.
5383         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5384         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5386         * string/tester.c (test_memcmp): Add a few more tests.
5387         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5389 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5391         * nscd/cache.c (cache_add): Before returning with failure and this
5392         is the first use of the record, mark it as unusable.
5393         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5394         reporting a failure.
5395         * nscd/grpcache.c: Likewise
5396         * nscd/hstcache.c: Likewise.
5397         * nscd/initgrcache.c: Likewise.
5398         * nscd/pwdcache.c: Likewise.
5399         * nscd/servicescache.c: Likewise.
5401 2008-05-10  Roland McGrath  <roland@redhat.com>
5403         [BZ #6505]
5404         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5406 2008-05-08  David S. Miller  <davem@davemloft.net>
5408         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5410         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5411         (__ieee754_y0l): Likewise.
5412         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5413         (__ieee754_y1l): Likewise.
5414         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5415         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5416         frexpl and ldexpl.  math_private.h provides them and the latter
5417         is not even used.
5418         (__log1pl): Use __frexpl.
5420 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5422         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5423         prototypes.
5424         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5425         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5426         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5427         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5428         af==AF_UNSPEC.
5429         (_nss_nis_gethostbyname4_r): New function.
5430         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5431         Change to also handle af==AF_UNSPEC.
5432         (get_tablename): New function.  Use it to avoid duplication.
5433         (_nss_nisplus_gethostbyname4_r): New function.
5434         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5435         available.
5436         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5437         * nss/nss.h: Define struct gaih_addrtuple.
5438         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5439         af==AF_UNSPEC.
5440         (_nss_files_gethostbyname4_r): New function.
5441         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5442         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5443         calls.
5444         * resolv/res_query.c (__libc_res_nquery): Take two additional
5445         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5446         look up IPv4 and IPv6.
5447         Change all callers.
5448         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5449         for an additional query and answer buffer.  Pass to send_vc and
5450         send_dg.
5451         (send_vc): Send possibly two requests and receive two answers.
5452         (send_dg): Likewise.
5453         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5454         __libc_res_nquery.
5455         (_nss_dns_gethostbyname4_r): New function.
5456         (gaih_getanswer_slice): Likewise.
5457         (gaih_getanswer): Likewise.
5458         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5459         __libc_res_nquery call.
5460         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5461         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5462         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5463         available.
5465 2008-05-05  David S. Miller  <davem@davemloft.net>
5467         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5468         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5470 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5472         Fix termios bit macros.
5473         Move *DLY definitions where they belong, in termios.h.
5474         Add *[0-3] definitions.
5475         Fixes confusion between VT and FF.
5476         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5477         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5478         are already defined to avoid collision with termios.h.
5479         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5480         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5481         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5482         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5483         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5484         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5485         VTDLY, VT0, VT1): New macros.
5486         [__USE_GNU] (OLCUC): Change value of macro.
5487         [__USE_XOPEN] (OFILL): New macro.
5488         [__USE_BSD] (CRTSCTS): Change value.
5489         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5490         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5491         (B7200, B14400, B28800, B76800): New macros.
5493 2008-05-01  David S. Miller  <davem@davemloft.net>
5495         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5496         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5497         (gen-as-const-headers): Add it.
5498         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5499         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5500         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5501         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5503         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5504         six system call parameters.
5505         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5507 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5509         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5510         RUSAGE_LWP.
5511         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5512         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5514 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5516         * stdlib/tst-setcontext.c: Include unistd.h.
5518 2008-04-25  David S. Miller  <davem@davemloft.net>
5520         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5521         Pass "union semun" properly in to sys_ipc, it must be passed
5522         by value, not by reference.
5524 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5526         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5527         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5528         * nscd/connections.c (mem_in_flight): Likewise.
5530         * nscd/nscd.h (dbs): Make hidden.
5532         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5533         Avoid returning -1, return 0 instead.
5535 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5537         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5539 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5541         [BZ #5209]
5542         * sysdeps/unix/sysv/linux/times.c: New file.
5544         [BZ #5381]
5545         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5546         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5547         prototype.
5548         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5549         appropriate mem_in_flight element.
5550         (gc): Take allocations which have not yet been committed to the
5551         database into account.
5552         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5553         Reset mem_in_flight before returning.
5554         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5555         cue it up in mem_in_flight_list.
5556         * nscd/aicache.c: Adjust mempool_alloc call.
5557         * nscd/grpcache.c: Likewise.
5558         * nscd/hstcache.c: Likewise.
5559         * nscd/initgrcache.c: Likewise.
5560         * nscd/pwdcache.c: Likewise.
5561         * nscd/servicescache.c: Likewise.
5562         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5563         of -fpie.
5565         * nscd/connections.c (handle_request): Provide better error message
5566         in case SELinux forbids the service.
5568         * version.h (VERSION): Bump to 2.8.90.
5570 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5572         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5574 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5576         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5577         Also use for 32-bit.
5578         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5579         __nextafter instead of nextafter to avoid local PLT.
5580         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5581         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5583         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5585         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5586         __fe_nomask_env.
5587         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5588         <fenv_libc.h> instead of <fenv.h>.
5589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5592         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5594         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5595         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5596         function from fegetexcept and make old name weak alias.
5597         * include/fenv.h: Declare __fegetexcept.
5598         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5599         fegetexcept.
5600         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5601         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5602         to fetestexcept.
5603         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5604         instead of frexpl to avoid local PLT.
5605         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5606         ilogbl to avoid local PLT.
5607         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5608         instead of ldexpl to avoid local PLT.
5609         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5610         __roundl not roundl to avoid local PLT.
5611         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5612         local PLTs.  Use __sincosl instead of separate sinl and cosl
5613         calls.
5614         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5616         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5617         version for ppc64 to 2.4.21 since without it makecontext will fail.
5619         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5620         to the ABI in use.
5621         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5622         .__tls_get_addr.
5623         [__powerpc64__] (TLS_GD): Likewise.
5625 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5627         [BZ #4997]
5628         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5629         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5630         mantissa.
5631         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5632         Likewise.  Also account for when x is an odd number between 2^52
5633         and 2^53-1.
5634         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5635         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5636         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5637         detect aforementioned erroneous conditions.
5639 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5641         * configure.in: Check for -fno-section-anchors in addition to
5642         -fno-toplevel-reorder.
5644 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5646         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5648         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5649         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5650         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5651         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5652         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5653         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5655 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5657         [BZ #5443]
5658         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5659         * time/alt_digit.c: Likewise.
5660         * wcsmbs/wcsmbsload.c: Likewise.
5662 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5664         * version.h (VERSION): Bump to 2.8.
5666         * timzeone/asia: Update from tzdata2008b.
5667         * timezone/backward: Likewise.
5668         * timezone/europe: Likewise.
5669         * timezone/northamerica: Likewise.
5670         * timezone/southamerica: Likewise.
5671         * timezone/iso3166.tab: Likewise.
5672         * timezone/leapseconds: Likewise.
5673         * timezone/zone.tab: Likewise.
5674         * timezone/private.h: Update from tzcode2008a.
5675         * timezone/zdump.c: Likewise.
5676         * timezone/zic.c: Likewise.
5678 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5680         [BZ #5741]
5681         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5682         Define additonal Data Cache Block instruction macros.
5683         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5684         Replace dcbst with dcbf and sync with sync/isync.
5686 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5688         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5689         Always set ELF_RTYPE_CLASS_PLT.
5690         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5692 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5694         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5695         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5696         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5697         For ISA 2.01 and later replace mftb with mfspr 268.
5699 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5701         [BZ #5768]
5702         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5703         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5705 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5707         [BZ #5768]
5708         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5709         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5710         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5711         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5713 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5715         * stdlib/tst-makecontext.c (othervar): New variable.
5716         (cf): Test sign extending the argument to long.
5718 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5720         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5721         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5722         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5723         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5724         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5725         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5726         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5728 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5730         * elf/Makefile (tests): Substitute tests-vis-yes here.
5731         (tests-vis-yes): Delete.
5732         (modules-name, modules-vis-yes): Similarly.
5734 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5736         [BZ #4407]
5737         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5738         Preserve sign in signgamp when x is zero.
5740 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5742         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5743         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5744         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5745         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5746         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5747         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5749 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5751         [BZ #4314]
5752         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5753         buffers.
5755         [BZ #5209]
5756         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5757         a reserved error value.
5759         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5760         value to check for correct sign extension.
5762         [BZ #5436]
5763         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5764         Copy 64-bit parameter values even though this is not required in
5765         the standard.
5767         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5768         PC save.
5770 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5772         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5773         PC save.
5775 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5777         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5779 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5781         [BZ #5998]
5782         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5783         in line-buffered stream failed.
5784         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5786 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5788         [BZ #6024]
5789         * scripts/abi-versions.awk: If the version specified by
5790         --enable-oldest-abi is older than the first version for this
5791         architecture, use the default version.
5793         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5794         as well when ignoring the whole category.
5796 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5798         [BZ #6042]
5799         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5800         ETHERTYPE_* definitions.
5801         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5803 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5805         * stdlib/mbtowc.c (__no_r_state): Remove.
5806         (mbtowc): New static state variable.  Use it instead of
5807         __no_r_state.
5808         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5809         (__wctomb_state): New hidden variable.
5810         (wctomb): Use __wctomb_state instead of __no_r_state.
5811         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5812         (__wctomb_state): New extern decl.
5813         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5815 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5817         [BZ #5475]
5818         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5820 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5822         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5824 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5826         * po/nl.po: Update from translation team.
5828 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5830         [BZ #6007]
5831         * string/strfry.c: Handle empty strings again.
5833 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5835         [BZ #5443]
5836         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5837         before looking for translation.
5838         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5839         * locale/freelocale.c: Likewise.
5840         * locale/newlocale.c: Likewise.
5841         * locale/setlocale.c: Likewise.
5842         Based partially on a patch by ryo@np.css.fujitsu.com.
5844 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5846         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5847         acquiring wrlock.  Do conv_tab allocation while holding lock.
5848         * intl/Makefile: Add rules to build and run tst-gettext6.
5849         * intl/tst-gettext6.c: New test.
5850         * intl/tst-gettext6.sh: New file.
5852 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5854         * po/nl.po: Update from translation team.
5856         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5857         provided through st_blksize, try the default size before giving up.
5859 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5861         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5863         [BZ #5939]
5864         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5866         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5867         error message.  POSIX today does not require the messages to be in
5868         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5870         [BZ #5979]
5871         * sunrpc/auth_unix.c: Unify printed strings.
5872         * sunrpc/clnt_tcp.c: Likewise.
5873         * sunrpc/clnt_udp.c: Likewise.
5874         * sunrpc/clnt_unix.c: Likewise.
5875         * sunrpc/svc_tcp.c: Likewise.
5876         * sunrpc/svc_udp.c: Likewise.
5877         * sunrpc/svc_unix.c: Likewise.
5878         * sunrpc/xdr.c: Likewise.
5879         * sunrpc/xdr_array.c: Likewise.
5880         * sunrpc/xdr_rec.c: Likewise.
5881         * sunrpc/xdr_ref.c: Likewise.
5882         * locale/programs/ld-time.c (time_finish): Unify messages.
5883         * locale/programs/locfile.c (handle_copy): Fix typo.
5884         * nscd/nscd.c (options): Fix typo.
5886         [BZ #5995]
5887         * stdlib/strtod_l.c: Use correct sign for result in one more
5888         underflow case.
5889         Patch by Eric Blake <ebb9@byu.net>.
5891 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5893         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5894         and creat system calls.
5895         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5896         call.
5897         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5898         system calls.
5899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5900         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5901         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5903 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5905         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5906         <linux/limits.h> has defined it.
5907         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5908         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5909         headers.
5910         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5911         it instead of ARG_MAX.
5913 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5915         * posix/gai.conf: Fix comment for scope nullbits.
5916         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5917         default to 128 bits for v4 mapped addresses.
5919 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5921         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5922         ptrace call to get the ieee_instruction_pointer from the kernel.
5923         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5924         ptrace call to set the ieee_instructtion_pointer.
5925         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5926         Add comment that ieee_instruction_pointer is always 0.
5928 2008-03-09  Andreas Jaeger  <aj@suse.de>
5930         [BZ #5857]
5931         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5932         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5933         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5935         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5936         (rint_test): Likewise.
5938 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5940         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5941         call.
5942         (__nisfind_server): Similar for open readColdStartFile call.
5943         Patch partially by Jim Meyering.
5944         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5945         around internal_setent call.
5947         * po/vi.po: New Vietnamese translation.
5949         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5950         ADJ_OFFSET_SS_READ.
5952         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5953         remove CLONE_STOPPED.
5955 2008-02-10  Jim Meyering  <meyering@redhat.com>
5957         Remove useless "if" before "free":
5958         * elf/ldconfig.c (parse_conf_include): Likewise.
5959         * gmon/gmon.c (weak_alias): Likewise.
5960         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5961         * inet/rcmd.c (__validuser2_sa): Likewise.
5962         * intl/bindtextdom.c (set_binding_values): Likewise.
5963         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5964         * libio/genops.c (save_for_backup): Likewise.
5965         * libio/wgenops.c (save_for_wbackup): Likewise.
5966         * locale/programs/ld-collate.c (collate_read): Likewise.
5967         * locale/programs/linereader.c (get_string): Likewise.
5968         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5969         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5970         * resolv/res_debug.c (do_section): Likewise.
5971         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5972         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5973         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5974         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5975         * time/tzset.c (tzset_internal): Likewise.
5977 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5979         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5980         of ASSEMBLER.
5982 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5984         [BZ #5903]
5985         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5986         not stream for output file.  Open output file here.
5987         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5988         and output file name.
5989         (process_fd): Likewise.
5990         (process_file): Likewise.
5991         (main): Adjust callers of changed functions.
5992         * iconv/iconv_prog.h: Adjust prototype.
5994 2008-03-09  Andreas Jaeger  <aj@suse.de>
5996         [BZ #5753]
5997         * sysdeps/ia64/ieee754.h: Use protected namespace
5998         __BIG_ENDIAN/__LITTLE_ENDIAN.
5999         * sysdeps/ieee754/ieee754.h: Likewise.
6000         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6002 2008-03-08  Roland McGrath  <roland@frob.com>
6004         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6005         ignore a signal that came from a machine exception, treat it as a
6006         fatal core-dump signal instead.
6007         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6009         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6010         Clear DF bit in thread state's eflags.
6011         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6013 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6015         [BZ #5774]
6016         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6017         of NAN(...) sequence.
6018         * stdlib/Makefile (tests): Add tst-strtod6.
6019         * stdlib/tst-strtod6.c: New file.
6021         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6023         [BZ #5762]
6024         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6025         putting offending option character in quotes.  Clean up error
6026         messages.
6027         * po/be.po: Adjust msgstr in translation file.
6028         * po/bg.po: Likewise.
6029         * po/ca.po: Likewise.
6030         * po/cs.po: Likewise.
6031         * po/da.po: Likewise.
6032         * po/de.po: Likewise.
6033         * po/es.po: Likewise.
6034         * po/fr.po: Likewise.
6035         * po/hr.po: Likewise.
6036         * po/ko.po: Likewise.
6037         * po/nl.po: Likewise.
6038         * po/rw.po: Likewise.
6039         * po/sk.po: Likewise.
6040         * po/sv.po: Likewise.
6041         * po/tr.po: Likewise.
6042         * po/zh_CN.po: Likewise.
6043         * po/zh_TW.po: Likewise.
6045         [BZ #5760]
6046         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6047         Patch by Roland Bless <roland@bless.de>.
6049         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6050         .o file.
6051         * elf/Makefile (routines): Add dl-sysdep.
6052         (elide-routines.os): Likewise.
6054 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6056         [BZ #5786]
6057         * elf/dl-sysdep.c: Undefine ROUND after use.
6058         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6059         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6060         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6061         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6062         to ...
6063         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6064         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6065         if necessary.
6066         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6068         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6069         _dl_tls_get_addr_soft element.
6070         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6071         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6072         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6073         GLRO.
6074         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6075         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6076         of internal_function.
6078         * stdlib/Makefile (aux): Add tens_in_limb.
6079         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6080         * stdlib/tens_in_limb.c: ...here.  New file.
6082         [BZ #5778]
6083         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6084         __statfs_chown_restricted.
6085         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6086         for _PC_CHOWN_RESTRICTED.
6087         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6088         Implement __statfs_chown_restricted.
6089         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6090         _POSIX_CHOWN_RESTRICTED value to zero.
6091         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6092         defined to zero.
6094         * sysdeps/x86_64/rtld-memset.c: New file.
6096 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6098         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6100         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6101         Barcelona machine.  Make default fall through branch of
6102         __x86_64_preferred_memory_instruction check as the integer code path.
6104 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6106         * sysdeps/x86_64/cacheinfo.c
6107         (__x86_64_preferred_memory_instruction): New variable.
6108         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6110         * sysdeps/x86_64/memset.S: Rewrite.
6112 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6114         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6115         __obstack_printf_chk): New prototypes.
6116         (__vasprintf_chk, __vdprintf_chk,
6117         __obstack_vprintf_chk): Likewise.
6118         Add libc_hidden_proto.
6119         * libio/obprintf.c
6120         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6121         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6122         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6123         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6124         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6125         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6126         __obstack_vprintf_chk): New prototypes.
6127         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6128         obstack_vprintf): New inlines.
6129         * debug/dprintf_chk.c: New file.
6130         * debug/vdprintf_chk.c: New file.
6131         * debug/asprintf_chk.c: New file.
6132         * debug/vasprintf_chk.c: New file.
6133         * debug/obprintf_chk.c: New file.
6134         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6135         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6136         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6137         @@GLIBC_2.8.
6138         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6139         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6140         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6141         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6142         libc_hidden_proto.
6143         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6144         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6145         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6146         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6147         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6148         @@GLIBC_2.8.
6149         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6150         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6151         obstack_vprintf_chk.
6152         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6153         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6154         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6155         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6156         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6157         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6159 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6161         [BZ #5779]
6162         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6163         Patch by Roy Marples <roy@marples.name>.
6165         [BZ #5736]
6166         * malloc/malloc.c: Fix typo in comment.
6168         [BZ #5627]
6169         * locale/iso-639.def: Add Shuswap.
6171 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6173         [BZ #5790]
6174         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6175         overwrite *h_errnop/*errnop values from getanswer_r in case of
6176         failure.
6178 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6180         [BZ #5818]
6181         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6182         (verify_persistent_db): Remove one unnecessary test and add a new one
6183         for bad configuration.
6184         (nscd_init): Improve error reported when persistent database cannot
6185         be reused.
6186         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6187         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6188         .suggested_module and .max_db_size and case config file says the
6189         values are zero.
6190         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6192         [BZ #5854]
6193         * nis/ypclnt.c (yp_order): Fix handling of return value of
6194         do_ypcall_tr call.
6195         Patch by Jeff Moyer <jmoyer@redhat.com>.
6197         * po/fr.po: Update from translation team.
6199 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6200             Carlos O'Donell <carlos@systemhalted.org>
6202         [BZ #5012]
6203         * FAQ.in: Describe why glibc needs to be compiled with
6204         optimization.
6206 2008-02-19  Roland McGrath  <roland@redhat.com>
6208         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6210 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6212         [BZ #5737]
6213         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6214         __USE_MISC is defined.
6216 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6218         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6219         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6220         sys/timerfd.h.
6221         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6222         timerfd_gettime, timerfd_settime.
6223         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6224         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6226 2008-02-08  Roland McGrath  <roland@redhat.com>
6228         * elf/elf.h (NT_PPC_SPE): New macro.
6230 2008-02-06  Roland McGrath  <roland@redhat.com>
6232         * Makerules ($(common-objpfx)sysd-rules):
6233         Depend on $(sysdep-makeconfigs).
6235 2008-01-31  Roland McGrath  <roland@redhat.com>
6237         [BZ #5442]
6238         * configure.in: Use -print-file-name if it yields a directory,
6239         for each of include and include-fixed.
6240         * configure: Regenerated.
6242         * Makeconfig (sysd-rules-targets): New variable.
6243         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6244         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6246 2008-01-30  Roland McGrath  <roland@redhat.com>
6248         * manual/libc.texinfo: Update back-cover text.
6250         * elf/elf.h (NT_386_TLS): New macro.
6252 2008-01-29  Roland McGrath  <roland@redhat.com>
6254         * Makeconfig (sysd-rules-patterns): New variable.
6255         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6256         (check-inhibit-asm): New canned sequence, replaces ...
6257         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6258         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6259         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6260         (CFLAGS-rtld): Variable removed.
6262 2008-01-24  Roland McGrath  <roland@redhat.com>
6264         * configure.in: Let configure fragments set base_os.
6265         * configure: Regenerated.
6267 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6269         * po/ko.po: Update from translation team.
6271 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6273         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6275 2008-01-12  Andreas Jaeger  <aj@suse.de>
6277         [BZ #5040]
6278         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6279         Add EPOLLRDHUP.
6281 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6283         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6284         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6285         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6287 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6289         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6290         * elf/dl-close.c (_dl_close): Check for it.
6291         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6292         (_dl_allocate_static_tls): Likewise.
6293         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6294         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6295         to it.
6296         * elf/tst-tls16.c: New file.
6297         * elf/tst-tlsmod16a.c: New file.
6298         * elf/tst-tlsmod16b.c: New file.
6299         * elf/Makefile: Add rules to build and run tst-tls16.
6301 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6303         [BZ #5628]
6304         * bits/shm.h: Fix comment describing shmid_ds.
6305         * sysdeps/gnu/bits/shm.h: Likewise.
6306         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6307         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6308         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6309         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6310         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6311         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6312         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6313         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6314         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6316         [BZ #5607]
6317         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6318         prototypes.
6319         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6320         additional suffixes.
6321         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6322         Add optional functions mq_timedreceive and mq_timedsend.
6323         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6324         * conform/data/pthread.h-data: Fix prototype of
6325         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6326         * conform/data/semaphore.h-data: Allow time.h definitions.
6327         * conform/data/signal.h-data: Likewise.
6328         * conform/data/stdio.h-data: getw and putw are not required in v6.
6329         * conform/data/stdlib.h-data: Change setstate prototype.
6330         * conform/data/string.h-data: Fix strerror_r prototype.
6331         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6332         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6333         Fix readlink prototype.
6334         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6335         in6addr_loopback.
6336         * inet/netinet/in.h: Cleanup namespace.
6337         * posix/regex.h: Likewise.
6338         * resolv/netdb.h: Likewise.
6339         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6340         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6341         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6342         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6343         of names of in in6_addr.
6344         (default_precedence): Likewise.
6345         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6346         NULL definition.
6348 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6350         * conform/data/fmtmsg.h-data: Add missing allows.
6351         * conform/data/ftw.h-data: Likewise.
6352         * conform/data/inttypes.h-data: Likewise.
6353         * conform/data/math.h-data: Likewise.
6354         * conform/data/signal.h-data: Likewise.
6355         * conform/data/net/if.h-data: Likewise.
6356         * conform/data/netinet/in.h-data: Likewise.
6357         * conform/data/sys/socket.h-data: Likewise.
6359         [BZ #5614]
6360         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6361         (__strtok_r): Simplify.
6362         * string/tester.c (test_strtok_r): Add test case for futile search
6363         with single-character seach string.
6365 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6367         * po/ko.po: Update from translation team.
6369 2008-01-11  Andreas Jaeger  <aj@suse.de>
6371         [BZ #5600]
6372         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6373         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6374         kernel header.
6376 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6378         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6379         native interface lookup in all the relevant places.
6381 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6382             Ulrich Drepper  <drepper@redhat.com>
6384         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6385         field.  Use sockaddr_in6 for source_addr.
6386         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6387         (match_prefix): Likewise.
6388         (get_label): Likewise.
6389         (get_precedence): Likewise.
6390         (rfc3484_sort): Change to use indirect access to results array.
6391         Adjust to use of sockaddr_in6.  Replace service_order test with
6392         simple index comparison.
6393         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6394         service_order field.  Adjust qsort_t calls.  Access sorted result
6395         array indirectly through order array.
6396         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6397         * posix/tst-rfc3484-2.c: Likewise.
6398         * posix/tst-rfc3484-3.c: Likewise.
6400 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6402         [BZ #5541]
6403         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6404         pollfd structures.
6405         Patch by André Cruz.
6407         [BZ #5545]
6408         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6409         (clnt_spcreateerror): Likewise.
6411         [BZ #5553]
6412         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6413         (public_mEMALIGn): Likewise.
6414         Patch mostly by Daniel Jacobowitz.
6416 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6418         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6419         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6420         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6421         * stdlib/tst-makecontext2.c: New test.
6423 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6425         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6426         defined.
6427         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6428         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6429         transliteration hooks and REINIT_PARAMS afterwards.
6430         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6431         status.
6432         (REINIT_PARAMS): Define.
6433         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6434         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6435         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6436         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6437         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6438         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6439         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6440         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6441         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6442         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6443         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6444         * iconvdata/tst-iconv7.c: New test.
6446 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6448         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6450 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6452         [BZ #5112]
6453         * nscd/connections.c (restart): Fix condition.
6455 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6457         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6458         __ctype_toupper_loc): Add __THROW.
6460 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6462         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6463         recognition of interface family.
6465         * posix/getconf.c: Update copyright year.
6466         * nss/getent.c: Likewise.
6467         * iconv/iconvconfig.c: Likewise.
6468         * iconv/iconv_prog.c: Likewise.
6469         * elf/ldconfig.c: Likewise.
6470         * catgets/gencat.c: Likewise.
6471         * csu/version.c: Likewise.
6472         * elf/ldd.bash.in: Likewise.
6473         * elf/sprof.c (print_version): Likewise.
6474         * locale/programs/locale.c: Likewise.
6475         * locale/programs/localedef.c: Likewise.
6476         * nscd/nscd.c (print_version): Likewise.
6477         * debug/xtrace.sh: Likewise.
6478         * malloc/memusage.sh: Likewise.
6479         * malloc/mtrace.pl: Likewise.
6480         * debug/catchsegv.sh: Likewise.
6482 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6484         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6485         second lookup.
6487 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6489         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6490         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6492 2007-12-17  Roland McGrath  <roland@redhat.com>
6494         * inet/ether_line.c (ether_line): Remove unused variable.
6496 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6498         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6499         and winp.
6500         * login/openpty.c (openpty): Likewise.
6501         * login/pty.h (openpty, forkpty): Likewise.
6502         * manual/terminal.texi (openpty, forkpty): Likewise.
6504 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6506         * malloc/malloc.c (public_cALLOc): For arenas other than
6507         main_arena, count all bytes inside the mprotect_size range of the
6508         heap as uninitialized.
6510 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6512         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6513         executable stacks.
6515         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6516         mTRIm for all of them.
6517         (mTRIm): Additionally iterate over all free blocks and use madvise
6518         to free memory for all those blocks which contain at least one
6519         memory page.
6520         * malloc/tst-trim1.c: New file.
6521         * malloc/Makefile (tests): Add tst-trim1.
6523         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6525 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6527         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6528         First cast argument to long
6529         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6530         Return long.
6531         (__vdso_clock_gettime): Likewise.
6532         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6533         return long.
6535 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6537         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6538         * locale/nl_langinfo_l.c: Real implementation, copied from
6539         nl_langinfo.c.
6540         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6542 2007-12-01  Jim Meyering  <meyering@redhat.com>
6544         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6545         that would inhibit utf8-optimization of a regexp containing line-
6546         or buffer-anchors, e.g., `^', `$'.
6548 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6550         * time/bug-getdate1.c (do_test): Don't use century values which
6551         aren't valid on 32-bit systems.
6553 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6555         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6556         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6557         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6558         __strcat_g, __strncat_g): Add __asm__.
6560 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6562         [BZ #5477]
6563         * io/fchmodat.c: Fix typo in stub_warning use.
6564         Patch by Petr Salinger.
6566 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6568         * iconvdata/hp-thai8.c: New file.
6569         * iconvdata/Makefile: Add rules for hp-thai8.c.
6570         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6571         * iconvdata/gconv-modules: Likewise.
6573         [BZ #5464]
6574         * iconvdata/hp-greek8.c: New file.
6575         * iconvdata/Makefile: Add rules for hp-greek8.c.
6576         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6577         * iconvdata/gconv-modules: Likewise.
6579         [BZ #5463]
6580         * iconvdata/hp-turkish8.c: New file.
6581         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6582         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6583         * iconvdata/gconv-modules: Likewise.
6585         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6586         (shrink_heap): ... this new function.
6587         (heap_trim): Call shrink_heap instead of grow_heap.
6589         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6590         case don't call alloc_perturb.
6592 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6594         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6595         possible.
6596         * sysdeps/unix/sysv/linux/kernel-features.h
6597         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6598         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6600 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6602         [BZ #5424]
6603         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6604         * stdio-common/Makefile (tests): Add bug22.
6605         * stdio-common/bug22.c: New file.
6607         [BZ #5451]
6608         * time/getdate.c: Fix filling in default values.
6609         * time/bug-getdate1.c: New file.
6610         * time/Makefile: Add rules to build and run bug-getdate1.
6612         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6613         * iconvdata/ebcdic-es.c: Likewise.
6614         * iconvdata/ebcdic-es-a.c: Likewise.
6615         * iconvdata/ebcdic-uk.c: Likewise.
6616         * iconvdata/iso8859-16.c: Likewise.
6617         * iconvdata/viscii.c: Likewise.
6618         * iconvdata/iso8859-9e.c: Likewise.
6619         * iconvdata/Makefile: Adjust appropriately.
6621         [BZ #5428]
6622         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6623         __need_wint_t.
6625 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6627         [BZ #5427]
6628         * iconvdata/hp-roman9.c: New file.
6629         * iconvdata/Makefile: Add rules for hp-roman9.c.
6630         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6631         * iconvdata/gconv-modules: Likewise.
6633         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6634         * iconvdata/Makefile: Adjust appropriately.
6636         [BZ #5441]
6637         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6638         structure, it's allocated with alloca.
6639         * stdio-common/Makefile (tests): Add bug21.
6640         * stdio-common/bug21.c: New file.
6642 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6644         [BZ #5452]
6645         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6646         keyword for gcc's braced-groups.
6648 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6650         [BZ #5454]
6651         * inet/ether_line.c: Strip hostname of whitespaces.
6652         * inet/Makefile (tests): Add tst-ether_line.
6653         * inet/tst-ether_line.c: New file.
6655 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6657         [BZ #5439]
6658         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6660         [BZ #5435]
6661         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6663         * stdlib/tst-setcontext.c: Catch the case where the links gets
6664         messed up and we do not reach main again.
6666         * po/ca.po: Update from translation team.
6668 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6670         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6671         * posix/regex.h (REG_ENOSYS): Likewise.
6672         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6674 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6676         * nscd/nscd.h (MAX_STACK_USE): Define.
6677         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6678         (gc): Initialize stack_used based on allocation in prune_cache.
6679         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6680         Clear array before use.
6682         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6683         memory allocation failed.
6684         * nscd/hstcache.c (cache_addhst): Likewise.
6685         * nscd/grpcache.c (cache_addgr): Likewise.
6686         * nscd/servicescache.c (cache_addserv): Likewise.
6687         * nscd/pwdcache.c (cache_addpw): Likewise.
6688         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6690 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6693         and creat system calls.
6695         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6697 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6699         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6700         Add netiucv/iucv.h.
6701         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6702         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6703         protocol.
6704         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6705         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6706         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6708 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6710         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6711         strncat): Define as macros to avoid compile errors.
6713         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6714         creat entries.
6716 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6718         [BZ #5382]
6719         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6720         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6721         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6722         overflow it.
6723         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6725         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6726         Return zero in case the thread library is not NPTL.
6728         [BZ #5375]
6729         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6730         initializing interface list.
6732         [BZ #5378]
6733         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6734         use result of nss_getgrgid_r if nothing was found.  For other
6735         error return with a failure.
6736         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6738         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6739         macro name.
6741 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6743         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6744         (get_scope): For IPv4 scope, use scopes table.
6745         (fini): Free scopes table if necessary.
6746         (free_scopelist): New function.
6747         (scopecmp): New function.
6748         (gaiconf_init): Also handle scopev4 entries.
6749         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6750         * posix/tst-rfc3484-2.c (do_test): Likewise.
6751         * posix/gai.conf: Document scopev4 defaults.
6752         * posix/Makefile (tests): Add tst-rfc3484-3.
6753         * posix/tst-rfc3484-3.c: New file.
6755         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6756         Teredo tunnels.
6757         * posix/gai.conf: Update for current default tables.
6759 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6761         * po/tr.po: Update from translation team.
6763 2007-11-18  Roland McGrath  <roland@frob.com>
6765         * manual/arith.texi (Remainder Functions): Spelling fix.
6766         From Shaun Silk <genix@mysoul.com.au>.
6768         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6770 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6772         * po/zh_CN.po: Update from translation team.
6774         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6775         Add sys/signalfd.h and sys/eventfd.h.
6777 2007-11-15  Bruno Haible  <bruno@clisp.org>
6779         [BZ #5346]
6780         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6781         union.
6782         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6783         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6784         it needs only fixed stack space. Delay the initialization of
6785         msgid_len until it is needed.
6787 2007-11-15  Andreas Jaeger  <aj@suse.de>
6789         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6790         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6792 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6794         * po/ko.po: Update from translation team.
6796 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6798         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6799         significantly.  The device type is also part of the ifinfomsg data.
6801         * po/sv.po: Update from translation team.
6802         * po/nl.po: Likewise.
6804         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6805         to wake up in 24 hours.
6807         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6809 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6811         * po/cs.po: Update from translation team.
6812         * po/pl.po: Likewise.
6814         * include/ifaddrs.h: Remove in6ai_temporary.
6815         (struct in6addrinfo): Add index element.
6816         Declare __check_native.
6817         * inet/Makefile (aux): Add check_native.
6818         * sysdeps/unix/sysv/linux/check_native.c: New file.
6819         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6820         IFA_F_TEMPORARY.  Pass back ifa_index.
6821         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6822         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6823         call __check_native if necessary.
6824         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6825         to sort addresses.  Pass information about the results.
6826         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6827         of rfc3484_sort interface.
6828         * posix/tst-rfc3484-2.c: Likewise.
6830         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6831         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6832         for _quicksort.
6833         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6834         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6835         on as third parameter to compare function and _quicksort.
6836         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6837         to the compare function.
6838         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6839         * Versions.def: Add GLIBC_2.8 for libc.
6841         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6842         * posix/tst-rfc3484-2.c: Likewise.
6844         * include/kernel-features.h: Moved to...
6845         * sysdeps/mach/hurd/kernel-features.h: ...here.
6847 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6849         * sysdeps/i386/i586/memcpy_chk.S: New file.
6850         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6851         * sysdeps/i386/i586/memset_chk.S: Likewise.
6853 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6855         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6856         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6857         list of interfaces.  Also store prefix length.
6858         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6859         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6860         prefix if source and destination address are in the same subnet.
6861         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6862         Always look for matching record in in6ai list.
6863         Correct source_addr_len value for IPv6->IPv4 converted records.
6865 2007-11-11  Roland McGrath  <roland@frob.com>
6867         * include/kernel-features.h: New file.
6869 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6871         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6872         complications for 64-bit platforms.
6874         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6875         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6876         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6877         open64_2.
6878         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6879         entries.
6880         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6881         * sysdeps/wordsize-64/alphasort.c: New file.
6882         * sysdeps/wordsize-64/alphasort64.c: New file.
6883         * sysdeps/wordsize-64/fseeko.c: New file.
6884         * sysdeps/wordsize-64/fseeko64.c: New file.
6885         * sysdeps/wordsize-64/ftello.c: New file.
6886         * sysdeps/wordsize-64/ftello64.c: New file.
6887         * sysdeps/wordsize-64/ftw.c: New file.
6888         * sysdeps/wordsize-64/ftw64.c: New file.
6889         * sysdeps/wordsize-64/iofgetpos.c: New file.
6890         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6891         * sysdeps/wordsize-64/iofopen.c: New file.
6892         * sysdeps/wordsize-64/iofopen64.c: New file.
6893         * sysdeps/wordsize-64/iofsetpos.c: New file.
6894         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6895         * sysdeps/wordsize-64/lockf.c: New file.
6896         * sysdeps/wordsize-64/lockf64.c: New file.
6897         * sysdeps/wordsize-64/mkostemp.c: New file.
6898         * sysdeps/wordsize-64/mkostemp64.c: New file.
6899         * sysdeps/wordsize-64/mkstemp.c: New file.
6900         * sysdeps/wordsize-64/mkstemp64.c: New file.
6901         * sysdeps/wordsize-64/scandir.c: New file.
6902         * sysdeps/wordsize-64/scandir64.c: New file.
6903         * sysdeps/wordsize-64/tmpfile.c: New file.
6904         * sysdeps/wordsize-64/tmpfile64.c: New file.
6905         * sysdeps/wordsize-64/versionsort.c: New file.
6906         * sysdeps/wordsize-64/versionsort64.c: New file.
6907         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6908         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6909         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6910         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6911         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6912         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6913         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6914         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6915         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6916         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6917         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6918         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6920         * crypt/sha256-crypt.c: Fix a comment.
6921         * crypt/sha512-crypt.c: Likewise.
6923 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6925         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6927 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6929         [BZ #5277]
6930         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6931         because output buffer is too small break, don't loop.
6932         * iconvdata/Makefile (tests): Add bug-iconv6.
6933         * iconvdata/bug-iconv6.c: New file.
6935 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6937         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6938         with size_t type.
6939         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6940         size_t.  Add casts where needed.
6942         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6943         old headers, don't call avc_has_perm if we don't have the
6944         permission information.
6946 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6948         * elf/rtld.c (dl_main): Use the page size to find the map start.
6950 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6952         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6953         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6955         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6956         when the lookup call failed.
6958         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6959         Add prune_cond and wakeup_time.
6960         (CACHE_PRUNE_INTERNAL): Define.
6961         Update declarations of prune_cache and setup_thread.
6962         * nscd/connections.c (dbs): Update initializers.
6963         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6964         (nscd_init): Default number of threads is now 4.
6965         (invalidate_cache): Take lock before calling prune_cache.
6966         (handle_request): If SELinux forbids the request, say so.
6967         (readylist_cond): Use static initializer.
6968         (nscd_run_prune): New function.  Used only by pruning threads.
6969         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6970         here.
6971         (fd_ready): Update nscd_run reference.
6972         (start_threads): No need to initialize readylist_cond.
6973         Start pruning threads separately.
6974         * nscd/nscd_setup_thread.c: Change return value type to int and always
6975         return 0.
6976         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6977         to int and return nonzero value if we can use the TID address hack.
6978         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6979         the database is later than the new entry's timeout, update the
6980         wakeup time and wake the cleanup thread.
6981         (prune_cache): Return seconds the next entry in the database is still
6982         valid.  Remove locking for pruning here.
6983         * nscd/nscd.conf: Document default number of threads.
6985 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6987         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6988         stack is properly aligned for the target function.
6989         Correct unwind info.
6991         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6992         when using auditing libraries.
6994 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
6996         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6997         _nss_dns_getnetbyaddr2_r.
6998         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
6999         extra parameter to getanswer_r.
7000         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7001         _nss_dns_getnetbyaddr2_r.
7003         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7004         gethstbynm3_r.
7005         * nscd/gethstbynm2_r.c: Remove.
7006         * nscd/gethstbynm3_r.c: New file.
7007         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7008         __gethostbyaddr_r.
7009         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7010         __gethostbyaddr_r compatibility wrapper.
7011         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7012         determining timeout of entry.
7013         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7014         __gethostbyaddr2_r.
7015         (addhstbyX): Pass reference to variable for TTL to lookup and
7016         cache_addhst.
7017         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7018         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7019         and __nss_next2.  Remove __nss_services_lookup.
7020         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7021         Add compat wrapper.
7022         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7023         __nss_next2.
7024         * nss/getXXent_r.c: Likewise.
7025         * nss/getnssent_r.c: Likewise.
7026         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7027         does not exist in module, try the optional second name.
7028         (__nss_next2): New function.
7029         (__nss_next): Now wrapper around __nss_next2.
7030         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7031         Declare __nss_next2.
7032         Adjust definition of db_lookup_function type.
7033         * nss/service-lookup.c: Define NO_COMPAT.
7034         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7035         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7036         * inet/ether_ntoh.c: Likewise.
7037         * sunrpc/netname.c: Likewise.
7038         * sunrpc/publickey.c: Likewise.
7039         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7040         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7041         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7042         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7043         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7045         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7047         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7049 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7051         [BZ #5204]
7052         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7053         * crypt/sha512c-test.c: Likewise.
7055         [BZ #5225]
7056         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7057         to keep track of end of %[ format string element.
7058         * stdio-common/Makefile (tests): Add bug20.
7059         * stdio-common/bug20.c: New file.
7061         [BZ #5222]
7062         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7063         path elements in counting mode.
7065 2007-10-27  Andreas Jaeger  <aj@suse.de>
7067         [BZ #5040]
7068         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7070         [BZ #3112]
7071         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7072         (__cleanup): Free shared library when exiting.
7073         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7074         (__cleanup): Free shared library when exiting.
7076 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7078         [BZ #2549]
7079         * math/libm-test.inc (check_float_internal): Support
7080         denormalized return.
7082 2007-10-23  Andreas Jaeger  <aj@suse.de>
7084         [BZ #5208]
7085         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7086         __LONG_LONG_PAIR to handle little endian byte order.
7087         Suggested by abhishekrai@google.com
7089 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7091         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7093 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7095         * nscd/cache.c (prune_cache): Move test for modified file outside
7096         of locking.
7098 2007-10-21  Andreas Jaeger  <aj@suse.de>
7100         * manual/texinfo.tex: Update to latest version.
7102         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7104         * manual/arith.texi (Status bit operations): Fix formatting.
7106         * manual/errno.texi (Error Messages): Fix formatting.
7108         * manual/sysinfo.texi (System Parameters): Fix formatting.
7110         * manual/libc.texinfo: Update VERSION and UPDATED.
7112 2007-10-19  Roland McGrath  <roland@redhat.com>
7114         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7116 2007-10-06  David S. Miller  <davem@davemloft.net>
7118         * configure.in: Add sparcv9v2 and sparc64v2.
7119         * scripts/config.sub: Likewise.
7120         * configure: Regenerate.
7121         * elf/elf.h (HWCAP_SPARC_N2): New.
7122         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7123         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7124         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7125         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7126         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7127         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7128         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7130 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7132         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7133         even if the poll result indicates there is data to read.
7134         Patch by Jeff Moyer <jmoyer@redhat.com>.
7136 2007-10-18  Roland McGrath  <roland@redhat.com>
7138         * elf/elf.h (NT_PPC_VMX): New macro.
7140 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7142         * version.h (VERSION): Set to 2.7.90.
7144 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7146         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7147         weak_alias.
7149 2007-10-17  Roland McGrath  <roland@frob.com>
7151         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7152         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7154 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7156         * version.h (VERSION): Bump to 2.7.
7157         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7159         [BZ #5186]
7160         * time/tzset.c (__tz_convert): Don't force testing for a change of
7161         TZ if not called from localtime.  But then also see whether the
7162         file changed, in case __use_tzfile is set.
7164         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7165         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7166         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7167         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7168         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7169         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7170         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7171         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7173 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7175         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7176         and admin selects to be able to replace the gai.conf file, lock
7177         data structures around the qsort call.
7179 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7181         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7182         new memset.
7183         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7184         too high for the improvements.  Implement bzero unconditionally for
7185         use in libc.
7187 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7188             Jakub Jelinek  <jakub@redhat.com>
7190         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7191         even when time_t is 32-bit.
7192         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7193         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7194         always set after the search.
7196 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7198         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7199         unreachable code on 32-bit machines.
7201 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7203         [BZ #5184]
7204         * time/strftime_l.c: Include stdbool.h.
7205         (my_strftime): New wrapper, old function renamed to...
7206         (__strftime_internal): ... new function.  Add tzset_called
7207         argument, pass it down to recursive calls, don't call tzset ()
7208         if already true, set to true after call to tzset ().
7210 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7212         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7213         into account when copying TZ string.
7215 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7217         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7218         num_transition rather than num_transitions - 1.
7220 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7222         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7223         PIC indirect jump.
7225         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7226         a local label rather than HIDDEN_JUMPTARGET.
7228 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7230         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7231         (init_cacheinfo): Initialize it.
7232         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7233         Always define bzero.
7234         Remove non-glibc code.
7235         * sysdeps/x86_64/bzero.S: Make an empty file.
7237 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7239         * sysdeps/x86_64/cacheinfo.c
7240         (__x86_64_preferred_memory_instruction): New.
7241         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7243         * sysdeps/x86_64/memset.S: Rewrite.
7245 2007-10-15  Roland McGrath  <roland@redhat.com>
7247         * po/libc.pot: Regenerated.
7249 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7251         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7252         pointers.
7254         [BZ #3425]
7255         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7256         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7257         address record to T_A/T_AAAA requests.
7259 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7261         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7263         * posix/glob.c: Add some branch prediction throughout.
7265         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7266         read from nscd.
7268         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7269         service_order.
7270         (rfc3484_sort): Make sure that even if qsort doesn't support
7271         stable sorting out sorting here is stable by comparing service_order.
7272         (getaddrinfo): Initialize service_order.
7273         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7274         service_order field to sorting structure.
7275         * posix/tst-rfc3484-2.c (do_test): Likewise.
7277         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7278         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7279         __tzset_parse_tz and updating of daylight, timezone, tzname into
7280         update_vars.
7281         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7282         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7283         happens in __tz_compute.
7284         * time/tzfile.c (__tzfile_read): Also read TZ string.
7285         (find_transition): Fold into __tzfile_compute.
7286         (__tzfile_compute): For times beyond the last transition try to
7287         use the TZ string.
7288         * timezone/tst-timezone.c: Information in daylight and tzname does
7289         change for Asia/Tokyo timezone with more concrete information.
7290         Remove the test.
7292         * include/stdio.h: Add libc_hidden_proto for ftello.
7293         * libio/ftello.c: Add libc_hidden_def.
7295         [BZ #1140]
7296         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7297         on the specified time and not the last entries in the file.  Move
7298         code to determine tzname[] to...
7299         (find_transition): ...here.  Add ugly guess for times before the
7300         first transition.
7302 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7304         [BZ #3195]
7305         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7306         no entry.
7307         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7308         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7309         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7310         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7312         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7313         read mechanism when there are no group members and avoid no-op
7314         read syscall in this case.
7316         [BZ #3242]
7317         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7318         (__readall): If reading failed due to EAGAIN error wait a bit
7319         and possibly try again.
7320         (__readvall): Likewise.
7322 2007-10-13  Bruno Haible  <bruno@clisp.org>
7324         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7325         when we cannot recode the message.
7327 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7329         [BZ #4359]
7330         * libio/__freading.c (__freading): Don't return true for
7331         write-only streams.  For read/write streams, check whether we
7332         performed a read operation already.
7333         * libio/Makefile (tests): Add tst-ext2.
7334         * libio/tst-ext2.c: New file.
7336 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7338         * locale/programs/repertoire.c (repertoire_read): Always free
7339         memory for repertoire file name [Coverity CID 270].
7341         * elf/cache.c (save_aux_cache): Free memory allocated for
7342         temporary file name [Coverity CID 267].
7344 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7346         * misc/Makefile (headers): Add bits/error.h.
7348 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7350         * posix/fnmatch_loop.c: Take rule index returned as part of
7351         findidx return value into account when accessing weights.
7352         * posix/regcomp.c: Likewise.
7353         * posix/regexec.c: Likewise.
7355         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7356         (skip_to): Fix problems with parameter of elifdef/elifndef.
7358 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7360         * iconv/gconv_simple.c: Add some branch prediction.
7362 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7364         * locale/programs/ld-collate.c (collate_read): If ignore_content
7365         and nowtok is tok_define, eat any tok_eol tokens.
7367 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7369         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7370         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7372         * inet/netinet/in.h: Don't include bits/socket.h.
7373         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7374         macro.
7375         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7377 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7379         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7380         and tok_elifndef.
7381         * locale/programs/locfile-kw.gperf: Likewise.
7382         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7384 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7386         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7387         (__find_specwc): Change into __extern_always_inline function.
7388         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7389         (__parse_one_specmb): Remove ps argument.
7390         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7391         Adjust __find_specmb and __parse_one_specmb callers.
7392         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7393         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7394         Removed.
7395         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7396         caller.
7398 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7400         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7401         with some Pentium Ds.
7403 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7405         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7406         __read not read.
7407         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7408         __write not write.
7410 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7412         [BZ #181]
7413         * locale/C-time.c: Set week_1stday data to 19971201.
7414         * locale/programs/ld-time.c (time_finish): Default for
7415         first_workday is Monday.
7417         [BZ #2633]
7418         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7420         [BZ #5103]
7421         * posix/glob.c (glob): Recognize patterns starting \/.
7422         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7423         (main): Add test for pattern starting \/.
7425         * misc/error.h: Use __const instead of const.
7426         * misc/bits/error.h: Likewise.
7428 2007-10-07  Andreas Jaeger  <aj@suse.de>
7430         * include/bits/error.h: New file.
7432         * misc/bits/error.h (error_at_line): Fix prototype.
7434 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7436         [BZ #3924]
7437         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7438         more little bugs in creating the stack frame when pltexit has to
7439         be called.
7441         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7442         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7444         [BZ #4407]
7445         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7446         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7447         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7448         * math/libm-test.inc: Add test for this case.
7450         [BZ #5010]
7451         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7452         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7453         map service succeeded.
7454         (svc_is_mapped): New function.
7455         (svc_unregister): Use it before trying to unmap service.
7457 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7459         * timezone/zic.c: Update from tzcode2007h.
7461         [BZ #5063]
7462         * timezone/africa: Update from tzdata2007h.
7463         * timezone/antarctica: Likewise.
7464         * timezone/asia: Likewise.
7465         * timezone/australasia: Likewise.
7466         * timezone/europe: Likewise.
7467         * timezone/leapseconds: Likewise.
7468         * timezone/northamerica: Likewise.
7469         * timezone/southamerica: Likewise.
7470         * timzeone/zone.tab: Likewise.
7472         [BZ #5104]
7473         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7475         [BZ #5113]
7476         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7477         avoid warning with -Wconversion.
7478         (__strndup): Likewise.
7479         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7481         [BZ #5112]
7482         * nscd/connections.c (restart): Don't resync if database is
7483         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7485         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7486         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7488         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7489         evetnfd_read, eventfd_write.
7490         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7491         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7492         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7493         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7494         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7495         eventfd_write for GLIBC_2.7.
7497         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7498         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7499         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7500         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7502 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7504         * stdlib/msort.c: Include stdint.h.
7505         (struct msort_param): New type.
7506         (msort_with_tmp): Use struct msort_param pointer for unchanging
7507         parameters.  Add optimized handling for several common sizes
7508         and indirect sorting mode.
7509         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7510         sorting.
7511         Suggested by Belazougui Djamel .
7513         * stdlib/Makefile (tests): Add tst-qsort2.
7514         * stdlib/tst-qsort2.c: New test.
7516 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7518         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7519         for dup2 in case another thread races with the current one.  Retry
7520         in this case.
7522         * misc/error.h: Remove support for use outside of libc.  We have to
7523         include <features.h> now.  Include <bits/error.h> if possible.
7524         * misc/bits/error.h: New file.
7526 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7528         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7529         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7530         __extern_always_inline functions unconditionally, drop macros.
7532         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7533         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7534         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7536         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7537         add __artificial__ attribute.
7539 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7541         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7542         backward to forward direction.
7544         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7546         [BZ #645]
7547         * locale/programs/ld-collate.c (collate_finish): Compare against last
7548         used section which is known to have rules defined.
7549         (collate_read): After order_start, correctly record order of sections
7550         and queue sections up.
7552 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7554         [BZ #5071]
7555         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7556         the same number of pages.
7557         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7559         * locale/programs/ld-collate.c (collate_read): After initial copy
7560         statement, continue in state 0.
7562         * include/stdio_ext.h (__fsetlocking): Define as macro.
7564 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7566         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7567         of section order.
7569         * po/pt_BR.po: Fix typo.
7571 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7573         * iconvdata/Makefile (modules): Add ISO8859-9E.
7574         (distribute): Add iso8859-9e.c.
7575         (gen-8bit-gap-modules): Add iso8859-9e.
7576         * iconvdata/iso8859-9e.c: New file.
7577         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7578         * iconvdata/TESTS: Likewise.
7579         * iconvdata/tst-tables.sh: Likewise.
7581         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7583         * locale/iso-639.def: Add several new entries.
7585 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7587         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7588         void * pointers instead of struct link_map **.
7589         (_dl_scope_free): Change argument type to void *.
7590         * include/link.h (struct link_map): Change type of l_reldeps
7591         to struct link_map_reldeps, move l_reldepsact into that
7592         struct too.
7593         * elf/dl-deps.c: Include atomic.h.
7594         (_dl_map_object_deps): Only change l->l_initfini when it is
7595         fully populated, use _dl_scope_free for freeing it.  Optimize
7596         removal of libs from reldeps by using l_reserved flag, when
7597         some removal is needed, allocate a new list instead of
7598         reallocating and free the old with _dl_scope_free.  Adjust
7599         for l_reldeps and l_reldepsact changes.
7600         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7601         searching in l_initfini and l_reldeps without holding dl_load_lock.
7602         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7603         l_reldepsact changes.
7604         * elf/dl-close.c (_dl_close_worker): Likewise.
7605         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7607 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7609         * iconvdata/Makefile (modules): Add KOI8-RU.
7610         (distribute): Add koi8-ru.c.
7611         (gen-8bit-gap-modules): Add koi8-ru.
7612         * iconvdata/koi8-ru.c: New file.
7613         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7614         * iconvdata/TESTS: Likewise.
7615         * iconvdata/tst-tables.sh: Likewise.
7617         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7619 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7621         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7622         with __warning__/__error__ attributes.
7623         (__warnattr): Define.
7624         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7625         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7626         __warnattr.
7627         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7628         of __*_chk if compile time detectable overflow is found.
7629         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7630         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7631         with __warnattr.
7632         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7633         instead of __*_chk if compile time detectable overflow is found.
7634         (__gets_alias): Rename to...
7635         (__gets_warn): ... this.  Add __warnattr.
7636         (gets): Call __gets_warn instead of __gets_alias.
7637         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7638         aliases with __warnattr.
7639         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7640         time detectable overflow is found.
7641         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7642         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7643         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7644         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7645         __getdomainname_chk_warn): New aliases with __warnattr.
7646         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7647         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7648         __*_chk_warn instead of __*_chk if compile time detectable overflow
7649         is found.
7650         (__getgroups_chk): Rename argument to __listlen from listlen.
7651         (__getwd_alias): Rename to...
7652         (__getwd_warn): ... this.  Add __warnattr.
7653         (getwd): Call __getwd_warn instead of __getwd_alias.
7654         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7655         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7656         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7657         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7658         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7659         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7660         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7661         compile time detectable overflow is found.
7662         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7663         to use __*_chk or not.
7664         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7665         in comparisons which function should be called and in __*_chk*
7666         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7667         detectable overflow is found.
7668         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7669         __*_chk argument.
7670         * debug/tst-chk1.c (do_test): Add a few more tests.
7672 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7674         [BZ #5058]
7675         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7676         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7677         (_nl_unload_domain): Finalize conversions_lock.
7678         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7679         handling table of known conversions.
7681 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7683         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7684         close_not_cancel_no_status instead of close.
7686 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7688         [BZ #5028]
7689         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7690         nrules != 0 for multibyte chars.
7692 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7694         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7695         Provide better error message in case the type is unknown.
7697         [BZ #4963]
7698         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7699         * string/stratcliff.c: Make usable to test wide char functions.
7700         * wcsmbs/wcsatcliff.c: New file.
7701         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7703         [BZ #4972]
7704         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7705         (distribute): Add mac-centraleurope.c.
7706         (gen-8bit-gap-modules): Add mac-centraleurope.
7707         * iconvdata/mac-centraleurope.c: New file.
7708         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7709         * iconvdata/TESTS: Likewise.
7710         * iconvdata/tst-tables.sh: Likewise.
7712         [BZ #5043]
7713         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7715 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7717         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7718         from __x86_64_core_cache_size_half.
7719         (init_cacheinfo): Compute shared cache size for AMD processors with
7720         shared L3 correctly.
7721         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7722         name change.
7723         Patch in large parts by Evandro Menezes.
7725 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7727         * elf/dl-lookup.c (add_dependency): Handle failing memory
7728         allocation for dependency list.  Remove unnecessary check.
7730         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7731         open/close when determining source addresses.
7733         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7734         sha512-crypt, and sha512.
7735         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7736         (distribute): Add sha256.h and sha512.h.
7737         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7738         and call the appropriate code.
7739         * crypt/sha256-crypt.c: New file.
7740         * crypt/sha256.c: New file.
7741         * crypt/sha256.h: New file.
7742         * crypt/sha256c-test.c: New file.
7743         * crypt/sha256test.c: New file.
7744         * crypt/sha512-crypt.c: New file.
7745         * crypt/sha512.c: New file.
7746         * crypt/sha512.h: New file.
7747         * crypt/sha512c-test.c: New file.
7748         * crypt/sha512test.c: New file.
7750 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7752         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7753         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7754         __syslog_chk.
7756 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7758         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7759         %as in fscanf format strings.
7761         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7762         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7763         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7764         Likewise.
7765         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7766         Likewise.
7768         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7769         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7770         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7771         * elf/dl-sym.c (do_sym): Likewise.
7772         * include/link.h (struct link_map): Add l_serial field.
7773         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7774         * elf/dl-lookup.c (add_dependency): Add flags argument.
7775         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7776         flags, use THREAD_GSCOPE_RESET_FLAG before and
7777         THREAD_GSCOPE_SET_FLAG after
7778         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7779         Don't dereference map until it has been found on some list.
7780         If map->l_serial changed, return -1.
7782 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7784         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7785         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7786         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7787         libc_hidden_proto.
7788         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7789         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7790         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7791         add libc_hidden_proto.
7792         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7793         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7794         conformance requested.
7795         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7796         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7797         conformance requested.
7798         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7799         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7800         conformance requested.
7801         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7802         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7803         ISO C99 or POSIX conformance requested.
7804         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7805         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7806         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7807         and __isoc99_vsscanf@@GLIBC_2.7.
7808         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7809         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7810         (tests): Add scanf14.
7811         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7812         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7813         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7814         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7815         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7816         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7817         from using internal headers.
7818         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7819         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7820         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7821         and __isoc99_vswscanf@@GLIBC_2.7.
7822         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7823         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7824         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7825         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7826         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7827         * stdio-common/isoc99_scanf.c: New file.
7828         * stdio-common/isoc99_vsscanf.c: New file.
7829         * stdio-common/isoc99_vscanf.c: New file.
7830         * stdio-common/isoc99_vfscanf.c: New file.
7831         * stdio-common/isoc99_fscanf.c: New file.
7832         * stdio-common/isoc99_sscanf.c: New file.
7833         * wcsmbs/isoc99_fwscanf.c: New file.
7834         * wcsmbs/isoc99_vswscanf.c: New file.
7835         * wcsmbs/isoc99_swscanf.c: New file.
7836         * wcsmbs/isoc99_wscanf.c: New file.
7837         * wcsmbs/isoc99_vwscanf.c: New file.
7838         * wcsmbs/isoc99_vfwscanf.c: New file.
7839         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7840         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7841         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7842         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7843         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7844         * stdio-common/scanf14.c: New test.
7845         * stdio-common/scanf15.c: New test.
7846         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7847         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7848         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7849         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7850         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7851         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7852         __nldbl___isoc99_scanf@@GLIBC_2.7,
7853         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7854         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7855         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7856         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7857         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7858         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7859         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7860         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7861         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7862         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7863         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7864         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7865         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7866         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7867         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7868         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7869         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7870         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7871         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7872         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7873         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7874         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7875         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7876         functions.
7877         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7878         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7879         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7880         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7881         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7882         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7883         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7884         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7885         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7886         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7887         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7888         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7890         * stdio-common/Makefile (tests): Add scanf13.
7891         (scanf13-ENV): New.
7892         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7893         m modifier followed by l.
7894         (STRING_ARG): Add width argument.
7895         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7896         <case L_('C')>: Handle %mlc and %mC.
7897         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7898         arguments.
7899         * stdio-common/scanf13.c: New test.
7901         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7902         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7904 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7906         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7907         type and __THROW marker of splice, vmsplice, and tee.
7908         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7909         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7910         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7911         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7912         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7913         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7914         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7915         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7916         as cancellation points.
7918 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7920         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7921         parse more than three parts of the version number.
7923 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7925         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7926         modifier.  Patch by Jakub Jelinek.
7928 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7930         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7931         call_fallocate in misc subdir.
7932         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7933         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7934         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7935         instead of __fallocate64.
7936         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7938 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7940         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7941         * rt/Makefile (headers): Add bits/mqueue2.h.
7942         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7943         optimizing with GCC and __va_arg_pack_len is defined.
7944         * rt/bits/mqueue2.h: New file.
7945         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7946         (mq_open): New strong_alias.
7947         (__mq_open_2): New function.
7948         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7949         (mq_open): New strong_alias.
7950         (__mq_open_2): New function.
7951         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7952         * Versions.def (librt): Add GLIBC_2.7 version.
7953         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7954         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7956         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7957         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7958         is defined rather than when not C++.
7959         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7960         __openat64_alias): New redirects.
7961         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7962         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7963         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7964         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7965         functions instead of function-like macros.
7967 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7969         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7970         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7971         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7973 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7975         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7976         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7978 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7980         * inet/tst-network.c: Increment ERRORS for failing tests.
7982 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7984         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7985         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7986         implement as __extern_always_inline function.
7987         (vsyslog): Define as __extern_always_inline function unconditionally.
7988         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7989         When __va_arg_pack is defined, implement as __extern_always_inline
7990         functions.
7991         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7992         __extern_always_inline functions unconditionally.
7993         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7994         bits/stdio2.h will be included.
7995         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7996         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7997         implement as __extern_always_inline functions.
7998         (vswprintf, vwprintf, vfwprintf): Define as
7999         __extern_always_inline functions unconditionally.
8000         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8002 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8004         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8005         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8006         attribute.
8007         * include/features.h (__USE_EXTERN_INLINES): Define only when
8008         __extern_inline is defined.
8009         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8010         is defined instead of when not __cplusplus.
8011         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8012         is defined instead of when not __cplusplus.
8013         * socket/sys/socket.h: Include bits/socket2.h when
8014         __extern_always_inline is defined instead of when not __cplusplus.
8015         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8016         is defined instead of when not __cplusplus.
8017         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8018         is defined instead of when not __cplusplus.
8019         * string/string.h: Include bits/string3.h when __extern_always_inline
8020         is defined instead of when not __cplusplus.
8021         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8022         is defined instead of when not __cplusplus.
8023         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8024         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8025         is not defined.
8026         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8027         defined __extern_always_inline instead of !defined __cplusplus.
8028         * libio/bits/stdio-ldbl.h: Likewise.
8029         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8030         * misc/bits/syslog.h (syslog): Don't define for C++.
8031         (vsyslog): Use __extern_always_inline function for C++ instead of
8032         a macro.
8033         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8034         whenever that macro is defined.
8035         (vprintf): Don't provide the inline for C++.
8036         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8037         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8038         define the macros for C++.
8039         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8040         __extern_always_inline functions for C++.
8041         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8042         stat64, lstat64, fstat64, fstatat64): Don't define if not
8043         __USE_EXTERN_INLINES.
8044         * wcsmbs/bits/wchar2.h: Fix #error message.
8045         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8046         (vswprintf, vwprintf, vfwprintf): Define using
8047         __extern_always_inline functions for C++.
8048         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8049         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8050         strncpy, strcat, strncat): Define as __extern_always_inline
8051         functions instead of macros for C++.
8052         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8053         defined __extern_inline.
8054         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8055         to __extern_inline whenever that macro is defined.
8056         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8057         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8058         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8059         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8060         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8061         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8062         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8063         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8064         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8065         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8066         prototypes.  Only provide __extern_inline routines if
8067         __USE_EXTERN_INLINES.
8068         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8069         tests.
8070         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8071         For now avoid some *printf tests in C++.  Skip all testing
8072         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8073         is not.
8074         * debug/tst-chk4.cc: New file.
8075         * debug/tst-chk5.cc: New file.
8076         * debug/tst-chk6.cc: New file.
8077         * debug/tst-lfschk4.cc: New file.
8078         * debug/tst-lfschk5.cc: New file.
8079         * debug/tst-lfschk6.cc: New file.
8080         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8081         prototypes in C++.
8082         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8083         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8084         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8086 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8088         * po/cs.po: Update from translation team.
8090 2007-09-11  Roland McGrath  <roland@redhat.com>
8092         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8093         compiling.
8095 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8097         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8099 2007-09-05  Roland McGrath  <roland@redhat.com>
8101         * manual/signal.texi (Signaling Another Process): Typo fix.
8102         From Karl Berry <karl@freefriends.org>.
8104 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8106         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8107         zero if not defined.
8108         (make_request): Recognize optimistic addresses and treat them like
8109         deprecated addresses.
8110         Reported by Neil Horman <nhorman@redhat.com>.
8112 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8114         * nscd/connections.c (send_ro_fd): Also transfer file size.
8115         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8116         file size don't call fstat.
8118         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8119         ahead and map the file.  This should always be correct and we can
8120         catch problems later.
8122 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8124         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8125         prototypes.
8126         (__fread_alias, __fread_unlocked_alias): New aliases.
8127         (fread): New extern inline.
8128         (fread_unlocked): Likewise.  Undef macro before definition of
8129         the inline function.
8130         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8131         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8132         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8133         and __fread_unlocked_chk@@GLIBC_2.7.
8134         * debug/fread_chk.c: New file.
8135         * debug/fread_u_chk.c: New file.
8136         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8138 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8140         * sysdeps/unix/sysv/linux/syscalls.list
8141         (personality): Change caller to EXTRA.
8143 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8145         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8146         to keep gcc quiet.
8147         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8149         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8150         NDEBUG is defined.
8152         * Makerules: Use -p option with mkdir.
8154         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8155         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8156         (_xdr_directory_obj): Likewise.
8157         (xdr_entry_obj): Likewise.
8158         (xdr_group_obj): Likewise.
8159         (xdr_link_obj): Likewise.
8160         (xdr_table_obj): Likewise.
8161         (_xdr_nis_result): Likewise.
8162         (_xdr_ns_request): Likewise.
8163         (_xdr_ib_request): Likewise.
8164         (_xdr_nis_taglist): Likewise.
8165         (xdr_cback_data): Likewise.
8166         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8167         (xdr_ypresp_maplist): Likewise.
8169         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8171         * posix/regex_internal.h: Prevent some declarations and definitions
8172         to be seen when used in tests.
8174         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8175         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8177         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8179         * config.make.in (datarootdir): Add to shut up configure.
8181         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8182         associativity for fully-associative caches.
8184         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8185         requests.  Fill on more associativity values for L2.
8186         Patch mostly by Evandro Menezes.
8188 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8190         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8191         (_libc_vdso_platform_setup): Avoid using exported variable by using
8192         alias.
8194         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8196         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8197         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8198         defined.
8200 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8202         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8203         align stack for call if pltexit is to be used.
8205         [BZ #3924]
8206         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8207         align for function call in case pltexit has to be called later.
8209         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8210         implicit atomic operation when storing function pointer.
8211         (_dl_runtime_profile): Likewise.
8213 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8215         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8216         NIS_NOTFOUND.
8218 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8220         [BZ #4566]
8221         * string/strtok.c: Fix typo in comment.
8223         [BZ #4582]
8224         * debug/segfault.c: Fix typos in comments.
8226         [BZ #4588]
8227         * stdio-common/tempnam.c: Fix comment, it is not checked that
8228         TMPDIR points to a writable directory.
8230         [BZ #4726]
8231         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8232         memory allocated for the name server address.
8234         [BZ #4946]
8235         * nscd/connections.c (handle_request): Using sendfile always
8236         requires that mmap is used for the database.
8237         Patch by Petr Baudis <pasky@suse.cz>.
8239         [BZ #4905]
8240         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8241         suddenly has two or more addresses, ignore it and remove the old
8242         entry.
8244         [BZ #4814]
8245         * resolv/res_hconf.c: Prepare for compiling outside libc.
8246         * nscd/res_hconf.c: New file.
8247         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8248         the new file.
8249         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8250         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8252         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8254         [BZ #4925]
8255         * debug/pcprofiledump.c: Turn on internationalization by calling
8256         setlocale.  Patch mostly by Benno Schulenberg.
8258         [BZ #4936]
8259         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8260         the state.
8261         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8262         * iconvdata/bug-iconv5.c: New file.
8264 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8266         [BZ #4896]
8267         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8268         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8269         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8270         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8271         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8272         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8273         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8274         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8276 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8278         [BZ #4937]
8279         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8280         lookup loop.  Suggested by John Reiser.
8282 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8284         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8286 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8288         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8289         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8290         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8291         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8292         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8293         to...
8294         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8296 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8298         * po/nl.po: Update from translation team.
8300 2007-08-16  Andreas Jaeger  <aj@suse.de>
8302         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8303         Reported by Peter Festner <peter.festner@ewetel.net>.
8305 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8307         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8309 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8311         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8312         to check for undefined symbols.
8314         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8315         If the syscall fails, set errno to the actual returned error number
8316         rather than EINVAL.
8317         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8318         arguments are incorrect, set errno to EINVAL, if the syscall
8319         fails, set errno to the actual returned error number.
8321         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8322         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8324         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8325         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8326         file.
8327         (ASI_PNF, ASI_BLK_P): Don't define.
8328         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8329         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8330         file.
8331         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8332         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8333         file.
8335 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8337         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8338         FE_UNDERFLOW on Niagara CPUs.
8340         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8341         exceptions.
8343 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8345         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8346         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8347         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8348         flush should be used or not inside of the function.
8349         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8351         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8352         __thread_start): Use HIDDEN_JUMPTARGET.
8353         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8354         __thread_start): Likewise.
8355         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8357         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8358         Add libc_hidden_proto.
8359         (STRTOF): Add libc_hidden_proto.
8360         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8361         (strtold_l, wcstold_l): Use them as second argument for
8362         long_double_symbol.
8364 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8366         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8368 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8370         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8372 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8374         * po/bg.po: New file.  From the translation team.
8376 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8378         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8379         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8380         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8381         when each feature was introduced.
8383         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8384         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8385         (CHECK_HASH): New macro.
8386         (PREPARE_VERSION): Use it.
8388         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8389         prototype if not __ASSUME_PSELECT.
8390         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8391         prototype if not __ASSUME_PPOLL.
8393         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8395         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8396         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8397         is defined.
8399 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8401         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8402         (_libc_vdso_platform_setup): If vDSO is not available point
8403         __vdso_gettimeofday to the vsyscall.
8404         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8405         __vdso_gettimeofday instead of vsyscall.
8407 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8409         * nscd/servicescache.c: Include kernel-features.h.
8410         * nscd/gai.c: Likewise.
8411         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8412         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8413         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8414         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8415         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8416         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8417         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8418         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8419         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8421 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8423         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8424         and _dl_get_origin defines anymore.
8426         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8427         Build fix for systems which might lack POSIX timer support.
8429         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8430         (_libc_vdso_platform_setup): Mangle function pointers before storing
8431         them.
8432         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8433         Demangle vdso pointer before use.
8434         (INTERNAL_VSYSCALL): Likewise.
8436         * elf/cache.c (primes): Mark as const.
8437         Noted by Roland McGrath.
8439 2007-08-01  Andreas Jaeger  <aj@suse.de>
8440             Jakub Jelinek  <jakub@redhat.com>
8442         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8443         (options): Add option.
8444         (parse_opt): Handle option.
8445         (manual_link): Adjust process_file caller.  Call implicit_soname.
8446         (search_dir): Formatting.  Use and populate auxiliary cache.
8447         (main): Load and save auxiliary cache.
8448         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8449         stat64 from fstat64 to caller.
8450         (implicit_soname): New function.
8451         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8452         leave *soname as NULL.
8453         * elf/cache.c: Include libgen.h.
8454         (print_entry, print_cache, compare, save_cache, add_to_cache):
8455         Formatting and cleanups.
8456         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8457         aux_cache_file): New structures.
8458         (AUX_CACHEMAGIC): Define.
8459         (primes): New array.
8460         (aux_hash_size, aux_hash): New variables.
8461         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8462         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8463         load_aux_cache, save_aux_cache): New functions.
8464         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8465         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8466         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8467         (process_file): Adjust prototype.
8469 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8471         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8472         with __need_size_t.
8474 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8476         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8477         r_found_version structure as second parameter.
8478         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8479         (_dl_vdso_vsym): Change type of second parameter accordingly.
8480         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8481         (_libc_vdso_platform_setup): Adjust.
8482         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8483         (_libc_vdso_platform_setup): Likewise.
8485         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8486         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8487         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8488         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8489         * csu/libc-start.c: Pretty printing.
8490         Use VDSO_SETUP if defined.
8491         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8492         and let generic code call into _libc_vdso_platform_setup.
8493         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8494         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8495         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8496         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8497         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8498         for GLIBC_PRIVATE.
8499         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8500         (sysdep_rountines): Add dl-vdso.
8502         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8503         of routines.
8505         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8506         attribute_hidden to __vdso_gettimeofday prototype.
8508 2007-08-12  Roland McGrath  <roland@redhat.com>
8510         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8511         From: Karl Berry <karl@freefriends.org>.
8513 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8515         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8516         an atime update for the files we read.
8518 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8520         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8522         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8523         instead of mkstemp.
8525         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8526         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8527         * misc/mkostemp.c: New file.
8528         * misc/mkostemp64.c: New file.
8529         * stdlib/stdlib.h: Declare the new functions.
8530         * sysdeps/posix/tempname.c: Add new parameter which is added to
8531         the flags for open.  Remove __GT_BIGFILE handling.
8532         * stdio-common/tempname.c: Likewise.
8533         * include/stdio.h: Adjust __gen_tempname prototype.
8534         Renumber __GT_* constants.
8535         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8536         * misc/mkdtemp.c: Likewise.
8537         * misc/mkstemp.c: Likewise.
8538         * misc/mkstemp64.c: Likewise.
8539         * misc/mktemp.c: Likewise.
8540         * stdio-common/tempnam.c: Likewise.
8541         * stdio-common/tmpfile.c: Likewise.
8542         * stdio-common/tmpfile64.c: Likewise.
8543         * stdio-common/tmpnam.c: Likewise.
8544         * stdio-common/tmpnam_r.c: Likewise.
8546 2007-08-10  Roland McGrath  <roland@frob.com>
8548         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8549         New macros.
8550         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8551         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8553 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8555         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8556         possible.
8557         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8558         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8559         * nss/nss_files/files-have_o_cloexec.c: New file.
8561         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8562         available.
8564 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8566         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8567         ___new_wcstold_l): New weak aliases.
8568         (strtold_l, wcstold_l): Use them as second argument for
8569         long_double_symbol.
8571 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8573         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8574         register in test for error.
8576         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8577         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8579         * po/sv.po: Update from translation team.
8581 2007-08-06  Roland McGrath  <roland@redhat.com>
8583         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8584         Remove __strto*_l inlines.
8585         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8586         * stdlib/strtod.c: Add libc_hidden_def.
8587         * stdlib/strtod_l.c: Likewise.
8588         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8589         for __new_strtold and __new_wcstold.
8590         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8591         __STRTOF, STRTOF.
8592         * stdlib/strtol.c: Add libc_hidden_def.
8593         * stdlib/strtol_l.c: Likewise.
8594         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8595         strtoq.
8597         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8599         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8600         * scripts/data/localplt-generic.data: ... here.
8601         * elf/Makefile (check-data): Get generic file if no other.
8602         ($(objpfx)check-localplt.out): Make target unconditional.
8604         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8605         Use ElfW(Nhdr).
8607 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8609         * po/zh_CN.po: Updated translation from translation team.
8611 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8614         Don't use CGOTSETUP and CGOTRESTORE macros.
8616 2007-08-04  Roland McGrath  <roland@redhat.com>
8618         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8620 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8622         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8623         __extension__ around the whole statement expression.
8625 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8627         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8628         elements during initialization.
8630         * po/pl.po: Updated translation from translation team.
8631         * po/tr.po: Likewise.
8632         * po/nl.po: Likewise.
8634 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8636         * rt/aio.h: Add __nonnull attributes.
8638 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8640         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8641         * stdlib/Makefile (tests): Add tst-strtod5.
8642         (tst-strtod5-ENV): New.
8643         * stdlib/tst-strtod5.c: New file.
8645         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8646         failed.
8647         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8648         on failure.
8650         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8651         allocated.
8653 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8655         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8656         numbers.
8658 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8660         * io/Makefile (aux): Add have_o_cloexec.
8661         * include/fcntl.h: Declare __have_o_cloexec.
8662         * io/have_o_cloexec.c: New file.
8663         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8664         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8665         fcntl call if not necessary.
8666         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8667         of local variable.
8669         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8670         Avoid memset, add explicit initialization.
8671         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8672         to the end and change into zero-sized array.
8673         Move lock member to fill a hole on 64-bit platforms.
8675         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8676         inline functions.
8677         * include/stdlib.h: Add __strto*_internal prototypes here.
8678         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8679         inline functions.
8680         * include/wchar.h: Add __wcsto*_internal prototypes.
8681         * sysdeps/generic/inttypes.h: No need to protect the declaration
8682         of the __strto*_internal and __wcsto*_internal members here.
8684         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8686 2007-08-02  Roland McGrath  <roland@redhat.com>
8688         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8689         $(inst_bindir)/getconf if possible.
8691         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8692         (generated): Add it.
8693         ($(inst_libexecdir)/getconf): Use it.
8695 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8697         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8698         /proc is faster and sufficient.  /sys is still needed for
8699         __get_nprocs_conf.
8701 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8703         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8704         syscall as __fallocate64.
8705         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8706         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8708 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8710         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8711         value.
8713         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8714         if off_t is different rank from size_t.
8716         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8717         uw_frame_state_for): Avoid type punning warnings.
8718         * sysdeps/generic/unwind-dw2-fde-glibc.c
8719         (_Unwind_IteratePhdrCallback): Likewise.
8720         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8721         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8722         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8723         pointers.
8725 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8727         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8728         total processors using sysfs.
8729         (__get_nprocs): Use sysfs to determine which processors are online.
8731 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8733         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8734         syscall arguments count.
8736         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8738 2007-07-30  Roland McGrath  <roland@redhat.com>
8740         * manual/libc.texinfo: Update copyrights, formatting magic, and
8741         @dircategory.  From Karl Berry <karl@freefriends.org>.
8743 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8745         [BZ #4860]
8746         * io/Makefile (headers): Add bits/fcntl2.h.
8748         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8749         using gcc builtin.
8750         (__CPU_EQUAL_S): Likewise.
8752         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8753         (tests): Add tst-cpuset.
8754         * posix/sched_cpualloc.c: New file.
8755         * posix/sched_cpufree.c: New file.
8756         * posix/tst-cpuset.c: New file.
8757         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8758         GLIBC_2.7.
8759         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8760         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8761         macros.  Define CPU_*_S macros.
8763 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8765         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8766         entry.
8768         [BZ #4858]
8769         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8770         #.0g and value rounded to 1.0.
8771         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8773 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8775         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8776         for int_frac_digits and frac_digits.
8778         * login/logout.c (logout): Avoid aliasing violation.
8779         * login/logwtmp.c (logwtmp): Likewise.
8781         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8783         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8784         to avoid warning.
8785         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8786         warning.
8787         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8788         warning.
8789         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8790         to avoid warnings.
8792         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8793         void **.
8794         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8796         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8797         char * to avoid warning.
8798         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8800         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8802         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8803         allocate_arrays): Cast second argument to charmap_find_symbol
8804         to char * to avoid warnings.
8806         * locale/programs/repertoire.c (repertoire_new_char): Change
8807         from_nr, to_nr and cnt to unsigned long, adjust printf format
8808         string.
8810         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8811         Cast second argument to new_element to char * to avoid warnings.
8813         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8815         * intl/gettextP.h (struct loaded_domain): Change plural to const
8816         struct expression *.
8817         * intl/plural-eval.c (plural_eval): Change first argument to
8818         const struct expression *.
8819         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8820         argument to const struct expression **.
8821         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8822         prototypes.
8823         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8824         in call to __gettext_free_exp.
8826         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8827         unitialized wstring/wpattern var warnings.
8829         * posix/runtests.c (struct a_test): Make data field const char *.
8831         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8832         vars if not LDBL_MANT_DIG >= 106.
8834         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8836         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8837         __find_specmb to avoid warning.
8839         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8841         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8842         to avoid warnings.
8844         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8845         initializer.
8847         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8848         tv var when it will be actually used.
8850         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8851         to avoid warnings.
8853         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8854         char array resp. pointer.
8855         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8856         char array.
8857         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8858         to const unsigned char **.
8859         (ucs4_to_cns11643): Change second argument to unsigned char *.
8860         * iconvdata/euc-tw.c (BODY): Change endp type to
8861         const unsigned char *.
8862         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8863         to unsigned char *.
8864         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8865         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8866         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8867         types to unsigned char pointers/arrays instead of char.
8868         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8869         to unsigned char *.
8870         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8871         * iconvdata/jis0212.h: Include assert.h.
8872         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8873         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8874         of trying to handle that.
8875         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8876         shut up a warning.
8877         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8878         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8879         two dimensional const unsigned char arrays.
8880         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8881         Initialize endp to inptr to shut up a warning.
8883 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8885         [BZ #4772]
8886         * time/strptime_l.c (__strptime_internal): Silently ignore
8887         strftime modifiers and field width in recursive calls.
8889         * include/time.h (enum ptime_locale_status): Remove.
8890         (__strptime_internal): Remove decided and era_cnt arguments,
8891         add statep argument.
8892         * time/strptime_l.c (__strptime_internal): Remove decided
8893         and era_cnt arguments, add statep argument.  Don't recompute
8894         any fields in recursive calls, only update caller's tm
8895         and state, if recursive call fails, don't change tm nor
8896         any state.
8897         (get_alt_number): Adjust.
8898         (recursive): Adjust caller.
8899         (strptime): Likewise.
8900         * time/strptime.c (strptime): Likewise.
8902 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8904         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8905         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8906         if from and to charsets are the same.
8907         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8908         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8909         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8911 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8913         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8914         Don't define wint_t when __need_mbstate_t unless it
8915         is necessary.
8916         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8917         in the typedef if possible.
8918         * wctype/wctype.h (wint_t): Define by including
8919         wchar.h with __need_wint_t instead of including stddef.h
8920         with __need_wint_t and as fallback definining it ourselves.
8921         * iconv/gconv.h (__need_wint_t): Define before including
8922         wchar.h.
8923         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8924         or _GLIBCPP_USE_WCHAR_T.
8925         (__need_wchar_t): Don't define
8926         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8927         (__need_wint_t): Don't define before including stddef.h,
8928         define before including wchar.h only if _LIBC or
8929         _GLIBCPP_USE_WCHAR_T.
8930         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8931         * sysdeps/mach/hurd/_G_config.h: Likewise.
8932         * sysdeps/generic/_G_config.h: Likewise.
8933         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8934         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8935         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8936         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8938 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8940         * sysdeps/posix/posix_fallocate64.c: Undefine
8941         __posix_fallocate64_l64 before alias handling.
8942         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8943         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8944         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8945         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8947         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8949 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8951         * locale/programs/ld-collate.c (atwc): New variable.
8952         (add_to_tablewc): New toplevel function, moved from collate_output.
8953         (collate_output): Remove add_to_tablewc nested function.
8955         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8956         (name_insert): New function.
8957         (write_output): Remove hash_table and hash_size vars and name_insert
8958         nested function.
8960 2007-07-24  Roland McGrath  <roland@redhat.com>
8962         * Makerules (install-others-programs-nosubdir): New target.
8963         (install-no-libc.a-nosubdir): Depend on it.
8965         * iconv/Makefile (install-others-programs): Set this instead of
8966         install-others.
8967         * login/Makefile (install-others-programs): Likewise.
8968         * posix/Makefile (install-others-programs): Likewise.
8970         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8971         dependencies.
8973 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8975         * io/Makefile (tests): Add tst-posix_fallocate.
8976         * io/tst-posix_fallocate.c: New file.
8978         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8979         __ASSUME_FALLOCATE.
8981 2007-07-22  Roland McGrath  <roland@frob.com>
8983         * hurd/getdport.c: Add missing copyright year update.
8985         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8986         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8988 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
8990         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8992         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8993         O_CLOEXEC is needed.
8994         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8995         Avoid additional fcntl to set O_CLOEXEC if not needed.
8996         * nis/nss_compat/compat-initgroups.c: Likewise.
8997         * nis/nss_compat/compat-pwd.c: Likewise.
8998         * nis/nss_compat/compat-spwd.c: Likewise.
9000 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9002         [BZ #3665]
9003         * manual/errno.texi: Change ECANCELED value to 119.
9005         [BZ #4610]
9006         * mach/lock-intern.h: Include <sys/cdefs.h>.
9008         [BZ #4178]
9009         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9010         reading A.
9012         [BZ #4126]
9013         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9014         to __sigsuspend.
9016         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9018 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9020         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9021         `__ASSEMBLER__'.
9022         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9024 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9026         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9027         descriptor received from nscd.
9029         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9031         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9032         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9033         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9034         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9035         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9036         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9038 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9040         [BZ #4816]
9041         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9043         [BZ #4813]
9044         * login/forkpty.c (forkpty): Close master and slave fds on
9045         fork failure.  Patch by
9046         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9048 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9050         * include/features.h (__USE_ISOC95): New define.
9051         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9052         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9053         for -std=iso9899:199409.
9054         * CONFORMANCE: Remove comments about unsupported AMD1.
9056 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9058         * sysdeps/ia64/sched_cpucount.c: New file.
9059         * sysdeps/powerpc/sched_cpucount.c: New file.
9061         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9062         __BEGIN_DECLS/__END_DECLS around the prototype.
9063         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9064         pointer to const cpu_set_t.
9066         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9067         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9068         __need_size_t and include stddef.h.
9069         * sysvipc/sys/msg.h: Likewise.
9070         * posix/sched.h: Likewise.
9071         * hurd/hurd/signal.h (__need_size_t): Define.
9073         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9074         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9075         no longer defines wint_t or wchar_t.
9077         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9078         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9079         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9080         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9081         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9082         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9083         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9084         * debug/printf_chk.c (__printf_chk): Likewise.
9085         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9086         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9088         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9089         Define.
9091         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9092         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9094 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9096         [BZ #4792]
9097         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9098         * malloc/malloc.h (realloc): Likewise.
9100         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9101         if one of proc_file_chain streams has that fileno.
9102         * stdio-common/Makefile (tests): Add tst-popen2.
9103         * stdio-common/tst-popen2.c: New test.
9105 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9107         * elf/ldconfig.c: Allow GPLv2 or any later version.
9108         * elf/readlib.c: Likewise.
9109         * elf/chroot_canon.c: Likewise.
9110         * elf/cache.c: Likewise.
9111         * nscd/mem.c: Likewise.
9112         * nscd/getpwuid_r.c: Likewise.
9113         * nscd/grpcache.c: Likewise.
9114         * nscd/aicache.c: Likewise.
9115         * nscd/getsrvbynm_r.c: Likewise.
9116         * nscd/nscd.c: Likewise.
9117         * nscd/servicescache.c: Likewise.
9118         * nscd/getsrvbypt_r.c: Likewise.
9119         * nscd/initgrcache.c: Likewise.
9120         * nscd/gethstbyad_r.c: Likewise.
9121         * nscd/gethstbynm2_r.c: Likewise.
9122         * nscd/getgrnam_r.c: Likewise.
9123         * nscd/nscd_setup_thread.c: Likewise.
9124         * nscd/getpwnam_r.c: Likewise.
9125         * nscd/gai.c: Likewise.
9126         * nscd/connections.c: Likewise.
9127         * nscd/dbg_log.c: Likewise.
9128         * nscd/cache.c: Likewise.
9129         * nscd/hstcache.c: Likewise.
9130         * nscd/nscd_conf.c: Likewise.
9131         * nscd/getgrgid_r.c: Likewise.
9132         * nscd/pwdcache.c: Likewise.
9133         * catgets/gencat.c: Likewise.
9134         * locale/programs/linereader.h: Likewise.
9135         * locale/programs/locarchive.c: Likewise.
9136         * locale/programs/ld-paper.c: Likewise.
9137         * locale/programs/locfile-kw.h: Likewise.
9138         * locale/programs/ld-address.c: Likewise.
9139         * locale/programs/xmalloc.c: Likewise.
9140         * locale/programs/ld-time.c: Likewise.
9141         * locale/programs/localedef.c: Likewise.
9142         * locale/programs/simple-hash.c: Likewise.
9143         * locale/programs/xstrdup.c: Likewise.
9144         * locale/programs/ld-numeric.c: Likewise.
9145         * locale/programs/locfile-kw.gperf: Likewise.
9146         * locale/programs/ld-collate.c: Likewise.
9147         * locale/programs/charmap-kw.gperf: Likewise.
9148         * locale/programs/charmap.h: Likewise.
9149         * locale/programs/charmap-kw.h: Likewise.
9150         * locale/programs/config.h: Likewise.
9151         * locale/programs/locfile.c: Likewise.
9152         * locale/programs/ld-ctype.c: Likewise.
9153         * locale/programs/charmap.c: Likewise.
9154         * locale/programs/ld-messages.c: Likewise.
9155         * locale/programs/repertoire.h: Likewise.
9156         * locale/programs/locale.c: Likewise.
9157         * locale/programs/ld-name.c: Likewise.
9158         * locale/programs/linereader.c: Likewise.
9159         * locale/programs/locfile.h: Likewise.
9160         * locale/programs/3level.h: Likewise.
9161         * locale/programs/ld-monetary.c: Likewise.
9162         * locale/programs/ld-measurement.c: Likewise.
9163         * locale/programs/charmap-dir.c: Likewise.
9164         * locale/programs/ld-identification.c: Likewise.
9165         * locale/programs/localedef.h: Likewise.
9166         * locale/programs/charmap-dir.h: Likewise.
9167         * locale/programs/repertoire.c: Likewise.
9168         * locale/programs/simple-hash.h: Likewise.
9169         * locale/programs/ld-telephone.c: Likewise.
9170         * locale/programs/locale-spec.c: Likewise.
9171         * locale/programs/locfile-token.h: Likewise.
9172         * posix/getconf.c: Likewise.
9173         * iconv/dummy-repertoire.c: Likewise.
9174         * iconv/iconv_charmap.c: Likewise.
9175         * iconv/iconvconfig.c: Likewise.
9176         * iconv/iconv_prog.c: Likewise.
9177         * malloc/memusagestat.c: Likewise.
9178         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9180 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9182         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9183         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9184         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9185         check for the first argument.
9187 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9189         [BZ #4775]
9190         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9191         (__tgmath_real_type): Fix if expr is const int or other const
9192         qualified integral type.
9193         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9194         expressions and handle const qualified arguments.
9195         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9196         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9197         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9198         statement expressions.
9199         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9200         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9201         (__TGMATH_UNARY_IMAG): Define.
9202         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9203         * math/Makefile (tests): Add test-tgmath2.
9204         (CFLAGS-test-tgmath2.c): Add.
9205         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9206         count_cfloat, count_cldouble): New variables.
9207         (NCCALLS): Define.
9208         (main): Check number of complex calls as well.
9209         (F(compile_test)): Add complex tests and tests with const qualified
9210         arguments.
9211         (y, z, ccount): Define.
9212         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9213         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9214         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9215         F(cproj)): New functions.
9216         * math/test-tgmath2.c: New test.
9218 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9220         [BZ #4776]
9221         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9222         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9223         instead output ".".
9224         * dlfcn/Makefile (distribute): Add glreflib3.c.
9225         (module-names): Add glreflib3.
9226         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9227         glreflib1.so.
9228         (LDFLAGS_glreflib3.so): New.
9229         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9230         glreflib1.so.
9231         * dlfcn/glreflib3.c: New file.
9233         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9234         returned -1, return NULL.
9235         * intl/explodename.c (_nl_explode_name): Return -1 if
9236         _nl_normalize_codeset failed.
9238 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9240         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9241         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9242         and avoid branch misspredicts for > 31 bytes memset case.
9243         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9244         Remove toc ref to __cache_line_size.
9246         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9247         to get ISA-V2.0 branch hints.
9248         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9249         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9250         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9251         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9252         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9253         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9254         Remove toc ref to __cache_line_size.
9256         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9257         Include math_ldbl_opt.h.
9259 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9261         [BZ #4773]
9262         * time/strptime_l.c (__strptime_internal): Implement greedy
9263         matching of weekday and month names.
9265 2007-07-09  Roland McGrath  <roland@redhat.com>
9267         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9268         (ELF_NOTE_ABI): Use it.
9269         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9271 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9273         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9274         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9276 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9278         [BZ #4745]
9279         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9280         in loop to look for conversion specifier to avoid testing of
9281         wrong errno value.
9282         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9283         * stdio-common/bug18.c: New file.
9284         * stdio-common/bug18a.c: New file.
9285         * stdio-common/bug19.c: New file.
9286         * stdio-common/bug19a.c: New file.
9288 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9290         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9291         running awk script.
9293 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9295         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9296         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9297         Return NULL if mmap failed instead of asserting it does not.
9298         (calloc): Check for integer overflow.
9300         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9301         than LONG_MAX / 10.
9303 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9305         [BZ #4702]
9306         * nis/nss-default.c: Include errno.h.
9307         (init): Preserve errno.
9309 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9311         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9313 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9315         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9317 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9319         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9321 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9323         * sysdeps/s390/dl-procinfo.c: New file.
9324         * sysdeps/s390/dl-procinfo.h: New file.
9325         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9327 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9329         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9330         in PT_NOTE segments with multiple notes.
9331         * elf/readelflib.c (process_elf_file): Likewise.
9333 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9335         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9336         ISO C compliant.
9338 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9340         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9342 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9344         * include/link.h: Don't include rtld-lowlevel.h.
9345         (struct link_map): Remove l_scope_lock.
9346         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9347         (_dl_scope_free_list): New field (variable) in _rtld_global.
9348         (DL_LOOKUP_SCOPE_LOCK): Remove.
9349         (_dl_scope_free): New prototype.
9350         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9351         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9352         (_dl_profile_fixup): Likewise.
9353         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9354         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9355         THREAD_GSCOPE_RESET_FLAG around it.
9356         * elf/dl-close.c (_dl_close_worker): Don't use
9357         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9358         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9359         scopes were queued or if l_scope_mem has been abandoned.
9360         * elf/dl-open.c (_dl_scope_free): New function.
9361         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9362         * elf/dl-support.c (_dl_scope_free_list): New variable.
9363         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9364         Remove DL_LOOKUP_SCOPE_LOCK handling.
9365         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9366         handling.
9367         * elf/dl-object.c (_dl_new_object): Don't use
9368         __rtld_mrlock_initialize.
9370 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9372         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9373         to fill in holes
9374         (rtld_global_ro): Likewise.
9376 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9378         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9379         Move PT_LOAD checking to...
9380         (_dl_addr_inside_object): ... here, new function.
9381         * elf/dl-sym.c (do_sym): If not l_contiguous,
9382         call _dl_addr_inside_object.
9383         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9384         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9385         * elf/dl-open.c (dl_open_worker): Likewise.
9386         (_dl_addr_inside_object): New function if IS_IN_rtld.
9387         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9388         holes are present or are PROT_NONE protected.
9389         * include/link.h (struct link_map): Add l_contiguous field.
9390         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9392 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9393             Tomas Janousek  <tjanouse@redhat.com>
9394             Ulrich Drepper  <drepper@redhat.com>
9396         [BZ #4647]
9397         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9398         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9399         socket.
9400         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9401         unused member a bitmap.
9402         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9403         servers are configured.
9405 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9407         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9409 2007-06-17  Andreas Schwab  <schwab@suse.de>
9411         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9413 2007-06-16  Andreas Jaeger  <aj@suse.de>
9415         [BZ #4125]
9416         * sysdeps/unix/sysv/linux/sys/ptrace.h
9417         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9418         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9419         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9420         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9421         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9422         Define.
9423         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9424         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9425         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9426         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9428 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9430         [BZ #4599]
9431         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9432         determining whether there are IPv4/IPv6 addresses, ignore loopback
9433         addresses.
9435 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9437         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9438         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9439         as the return type.  Change type of "r" variable to CMPtype.
9440         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9441         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9442         * soft-fp/gedf2.c (__gedf2): Likewise.
9443         * soft-fp/gesf2.c (__gesf2): Likewise.
9444         * soft-fp/getf2.c (__getf2): Likewise.
9445         * soft-fp/ledf2.c (__ledf2): Likewise.
9446         * soft-fp/lesf2.c (__lesf2): Likewise.
9447         * soft-fp/letf2.c (__letf2): Likewise.
9448         * soft-fp/unorddf2 (__unorddf2): Likewise.
9449         * soft-fp/unordsf2 (__unordsf2): Likewise.
9450         * soft-fp/unordtf2 (__unordtf2): Likewise.
9452 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9454         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9455         make sure gcc doesn't mess around with this.
9457 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9459         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9461 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9463         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9464         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9465         at most once per _dl_close_worker.
9467 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9469         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9470         __sched_cpucount as const.
9471         * posix/sched_cpucount.c: Adjust.
9473         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9474         instruction for counting bits.
9475         * sysdeps/x86_64/sched_cpucount.c: New file.
9477 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9479         * configure.in: Avoid variable named BASH.
9480         * config.make.in: Likewise.
9481         Patch in part by Mike Frysinger.
9483 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9485         [BZ #4586]
9486         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9487         pseudo-zeros as zero.
9488         * sysdeps/x86_64/ldbl2mpn.c: New file.
9489         * sysdeps/ia64/ldbl2mpn.c: New file.
9491 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9493         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9494         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9495         Remove unreachable code at the end.
9497 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9499         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9500         ldbl-128ibm in comment.
9501         (fpclassifyl): Correct classification of denormals.
9502         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9503         return value for MIN denormal. Rewrite using long double math too
9504         correctly handle denormals and canonicalize the results.
9506 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9508         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9509         (__mpn_construct_long_double): Fix conversion where result ought
9510         to be smaller than __LDBL_MIN__, or the low double should be
9511         denormal.  Fix decision where to negate low double - honor round
9512         to even rules.
9513         * stdio-common/tst-sprintf2.c: Include string.h.
9514         (COMPARE_LDBL): Define.
9515         (TEST): Also test whether a string hexadecimal float representation
9516         can be parsed back to the number.
9517         (main): Add a couple of further tests.
9519 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9521         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9522         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9523         is non-zero, but smaller than 2 * __DBL_MIN__.
9524         * stdio-common/tst-sprintf2.c: New test.
9525         * stdio-common/Makefile (tests): Add tst-sprintf2.
9527         * math/test-misc.c (main): Don't run last batch of tests with
9528         IBM long double format.
9530 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9532         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9533         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9534         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9535         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9536         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9537         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9538         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9539         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9540         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9541         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9544         New file.
9545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9546         New file.
9547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9548         New file.
9549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9550         New file.
9551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9552         New file.
9553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9555         New file.
9556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9557         New file.
9558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9559         New file.
9560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9561         New file.
9562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9563         New file.
9565 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9567         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9568         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9569         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9570         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9571         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9572         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9573         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9574         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9576 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9578         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9579         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9580         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9581         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9582         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9583         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9584         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9585         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9587 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9589         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9590         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9591         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9592         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9594 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9596         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9597         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9599 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9601         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9602         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9603         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9604         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9606 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9608         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9609         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9611 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9613         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9614         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9616         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9617         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9618         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9619         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9621 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9623         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9624         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9625         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9626         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9628 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9630         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9631         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9632         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9633         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9634         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9635         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9637 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9639         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9640         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9641         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9642         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9644 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9646         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9647         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9648         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9649         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9650         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9651         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9652         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9653         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9654         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9655         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9656         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9657         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9658         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9659         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9660         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9661         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9663 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9665         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9666         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9668 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9670         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9671         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9673 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9675         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9676         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9677         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9678         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9679         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9680         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9681         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9682         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9683         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9684         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9686 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9688         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9690 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9692         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9693         branch miss-predicts. Ensure that cache line crossing does not impact
9694         dispatch grouping.
9696 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9698         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9699         "../../powerpc32/power4/memcopy.h".
9700         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9701         "../../powerpc32/power4/wordcopy.c".
9703 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9705         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9706         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9707         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9708         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9709         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9710         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9712 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9714         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9716 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9718         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9719         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9720         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9721         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9722         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9723         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9724         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9725         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9727 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9729         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9731 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9733         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9734         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9735         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9736         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9737         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9738         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9739         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9741 2007-05-29  Roland McGrath  <roland@redhat.com>
9743         * po/Makefile (po-sed-cmd): New variable.
9744         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9746 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9748         * crypt/md5-crypt.c: Fix comment.
9750         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9751         of crashing.  When this is the case or if the reply is malformed,
9752         don't try to close the new file descriptor since it does not
9753         exist.
9754         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9756 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9758         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9759         if __NR_utimensat is not defined.
9761 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9763         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9765 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9767         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9768         (open): Fix comment typos.  Don't call __open_2 if flags
9769         is a compile time constant without O_CREAT.
9770         (__open64_2): Add nonnull attribute.
9771         (open64): Fix comment typos.  Don't call __open64_2 if flags
9772         is a compile time constant without O_CREAT.
9773         (__openat_2): Add nonnull attribute, fix nonnull attribute
9774         on redirect.
9775         (openat): Fix comment typos.  Don't call __openat_2 if flags
9776         is a compile time constant without O_CREAT.
9777         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9778         on redirect.
9779         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9780         is a compile time constant without O_CREAT.
9782 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9784         * Makerules (sysd-rules): Define PTW for ptw-* files.
9785         * Versions: Define GLIBC_2.7 for libc.
9786         * include/stdio.h: Declare __fortify_fail.
9787         * debug/fortify_fail.c: New file.
9788         * debug/Makefile (routines): Add fortify_fail.
9789         * debug/chk_fail.c: Use __fortify_fail.
9790         * debug/stack_chk_fail.c: Likewise.
9791         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9792         __openat64_2 for GLIBC_2.7.
9793         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9794         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9795         and fails if necessary.
9796         * io/open64.c: Likewise.
9797         * io/openat.c: Likewise.
9798         * io/openat64.c: Likewise.
9799         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9800         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9801         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9802         * io/bits/fcntl2.h: New file.
9803         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9804         __openat64_2.
9805         * include/bits/fcntl2.h: New file.
9806         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9807         Add open_2.
9808         * sysdeps/unix/sysv/linux/open_2.c: New file.
9810 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9812         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9813         as second parameter to handle_intel.
9815         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9816         the entry.
9818         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9819         handling to ...
9820         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9821         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9822         cacheinfo.
9823         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9824         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9825         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9827         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9829 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9831         [BZ #4525]
9832         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9833         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9834         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9836         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9838         [BZ #4514]
9839         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9840         reinitialize workend at the start of each do_positional format spec
9841         loop, free workstart before do_positional loops.
9842         (printf_unknown): Fix size of work_buffer.
9843         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9845         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9846         (public_sET_STATe): If ms->version < 3, put all chunks into
9847         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9848         chunks.
9850         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9851         * malloc/hooks.c: Likewise.
9852         * malloc/arena.c: Likewise.
9853         * malloc/malloc.c (do_check_malloc_state): Don't assert
9854         n_mmaps is not greater than n_mmaps_max.  This removes the need
9855         for the previous change.
9857         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9858         2007-05-07 commit.
9860 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9862         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9863         Define for kernel >= 2.6.22.
9865 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9867         * elf/dl-close.c (_dl_close_worker): When removing object from
9868         global scope, wait for all lookups to finish afterwards.
9869         * elf/dl-open.c (add_to_global): When global scope array must
9870         grow, allocate a new one and free old array only after all
9871         lookups finish.
9872         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9873         (_dl_lookup_symbol_x): Likewise.
9874         * elf/dl-support.c: Define _dl_wait_lookup_done.
9875         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9876         _dl_wait_lookup_done.
9878         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9879         not overlapping with arena.
9881         * malloc/mcheck.c (reallochook): If size==0, free the block.
9883         * rt/tst-shm.c: Use fstat64 instead of fstat.
9885         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9886         __NR_sync_file_range is not defined.
9888 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9890         Dummy files to prevent stub versions from being used.
9891         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9892         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9893         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9894         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9896         * version.h (VERSION): Set to 2.6.90.
9898 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9900         * version.h (VERSION): Define to 2.6.
9901         * include/features.h (__GLIBC_MINOR__): Define to 6.
9903         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9905         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9906         sizes.
9908 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9910         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9911         number of mmaps.  n_mmaps_max is the target.
9912         * malloc/hooks.c: Likewise.
9913         * malloc/arena.c: Likewise.
9915 2007-05-12  Andreas Jaeger  <aj@suse.de>
9917         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9918         getpid.
9920 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9922         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9923         adding new variables.
9925         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9926         optimize.  Completely extend global scope array before making the
9927         new entries visible.
9929 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9931         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9932         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9933         tst-getcpu.
9935         * include/link.h: Move l_version and l_nversion members around to
9936         fill gaps.
9938         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9940         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9941         (__sched_setaffinity_new): If syscall was successful and
9942         RESET_VGETCPU_CACHE is defined, use it before returning.
9943         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9945         * io/sys/stat.h: Make sure struct timespec is defined for
9946         __USE_ATFILE.
9948         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9949         UTIME_OMIT.
9950         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9951         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9952         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9953         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9954         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9955         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9956         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9957         * io/sys/stat.h: Declare utimensat, futimens.
9958         * io/utimensat.c: New file.
9959         * io/futimens.c: New file.
9960         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9961         * sysdeps/unix/sysv/linux/futimens.c: New file.
9962         * io/Makefile (routines): Add utimensat, futimens.
9963         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9964         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9965         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9966         available.
9968         * include/sys/cdefs.h: Redefine __nonnull so that test for
9969         incorrect parameters in the libc code itself are not omitted.
9971 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9973         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9974         exception in addition to inexact when asked to raise only FE_INEXACT.
9976         [BZ #3427]
9977         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9978         in *envp.
9980 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9982         [BZ #4403]
9983         * string/strfry.c (strfry): Make result more random.
9985 2007-05-07  Richard Henderson  <rth@redhat.com>
9987         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9988         if __NO_LONG_DOUBLE_MATH.
9989         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9990         available in the compiler, add .arch directive to the assembly.
9992 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
9994         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9995         compat_symbol to GLIBC_2_1.
9996         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9997         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9998         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9999         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10000         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10001         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10002         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10003         libc, not libm.
10004         (__isnanl): New compat_symbol.
10006 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10007             Jakub Jelinek  <jakub@redhat.com>
10009         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10010         (new_heap): Initialize mprotect_size.
10011         (grow_heap): When growing, only mprotect from mprotect_size till
10012         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10013         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10015 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10016             Peter Bergner  <bergner@us.ibm.com>
10018         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10019         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10020         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10021         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10022         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10023         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10024         Call __fe_mask_env() if all FP exceptions disabled.
10025         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10026         from old FPSCR to new fenv to propagate DFP rounding modes.
10027         Call __fe_mask_env() if FP exceptions previously enabled.
10028         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10029         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10030         transitioning from all exceptions disabled to any exception enabled
10031         or visa versa.
10032         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10033         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10034         when transitioning from all exceptions disabled to any exception
10035         enabled or visa versa.
10036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10043 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10045         [BZ #4465]
10046         * posix/unistd.h: Remove __THROW from fdatasync.
10048 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10050         [BZ #4465]
10051         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10053 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10055         * stdio-common/vfprintf.c (process_string_arg): Optimize
10056         ridiculous precision in wide char code printing multi-byte string.
10057         Reported by Jim Meyering <jim@meyering.net>.
10059         [BZ #4131]
10060         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10061         boundaries to work around systems with overlapping binary loading.
10062         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10064 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10066         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10067         __mbsnrtowcs after last change.
10069         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10070         (get_ident): Likewise.
10072 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10074         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10075         with setting the sticky bit.
10076         * math/test-misc.c (main): Add more truncation tests.
10078 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10080         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10081         double in the function declaration.
10082         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10083         double in the function declaration.
10084         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10085         float in the function declaration.
10086         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10087         float in the function declaration.
10089         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10090         denormal operands.  Do not generate FP_EX_DENORM exception.
10091         (FP_UNPACK_RAW_EP): Ditto.
10092         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10093         undefined _FP_UNPACK_RAW_E.
10094         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10095         undefined _FP_UNPACK_RAW_EP.
10096         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10097         undefined _FP_PACK_RAW_E.
10098         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10099         undefined _FP_PACK_RAW_EP.
10101         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10102         _FP_FRAC_COPY_2.
10103         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10104         _FP_FRAC_COPY_4.
10106 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10107             Jakub Jelinek  <jakub@redhat.com>
10109         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10110         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10111         this case.
10112         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10114 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10116         * math/test-misc.c (main): Add tests for rounding long double
10117         values close to smallest double denormalized value to double.
10119 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10121         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10122         condition for truncating to 0.  Set sticky bit for such
10123         truncation.
10125 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10127         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10128         fixed length array for ignore.
10130 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10132         [BZ #4438]
10133         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10134         stack for large precisions.
10135         * stdio-common/test-vfprintf.c (main): Add test for large
10136         precision.
10138 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10140         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10141         for exponent 0.
10142         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10144         [BZ #4439]
10145         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10146         account in the size check.
10147         * resolv/tst-inet_ntop.c: New test.
10148         * resolv/Makefile (tests): Add tst-inet_ntop.
10150 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10151             Jakub Jelinek  <jakub@redhat.com>
10153         [BZ #4349]
10154         * malloc/malloc.c: Keep separate list for first blocks on the bin
10155         lists with a given size.  This helps skipping over list elements
10156         we know won't fit in two places.
10157         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10159 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10161         [BZ #4102]
10162         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10163         label to Teredo tunnel addresses 2001://32.
10165 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10167         * locale/programs/ld-collate.c (collate_read): Allow order_start
10168         after copy.
10170         * locale/programs/ld-collate.c (collate_read): Fix printing of
10171         error message.
10173         [BZ #3213]
10174         * locale/C-translit.h.in: Add entry for U2044.
10176         [BZ #4342]
10177         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10178         hexa-decimal floats without exponent.
10179         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10181 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10183         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10184         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10185         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10186         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10187         GLIBC_2.6.
10188         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10189         Add sched_getcpu.
10191 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10193         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10194         of 0 after the out_fail label.
10196 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10198         [BZ #4406]
10199         * iconv/gconv_charset.h (strip): Allow ':'.
10200         * iconv/iconv_open.c (iconv_open): Adjust comment.
10202 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10204         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10205         version.
10207 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10209         [BZ #4381]
10210         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10211         alignment of buffer and tmp_buffer.
10212         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10213         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10214         alignment of buffer.
10215         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10216         bigger than INT_MAX.
10217         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10218         h_errnop arguments.  Fail if buflen is too small.
10219         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10221 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10223         [BZ #4405]
10224         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10225         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10227 2007-04-22  Roland McGrath  <roland@redhat.com>
10229         * elf/elf.h (NT_PRXFPREG): New macro.
10231 2007-04-19  Andreas Jaeger  <aj@suse.de>
10233         [BZ #3905]
10234         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10235         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10236         Added.
10238 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10240         * include/sys/mman.h: Mark madvise hidden.
10241         * misc/madvise.c: Add libc_hidden_def.
10243 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10245         * nis/nis_domain_of.c (__nis_domain_of): New function.
10246         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10247         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10248         * nis/nis_call.c (rec_dirsearch): Likewise.
10249         (first_shoot): Likewise.  Remove search_parent_first argument.
10250         (struct nis_server_cache): Rename search_parent_first field
10251         to search_parent.
10252         (nis_server_cache_search, nis_server_cache_add): Rename
10253         search_parent_first argument to search_parent.
10254         (__nisfind_server): Likewise.  If search_parent, call
10255         __nis_domain_of.
10257 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10259         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10261 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10263         [BZ #4368]
10264         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10266 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10268         [BZ #4364]
10269         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10271 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10273         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10274         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10275         current number of locales in SUPPORTED.
10276         (create_archive): Initialize serial.
10277         (enlarge_archive): Preserve aliases rather than duplicating
10278         their locrecs.
10280 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10282         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10283         after _IO_un_link, not before it.
10285         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10286         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10287         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10289 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10291         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10292         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10293         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10294         Remove __THROW.
10295         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10296         _IO_file_xsgetn_maybe_mmap): Likewise.
10297         * libio/oldfileops.c (old_do_write): Likewise.
10298         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10299         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10300         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10301         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10302         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10303         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10304         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10305         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10306         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10307         _IO_file_underflow, _IO_file_underflow_mmap,
10308         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10309         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10310         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10311         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10312         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10313         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10314         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10315         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10316         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10317         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10318         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10319         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10320         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10321         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10322         _IO_adjust_column_internal, _IO_default_uflow_internal,
10323         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10324         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10325         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10326         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10327         _IO_file_close_it_internal, _IO_file_underflow_internal,
10328         _IO_file_overflow_internal, _IO_file_attach_internal,
10329         _IO_file_fopen_internal, _IO_file_sync_internal,
10330         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10331         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10332         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10333         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10334         _IO_seekpos_unlocked): Likewise.
10335         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10336         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10338 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10340         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10341         argument in xmalloc size computation.
10343 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10345         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10346         math_opt_barrier and math_force_eval macros.
10348 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10350         [BZ #3306]
10351         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10352         * sysdeps/i386/fpu/math_private.h: New file.
10353         * sysdeps/x86_64/fpu/math_private.h: New file.
10354         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10355         math_force_eval macros.  Use "+m" constraint on asm rather than
10356         "=m" and "m".
10357         * math/s_nextafter.c (__nextafter): Likewise.
10358         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10359         Likewise.
10360         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10361         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10362         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10363         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10364         math_opt_barrier and math_force_eval macros.
10365         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10366         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10367         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10368         (__nexttoward): Use math_opt_barrier and
10369         math_force_eval macros.  Use "+m" constraint on asm rather than
10370         "=m" and "m".  Only use asm to force double result if
10371         FLT_EVAL_METHOD is 2.
10372         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10373         (__nexttowardf): Use math_opt_barrier and
10374         math_force_eval macros.  Use "+m" constraint on asm rather than
10375         "=m" and "m".  Only use asm to force double result if
10376         FLT_EVAL_METHOD is not 0.
10377         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10378         (__nexttowardf): Use math_opt_barrier and
10379         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10380         x to float using asm.
10381         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10382         (__nldbl_nexttowardf): Use math_opt_barrier and
10383         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10384         x to float using asm.
10385         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10386         (__nexttowardf): Use math_opt_barrier and math_force_eval
10387         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10388         * math/bug-nextafter.c (zero, inf): New variables.
10389         (main): Add new tests.
10390         * math/bug-nexttoward.c (zero, inf): New variables.
10391         (main): Add new tests.
10393 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10395         [BZ #3427]
10396         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10397         exceptions both in SW and MXCSR.
10398         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10399         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10400         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10401         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10402         in MXCSR if SSE is available.
10403         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10404         and ldsodefs.h.
10405         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10406         Fix comment typo.
10407         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10408         Return 0 rather than 1.
10409         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10410         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10411         * math/test-fenv.c (feholdexcept_tests): New function.
10412         (main): Call it.
10414 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10416         [BZ #3427]
10417         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10418         in SW.
10420 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10422         [BZ #4344]
10423         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10424         Reported by David Anderson <davea42@earthlink.net>.
10426 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10428         * posix/sys/wait.h: Remove unnecessary forward declaration.
10430 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10432         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10433         with obj->do_servers after first_shoot.
10435 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10437         * posix/Makefile (routines): Add sched_cpucount.
10438         (tests): Add tst-cpucount.
10439         * posix/sched_cpucount.c: New file.
10440         * posix/tst-cpucount.c: New file.
10441         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10442         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10443         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10444         * posix/sched.h: Define CPU_COUNT.
10446 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10448         * posix/fnmatch.c (STRUCT): Define.
10449         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10450         * posix/fnmatch_loop.c (struct STRUCT): New type.
10451         (FCT): Add ends argument.  If ends != NULL and normal * is
10452         seen in the pattern, store current pattern and string pointers
10453         and return.  Adjust recursive calls.
10454         (EXT): Adjust FCT callers.
10455         (STRUCT): Undef at the end of the file.
10456         * posix/Makefile (tests): Add tst-fnmatch2.
10457         * posix/tst-fnmatch2.c: New test.
10459 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10461         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10462         and 1 on failure.
10464         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10465         Change last argument to unsigned int.
10467 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10469         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10471 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10473         * config.h.in (HAVE_LIBCAP): Add.
10474         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10475         sys/capabilities.h.
10476         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10477         free_caps.  Cast away const from 4th cap_set_flag argument.
10479 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10481         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10482         GLIBC_2.6.
10483         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10484         Add sync_file_range.
10485         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10487 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10489         * sysdeps/powerpc/bits/atomic.h
10490         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10491         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10492         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10493         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10494         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10495         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10496         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10497         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10498         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10499         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10500         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10501         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10502         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10503         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10504         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10505         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10506         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10507         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10508         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10509         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10511 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10513         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10514         (__cache_line_size): Define the variable here.  Add
10515         attribute_hidden, remove weak_extern.
10516         (__libc_start_main): Set __cache_line_size
10517         unconditionally.
10518         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10519         (__cache_line_size): Define the variable here.  Add
10520         attribute_hidden, remove weak_extern.
10521         (DL_PLATFORM_AUXV): Set __cache_line_size
10522         unconditionally.
10523         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10524         weak_extern, add attribute_hidden.
10525         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10526         defined in ld.so.
10527         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10528         definition.
10529         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10531 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10533         [BZ #4276]
10534         * timezone/africa: Update from tzdata2007d.
10535         * timezone/asia: Likewise.
10536         * timezone/australasia: Likewise.
10537         * timezone/backward: Likewise.
10538         * timezone/europe: Likewise.
10539         * timezone/iso3166.tab: Likewise.
10540         * timezone/leapseconds: Likewise.
10541         * timezone/northamerica: Likewise.
10542         * timezone/southamerica: Likewise.
10543         * timezone/zone.tab: Likewise.
10545         * timezone/private.h: Update from tzcode2007d.
10546         * timezone/zdump.c: Likewise.
10547         * timezone/zic.c: Likewise.
10549 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10551         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10552         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10553         variables.
10554         (nis_server_cache_search, nis_server_cache_add): New functions.
10555         (__nisfind_server): Use them.  Add dbp and flags argument, if
10556         call __nisbind_create.
10557         (__nisbind_create): Add server_used and current_ep arguments,
10558         only call __nis_findfastest if server_used is ~0.
10559         (__do_niscall2, __prepare_niscall): Adjust callers.
10560         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10561         ckey_cache_euid, ckey_cache_lock): New variables.
10562         (get_ckey): New function.
10563         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10564         __pmap_getnisport.  Save __pmap_getnisport result in
10565         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10566         key.
10567         * nis/nis_lookup.c (nis_lookup): Likewise.
10568         * nis/nis_table.c (nis_list): Likewise.
10569         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10570         prototypes.
10572         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10573         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10574         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10575         _nss_nisplus_getservbyport_r): Likewise.
10576         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10577         _nss_nisplus_getnetbyaddr_r): Likewise.
10578         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10579         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10580         _nss_nisplus_getntohost_r): Likewise.
10581         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10582         _nss_nisplus_getrpcbynumber_r): Likewise.
10584 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10586         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10587         * configure: Rebuilt.
10589         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10590         bit-fields.
10591         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10593 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10595         [BZ #2831]
10596         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10597         bit-fields.
10599 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10601         * nscd/gai.c: Include alloca.h.
10602         (__libc_use_alloca): Define.
10604 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10606         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10607         smaller scopes.
10608         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10609         (DL_DST_REQUIRED): Adjust user.
10611         * include/dlfcn.h (struct link_map): New forward decl.
10613         * inet/getnameinfo.c: Include stddef.h.
10614         (getnameinfo): Use offsetof.
10616         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10618         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10620         * string/strerror_l.c: Include stdlib.h.
10622         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10623         * config.make.in (gnu89-inline-CFLAGS): New variable.
10624         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10625         -std=gnu99.
10626         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10627         * argp/argp.h: Use it.
10628         * bits/mathinline.h: Likewise.
10629         * bits/sigset.h: Likewise.
10630         * bits/string.h: Likewise.
10631         * ctype/ctype.h: Likewise.
10632         * hurd/hurd.h: Likewise.
10633         * hurd/hurd/fd.h: Likewise.
10634         * hurd/hurd/port.h: Likewise.
10635         * hurd/hurd/signal.h: Likewise.
10636         * hurd/hurd/threadvar.h: Likewise.
10637         * hurd/hurd/userlink.h: Likewise.
10638         * io/sys/stat.h: Likewise.
10639         * libio/bits/stdio.h: Likewise.
10640         * libio/bits/stdio2.h: Likewise.
10641         * mach/lock-intern.h: Likewise.
10642         * mach/mach/mig_support.h: Likewise.
10643         * math/bits/cmathcalls.h: Likewise.
10644         * posix/bits/unistd.h: Likewise.
10645         * socket/bits/socket2.h: Likewise.
10646         * stdlib/bits/stdlib.h: Likewise.
10647         * stdlib/stdlib.h: Likewise.
10648         * string/argz.h: Likewise.
10649         * string/bits/string2.h: Likewise.
10650         * string/bits/string3.h: Likewise.
10651         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10652         * sysdeps/generic/inttypes.h: Likewise.
10653         * sysdeps/generic/machine-lock.h: Likewise.
10654         * sysdeps/generic/machine-sp.h: Likewise.
10655         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10656         * sysdeps/i386/i486/bits/string.h: Likewise.
10657         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10658         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10659         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10660         * sysdeps/mach/i386/machine-lock.h: Likewise.
10661         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10662         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10663         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10664         * sysdeps/s390/bits/string.h: Likewise.
10665         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10666         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10667         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10668         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10669         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10670         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10671         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10672         * wcsmbs/bits/wchar2.h: Likewise.
10673         * wcsmbs/wchar.h: Likewise.
10674         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10675         __extern_inline definition.
10677 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10679         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10680         NULL.
10682         [BZ #3919]
10683         * math/libm-test.inc (log_test): Test -Inf and NaN.
10684         (log10_test, log1p_test, log2_test): Test -Inf.
10685         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10686         FE_INVALID when argument is qNaN.
10687         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10688         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10689         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10690         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10691         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10692         testb $4, %ah and jump if non-zero.
10693         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10694         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10696         [BZ #4101]
10697         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10698         ancestors with the same depths.
10699         Patch by Niels Moeller <nisse@lysator.liu.se>.
10700         (filter_doc): Don't crash if argp is NULL.
10701         * argp/Makefile (tests): Add tst-argp2.
10702         * argp/tst-argp2.c: New test.
10704         [BZ #4130]
10705         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10706         open_not_cancel_2.
10707         (updwtmp_file): Likewise.
10709         [BZ #4181]
10710         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10711         (inet6_opt_append): Don't check extlen is big enough if extbuf
10712         is NULL.
10713         (inet6_opt_finish): Likewise.
10714         * inet/Makefile (tests): Add test-inet6_opt.
10715         * inet/test-inet6_opt.c: New test.
10717         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10718         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10719         NLMSG_ERR.  Instead use a page sized buffer.
10720         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10721         buffer.
10723 2007-03-14  Richard Henderson  <rth@redhat.com>
10725         * sysdeps/alpha/fpu/s_llround.c: New file.
10726         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10727         * sysdeps/alpha/fpu/s_lround.c: New file.
10728         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10729         * sysdeps/alpha/fpu/s_round.c: New file.
10730         * sysdeps/alpha/fpu/s_roundf.c: New file.
10731         * sysdeps/alpha/fpu/s_trunc.c: New file.
10732         * sysdeps/alpha/fpu/s_truncf.c: New file.
10734         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10735         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10736         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10737         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10738         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10739         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10741         * sysdeps/alpha/fpu/s_fmax.S: New file.
10742         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10743         * sysdeps/alpha/fpu/s_fmin.S: New file.
10744         * sysdeps/alpha/fpu/s_fminf.S: New file.
10745         * sysdeps/alpha/fpu/s_isnan.c: New file.
10746         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10747         * sysdeps/alpha/fpu/s_llrint.c: New file.
10748         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10749         * sysdeps/alpha/fpu/s_lrint.c: New file.
10750         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10751         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10752         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10754         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10755         (__fdimf, fdimf, __fdim, fdim): Remove.
10756         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10757         (__isnanf, __isnan, __isnanl): New.
10759 2007-03-13  Richard Henderson  <rth@redhat.com>
10761         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10763 2007-03-13  Richard Henderson  <rth@redhat.com>
10765         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10766         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10767         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10768         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10769         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10770         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10772 2007-03-13  Richard Henderson  <rth@redhat.com>
10774         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10775         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10776         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10777         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10778         Move to dl-auxv.h; initialize instead of extern weak.
10779         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10780         weak symbol.
10781         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10782         Extern instead of initialized.
10784 2007-03-13  Richard Henderson  <rth@redhat.com>
10786         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10787         __sigsuspend_nocancel.
10789 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10791         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10792         172.16/12 address range.
10794 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10796         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10797         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10798         message.
10800 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10802         [BZ #4069]
10803         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10804         earlier.
10805         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10807         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10808         for x qNaN and y either +-inf or non-integer value.
10809         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10810         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10811         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10813 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10815         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10816         from sysdep_headers.
10818 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10820         * time/tzfile.c (find_transition): Instead of a linear search try to
10821         guess the transition index, use a linear search if the result is at
10822         most 10 transitions away from the guess or binary search otherwise.
10824 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10826         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10827         memory reallocation.
10829 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10831         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10832         and fix some typos.
10833         Optimize use of TOLOWER.
10835         [BZ #3325]
10836         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10837         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10838         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10840         [BZ #3458]
10841         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10842         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10844         [BZ #4076]
10845         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10846         (open_dir_stream): Likewise.
10847         * io/Makefile (tests): Add bug-ftw5.
10848         * io/bug-ftw5.c: New file.
10850         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10851         * nscd/servicescache.c (cache_addserv): Likewise.
10853         * nscd/grpcache.c (cache_addgr): In case a record changed on
10854         refresh, adjust key_copy.
10856         [BZ #4074]
10857         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10858         refresh, adjust key_copy.
10860         [BZ #4070]
10861         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10862         special cases.
10863         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10865 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10867         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10868         optimization.
10870         * stdio-common/vfscanf.c: Small cleanups throughout.
10872 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10874         [BZ #3325]
10875         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10876         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10877         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10878         Patch by Jared Casper <jaredcasper@gmail.com>.
10880         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10881         * sysdeps/unix/opendir.c: Likewise.
10882         * sysdeps/unix/readdir.c: Likewise.
10884         [BZ #2211]
10885         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10886         point numbers.
10887         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10889         * stdio-common/vfscanf.c: Fix problems in width accounting.
10890         * stdio-common/tst-sscanf.c (double_tests): New tests.
10891         (main): Hook them up.
10893         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10894         More simplifications of floating-point reader.
10896         * stdio-common/Makefile (tests): Add tst-swscanf.
10897         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10898         testing.
10899         * stdio-common/tst-swscanf.c: New file.
10901 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10903         [BZ #2633]
10904         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10905         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10906         Remove using for __jmp_buf_tag.
10907         * locale/locale.h (struct lconv): Also define in std namespace.
10908         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10910         [BZ #3842]
10911         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10912         using __libc_enable_secure.
10914         [BZ #3818]
10915         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10917         [BZ #3745]
10918         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10919         of names for ellipsises.
10921         [BZ #3348]
10922         * malloc/memusage.sh: Cleanups.
10923         * debug/xtrace.sh: Quoting and trap changes.
10925 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10927         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10929         * locale/iso-3166.def: Update entry for Serbia.
10930         * locale/iso-4217.def: Define RSD, remove CSD.
10932         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10933         and 64-bit operations.
10935         [BZ #4040]
10936         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10937         16-bit operations.
10939         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10940         of writev.
10942 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10944         [BZ #3991]
10945         * assert/assert.h (assert): Simplify.
10946         (assert_perror): Likewise.
10947         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10949         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10950         reqdata.
10952         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10953         change: don't pass NULL in place of an integer.
10955 2007-02-02  Bruno Haible  <bruno@clisp.org>
10957         [BZ #3954]
10958         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10959         Add mapping for U+327E.
10960         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10961         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10962         mapping of 0xD9 0xE8.
10963         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10964         mapping of U+327E.
10965         Reported by Jungshik Shin <jungshik@google.com>.
10967         [BZ #3955]
10968         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10969         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10970         Reported by Jungshik Shin <jungshik@google.com>.
10972 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10974         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10975         byte variants.
10977         [BZ #4040]
10978         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10979         byte variants.  Patch mostly be tom@tommay.net.
10981 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10983         [BZ #3996]
10984         * posix/glob.c (attribute_hidden): Define if not defined.
10985         (glob): Unescape dirname, filename or username when needed and not
10986         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10987         is NULL.  Handle unescaped [ in pattern without closing ].
10988         Don't pass GLOB_CHECK down to recursive glob for directories.
10989         (__glob_pattern_type): New function.
10990         (__glob_pattern_p): Implement using __glob_pattern_type.
10991         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10992         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10993         Remove unreachable code.
10994         * posix/globtest.sh: Add a couple of new tests.
10996 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
10998         * po/ru.po: Update from translation team.
11000 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11002         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11003         to the list of i486+ CPUs.
11004         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11006 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11008         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11009         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11010         references.
11012 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11014         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11016         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11017         * resolv/res_mkquery.c: Define __res_nopt.
11018         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11019         try adding EDNS0 record.
11020         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11021         EDNS0 record was send make sure we don't try it again.
11022         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11023         * include/resolv.h: Declare __res_nopt.
11025 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11027         [BZ #3944]
11028         * time/strptime_l.c (__strptime_internal): Set have_mon for
11029         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11030         have been computed from tm_yday and tm_year.  Don't crash
11031         in day_of_the_week or day_of_the_year if not have_mon
11032         and tm_mon contains bogus value.
11033         * time/Makefile (tests): Add tst-strptime3.
11034         * time/tst-strptime3.c: New test.
11036 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11038         [BZ #3957]
11039         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11040         bit for RE_HAT_LISTS_NOT_NEWLINE.
11041         (build_charclass_op): Remove bogus comment.
11042         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11043         * posix/bug-regex27.c: New test.
11044         * posix/bug-regex28.c: New test.
11046 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11048         * po/sv.po: Update from translation team.
11050 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11052         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11054 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11056         * include/locale.h (__uselocale): Add libc_hidden_proto.
11057         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11059         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11060         gettimeofday.
11062 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11064         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11065         returning.
11066         (PTR_DEMANGLE): Real definition now that it's not the same as
11067         PRT_MANGLE anymore.
11068         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11070         * string/strerror_l.c: New file.
11071         * string/Makefile (routines): Add strerror_l.
11072         * string/string.h: Declare strerror_l.
11073         * string/Versions: Export strerror_l for GLIBC_2.6.
11075 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11077         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11078         as parameter.  Construct request record.  Try sending request
11079         before the first poll use, it usually succeeds.  Adjust all
11080         callers.
11081         * nscd/nscd-client.h: Define MAXKEYLEN.
11082         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11084 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11086         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11087         from return value.
11088         * nscd/nscd_helper.c: Include string.h.
11089         (__nscd_cache_search): Remove const qualifier from return value.
11090         On strict alignment architectures check hash entry and data head
11091         alignment.
11092         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11093         mmapped data during GC cycle contains garbage.  If
11094         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11095         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11096         dropped to 0.
11097         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11098         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11099         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11100         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11101         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11103 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11105         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11107 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11109         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11110         names not numbers in cfi_*.
11112 2007-01-26  Andreas Jaeger  <aj@suse.de>
11114         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11115         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11116         Correct values of PER_HPUX and PER_OSF4.
11118 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11120         * elf/dl-minimal.c: Undefine _itoa first.
11121         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11122         * malloc/mtrace.c: Revert last change.
11123         * posix/wordexp.c: Likewise.
11125 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11127         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11128         and __geode__ to the list of i486+ CPUs.
11129         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11131 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11133         * stdio-common/_itoa.c: Include <limits.h>.
11134         * stdio-common/_itowa.c: Likewise.
11136 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11138         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11139         platforms.
11140         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11141         64-bit platforms.
11142         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11143         possible.
11144         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11145         if possible.
11147         [BZ #3902]
11148         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11149         * stdio-common/Makefile (tests): Add bug17.
11150         * stdio-common/bug17.c: New file.
11152 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11154         * iconvdata/brf.c: New file.
11155         * iconvdata/testdata/BRF: New file.
11156         * iconvdata/testdata/BRF..UTF8: New file.
11157         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11158         * iconvdata/Makefile: Add rules to build BRF.
11159         * iconvdata/TESTS: Add BRF entry.
11160         * iconvdata/gconv-modules: Likewise.
11161         * iconvdata/tst-tables.sh: Likewise.
11163 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11165         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11166         type `long long int', not `long int'.
11167         (wcstoq): Likewise.
11169 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11171         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11172         of values on 64-bit platforms which are too large.
11174 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11175             Joe Kerian  <jkerian@us.us.ibm.com>
11177         [BZ #2749]
11178         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11179         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11180         (__copysignl): Use signbit() for comparison.
11181         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11182         SET_LDOUBLE_WORDS64.
11184         [BZ #2423, #2749]
11185         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11186         (__ceill): Remove calls to fegetround(), fesetround().
11187         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11188         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11189         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11191 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11193         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11195         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11197 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11199         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11200         demangle pointer.
11201         * csu/libc-start.c: Likewise.
11203 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11205         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11206         really work anyway.
11208 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11210         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11211         users.
11212         (handle_request): Remove unnecessary tests.
11214         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11216 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11218         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11219         workbits in semi-raw fraction.
11221         * math/test-misc.c: Add new tests.
11223 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11225         * math/basic-test.c: Include test-skeleton.c.
11226         (TEST_TRUNC): Define.
11227         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11228         (main): Rename to ...
11229         (do_test): ...this.  Run new tests.
11230         (TEST_FUNCTION): Define.
11232 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11233             Joe Kerian  <jkerian@us.us.ibm.com>
11235         [BZ #2749]
11236         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11237         handling for high words.
11238         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11239         and overflow for infinity.
11241 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11243         * nscd/connections.c (handle_request): Add a __builtin_expect.
11245         * nscd/connections.c (serv2db): Change type into structure which
11246         also says whether this is a request for data.  Renamed to
11247         servinfo.  All users changed.
11248         (handle_request): Much simpler test whether we should search the cache.
11250         * nscd/connections.c (handle_request): Fix thinko in selinux test
11251         invocation.
11253         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11254         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11255         it before getting dl_load_lock and then relock.
11256         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11257         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11258         case we unlocked the scope.
11259         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11260         _dl_lookup_symbol_x in case we locked the scope.
11261         (_dl_profile_fixup): Likewise.
11262         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11263         set DL_LOOKUP_SCOPE_LOCK.
11265 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11267         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11268         CFLAGS-getsrvbynpt_r.c.
11269         * nscd/getsrvbynm_r.c: New file.
11270         * nscd/getsrvbypt_r.c: New file.
11271         * nscd/nscd_getserv_r.c: New file.
11272         * nscd/servicescache.c: New file.
11273         * nscd/Makefile (routines): Add nscd_getserv_r.
11274         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11275         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11276         CFLAGS-getsrvbypt_r.c.
11277         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11278         table.  Add entries for services database.
11279         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11280         services database.
11281         (dbs): Add .reset_res and servdb initialization.
11282         (serv2db): Add entries for services database.
11283         (verify_persistent_db): Accept dbnr == servdb.
11284         (invalidate_cache): Rewrite database name recognition to use a table.
11285         Call res_init() if .reset_res is set for database.
11286         (handle_request): Add code to handle services database.
11287         * nscd/gai.c: Don't define __getservbyname_r.
11288         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11289         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11290         (serv_response_header): Define.
11291         (struct datahead): Add serv_response_header member.
11292         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11293         using table.
11294         * nscd/nscd.conf: Add entries for services database.
11295         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11296         Declare serv_iov_disabled.
11297         Declare addservbyname, readdservbyname, addservbyport, and
11298         readdservbyport.
11299         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11300         (find_db): Fix error message.
11301         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11302         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11303         * nscd/selinux.c (perms): Add entries for services database.
11304         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11305         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11307         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11308         * nscd/hstcache.c: Likewise.
11309         * nscd/pwdcache.c: Likewise.
11311         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11312         computation of keylen.
11314         * include/string.h: Only redefine strndupa if this is really for
11315         libc code.
11317 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11319         * nscd/nscd_gethst_r.c: Minor cleanups.
11321         * nscd/connections.c (handle_request): Check selinux permissions
11322         for all non-admin commands.
11324         * sysdeps/i386/i486/bits/atomic.h: Define
11325         atomic_compare_and_exchange_val_acq,
11326         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11327         using __sync_* built-ins for gcc >= 4.1.
11328         * sysdeps/x86_64/bits/atomic.h: Likewise.
11330         [BZ #3840]
11331         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11332         and .oS.d files.
11334 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11336         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11337         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11338         (do_test): Check errno and exit(0) if ENOSYS.
11340 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11342         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11343         thousands separators.
11344         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11345         * stdlib/tst-strtod4.c: New test.
11347         [BZ #3855]
11348         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11349         hexadecimal digit should accept just the initial 0.
11350         * stdlib/tst-strtod2.c (tests): New variable.
11351         (do_test): Run several tests rather than just one.
11353 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11355         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11356         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11358 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11360         * io/fts.c: Make sure fts_cur is always valid after return from
11361         fts_read.
11362         Patch by Miloslav Trmac <mitr@redhat.com>.
11364 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11366         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11367         (R_MIPS_NUM): Bump by 1.
11369 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11371         * posix/execvp.c: Include alloca.h.
11372         (allocate_scripts_argv): Renamed to...
11373         (scripts_argv): ... this.  Don't allocate buffer here nor count
11374         arguments.
11375         (execvp): Use alloca if possible.
11376         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11377         * posix/tst-vfork3.c: New test.
11379 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11381         * string/Makefile (tst-strxfrm2-ENV): Define.
11382         * stdlib/Makefile (tst-strtod3-ENV): Define.
11384 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11386         * posix/getconf.c: Update copyright year.
11387         * nss/getent.c: Likewise.
11388         * iconv/iconvconfig.c: Likewise.
11389         * iconv/iconv_prog.c: Likewise.
11390         * elf/ldconfig.c: Likewise.
11391         * catgets/gencat.c: Likewise.
11392         * csu/version.c: Likewise.
11393         * elf/ldd.bash.in: Likewise.
11394         * elf/sprof.c (print_version): Likewise.
11395         * locale/programs/locale.c: Likewise.
11396         * locale/programs/localedef.c: Likewise.
11397         * nscd/nscd.c (print_version): Likewise.
11398         * debug/xtrace.sh: Likewise.
11399         * malloc/memusage.sh: Likewise.
11400         * malloc/mtrace.pl: Likewise.
11401         * debug/catchsegv.sh: Likewise.
11403 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11405         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11406         attempts.
11408 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11410         * posix/wordexp.c: Remove some unnecessary tests.
11412 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11414         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11415         blacklist the group till after we look it up.
11417 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11419         * include/atomic.h (atomic_forced_read): New macro.
11421 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11423         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11425 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11427         * nss/getXXbyYY_r.c: Include atomic.h.
11428         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11429         add atomic_write_barrier () in between.
11431         * stdlib/Makefile (tests): Add tst-makecontext.
11432         * stdlib/tst-makecontext.c: New test.
11434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11435         (__makecontext): Don't realign uc_mcontext.uc_regs.
11437 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11439         * elf/dl-support.c: Include dl-procinfo.h.
11440         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11441         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11442         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11443         Define.
11444         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11445         hardcoded constants.
11446         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11447         PPC_PLATFORM_* macros for array designators.
11449 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11451         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11452         names to the beginning.
11453         (_dl_powerpc_platforms): Add "power6x".
11454         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11455         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11456         (_DL_PLATFORMS_COUNT): Increase.
11457         (_dl_string_platform): Handle power6x case.
11458         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11459         PPC_FEATURE_POWER6_EXT): Define.
11460         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11462 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11464         [BZ #3747]
11465         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11466         [-2^31 .. 2^31) range.
11467         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11468         targets.
11469         * stdlib/tst-rand48-2.c: New test.
11470         * stdlib/Makefile (tests): Add tst-rand48-2.
11472 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11474         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11476 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11478         * misc/tst-pselect.c (do_test): Make sure the helper process is
11479         terminating when the test is aborted.
11481 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11483         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11484         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11485         Handle relatime mount option.
11487         [BZ #2337]
11488         * libio/Makefile (tests): Add tst-setvbuf1.
11489         * libio/tst-setvbuf1.c: New file.
11491 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11493         [BZ #2337]
11494         * libio/genops.c (__uflow): Fix a typo.
11495         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11496         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11497         the narrow buffer size.
11499 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11501         [BZ #2337]
11502         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11503         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11504         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11505         in _flags.
11506         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11507         _IO_wstr_finish): Likewise.
11508         * libio/wmemstream.c (open_wmemstream): Likewise.
11509         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11510         even for wide streams.
11512 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11515         kernel-features.h.
11517 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11519         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11520         separators also if no non-zero digits found.
11521         * stdlib/Makefile (tests): Add tst-strtod3.
11523 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11525         [BZ #3632]
11526         * include/features.h: Fix comment about default value for
11527         _POSIX_C_SOURCE.
11529         [BZ #3664]
11530         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11531         empty parsed strings.
11532         * stdlib/Makefile (tests): Add tst-strtod2.
11533         * stdlib/tst-strtod2.c: New file.
11535         [BZ #3673]
11536         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11537         computation.
11538         * stdlib/Makefile (tests): Add tst-atof2.
11539         * stdlib/tst-atof2.c: New file.
11541         [BZ #3674]
11542         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11543         correctly if removing trailing zero of hex-float.
11544         * stdlib/Makefile (tests): Add tst-atof1.
11545         * stdlib/tst-atof1.c: New file.
11547 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11549         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11550         Start searching for next comma at p rather than rest.
11551         * misc/Makefile (tests): Add tst-mntent2.
11552         * misc/tst-mntent2.c: New test.
11554         * misc/getusershell.c (initshells): Check for integer overflows.
11555         Make strings buffer one bigger as fgets always succeeds when second
11556         argument is 1.  Don't use calloc for shells array.  Disallow
11557         / as shell.
11559 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11561         * malloc/memusage.c: Handle realloc with new size of zero and
11562         non-NULL pointer correctly.
11563         (me): Really write first record twice.
11564         (struct entry): Make format bi-arch safe.
11565         (dest): Write out more realloc statistics.
11566         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11568 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11570         * nis/nis_subr.c (nis_getnames): Revert last change.
11572 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11574         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11575         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11576         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11577         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11578         ENOTTY.
11579         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11580         * io/tst-ttyname_r.c: New test.
11582 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11584         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11586 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11588         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11589         jump table entries.
11591 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11593         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11594         `clone' function to ensure proper unwinding stop of gdb.
11595         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11597 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11599         * nscd/nscd.init: Remove obsolete and commented-out -S option
11600         handling.
11602 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11604         [BZ #3514]
11605         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11607         [BZ #3515]
11608         * manual/string.texi (strtok): Remove duplicate paragraph.
11610 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11612         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11613         libgcc not supporting `rflags' unwinding (register # >= 17).
11615 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11617         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11618         succeeded.
11620 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11621             Jakub Jelinek  <jakub@redhat.com>
11622             Jan Kratochvil  <jan.kratochvil@redhat.com>
11624         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11625         unwind information.
11626         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11627         'restore_rt' even in the 'signal' directory.
11628         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11630 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11632         [BZ #3559]
11633         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11634         malloc crashed.  Don't allocate memory unnecessarily in each
11635         loop.
11637 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11639         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11641 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11643         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11645 2006-11-18  Bruno Haible  <bruno@clisp.org>
11647         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11648         __sysconf only after having tried to call getgroups32.
11650 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11652         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11653         addresses for IPv4 queries if they can be mapped.
11655 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11657         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11658         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11659         (signmask): Add .size directive.
11660         (othermask): Add .type directive.
11662 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11664         * po/nl.po: Update from translation team.
11666         * timezone/zdump.c: Redo fix for BZ #3137.
11668 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11670         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11671         to first_unused after parsing :include: file.
11673 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11675         * timezone/africa: Update from tzdata2006o.
11676         * timezone/antarctica: Likewise.
11677         * timezone/asia: Likewise.
11678         * timezone/australasia: Likewise.
11679         * timezone/backward: Likewise.
11680         * timezone/europe: Likewise.
11681         * timezone/iso3166.tab: Likewise.
11682         * timezone/northamerica: Likewise.
11683         * timezone/southamerica: Likewise.
11684         * timezone/zone.tab: Likewise.
11686         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11687         on machines with 64-bit time_t.
11689         * timezone/checktab.awk: Update from tzcode2006o.
11690         * timezone/ialloc.c: Likewise.
11691         * timezone/private.h: Likewise.
11692         * timezone/scheck.c: Likewise.
11693         * timezone/tzfile.h: Likewise.
11694         * timezone/tzselect.ksh: Likewise.
11695         * timezone/zdump.c: Likewise.
11696         * timezone/zic.c: Likewise.
11698         [BZ #3483]
11699         * elf/ldconfig.c (main): Call setlocale and textdomain.
11700         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11702         [BZ #3480]
11703         * manual/argp.texi: Fix typos.
11704         * manual/charset.texi: Likewise.
11705         * manual/errno.texi: Likewise.
11706         * manual/filesys.texi: Likewise.
11707         * manual/lang.texi: Likewise.
11708         * manual/maint.texi: Likewise.
11709         * manual/memory.texi: Likewise.
11710         * manual/message.texi: Likewise.
11711         * manual/resource.texi: Likewise.
11712         * manual/search.texi: Likewise.
11713         * manual/signal.texi: Likewise.
11714         * manual/startup.texi: Likewise.
11715         * manual/stdio.texi: Likewise.
11716         * manual/sysinfo.texi: Likewise.
11717         * manual/syslog.texi: Likewise.
11718         * manual/time.texi: Likewise.
11719         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11721         [BZ #3465]
11722         * sunrpc/clnt_raw.c: Minimal message improvements.
11723         * sunrpc/pm_getmaps.c: Likewise.
11724         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11725         * nis/nis_print_group_entry.c: Likewise.
11726         * locale/programs/repertoire.c: Likewise.
11727         * locale/programs/charmap.c: Likewise.
11728         * malloc/memusage.sh: Likewise.
11729         * elf/dl-deps.c: Likewise.
11730         * locale/programs/ld-collate.c: Likewise.
11731         * libio/vswprintf.c: Likewise.
11732         * malloc/memusagestat.c: Likewise.
11733         * sunrpc/auth_unix.c: Likewise.
11734         * sunrpc/rpc_main.c: Likewise.
11735         * nscd/cache.c: Likewise.
11736         * locale/programs/repertoire.c: Unify output messages.
11737         * locale/programs/charmap.c: Likewise.
11738         * locale/programs/ld-ctype.c: Likewise.
11739         * locale/programs/ld-monetary.c: Likewise.
11740         * locale/programs/ld-numeric.c: Likewise.
11741         * locale/programs/ld-time.c: Likewise.
11742         * elf/ldconfig.c: Likewise.
11743         * nscd/selinux.c: Likewise.
11744         * elf/cache.c: Likewise.
11745         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11747         [BZ #3451]
11748         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11749         change atomic.
11750         (ceil): Likewise.
11752 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11754         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11755         if N is one bigger than return value.
11756         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11757         and l1 last arguments, if buf is defined, verify the return value
11758         equals to strlen (buf) and verify no byte beyond passed length
11759         is modified.
11761 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11763         * po/sv.po: Update from translation team.
11765 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11767         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11768         noinline attribute.
11770 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11772         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11773         noinline attribute.
11775         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11776         Use __new_sys_siglist instead of _sys_siglist_internal as
11777         second macro argument.
11778         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11779         strong_alias.
11781 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11783         [BZ #3493]
11784         * posix/unistd.h (sysconf): Remove const attribute.
11786         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11787         temporary or deprecated addresses.
11788         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11790         * string/Makefile (tests): Add tst-strxfrm2.
11791         * string/tst-strxfrm2.c: New file.
11793 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11795         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11796         rather than r->r_brk.
11798 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11800         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11801         optimization even if needed > n.
11803         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11804         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11805         return false, otherwise return true.
11806         (cache_rpath): Return decompose_rpath return value.
11808 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11810         * include/libc-symbols.h (declare_symbol): Rename to...
11811         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11812         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11813         .size directive.
11814         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11815         changes.
11816         * sysdeps/gnu/siglist.c: Likewise.
11818 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11820         * sysdeps/powerpc/fpu/bits/mathinline.h
11821         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11822         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11824 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11826         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11827         Update handling of cache descriptor 0x49 for new models.
11828         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11829         Likewise.
11831 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11833         * malloc/memusage.c (dest): Reset not_me back to false after
11834         printing statistics.
11836 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11838         * configure.in: Work around ld --help change and avoid -z relro
11839         test completely if the architecture doesn't care about security.
11841 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11843         * po/sv.po: Update from translation team.
11845 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11847         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11848         generate compatibility version.
11850 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11852         * configure.in: Relax -z relro requirement a bit.
11854         * po/sv.po: Update from translation team.
11856 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11858         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11859         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11860         * elf/dl-close.c (_dl_close_worker): Likewise.
11861         * elf/dl-open.c (_dl_open_worker): Likewise.
11862         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11864 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11866         * configure.in: Require assembler support for visibility, compiler
11867         support for visibility and aliases, linker support for various -z
11868         options.
11869         * Makeconfig: Remove conditional code which now is unnecessary.
11870         * config.h.in: Likewise.
11871         * config.make.in: Likewise.
11872         * dlfcn/Makefile: Likewise.
11873         * elf/Makefile: Likewise.
11874         * elf/dl-load.c: Likewise.
11875         * elf/rtld.c: Likewise.
11876         * include/libc-symbols.h: Likewise.
11877         * include/stdio.h: Likewise.
11878         * io/Makefile: Likewise.
11879         * io/fstat.c: Likewise.
11880         * io/fstat64.c: Likewise.
11881         * io/fstatat.c: Likewise.
11882         * io/fstatat64.c: Likewise.
11883         * io/lstat.c: Likewise.
11884         * io/lstat64.c: Likewise.
11885         * io/mknod.c: Likewise.
11886         * io/mknodat.c: Likewise.
11887         * io/stat.c: Likewise.
11888         * io/stat64.c: Likewise.
11889         * libio/stdio.c: Likewise.
11890         * nscd/Makefile: Likewise.
11891         * stdlib/Makefile: Likewise.
11892         * stdlib/atexit.c: Likewise.
11893         * sysdeps/generic/ldsodefs.h: Likewise.
11894         * sysdeps/i386/dl-machine.h: Likewise.
11895         * sysdeps/i386/sysdep.h: Likewise.
11896         * sysdeps/i386/i686/memcmp.S: Likewise.
11897         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11898         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11899         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11901         * Makerules: USE_TLS support is now default.
11902         * tls.make.c: Likewise.
11903         * csu/Versions: Likewise.
11904         * csu/libc-start.c: Likewise.
11905         * csu/libc-tls.c: Likewise.
11906         * csu/version.c: Likewise.
11907         * dlfcn/dlinfo.c: Likewise.
11908         * elf/dl-addr.c: Likewise.
11909         * elf/dl-cache.c: Likewise.
11910         * elf/dl-close.c: Likewise.
11911         * elf/dl-iteratephdr.c: Likewise.
11912         * elf/dl-load.c: Likewise.
11913         * elf/dl-lookup.c: Likewise.
11914         * elf/dl-object.c: Likewise.
11915         * elf/dl-open.c: Likewise.
11916         * elf/dl-reloc.c: Likewise.
11917         * elf/dl-support.c: Likewise.
11918         * elf/dl-sym.c: Likewise.
11919         * elf/dl-sysdep.c: Likewise.
11920         * elf/dl-tls.c: Likewise.
11921         * elf/ldconfig.c: Likewise.
11922         * elf/rtld.c: Likewise.
11923         * elf/tst-tls-dlinfo.c: Likewise.
11924         * elf/tst-tls1.c: Likewise.
11925         * elf/tst-tls10.h: Likewise.
11926         * elf/tst-tls14.c: Likewise.
11927         * elf/tst-tls2.c: Likewise.
11928         * elf/tst-tls3.c: Likewise.
11929         * elf/tst-tls4.c: Likewise.
11930         * elf/tst-tls5.c: Likewise.
11931         * elf/tst-tls6.c: Likewise.
11932         * elf/tst-tls7.c: Likewise.
11933         * elf/tst-tls8.c: Likewise.
11934         * elf/tst-tls9.c: Likewise.
11935         * elf/tst-tlsmod1.c: Likewise.
11936         * elf/tst-tlsmod13.c: Likewise.
11937         * elf/tst-tlsmod13a.c: Likewise.
11938         * elf/tst-tlsmod14a.c: Likewise.
11939         * elf/tst-tlsmod2.c: Likewise.
11940         * elf/tst-tlsmod3.c: Likewise.
11941         * elf/tst-tlsmod4.c: Likewise.
11942         * elf/tst-tlsmod5.c: Likewise.
11943         * elf/tst-tlsmod6.c: Likewise.
11944         * include/errno.h: Likewise.
11945         * include/link.h: Likewise.
11946         * include/tls.h: Likewise.
11947         * locale/global-locale.c: Likewise.
11948         * locale/localeinfo.h: Likewise.
11949         * malloc/arena.c: Likewise.
11950         * malloc/hooks.c: Likewise.
11951         * malloc/malloc.c: Likewise.
11952         * resolv/Versions: Likewise.
11953         * sysdeps/alpha/dl-machine.h: Likewise.
11954         * sysdeps/alpha/libc-tls.c: Likewise.
11955         * sysdeps/generic/ldsodefs.h: Likewise.
11956         * sysdeps/generic/tls.h: Likewise.
11957         * sysdeps/i386/dl-machine.h: Likewise.
11958         * sysdeps/ia64/dl-machine.h: Likewise.
11959         * sysdeps/ia64/libc-tls.c: Likewise.
11960         * sysdeps/mach/hurd/fork.c: Likewise.
11961         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11962         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11963         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11964         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11965         * sysdeps/s390/libc-tls.c: Likewise.
11966         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11967         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11968         * sysdeps/sh/dl-machine.h: Likewise.
11969         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11970         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11971         * sysdeps/x86_64/dl-machine.h: Likewise.
11973         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11974         split out locking and parameter checking.
11975         (_dl_close): Call _dl_close_worker after locking and checking.
11976         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11977         _dl_close.
11978         * elf/Makefile: Add rules to build and run tst-thrlock.
11979         * elf/tst-thrlock.c:  New file.
11981         [BZ #3426]
11982         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11983         reality.
11985         [BZ #3429]
11986         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11987         we are sure we do not need it anymore for _dl_close.  Also move
11988         the asserts inside the lock region.
11989         Patch mostly by Suzuki <suzuki@in.ibm.com>.
11991 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
11993         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11994         argument.
11995         (_dl_lookup_symbol_x): Adjust caller.
11997         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11998         _ns_global_scope.
11999         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12001         * elf/dl-libc.c: Revert l_scope name changes.
12002         * elf/dl-load.c: Likewise.
12003         * elf/dl-object.c: Likewise.
12004         * elf/rtld.c: Likewise.
12005         * elf/dl-close.c (_dl_close): Likewise.
12006         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12007         always use __rtld_mrlock_{change,done}.  Always free old scope list
12008         here if not l_scope_mem.
12009         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12010         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12011         the lookup and __rtld_mrlock_unlock it after the lookup.
12012         * elf/dl-sym.c: Likewise.
12013         * include/link.h (struct r_scoperec): Remove.
12014         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12015         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12017 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12019         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12021 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12023         * configure.in: Disable building profile libraries by default.
12025 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12027         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12028         as signed longs, check for x_base + pos overflow.
12029         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12030         * sunrpc/tst-xdrmem2.c: New test.
12032 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12034         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12035         _dl_lookup_symbol_x code.
12037 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12039         * elf/dl-runtime.c: Include sysdep-cancel.h.
12040         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12041         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12042         instead of catomic_* macros.
12043         * elf/dl-sym.c: Include sysdep-cancel.h.
12044         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12045         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12046         * elf/dl-close.c: Include sysdep-cancel.h.
12047         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12048         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12049         * elf/dl-open.c: Include sysdep-cancel.h.
12050         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12051         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12053 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12055         [BZ #3313]
12056         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12057         fastbin rather than end of fastbin array.
12059 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12061         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12062         body macro.
12063         * sysdeps/x86_64/bits/atomic.h
12064         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12065         (catomic_decrement): Use correct body macro.
12067 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12069         * include/atomic.h: Add a unique prefix to all local variables
12070         in macros.
12071         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12073 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12075         [BZ #3369]
12076         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12077         and 7.
12079 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12081         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12083 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12085         [BZ #3313]
12086         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12087         determine highest fast bin to consolidate, always look into all of
12088         them.
12089         (do_check_malloc_state): Only require for empty bins for large
12090         sizes in main arena.
12092         * libio/stdio.h: Add more __wur attributes.
12094         * elf/dl-minimal.c (realloc): Optimize last patch.
12096 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12098         [BZ #3352]
12099         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12100         and use memcpy() if it does.
12102 2006-11-12  Andreas Jaeger  <aj@suse.de>
12104         [BZ #2510]
12105         * manual/search.texi (Hash Search Function): Clarify.
12106         (Array Search Function): Clarify.
12108 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12110         [BZ #2830]
12111         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12112         shifting.
12113         * math/atest-exp2.c (read_mpn_hex): Likewise.
12114         * math/atest-sincos.c (main): Likewise.
12116 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12118         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12119         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12120         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12121         version GLIBC_2.6.
12122         * Versions.def: Add GLIBC_2.6 for libc.
12124         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12126         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12128 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12130         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12132         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12134         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12135         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12137 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12139         * include/atomic.c: Define catomic_* operations.
12140         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12141         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12142         * malloc/memusage.c: Likewise.
12143         * gmon/mcount.c: Likewise.
12144         * elf/dl-close.c: Likewise.
12145         * elf/dl-open.c: Likewise.
12146         * elf/dl-profile.c: Likewise.
12147         * elf/dl-sym.c: Likewise.
12148         * elf/dl-runtime.c: Likewise.
12149         * elf/dl-fptr.c: Likewise.
12150         * resolv/res_libc.c: Likewise.
12152 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12154         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12155         components which lack them.
12157         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12158         at least one entry consisting of the parameter concatenated with
12159         the domain.
12161 2006-10-10  Roland McGrath  <roland@frob.com>
12163         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12164         * sysdeps/mach/hurd/futimes.c: Likewise.
12165         * sysdeps/mach/hurd/lutimes.c: Likewise.
12167 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12168             Jakub Jelinek  <jakub@redhat.com>
12170         Implement reference counting of scope records.
12171         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12172         from the list in objects which remain.  Always allocate new scope
12173         record.
12174         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12175         don't resize, allocate a new one.
12176         * elf/dl-runtime.c: Update reference counters before using a scope
12177         array.
12178         * elf/dl-sym.c: Likewise.
12179         * elf/dl-libc.c: Adjust for l_scope name change.
12180         * elf/dl-load.c: Likewise.
12181         * elf/dl-object.c: Likewise.
12182         * elf/rtld.c: Likewise.
12183         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12184         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12185         Add l_scoperec_lock.
12186         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12187         * sysdeps/generic/rtld-lowlevel.h: New file.
12189         * include/atomic.h: Rename atomic_and to atomic_and_val and
12190         atomic_or to atomic_or_val.  Define new macros atomic_and and
12191         atomic_or which do not return values.
12192         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12193         Various cleanups.
12194         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12196         * po/sv.po: Update from translation team.
12198 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12200         * Versions.def: Add GLIBC_2.6 to libpthread.
12202         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12203         (versioned_symbol): Likewise.
12204         (compat_symbol): Likewise.
12206         * po/tr.po: Update from translation team.
12208 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12210         * nis/Banner: Removed.  It's been integral part forever and the
12211         author info is incomplete anyway.
12212         * libio/Banner: Likewise.
12214         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12215         code, make sure the nis_freeresult call doesn't crash and that the
12216         result is reported correctly.
12218 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12220         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12221         when callback is NULL.
12223         * nis/Versions (libnss_nisplus): Add
12224         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12225         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12226         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12227         _nss_create_tablename): Rename to...
12228         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12229         ... these.  No longer static.
12230         (internal_setgrent): Adjust users.
12231         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12232         Don't use locking around _nss_grp_create_tablename call.
12233         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12235 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12237         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12239 2006-10-06  Andreas Jaeger  <aj@suse.de>
12241         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12243 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12245         * po/pl.po: Update from translation team.
12247         * nscd/nscd.c (main): Fix typo in message.
12248         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12250 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12252         [BZ #3291]
12253         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12254         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12255         (__sigprocmask): Define.
12257 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12259         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12260         used.
12262 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12264         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12265         in oldtotal and newtotal calculation.
12266         * nscd/nscd-client.h (struct mapped_database): Add datasize
12267         field.
12268         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12269         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12270         increased.
12271         (__nscd_cache_search): Add checks to make sure we never reference
12272         data beyond the current mapping.
12274 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12276         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12277         variables const to avoid compiler warnings.
12279         * io/fts.c (fts_close): Remove redundant checks.
12280         (fts_build): Likewise.
12281         (fts_palloc): Likewise.
12283         * manual/message.texi (Advanced gettext functions,
12284         Using gettextized software): Fix typos.
12286 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12288         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12289         explain why there are no leaks.
12291 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12293         * libio/wmemstream.c: Include <wchar.h>.
12294         * libio/bug-wmemstream1.c: Likewise.
12295         * libio/tst-wmemstream1.c: Likewise.
12296         * libio/tst-wmemstream2.c: Likewise.
12298         * version.h (RELEASE): Bump to 2.5.
12299         * README: Regenerated.
12301         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12303         [BZ #3273]
12304         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12305         found no group members.
12306         Patch by Petr Baudis.
12308 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12310         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12311         assert bootstrap_map.l_tls_modid is zero.
12312         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12313         if USE___THREAD.
12315 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12317         * libio/stdio.h: Move open_wmemstream prototype to ...
12318         * wcsmbs/wchar.h: ... here.
12320 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12322         [BZ #3252]
12323         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12324         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12325         __{,l}chown to handle the rest.
12326         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12327         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12328         __{,l}chown to handle the rest.
12329         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12330         i386/fchownat.c.
12331         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12332         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12334         [BZ #3253]
12335         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12336         time, rather allocate increasingly bigger arrays of pointers, if
12337         possible with alloca, if too large with malloc.
12339 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12341         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12343         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12345 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12347         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12348         home addresses.
12349         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12350         IFA_F_HOMEADDRESS flag for interfaces.
12351         * include/ifaddrs.h (struct in6addrinfo): Define
12352         in6ai_homeaddress.
12354 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12356         [BZ #3225]
12357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12358         PTR_DEMANGLE3): Define.
12359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12360         PTR_DEMANGLE3): Likewise.
12361         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12362         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12363         Likewise.
12364         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12366 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12368         * po/libc.pot: Regenerated.
12369         * po/be.po: Updated.
12370         * po/ca.po: Likewise.
12371         * po/cs.po: Likewise.
12372         * po/da.po: Likewise.
12373         * po/de.po: Likewise.
12374         * po/el.po: Likewise.
12375         * po/en_GB.po: Likewise.
12376         * po/es.po: Likewise.
12377         * po/fi.po: Likewise.
12378         * po/fr.po: Likewise.
12379         * po/gl.po: Likewise.
12380         * po/hr.po: Likewise.
12381         * po/hu.po: Likewise.
12382         * po/ja.po: Likewise.
12383         * po/ko.po: Likewise.
12384         * po/nb.po: Likewise.
12385         * po/nl.po: Likewise.
12386         * po/pl.po: Likewise.
12387         * po/pt_BR.po: Likewise.
12388         * po/ru.po: Likewise.
12389         * po/rw.po: Likewise.
12390         * po/sk.po: Likewise.
12391         * po/sv.po: Likewise.
12392         * po/tr.po: Likewise.
12393         * po/zh_CN.po: Likewise.
12394         * po/zh_TW.po: Likewise.
12396         [BZ #3137]
12397         * iconv/iconv_prog.c (main): Fix spelling in error message.
12398         * iconv/iconvconfig.c (main): Likewise.
12399         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12400         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12401         * locale/programs/localedef.c (main): Likewise.
12402         * locale/programs/repertoire.c (repertoire_read): Likewise.
12403         * timezone/zdump.c (main): Likewise.
12404         * nscd/connections.c (handle_request): Fix spelling in log message.
12405         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12407 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12409         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12410         interfaces.
12412 2006-09-20  Andreas Jaeger  <aj@suse.de>
12414         * math/libm-test.inc (lrint_test_upward): Fix typo.
12416 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12418         [BZ #2592]
12419         * math/libm-test.inc (lrint_test_tonearest): New function.
12420         (lrint_test_towardzero): New function.
12421         (lrint_test_downward): New function.
12422         (lrint_test_upward): New function.
12423         (main): Run these new tests.
12424         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12425         of values near to 0.
12426         (two52): Use double not long double.
12427         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12428         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12429         (two23): Use float not double.
12430         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12431         (two23): Use float not double.
12432         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12433         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12434         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12435         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12437 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12439         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12440         Cast sp to unsigned long to avoid compiler warning.
12441         Use __makecontext_ret function instead of a trampoline on the stack.
12442         (__makecontext_ret): New function.
12443         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12445 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12447         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12448         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12449         bits.
12451 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12453         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12454         sure no reference to the unloaded map's search list remains in the
12455         dependency's scope.
12457 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12459         * elf/Makefile: Add rules to build and run unload7 test.
12460         * elf/unload7.c: New test.
12461         * elf/unload7mod1.c: New file.
12462         * elf/unload7mod2.c: New file.
12464 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12466         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12467         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12468         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12469         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12470         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12471         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12472         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12473         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12474         PTRACE_GETEVENTMSG): Likewise.
12475         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12476         values.
12478 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12480         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12481         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12482         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12483         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12485 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12487         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12488         write '\0' to the fd.
12489         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12490         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12491         Change regs to unsigned long pointer from unsigned int, fix fscr
12492         offset.
12494 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12496         * io/Makefile (CFLAGS-fstatat.c): Set.
12497         (CFLAGS-fstatat64.c): Likewise.
12498         (CFLAGS-mknodat.c): Likewise.
12500         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12501         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12502         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12503         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12505 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12506             Steven Munroe  <sjmunroe@us.ibm.com>
12508         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12509         names to the beginning.  Rename "cell" to "cellbe".
12510         (_dl_powerpc_platforms): New.
12511         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12512         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12513         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12514         (_DL_HWCAP_PLATFORM): Define to new mask.
12515         (_dl_platform_string, _dl_string_platform): New functions.
12516         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12517         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12519 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12521         [BZ #2526]
12522         * README.libm: Fix a thinko in sqrt algorithm description.
12524         [BZ #3143]
12525         * manual/string.texi (argz_delete): Fix prototype.
12526         Patch by <alpt@freaknet.org>.
12528 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12530         [BZ #3138]
12531         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12532         * io/tst-fcntl.c (do_prepare): Likewise.
12533         * posix/tst-exec.c (do_prepare): Likewise.
12534         * posix/tst-preadwrite.c (do_prepare): Likewise.
12535         * posix/tst-spawn.c (do_prepare): Likewise.
12536         * posix/tst-truncate.c (do_prepare): Likewise.
12537         * rt/tst-aio.c (do_prepare): Likewise.
12538         * rt/tst-aio64.c (do_prepare): Likewise.
12539         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12540         size_t.
12542 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12544         [BZ #2821]
12545         * time/mktime.c (guess_time_tm): Fix overflow detection.
12546         * time/Makefile (tests): Add bug-mktime1.
12547         * time/bug-mktime1.c: New file.
12549         [BZ #3189, #3188]
12550         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12551         (mremap): Likewise.
12553 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12555         [BZ #1006]
12556         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12557         Ensure relocation doesn't clobber any bits outside of the
12558         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12559         R_SPARC_HI22 and R_SPARC_H44.
12561         [BZ #2775]
12562         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12563         (long) (MINSIZE + nb - old_size) is positive.
12565         * malloc/arena.c (grow_heap): When growing bail even if new_size
12566         is negative.
12568         [BZ #3155]
12569         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12570         stack below r1.
12572 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12574         * posix/regex_internal.c (re_string_reconstruct): Handle
12575         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12576         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12577         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12578         re_string_context_at.
12579         * posix/Makefile: Add rules to build and run bug-regex26 test.
12580         * posix/bug-regex26.c: New test.
12582         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12583         rather than col_sym_free.  Move seqp declaration earlier.
12585         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12587 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12589         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12590         decl before first goto out.
12592 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12594         * Makerules (shlib.lds): If have-hash-style, put .hash section
12595         at the end of the RO segment.
12597 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12599         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12600         style hash table format is used.
12602 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12604         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12605         randomization rather than before.
12606         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12608 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12610         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12612         * malloc/malloc.c (_int_malloc): Use full list insert and not
12613         shortcut which assumes the list is empty for large requests
12614         too.
12616         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12618 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12620         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12621         and offout arguments to the prototype.
12622         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12623         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12624         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12625         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12626         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12627         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12628         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12629         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12631 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12633         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12635         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12636         dlopen parameters.
12638 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12640         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12641         only if herrno is NETDB_INTERNAL.  Handle errors other than
12642         ERANGE outside of the loops, handle TRY_AGAIN.
12644         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12645         if other's ctype category was missing.
12646         * locale/programs/ld-collate.c (collate_read): Return if
12647         copy_locale's collate category is missing.
12649 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12651         [BZ #2684]
12652         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12653         arenas if allocation failed.
12654         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12656 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12658         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12659         waste bins[0..1].
12660         (malloc_state): Reduce bins size by 2.
12661         (_int_malloc): Fix test for large enough buffer for early termination.
12662         When no unsorted block matches perfectly and an exiting block has
12663         to be split, use full list insert and not shortcut which assumes
12664         the list is empty.
12666         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12667         failure.
12669 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12671         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12672         do anything.
12674         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12675         symbol require exact match (these are PLTs).
12676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12677         (_dl_ppc64_addr_sym_match): Likewise.
12679         [BZ #2683]
12680         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12681         If symbol has a value use it.
12682         * elf/tst-dladdr1.c: New file.
12683         * elf/Makefile: Add rules to build and run tst-addr1.
12685 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12687         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12688         keeps failing and heap growth or new heap creation isn't
12689         successful either.
12690         * malloc/tst-malloc.c (main): Add new tests.
12692 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12694         [BZ #2734]
12695         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12696         as in the x86-64 code to use bswap.
12698 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12700         [BZ #2680]
12701         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12702         __USE_UNIX98.
12703         * posix/bits/unistd.h: Likewise.
12705 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12707         [BZ #2751]
12708         * string/strchr.c: Add cast to avoid warning.
12710 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12712         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12713         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12714         limit is needed to avoid the exploding of the address space
12715         requirement for secondary heaps.
12716         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12717         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12719 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12721         [BZ #3018]
12722         * Makerules (depfiles): Handle extra-test-objs the same as
12723         extra-objs.
12724         (common-mostlyclean): Likewise.
12725         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12726         instead.
12727         * elf/Makefile (extra-objs): Likewise.
12728         * stdlib/Makefile (extra-objs): Likewise.
12730 2006-08-14  Eric Blake  <ebb9@byu.net>
12732         [BZ #3044]
12733         * misc/error.h: Assume C89 or better.
12734         * misc/error.c: Likewise.
12736 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12738         [BZ #3040]
12739         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12740         __ASSUME_ATFCTS is defined.
12742 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12744         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12745         to sort in each call.
12747         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12748         is empty simply return and use next service.
12749         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12751         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12752         tells us when not finding a charmap file is an error.
12753         * locale/programs/charmap.h: Adjust charmap_read prototype.
12754         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12755         cannot find a charmap.
12756         * locale/programs/localedef.c (main): Adjust charmap_read call.
12758 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12760         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12761         sysdeps/posix/pause.c implementation instead.
12763 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12765         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12766         to EPERM.
12768 2006-08-13  Andreas Schwab  <schwab@suse.de>
12770         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12771         Don't clobber caller's LRSAVE.
12772         (_dl_prof_resolve): Likewise.
12774 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12776         [BZ #1996]
12777         * libio/memstream.c (open_memstream): Allocate initial buffer with
12778         calloc.
12779         * libio/wmemstream.c (open_wmemstream): Likewise.
12780         * libio/strops.c: Pretty printing.
12781         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12782         (enlarge_userbuf): New function.
12783         (_IO_str_seekoff): Call it if seek position is larger than current
12784         buffer.
12785         * libio/wstrops.c: Likewise.
12786         * libio/vasprintf.c: Add comment as to why we do not have to use
12787         calloc instead of malloc to allocate initial buffer.
12788         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12789         * libio/bug-memstream1.c: New file.
12790         * libio/bug-wmemstream1.c: New file.
12792 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12794         * libio/wstrops.c: Remove dead macro definitions and comments.
12795         * libio/strops.c: Likewise.
12797         [BZ #2764]
12798         * login/utmpname.c (__utmpname): Remove unnecessary test.
12800 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12802         [BZ #2832]
12803         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12804         0s from integers.
12806 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12808         [BZ #2987]
12809         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12810         for CPU clocks.
12811         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12812         setting of CPU clocks.
12814 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12816         [BZ #2841]
12817         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12818         since C99 requires the result to promote to 'int' when uint_least8_t
12819         and uint_least16_t promote to 'int'.
12821 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12823         [BZ #3013]
12824         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12825         lenght of one output field, correct bitmask creation.
12826         * locale/programs/ld-time.c: Add alignment.
12828         [BZ #2997]
12829         * misc/error.c: Add space between program name and message if file
12830         name is missing.
12832 2006-08-03  Eric Blake  <ebb9@byu.net>
12834         [BZ #2998]
12835         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12837 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12839         * malloc/memusagestat.c: Silence warnings.
12841         * malloc/malloc.c: Dynamically size mmap treshold if the program
12842         frees mmaped blocks.
12843         Patch by Valerie Henson and Arjan van de Ven.
12845 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12847         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12848         __USE_GNU.
12850         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12851         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12852         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12853         Only provide var definitions in strtol_l (or for *ull*
12854         in strtoll_l).
12856         * stdio-common/bug16.c (tests): New array.
12857         (do_tests): Allow the first hexadecimal digit
12858         to be 1, 2, 4 or 8.  Do 3 additional tests.
12860         * sysdeps/s390/fpu/libm-test-ulps: Update.
12862         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12863         fchownat syscall if available.
12864         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12865         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12866         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12868 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12870         * nis/nis_xdr.c: Avoid some function calls.
12872 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12873             Ulrich Drepper  <drepper@redhat.com>
12875         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12876         short cut if only one name component is stripped away.
12878 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12880         * nis/nis_call.c: Minor cleanups throughout.
12881         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12882         (first_shoot): Add search_parent_first parameter.  Only if it is set
12883         search parent server first.
12884         If directory for table found through cold start cache is not the same
12885         as referenced in the cache, don't use it.
12886         (__nisfind_server): Take additional parameter.  Pass it on to
12887         first_shoot.
12888         (__prepare_niscall): Adjust __nisfind_server call.
12889         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12890         * nis/nis_table.c: Adjust __nisfind_server call.
12891         * nis/nis_lookup.c: Likewise.
12892         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12894 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12896         [BZ #2182]
12897         * math/s_cacosh.c: Return values from positive branch.
12898         * math/s_cacoshf.c: Likewise.
12899         * math/s_cacoshl.c: Likewise.
12901         [BZ #2883]
12902         * sysvipc/sys/msg.h: Change return value to ssize_t.
12903         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12904         * sysvipc/msgrcv.c: Likewise.
12905         * include/sys/msg.h: Likewise.
12907         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12908         test introduced in patch for bz #661.
12909         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12910         element for NEWGROUPS.
12912         [BZ #2908]
12913         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12914         'f', use '1' as leading digit not '\1'.
12915         * stdio-common/Makefile (tests): Add bug16.
12916         * stdio-common/bug16.c: New file.
12918         [BZ #2914]
12919         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12920         and don't try to open it.  The patch introducing the macro
12921         contained a bug and used the same file name as the new file
12922         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12923         this out completely.
12925         [BZ #2926]
12926         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12927         Patch by Jerry James <Jerry.James@usu.edu>.
12929         * rt/Makefile (tests): Add tst-clock2.
12930         * rt/tst-clock2.c: New file.
12932         [BZ #2978]
12933         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12934         function and its parameters and pass it to new thread.
12935         (__gai_notify): Add support for alternative waiting for completion.
12936         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12937         waiting for completion.
12938         * resolv/getaddrinfo_a.c: Likewise.
12939         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12940         waiting for completion is used.
12941         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12942         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12943         * resolv/gai_error.c: Likewise.
12944         * resolv/gai_sigqueue.c: Likewise.
12946 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12948         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12949         errno to EBADF and return MACH_PORT_NULL.
12951 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12953         [BZ #2980]
12954         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12956 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12958         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12959         walk them instead of the symbol table.
12961 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12963         [BZ #2098]
12964         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12965         status of NSS calls, not the number of returned entries.
12967         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12968         request_key, keyctl.
12970 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12972         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12974 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12976         * elf/tst-auditmod1.c: Fix typo in #error.
12978 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12980         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12982         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12984 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12986         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12987         that the directory is empty even on non-POSIX filesystems.
12989 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12991         * elf/dl-open.c (dl_open_worker): Add branch prediction.
12993         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12994         the backend NSS module.  If backend setgrent call failed, don't have
12995         internal_setgrent fail.  Just remember this until it is needed.
12996         * nis/nss_compat/compat-pwd.c: Likewise.
12997         * nis/nss_compat/compat-spwd.c: Likewise.
12999 2006-07-30  Roland McGrath  <roland@redhat.com>
13001         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13002         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13003         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13004         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13006         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13007         (nanosleep_not_cancel): New macro.
13008         (sigsuspend_not_cancel): new macro.
13009         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13010         (do_sigsuspend): Define as inline.
13011         (__sigsuspend): Always use do_sigsuspend.
13012         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13013         * include/signal.h: Declare __sigsuspend_nocancel.
13014         * sysdeps/posix/pause.c
13015         [! NO_CANCELLATION] (__pause_nocancel): New function.
13017         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13018         * include/time.h (__nanosleep_nocancel): Likewise.
13020 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13022         * locale/programs/localedef.c (add_to_readlist): Rename local
13023         variables to avoid confusion.
13025         * locale/programs/charmap.c (charmap_read): Emit error message if
13026         charmap couldn't be found or read.
13028 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13030         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13031         __ASSUME_FUTEX_LOCK_PI.
13032         * include/time.h: Declare __nanosleep_nocancel.
13033         * include/unistd.h: Declare __pause_nocancel.
13035         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13036         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13037         get the __stack_chk_fail_local definition when it's needed.
13039 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13041         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13042         * dlfcn/bug-atexit3.c: New file.
13043         * dlfcn/bug-atexit3-lib.cc: New file.
13045         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13046         used when the namespace is not the base namespace.
13048 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13050         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13051         (__new_exitfn): Bump it in every successful call.
13052         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13053         more exit handlers, call them right away.
13054         * stdlib/exit.h: Declare __new_exitfn_called.
13056 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13058         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13059         calling registered handler.
13061         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13062         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13063         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13064         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13065         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13066         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13067         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13068         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13070 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13072         * elf/dl-lookup.c (dl_new_hash): New functions.
13073         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13074         value here.  Compute new-style hash value.  Pass new hash value
13075         and reference to variable with the old value to do_lookup_x.
13076         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13077         old-style hash table.
13078         (_dl_debug_bindings): Pass new hash value and reference to variable
13079         with the old value to do_lookup_x.
13080         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13081         new-style hash value and change old-style hash value parameter to
13082         be a reference.  Reoganize functions to determine whether
13083         new-style hash table is available.  Only fall back on old-style
13084         table.  If old-style hash value is needed, compute it here.
13085         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13086         entry.
13087         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13088         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13089         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13090         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13091         * Makeconfig: If linker supports --hash-style option add it to all
13092         linker command lines to build DSOs.
13093         * config.make.in: Define have-hash-style.
13094         * configure.in: Test whether linker supports --hash-style option.
13096         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13097         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13099 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13101         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13102         auditing.
13104         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13105         RPATH of main map twice.
13107 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13109         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13110         look further, return original strings.
13111         (_nl_find_msg): Do not return found translation if the conversion
13112         failed.  Either signal the string is unusable or that something went
13113         wrong and the original should be used.
13115 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13117         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13119 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13121         [BZ #2766]
13122         * misc/insremque.c (insque): Handle prev == NULL.
13123         * misc/Makefile (tests): Add tst-insremque.
13124         * misc/tst-insremque.c: New test.
13126 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13128         [BZ #2792]
13129         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13130         conflict with DL_DST_REQUIRED.
13132 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13134         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13135         match what Solaris does.
13137 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13139         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13140         local_setegid instead of seteuid and setegid.
13141         * sysdeps/generic/local-setxid.h: New file.
13142         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13144         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13146         * string/Makefile (tests): Add bug-envz1.
13147         * string/bug-envz1.c: New file.
13149 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13151         * posix/regex_internal.c (re_string_skip_chars): If no character has
13152         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13153         to the byte which couldn't be converted.
13154         (re_string_reconstruct): Don't clear valid_raw_len before calling
13155         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13156         tip_context using re_string_context_at.
13157         * posix/Makefile: Add rules to build and run bug-regex25 test.
13158         * posix/bug-regex25.c: New test.
13160 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13162         [BZ #2703]
13163         * string/envz.c (envz_strip): Correct erroneously reversed src
13164         and dest parameters to memmove() invocation.
13166 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13168         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13169         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13170         to make sure the database has been already invalidated.
13171         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13172         after the cache has been invalidated.  Use pthread_mutex_lock rather
13173         than pthread_mutex_trylock if fd != -1.
13174         * nscd/connections.c (invalidate_cache): Add fd argument, write
13175         response to fd if not calling prune_cache, pass fd to prune_cache.
13176         (handle_request): Adjust invalidate_cache caller.
13177         (nscd_run): Pass -1 as fd to prune_cache.
13179 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13181         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13182         the correct place.
13184 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13186         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13187         * nscd/cache.c (prune_cache): Take prunelock before starting the
13188         work.  Just return in case it is already taken.
13189         * nscd/connections.c (dbs): Initialize .prunelock.
13191 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13193         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13194         copying.  No need to allocate new array for group members.  Just
13195         move the pointers and update the size.
13197         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13198         Avoid memory leak in case realloc fails.  Simplification for
13199         better code generation.
13201         Avoid deprecation warning because of libc_hidden_proto for
13202         inet6_option_alloc.
13203         * inet/inet6_option.c (option_alloc): Renamed from
13204         inet6_option_alloc.  Made static.
13205         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13206         (inet6_option_append): Call option_alloc.
13207         * include/netinet/in.h: Remove libc_hidden_proto for
13208         inet6_option_alloc.
13210         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13211         for cleanup when cb!=NULL [Coverity CID 233].
13213 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13215         [BZ #2693]
13216         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13217         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13218         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13219         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13220         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13221         and inet6_rth_getaddr.
13222         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13223         array.
13224         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13225         Mark inet6_option_* interfaces as deprecated.
13226         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13227         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13228         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13229         inet6_rth_segments, and inet6_rth_getaddr.
13230         * inet/inet6_opt.c: New file.
13231         * inet/inet6_rth.c: New file.
13233         * inet/netinet/icmp6.h: Pretty printing.
13235         [BZ #2683]
13236         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13238 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13240         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13241         doing it all here.  When server does not know the answer do not
13242         fail immediate, try parent first.
13244         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13245         overflow test.
13247 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13249         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13250         from __do_niscall.
13251         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13252         and exported.
13253         (__follow_path): New function.  Split out from nis_list.
13254         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13255         _xdr_nis_result.
13256         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13257         _xdr_nis_result.
13258         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13259         and __follow_path.
13260         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13261         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13262         from libnsl for version GLIBC_PRIVATE.
13263         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13264         Remove entry parameter from _nss_nisplus_parse_pwent and
13265         _nss_nisplus_parse_grent.
13266         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13267         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13268         again.  Rewrite getpwent handling to not use nis_first_entry and
13269         nis_next_entry.  Roll out own niscall handling.
13270         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13272         * sunrpc/xdr_rec.c: Fix typo in comment.
13274 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13276         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13277         handling.
13279         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13280         to allocate memory for my_pollfd.  Better initialization of
13281         cb_is_running.  Use TEMP_FAILURE_RETRY.
13283         * malloc/memusage.sh (memusageso): Add quotes.
13284         (memusagestat): Likewise.
13285         * debug/xtrace.sh (pcprofileso): Likewise.
13286         (pcprofiledump): Likewise.
13287         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13288         replacement.
13289         * malloc/Makefile ($(objpfx)memusage): Likewise.
13291         * nis/nis_callback.c (__nis_create_callback): Calls to
13292         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13293         asprintf call fails.
13295         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13296         no uninitialized memory is passed to sendto.
13298 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13300         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13301         of snprintf+strdup.  Handle OOM.
13302         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13303         cb->serv together.  Remove now obsolete free calls.
13304         (__nis_destroy_callback): Remove now obsolete free call.
13306 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13308         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13309         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13310         and ULA respectively). Set precedence for IPv4 address to 10 as
13311         defined in RFC3484 for preferring IPv6.
13312         * posix/gai.conf: Update to match the new default tables.
13314 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13316         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13317         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13318         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13319         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13321         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13322         Removed.
13323         (init_nss_interface): Remove initialization of these variables.
13325 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13327         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13328         nis_free_directory forward to avoid duplication.
13330 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13332         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13333         rec_dirsearch returning NULL.
13334         (first_shoot): Handle __nis_finddirectory returning NULL.
13335         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13337         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13338         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13340 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13342         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13343         pid changed.
13345 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13347         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13349         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13350         * nscd/nscd_getgr_r.c: Likewise.
13352         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13354         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13355         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13357         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13359         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13361         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13363         * include/rpc/auth.h: Mark xdr_des_block_internal and
13364         xdr_opaque_auth_internal as hidden.
13366         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13367         hidden.
13369         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13371         * misc/getusershell.c (okshells): Don't use static initializers,
13372         do it dynamically.
13374         * stdlib/fmtmsg.c (keywords): Change type of len element to
13375         uint32_t to not waste space on 64bit machines.
13377         * locale/setlocale.c: Change _nl_category_names into a string.
13378         Add new _nl_category_name_idxs.  Change all users.
13379         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13380         Declare _nl_category_name_idxs.
13381         * locale/findlocale.c: Adjust for _nl_category_names change.
13382         * locale/loadlocale.c: Likewise.
13383         * locale/newlocale.c: Likewise.
13384         * intl/dcigettext.c: Likewise.
13386         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13387         (add_alias2): ...here.  New function.
13388         (__gconv_read_conf): Simplify builtin alias handling.
13389         (builtin_aliases): Convert to string to avoid relocations.
13390         * iconv/gconv_builtin.h: Add comment about correct formatting.
13392 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13394         * resolv/res_debug.c (loc_ntoa): Make error const.
13396 2006-05-14  Andreas Schwab  <schwab@suse.de>
13398         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13400 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13402         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13403         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13404         sizeof (cpu_set_t).
13406 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13408         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13410         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13412         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13413         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13415         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13416         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13418         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13419         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13420         xdr_cback_data.
13422         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13423         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13424         xdr_ypupdate_args.
13426         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13427         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13429         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13430         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13432         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13433         * include/rpcsvc/nis_callback.h: New file.
13435         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13436         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13438         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13439         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13441         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13442         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13444         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13445         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13447         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13448         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13449         xdr_ypdelete_args.
13451         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13452         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13454         * nis/nis_error.c: Remove table of strings.  Use position
13455         independent mechanism.
13456         * nis/nis_error.h: New file.
13458 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13460         * locale/programs/ld-time.c (time_finish): If wide era name or
13461         format aren't provided, set both wname and wformat to L"".
13463 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13465         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13466         results if the call was succesful.
13468         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13470         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13471         as hidden.
13473 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13475         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13477 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13479         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13480         caller makes sure this is not the case.
13481         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13483 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13485         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13486         calls.
13488         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13489         [Coverity CID 229, 230]
13491         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13492         DGETTEXT calls.
13493         (hol_help): Likewise.  [Coverity CID 226, 227]
13495         * string/argz-replace.c (__argz_replace): Unconditionally call
13496         free on SRC.  [Coverity CID 225]
13498         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13499         the return value of __nis_default_owner and __nis_default_group,
13500         it has been especially allocated.  [Coverity CID 224]
13502         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13503         searchgroup and searchowner.  Significantly simplified.
13504         (__nis_default_owner): Remove duplication.  Do not locally copy the
13505         string before duplicating it.
13506         (__nis_default_group): Likewise.
13508         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13509         we must clear the variable before calling __nisfind_server.
13511         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13512         nis_getnames.  [Coverity CID 223]
13514         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13515         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13517         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13518         allocate memory for the input to add_bytes.  [Coverity CID 221]
13520         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13521         was allocated here.  [Coverity CID 219, 220]
13523         * posix/getconf.c (print_all): Free confstr data after printing.
13524         [Coverity CID 218]
13526         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13527         list allocation fails.  [Coverity CID 215]
13529         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13530         [Coverity CID 213]
13532         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13533         string is NULL.  [Coverity CID 212]
13534         * argp/Makefile: Add rules to build and run bug-argp1.
13535         * argp/bug-argp1.c: New file.
13537         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13538         end of string.
13539         * stdlib/canonicalize.c (__realpath): Likewise.
13541         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13542         pointer.  [Coverity CID 206]
13544         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13545         in statically linked code.
13546         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13547         statically built code, be prepared to have no link map.
13548         [Coverity CID 205]
13550         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13551         dgettext calls. [Coverity CID 204]
13553         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13554         the one user.
13555         (uparam_names): Reduce size.  Avoid relative relocations.
13556         Moved to read-only segment.
13557         (fill_in_uparams): Update for new layout.
13559         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13560         assumed to always be != NULL. [Coverity CID 202]
13562         * argp/argp-help.c (hol_entry_help): Remove some dead code
13563         [Coverity CID 200].
13565         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13566         away a few more unconditional yperr2nss calls.
13567         (_nss_nis_getservbyname_r): Likewise.
13569 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13571         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13572         architectures.
13574         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13575         that unused memory passed to sendto is nevertheless initialized.
13577         [BZ #2499]
13578         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13579         possibly unaligned memory accesses.
13581         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13582         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13583         and __putlong respectively.  Correct buffer overflow check for
13584         NS_NOTIFY_OP.
13586         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13588         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13589         (send_dg): Rewrite error handling to be more compact and avoid
13590         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13592         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13594         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13595         instead of ns_get16.
13596         (res_queriesmatch): Likewise.  Minor optimization.
13598         [BZ #2499]
13599         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13600         __libc_res_nsend might reallocate the buffer for the answer.  In
13601         this case we have to reload the HP pointer.
13603 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13605         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13606         some branch prediction hints.
13608         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13609         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13610         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13611         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13612         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13613         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13614         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13615         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13617 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13619         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13620         by a GOT relocation to make Scrt1.o position independent.
13621         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13623         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13624         six system call parameters.
13625         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13627 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13629         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13630         malloc&bzero.
13632         * sunrpc/svc_udp.c (BZERO): Remove definition.
13633         (CALLOC): Define.
13634         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13636         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13637         (des_SPtrans): Use uint32_t type.
13638         (des_skb): Likewise.
13640         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13642 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13644         [BZ #2509]
13645         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13646         on 32-bit arches.
13648 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13650         * locale/programs/ld-address.c (address_finish): Fix one more
13651         place where the iso639 array might be accessed beyond the limits.
13653 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13655         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13656         filling it for the first time.
13658         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13659         Adjust all callers.
13660         Free res object content before returning.
13662         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13664         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13665         client->cl_auth.
13667         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13668         cleanup for initial thread, just the free call on TVP.
13670         * nscd/gai.c (__getline): Define.
13673 See ChangeLog.16 for earlier changes.