Fix up ChangeLog.
[glibc.git] / ChangeLog
blob0fe85205ee996ae40a2f423e91b4f51205c7d345
1 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
4         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
5         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
6         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
8 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
10         [BZ #10992]
11         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
12         Patch by Eric Blake <ebb9@byu.net>.
14 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
16         [BZ #11093]
17         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
18         POLLWRBAND also for POSIX 2008.
19         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
20         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
22         * include/link.h (struct link_map): Move l_used into its own word.
23         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
24         still zero.
25         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
26         never really used.
28 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
30         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
31         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
32         check processor feature.
33         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
35         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
36         (index_SSE2): Likewise.
38 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
40         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
41         if __ASSEMBLER__ is defined.
42         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
43         (bit_SSE4_2): Likewise.
44         (index_SSSE3): Likewise.
45         (index_SSE4_2): Likewise.
46         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
47         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
48         check processor feature.
49         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
50         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
51         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
52         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
53         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
54         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
55         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
61 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
63         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
65 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
67         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
68         O_DSYNC to match 2.6.33+ kernels.
69         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
70         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
71         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
72         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
73         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
74         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
78         [BZ #11000]
79         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
80         *herrnop before returning.
81         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
82         Likewise.
83         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
84         TRYAGAIN errors separately.
85         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
86         *name4_r after functions.
88 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
90         [BZ #11046]
91         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
92         version check.
94 2009-11-05  Bruno Haible  <bruno@clisp.org>
96         [BZ #11056]
97         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
98         argv argument as non-NULL.
99         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
101 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
103         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
104         recvmmsg.
105         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
106         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
108 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
110         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
111         registers.
112         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
113         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
114         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
116 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
118         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
119         SCHED_RESET_ON_FORK.
121 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
123         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
124         only used on truly ancient kernel if configuration requires a more
125         recent kernel.
127 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
129         [BZ #3662]
130         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
131         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
133         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
134         pass it on to __ptsname_internal.
135         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
136         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
137         All the code from __ptsname_r but take additional parameter.  Use that
138         instead of pointer to local stat64 variable.
139         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
140         variable.
141         * include/stdlib.h: Declare __ptsname_internal.
143         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
144         before the exec.
145         * sysdeps/unix/sysv/linux/grantpt.c: New file.
146         * login/programs/pt_chown.c (main): Don't print message on errors
147         when doing real work.
149         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
150         once.
152         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
153         irel relocations split out from...
154         (__libc_csu_init): ...here.
155         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
157 2009-11-23  Andreas Schwab  <schwab@redhat.com>
159         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
160         for timestamps also if __USE_XOPEN2K8.
161         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
162         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
163         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
164         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
166 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
168         * nscd/connections.c (restart): Try harder to re-exec.
170         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
172         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
173         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
174         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
175         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
176         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
177         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
179         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
180         Define.
181         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
183 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
185         [BZ #10162]
186         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
187         than software pipeline.  Properly recover from shorter read.
189 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
191         [BZ #10958]
192         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
193         initialized before using it.
194         (_IO_putwc_unlocked): Likewise.
196         [BZ #10918]
197         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
198         in cast to not throw away const-ness of parameters.
199         (__CPU_EQUAL_S): Likewise.
200         (__CPU_OP_S): Likewise.
202         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
203         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
204         this gratuitous change and we have to keep compatibility.
205         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
206         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
207         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
208         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
209         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
210         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
212 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
214         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
215         of parameters of sync_file_range.
216         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
217         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
218         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
219         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
220         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
221         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
223 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
225         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
226         Implement using sync_file_range2 syscall if __NR_sync_file_range2
227         is defined.
228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
229         file.
231 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
233         * posix/bug-regex30.c: New file.
234         * posix/Makefile: Add rules to build and run bug-regex30.
235         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
236         character lead bytes when there is a range in a COMPLEX_BRACKET.
237         Reported by Oleg Bylatov.
239 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
241         [BZ #10969]
242         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
243         * locale/tst-duplocale.c: New file.
244         * locale/Makefile (tests): Add tst-duplocale.
246         [BZ #10968]
247         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
248         Patch by Bruno Haible <bruno@clisp.org>.
249         * locale/tst-locname.c: New file.
250         * locale/Makefile (tests): Add tst-locname.
252         [BZ #10972]
253         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
254         constants from recent kernels.
255         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
256         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
257         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
258         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
259         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
260         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
262 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
264         [BZ #10162]
265         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
266         software pipeline.
268 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
270         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
271         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
272         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
274 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
276         * posix/bug-regex29.c: Include stdio.h.
278 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
280         [BZ #10939]
281         * Versions.def: Define GLIBC_2.12 for libc.
282         * manual/errno.texi: Add ERFKILL entry.
283         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
284         for 2.12.
285         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
286         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
288         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
289         F_GETOWN_EX definitions according to corrected kernel definitions.
290         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
291         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
292         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
293         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
294         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
295         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
297 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
299         * version.h: Bump for 2.12 development.
301 2009-11-10  Andreas Schwab  <schwab@redhat.com>
303         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
304         out of buffer space.
305         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
306         map_v4v6_hostent running out of space.
308 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
310         * string/bits/string3.h (memset): If the second parameter is constant
311         and zero there is likely no transposition.
312         Patch by Caolan McNamara <caolanm@redhat.com.
314 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
316         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
317         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
319 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
321         * malloc/memusagestat.c (main): Fix spelling in an error message.
323 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
325         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
326         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
328 2009-11-03  Andreas Schwab  <schwab@redhat.com>
330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
331         readahead.
333 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
335         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
336         relocate opd entry when resolving prelink conflicts.
338 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
340         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
341         when -D_FILE_OFFSET_BITS=64.
343         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
344         of last two arguments when -D_FILE_OFFSET_BITS=64.
345         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
346         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
347         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
348         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
349         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
350         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
352 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
354         [BZ #4457]
355         * sysdeps/generic/libgcc_s.h: New file.
356         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
358 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
360         * malloc/hooks.c (free_check): Restore locking and call _int_free
361         appropriately.
363 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
365         * version.h (VERSION): Bump for 2.11 release.
366         * include/features.h (__GLIBC_MINOR__): Bump to 11.
368         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
370         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
372         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
373         to avoid warning.
374         * stdlib/tst-strtoll.c (tests): Likewise.
376         [BZ #9986]
377         * time/strftime_l.c (__strftime_internal): Allow %OC.
379         * misc/mkostemps.c: New file.
380         * misc/mkostemps64.c: New file.
382 2009-10-30  Andreas Schwab  <schwab@redhat.com>
384         * locale/programs/locale-spec.c: Include <error.h> and
385         <libintl.h>.
387         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
389 2009-10-28  Roland McGrath  <roland@redhat.com>
391         * Makefile (dist-prepare): New target.
392         (tag-for-dist): Target removed.
393         (glibc-%.tar): Pattern rule removed.
394         (%.tar): New pattern rule, does simple use of git archive.
395         (dist-version): Remove variable definition.
396         (dist): Just depend on that.  Add .tar.xz dependency.
397         If dist-version variable not set on command line, depend on
398         dist-prepare, re-invoke with dist-version set via git describe.
400         * Makerules (%.xz): New pattern rule.
402 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
404         * elf/ifuncdep2.c: Include ifunc-sel.h.
405         (global): Delete.
406         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
407         * elf/ifuncmain1.c (global): Delete.
408         * elf/ifuncmain1vis.c: Likewise.
409         * elf/ifuncmain2.c: Likewise.
410         * elf/ifuncmain5.c: Likewise.
411         * elf/ifuncmod3.c: Likewise.
412         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
413         (foo_ifunc): Use ifunc_one.
414         * elf/ifuncmain7.c: Likewise.
415         * elf/ifuncmod1.c: Include ifunc-sel.h.
416         (global): Define protected var.
417         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
418         * elf/ifuncmod5.c: Likewise.
419         * sysdeps/generic/elf/ifunc-sel.h: New file.
420         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
422 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
424         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
425         (R_PPC_REL16*): Correct comments.
426         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
427         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
428          R_PPC64_REL16_HA): Define.
429         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
430         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
431         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
432         Delete unused "reloc" param.
433         (__process_machine_rela): Handle R_PPC_IRELATIVE.
434         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
435         Delete "reloc" param.
436         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
437         R_PPC_IRELATIVE.
438         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
439         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
440         relocations.
442 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
444         [BZ #10315]
445         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
446         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
447         UDP_ENCAP_L2TPINUDP.
449         [BZ #10349]
450         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
451         parameter, specifying length of prefix.
452         * stdio-common/tempname.c: Likewise.
453         * include/stdio.h: Adjust prototypes.
454         * libio/oldtmpfile.c: Adjust caller.
455         * misc/mkdtemp.c: Likewise.
456         * misc/mkostemp.c: Likewise.
457         * misc/mkostemp64.c: Likewise.
458         * misc/mkstemp.c:  Likewise.
459         * misc/mkstemp64.c: Likewise.
460         * misc/mktemp.c: Likewise.
461         * stdio-common/tempnam.c: Likewise.
462         * stdio-common/tmpfile.c: Likewise.
463         * stdio-common/tmpnam.c: Likewise.
464         * stdio-common/tmpnam_r.c: Likewise.
465         * misc/mkstemps.c: New file.
466         * misc/mkstemps64.c: New file.
467         * stdlib/stdlib.h: Add prototypes.
468         * misc/Makefile (routines): Add mkstemps and mkstemps64.
469         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
471 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
473         * locale/iso-639.def: Add sml entry.
475         [BZ #10391]
476         * resolv/res_send.c (send_dg): Initialize resplen.
478         [BZ #10446]
479         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
480         definition to the kernel's.
481         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
483 2009-08-18  Anders Johansson  <ajohansson@novell.com>
485         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
486         offsets and record sizes in assert()s and response sending.
487         * nscd/grpcache.c: Likewise.
488         * nscd/hstcache.c: Likewise.
489         * nscd/initgrcache.c: Likewise.
490         * nscd/pwdcache.c: Likewise.
492 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
494         [BZ #10540]
495         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
496         /etc/hosts does not exist set errnop and herrnop appropriately.
497         Patch by Steve Langasek <vorlon@debian.org>.
499         [BZ #10553]
500         * malloc/malloc.c (malloc_info): Fix typos in format strings.
501         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
503         [BZ #10564]
504         * login/utmp_file.c (TIMEOUT): Increase to 10.
506         [BZ #10609]
507         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
508         for file names in case the syscall is not available.
509         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
510         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
511         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
512         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
513         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
514         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
515         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
516         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
517         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
518         * sysdeps/unix/sysv/linux/openat.c: Likewise.
519         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
520         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
521         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
522         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
523         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
524         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
525         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
527         [BZ #10643]
528         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
529         creation filed, remove the request from the 'requests' list and signal
530         the caller that the request is finished.
532         [BZ #10692]
533         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
534         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
536         [BZ #10713]
537         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
538         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
540         [BZ #10780]
541         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
542         overflows the int return type.
544         [BZ #10717]
545         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
546         have to compute maxsize_total, we have to update the variables, and
547         the also_total handling must happen after the repair.
549         [BZ #10742]
550         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
551         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
553 2009-10-27  Andreas Schwab  <schwab@redhat.com>
555         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
556         errno is always set when returning unsuccessfully.
558 2009-10-29  Andreas Schwab  <schwab@redhat.com>
560         * malloc/memusage.c (update_data): Fix index wraparound handling
561         so that buffer_cnt is actually reset.
563 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
565         [BZ #10784]
566         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
567         of the directory we look at into the static buffer if there is one
568         at the start of the loop.
570         [BZ #10789]
571         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
572         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
574         [BZ #10840]
575         * sysdeps/unix/sysv/linux/kernel-features.h: Define
576         __ASSUME_F_GETOWN_EX.
577         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
578         if possible.
579         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
581         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
582         and f_owner_ex.
583         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
584         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
585         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
586         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
587         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
588         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
590         [BZ #10847]
591         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
592         getutmpx symbol.
594         [BZ #10823]
595         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
596         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
598 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
600         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
602 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
604         [BZ #10817]
605         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
606         Reported by Ray Chason.
608 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
610         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
611         strend-sse4.
612         * sysdeps/x86_64/multiarch/strchr.S: New file.
613         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
614         * sysdeps/x86_64/multiarch/strrchr.S: New file.
616 2009-10-21  Andreas Schwab  <schwab@redhat.com>
618         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
620 2009-10-19  Andreas Schwab  <schwab@redhat.com>
622         * include/math.h: Add hidden protos for __exp/__expf/__expl.
623         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
624         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
625         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
626         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
627         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
628         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
629         __ieee751_expl to handle overflow.
631 2009-10-14  David S. Miller  <davem@davemloft.net>
633         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
634         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
636 2009-10-13  Andreas Schwab  <schwab@redhat.com>
638         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
639         !USE_MULTIARCH.
641 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
643         [BZ #10730]
644         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
645         Patch in part by Steve Ward <planet36@gmail.com>.
647         [BZ #10731]
648         * stdlib/rand_r.c: Fix typo.
650         * po/cs.po: Update from translation team.
652 2009-10-06  Andreas Schwab  <schwab@redhat.com>
654         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
655         returning if RTLD_NOLOAD.
657 2009-10-06  Roland McGrath  <roland@redhat.com>
659         * sysdeps/x86_64/multiarch/strstr-c.c
660         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
662         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
663         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
665         * sysdeps/x86_64/multiarch/init-arch.h
666         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
667         (HAS_CPU_FEATURE): New macro.
668         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
669         * sysdeps/x86_64/multiarch/init-arch.c
670         (__get_cpu_features): #undef it before definition.
672 2009-10-05  Andreas Schwab  <schwab@redhat.com>
674         * locale/C-time.c: Revert week-1stday back to 19971130 and set
675         first_weekday to 1 and first_workday to 2.
677 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
679         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
680         F_GETOWN_EX.
681         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
682         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
683         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
684         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
685         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
686         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
688 2009-09-28  Andreas Schwab  <schwab@redhat.com>
690         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
691         * stdio-common/vfprintf.c: Likewise.
693 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
695         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
696         (mkdirat): Call __directory_name_split_at instead of
697         __directory_name_split.
699 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
701         * locale/programs/locale-spec.c (locale_special): If nothing matches
702         fail with an appropriate message.
704 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
706         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
707         and XX.
709 2009-09-25  Andreas Schwab  <schwab@redhat.com>
711         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
712         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
714 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
716         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
718 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
720         * iconvdata/iso646.c (gconv_init): Correctly initialize the
721         character size elements in step data.
723 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
725         * po/hu.po: Update from translation team.
726         * po/vi.po: Likewise.
728 2009-09-19  Roland McGrath  <roland@redhat.com>
730         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
732 2009-09-15  Roland McGrath  <roland@redhat.com>
734         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
735         * nptl/sysdeps/pthread/configure: Regenerated.
736         * nptl/sysdeps/x86_64/configure: Regenerated.
737         * sysdeps/unix/sysv/linux/configure: Regenerated.
738         * sysdeps/x86_64/elf/configure: Regenerated.
740         * Makefile (autoconf-it): Set execute bit only on top-level configure.
742         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
743         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
744         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
745         * configure: Regenerated.
747 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
749         * posix/getconf.c (main): Handle -- on command line.
751 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
753         * configure.in: Support binutils 2.100 and 3.0.
755 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
757         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
758         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
759         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
760         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
762 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
764         * locale/programs/ld-collate.c (struct locale_collate_t): Add
765         unnamed_section_defined field.
766         (collate_read): Test and set unnamed_section_defined.
768         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
769         _POSIX2_LINE_MAX.
771 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
773         * configure.in: Support binutils 2.20.
775 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
777         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
778         __strstr_ia32): Add attribute_hidden.
780 2009-09-01  Andreas Schwab  <schwab@redhat.com>
782         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
783         parsing of group entry.
785 2009-09-02  Andreas Schwab  <schwab@redhat.com>
787         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
788         external buffer.  Always discard readahead in internal buffer.
789         * libio/Makefile (tests): Add bug-wsetpos.
790         * libio/bug-wsetpos.c: New file.
792 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
794         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
795         Add attribute_hidden.
796         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
797         __strcasestr_sse2): Likewise.
798         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
799         (__fma_fma): Make static.
800         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
801         (__fmaf_fma): Make static.
803 2009-08-31  Andreas Schwab  <schwab@redhat.com>
805         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
806         reformulate in-buffer optimisation check to match code in
807         _IO_new_file_seekoff.
809 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
811         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
812         to srwi in 32-bit memcpy for power6.
814 2009-09-01  Andreas Schwab  <schwab@redhat.com>
816         * include/stdio.h: Declare hidden proto for fflush.
817         * libio/iofflush.c: Add hidden weak alias for fflush.
819 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
821         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
822         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
824 2009-08-31  Andreas Schwab  <schwab@redhat.com>
826         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
828 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
830         [BZ #10560]
831         * malloc/malloc.c: Add local assert definition to avoid problems with
832         memory allocation in the real one.
834 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
836         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
837         Removed.
838         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
839         turn off SSSE3 on Atom.
841 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
843         * stdlib/tst-strtol.c (tests): More tests.
844         * stdlib/tst-strtoll.c (tests): Likewise.
846 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
848         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
850         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
852 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
854         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
855         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
857         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
859         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
861         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
863 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
865         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
867 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
869         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
870         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
872         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
874         * sysdeps/x86_64/fpu/s_signbit.S: New file.
875         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
877         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
878         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
880         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
881         leftover YMM_SIZE definition.
883 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
885         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
886         union.
887         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
888         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
889         Redefine.
890         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
892         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
893         and SET_FLOAT_WORD definitions.
895 2009-08-24  Roland McGrath  <roland@redhat.com>
897         * sysdeps/unix/syscall-template.S: New file.
898         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
899         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
900         (compile-syscall): Pass mkdep and -g options as normal.
901         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
902         (common-generated): Don't add them here.
904 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
906         * math/s_fdim.c: In case of overflows set errno.
907         * math/s_fdimf.c: Likewise.
908         * math/s_fdiml.c: Likewise.
910         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
911         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
912         are using the inline optimizations.
914         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
915         (__signbitf): Likewise.
917 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
919         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
920         terminated.
921         * posix/Makefile (tests): Add bug-regex29.
922         * posix/bug-regex29.c: New file.
924         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
925         older POSIX versions are selected.
927         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
928         as well.
929         * stdio-common/printf_fphex.c: Likewise.
930         * stdio-common/tstdiomisc.c: Add more tests.
932         * locale/locale.h: Include xlocale.h and the thread-local locale
933         declarations for XPG7, not XPG6.
935 2009-08-21  Andreas Schwab  <schwab@redhat.com>
937         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
938         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
941         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
942         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
944 2009-08-20  Roland McGrath  <roland@redhat.com>
946         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
947         Use l_addr instead of l_map_start (dli_fbase).
948         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
949         address when there is no proximate symbol.
950         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
951         Likewise.
953 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
955         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
957 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
959         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
960         Also handle SIGINT.  In that case only do the cleanup and then
961         re-raise the signal.
962         (main): Install handler for SIGINT.
964 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
966         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
967         clobber list.
969 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
971         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
972         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
973         tst-auditmod7b.c.
974         (tests): Add tst-audit6 tst-audit7.
975         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
976         tst-auditmod7a tst-auditmod7b.
977         ($(objpfx)tst-audit6): New.
978         ($(objpfx)tst-audit6.out): Likewise.
979         ($(objpfx)tst-audit7): Likewise.
980         ($(objpfx)tst-audit7.out): Likewise.
981         (tst-audit6-ENV): Likewise.
982         (tst-audit7-ENV): Likewise.
983         (CFLAGS-tst-auditmod6b.c): Likewise.
984         (CFLAGS-tst-auditmod6c.c): Likewise.
985         (CFLAGS-tst-auditmod7b.c): Likewise.
986         * elf/tst-audit6.c: New file.
987         * elf/tst-audit7.c: New file.
988         * elf/tst-auditmod6a.c: New file.
989         * elf/tst-auditmod6b.c: New file.
990         * elf/tst-auditmod6c.c: New file.
991         * elf/tst-auditmod7a.c: New file.
992         * elf/tst-auditmod7b.c: New file.
993         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
994         saving and restoring SSE/AVX registers to ...
995         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
997 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
999         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1000         only if SHARED is defined.
1001         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1003 2009-08-03  Jim Meyering  <meyering@redhat.com>
1005         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1007 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1009         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1010         section as the other functions for this architecture.
1011         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1013 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1015         * sysdeps/x86_64/strcmp.S: Add support to compile with
1016         USE_SSSE3.  In this case palignr is used.
1017         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1018         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1019         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1020         Add strcmp-ssse3 and strncmp-ssse3.
1021         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1022         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1024         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1025         warning through fake initialization.
1027 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1029         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1031 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1033         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1034         unique symbols.
1036 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1038         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1039         EBX from EAX = 1.  Handle EAX = 11.
1041 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1043         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1044         inside ''.
1046 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1048         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1049         hidden IFUNC functions.
1050         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1052         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1054         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1055         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1056         strcasestr-c.
1057         (CFLAGS-strcspn-c.c): Define.
1058         (CFLAGS-strpbrk-c.c): Define.
1059         (CFLAGS-strspn-c.c): Define.
1060         (CFLAGS-strstr.c): Define.
1061         (CFLAGS-strcasestr.c): Define.
1062         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1063         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1064         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1065         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1066         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1067         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1068         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1069         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1070         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1071         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1072         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1073         -16L instead of 0xfffffffffffffff0L.
1074         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1076 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1078         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1080 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1082         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1083         another rewrite.  Much smaller and faster.
1084         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1086         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1087         ss_flags from the correct location.
1089 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1091         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1092         * sysdeps/i386/i686/cacheinfo.c: New file.
1093         * sysdeps/i386/i686/multiarch/Makefile: New file.
1094         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1095         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1096         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1097         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1098         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1099         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1100         (__cpuid_count): New. Provide the default.
1101         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1102         (__x86_64_preferred_memory_instruction): Define only if
1103         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1104         (intel_check_word): Use __cpuid.
1105         (handle_intel): Likewise.
1106         (handle_amd): Likewise.
1107         (__cache_sysconf): Likewise.
1108         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1109         (__cache_sysconf): Likewise.
1110         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1111         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1112         (get_common_indeces): Use __cpuid.
1113         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1114         if ENABLE_SSSE3_ON_ATOM is not defined.
1115         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1116         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1117         popcnt instead of popcntq.
1119 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1121         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1123 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1125         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1126         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1127         which always causes a compile error.
1129         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1131         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1132         comes from...
1133         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1134         which always causes a compile error.
1136         * debug/Makefile (tests): Add tst-longjmp_chk2.
1137         * debug/tst-longjmp_chk2.c: New file.
1139         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1140         Remove incorrect use of BP_SYM.
1141         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1142         here now since it is more complex than just a simple check.
1144         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1145         we make no more progress.
1147 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1149         * math/s_fma.c: Don't define alias if __fma is a macro.
1150         * math/s_fmaf.c: Likewise.
1151         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1152         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1153         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1155         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1156         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1157         New macro HAS_FMA.
1158         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1159         function.
1160         * include/libc-symbols.h (libm_ifunc): Define.
1161         * sysdeps/x86_64/multiarch/Versions: New file.
1163         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1165 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1167         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1169 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1171         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1172         call that registers used in calling conventions need to be preserved.
1173         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1174         to preserve register content if necessary.
1175         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1176         (_dl_x86_64_restore_sse): New function.
1177         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1178         is allowed to modify xmm/ymm registers.
1180         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1181         application's perspective.
1182         * stdio-common/scanf17.c: Likewise.
1184 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1186         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1187         size to memsz.
1188         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1189         here.
1190         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1191         two steps to catch bugs.
1193 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1195         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1196         determines which files are used in runtime lookups and only checks
1197         those for SSE use.
1198         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1199         testing.
1200         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1201         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1202         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1203         take a while.
1205         * elf/dl-open.c: Move _dl_scope_free to...
1206         * elf/dl-scope.c: ...here.  New file.
1207         * elf/Makefile (dl-routines): Add scope.
1209         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1210         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1211         RES_USE_DNSSEC.
1212         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1213         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1214         all the places we handled RES_USE_EDNS0 only before.
1215         Patch by Adam Tkac <atkac@redhat.com>.
1217 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1219         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1220         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1221         Update size when reallocating.
1223 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1225         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1226         functions used in ld.so modify xmm/ymm registers.
1227         * sysdeps/x86_64/Makefile:  Hook new test up.
1228         * sysdeps/x86_64/rtld-memchr.c: New file.
1229         * sysdeps/x86_64/rtld-memcmp.c: New file.
1230         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1231         * sysdeps/x86_64/rtld-strchr.S: New file.
1232         * sysdeps/x86_64/rtld-strlen.S: New file.
1233         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1234         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1236 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1238         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1239         strncmp-c.
1240         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1241         (exit): Likewise.
1242         (Byte1): Likewise.
1243         (Byte2): Likewise.
1244         (Byte3): Likewise.
1245         (Byte4): Likewise.
1246         (Byte5): Likewise.
1247         (Byte6): Likewise.
1248         (next_8_bytes): Likewise.
1249         (Byte0): Remove commented out codes.
1250         (unaligned_table): Align jump table at 8 bytes.
1251         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1252         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1253         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1254         * sysdeps/x86_64/strncmp.S: New file.
1256 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1258         [BZ #10422]
1259         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1260         kernels, dropped when eventfd2 support was added.
1261         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1262         kernels, dropped when signalfd4 support was added.
1263         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1264         added, name them.
1266         [BZ #10452]
1267         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1268         replies up.
1270         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1272 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1274         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1275         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1277         [BZ #10448]
1278         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1279         callback we must touch the status to avoid using stale value.
1281         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1282         compiled in.
1284 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1286         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1287         /lib/modules/* headers anymore.  We have sane headers in the standard
1288         place now.
1290 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1292         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1293         "etf3enh" and "highgprs" added.
1294         (_dl_s390_platforms): "z10" added.
1295         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1296         Increased for the new entries.
1297         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1298         HWCAP_S390_HIGH_GPRS added.
1300         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1301         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1302         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1303         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1304         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1306 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1308         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1309         avoid additional cpuid instructions.  Most of the information is
1310         stored somewhere.
1312         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1313         cache descriptors.
1314         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1316         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1317         SSSE3 bit for Atoms.
1318         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1319         here anymore.
1321         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1322         structure before copying it to avoid warning.
1323         * posix/tst-rfc3484-2.c (do_test): Likewise.
1324         * posix/tst-rfc3484-3.c (do_test): Likewise.
1326         [BZ #10416]
1327         * include/unistd.h: Make header file suitable for C++ test cases.
1328         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1330         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1331         stack alignment in the exit code.
1333         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1334         potentially be zero.
1336         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1337         unique symbol definition.
1338         Patch by Jakub Jelinek.
1339         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1340         make sure the object with the definition cannot be unloaded.  Adjust
1341         a few types.
1342         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1343         the unique symbol hash table should not be const.
1345 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1347         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1348         unnecesary variables.  Comment fixes.
1350 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1352         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1353         Use NONASCII_CASE information provided by the locale to determine
1354         whether optimized string load function can be used.  Minor cleanups.
1356 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1358         * string/strcasestr.c (STRCASESTR): New macro.
1359         (__strcasestr): Renamed to ..
1360         (STRCASESTR): ...this.
1361         * string/strstr.c (STRSTR): New macro.
1362         (strstr): Renamed to ..
1363         (STRSTR): ...this.
1364         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1365         strstr-c strcasestr-c
1366         (CFLAGS-strstr.c): New.
1367         (CFLAGS-strcasestr.c): Likewise.
1368         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1369         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1370         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1371         * sysdeps/x86_64/multiarch/strstr.c: New file.
1373 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1375         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1376         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1377         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1378         _NL_CTYPE_NONASCII_CASE.
1379         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1380         field.
1381         (ctype_finish): Check whether there are any 8-bit characters outside
1382         the range ASCII has or whether the mapping isn't the same as for
1383         ASCII (±0x20).  Set nonascii_case appropriately.
1384         (ctype_output): Add output handler for nonascii_case.
1386 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1388         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1389         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1391 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1393         [BZ #10360]
1394         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1395         0xffff in the EDNS0 record.
1397 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1399         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1400         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1401         is written before the list head update.
1402         Patch by Andreas Schwab <aschwab@redhat.com>.
1404 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1405             Jakub Jelinek  <jakub@redhat.com>
1407         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1408         corruption thread-safe.
1410 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1412         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1413         overrides atomic_compare_and_exchange_val_rel, define to
1414         atomic_compare_and_exchange_val_rel by default, otherwise default
1415         to catomic_compare_and_exchange_val_acq.
1416         (catomic_compare_and_exchange_bool_rel): If arch overrides
1417         atomic_compare_and_exchange_bool_rel, define to
1418         atomic_compare_and_exchange_bool_rel by default.
1419         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1420         Use catomic_compare_and_exchange_val_rel instead of
1421         catomic_compare_and_exchange_val_acq.
1423 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1425         * sysdeps/generic/ldsodefs.h: Add prototype for
1426         _dl_higher_prime_number.
1427         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1429         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1430         restoring of ymm registers a bit.
1432 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1434         * sysdeps/x86_64/memcmp.S: New file.
1436 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1438         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1439         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1440         pointers in writable memory.
1442 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1444         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1445         * config.make.in: Add config-cflags-avx entry.
1446         * configure.in: Substitute libc_cv_cc_avx.
1447         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1448         * elf/tst-audit4.c: New file.
1449         * elf/tst-audit5.c: New file.
1450         * elf/tst-auditmod4a.c: New file.
1451         * elf/tst-auditmod4b.c: New file.
1452         * elf/tst-auditmod5a.c: New file.
1453         * elf/tst-auditmod5b.c: New file.
1454         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1455         link-defines.sym.
1456         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1457         (La_x86_64_vector): Likewise.
1458         (La_x86_64_regs): Append lr_vector.
1459         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1460         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1461         saving and restoring SSE registers to ...
1462         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1463         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1464         <link-defines.h>.
1465         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1466         La_x86_64_regs.  Allocate extra space and jump to memory at
1467         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1468         (save_and_restore_vector_sse): New.
1469         (save_and_restore_vector_avx): Likewise.
1470         (check_avx): Likewise.
1471         (save_and_restore_vector): Likewise.
1472         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1473         HAVE_AVX_SUPPORT.
1474         * sysdeps/x86_64/link-defines.sym: New file.
1476 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1478         * elf/do-lookup.h: Removed after folding content into...
1479         * elf/dl-lookup.c: ...here.
1481         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1483 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1485         * configure.in: Check for gnu_unique_symbol symbol type.
1486         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1487         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1488         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1489         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1490         change.
1491         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1492         unique symbol table.
1493         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1494         for first namespace.
1495         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1496         unique symbol hash table.
1497         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1498         * elf/tst-unique1.c: New file.
1499         * elf/tst-unique1mod1.c: New file.
1500         * elf/tst-unique1mod2.c: New file.
1501         * elf/tst-unique2.c: New file.
1502         * elf/tst-unique2mod1.c: New file.
1503         * elf/tst-unique2mod2.c: New file.
1505 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1507         * elf/elf.h (STB_GNU_UNIQUE): Define.
1509         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1510         from...
1511         * include/inline-hashtab.h: ...here.
1512         (htab_expand): Adjust for renamed function.  Correct memory handling.
1514 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1516         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1518 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1520         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1521         (PPC_FEATURE_HAS_VSX): Likewise.
1523 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1525         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1526         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1528         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1529         aligned to 16 byte boundaries.
1530         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1531         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1532         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1534 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1536         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1537         * config.make.in (config-cflags-sse4): New variable.
1538         * configure.in: Substitute libc_cv_cc_sse4.
1539         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1540         HAVE_SSE4_SUPPORT.
1541         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1542         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1543         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1544         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1545         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1546         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1547         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1548         * sysdeps/x86_64/multiarch/strspn.S: New file.
1550 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1552         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1553         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1554         (tests): Add tst-audit3 for x86_64.
1555         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1556         ($(objpfx)tst-audit3): Define.
1557         ($(objpfx)tst-audit3.out): Define.
1558         (tst-audit3-ENV): Define.
1559         * elf/tst-audit3.c: New file.
1560         * elf/tst-auditmod3a.c: New file.
1561         * elf/tst-auditmod3b.c: New file.
1562         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1563         and restore xmm6.
1565         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1566         (__stpncpy): Renamed to ...
1567         (STPNCPY): This.
1568         (stpncpy): Create alias only if STPNCPY is not defined.
1569         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1570         defined.
1571         (strncpy): Renamed to ...
1572         (STRNCPY): This.
1573         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1574          stpncpy-c strncpy-c for string.
1575         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1576         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1577         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1578         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1579         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1580         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1582 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1584         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1585         adding to fast bin list.
1587 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1589         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1590         inet_makeaddr.  This worked only with class-based networks.
1591         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1592         Likewise.
1594         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1595         recognize all types.
1596         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1597         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1598         be in host byte order.
1600 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1602         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1603         (MODEL_OFFSET): Define.
1604         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1605         family and model.
1606         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1607         out common code into new function get_common_indeces. Determine
1608         extended family and model for Intel processors.
1610 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1612         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1613         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1614         option.
1615         * resolv/res_send.c (reopen): New function.  Broken out of...
1616         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1617         fallback mechanism.  If single-request fails switch to
1618         single-request-reopen mode which opens a new socket for the second
1619         request.
1621 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1623         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1624         (CHECK_SP): Use it.
1626 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1628         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1629         for saved registers.
1630         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1631         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1632         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1634 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1636         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1638 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1640         * po/id.po: Update from translation team.
1642         * po/bg.po: Update from translation team.
1644 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1646         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1647         defined.
1648         (strncmp): Renamed to STRNCMP.
1649         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1650         strncmp-c for string.
1651         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1652         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1653         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1654         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1656 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1658         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1659         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1660         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1661         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1662         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1663         ifuncmain7static.c.
1664         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1665         ifuncmain7static, and ifuncmain7picstatic.
1666         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1667         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1668         $(objpfx)ifuncmain7pie.out.
1669         (modules-names): Add ifuncmod5 ifuncmod6
1670         (ifuncmod5.so-no-z-defs): Define.
1671         (ifuncmod6.so-no-z-defs): Define.
1672         (CFLAGS-ifuncmain5pic.c): Define.
1673         (CFLAGS-ifuncmain5picstatic.c): Define.
1674         (CFLAGS-ifuncmain5staticpic.c): Define.
1675         (CFLAGS-ifuncdep5pic.c): Define.
1676         (CFLAGS-ifuncmain7pic.c): Define.
1677         (CFLAGS-ifuncmain7picstatic.c): Define.
1678         (CFLAGS-ifuncmain1staticpie.c): Define.
1679         (CFLAGS-ifuncmain5pie.c): Define.
1680         (CFLAGS-ifuncmain6pie.c): Define.
1681         (CFLAGS-ifuncmain7pie.c): Define.
1682         ($(objpfx)ifuncmain1staticpie.out): Define.
1683         ($(objpfx)ifuncmain1staticpie): Define.
1684         ($(objpfx)ifuncmain5pie.out): Define.
1685         ($(objpfx)ifuncmain5pie): Define.
1686         ($(objpfx)ifuncmain6pie.out): Define.
1687         ($(objpfx)ifuncmain6pie): Define.
1688         ($(objpfx)ifuncmain5): Define.
1689         ($(objpfx)ifuncmain5pic): Define.
1690         ($(objpfx)ifuncmain5static): Define.
1691         ($(objpfx)ifuncmain5staticpic): Define.
1692         ($(objpfx)ifuncmain5picstatic): Define.
1693         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1694         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1695         ifuncmain6pie.out.
1696         * elf/b/elf/ifuncmain1staticpie.c: New file.
1697         * elf/ifuncdep5.c: New file.
1698         * elf/ifuncdep5pic.c: New file.
1699         * elf/ifuncmain5.c: New file.
1700         * elf/ifuncmain5pic.c: New file.
1701         * elf/ifuncmain5picstatic.c: New file.
1702         * elf/ifuncmain5pie.c: New file.
1703         * elf/ifuncmain5static.c: New file.
1704         * elf/ifuncmain5staticpic.c: New file.
1705         * elf/ifuncmain6pie.c: New file.
1706         * elf/ifuncmain7.c: New file.
1707         * elf/ifuncmain7pic.c: New file.
1708         * elf/ifuncmain7picstatic.c: New file.
1709         * elf/ifuncmain7pie.c: New file.
1710         * elf/ifuncmain7static.c: New file.
1711         * elf/ifuncmod5.c: New file.
1712         * elf/ifuncmod6.c: New file.
1714 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1716         [BZ #10085]
1717         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1718         (nss_endgrent): New variable.
1719         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1720         fields. Change type of files to bool and adjust all users.
1721         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1722         (internal_endgrent): Call nss_endgrent if necessary.
1723         (add_group): New function.  Broken out of...
1724         (check_and_add_group): ...here.
1725         (getgrent_next_nss): Remove test that any callback is available.
1726         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1727         callback.  If there is no blacklist we can trust the results returned
1728         by the initgroups_dyn callback.  In case there is a callback and we
1729         find a group entry for the group ID but it doesn't contain the
1730         correct member, switch to the slow mode and use getgrent_r.
1731         (internal_getgrent_r): When we see a +: entry, determine whether
1732         there is any callback and which we can use the initgroups_dyn
1733         callback.
1735 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1737         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1738         (_int_free): Likewise.
1740         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1741         AF_IEEE802154.
1742         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1743         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1744         and ARPHRD_IEEE802154_PHY.
1746         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1747         relative to generic Linux version.
1749 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1751         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1752         ($(objpfx)ifuncmain1vispie): Likewise.
1754 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1756         * login/Makefile: Build pt_chown as PIE.
1758 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1760         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1761         a format string.
1762         * elf/sln.c (usage): Likewise.
1763         * malloc/memusage.sh (do_help): Likewise.
1764         * nss/getent.c (more_help): Likewise.
1765         * posix/getconf.c (main): Likewise.
1766         * sunrpc/rpcinfo.c (usage): Likewise.
1767         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1769 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1771         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1772         those needed.
1773         * login/Makefile: If necessary link pt_chown with -lcap.
1774         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1775         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1777 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1779         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1780         comparisons.
1781         * string/test-memchr.c (do_random_tests): Test very large lengths
1782         as well.
1784 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1786         * Makeconfig (+link-pie): Define.
1787         (+prectorS): Define.
1788         (+postctorS): Define.
1789         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1790         * nscd/Makefile ($(objpfx)nscd): Likewise.
1792 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1794         [BZ #10107]
1795         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1796         with cmplwi.
1797         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1799 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1801         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1802         into ...
1803         * sysdeps/unix/grantpt.c: ...here.
1805 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1807         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1808         chmod if it is necessary.
1810         [BZ #10166]
1811         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1812         when the slave device is in devpts or devfs.
1814         [BZ #10183]
1815         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1817         [BZ #10195]
1818         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1819         of nd_opt_home_agent_info_preference to uint16_t.
1820         Patch by Arnaud Ebalard <arno@natisbad.org>.
1822         [BZ #10207]
1823         * nss/getent.c: Add support for printing gshadow data.
1825         [BZ #10203]
1826         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1827         not just the currently used one and those which follow.
1828         Patch by Joe Landers <jlanders@vmware.com>.
1830         [BZ #10196]
1831         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1832         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1833         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1835         [BZ #10217]
1836         * stdlib/abort.c: Define variable __abort_msg.
1837         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1838         * include/stdlib.h: Declare __abort_msg.
1839         * assert/assert-perr.c: Don't free buffer for message immediately.
1840         Store atomically in __abort_msg and free old buffer if necessary.
1841         * assert/assert.c: Likewise.
1842         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1843         store pointer in __abort_msg, and possibly free old string.
1844         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1846         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1848         [BZ #10211]
1849         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1850         handle leap seconds if they are available.
1851         Patch by Akinori Hattori <hattya@gentoo.org>.
1853         * timezone/tzselect.ksh: Update from tzcode2009i.
1854         * timezone/zdump.c: Likewise.
1855         * timezone/zic.c: Likewise.
1857         * timezone/africa: Update from tzdata2009i.
1858         * timezone/antarctica: Likewise.
1859         * timezone/asia: Likewise.
1860         * timezone/australasia: Likewise.
1861         * timezone/backward: Likewise.
1862         * timezone/etcetera: Likewise.
1863         * timezone/europe: Likewise.
1864         * timezone/factory: Likewise.
1865         * timezone/iso3166.tab: Likewise.
1866         * timezone/leapseconds: Likewise.
1867         * timezone/northamerica: Likewise.
1868         * timezone/pacificnew: Likewise.
1869         * timezone/solar87: Likewise.
1870         * timezone/solar88: Likewise.
1871         * timezone/solar89: Likewise.
1872         * timezone/southamerica: Likewise.
1873         * timezone/systemv: Likewise.
1874         * timezone/yearistype: Likewise.
1875         * timezone/zone.tab: Likewise.
1877 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1879         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1880         STT_GNU_IFUNC symbol or in 8 into type_class.
1882         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1883         instead of Elf64_Addr.
1885 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1887         * po/sv.po: Update from translation team.
1889         [BZ #10229]
1890         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1891         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1892         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1893         the C version.
1895 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1897         * Versions.def: Add GLIBC_2.11 for libpthread.
1899 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1901         * resolv/res_send.c (send_dg): Remember we switched to
1902         single-request mode.
1904 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1906         * dlfcn/dlfcn.h: Remove comma at end of enum.
1907         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1909         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1910         parsing mode string.
1912 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1914         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1916         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1918         * sysdeps/x86_64/multiarch/strlen.S: New file.
1919         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1920         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1921         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1922         content.
1924         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1925         is defined.
1927 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1929         * sysdeps/x86_64/strlen.S: Minor optimizations.
1931 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1933         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1934         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1935         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1936         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1937         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1938         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1939         ifuncmain3.c, ifuncmod3.c,.
1940         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1941         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1942         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1943         ifuncmain4picstatic.
1944         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1945         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1946         ifuncmain3, ifuncmain4.
1947         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1948         $(objpfx)ifuncmain1vispie.out.
1949         (modules-names): Add ifuncmod1 ifuncmod3.
1950         (generated): Add ifuncmain1pie ifuncmain1pie.out
1951         ifuncmain1vispie ifuncmain1vispie.out.
1952         Define rules to build and run the tests.
1953         * elf/ifuncdep1.c: New file.
1954         * elf/ifuncdep1pic.c: New file.
1955         * elf/ifuncdep2.c: New file.
1956         * elf/ifuncdep2pic.c: New file.
1957         * elf/ifuncmain1.c: New file.
1958         * elf/ifuncmain1pic.c: New file.
1959         * elf/ifuncmain1picstatic.c: New file.
1960         * elf/ifuncmain1pie.c: New file.
1961         * elf/ifuncmain1static.c: New file.
1962         * elf/ifuncmain1staticpic.c: New file.
1963         * elf/ifuncmain1vis.c: New file..
1964         * elf/ifuncmain1vispic.c: New file..
1965         * elf/ifuncmain1vispie.c: New file.
1966         * elf/ifuncmain2.c: New file.
1967         * elf/ifuncmain2pic.c: New file.
1968         * elf/ifuncmain2picstatic.c: New file.
1969         * elf/ifuncmain2static.c: New file.
1970         * elf/ifuncmain3.c: New file.
1971         * elf/ifuncmain4.c: New file.
1972         * elf/ifuncmain4picstatic.c: New file.
1973         * elf/ifuncmain4static.c: New file.
1974         * elf/ifuncmod1.c: New file.
1975         * elf/ifuncmod3.c: New file.
1977 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1979         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1981 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1983         [BZ #10221]
1984         * posix/Makefile (routines): Add execvpe.
1985         * posix/Versions: Export execvpe for GLIBC_2.11.
1986         * posix/execvp.c: Now only a wrapper.  Move code to...
1987         * posix/execvpe.c: ...here.  New file.
1988         * posix/unistd.h: Declare execvpe.
1990 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1992         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1993         for STT_GNU_IFUNC handling for efficiency.
1994         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1996         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1997         _exit.
1998         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2000 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2002         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2003         for !SHARED.
2005 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2007         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2008         is not defined.
2009         (__rela_iplt_start): New declaration.
2010         (__rela_iplt_end): Likewise.
2011         (__rel_iplt_start): Likewise.
2012         (__rel_iplt_end): Likewise.
2013         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2014         * elf/elf.h (R_386_IRELATIVE): New macro.
2015         (R_X86_64_IRELATIVE): New macro.
2016         (R_386_NUM): Updated.
2017         (R_X86_64_NUM): Likewise.
2018         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2019         (libc_ifunc_hidden_def): New macro.
2020         * sysdeps/generic/dl-irel.h: New file.
2021         * sysdeps/i386/dl-irel.h: New file.
2022         * sysdeps/x86_64/dl-irel.h: New file.
2023         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2024         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2025         Handle R_386_IRELATIVE.
2026         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2027         (elf_machine_lazy_rela): Likewise.
2028         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2029         R_X86_64_IRELATIVE.
2030         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2032 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2034         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2035         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2036         are no differences.  If an architecture has bits in CPUID index 1
2037         meaning different things the values for the COMMON_CPUID_INDEX_1
2038         index must not be set.
2039         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2040         (HAS_POPCOUNT): ...this.  New macro.
2041         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2042         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2043         to set the value for Intel and AMD architectures.
2044         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2045         INTEL_CPUID_INDEX_1.
2046         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2047         change.
2049 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2051         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2052         and $build.
2054 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2056         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2057         (__expm1l): Set errno to ERANGE on overflow.
2058         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2059         (__tanl): Set errno to EDOM for Â±Inf.
2060         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2061         (__cosl): Set errno to EDOM for Â±Inf.
2062         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2063         (__sinl): Set errno to EDOM for Â±Inf.
2065         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2066         defined, use it.
2067         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2068         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2069         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2071 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2073         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2074         code accessing it.
2075         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2077 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2079         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2080         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2081         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2082         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2084         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2085         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2086         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2087         defined.
2088         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2089         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2091 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2093         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2094         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2095         is, either do nothing at all if __ASSUME_ACCEPT4, or
2096         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2097         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2098         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2099         define.
2100         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2101         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2102         internal_accept4 in socket directory.
2104 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2106         * sysdeps/ia64/configure.in: New file.
2108 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2110         [BZ #10162]
2111         * sysdeps/ia64/memchr.S: Use speculative load.
2113         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2114         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2115         use it.
2117         * sysdeps/i386/__longjmp.S: Add .text.
2118         * sysdeps/x86_64/__longjmp.S: Likewise.
2120 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2122         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2123         __ASSUME_ACCEPT4 for IA-64.
2125 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2127         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2129         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2130         (SOCKOP_accept4): Define.
2132 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2134         Sun approved the change of the license.
2135         * sunrpc/auth_des.c: Replace license text.
2136         * sunrpc/auth_none.c: Likewise.
2137         * sunrpc/auth_unix.c: Likewise.
2138         * sunrpc/authdes_prot.c: Likewise.
2139         * sunrpc/authuxprot.c: Likewise.
2140         * sunrpc/bindrsvprt.c: Likewise.
2141         * sunrpc/clnt_gen.c: Likewise.
2142         * sunrpc/clnt_perr.c: Likewise.
2143         * sunrpc/clnt_raw.c: Likewise.
2144         * sunrpc/clnt_simp.c: Likewise.
2145         * sunrpc/clnt_tcp.c: Likewise.
2146         * sunrpc/clnt_udp.c: Likewise.
2147         * sunrpc/clnt_unix.c: Likewise.
2148         * sunrpc/des_crypt.c: Likewise.
2149         * sunrpc/des_soft.c: Likewise.
2150         * sunrpc/get_myaddr.c: Likewise.
2151         * sunrpc/getrpcport.c: Likewise.
2152         * sunrpc/key_call.c: Likewise.
2153         * sunrpc/key_prot.c: Likewise.
2154         * sunrpc/openchild.c: Likewise.
2155         * sunrpc/pm_getmaps.c: Likewise.
2156         * sunrpc/pm_getport.c: Likewise.
2157         * sunrpc/pmap_clnt.c: Likewise.
2158         * sunrpc/pmap_prot.c: Likewise.
2159         * sunrpc/pmap_prot2.c: Likewise.
2160         * sunrpc/pmap_rmt.c: Likewise.
2161         * sunrpc/rpc/auth.h: Likewise.
2162         * sunrpc/rpc/auth_unix.h: Likewise.
2163         * sunrpc/rpc/clnt.h: Likewise.
2164         * sunrpc/rpc/des_crypt.h: Likewise.
2165         * sunrpc/rpc/key_prot.h: Likewise.
2166         * sunrpc/rpc/netdb.h: Likewise.
2167         * sunrpc/rpc/pmap_clnt.h: Likewise.
2168         * sunrpc/rpc/pmap_prot.h: Likewise.
2169         * sunrpc/rpc/pmap_rmt.h: Likewise.
2170         * sunrpc/rpc/rpc.h: Likewise.
2171         * sunrpc/rpc/rpc_des.h: Likewise.
2172         * sunrpc/rpc/rpc_msg.h: Likewise.
2173         * sunrpc/rpc/svc.h: Likewise.
2174         * sunrpc/rpc/svc_auth.h: Likewise.
2175         * sunrpc/rpc/types.h: Likewise.
2176         * sunrpc/rpc/xdr.h: Likewise.
2177         * sunrpc/rpc_clntout.c: Likewise.
2178         * sunrpc/rpc_cmsg.c: Likewise.
2179         * sunrpc/rpc_common.c: Likewise.
2180         * sunrpc/rpc_cout.c: Likewise.
2181         * sunrpc/rpc_dtable.c: Likewise.
2182         * sunrpc/rpc_hout.c: Likewise.
2183         * sunrpc/rpc_main.c: Likewise.
2184         * sunrpc/rpc_parse.c: Likewise.
2185         * sunrpc/rpc_parse.h: Likewise.
2186         * sunrpc/rpc_prot.c: Likewise.
2187         * sunrpc/rpc_sample.c: Likewise.
2188         * sunrpc/rpc_scan.c: Likewise.
2189         * sunrpc/rpc_scan.h: Likewise.
2190         * sunrpc/rpc_svcout.c: Likewise.
2191         * sunrpc/rpc_tblout.c: Likewise.
2192         * sunrpc/rpc_util.c: Likewise.
2193         * sunrpc/rpc_util.h: Likewise.
2194         * sunrpc/rpcinfo.c: Likewise.
2195         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2196         * sunrpc/rpcsvc/key_prot.x: Likewise.
2197         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2198         * sunrpc/rpcsvc/mount.x: Likewise.
2199         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2200         * sunrpc/rpcsvc/rex.x: Likewise.
2201         * sunrpc/rpcsvc/rstat.x: Likewise.
2202         * sunrpc/rpcsvc/rusers.x: Likewise.
2203         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2204         * sunrpc/rpcsvc/spray.x: Likewise.
2205         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2206         * sunrpc/rtime.c: Likewise.
2207         * sunrpc/svc.c: Likewise.
2208         * sunrpc/svc_auth.c: Likewise.
2209         * sunrpc/svc_authux.c: Likewise.
2210         * sunrpc/svc_raw.c: Likewise.
2211         * sunrpc/svc_run.c: Likewise.
2212         * sunrpc/svc_simple.c: Likewise.
2213         * sunrpc/svc_tcp.c: Likewise.
2214         * sunrpc/svc_udp.c: Likewise.
2215         * sunrpc/svc_unix.c: Likewise.
2216         * sunrpc/svcauth_des.c: Likewise.
2217         * sunrpc/xcrypt.c: Likewise.
2218         * sunrpc/xdr.c: Likewise.
2219         * sunrpc/xdr_array.c: Likewise.
2220         * sunrpc/xdr_float.c: Likewise.
2221         * sunrpc/xdr_mem.c: Likewise.
2222         * sunrpc/xdr_rec.c: Likewise.
2223         * sunrpc/xdr_ref.c: Likewise.
2224         * sunrpc/xdr_sizeof.c: Likewise.
2225         * sunrpc/xdr_stdio.c: Likewise.
2227         * po/da.po: Update from translation team.
2229 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2231         * sysdeps/sh/____longjmp_chk.S: New file.
2232         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2233         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2235 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2236             Ulrich Drepper  <drepper@redhat.com>
2238         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2239         (__nscd_cache_search): Assume each entry in the
2240         hash chain needs one hashentry and half of datahead.  Use
2241         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2243 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2245         * posix/sys/wait.h: Fix typos.  Pretty printing.
2246         * stdlib/stdlib.h: Likewise.  Correct comments.
2248         [BZ #10159]
2249         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2251         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2252         patch.
2254 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2256         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2257         Use it if we absolutely cannot reach any more correct list elements
2258         because that many do not fit into the currently mapped database.
2260 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2262         * nscd/nscd_helper.c: Include stddef.h.
2263         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2264         in a couple of places.  Return NULL if trail is not less than
2265         datasize, don't consider dataheads with length smaller than
2266         offsetof (struct datahead, data) + datalen.
2267         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2268         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2269         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2270         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2271         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2272         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2273         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2275         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2276         Rename ...
2277         (fallocate64): ... to this.
2278         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2279         Rename ...
2280         (fallocate64): ... to this.
2281         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2282         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2283         fallocate64@@GLIBC_2.10.
2284         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2285         fallocate64@@GLIBC_2.11.
2286         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2288         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2289         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2291         * nscd/selinux.c (nscd_avc_destroy): Removed.
2292         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2293         * nscd/nscd.c (termination_handler): Don't call
2294         nscd_avc_destroy.
2296 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2298         * include/atomic.h: Formatting.
2299         (catomic_compare_and_exchange_val_acq): Don't define if already
2300         defined by bits/atomic.h.
2302 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2304         * math/libm-test.inc (expm1_test): Add test for range error.
2306         * Versions.def: Add GLIBC_2.11 for libc.
2307         * debug/Makefile (routines): Add longjmp_chk.
2308         Add rules to build and run tst-longjmp_chk.
2309         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2310         * debug/longjmp_chk.c: New file.
2311         * debug/tst-longjmp_chk.c: New file.
2312         * include/bits/setjmp2.: New file.
2313         * include/stdio.h: Mark __fortify_fail as internal_function.
2314         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2315         * setjmp/bits/setjmp2.h: New file.
2316         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2317         of the aliases.
2318         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2319         defined.
2320         * sysdeps/i386/____longjmp_chk.S: New file.
2321         * sysdeps/x86_64/____longjmp_chk.S: New file.
2322         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2323         * sysdeps/x86_64/__longjmp.S: Likewise.
2325         * version.h: Bump for 2.11 development.
2327         * elf/check-execstack.c: New file.
2328         * elf/Makefile: Add rules to build and run check-execstack.
2330 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2332         * version.h (VERSION): Bump to 2.10.1.
2334         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2335         compatibility functions.
2336         * nss/getXXent_r.c: Likewise.
2337         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2338         * gshadow/getsgnam_r.c: Likewise.
2339         * gshadow/Version: Remove duplicate entries.
2341         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2342         for recent processor.
2343         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2344         Likewise.
2346 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2348         * version.h (VERSION): Bump for 2.10 release.
2349         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2351         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2352         same place we add ASFLAGS-config.
2354 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2356         [BZ #10128]
2357         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2358         or FORMERR and the other NOERROR, don't raise an error.
2360 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2362         [BZ #10118]
2363         * Makeconfig (+asflags): New variable based upon ASFLAG or
2364         asflags-cpu.
2365         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2366         * config.make.in (asflags-cpu): Add variable based upon
2367         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2368         the assembler.
2369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2370         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2371         recognizes power6 instruction set due to passing -mcpu=power6 from
2372         --with-cpu=power6 when compiling .S files.
2373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2374         Likewise.
2375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2376         Likewise.
2377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2378         Likewise.
2380 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2382         * string/stratcliff.c (do_test): Test for zero length
2383         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2384         at the end of the page.
2386 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2388         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2390         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2391         count is zero.
2393         * po/da.po: Update from translation team.
2395 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2397         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2398         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2400 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2402         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2403         and READ_IMPLIES_EXEC.
2405 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2407         * po/da.po: Update from translation team.
2409 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2411         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2412         comment change.
2414 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2416         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2417         to MAP_ANON in PROT_NONE mmap64 call.
2418         (open_archive): Likewise.
2419         (file_data_available_p): Use mmap64 instead of mremap.
2420         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2421         Attempt to reserve address space after mmap64 region.
2423 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2425         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2426         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2427         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2429         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2430         atanh should set ERANGE.
2432         [BZ #10087]
2433         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2434         result of lookup to make call to implement STT_GNU_IFUNC.
2435         (_dl_profile_fixup): Likewise.
2436         Patch by H.J. Lu <hjl.tools@gmail.com>.
2438         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2439         warning.
2441         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2442         from definition.
2444         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2445         label if it is not used.
2447         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2448         of gmon_hist_hdr and gmon_hdr structures and use them.
2449         * elf/sprof.c: Likewise.
2451         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2452         warning.
2454         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2456         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2457         to avoid cast.
2459         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2460         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2461         to avoid warnings.
2462         (iruserok_af): Use ss_family instead of casts.
2464         * gmon/gmon.c (write_hist): Define real-type variant of
2465         gmon_hist_hdr structure and use it.
2466         (write_gmon): Likewise for gmon_hdr.
2468         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2469         function if we are not going to define it.
2470         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2472         * inet/inet6_option.c (option_alloc): Add temporary variable to
2473         avoid warning.
2475         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2476         name of VTable element.
2477         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2478         * libio/iovsscanf.c: Likewise.
2479         * libio/vasprintf.c: Likewise.
2480         * libio/vsnprintf.c: Likewise.
2481         * stdio-common/isoc99_vsscanf.c: Likewise.
2482         * stdlib/strfmon_l.c: Likewise.
2483         * debug/vasprintf_chk.c: Likewise.
2484         * debug/vsnprintf_chk.c: Likewise.
2485         * debug/vsprintf_chk.c: Likewise.
2487         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2488         function pointers.
2490 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2492         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2494 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2496         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2498         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2499         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2500         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2501         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2502         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2503         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2504         * math/libm-test.inc: Add tests for errno after tan calls with
2505         Â±Inf.
2507         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2508         errno value vor pow(+-0,neg).
2509         * math/libm-test.inc (pow_test): Add tests for errno value for
2510         pole errors.
2512         * math/w_fmod.c: Also handle x=±Inf as error.
2513         * math/w_fmodf.c: Likewise.
2514         * math/w_fmodl.c: Likewise.
2515         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2516         x=±Inf or y=0.
2518         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2519         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2520         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2521         * sysdeps/i386/fpu/s_sin.S: Likewise.
2522         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2523         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2524         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2525         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2526         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2527         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2528         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2529         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2530         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2531         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2532         Â±Inf.
2534         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2535         ERANGE for underflows.
2536         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2538         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2539         the 2001 revision.
2541         * libio/tst-widetext.input: Remove surrogates.
2543         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2545         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2546         for lgamma should set errno to ERANGE, not EDOM.
2547         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2549 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2551         [BZ #10093]
2552         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2553         UTF-16 surrogates.
2555         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2556         space when temporarily mapping the whole content of the old file.
2558         [BZ #10100]
2559         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2560         not zero.
2562 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2564         * iconvdata/sjis.c (BODY): Don't advance inptr before
2565         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2566         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2567         two byte chars.
2569 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2571         * locale/locarchive.h (struct locarhandle): Rename len field to
2572         mmaped and add new reserved field.
2573         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2574         (create_archive): Reserve address space and then map file into it.
2575         (open_archive): Likewise.
2576         (file_data_available_p): New function.
2577         (compare_from_file): New function.
2578         (close_archive): Adjust to member name changes.
2579         (add_locale): Before comparing locale data, check it is mapped.
2580         Otherwise fall back to reading from the file.
2582 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2584         * stdio-common/psiginfo.c: Include <errno.h>.
2586 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2588         [BZ #9920]
2589         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2590         to get consistency between 32 and 64 bit architectures.
2592         [BZ #10052]
2593         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2594         directory for dummy syscall rules.
2595         Patch by Chris Steinbroner <hesh@pobox.com>.
2597 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2599         [BZ #10092]
2600         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2601         MNT_EXPIRE.
2603 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2605         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2606         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2608 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2610         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2611         data from vector to temporary buffer and call PWRITEV after it
2612         instead of vice versa.
2613         * sysdeps/posix/preadv.c: Fix up comment.
2614         * misc/preadv.c: Likewise.
2615         * misc/preadv64.c: Likewise.
2616         * misc/pwritev.c: Likewise.
2617         * misc/pwritev64.c: Likewise.
2618         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2620 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2622         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2624         * shadow/Makefile (tests): Add tst-shadow.
2625         * shadow/tst-shadow.c: New file.
2627         [BZ #9955]
2628         * gshadow/Makefile: New file.
2629         * gshadow/Versions: New file.
2630         * gshadow/fgetsgent.c: New file.
2631         * gshadow/fgetsgent_r.c: New file.
2632         * gshadow/getsgent.c: New file.
2633         * gshadow/getsgent_r.c: New file.
2634         * gshadow/getsgnam.c: New file.
2635         * gshadow/getsgnam_r.c: New file.
2636         * gshadow/gshadow.h: New file.
2637         * gshadow/putsgent.c: New file.
2638         * gshadow/sgetsgent.c: New file.
2639         * gshadow/sgetsgent_r.c: New file.
2640         * gshadow/tst-gshadow.c: New file.
2641         * include/gshadow.h: New file.
2642         * Makeconfig (all-subdirs): Add gshadow.
2643         * Makefile (installed-headers): Add gshadow/gshadow.h.
2644         * nss/Makefile (databases): Add sgrp.
2645         * nss/Versions: Add gshadow functions as private exports.
2646         * nss/nsswitch.conf: Add gshadow entry.
2647         * nss/sgrp-lookup.c: New file.
2648         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2649         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2650         * nss/nss_files/files-sgrp.c: New file.
2651         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2652         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2654 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2656         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2657         * stdio-common/reg-modifier.c: Likewise.
2659 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2661         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2662         is no FPU.
2664 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2666         [BZ #10086]
2667         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2668         headers up to 2.6.30.
2670         * po/ca.po: Update from translation team.
2672 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2674         [BZ #10069]
2675         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2676         an object that uses static TLS if the TLS modid is higher than the
2677         reserve we always allocate.  At least for multi-threaded code.
2679 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2681         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2682         Numerically stable check for valid width.
2684         * locale/programs/locarchive.c (open_archive): Map the entire file
2685         and not just the administrative data.
2686         (add_locale): When we find a hash sum match compare the content
2687         to be sure.
2689         * malloc/malloc.c (malloc_info): Output address space information.
2691 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2693         * malloc/malloc.c (malloc_info): Also output system memory information.
2695         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2696         architectures have preadv/pwritev in 2.6.30.
2698         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2699         * sysdeps/posix/readv.c: Likewise.
2700         Reported by Markus Armbruster <armbru@redhat.com>.
2702         * malloc/hooks.c (top_check): Force hook value into register.
2704 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2706         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2707         calls to _dl_relocate_object.
2709 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2711         [BZ #9957]
2712         * malloc/malloc.c (force_reg): Define.
2713         (sYSMALLOc): Load hook variable into variable
2714         before test and force into register.
2715         (sYSTRIm): Likewise.
2716         (public_mALLOc): Force hook value into register.
2717         (public_fREe): Likewise.
2718         (public_rEALLOc): Likewise.
2719         (public_mEMALIGn): Likewise.
2720         (public_vALLOc): Likewise.
2721         (public_pVALLOc): Likewise.
2722         (public_cALLOc): Likewise.
2723         (__posix_memalign): Likewise.
2724         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2725         before test and force into register.
2726         * malloc/hooks.c (top_check): Likewise.
2727         (public_sET_STATe): Pretty printing.
2729         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2730         in case we only receive one reply in single-request mode.
2732 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2734         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2735         are dlopened in statically linked program even for __LM_ID_CALLER.
2737 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2739         * resolv/res_send.c (send_dg): Don't switch into single-request
2740         mode if we already are in it.
2742 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2744         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2745         are always at least 4 bytes in the returned line.
2747 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2749         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2750         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2751         instead of 8K.  Stop searching in /proc/stat after hitting first
2752         line not starting with cpu.
2753         (next_line): Truncate too long
2754         lines at buffer size * 3/4 instead of pretending there were line
2755         breaks inside of large lines.
2757 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2759         * sysdeps/x86_64/mp_clz_tab.c: New file.
2761 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2762             Ulrich Drepper  <drepper@redhat.com>
2764         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2765         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2766         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2768 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2770         * sysdeps/sh/libc-tls.c: New file.
2772         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2774 2009-04-14  Roland McGrath  <roland@redhat.com>
2776         * elf/elf.h: Add various missing ARM constants, to match binutils.
2778 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2780         Optimizations from GMP.
2781         * sysdeps/x86_64/add_n.S: New file.
2782         * sysdeps/x86_64/addmul_1.S: New file.
2783         * sysdeps/x86_64/lshift.S: New file.
2784         * sysdeps/x86_64/mul_1.S: New file.
2785         * sysdeps/x86_64/rshift.S: New file.
2786         * sysdeps/x86_64/sub_n.S: New file.
2787         * sysdeps/x86_64/submul_1.S: New file.
2789 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2791         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2792         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2793         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2794         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2796 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2798         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2799         preadv/pwritev.
2801 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2803         * sysdeps/x86-64/strrchr.S: New file.
2805 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2807         * stdio-common/printf.h (struct printf_info): Add user element.
2808         New types printf_arginfo_size_function, printf_va_arg_function.
2809         Declare register_printf_specifier, register_printf_modifier,
2810         register_printf_type.
2811         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2812         (union printf_arg): Add pa_user element.
2813         Adjust __printf_arginfo_table type.
2814         Add __printf_va_arg_table, __printf_modifier_table,
2815         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2816         declarations.
2817         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2818         If registered arginfo call failed try normal specifier.
2819         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2820         function.
2821         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2822         * stdio-common/Versions: Export register_printf_modifier,
2823         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2824         * stdio-common/reg-modifier.c: New file.
2825         * stdio-common/reg-type.c: New file.
2826         * stdio-common/reg-printf.c (__register_printf_specifier): New
2827         function.  Mostly the old __register_printf_function function but
2828         uses locking and type of third parameter changed.
2829         (__register_printf_function): Implement using
2830         __register_printf_specifier.
2831         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2832         calls to arginfo functions.  Allocate enough memory for user-defined
2833         types.  Call new va_arg functions to get user-defined types.
2834         Try installed handlers even for existing format specifiers first.
2836 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2838         * sysdeps/x86_64/rawmemchr.S: New file.
2840         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2841         Simplified code and possible copy problem fixed.
2843         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2844         function if it is not defined.  Add some necessary casts.
2845         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2847         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2848         have preadv/pwritev in 2.6.30.
2850 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2852         * malloc/malloc.c (malloc_info): New function.
2853         * malloc/malloc.h: Declare it.
2854         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2856         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2857         to avoid PLT slot.
2859         * malloc/malloc.c (_int_realloc): Add parameter with old block
2860         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2861         Adjust all callers.
2862         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2864 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2866         * sysdeps/x86_64/strchrnul.S: New file.
2868         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2869         depending libcrypt on -lfreebl3.
2871         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2872         preadv/pwritev in 2.6.30.
2874         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2875         instead of __strcasecmp.
2877         * string/stratcliff.c (do_test): Add memchr tests..
2878         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2879         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2880         first read quad word.
2882 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2884         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2885         * string/tst-svc.input: Add new test case.
2886         * string/tst-svc.expect: Adjust.
2887         * string/Makefile: Don't ignore tst-svc error.
2889         * sysdeps/x86_64/memchr.S: New file.
2891         * resolv/resolv.h (RES_SNGLKUP): Define.
2892         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2893         * resolv/res_send.c (send_dg): If we sent two requests at once and
2894         only get one reply before timeout switch to mode where we send the
2895         second request only after the first answer has been received.
2897 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2899         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2900         * sysdeps/x86_64/strchr.S: Likewise.
2902 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2904         * configure.in: We need to test for the compiler earlier.
2906         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2907         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2908         GLIBC_2.10.
2909         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2910         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2911         and pwritev.
2912         * misc/preadv.c: New file.
2913         * misc/preadv64.c: New file.
2914         * misc/pwritev.c: New file.
2915         * misc/pwritev64.c: New file.
2916         * sysdeps/posx/preadv.c: New file.
2917         * sysdeps/posx/preadv64.c: New file.
2918         * sysdeps/posx/pwritev.c: New file.
2919         * sysdeps/posx/pwritev64.c: New file.
2920         * sysdeps/unix/sysv/linux/preadv.c: New file.
2921         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2922         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2923         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2924         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2925         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2927         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2928         compatibility code.
2929         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2931         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2932         __ASSUME_COMPLETE_READV_WRITEV.
2933         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2934         with modern kernels.
2935         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2937         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2938         to free a possible malloced buffer in case of cancellation.
2939         * sysdeps/posix/writev.c: Likewise for write.
2941 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2943         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2945         * configure.in: Recognize --enable-nss-crypt.
2946         * config.make.in: Add nss-crypt entry.
2947         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2948         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2949         and include path for NSS directory to compiler for md5-crypt,
2950         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2951         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2952         function implementation, use NSS.  Introduce wrappers around the
2953         hash function calls.  Little code size optimization.
2954         * crypt/sha256-crypt.c: Likewise.
2955         * crypt/sha512-crypt.c: Likewise.
2956         * scripts/check-local-headers.sh: Ignore nss3 directory.
2958         * configure.in: Rename pic_default to libc_cv_pic_default.
2959         * config.make.in: Likewise.
2961 2009-04-01  Roland McGrath  <roland@redhat.com>
2963         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2964         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2965         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2966         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2967         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2968         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2969         (R_SPARC_NUM): Update.
2970         From Dave Miller <davem@davemloft.net>.
2972 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2974         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2976 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2978         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2979         those which are used.
2980         * elf/dl-addr.c: Likewise.
2981         * elf/dl-caller.c: Likewise.
2982         * elf/dl-fini.c: Likewise.
2983         * elf/dl-iteratephdr.c: Likewise.
2984         * elf/dl-libc.c: Likewise.
2985         * elf/dl-load.c: Likewise.
2986         * elf/dl-support.c: Likewise.
2987         * elf/dl-sym.c: Likewise.
2988         * elf/rtld.c: Likewise.
2989         * sysdeps/generic/ldsodefs.h: Likewise.
2991         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2992         * elf/dl-minimal.c: Likewise.
2993         * elf/dl-misc.c: Likewise.
2994         * elf/rtld.c: Likewise.
2995         * sysdeps/generic/ldsodefs.h: Likewise.
2997 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2999         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3000         Avoid reuse of complex expression.
3002         * po/fr.po: Update from translation team.
3004 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3006         * include/dirent.h: Yet more changes to match sort function type
3007         change.
3008         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3009         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3010         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3012 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3014         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3016 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3018         * nscd/connections.c (restart): Try to preserve the process name
3019         by reading the /proc/self/exe symlink and using the return name.
3020         Patch by Jeff Bastian <jbastian@redhat.com>.
3022 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3024         [BZ #9733]
3025         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3026         if we are not loading a new audit library.
3027         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3028         Only use profiling trampoline for auditing if we are not relocating
3029         an audit library.
3030         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3031         * elf/rtld.c: Likewise.
3032         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3034         * elf/rtld.c (dl_main): Extend help message for --audit option.
3036         [BZ #9759]
3037         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3038         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3039         * dirent/alphasort.c: Adjust implementation to type change.
3040         * dirent/alphasort64.c: Likewise.
3041         * dirent/scandir.c: Likewise.
3042         * dirent/versionsort.c: Likewise.
3043         * dirent/versionsort64.c: Likewise.
3044         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3045         declaration.
3046         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3047         declaration.
3049         [BZ #9880]
3050         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3051         correctly.  Set segleft member in output as required.
3052         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3053         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3055         [BZ #9881]
3056         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3057         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3058         * inet/Makefile (tests): Add tst-inet6_rth.
3059         * inet/tst-inet6_rth.c: New file.
3061         [BZ #5807]
3062         * string/strlen.c (strlen): Fix omission in the expression to test
3063         for NUL bytes.
3065 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3067         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3069         * elf/dl-runtime.c (reloc_offset): Define.
3070         (reloc_index): Define.
3071         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3072         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3073         computing index from reloc_offset.
3074         (_dl_call_pltexit): Likewise.
3075         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3076         the relocation index to _dl_fixup.
3077         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3078         _dl_call_pltexit.
3079         * sysdeps/x86_64/dl-runtime.c: New file.
3081         [BZ #9893]
3082         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3083         alignment of La_x86_64_regs.  Store xmm parameters.
3084         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3086         [BZ #9913]
3087         * string/strverscmp.c (__strverscmp): Fix case of different digits
3088         in fractional part of string.
3089         Patch by Jingyu Liu <jyliu@fortinet.com>.
3090         * string/Makefile (tests): Add tst-svc2.
3091         * string/tst-svc2.c: New file.
3093         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3095         * locale/iso-639.def: Add Min Nan.
3097 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3099         [BZ #9948]
3100         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3102 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3104         * elf/dl-sysdep.c (auxvars): Compress data structure.
3106         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3107         STT_GNU_IFUNC handling.
3108         (elf_machine_rela): Likewise.
3110 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3112         * config.h.in (USE_MULTIARCH): Define.
3113         * configure.in: Handle --enable-multi-arch.
3114         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3115         (_dl_fixup_profile): Likewise.
3116         * elf/do-lookup.c (dl_lookup_x): Likewise.
3117         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3118         * elf/elf.h (STT_GNU_IFUNC): Define.
3119         * include/libc-symbols.h (libc_ifunc): Define.
3120         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3121         framework in init-arch.h to get CPUID values.
3122         * sysdeps/x86_64/multiarch/Makefile: New file.
3123         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3124         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3125         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3127         * config.make.in (experimental-malloc): Define.
3128         * configure.in: Handle --enable-experimental-malloc.
3129         * malloc/Makefile: Handle experimental-malloc flag.
3130         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3131         * malloc/arena.c: Likewise.
3132         * malloc/hooks.c: Likewise.
3133         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3135 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3137         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3138         prediction.  A few size optimizations.
3140 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3142         * time/tzset.c: Optimize a bit for size.
3144 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3146         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3147         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3149         * elf/sprof.c: Avoid warning about multi-line comment.
3151 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3153         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3154         DST name.
3155         * time/tst-posixtz.c: Add tests for quoted timezone names.
3157 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3159         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3160         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3161         200809L instead of 200112L.
3162         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3163         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3165         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3166         instead of __quick_exit_funcs to __run_exit_handlers.
3167         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3168         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3169         (__cxa_at_quick_exit): Remove attribute_hidden.
3170         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3171         to __run_exit_handlers.
3172         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3173         attribute_hidden.
3175 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3177         * po/id.po: Update from translation team.
3179 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3182         .machine push; .machine "power6" and .machine pop around mtfsf
3183         insns outside of _ARCH_PWR6 define.
3184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3186         Likewise.
3187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3188         Likewise.
3189         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3190         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3191         relax_fenv_state): Likewise.
3193 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3195         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3196         cxa_at_quick_exit.
3197         (static-only-routines): Add at_quick_exit.
3198         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3199         GLIBC_2.10.
3200         * stdlib/quick_exit.c: New file.
3201         * stdlib/at_quick_exit.c: New file.
3202         * stdlib/cxa_at_quick_exit.c: New file.
3203         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3204         it appropriately.
3205         (__internal_atexit): New function.
3206         (__new_exitfn): Now takes parameter to point to the list to use.
3207         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3208         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3209         (exit): ...here.  Just call __run_exit_handlers appropriately.
3210         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3211         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3212         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3213         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3215         * po/id.po: Update from translation team.
3217 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3219         * po/ru.po: Update from translation team.
3221 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3223         * po/nl.po: Update from translation team.
3225 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3227         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3228         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3229         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3230         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3231         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3232         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3233         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3235         * po/pl.po: Update from translation team.
3237 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3239         [BZ #7083]
3240         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3241         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3242         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3243         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3244         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3245         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3246         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3247         for GLIBC_2.10.
3248         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3249         Add fallocate and fallocate64.
3251         * io/fcntl.h: Pretty printing.
3253 2009-03-02  Richard Guenther  <rguenther@suse.de>
3255         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3256         attribute also for non-C99 inline semantics variant.
3258 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3260         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3261         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3262         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3263         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3265         Likewise.
3266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3267         Likewise.
3269 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3271         * po/cs.po: Update from translation team.
3273 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3275         * po/bg.po: Update from translation team.
3276         * po/sv.po: Likewise.
3277         * po/fi.po: Likewise.
3278         * po/vi.po: Likewise.
3280 2009-02-27  Roland McGrath  <roland@redhat.com>
3282         * Makeconfig (%.v.i): Depend on Makeconfig.
3283         Exclude % lines from initial #-comment removal.
3285 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3287         * po/ko.po: Update from translation team.
3289 2009-02-26  Roland McGrath  <roland@redhat.com>
3291         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3292         avoids unused warning.
3294 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3295             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3297         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3298         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3299         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3300         and asm/user.h.  Include asm/ptrace.h.
3301         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3302         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3303         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3304         Undefine.
3305         (start_thread): Don't undefine.
3306         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3307         Define.
3309 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3311         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3312         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3313         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3314         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3315         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3316         200112L to 200809L.
3317         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3318         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3319         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3320         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3321         _SC_THREAD_ROBUST_PRIO_PROTECT.
3322         * posix/unistd.h: fexecve is in POSIX 2008.
3323         * time/time.h: strftime_l is in POSIX 2008.
3324         * io/sys/stat.h: futimens is in POSIX 2008.
3325         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3326         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3327         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3328         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3329         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3330         open_memstream, and vdprintf are in POSIX 2008.
3332 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3334         * include/features.h: Define macros for XPG7/POSIX 2008.
3335         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3336         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3337         POSIX 2008.
3338         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3339         * locale/xlocale.h: Define locale_t type.
3340         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3341         in POSIX 2008.  Don't define locale_t here.
3342         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3343         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3344         UTIME_OMIT only with __USE_ATFILE.
3345         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3346         * stdio-common/psiginfo.c: New file.
3347         * stdio-common/psiginfo-data.h: New file.
3348         * stdio-common/psiginfo-define.h: New file.
3349         * stdio-common/Makefile (routines): Add psiginfo.
3350         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3351         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3352         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3353         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3354         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3355         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3356         * io/sys/stat.h: Move mknodat definition into same conditional as
3357         mknod.
3358         * time/sys/time.h: futimesat is not among the functions accepted
3359         into the POSIX standard.
3361         * include/features.h: If no feature selection given and we select
3362         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3363         * posix/Versions: Export __posix_getopt.
3364         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3365         Use it to alternatively initialize __posixly_correct.
3366         (_getopt_internal_r): Take addition parameter.  Pass on to
3367         _getopt_initialize.
3368         (_getopt_internal): Take addition parameter.  Pass on to
3369         _getopt_internal_r.
3370         (getopt): Pass additional zero to _getopt_internal.
3371         (__posix_getopt): New function.
3372         * posix/getopt.h: Add redirection for getopt.
3373         * posix/getopt1.c (getopt_long): Pass additional zero to
3374         _getopt_internal.
3375         (getopt_long_only): Likewise.
3376         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3377         (_getopt_long_only_r): Likewise.
3378         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3379         _getopt_internal_r.
3381 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3383         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3384         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3385         * sysdeps/posix/sysconf.c (__sysconf): Handle
3386         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3387         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3389 2009-02-24  Roland McGrath  <roland@redhat.com>
3391         [BZ #9895]
3392         * README.template: Reworded not to use substituted version number.
3393         Renamed to ...
3394         * README: ... here (no longer generated).
3395         * Makefile (README): Target removed.
3397 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3399         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3400         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3401         instead.
3403         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3405         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3407 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3409         * po/bg.po: Update from translation team.
3411 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3413         * stdlib/monetary.h: Uglify function parameter names.
3414         * sunrpc/rpc/pmap_clnt.h: Likewise.
3415         * sunrpc/rpc/svc.h: Likewise.
3416         * sunrpc/rpc/xdr.h: Likewise.
3417         * sunrpc/rpc/clnt.h: Likewise.
3418         * resolv/netdb.h: Likewise.
3419         * resolv/arpa/nameser.h: Likewise.
3420         * resolv/resolv.h: Likewise.
3421         * argp/argp.h: Likewise.
3422         * locale/langinfo.h: Likewise.
3423         * io/sys/stat.h: Likewise.
3424         * posix/spawn.h: Likewise.
3425         * nis/rpcsvc/nislib.h: Likewise.
3426         * malloc/obstack.h: Likewise.
3427         * sysdeps/ia64/bits/link.h: Likewise.
3428         * sysdeps/i386/bits/link.h: Likewise.
3429         * sysdeps/s390/bits/link.h: Likewise.
3430         * sysdeps/powerpc/bits/link.h: Likewise.
3431         * sysdeps/x86_64/bits/link.h: Likewise.
3432         * sysdeps/sparc/bits/link.h: Likewise.
3433         * sysdeps/sh/bits/link.h: Likewise.
3434         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3435         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3436         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3437         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3439 2008-12-01  Fredrik Unger  <fred@tree.se>
3441         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3442         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3443         _FP_UNPACK_RAW_2, fix up first argument.
3445 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3447         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3448         (GET_NPROCS_PARSER): Change parameters and use next_line.
3449         (__get_nprocs): Rewrite to not use stdio routines.
3450         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3451         Change parameters and use next_line.
3453 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3455         [BZ #5381]
3456         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3457         Change mempool_alloc prototype.
3458         * nscd/mem.c (gc): Don't handle mem_in_flight.
3459         (mempool_alloc): Third parameter now only indicates whether this is the
3460         first call (to allocate data) or not.  If it is, get db rdlock.
3461         Release it on error.  Don't handle mem_in_flight.
3462         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3463         Adjust third parameter of mempool_alloc calls.
3464         Nothing to do here in case mempool_alloc fails.
3465         Avoid local variable shadowing parameter.  No need to get db rdlock
3466         before calling cache_add.
3467         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3468         no mem_in_flight array anymore.
3469         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3470         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3471         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3472         in case mempool_alloc fails. No need to get db rdlock before calling
3473         cache_add.
3474         * nscd/hstcache.c (cache_addhst): Likewise.
3475         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3476         * nscd/servicescache.c (cache_addserv): Likewise.
3477         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3479 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3481         * po/lt.po: Update from translation team.
3483 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3485         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3486         defined, allow additional data to be added using the optional
3487         MORE_ELF_HEADER_DATA macro.
3488         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3489         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3491 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3493         * include/atomic.h: Define catomic_and if not already defined.
3494         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3495         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3497 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3499         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3500         Change all callers.
3501         (_int_realloc): Likewise.  Third argument is now padded size
3502         All _int_* functions are now static.
3504         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3505         * malloc/arena.c: Likewise.
3506         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3507         functions.
3509         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3510         easily.
3512         * malloc/malloc.c: Add branch prediction for use of the hooks.
3514         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3516 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3518         [BZ #7095]
3519         * bits/confname.h: Add SUSv7 macros for getconf environments.
3520         * bits/environments.h: Likewise.
3521         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3522         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3523         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3524         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3525         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3526         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3527         * posix/getconf.c: Likewise.
3528         * posix/sysconf.c: Likewise.
3529         * sysdeps/posix/sysconf.c: Likewise.
3530         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3531         environments.
3533 2009-01-16  Petr Baudis  <pasky@suse.cz>
3535         [BZ #9753]
3536         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3537         even if we currently have zero nscount.
3539 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3541         [BZ #9781]
3542         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3543         the input line is too long.
3545         * po/Makefile (libc.pot): Add f_print as function taking c-format
3546         parameter.
3548         * debug/xtrace.sh: Unify translatable messages.
3549         * elf/ldd.bash.in: Likewise.
3550         * elf/sprof.c: Likewise.
3551         * locale/programs/locale.c: Likewise.
3552         * malloc/memusage.sh: Likewise.
3553         * nss/getent.c: Likewise.
3555 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3557         * debug/pcprofiledump.c (print_version,
3558         argp_program_version_hook): New function.
3559         * elf/ldconfig.c (more_help): New function.
3560         (argp): Use it.
3561         * elf/sln.c (usage): New function.
3562         (main): Support --help and --version.
3563         * malloc/memusagestat.c (print_version): New function.
3564         (argp_program_version_hook): New variable.
3565         * nscd/nscd.c (more_help): New function.
3566         (argp): Use it.
3567         * posix/getconf.c (main): Send --version output to stdout.
3568         Support --help.
3569         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3570         arguments.  All callers changed.
3571         (print_version): New function.
3572         (parseargs): Support --help and --version.
3573         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3574         changed.
3575         (print_version): New function.
3576         (main): Use getopt_long.  Support --help and --version.
3577         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3578         --version.
3580 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3582         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3583         (update_data): Fix handling of wrapping back
3584         to the beginning of the buffer.
3586         [BZ #9823]
3587         * stdio-common/psignal.c (psignal): Fix test for empty string.
3589 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3591         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3592         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3593         move _null_auth to .rodata.
3595         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3596         value of 24.
3598         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3600         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3601         today than when the original code was written.  Use larger
3602         buffers.  This also makes it unnecessary to have stat information,
3603         if this causes extra efforts.
3604         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3605         __alloc_dir.
3607 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3609         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3610         is set.
3611         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3612         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3613         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3614         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3615         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3616         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3618 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3620         * po/ru.po: Update from translation team.
3622 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3624         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3625         Add _tid slot to maintain consistency with kernel.
3627 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3629         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3630         incomplete characters at end of input buffer.
3631         * libio/Makefile (tests): Add tst-fgetwc.
3632         * libio/tst-fgetwc.c: New file.
3633         * libio/tst-fgetwc.input: New file.
3635 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3637         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3639 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3641         [BZ #9793]
3642         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3643         *OUTBUFSTART unless the whole output fit into the buffer.
3644         * iconv/Makefile (tests): Add tst-iconv4.
3645         * iconv/tst-iconv4.c: New file.
3647 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3649         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3650         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3652 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3654         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3655         newer linker scripts.
3657 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3659         [BZ #7040]
3660         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3661         inotify_rm_watch should have type int.
3663 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3665         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3666         Make aligned_restore_vmx a local symbol.
3667         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3668         Likewise.
3670 2009-01-30  Andreas Jaeger  <aj@suse.de>
3672         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3673         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3674         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3675         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3676         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3677         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3678         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3680 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3682         [BZ #9726]
3683         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3684         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3686 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3688         [BZ #9726]
3689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3690         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3692         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3694 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3696         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3697         memcpy instead of memcmp.
3698         (_dl_setup_pointer_guard): Likewise.
3700 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3702         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3703         manipulated brk, use malloc_printerr.
3704         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3705         requests.
3707 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3709         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3710         rindex): For C++ add inlines so that they can be recognized as
3711         builtins.
3712         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3714 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3715             Jakub Jelinek  <jakub@redhat.com>
3717         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3718         * wcsmbs/wchar.h: Likewise.
3720 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3722         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3723         (stackinfo_sub_sp): Define.
3725 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3727         [BZ #9750]
3728         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3729         * include/alloca.h (alloca_account): Define.
3730         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3731         (stackinfo_sub_sp): Define.
3733         * nscd/connections.c (nscd_init): If database file access fails
3734         check whether this is due to permission problems and bail in that
3735         case.
3737         [BZ #9741]
3738         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3739         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3741 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3743         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3744         Add "t" to clobber list.
3745         (INTERNAL_SYSCALL_NCS): Likewise.
3747 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3749         * nss/getent.c (print_networks): Don't print comma between aliases.
3751 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3753         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3755         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3756         the hash table.
3757         * misc/Makefile (tests): Add bug-hsearch1.
3758         * misc/bug-hsearch1.c: New file.
3760 2009-01-22  Roland McGrath  <roland@redhat.com>
3762         * Makeconfig (%.v.i): Strip trailing # comments,
3763         not only whole-line comments.
3765 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3767         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3768         one parameter.  If non-NULL use it to initialize return value.
3769         (_dl_setup_pointer_guard): New function.
3770         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3771         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3772         * elf/rtld.c (security_init): Pass _dl_random to
3773         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3774         pointer_chk_guard.
3775         * elf/dl-sysdep.c (_dl_random): New variable.
3776         (_dl_sysdep_start): Handle AT_RANDOM.
3777         (_dl_show_auxv): Likewise.
3778         * elf/dl-support.c (_dl_random): New variable.
3779         (_dl_aux_init): Handle AT_RANDOM.
3780         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3781         to _dl_setup_stack_chk_guard.
3783         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3785 2009-01-10  Roland McGrath  <roland@redhat.com>
3787         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3789 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3791         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3793         [BZ #9706]
3794         * nss/nss_files/files-parse.c (strtou32): New function.
3795         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3796         across 32-bit and 64-bit platforms.
3797         (INT_FIELD_MAYBE_NULL): Likewise.
3799 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3801         [BZ #9720]
3802         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3803         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3804         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3805         Likewise.
3807 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3809         [BZ #697]
3810         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3811         being NULL also if there are no backreferences.
3812         * posix/rxspencer/tests: Add testcases.
3814 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3816         [BZ #9697]
3817         * posix/bug-regex17.c: Add testcases.
3818         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3819         handling.
3821 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3823         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3824         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3825         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3826         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3827         for elf subdir.
3828         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3829         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3830         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3831         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3832         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3833         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3835 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3837         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3838         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3839         re_string_skip_chars, re_string_reconstruct): Likewise.
3840         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3842 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3844         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3845         adjust the buffer alignment.
3847 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3849         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3850         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3851         net/route.h.
3853         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3854         flavor to description only when flavor is not NULL.
3856         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3857         mutex after SIGIO/SIGURG lookup loop.
3859 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3861         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3863 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3865         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3866         handling.
3868 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3870         * sysdeps/unix/sysv/linux/kernel-features.h
3871         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3873         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3874         if no output is written.
3876         * version.h: Bump to 2.10 development.
3878         * posix/getconf.c: Update copyright year.
3879         * nss/getent.c: Likewise.
3880         * iconv/iconvconfig.c: Likewise.
3881         * iconv/iconv_prog.c: Likewise.
3882         * elf/ldconfig.c: Likewise.
3883         * catgets/gencat.c: Likewise.
3884         * csu/version.c: Likewise.
3885         * elf/ldd.bash.in: Likewise.
3886         * elf/sprof.c (print_version): Likewise.
3887         * locale/programs/locale.c: Likewise.
3888         * locale/programs/localedef.c: Likewise.
3889         * nscd/nscd.c (print_version): Likewise.
3890         * debug/xtrace.sh: Likewise.
3891         * malloc/memusage.sh: Likewise.
3892         * malloc/mtrace.pl: Likewise.
3893         * debug/catchsegv.sh: Likewise.
3895 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3897         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3898         script.
3900 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3902         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3903         gethostbyname4_r function call succeeded, just leave the loop.
3905         [BZ #9694]
3906         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3907         very end.
3908         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3909         * wctype/Makefile (tests): Add bug-wctypeh.
3910         * wctype/bug-wctypeh.c: New file.
3912         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3913         LOCALDOMAIN is defined.
3914         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3916         * sysdeps/x86_64/bits/select.h: New file.
3918         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3920 2008-12-21  Bruno Haible  <bruno@clisp.org>
3922         [BZ #9677]
3923         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3924         if no output is written.
3926 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3928         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3929         libc internal symbol __dup2 to avoid access through the PLT.
3931 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3933         [BZ #6545]
3934         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3935         available only for __USE_GNU.
3937         * inet/Makefile (tests): Add tst-getni2.
3938         * inet/tst-getni2.c: New file.
3940         [BZ #7080]
3941         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3942         NULL when NI_NAMEREQD is set.
3943         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3944         * inet/Makefile (tests): Add tst-getni1.
3945         * inet/tst-getni1.c: New file.
3947 2008-12-03  Petr Baudis  <pasky@suse.cz>
3949         [BZ #7067]
3950         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3951         instead of prune_lock.
3952         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3953         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3955 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3957         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3958         use.
3960         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3961         handling.
3963         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3964         after reading name server list.
3966         [BZ #7058]
3967         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3968         handling for host name aliases.
3970 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3972         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3973         instead of doing things manually.
3975 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3977         * posix/regex_internal.h (build_wcs_upper_buffer):
3978         Return type is reg_error_t.
3980 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3982         * posix/globtest.sh: Use mktemp to create temporary file and
3983         directory.
3985         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3986         sets correctly.
3987         (__CPU_CLR_S): Likewise.
3988         (__CPU_ISSET_S): Likewise.
3990 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3991             Ulrich Drepper  <drepper@redhat.com>
3993         * scripts/firstversion.awk: Use custom comparison function to compare
3994         version numbers.
3995         * scripts/versions.awk: Use sort invocation which can handle
3996         multi-digit sub-version numbers.
3998 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4000         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4001         * locale/iso-639.def: Add Chhattisgarhi entry.
4003 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4005         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4006         ESRCH return value.
4007         (_nss_dns_gethostbyname4_r): Likewise.
4008         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4009         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4010         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4011         the no_data variable.
4013         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4014         information at the correct index.
4016         * socket/sys/socket.h: Declare accept4.
4017         * socket/accept4.c: New file.
4018         * sysdeps/unix/sysv/linux/accept4.c: New file.
4019         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4020         * socket/Makefile (routines): Add accept4.
4021         * socket/Versions: Export accept4 with version GLIBC_2.10.
4022         * socket/paccept.c: Removed.
4023         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4024         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4025         * Versions.def: Define GLIBC_2.10 for libc.
4026         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4028         * nscd/connections.c: Use accept4.
4030         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4032 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4034         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4035         flag already set.
4037         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4038         not exist.
4039         * stdlib/Makefile (tests): Add tst-unsetenv1.
4040         * stdlib/tst-unsetenv1.c: New file.
4042 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4044         * login/utmp_file.c (file_writable): New variable.
4045         (setutent_file): Don't try to open file for writing.
4046         (pututline_file): Before writing, make descriptor writable if
4047         necessary.
4049 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4051         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4052         to IPv4 or IPv6 if an interface has been found.
4054 2008-11-26  Roland McGrath  <roland@redhat.com>
4056         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4057         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4059         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4060         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4061         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4063         * elf/elf.h (NT_386_IOPERM): New macro.
4064         (NT_PPC_VSX): New macro.
4066 2008-11-25  Roland McGrath  <roland@redhat.com>
4068         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4069         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4070         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4071         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4072         Subdirectories moved to ports repository.
4073         * configure.in (base_machine): Remove alpha case.
4075 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4077         * sysdeps/mach/strerror_l.c: New file.
4079 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4081         [BZ #6411]
4082         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4083         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4084         magic numbers.
4085         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4086         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4087         (relax_fenv_state): Same as above.
4088         (FPSCR_29): Reserve bit in ISA 2.05.
4089         (FPSCR_NI): Provide define for compat.
4090         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4091         magic numbers.
4092         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4093         magic numbers.
4094         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4095         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4096         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4097         access to hwcap to account for hwcap size increase to uint64_t.
4098         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4099         Likewise.
4100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4101         (*setcontext): Likewise.
4102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4103         New file.
4104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4105         New file.
4106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4107         (*setcontext): dynamically select mtfsf insn based on
4108         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4109         increase to uint64_t.
4110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4111         (*swapcontext): dynamically select mtfsf insn based on
4112         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4113         increase to uint64_t.
4114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4115         New file.
4116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4117         New file.
4118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4119         (*setcontext): dynamically select mtfsf insn based on
4120         PPC_FEATURE_HAS_DFP.
4121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4122         (*swapcontext): dynamically select mtfsf insn based on
4123         PPC_FEATURE_HAS_DFP.
4125 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4127         * version.h: Bump for 2.9 release.
4128         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4130         [BZ #7029]
4131         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4132         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4133         all the rounding.
4135 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4137         [BZ #7009]
4138         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4139         unknown request types for now.
4141 2008-11-11  Roland McGrath  <roland@redhat.com>
4143         * sysdeps/x86_64/configure: New file.
4145         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4146         * configure: Regenerated.
4148 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4150         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4151         correct instruction to remove the stack frame.
4153 2008-11-03  Michael Matz  <matz@suse.de>
4155         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4156         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4158 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4160         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4161         Remove.
4163         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4164         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4165         of the thread variable instead of void *.
4166         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4167         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4168         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4169         __libc_tsd_define arguments.
4170         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4171         __libc_tsd_address arguments.  Remove union hack.
4172         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4173         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4174         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4175         Adjust __libc_tsd_{set,get} arguments.
4176         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4177         __libc_tsd_define arguments.
4178         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4179         arguments.
4180         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4181         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4182         (LOCALE): Adjust __libc_tsd_define arguments.
4183         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4184         arguments.
4185         (LOCALE): Adjust __libc_tsd_define arguments.
4186         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4187         arguments.
4188         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4189         arguments.
4191 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4193         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4194         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4196 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4198         [BZ #6966]
4199         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4201 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4202             Ulrich Drepper  <drepper@redhat.com>
4204         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4205         definition for GCC 3.1 and later.
4207 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4209         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4210         refetch dtv, as it might have changed.
4211         * elf/Makefile: Add rules to build and run tst-tls18.
4212         * elf/tst-tls18.c: New test.
4213         * elf/tst-tlsmod18a.c: New file.
4215 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4217         [BZ #6875]
4218         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4220 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4222         [BZ #6867]
4223         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4225         [BZ #6919]
4226         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4227         Fix length of copy operation.
4229 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4231         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4232         and fix its calling convention.
4234 2008-10-07  Andreas Schwab  <schwab@suse.de>
4236         [BZ #6942]
4237         * resolv/res_send.c (send_vc): Fix last change.
4238         (send_dg): Align here as well.
4240 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4242         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4243         return value in case rlimit is RLIM_INFINITY.
4245         [BZ #6947]
4246         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4247         for UL_SETFSIZE.
4248         * resource/Makefile (tests): Add bug-ulimit1.
4249         * resource/bug-ulimit1.c: New file.
4251         [BZ #6974]
4252         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4253         without dot.  Properly terminate the string with a null byte.
4254         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4256         [BZ #6980]
4257         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4258         negative sizees.
4259         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4260         negative __size.
4262         [BZ #6995]
4263         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4265 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4267         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4268         abort if there is no initgroups_dyn function.
4270         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4271         result if any of the queries really provided an answer.
4273 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4275         * po/lt.po: Update from translation team.
4277 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4279         * po/id.po: Update from translation team.
4281 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4283         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4284         Fix tests for existence of second reply.
4286 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4288         * po/id.po: New file.
4289         Contributed by the Indonesian translation team.
4291 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4293         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4294         initialization.
4296 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4298         * elf/Makefile: Add rules to build and run tst-tls17.
4299         * elf/tst-tls17.c: New test.
4300         * elf/tst-tlsmod17a.c: New file.
4301         * elf/tst-tlsmod17b.c: Likewise.
4303 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4305         * stdlib/divmod_1.c: Use correct type for dummy variable.
4306         * stdlib/mod_1.c: Likewise.
4308 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4310         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4312 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4314         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4315         __nonnull order for C++.
4316         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4317         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4319 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4321         * stdlib/longlong.h: Update from GCC.
4323 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4324             David S. Miller  <davem@davemloft.net>
4326         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4327         make sure any registers used with 64-bit 'branch-on-register'
4328         instructions have their top 32-bits clear.
4329         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4330         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4332 2008-09-18  Andreas Schwab  <schwab@suse.de>
4334         [BZ #6942]
4335         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4336         Properly handle partial reads.
4338 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4340         * elf/elf.h (STO_MIPS_PLT): New.
4341         (R_MIPS_COPY): New.
4342         (R_MIPS_JUMP_SLOT): New.
4343         (R_MIPS_NUM): Redefine to 128.
4344         (DT_MIPS_PLTGOT): New.
4345         (DT_MIPS_RWPLT): New.
4346         (DT_MIPS_NUM): Redefine to 0x35.
4348 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4350         * timezone/africa: Update from tzdata2008f.
4351         * timezone/asia: Likewise.
4352         * timezone/australasia: Likewise.
4353         * timezone/europe: Likewise.
4354         * timezone/leapseconds: Likewise.
4355         * timezone/northamerica: Likewise.
4356         * timezone/southamerica: Likewise.
4357         * timezone/zone.tab: Likewise.
4359 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4361         * nscd/connections.c: Disable use of paccept for now.
4363 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4365         * socket/Versions: Remove paccept export for GLIBC_2.9.
4366         * socket/Makefile (routines): Remove paccept.
4367         * socket/sys/socket.h: Remove paccept declaration.
4369         * po/sv.po: Update from translation team.
4371 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4373         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4374         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4376 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4378         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4379         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4381 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4383         * sunrpc/rpc/svc.h: Declare svcfd_create.
4384         Patch by Michael Solberg <msolberg@redhat.com>.
4386 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4387             Ulrich Drepper  <drepper@redhat.com>
4389         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4390         _int_valloc fails.
4391         (public_pVALLOc): Likewise.
4393 2008-09-02  Andreas Jaeger  <aj@suse.de>
4395         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4396         commit.
4398 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4400         [BZ #6860]
4401         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4403 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4405         * Makefile (check-data): Check data directory in add-ons.
4406         * elf/Makefile (check-data): Likewise.
4408 2008-08-18  Roland McGrath  <roland@redhat.com>
4410         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4411         * configure: Regenerated.
4412         * config.make.in (cflags-cpu): New substituted variable.
4413         (with-cpu): Variable removed.
4414         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4416 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4418         [BZ #6845]
4419         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4420         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4421         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4422         redundant.  Functions which call floating point assembler operations
4423         should go into a sysdeps powerpc/fpu directory.
4425 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4427         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4428         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4430 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4432         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4434         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4435         change related to AT_EXECFN.  We cannot use that string.
4436         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4437         _dl_execfn member.
4438         * elf/dl-support.c: Remove _dl_execfn variable.
4439         (_dl_aux_init): Remove handling of AT_EXECFN.
4440         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4441         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4443 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4445         [BZ #6544]
4446         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4447         byte gets added to writes and seeks from the end use the length of
4448         the buffer and not the currently terminating NUL byte.
4450         [BZ #6634]
4451         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4452         Set to true if locking failed.
4453         (getutid_r_file): Adjust caller.
4454         (pututline_file): Likewise.  Return NULL in this case.
4455         Patch mostly by halesh.s@gmail.com.
4457 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4459         [BZ #6589]
4460         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4461         Define.
4462         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4464 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4466         [BZ #6839]
4467         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4468         macro since it is now available in elf/dynamic-link.h.
4470 2008-08-12  Roland McGrath  <roland@frob.com>
4472         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4473         in case used outside of libc.
4474         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4476 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4478         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4479         directly instead of going through dn_comp.
4481 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4483         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4484         Fix asm constraints.
4486 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4488         [BZ #6790]
4489         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4490         (IPV6_PMTUDISC_PROBE): Likewise.
4492 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4494         [BZ #6791]
4495         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4497 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4498             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4500         [BZ #6817]
4501         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4502         Added the members 'vsx' and 'arch_2_06'.
4503         (_dl_powerpc_platforms): Add the member 'power7'.
4504         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4505         to reflect the changes required by VSX and ISA 2.06.
4506         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4507         'power7'.
4508         Defined PPC_PLATFORM_POWER7.
4509         (_dl_string_platform): Add support for POWER7.
4510         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4511         capability and ISA 2.06.
4513 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4515         [BZ #6824]
4516         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4517         macro to detect use of 128 bit long double.
4518         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4520 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4522         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4524         [BZ #5794]
4525         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4526         parameters.
4527         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4528         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4530 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4532         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4533         guaranteed to be large enough to read inotify event.  Ignore
4534         EAGAIN error.  Better error message.  Add branch predicition.
4535         (main_loop_epoll): Likewise.
4537 2008-08-02  Roland McGrath  <roland@frob.com>
4539         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4540         Add memory clobbers.
4542 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4544         * manual/arith.texi: Avoid @strong{Note:}.
4545         * manual/creature.texi: Likewise.
4546         * manual/filesys.texi: Likewise.
4547         * manual/math.texi: Likewise.
4548         * manual/memory.texi: Likewise.
4549         * manual/resource.texi: Likewise.
4550         * manual/syslog.texi: Likewise.
4551         * manual/time.texi: Likewise.
4553         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4554         to prevent warning.
4556 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4558         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4559         new epoll_create1 interface.
4560         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4561         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4562         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4564         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4565         (NS_GET32): Likewise.
4567         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4568         syscalls, too.
4570         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4571         use the AT_EXECFN value if it is no absolute path.
4572         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4573         __ASSUME_AT_EXECFN.
4575         * Versions.def: Add GLIBC_2.9 to libresolv.
4576         * include/resolv.h: Remove hidden proto declarations for __ns_*
4577         functions.  Add them for __dn_count_labels and __p_secstodate.
4578         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4579         Define ns_msg_getflags macro here.
4580         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4581         and __p_secstodate.
4582         * resolv/Versions: Export functions from <arpa/nameser.h> from
4583         libresolv in version GLIBC_2.9.
4584         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4585         hidden definitions.
4586         * resolv/ns_netint.c: Likewise.
4587         * resolv/ns_parse.c: Likewise.
4588         * resolv/ns_print.c: Likewise.
4589         * resolv/ns_samedomain.c: Likewise.
4590         * resolv/ns_ttl.c: Likewise.
4591         * resolv/arpa/nameser_compat.h: Likewise.
4592         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4593         function calls.
4594         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4595         instead of ns_get16.
4596         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4597         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4598         (gaih_getanswer_slice): Likewise.
4599         * resolv/Makefile (libresolv-routines): Add ns_date.
4600         * resolv/ns_date.c: New file.
4602         * elf/Makefile (check-localplt.out): Also check libresolv and
4603         libcrypt.
4605 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4607         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4608         __ASSUME_O_CLOEXEC.
4610 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4612         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4613         buffer passed to NSS functions.
4615         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4617         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4618         Define.
4620         * misc/syslog.c (openlog_internal): Fix compile problem.
4622 2008-07-28  Roland McGrath  <roland@redhat.com>
4624         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4626 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4628         * io/ftw.c (add_object): Remove inline to avoid warning.
4630         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4632         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4633         Use it instead of locally defined resplen2 variable.
4634         (res_nsend): Adjust for __libc_res_nsend interface change.
4635         (send_vc): Initialize *resplen2 if necessary.  Read length of
4636         package into an appropriately aligned variable.  Store converted length
4637         in new variable and use it appropriately.
4638         Add branch prediction help.
4639         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4640         and pass it on to __libc_res_nsend.  Adjust all callers.
4641         (__libc_res_nsearch): Likewise.
4642         (__libc_res_nqeurydomain): Likewise.
4643         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4644         change.
4645         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4646         Define resplen2 variable and pass it to __libc_res_nsearch and then
4647         to gaih_getanswer.
4648         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4649         Add branch prediction.
4650         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4651         (gaih_getanswer): Don't decode second slice if first one failed due
4652         to a too small buffer.  Don't let not found status of second
4653         decoder shadow results of the first.
4654         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4655         and __libc_res_nquery interface changes
4656         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4657         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4658         __libc_res_nsearch, and __libc_res_nsend.
4659         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4660         change.
4661         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4662         __libc_res_nsearch interface changes.
4664 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4666         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4668         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4669         file descriptors with close-on-exec set.
4670         (exec_comm_child): Fix the case where the write end of the pipe is
4671         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4673         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4674         * io/pipe2.c: Likewise.
4675         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4676         instead of __ASSUME_PACCEPT.
4677         * include/unistd.h: Declare __have_pipe2.
4678         * libio/iopopen.c: Implement "e" flag.
4679         * libio/Makefile (tests): Add tst-popen1.
4680         * libio/tst-popen1.c: New file.
4682         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4683         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4685 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4687         [BZ #6771]
4688         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4689         success call of _IO_SEEKOFF or calls which failed because the
4690         descriptor is for a pipe.
4692         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4693         magic number.
4695         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4697         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4698         F_SETFD use if we know fopen set the flag.
4700         * login/utmp_file.c (setutent_file): Minor optimization in case
4701         O_CLOEXEC is available.
4703 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4705         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4706         * elf/Makefile: Use pie-ccflag variable.
4707         * nscd/Makefile: Likewise.
4708         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4710 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4712         [BZ #6724]
4713         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4714         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4715         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4716         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4717         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4718         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4719         utmp32, utmpx32 and login32.
4720         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4721         versions of struct utmp functions to libc and libutil.
4722         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4723         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4724         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4725         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4726         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4727         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4728         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4729         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4730         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4731         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4732         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4733         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4734         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4735         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4736         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4737         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4738         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4739         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4740         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4741         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4742         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4743         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4745 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4747         * scripts/gen-as-const.awk: Generate more widely usable code by
4748         using 64-bit arithmetic.
4750         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4751         the same treatment as narrow output code in last patch.
4753         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4755         [BZ #6763]
4756         * elf/dl-load.c (local_strdup): Remove inline.
4757         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4758         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4759         part of the object.
4761         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4763 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4765         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4766         the new syscalls, too.
4768         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4769         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4771         [BZ #6698]
4772         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4773         parameter for end of buffer.  If temporary copy is too large use
4774         malloc.
4775         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4776         interface change.
4777         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4778         string rewrite when allocating buffer.
4780         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4781         syscalls, too.
4783         * nscd/connections.c (nscd_init): Clean up fcntl call.
4785         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4786         SOCK_NONBLOCK if possible.
4788         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4789         SOCK_CLOEXEC if available.
4791         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4792         __libc_clntudp_bufcreate_internal.
4793         * include/sys/socket.h: Declare __have_sock_cloexec.
4794         * socket/Makefile (aux): Add have_sock_cloexec.
4795         * socket/have_sock_cloexec.c: New file.
4796         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4797         __libc_clntudp_bufcreate.
4798         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4799         which takes an additional parameter.  Create socket with non-blocking
4800         mode and close-on-exec flag set, if wanted.
4801         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4802         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4803         instead of clntudp_create.  The socket has already the close-on-exec
4804         flag set if SOCK_CLOEXEC is defined.
4806 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4808         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4809         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4810         appropriate.
4811         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4812         non-blocking mode by using socket, paccept, and inotify_init1.
4814         * Versions.def (glibc): Add GLIBC_2.9.
4815         * io/Makefile (routines): Add dup3 and pipe2.
4816         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4817         * io/dup3.c: New file.
4818         * io/pipe2.c: New file.
4819         * posix/unistd.h: Declare dup3 and pipe2.
4820         * socket/Makefile (routines): Add paccept.
4821         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4822         * socket/paccept.c: New file.
4823         * socket/sys/socket.h: Declare paccept.
4824         * sysdeps/unix/syscalls.list: Add entry for dup3.
4825         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4826         epoll_create2 and inotify_init1.
4827         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4828         * sysdeps/unix/sysv/linux/paccept.c: New file.
4829         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4830         possible.
4831         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4832         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4833         inotify_init1, and pipe2 entries.
4834         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4835         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4836         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4837         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4838         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4839         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4840         SOCK_NONBLOCK.
4841         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4842         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4843         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4844         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4845         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4846         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4847         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4848         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4849         EPOLL_NONBLOCK.  Declare epoll_create2.
4850         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4851         EFD_NONBLOCK.
4852         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4853         IN_NONBLOCK.  Declare inotify_init1.
4854         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4855         SFD_NONBLOCK.
4856         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4857         TFD_NONBLOCK.
4859         * elf/elf.h: Define AT_EXECFN.
4860         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4861         LD_ORIGIN_PATH.
4862         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4863         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4864         if __ASSUME_AT_EXECFN is defined.
4865         (_dl_aux_init): Handle AT_EXECFN.
4866         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4867         for 2.6.27 and up.
4868         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4869         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4870         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4871         _dl_execfn if available and avoid compatibility code if
4872         __ASSUME_AT_EXECFN is defined.
4874         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4875         _dl_discover_osversion only for older kernels.
4877 2008-07-22  Roland McGrath  <roland@frob.com>
4879         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4881 2008-07-21  Roland McGrath  <roland@frob.com>
4883         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4884         returned too much data out of line.
4886 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4888         * locale/setlocale.c (setname): Remove inline to avoid compiler
4889         warning.
4891         [BZ #6712]
4892         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4894 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4896         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4897         doesn't manage to write anything, fail.
4899         * malloc/hooks.c (__malloc_check_init): Remove printf.
4901 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4903         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4905 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4907         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4908         from inotify.
4909         (main_loop_epoll): Likewise.
4911 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4913         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4915         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4916         if DEBUG is defined.
4918         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4919         query.  Adjust buffer size computation for padding.
4921 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4923         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4924         * stdio-common/tst-setvbuf1.c: New file.
4925         * stdio-common/tst-setvbuf1.expect: New file.
4927         [BZ #6719]
4928         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4929         when selecting fully-buffered stream.
4930         Patch by Wang Xin <wxinee@gmail.com>.
4932 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4934         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4935         (__open_2): New function.
4936         (__open64_2): New alias to __open_2.
4937         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4938         (__openat_2): New function.
4939         (__openat64_2): New alias to __openat_2.
4941 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4943         [BZ #6723]
4944         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4946 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4948         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4949         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4950         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4951         __hurd_dfail.
4952         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4953         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4954         * sysdeps/mach/hurd/send.c (__send): Likewise.
4955         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4956         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4958 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4960         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4961         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4962         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4963         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4964         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4965         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4967 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4969         [BZ #6657]
4970         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4971         of %EY.
4972         Patch by Petr Baudis.
4974 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4976         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4977         Patch by Peter Jones <pjones@redhat.com>.
4979 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4981         [BZ #6654]
4982         * stdlib/canonicalize.c (__realpath): readlink can write too much
4983         into the buffer on platforms without PATH_MAX.
4985 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4987         [BZ #6653]
4988         * posix/tst-regex.c (main): Rename to...
4989         (do_test): ... this. Remove cmdline option processing.
4990         (TIMEOUT): Define.
4991         (TEST_FUNCTION): Define.
4992         (CMDLINE_OPTIONS): Define.
4994 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4996         [BZ #5210]
4997         * configure.in: Add -Werror to -fstack-protector test to catch
4998         unsupported architectures.
4999         Patch by Gilles Esponasse <g.esp@free.fr>.
5001 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5003         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5004         getcontext returns ENOSYS.
5006 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5008         * nscd/connections.c (main_loop_poll): Fix test for read error.
5009         (main_loop_epoll): Likewise.
5011 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5013         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5014         better place so it is not called when nscd is used.
5016         * nscd/connections.c: Also recognize and handle changes to the
5017         resolver configuration file.
5019 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5021         * time/strftime.c: Pass reference to tzset_called around to handle
5022         recursive calls.
5024         [BZ #6612]
5025         * time/strftime.c (__strftime_internal): Call tzset() only
5026         when printing timezone-dependent values.
5027         Based on a patch by Petr Baudis <pasky@suse.cz>.
5029         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5030         unconditionally use second gaih_getanswer_slice result.
5032         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5033         (getaddrinfo): RES must always be non-NULL.
5035 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5037         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5038         cr[34] registers.
5039         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5040         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5041         Likewise.
5042         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5043         register.
5045 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5047         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5048         fields.
5049         * nscd/connections.c (inotify_fd): New variable.
5050         (nscd_init): Try to open an inotify descriptor.
5051         If successful, watch files for databases using inotify instead of
5052         having prune threads stat the files.
5053         (nscd_run_prune): Recognize clear_cache flag being set and call
5054         prune_cache appropriately.
5055         (main_loop_poll): Add inotify descriptor to wait set and handle the
5056         reported changes.
5057         (main_loop_epoll): Likewise.
5058         * nscd/cache.c (prune_cache): Don't stat files for databases if
5059         inotify is used.
5060         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5061         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5063         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5064         fixed-size portion of the record.
5065         * nscd/servicescache.c (cache_addserv): Likewise.
5066         * nscd/pwdcache.c (cache_addpw): Likewise.
5067         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5069 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5071         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5072         out we don't use uninitialized memory.
5074         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5075         the client.
5077 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5079         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5080         ignore T_DNAME messages.
5081         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5083 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5085         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5086         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5088 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5090         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5091         instead of portstr to nscd_getserv_r.  Patch by
5092         Roman Kagan <rkagan@mail.ru>.
5094 2008-05-26  Jim Meyering  <meyering@redhat.com>
5096         Remove more useless "if" tests before "free".
5097         * include/inline-hashtab.h (htab_delete): Likewise.
5098         * libio/freopen.c (freopen): Likewise.
5099         * libio/freopen64.c (freopen64): Likewise.
5100         * locale/programs/ld-collate.c (collate_read): Likewise.
5101         * misc/fstab.c (libc_freeres_fn): Likewise.
5102         * posix/glob.c (globfree): Likewise.
5104 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5106         * string/Makefile (strop-tests): Add memmem.
5107         * string/test-memmem.c: New file.
5108         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5109         (test_init): Size buf1 according to BUF1PAGES.
5111 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5113         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5114         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5115         (CFLAGS-scanf17.c): New.
5116         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5117         * stdio-common/scanf15.c (main): Likewise.
5118         * stdio-common/scanf16.c: New file.
5119         * stdio-common/scanf17.c: New file.
5121 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5123         * resolv/res_send.c (send_dg): If we already have one of two
5124         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5125         use the one answer insted of failing.
5127 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5129         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5130         being executed on PowerPC as the expected result exceeds IBM
5131         long double 128 __LDBL_MAX__.
5133 2008-05-21  Roland McGrath  <roland@redhat.com>
5135         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5137         * Makefile (check-data): Use $(abi-name) before other guesses.
5138         Look in $(add-ons) dirs before scripts/data/.
5139         * elf/Makefile (check-data): Likewise.
5141         * scripts/soversions.awk: Grok ABI line.
5142         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5143         Emit definition for abi-name variable.
5145 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5147         * string/endian.h: Define new fixed-size hto* and *toh macros only
5148         if [__USE_BSD].
5150         * iconvdata/Depend: Add localedata.
5152 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5154         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5156 2008-05-08  David S. Miller  <davem@davemloft.net>
5158         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5159         HIDDEN_JUMPTARGET.
5160         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5161         (__SYSCALL_CLOBBERS): Remove %g* registers.
5162         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5163         (__SYSCALL_CLOBBERS): Likewise.
5164         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5165         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5167 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5169         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5170         (CALL_ERRNO_LOCATION): Define.
5171         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5172         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5173         (CALL_ERRNO_LOCATION): Define.
5174         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5175         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5176         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5178 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5180         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5181         variable.
5183 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5185         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5186         (FIRST_FRAME_POINTER): Define.
5188 2008-05-09  David S. Miller  <davem@davemloft.net>
5190         * sysdeps/sparc/sparc64/backtrace.c: New file.
5192 2008-05-14  David S. Miller  <davem@davemloft.net>
5194         * sysdeps/sparc/machine-gmon.h: New file.
5195         * sysdeps/sparc/sparc-mcount.S: Likewise.
5196         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5197         sysdep_routines in gmon directory.
5199 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5201         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5203 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5205         * resolv/res_query.c (__libc_res_nquery): In case one of two
5206         answer was too short don't try to read that answer's header.
5208         * resolv/res_send.c (send_dg): In case of timeout and there are
5209         two queries and one has been answered, return value indicating
5210         success.
5212 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5214         * nscd/cache.c (cache_add): Take additional parameter specifying
5215         whether this is in response of a cache refill.  Check alignment
5216         of package data.  Revamp waking of pruning thread.
5217         (prune_cache): Small optimization.
5218         * nscd/nscd.h: Adjust cache_add prototypes.
5219         * nscd/aicache.c: Adjust cache_add calls.
5220         * nscd/grpcache.c: Likewise.
5221         * nscd/hstcache.c: Likewise.
5222         * nscd/initgrcache.c: Likewise.
5223         * nscd/pwdcache.c: Likewise.
5224         * nscd/servicescache.c: Likewise.
5225         * nscd/connections.c (restart): Really disable cache use before
5226         exec attempt.  If it fails, reenable cache.
5227         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5228         time to max to be able to notice concurrent cache additions.  Unlock
5229         prune_lock while performing gc.  Afterwards compute wakeup time with
5230         current wakeup_time value in mind.
5232 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5234         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5236         * nscd/mem.c (gc): Correctly determine highest used array element
5237         in mark.
5239         * nscd/mem.c (markrange): Add assert to check entries are all
5240         aligned.  Small cleanup in bitmap use.
5242         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5243         blockoff of type nscd_ssize_t.
5244         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5245         (mempoll_alloc): Record block offset and not address.
5247         * nscd/mem.c (gc): Fix test for stack overuse.
5249         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5250         more asserts.
5252         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5253         entry is available, believe it.
5255         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5256         no answers return NSS_STATUS_NOTFOUND.
5257         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5258         buffer does not have any content.
5260 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5262         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5264         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5265         lookup, don't assign canon unconditionally.
5267 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5269         * string/Makefile (distribute): Add str-two-way.h.
5271 2008-03-29  Eric Blake  <ebb9@byu.net>
5273         Rewrite string searches to O(n) rather than O(n^2).
5274         * string/str-two-way.h: New file.  For linear fixed-allocation
5275         string searching.
5276         * string/memmem.c: New implementation.
5277         * string/strstr.c: New implementation.
5278         * string/strcasestr.c: New implementation.
5280 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5282         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5283         opr.ctx_type.
5284         (calc_first): Initialize constraint field.
5285         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5286         Use search_duplicated_node to avoid loops.  Fix grammar.
5287         (duplicate_node): Merge constraint field for all node types.
5288         (calc_eclosure_iter): Look at constraint field for all node types.
5289         * posix/regex_internal.c (create_cd_newstate): Don't look at
5290         create_cd_newstate.
5292 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5294         [BZ #6428]
5295         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5297         [BZ #6442]
5298         * string/endian.h: Add macros for fixed-size endian conversion.
5299         * bits/byteswap.h: Allow inclusion from <endian.h>.
5300         * sysdeps/i386/bits/byteswap.h: Likewise.
5301         * sysdeps/ia64/bits/byteswap.h: Likewise.
5302         * sysdeps/s390/bits/byteswap.h: Likewise.
5303         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5304         * string/Makefile (tests): Add tst-endian.
5305         * string/tst-endian.c: New file.
5307         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5308         Patch by Reuben Thomas.
5310 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5312         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5314 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5316         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5318         [BZ #6461]
5319         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5320         Add missing braces.
5321         (BODY for __gconv_transform_internal_ascii): Likewise.
5323         [BZ #6472]
5324         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5325         to be treated like link-local addresses.
5326         (match_prefix): Don't treat IPv4 loopback address special when
5327         converting to v4 mapped addressed.
5329         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5330         if necessary.
5331         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5332         * posix/tst-rfc3484-2.c: Likewise.
5333         * posix/tst-rfc3484-3.c: Likewise.
5335         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5336         and SCTP.
5338         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5340         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5342         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5344 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5346         * po/lt.po: New file.  From Lituanian translation team.
5348 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5350         Introduce TLS descriptors for i386 and x86_64.
5351         * include/inline-hashtab.h: New file, copied from 2005's
5352         libiberty, with fix for memory leak imported afterwards by
5353         Glauber de Oliveira Costa.
5354         * elf/tlsdeschtab.h: New file.
5355         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5356         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5357         (CHECK_STATIC_TLS): Move to...
5358         * elf/dynamic-link.h: ... this file.
5359         (TRY_STATIC_TLS): New macro.
5360         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5361         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5362         R_386_TLS_DESC): Define.
5363         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5364         binutils.
5365         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5366         R_X86_64_TLSDESC): Define.
5367         (R_386_NUM, R_X86_64_NUM): Adjust.
5368         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5369         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5370         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5371         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5372         release tlsdesc_table.
5373         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5374         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5375         (elf_machine_rel): Handle R_386_TLS_DESC.
5376         (elf_machine_rela): Likewise.
5377         (elf_machine_lazy_rel): Likewise.
5378         (elf_machine_lazy_rela): Likewise.
5379         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5380         * sysdeps/i386/dl-tlsdesc.S: New file.
5381         * sysdeps/i386/dl-tlsdesc.h: New file.
5382         * sysdeps/i386/tlsdesc.c: New file.
5383         * sysdeps/i386/tlsdesc.sym: New file.
5384         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5385         tlsdesc_table.
5386         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5387         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5388         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5389         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5390         release tlsdesc_table.
5391         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5392         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5393         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5394         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5395         (elf_machine_rela): Likewise.
5396         (elf_machine_lazy_rel): Likewise.
5397         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5398         (__tls_get_addr): Do not declare for non-shared compiles.
5399         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5400         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5401         * sysdeps/x86_64/tlsdesc.c: New file.
5402         * sysdeps/x86_64/tlsdesc.sym: New file.
5403         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5404         tlsdesc_table for both 32- and 64-bit structs.
5406 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5408         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5409         its own function.  This reduces the frame setup costs and more.
5411 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5413         [BZ #3406]
5414         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5415         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5417 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5419         * io/openat.c (__openat_2): Also pass fd to __openat.
5420         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5421         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5423         * string/tester.c (test_memcmp): Add a few more tests.
5424         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5426 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5428         * nscd/cache.c (cache_add): Before returning with failure and this
5429         is the first use of the record, mark it as unusable.
5430         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5431         reporting a failure.
5432         * nscd/grpcache.c: Likewise
5433         * nscd/hstcache.c: Likewise.
5434         * nscd/initgrcache.c: Likewise.
5435         * nscd/pwdcache.c: Likewise.
5436         * nscd/servicescache.c: Likewise.
5438 2008-05-10  Roland McGrath  <roland@redhat.com>
5440         [BZ #6505]
5441         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5443 2008-05-08  David S. Miller  <davem@davemloft.net>
5445         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5447         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5448         (__ieee754_y0l): Likewise.
5449         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5450         (__ieee754_y1l): Likewise.
5451         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5452         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5453         frexpl and ldexpl.  math_private.h provides them and the latter
5454         is not even used.
5455         (__log1pl): Use __frexpl.
5457 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5459         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5460         prototypes.
5461         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5462         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5463         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5464         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5465         af==AF_UNSPEC.
5466         (_nss_nis_gethostbyname4_r): New function.
5467         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5468         Change to also handle af==AF_UNSPEC.
5469         (get_tablename): New function.  Use it to avoid duplication.
5470         (_nss_nisplus_gethostbyname4_r): New function.
5471         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5472         available.
5473         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5474         * nss/nss.h: Define struct gaih_addrtuple.
5475         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5476         af==AF_UNSPEC.
5477         (_nss_files_gethostbyname4_r): New function.
5478         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5479         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5480         calls.
5481         * resolv/res_query.c (__libc_res_nquery): Take two additional
5482         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5483         look up IPv4 and IPv6.
5484         Change all callers.
5485         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5486         for an additional query and answer buffer.  Pass to send_vc and
5487         send_dg.
5488         (send_vc): Send possibly two requests and receive two answers.
5489         (send_dg): Likewise.
5490         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5491         __libc_res_nquery.
5492         (_nss_dns_gethostbyname4_r): New function.
5493         (gaih_getanswer_slice): Likewise.
5494         (gaih_getanswer): Likewise.
5495         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5496         __libc_res_nquery call.
5497         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5498         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5499         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5500         available.
5502 2008-05-05  David S. Miller  <davem@davemloft.net>
5504         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5505         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5507 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5509         Fix termios bit macros.
5510         Move *DLY definitions where they belong, in termios.h.
5511         Add *[0-3] definitions.
5512         Fixes confusion between VT and FF.
5513         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5514         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5515         are already defined to avoid collision with termios.h.
5516         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5517         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5518         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5519         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5520         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5521         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5522         VTDLY, VT0, VT1): New macros.
5523         [__USE_GNU] (OLCUC): Change value of macro.
5524         [__USE_XOPEN] (OFILL): New macro.
5525         [__USE_BSD] (CRTSCTS): Change value.
5526         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5527         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5528         (B7200, B14400, B28800, B76800): New macros.
5530 2008-05-01  David S. Miller  <davem@davemloft.net>
5532         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5533         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5534         (gen-as-const-headers): Add it.
5535         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5536         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5537         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5538         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5540         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5541         six system call parameters.
5542         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5544 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5546         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5547         RUSAGE_LWP.
5548         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5549         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5551 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5553         * stdlib/tst-setcontext.c: Include unistd.h.
5555 2008-04-25  David S. Miller  <davem@davemloft.net>
5557         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5558         Pass "union semun" properly in to sys_ipc, it must be passed
5559         by value, not by reference.
5561 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5563         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5564         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5565         * nscd/connections.c (mem_in_flight): Likewise.
5567         * nscd/nscd.h (dbs): Make hidden.
5569         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5570         Avoid returning -1, return 0 instead.
5572 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5574         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5576 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5578         [BZ #5209]
5579         * sysdeps/unix/sysv/linux/times.c: New file.
5581         [BZ #5381]
5582         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5583         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5584         prototype.
5585         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5586         appropriate mem_in_flight element.
5587         (gc): Take allocations which have not yet been committed to the
5588         database into account.
5589         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5590         Reset mem_in_flight before returning.
5591         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5592         cue it up in mem_in_flight_list.
5593         * nscd/aicache.c: Adjust mempool_alloc call.
5594         * nscd/grpcache.c: Likewise.
5595         * nscd/hstcache.c: Likewise.
5596         * nscd/initgrcache.c: Likewise.
5597         * nscd/pwdcache.c: Likewise.
5598         * nscd/servicescache.c: Likewise.
5599         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5600         of -fpie.
5602         * nscd/connections.c (handle_request): Provide better error message
5603         in case SELinux forbids the service.
5605         * version.h (VERSION): Bump to 2.8.90.
5607 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5609         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5611 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5613         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5614         Also use for 32-bit.
5615         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5616         __nextafter instead of nextafter to avoid local PLT.
5617         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5618         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5620         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5622         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5623         __fe_nomask_env.
5624         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5625         <fenv_libc.h> instead of <fenv.h>.
5626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5629         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5631         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5632         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5633         function from fegetexcept and make old name weak alias.
5634         * include/fenv.h: Declare __fegetexcept.
5635         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5636         fegetexcept.
5637         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5638         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5639         to fetestexcept.
5640         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5641         instead of frexpl to avoid local PLT.
5642         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5643         ilogbl to avoid local PLT.
5644         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5645         instead of ldexpl to avoid local PLT.
5646         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5647         __roundl not roundl to avoid local PLT.
5648         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5649         local PLTs.  Use __sincosl instead of separate sinl and cosl
5650         calls.
5651         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5653         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5654         version for ppc64 to 2.4.21 since without it makecontext will fail.
5656         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5657         to the ABI in use.
5658         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5659         .__tls_get_addr.
5660         [__powerpc64__] (TLS_GD): Likewise.
5662 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5664         [BZ #4997]
5665         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5666         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5667         mantissa.
5668         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5669         Likewise.  Also account for when x is an odd number between 2^52
5670         and 2^53-1.
5671         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5672         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5673         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5674         detect aforementioned erroneous conditions.
5676 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5678         * configure.in: Check for -fno-section-anchors in addition to
5679         -fno-toplevel-reorder.
5681 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5683         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5685         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5686         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5687         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5688         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5689         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5690         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5692 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5694         [BZ #5443]
5695         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5696         * time/alt_digit.c: Likewise.
5697         * wcsmbs/wcsmbsload.c: Likewise.
5699 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5701         * version.h (VERSION): Bump to 2.8.
5703         * timzeone/asia: Update from tzdata2008b.
5704         * timezone/backward: Likewise.
5705         * timezone/europe: Likewise.
5706         * timezone/northamerica: Likewise.
5707         * timezone/southamerica: Likewise.
5708         * timezone/iso3166.tab: Likewise.
5709         * timezone/leapseconds: Likewise.
5710         * timezone/zone.tab: Likewise.
5711         * timezone/private.h: Update from tzcode2008a.
5712         * timezone/zdump.c: Likewise.
5713         * timezone/zic.c: Likewise.
5715 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5717         [BZ #5741]
5718         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5719         Define additonal Data Cache Block instruction macros.
5720         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5721         Replace dcbst with dcbf and sync with sync/isync.
5723 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5725         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5726         Always set ELF_RTYPE_CLASS_PLT.
5727         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5729 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5731         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5732         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5733         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5734         For ISA 2.01 and later replace mftb with mfspr 268.
5736 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5738         [BZ #5768]
5739         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5740         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5742 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5744         [BZ #5768]
5745         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5746         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5747         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5748         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5750 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5752         * stdlib/tst-makecontext.c (othervar): New variable.
5753         (cf): Test sign extending the argument to long.
5755 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5757         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5758         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5759         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5760         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5761         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5762         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5763         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5765 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5767         * elf/Makefile (tests): Substitute tests-vis-yes here.
5768         (tests-vis-yes): Delete.
5769         (modules-name, modules-vis-yes): Similarly.
5771 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5773         [BZ #4407]
5774         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5775         Preserve sign in signgamp when x is zero.
5777 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5779         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5780         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5781         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5782         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5783         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5784         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5786 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5788         [BZ #4314]
5789         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5790         buffers.
5792         [BZ #5209]
5793         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5794         a reserved error value.
5796         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5797         value to check for correct sign extension.
5799         [BZ #5436]
5800         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5801         Copy 64-bit parameter values even though this is not required in
5802         the standard.
5804         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5805         PC save.
5807 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5809         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5810         PC save.
5812 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5814         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5816 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5818         [BZ #5998]
5819         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5820         in line-buffered stream failed.
5821         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5823 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5825         [BZ #6024]
5826         * scripts/abi-versions.awk: If the version specified by
5827         --enable-oldest-abi is older than the first version for this
5828         architecture, use the default version.
5830         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5831         as well when ignoring the whole category.
5833 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5835         [BZ #6042]
5836         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5837         ETHERTYPE_* definitions.
5838         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5840 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5842         * stdlib/mbtowc.c (__no_r_state): Remove.
5843         (mbtowc): New static state variable.  Use it instead of
5844         __no_r_state.
5845         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5846         (__wctomb_state): New hidden variable.
5847         (wctomb): Use __wctomb_state instead of __no_r_state.
5848         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5849         (__wctomb_state): New extern decl.
5850         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5852 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5854         [BZ #5475]
5855         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5857 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5859         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5861 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5863         * po/nl.po: Update from translation team.
5865 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5867         [BZ #6007]
5868         * string/strfry.c: Handle empty strings again.
5870 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5872         [BZ #5443]
5873         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5874         before looking for translation.
5875         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5876         * locale/freelocale.c: Likewise.
5877         * locale/newlocale.c: Likewise.
5878         * locale/setlocale.c: Likewise.
5879         Based partially on a patch by ryo@np.css.fujitsu.com.
5881 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5883         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5884         acquiring wrlock.  Do conv_tab allocation while holding lock.
5885         * intl/Makefile: Add rules to build and run tst-gettext6.
5886         * intl/tst-gettext6.c: New test.
5887         * intl/tst-gettext6.sh: New file.
5889 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5891         * po/nl.po: Update from translation team.
5893         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5894         provided through st_blksize, try the default size before giving up.
5896 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5898         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5900         [BZ #5939]
5901         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5903         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5904         error message.  POSIX today does not require the messages to be in
5905         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5907         [BZ #5979]
5908         * sunrpc/auth_unix.c: Unify printed strings.
5909         * sunrpc/clnt_tcp.c: Likewise.
5910         * sunrpc/clnt_udp.c: Likewise.
5911         * sunrpc/clnt_unix.c: Likewise.
5912         * sunrpc/svc_tcp.c: Likewise.
5913         * sunrpc/svc_udp.c: Likewise.
5914         * sunrpc/svc_unix.c: Likewise.
5915         * sunrpc/xdr.c: Likewise.
5916         * sunrpc/xdr_array.c: Likewise.
5917         * sunrpc/xdr_rec.c: Likewise.
5918         * sunrpc/xdr_ref.c: Likewise.
5919         * locale/programs/ld-time.c (time_finish): Unify messages.
5920         * locale/programs/locfile.c (handle_copy): Fix typo.
5921         * nscd/nscd.c (options): Fix typo.
5923         [BZ #5995]
5924         * stdlib/strtod_l.c: Use correct sign for result in one more
5925         underflow case.
5926         Patch by Eric Blake <ebb9@byu.net>.
5928 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5930         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5931         and creat system calls.
5932         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5933         call.
5934         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5935         system calls.
5936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5937         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5938         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5940 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5942         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5943         <linux/limits.h> has defined it.
5944         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5945         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5946         headers.
5947         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5948         it instead of ARG_MAX.
5950 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5952         * posix/gai.conf: Fix comment for scope nullbits.
5953         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5954         default to 128 bits for v4 mapped addresses.
5956 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5958         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5959         ptrace call to get the ieee_instruction_pointer from the kernel.
5960         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5961         ptrace call to set the ieee_instructtion_pointer.
5962         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5963         Add comment that ieee_instruction_pointer is always 0.
5965 2008-03-09  Andreas Jaeger  <aj@suse.de>
5967         [BZ #5857]
5968         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5969         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5970         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5972         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5973         (rint_test): Likewise.
5975 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5977         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5978         call.
5979         (__nisfind_server): Similar for open readColdStartFile call.
5980         Patch partially by Jim Meyering.
5981         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5982         around internal_setent call.
5984         * po/vi.po: New Vietnamese translation.
5986         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5987         ADJ_OFFSET_SS_READ.
5989         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5990         remove CLONE_STOPPED.
5992 2008-02-10  Jim Meyering  <meyering@redhat.com>
5994         Remove useless "if" before "free":
5995         * elf/ldconfig.c (parse_conf_include): Likewise.
5996         * gmon/gmon.c (weak_alias): Likewise.
5997         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5998         * inet/rcmd.c (__validuser2_sa): Likewise.
5999         * intl/bindtextdom.c (set_binding_values): Likewise.
6000         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6001         * libio/genops.c (save_for_backup): Likewise.
6002         * libio/wgenops.c (save_for_wbackup): Likewise.
6003         * locale/programs/ld-collate.c (collate_read): Likewise.
6004         * locale/programs/linereader.c (get_string): Likewise.
6005         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6006         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6007         * resolv/res_debug.c (do_section): Likewise.
6008         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6009         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6010         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6011         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6012         * time/tzset.c (tzset_internal): Likewise.
6014 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6016         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6017         of ASSEMBLER.
6019 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6021         [BZ #5903]
6022         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6023         not stream for output file.  Open output file here.
6024         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6025         and output file name.
6026         (process_fd): Likewise.
6027         (process_file): Likewise.
6028         (main): Adjust callers of changed functions.
6029         * iconv/iconv_prog.h: Adjust prototype.
6031 2008-03-09  Andreas Jaeger  <aj@suse.de>
6033         [BZ #5753]
6034         * sysdeps/ia64/ieee754.h: Use protected namespace
6035         __BIG_ENDIAN/__LITTLE_ENDIAN.
6036         * sysdeps/ieee754/ieee754.h: Likewise.
6037         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6039 2008-03-08  Roland McGrath  <roland@frob.com>
6041         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6042         ignore a signal that came from a machine exception, treat it as a
6043         fatal core-dump signal instead.
6044         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6046         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6047         Clear DF bit in thread state's eflags.
6048         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6050 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6052         [BZ #5774]
6053         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6054         of NAN(...) sequence.
6055         * stdlib/Makefile (tests): Add tst-strtod6.
6056         * stdlib/tst-strtod6.c: New file.
6058         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6060         [BZ #5762]
6061         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6062         putting offending option character in quotes.  Clean up error
6063         messages.
6064         * po/be.po: Adjust msgstr in translation file.
6065         * po/bg.po: Likewise.
6066         * po/ca.po: Likewise.
6067         * po/cs.po: Likewise.
6068         * po/da.po: Likewise.
6069         * po/de.po: Likewise.
6070         * po/es.po: Likewise.
6071         * po/fr.po: Likewise.
6072         * po/hr.po: Likewise.
6073         * po/ko.po: Likewise.
6074         * po/nl.po: Likewise.
6075         * po/rw.po: Likewise.
6076         * po/sk.po: Likewise.
6077         * po/sv.po: Likewise.
6078         * po/tr.po: Likewise.
6079         * po/zh_CN.po: Likewise.
6080         * po/zh_TW.po: Likewise.
6082         [BZ #5760]
6083         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6084         Patch by Roland Bless <roland@bless.de>.
6086         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6087         .o file.
6088         * elf/Makefile (routines): Add dl-sysdep.
6089         (elide-routines.os): Likewise.
6091 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6093         [BZ #5786]
6094         * elf/dl-sysdep.c: Undefine ROUND after use.
6095         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6096         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6097         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6098         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6099         to ...
6100         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6101         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6102         if necessary.
6103         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6105         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6106         _dl_tls_get_addr_soft element.
6107         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6108         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6109         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6110         GLRO.
6111         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6112         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6113         of internal_function.
6115         * stdlib/Makefile (aux): Add tens_in_limb.
6116         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6117         * stdlib/tens_in_limb.c: ...here.  New file.
6119         [BZ #5778]
6120         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6121         __statfs_chown_restricted.
6122         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6123         for _PC_CHOWN_RESTRICTED.
6124         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6125         Implement __statfs_chown_restricted.
6126         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6127         _POSIX_CHOWN_RESTRICTED value to zero.
6128         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6129         defined to zero.
6131         * sysdeps/x86_64/rtld-memset.c: New file.
6133 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6135         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6137         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6138         Barcelona machine.  Make default fall through branch of
6139         __x86_64_preferred_memory_instruction check as the integer code path.
6141 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6143         * sysdeps/x86_64/cacheinfo.c
6144         (__x86_64_preferred_memory_instruction): New variable.
6145         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6147         * sysdeps/x86_64/memset.S: Rewrite.
6149 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6151         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6152         __obstack_printf_chk): New prototypes.
6153         (__vasprintf_chk, __vdprintf_chk,
6154         __obstack_vprintf_chk): Likewise.
6155         Add libc_hidden_proto.
6156         * libio/obprintf.c
6157         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6158         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6159         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6160         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6161         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6162         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6163         __obstack_vprintf_chk): New prototypes.
6164         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6165         obstack_vprintf): New inlines.
6166         * debug/dprintf_chk.c: New file.
6167         * debug/vdprintf_chk.c: New file.
6168         * debug/asprintf_chk.c: New file.
6169         * debug/vasprintf_chk.c: New file.
6170         * debug/obprintf_chk.c: New file.
6171         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6172         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6173         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6174         @@GLIBC_2.8.
6175         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6176         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6177         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6178         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6179         libc_hidden_proto.
6180         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6181         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6182         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6183         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6184         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6185         @@GLIBC_2.8.
6186         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6187         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6188         obstack_vprintf_chk.
6189         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6190         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6191         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6192         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6193         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6194         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6196 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6198         [BZ #5779]
6199         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6200         Patch by Roy Marples <roy@marples.name>.
6202         [BZ #5736]
6203         * malloc/malloc.c: Fix typo in comment.
6205         [BZ #5627]
6206         * locale/iso-639.def: Add Shuswap.
6208 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6210         [BZ #5790]
6211         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6212         overwrite *h_errnop/*errnop values from getanswer_r in case of
6213         failure.
6215 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6217         [BZ #5818]
6218         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6219         (verify_persistent_db): Remove one unnecessary test and add a new one
6220         for bad configuration.
6221         (nscd_init): Improve error reported when persistent database cannot
6222         be reused.
6223         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6224         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6225         .suggested_module and .max_db_size and case config file says the
6226         values are zero.
6227         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6229         [BZ #5854]
6230         * nis/ypclnt.c (yp_order): Fix handling of return value of
6231         do_ypcall_tr call.
6232         Patch by Jeff Moyer <jmoyer@redhat.com>.
6234         * po/fr.po: Update from translation team.
6236 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6237             Carlos O'Donell <carlos@systemhalted.org>
6239         [BZ #5012]
6240         * FAQ.in: Describe why glibc needs to be compiled with
6241         optimization.
6243 2008-02-19  Roland McGrath  <roland@redhat.com>
6245         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6247 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6249         [BZ #5737]
6250         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6251         __USE_MISC is defined.
6253 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6255         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6256         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6257         sys/timerfd.h.
6258         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6259         timerfd_gettime, timerfd_settime.
6260         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6261         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6263 2008-02-08  Roland McGrath  <roland@redhat.com>
6265         * elf/elf.h (NT_PPC_SPE): New macro.
6267 2008-02-06  Roland McGrath  <roland@redhat.com>
6269         * Makerules ($(common-objpfx)sysd-rules):
6270         Depend on $(sysdep-makeconfigs).
6272 2008-01-31  Roland McGrath  <roland@redhat.com>
6274         [BZ #5442]
6275         * configure.in: Use -print-file-name if it yields a directory,
6276         for each of include and include-fixed.
6277         * configure: Regenerated.
6279         * Makeconfig (sysd-rules-targets): New variable.
6280         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6281         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6283 2008-01-30  Roland McGrath  <roland@redhat.com>
6285         * manual/libc.texinfo: Update back-cover text.
6287         * elf/elf.h (NT_386_TLS): New macro.
6289 2008-01-29  Roland McGrath  <roland@redhat.com>
6291         * Makeconfig (sysd-rules-patterns): New variable.
6292         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6293         (check-inhibit-asm): New canned sequence, replaces ...
6294         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6295         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6296         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6297         (CFLAGS-rtld): Variable removed.
6299 2008-01-24  Roland McGrath  <roland@redhat.com>
6301         * configure.in: Let configure fragments set base_os.
6302         * configure: Regenerated.
6304 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6306         * po/ko.po: Update from translation team.
6308 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6310         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6312 2008-01-12  Andreas Jaeger  <aj@suse.de>
6314         [BZ #5040]
6315         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6316         Add EPOLLRDHUP.
6318 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6320         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6321         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6322         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6324 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6326         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6327         * elf/dl-close.c (_dl_close): Check for it.
6328         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6329         (_dl_allocate_static_tls): Likewise.
6330         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6331         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6332         to it.
6333         * elf/tst-tls16.c: New file.
6334         * elf/tst-tlsmod16a.c: New file.
6335         * elf/tst-tlsmod16b.c: New file.
6336         * elf/Makefile: Add rules to build and run tst-tls16.
6338 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6340         [BZ #5628]
6341         * bits/shm.h: Fix comment describing shmid_ds.
6342         * sysdeps/gnu/bits/shm.h: Likewise.
6343         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6344         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6345         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6346         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6347         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6348         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6349         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6350         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6351         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6353         [BZ #5607]
6354         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6355         prototypes.
6356         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6357         additional suffixes.
6358         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6359         Add optional functions mq_timedreceive and mq_timedsend.
6360         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6361         * conform/data/pthread.h-data: Fix prototype of
6362         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6363         * conform/data/semaphore.h-data: Allow time.h definitions.
6364         * conform/data/signal.h-data: Likewise.
6365         * conform/data/stdio.h-data: getw and putw are not required in v6.
6366         * conform/data/stdlib.h-data: Change setstate prototype.
6367         * conform/data/string.h-data: Fix strerror_r prototype.
6368         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6369         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6370         Fix readlink prototype.
6371         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6372         in6addr_loopback.
6373         * inet/netinet/in.h: Cleanup namespace.
6374         * posix/regex.h: Likewise.
6375         * resolv/netdb.h: Likewise.
6376         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6377         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6378         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6379         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6380         of names of in in6_addr.
6381         (default_precedence): Likewise.
6382         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6383         NULL definition.
6385 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6387         * conform/data/fmtmsg.h-data: Add missing allows.
6388         * conform/data/ftw.h-data: Likewise.
6389         * conform/data/inttypes.h-data: Likewise.
6390         * conform/data/math.h-data: Likewise.
6391         * conform/data/signal.h-data: Likewise.
6392         * conform/data/net/if.h-data: Likewise.
6393         * conform/data/netinet/in.h-data: Likewise.
6394         * conform/data/sys/socket.h-data: Likewise.
6396         [BZ #5614]
6397         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6398         (__strtok_r): Simplify.
6399         * string/tester.c (test_strtok_r): Add test case for futile search
6400         with single-character seach string.
6402 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6404         * po/ko.po: Update from translation team.
6406 2008-01-11  Andreas Jaeger  <aj@suse.de>
6408         [BZ #5600]
6409         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6410         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6411         kernel header.
6413 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6415         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6416         native interface lookup in all the relevant places.
6418 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6419             Ulrich Drepper  <drepper@redhat.com>
6421         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6422         field.  Use sockaddr_in6 for source_addr.
6423         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6424         (match_prefix): Likewise.
6425         (get_label): Likewise.
6426         (get_precedence): Likewise.
6427         (rfc3484_sort): Change to use indirect access to results array.
6428         Adjust to use of sockaddr_in6.  Replace service_order test with
6429         simple index comparison.
6430         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6431         service_order field.  Adjust qsort_t calls.  Access sorted result
6432         array indirectly through order array.
6433         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6434         * posix/tst-rfc3484-2.c: Likewise.
6435         * posix/tst-rfc3484-3.c: Likewise.
6437 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6439         [BZ #5541]
6440         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6441         pollfd structures.
6442         Patch by André Cruz.
6444         [BZ #5545]
6445         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6446         (clnt_spcreateerror): Likewise.
6448         [BZ #5553]
6449         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6450         (public_mEMALIGn): Likewise.
6451         Patch mostly by Daniel Jacobowitz.
6453 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6455         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6456         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6457         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6458         * stdlib/tst-makecontext2.c: New test.
6460 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6462         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6463         defined.
6464         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6465         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6466         transliteration hooks and REINIT_PARAMS afterwards.
6467         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6468         status.
6469         (REINIT_PARAMS): Define.
6470         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6471         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6472         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6473         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6474         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6475         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6476         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6477         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6478         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6479         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6480         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6481         * iconvdata/tst-iconv7.c: New test.
6483 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6485         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6487 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6489         [BZ #5112]
6490         * nscd/connections.c (restart): Fix condition.
6492 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6494         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6495         __ctype_toupper_loc): Add __THROW.
6497 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6499         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6500         recognition of interface family.
6502         * posix/getconf.c: Update copyright year.
6503         * nss/getent.c: Likewise.
6504         * iconv/iconvconfig.c: Likewise.
6505         * iconv/iconv_prog.c: Likewise.
6506         * elf/ldconfig.c: Likewise.
6507         * catgets/gencat.c: Likewise.
6508         * csu/version.c: Likewise.
6509         * elf/ldd.bash.in: Likewise.
6510         * elf/sprof.c (print_version): Likewise.
6511         * locale/programs/locale.c: Likewise.
6512         * locale/programs/localedef.c: Likewise.
6513         * nscd/nscd.c (print_version): Likewise.
6514         * debug/xtrace.sh: Likewise.
6515         * malloc/memusage.sh: Likewise.
6516         * malloc/mtrace.pl: Likewise.
6517         * debug/catchsegv.sh: Likewise.
6519 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6521         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6522         second lookup.
6524 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6526         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6527         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6529 2007-12-17  Roland McGrath  <roland@redhat.com>
6531         * inet/ether_line.c (ether_line): Remove unused variable.
6533 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6535         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6536         and winp.
6537         * login/openpty.c (openpty): Likewise.
6538         * login/pty.h (openpty, forkpty): Likewise.
6539         * manual/terminal.texi (openpty, forkpty): Likewise.
6541 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6543         * malloc/malloc.c (public_cALLOc): For arenas other than
6544         main_arena, count all bytes inside the mprotect_size range of the
6545         heap as uninitialized.
6547 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6549         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6550         executable stacks.
6552         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6553         mTRIm for all of them.
6554         (mTRIm): Additionally iterate over all free blocks and use madvise
6555         to free memory for all those blocks which contain at least one
6556         memory page.
6557         * malloc/tst-trim1.c: New file.
6558         * malloc/Makefile (tests): Add tst-trim1.
6560         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6562 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6564         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6565         First cast argument to long
6566         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6567         Return long.
6568         (__vdso_clock_gettime): Likewise.
6569         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6570         return long.
6572 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6574         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6575         * locale/nl_langinfo_l.c: Real implementation, copied from
6576         nl_langinfo.c.
6577         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6579 2007-12-01  Jim Meyering  <meyering@redhat.com>
6581         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6582         that would inhibit utf8-optimization of a regexp containing line-
6583         or buffer-anchors, e.g., `^', `$'.
6585 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6587         * time/bug-getdate1.c (do_test): Don't use century values which
6588         aren't valid on 32-bit systems.
6590 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6592         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6593         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6594         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6595         __strcat_g, __strncat_g): Add __asm__.
6597 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6599         [BZ #5477]
6600         * io/fchmodat.c: Fix typo in stub_warning use.
6601         Patch by Petr Salinger.
6603 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6605         * iconvdata/hp-thai8.c: New file.
6606         * iconvdata/Makefile: Add rules for hp-thai8.c.
6607         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6608         * iconvdata/gconv-modules: Likewise.
6610         [BZ #5464]
6611         * iconvdata/hp-greek8.c: New file.
6612         * iconvdata/Makefile: Add rules for hp-greek8.c.
6613         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6614         * iconvdata/gconv-modules: Likewise.
6616         [BZ #5463]
6617         * iconvdata/hp-turkish8.c: New file.
6618         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6619         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6620         * iconvdata/gconv-modules: Likewise.
6622         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6623         (shrink_heap): ... this new function.
6624         (heap_trim): Call shrink_heap instead of grow_heap.
6626         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6627         case don't call alloc_perturb.
6629 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6631         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6632         possible.
6633         * sysdeps/unix/sysv/linux/kernel-features.h
6634         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6635         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6637 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6639         [BZ #5424]
6640         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6641         * stdio-common/Makefile (tests): Add bug22.
6642         * stdio-common/bug22.c: New file.
6644         [BZ #5451]
6645         * time/getdate.c: Fix filling in default values.
6646         * time/bug-getdate1.c: New file.
6647         * time/Makefile: Add rules to build and run bug-getdate1.
6649         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6650         * iconvdata/ebcdic-es.c: Likewise.
6651         * iconvdata/ebcdic-es-a.c: Likewise.
6652         * iconvdata/ebcdic-uk.c: Likewise.
6653         * iconvdata/iso8859-16.c: Likewise.
6654         * iconvdata/viscii.c: Likewise.
6655         * iconvdata/iso8859-9e.c: Likewise.
6656         * iconvdata/Makefile: Adjust appropriately.
6658         [BZ #5428]
6659         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6660         __need_wint_t.
6662 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6664         [BZ #5427]
6665         * iconvdata/hp-roman9.c: New file.
6666         * iconvdata/Makefile: Add rules for hp-roman9.c.
6667         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6668         * iconvdata/gconv-modules: Likewise.
6670         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6671         * iconvdata/Makefile: Adjust appropriately.
6673         [BZ #5441]
6674         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6675         structure, it's allocated with alloca.
6676         * stdio-common/Makefile (tests): Add bug21.
6677         * stdio-common/bug21.c: New file.
6679 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6681         [BZ #5452]
6682         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6683         keyword for gcc's braced-groups.
6685 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6687         [BZ #5454]
6688         * inet/ether_line.c: Strip hostname of whitespaces.
6689         * inet/Makefile (tests): Add tst-ether_line.
6690         * inet/tst-ether_line.c: New file.
6692 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6694         [BZ #5439]
6695         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6697         [BZ #5435]
6698         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6700         * stdlib/tst-setcontext.c: Catch the case where the links gets
6701         messed up and we do not reach main again.
6703         * po/ca.po: Update from translation team.
6705 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6707         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6708         * posix/regex.h (REG_ENOSYS): Likewise.
6709         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6711 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6713         * nscd/nscd.h (MAX_STACK_USE): Define.
6714         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6715         (gc): Initialize stack_used based on allocation in prune_cache.
6716         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6717         Clear array before use.
6719         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6720         memory allocation failed.
6721         * nscd/hstcache.c (cache_addhst): Likewise.
6722         * nscd/grpcache.c (cache_addgr): Likewise.
6723         * nscd/servicescache.c (cache_addserv): Likewise.
6724         * nscd/pwdcache.c (cache_addpw): Likewise.
6725         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6727 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6730         and creat system calls.
6732         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6734 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6736         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6737         Add netiucv/iucv.h.
6738         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6739         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6740         protocol.
6741         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6742         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6743         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6745 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6747         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6748         strncat): Define as macros to avoid compile errors.
6750         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6751         creat entries.
6753 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6755         [BZ #5382]
6756         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6757         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6758         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6759         overflow it.
6760         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6762         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6763         Return zero in case the thread library is not NPTL.
6765         [BZ #5375]
6766         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6767         initializing interface list.
6769         [BZ #5378]
6770         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6771         use result of nss_getgrgid_r if nothing was found.  For other
6772         error return with a failure.
6773         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6775         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6776         macro name.
6778 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6780         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6781         (get_scope): For IPv4 scope, use scopes table.
6782         (fini): Free scopes table if necessary.
6783         (free_scopelist): New function.
6784         (scopecmp): New function.
6785         (gaiconf_init): Also handle scopev4 entries.
6786         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6787         * posix/tst-rfc3484-2.c (do_test): Likewise.
6788         * posix/gai.conf: Document scopev4 defaults.
6789         * posix/Makefile (tests): Add tst-rfc3484-3.
6790         * posix/tst-rfc3484-3.c: New file.
6792         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6793         Teredo tunnels.
6794         * posix/gai.conf: Update for current default tables.
6796 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6798         * po/tr.po: Update from translation team.
6800 2007-11-18  Roland McGrath  <roland@frob.com>
6802         * manual/arith.texi (Remainder Functions): Spelling fix.
6803         From Shaun Silk <genix@mysoul.com.au>.
6805         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6807 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6809         * po/zh_CN.po: Update from translation team.
6811         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6812         Add sys/signalfd.h and sys/eventfd.h.
6814 2007-11-15  Bruno Haible  <bruno@clisp.org>
6816         [BZ #5346]
6817         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6818         union.
6819         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6820         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6821         it needs only fixed stack space. Delay the initialization of
6822         msgid_len until it is needed.
6824 2007-11-15  Andreas Jaeger  <aj@suse.de>
6826         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6827         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6829 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6831         * po/ko.po: Update from translation team.
6833 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6835         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6836         significantly.  The device type is also part of the ifinfomsg data.
6838         * po/sv.po: Update from translation team.
6839         * po/nl.po: Likewise.
6841         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6842         to wake up in 24 hours.
6844         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6846 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6848         * po/cs.po: Update from translation team.
6849         * po/pl.po: Likewise.
6851         * include/ifaddrs.h: Remove in6ai_temporary.
6852         (struct in6addrinfo): Add index element.
6853         Declare __check_native.
6854         * inet/Makefile (aux): Add check_native.
6855         * sysdeps/unix/sysv/linux/check_native.c: New file.
6856         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6857         IFA_F_TEMPORARY.  Pass back ifa_index.
6858         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6859         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6860         call __check_native if necessary.
6861         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6862         to sort addresses.  Pass information about the results.
6863         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6864         of rfc3484_sort interface.
6865         * posix/tst-rfc3484-2.c: Likewise.
6867         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6868         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6869         for _quicksort.
6870         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6871         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6872         on as third parameter to compare function and _quicksort.
6873         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6874         to the compare function.
6875         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6876         * Versions.def: Add GLIBC_2.8 for libc.
6878         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6879         * posix/tst-rfc3484-2.c: Likewise.
6881         * include/kernel-features.h: Moved to...
6882         * sysdeps/mach/hurd/kernel-features.h: ...here.
6884 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6886         * sysdeps/i386/i586/memcpy_chk.S: New file.
6887         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6888         * sysdeps/i386/i586/memset_chk.S: Likewise.
6890 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6892         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6893         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6894         list of interfaces.  Also store prefix length.
6895         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6896         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6897         prefix if source and destination address are in the same subnet.
6898         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6899         Always look for matching record in in6ai list.
6900         Correct source_addr_len value for IPv6->IPv4 converted records.
6902 2007-11-11  Roland McGrath  <roland@frob.com>
6904         * include/kernel-features.h: New file.
6906 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6908         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6909         complications for 64-bit platforms.
6911         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6912         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6913         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6914         open64_2.
6915         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6916         entries.
6917         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6918         * sysdeps/wordsize-64/alphasort.c: New file.
6919         * sysdeps/wordsize-64/alphasort64.c: New file.
6920         * sysdeps/wordsize-64/fseeko.c: New file.
6921         * sysdeps/wordsize-64/fseeko64.c: New file.
6922         * sysdeps/wordsize-64/ftello.c: New file.
6923         * sysdeps/wordsize-64/ftello64.c: New file.
6924         * sysdeps/wordsize-64/ftw.c: New file.
6925         * sysdeps/wordsize-64/ftw64.c: New file.
6926         * sysdeps/wordsize-64/iofgetpos.c: New file.
6927         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6928         * sysdeps/wordsize-64/iofopen.c: New file.
6929         * sysdeps/wordsize-64/iofopen64.c: New file.
6930         * sysdeps/wordsize-64/iofsetpos.c: New file.
6931         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6932         * sysdeps/wordsize-64/lockf.c: New file.
6933         * sysdeps/wordsize-64/lockf64.c: New file.
6934         * sysdeps/wordsize-64/mkostemp.c: New file.
6935         * sysdeps/wordsize-64/mkostemp64.c: New file.
6936         * sysdeps/wordsize-64/mkstemp.c: New file.
6937         * sysdeps/wordsize-64/mkstemp64.c: New file.
6938         * sysdeps/wordsize-64/scandir.c: New file.
6939         * sysdeps/wordsize-64/scandir64.c: New file.
6940         * sysdeps/wordsize-64/tmpfile.c: New file.
6941         * sysdeps/wordsize-64/tmpfile64.c: New file.
6942         * sysdeps/wordsize-64/versionsort.c: New file.
6943         * sysdeps/wordsize-64/versionsort64.c: New file.
6944         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6945         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6946         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6947         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6948         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6949         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6950         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6951         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6952         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6953         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6954         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6955         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6957         * crypt/sha256-crypt.c: Fix a comment.
6958         * crypt/sha512-crypt.c: Likewise.
6960 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6962         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6964 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6966         [BZ #5277]
6967         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6968         because output buffer is too small break, don't loop.
6969         * iconvdata/Makefile (tests): Add bug-iconv6.
6970         * iconvdata/bug-iconv6.c: New file.
6972 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6974         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6975         with size_t type.
6976         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6977         size_t.  Add casts where needed.
6979         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6980         old headers, don't call avc_has_perm if we don't have the
6981         permission information.
6983 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6985         * elf/rtld.c (dl_main): Use the page size to find the map start.
6987 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6989         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6990         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6992         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6993         when the lookup call failed.
6995         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6996         Add prune_cond and wakeup_time.
6997         (CACHE_PRUNE_INTERNAL): Define.
6998         Update declarations of prune_cache and setup_thread.
6999         * nscd/connections.c (dbs): Update initializers.
7000         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7001         (nscd_init): Default number of threads is now 4.
7002         (invalidate_cache): Take lock before calling prune_cache.
7003         (handle_request): If SELinux forbids the request, say so.
7004         (readylist_cond): Use static initializer.
7005         (nscd_run_prune): New function.  Used only by pruning threads.
7006         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7007         here.
7008         (fd_ready): Update nscd_run reference.
7009         (start_threads): No need to initialize readylist_cond.
7010         Start pruning threads separately.
7011         * nscd/nscd_setup_thread.c: Change return value type to int and always
7012         return 0.
7013         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7014         to int and return nonzero value if we can use the TID address hack.
7015         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7016         the database is later than the new entry's timeout, update the
7017         wakeup time and wake the cleanup thread.
7018         (prune_cache): Return seconds the next entry in the database is still
7019         valid.  Remove locking for pruning here.
7020         * nscd/nscd.conf: Document default number of threads.
7022 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7024         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7025         stack is properly aligned for the target function.
7026         Correct unwind info.
7028         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7029         when using auditing libraries.
7031 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7033         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7034         _nss_dns_getnetbyaddr2_r.
7035         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7036         extra parameter to getanswer_r.
7037         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7038         _nss_dns_getnetbyaddr2_r.
7040         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7041         gethstbynm3_r.
7042         * nscd/gethstbynm2_r.c: Remove.
7043         * nscd/gethstbynm3_r.c: New file.
7044         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7045         __gethostbyaddr_r.
7046         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7047         __gethostbyaddr_r compatibility wrapper.
7048         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7049         determining timeout of entry.
7050         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7051         __gethostbyaddr2_r.
7052         (addhstbyX): Pass reference to variable for TTL to lookup and
7053         cache_addhst.
7054         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7055         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7056         and __nss_next2.  Remove __nss_services_lookup.
7057         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7058         Add compat wrapper.
7059         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7060         __nss_next2.
7061         * nss/getXXent_r.c: Likewise.
7062         * nss/getnssent_r.c: Likewise.
7063         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7064         does not exist in module, try the optional second name.
7065         (__nss_next2): New function.
7066         (__nss_next): Now wrapper around __nss_next2.
7067         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7068         Declare __nss_next2.
7069         Adjust definition of db_lookup_function type.
7070         * nss/service-lookup.c: Define NO_COMPAT.
7071         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7072         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7073         * inet/ether_ntoh.c: Likewise.
7074         * sunrpc/netname.c: Likewise.
7075         * sunrpc/publickey.c: Likewise.
7076         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7077         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7078         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7079         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7080         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7082         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7084         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7086 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7088         [BZ #5204]
7089         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7090         * crypt/sha512c-test.c: Likewise.
7092         [BZ #5225]
7093         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7094         to keep track of end of %[ format string element.
7095         * stdio-common/Makefile (tests): Add bug20.
7096         * stdio-common/bug20.c: New file.
7098         [BZ #5222]
7099         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7100         path elements in counting mode.
7102 2007-10-27  Andreas Jaeger  <aj@suse.de>
7104         [BZ #5040]
7105         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7107         [BZ #3112]
7108         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7109         (__cleanup): Free shared library when exiting.
7110         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7111         (__cleanup): Free shared library when exiting.
7113 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7115         [BZ #2549]
7116         * math/libm-test.inc (check_float_internal): Support
7117         denormalized return.
7119 2007-10-23  Andreas Jaeger  <aj@suse.de>
7121         [BZ #5208]
7122         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7123         __LONG_LONG_PAIR to handle little endian byte order.
7124         Suggested by abhishekrai@google.com
7126 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7128         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7130 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7132         * nscd/cache.c (prune_cache): Move test for modified file outside
7133         of locking.
7135 2007-10-21  Andreas Jaeger  <aj@suse.de>
7137         * manual/texinfo.tex: Update to latest version.
7139         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7141         * manual/arith.texi (Status bit operations): Fix formatting.
7143         * manual/errno.texi (Error Messages): Fix formatting.
7145         * manual/sysinfo.texi (System Parameters): Fix formatting.
7147         * manual/libc.texinfo: Update VERSION and UPDATED.
7149 2007-10-19  Roland McGrath  <roland@redhat.com>
7151         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7153 2007-10-06  David S. Miller  <davem@davemloft.net>
7155         * configure.in: Add sparcv9v2 and sparc64v2.
7156         * scripts/config.sub: Likewise.
7157         * configure: Regenerate.
7158         * elf/elf.h (HWCAP_SPARC_N2): New.
7159         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7160         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7161         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7162         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7163         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7164         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7165         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7167 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7169         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7170         even if the poll result indicates there is data to read.
7171         Patch by Jeff Moyer <jmoyer@redhat.com>.
7173 2007-10-18  Roland McGrath  <roland@redhat.com>
7175         * elf/elf.h (NT_PPC_VMX): New macro.
7177 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7179         * version.h (VERSION): Set to 2.7.90.
7181 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7183         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7184         weak_alias.
7186 2007-10-17  Roland McGrath  <roland@frob.com>
7188         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7189         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7191 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7193         * version.h (VERSION): Bump to 2.7.
7194         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7196         [BZ #5186]
7197         * time/tzset.c (__tz_convert): Don't force testing for a change of
7198         TZ if not called from localtime.  But then also see whether the
7199         file changed, in case __use_tzfile is set.
7201         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7202         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7203         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7204         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7205         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7206         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7207         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7208         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7210 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7212         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7213         and admin selects to be able to replace the gai.conf file, lock
7214         data structures around the qsort call.
7216 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7218         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7219         new memset.
7220         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7221         too high for the improvements.  Implement bzero unconditionally for
7222         use in libc.
7224 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7225             Jakub Jelinek  <jakub@redhat.com>
7227         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7228         even when time_t is 32-bit.
7229         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7230         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7231         always set after the search.
7233 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7235         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7236         unreachable code on 32-bit machines.
7238 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7240         [BZ #5184]
7241         * time/strftime_l.c: Include stdbool.h.
7242         (my_strftime): New wrapper, old function renamed to...
7243         (__strftime_internal): ... new function.  Add tzset_called
7244         argument, pass it down to recursive calls, don't call tzset ()
7245         if already true, set to true after call to tzset ().
7247 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7249         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7250         into account when copying TZ string.
7252 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7254         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7255         num_transition rather than num_transitions - 1.
7257 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7259         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7260         PIC indirect jump.
7262         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7263         a local label rather than HIDDEN_JUMPTARGET.
7265 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7267         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7268         (init_cacheinfo): Initialize it.
7269         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7270         Always define bzero.
7271         Remove non-glibc code.
7272         * sysdeps/x86_64/bzero.S: Make an empty file.
7274 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7276         * sysdeps/x86_64/cacheinfo.c
7277         (__x86_64_preferred_memory_instruction): New.
7278         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7280         * sysdeps/x86_64/memset.S: Rewrite.
7282 2007-10-15  Roland McGrath  <roland@redhat.com>
7284         * po/libc.pot: Regenerated.
7286 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7288         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7289         pointers.
7291         [BZ #3425]
7292         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7293         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7294         address record to T_A/T_AAAA requests.
7296 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7298         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7300         * posix/glob.c: Add some branch prediction throughout.
7302         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7303         read from nscd.
7305         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7306         service_order.
7307         (rfc3484_sort): Make sure that even if qsort doesn't support
7308         stable sorting out sorting here is stable by comparing service_order.
7309         (getaddrinfo): Initialize service_order.
7310         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7311         service_order field to sorting structure.
7312         * posix/tst-rfc3484-2.c (do_test): Likewise.
7314         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7315         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7316         __tzset_parse_tz and updating of daylight, timezone, tzname into
7317         update_vars.
7318         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7319         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7320         happens in __tz_compute.
7321         * time/tzfile.c (__tzfile_read): Also read TZ string.
7322         (find_transition): Fold into __tzfile_compute.
7323         (__tzfile_compute): For times beyond the last transition try to
7324         use the TZ string.
7325         * timezone/tst-timezone.c: Information in daylight and tzname does
7326         change for Asia/Tokyo timezone with more concrete information.
7327         Remove the test.
7329         * include/stdio.h: Add libc_hidden_proto for ftello.
7330         * libio/ftello.c: Add libc_hidden_def.
7332         [BZ #1140]
7333         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7334         on the specified time and not the last entries in the file.  Move
7335         code to determine tzname[] to...
7336         (find_transition): ...here.  Add ugly guess for times before the
7337         first transition.
7339 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7341         [BZ #3195]
7342         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7343         no entry.
7344         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7345         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7346         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7347         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7349         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7350         read mechanism when there are no group members and avoid no-op
7351         read syscall in this case.
7353         [BZ #3242]
7354         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7355         (__readall): If reading failed due to EAGAIN error wait a bit
7356         and possibly try again.
7357         (__readvall): Likewise.
7359 2007-10-13  Bruno Haible  <bruno@clisp.org>
7361         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7362         when we cannot recode the message.
7364 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7366         [BZ #4359]
7367         * libio/__freading.c (__freading): Don't return true for
7368         write-only streams.  For read/write streams, check whether we
7369         performed a read operation already.
7370         * libio/Makefile (tests): Add tst-ext2.
7371         * libio/tst-ext2.c: New file.
7373 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7375         * locale/programs/repertoire.c (repertoire_read): Always free
7376         memory for repertoire file name [Coverity CID 270].
7378         * elf/cache.c (save_aux_cache): Free memory allocated for
7379         temporary file name [Coverity CID 267].
7381 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7383         * misc/Makefile (headers): Add bits/error.h.
7385 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7387         * posix/fnmatch_loop.c: Take rule index returned as part of
7388         findidx return value into account when accessing weights.
7389         * posix/regcomp.c: Likewise.
7390         * posix/regexec.c: Likewise.
7392         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7393         (skip_to): Fix problems with parameter of elifdef/elifndef.
7395 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7397         * iconv/gconv_simple.c: Add some branch prediction.
7399 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7401         * locale/programs/ld-collate.c (collate_read): If ignore_content
7402         and nowtok is tok_define, eat any tok_eol tokens.
7404 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7406         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7407         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7409         * inet/netinet/in.h: Don't include bits/socket.h.
7410         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7411         macro.
7412         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7414 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7416         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7417         and tok_elifndef.
7418         * locale/programs/locfile-kw.gperf: Likewise.
7419         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7421 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7423         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7424         (__find_specwc): Change into __extern_always_inline function.
7425         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7426         (__parse_one_specmb): Remove ps argument.
7427         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7428         Adjust __find_specmb and __parse_one_specmb callers.
7429         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7430         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7431         Removed.
7432         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7433         caller.
7435 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7437         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7438         with some Pentium Ds.
7440 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7442         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7443         __read not read.
7444         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7445         __write not write.
7447 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7449         [BZ #181]
7450         * locale/C-time.c: Set week_1stday data to 19971201.
7451         * locale/programs/ld-time.c (time_finish): Default for
7452         first_workday is Monday.
7454         [BZ #2633]
7455         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7457         [BZ #5103]
7458         * posix/glob.c (glob): Recognize patterns starting \/.
7459         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7460         (main): Add test for pattern starting \/.
7462         * misc/error.h: Use __const instead of const.
7463         * misc/bits/error.h: Likewise.
7465 2007-10-07  Andreas Jaeger  <aj@suse.de>
7467         * include/bits/error.h: New file.
7469         * misc/bits/error.h (error_at_line): Fix prototype.
7471 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7473         [BZ #3924]
7474         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7475         more little bugs in creating the stack frame when pltexit has to
7476         be called.
7478         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7479         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7481         [BZ #4407]
7482         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7483         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7484         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7485         * math/libm-test.inc: Add test for this case.
7487         [BZ #5010]
7488         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7489         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7490         map service succeeded.
7491         (svc_is_mapped): New function.
7492         (svc_unregister): Use it before trying to unmap service.
7494 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7496         * timezone/zic.c: Update from tzcode2007h.
7498         [BZ #5063]
7499         * timezone/africa: Update from tzdata2007h.
7500         * timezone/antarctica: Likewise.
7501         * timezone/asia: Likewise.
7502         * timezone/australasia: Likewise.
7503         * timezone/europe: Likewise.
7504         * timezone/leapseconds: Likewise.
7505         * timezone/northamerica: Likewise.
7506         * timezone/southamerica: Likewise.
7507         * timzeone/zone.tab: Likewise.
7509         [BZ #5104]
7510         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7512         [BZ #5113]
7513         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7514         avoid warning with -Wconversion.
7515         (__strndup): Likewise.
7516         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7518         [BZ #5112]
7519         * nscd/connections.c (restart): Don't resync if database is
7520         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7522         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7523         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7525         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7526         evetnfd_read, eventfd_write.
7527         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7528         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7529         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7530         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7531         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7532         eventfd_write for GLIBC_2.7.
7534         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7535         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7536         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7537         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7539 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7541         * stdlib/msort.c: Include stdint.h.
7542         (struct msort_param): New type.
7543         (msort_with_tmp): Use struct msort_param pointer for unchanging
7544         parameters.  Add optimized handling for several common sizes
7545         and indirect sorting mode.
7546         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7547         sorting.
7548         Suggested by Belazougui Djamel .
7550         * stdlib/Makefile (tests): Add tst-qsort2.
7551         * stdlib/tst-qsort2.c: New test.
7553 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7555         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7556         for dup2 in case another thread races with the current one.  Retry
7557         in this case.
7559         * misc/error.h: Remove support for use outside of libc.  We have to
7560         include <features.h> now.  Include <bits/error.h> if possible.
7561         * misc/bits/error.h: New file.
7563 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7565         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7566         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7567         __extern_always_inline functions unconditionally, drop macros.
7569         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7570         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7571         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7573         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7574         add __artificial__ attribute.
7576 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7578         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7579         backward to forward direction.
7581         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7583         [BZ #645]
7584         * locale/programs/ld-collate.c (collate_finish): Compare against last
7585         used section which is known to have rules defined.
7586         (collate_read): After order_start, correctly record order of sections
7587         and queue sections up.
7589 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7591         [BZ #5071]
7592         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7593         the same number of pages.
7594         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7596         * locale/programs/ld-collate.c (collate_read): After initial copy
7597         statement, continue in state 0.
7599         * include/stdio_ext.h (__fsetlocking): Define as macro.
7601 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7603         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7604         of section order.
7606         * po/pt_BR.po: Fix typo.
7608 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7610         * iconvdata/Makefile (modules): Add ISO8859-9E.
7611         (distribute): Add iso8859-9e.c.
7612         (gen-8bit-gap-modules): Add iso8859-9e.
7613         * iconvdata/iso8859-9e.c: New file.
7614         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7615         * iconvdata/TESTS: Likewise.
7616         * iconvdata/tst-tables.sh: Likewise.
7618         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7620         * locale/iso-639.def: Add several new entries.
7622 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7624         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7625         void * pointers instead of struct link_map **.
7626         (_dl_scope_free): Change argument type to void *.
7627         * include/link.h (struct link_map): Change type of l_reldeps
7628         to struct link_map_reldeps, move l_reldepsact into that
7629         struct too.
7630         * elf/dl-deps.c: Include atomic.h.
7631         (_dl_map_object_deps): Only change l->l_initfini when it is
7632         fully populated, use _dl_scope_free for freeing it.  Optimize
7633         removal of libs from reldeps by using l_reserved flag, when
7634         some removal is needed, allocate a new list instead of
7635         reallocating and free the old with _dl_scope_free.  Adjust
7636         for l_reldeps and l_reldepsact changes.
7637         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7638         searching in l_initfini and l_reldeps without holding dl_load_lock.
7639         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7640         l_reldepsact changes.
7641         * elf/dl-close.c (_dl_close_worker): Likewise.
7642         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7644 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7646         * iconvdata/Makefile (modules): Add KOI8-RU.
7647         (distribute): Add koi8-ru.c.
7648         (gen-8bit-gap-modules): Add koi8-ru.
7649         * iconvdata/koi8-ru.c: New file.
7650         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7651         * iconvdata/TESTS: Likewise.
7652         * iconvdata/tst-tables.sh: Likewise.
7654         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7656 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7658         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7659         with __warning__/__error__ attributes.
7660         (__warnattr): Define.
7661         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7662         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7663         __warnattr.
7664         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7665         of __*_chk if compile time detectable overflow is found.
7666         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7667         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7668         with __warnattr.
7669         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7670         instead of __*_chk if compile time detectable overflow is found.
7671         (__gets_alias): Rename to...
7672         (__gets_warn): ... this.  Add __warnattr.
7673         (gets): Call __gets_warn instead of __gets_alias.
7674         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7675         aliases with __warnattr.
7676         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7677         time detectable overflow is found.
7678         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7679         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7680         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7681         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7682         __getdomainname_chk_warn): New aliases with __warnattr.
7683         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7684         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7685         __*_chk_warn instead of __*_chk if compile time detectable overflow
7686         is found.
7687         (__getgroups_chk): Rename argument to __listlen from listlen.
7688         (__getwd_alias): Rename to...
7689         (__getwd_warn): ... this.  Add __warnattr.
7690         (getwd): Call __getwd_warn instead of __getwd_alias.
7691         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7692         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7693         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7694         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7695         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7696         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7697         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7698         compile time detectable overflow is found.
7699         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7700         to use __*_chk or not.
7701         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7702         in comparisons which function should be called and in __*_chk*
7703         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7704         detectable overflow is found.
7705         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7706         __*_chk argument.
7707         * debug/tst-chk1.c (do_test): Add a few more tests.
7709 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7711         [BZ #5058]
7712         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7713         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7714         (_nl_unload_domain): Finalize conversions_lock.
7715         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7716         handling table of known conversions.
7718 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7720         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7721         close_not_cancel_no_status instead of close.
7723 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7725         [BZ #5028]
7726         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7727         nrules != 0 for multibyte chars.
7729 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7731         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7732         Provide better error message in case the type is unknown.
7734         [BZ #4963]
7735         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7736         * string/stratcliff.c: Make usable to test wide char functions.
7737         * wcsmbs/wcsatcliff.c: New file.
7738         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7740         [BZ #4972]
7741         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7742         (distribute): Add mac-centraleurope.c.
7743         (gen-8bit-gap-modules): Add mac-centraleurope.
7744         * iconvdata/mac-centraleurope.c: New file.
7745         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7746         * iconvdata/TESTS: Likewise.
7747         * iconvdata/tst-tables.sh: Likewise.
7749         [BZ #5043]
7750         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7752 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7754         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7755         from __x86_64_core_cache_size_half.
7756         (init_cacheinfo): Compute shared cache size for AMD processors with
7757         shared L3 correctly.
7758         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7759         name change.
7760         Patch in large parts by Evandro Menezes.
7762 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7764         * elf/dl-lookup.c (add_dependency): Handle failing memory
7765         allocation for dependency list.  Remove unnecessary check.
7767         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7768         open/close when determining source addresses.
7770         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7771         sha512-crypt, and sha512.
7772         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7773         (distribute): Add sha256.h and sha512.h.
7774         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7775         and call the appropriate code.
7776         * crypt/sha256-crypt.c: New file.
7777         * crypt/sha256.c: New file.
7778         * crypt/sha256.h: New file.
7779         * crypt/sha256c-test.c: New file.
7780         * crypt/sha256test.c: New file.
7781         * crypt/sha512-crypt.c: New file.
7782         * crypt/sha512.c: New file.
7783         * crypt/sha512.h: New file.
7784         * crypt/sha512c-test.c: New file.
7785         * crypt/sha512test.c: New file.
7787 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7789         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7790         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7791         __syslog_chk.
7793 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7795         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7796         %as in fscanf format strings.
7798         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7799         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7800         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7801         Likewise.
7802         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7803         Likewise.
7805         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7806         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7807         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7808         * elf/dl-sym.c (do_sym): Likewise.
7809         * include/link.h (struct link_map): Add l_serial field.
7810         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7811         * elf/dl-lookup.c (add_dependency): Add flags argument.
7812         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7813         flags, use THREAD_GSCOPE_RESET_FLAG before and
7814         THREAD_GSCOPE_SET_FLAG after
7815         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7816         Don't dereference map until it has been found on some list.
7817         If map->l_serial changed, return -1.
7819 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7821         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7822         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7823         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7824         libc_hidden_proto.
7825         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7826         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7827         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7828         add libc_hidden_proto.
7829         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7830         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7831         conformance requested.
7832         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7833         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7834         conformance requested.
7835         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7836         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7837         conformance requested.
7838         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7839         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7840         ISO C99 or POSIX conformance requested.
7841         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7842         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7843         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7844         and __isoc99_vsscanf@@GLIBC_2.7.
7845         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7846         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7847         (tests): Add scanf14.
7848         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7849         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7850         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7851         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7852         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7853         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7854         from using internal headers.
7855         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7856         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7857         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7858         and __isoc99_vswscanf@@GLIBC_2.7.
7859         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7860         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7861         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7862         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7863         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7864         * stdio-common/isoc99_scanf.c: New file.
7865         * stdio-common/isoc99_vsscanf.c: New file.
7866         * stdio-common/isoc99_vscanf.c: New file.
7867         * stdio-common/isoc99_vfscanf.c: New file.
7868         * stdio-common/isoc99_fscanf.c: New file.
7869         * stdio-common/isoc99_sscanf.c: New file.
7870         * wcsmbs/isoc99_fwscanf.c: New file.
7871         * wcsmbs/isoc99_vswscanf.c: New file.
7872         * wcsmbs/isoc99_swscanf.c: New file.
7873         * wcsmbs/isoc99_wscanf.c: New file.
7874         * wcsmbs/isoc99_vwscanf.c: New file.
7875         * wcsmbs/isoc99_vfwscanf.c: New file.
7876         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7877         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7878         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7879         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7880         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7881         * stdio-common/scanf14.c: New test.
7882         * stdio-common/scanf15.c: New test.
7883         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7884         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7885         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7886         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7887         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7888         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7889         __nldbl___isoc99_scanf@@GLIBC_2.7,
7890         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7891         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7892         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7893         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7894         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7895         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7896         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7897         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7898         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7899         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7900         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7901         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7902         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7903         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7904         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7905         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7906         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7907         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7908         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7909         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7910         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7911         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7912         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7913         functions.
7914         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7915         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7916         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7917         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7918         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7919         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7920         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7921         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7922         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7923         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7924         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7925         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7927         * stdio-common/Makefile (tests): Add scanf13.
7928         (scanf13-ENV): New.
7929         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7930         m modifier followed by l.
7931         (STRING_ARG): Add width argument.
7932         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7933         <case L_('C')>: Handle %mlc and %mC.
7934         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7935         arguments.
7936         * stdio-common/scanf13.c: New test.
7938         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7939         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7941 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7943         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7944         type and __THROW marker of splice, vmsplice, and tee.
7945         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7946         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7947         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7948         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7949         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7950         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7951         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7952         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7953         as cancellation points.
7955 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7957         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7958         parse more than three parts of the version number.
7960 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7962         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7963         modifier.  Patch by Jakub Jelinek.
7965 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7967         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7968         call_fallocate in misc subdir.
7969         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7970         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7971         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7972         instead of __fallocate64.
7973         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7975 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7977         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7978         * rt/Makefile (headers): Add bits/mqueue2.h.
7979         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7980         optimizing with GCC and __va_arg_pack_len is defined.
7981         * rt/bits/mqueue2.h: New file.
7982         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7983         (mq_open): New strong_alias.
7984         (__mq_open_2): New function.
7985         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7986         (mq_open): New strong_alias.
7987         (__mq_open_2): New function.
7988         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7989         * Versions.def (librt): Add GLIBC_2.7 version.
7990         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7991         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7993         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7994         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7995         is defined rather than when not C++.
7996         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7997         __openat64_alias): New redirects.
7998         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7999         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8000         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8001         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8002         functions instead of function-like macros.
8004 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8006         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8007         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8008         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8010 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8012         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8013         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8015 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8017         * inet/tst-network.c: Increment ERRORS for failing tests.
8019 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8021         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8022         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8023         implement as __extern_always_inline function.
8024         (vsyslog): Define as __extern_always_inline function unconditionally.
8025         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8026         When __va_arg_pack is defined, implement as __extern_always_inline
8027         functions.
8028         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8029         __extern_always_inline functions unconditionally.
8030         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8031         bits/stdio2.h will be included.
8032         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8033         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8034         implement as __extern_always_inline functions.
8035         (vswprintf, vwprintf, vfwprintf): Define as
8036         __extern_always_inline functions unconditionally.
8037         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8039 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8041         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8042         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8043         attribute.
8044         * include/features.h (__USE_EXTERN_INLINES): Define only when
8045         __extern_inline is defined.
8046         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8047         is defined instead of when not __cplusplus.
8048         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8049         is defined instead of when not __cplusplus.
8050         * socket/sys/socket.h: Include bits/socket2.h when
8051         __extern_always_inline is defined instead of when not __cplusplus.
8052         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8053         is defined instead of when not __cplusplus.
8054         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8055         is defined instead of when not __cplusplus.
8056         * string/string.h: Include bits/string3.h when __extern_always_inline
8057         is defined instead of when not __cplusplus.
8058         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8059         is defined instead of when not __cplusplus.
8060         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8061         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8062         is not defined.
8063         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8064         defined __extern_always_inline instead of !defined __cplusplus.
8065         * libio/bits/stdio-ldbl.h: Likewise.
8066         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8067         * misc/bits/syslog.h (syslog): Don't define for C++.
8068         (vsyslog): Use __extern_always_inline function for C++ instead of
8069         a macro.
8070         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8071         whenever that macro is defined.
8072         (vprintf): Don't provide the inline for C++.
8073         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8074         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8075         define the macros for C++.
8076         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8077         __extern_always_inline functions for C++.
8078         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8079         stat64, lstat64, fstat64, fstatat64): Don't define if not
8080         __USE_EXTERN_INLINES.
8081         * wcsmbs/bits/wchar2.h: Fix #error message.
8082         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8083         (vswprintf, vwprintf, vfwprintf): Define using
8084         __extern_always_inline functions for C++.
8085         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8086         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8087         strncpy, strcat, strncat): Define as __extern_always_inline
8088         functions instead of macros for C++.
8089         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8090         defined __extern_inline.
8091         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8092         to __extern_inline whenever that macro is defined.
8093         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8094         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8095         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8096         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8097         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8098         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8099         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8100         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8101         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8102         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8103         prototypes.  Only provide __extern_inline routines if
8104         __USE_EXTERN_INLINES.
8105         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8106         tests.
8107         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8108         For now avoid some *printf tests in C++.  Skip all testing
8109         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8110         is not.
8111         * debug/tst-chk4.cc: New file.
8112         * debug/tst-chk5.cc: New file.
8113         * debug/tst-chk6.cc: New file.
8114         * debug/tst-lfschk4.cc: New file.
8115         * debug/tst-lfschk5.cc: New file.
8116         * debug/tst-lfschk6.cc: New file.
8117         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8118         prototypes in C++.
8119         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8120         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8121         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8123 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8125         * po/cs.po: Update from translation team.
8127 2007-09-11  Roland McGrath  <roland@redhat.com>
8129         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8130         compiling.
8132 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8134         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8136 2007-09-05  Roland McGrath  <roland@redhat.com>
8138         * manual/signal.texi (Signaling Another Process): Typo fix.
8139         From Karl Berry <karl@freefriends.org>.
8141 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8143         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8144         zero if not defined.
8145         (make_request): Recognize optimistic addresses and treat them like
8146         deprecated addresses.
8147         Reported by Neil Horman <nhorman@redhat.com>.
8149 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8151         * nscd/connections.c (send_ro_fd): Also transfer file size.
8152         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8153         file size don't call fstat.
8155         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8156         ahead and map the file.  This should always be correct and we can
8157         catch problems later.
8159 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8161         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8162         prototypes.
8163         (__fread_alias, __fread_unlocked_alias): New aliases.
8164         (fread): New extern inline.
8165         (fread_unlocked): Likewise.  Undef macro before definition of
8166         the inline function.
8167         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8168         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8169         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8170         and __fread_unlocked_chk@@GLIBC_2.7.
8171         * debug/fread_chk.c: New file.
8172         * debug/fread_u_chk.c: New file.
8173         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8175 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8177         * sysdeps/unix/sysv/linux/syscalls.list
8178         (personality): Change caller to EXTRA.
8180 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8182         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8183         to keep gcc quiet.
8184         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8186         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8187         NDEBUG is defined.
8189         * Makerules: Use -p option with mkdir.
8191         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8192         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8193         (_xdr_directory_obj): Likewise.
8194         (xdr_entry_obj): Likewise.
8195         (xdr_group_obj): Likewise.
8196         (xdr_link_obj): Likewise.
8197         (xdr_table_obj): Likewise.
8198         (_xdr_nis_result): Likewise.
8199         (_xdr_ns_request): Likewise.
8200         (_xdr_ib_request): Likewise.
8201         (_xdr_nis_taglist): Likewise.
8202         (xdr_cback_data): Likewise.
8203         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8204         (xdr_ypresp_maplist): Likewise.
8206         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8208         * posix/regex_internal.h: Prevent some declarations and definitions
8209         to be seen when used in tests.
8211         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8212         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8214         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8216         * config.make.in (datarootdir): Add to shut up configure.
8218         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8219         associativity for fully-associative caches.
8221         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8222         requests.  Fill on more associativity values for L2.
8223         Patch mostly by Evandro Menezes.
8225 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8227         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8228         (_libc_vdso_platform_setup): Avoid using exported variable by using
8229         alias.
8231         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8233         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8234         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8235         defined.
8237 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8239         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8240         align stack for call if pltexit is to be used.
8242         [BZ #3924]
8243         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8244         align for function call in case pltexit has to be called later.
8246         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8247         implicit atomic operation when storing function pointer.
8248         (_dl_runtime_profile): Likewise.
8250 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8252         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8253         NIS_NOTFOUND.
8255 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8257         [BZ #4566]
8258         * string/strtok.c: Fix typo in comment.
8260         [BZ #4582]
8261         * debug/segfault.c: Fix typos in comments.
8263         [BZ #4588]
8264         * stdio-common/tempnam.c: Fix comment, it is not checked that
8265         TMPDIR points to a writable directory.
8267         [BZ #4726]
8268         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8269         memory allocated for the name server address.
8271         [BZ #4946]
8272         * nscd/connections.c (handle_request): Using sendfile always
8273         requires that mmap is used for the database.
8274         Patch by Petr Baudis <pasky@suse.cz>.
8276         [BZ #4905]
8277         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8278         suddenly has two or more addresses, ignore it and remove the old
8279         entry.
8281         [BZ #4814]
8282         * resolv/res_hconf.c: Prepare for compiling outside libc.
8283         * nscd/res_hconf.c: New file.
8284         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8285         the new file.
8286         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8287         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8289         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8291         [BZ #4925]
8292         * debug/pcprofiledump.c: Turn on internationalization by calling
8293         setlocale.  Patch mostly by Benno Schulenberg.
8295         [BZ #4936]
8296         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8297         the state.
8298         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8299         * iconvdata/bug-iconv5.c: New file.
8301 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8303         [BZ #4896]
8304         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8305         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8306         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8307         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8308         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8309         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8310         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8311         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8313 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8315         [BZ #4937]
8316         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8317         lookup loop.  Suggested by John Reiser.
8319 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8321         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8323 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8325         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8326         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8327         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8328         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8329         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8330         to...
8331         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8333 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8335         * po/nl.po: Update from translation team.
8337 2007-08-16  Andreas Jaeger  <aj@suse.de>
8339         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8340         Reported by Peter Festner <peter.festner@ewetel.net>.
8342 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8344         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8346 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8348         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8349         to check for undefined symbols.
8351         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8352         If the syscall fails, set errno to the actual returned error number
8353         rather than EINVAL.
8354         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8355         arguments are incorrect, set errno to EINVAL, if the syscall
8356         fails, set errno to the actual returned error number.
8358         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8359         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8361         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8362         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8363         file.
8364         (ASI_PNF, ASI_BLK_P): Don't define.
8365         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8366         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8367         file.
8368         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8369         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8370         file.
8372 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8374         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8375         FE_UNDERFLOW on Niagara CPUs.
8377         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8378         exceptions.
8380 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8382         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8383         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8384         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8385         flush should be used or not inside of the function.
8386         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8388         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8389         __thread_start): Use HIDDEN_JUMPTARGET.
8390         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8391         __thread_start): Likewise.
8392         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8394         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8395         Add libc_hidden_proto.
8396         (STRTOF): Add libc_hidden_proto.
8397         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8398         (strtold_l, wcstold_l): Use them as second argument for
8399         long_double_symbol.
8401 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8403         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8405 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8407         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8409 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8411         * po/bg.po: New file.  From the translation team.
8413 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8415         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8416         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8417         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8418         when each feature was introduced.
8420         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8421         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8422         (CHECK_HASH): New macro.
8423         (PREPARE_VERSION): Use it.
8425         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8426         prototype if not __ASSUME_PSELECT.
8427         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8428         prototype if not __ASSUME_PPOLL.
8430         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8432         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8433         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8434         is defined.
8436 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8438         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8439         (_libc_vdso_platform_setup): If vDSO is not available point
8440         __vdso_gettimeofday to the vsyscall.
8441         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8442         __vdso_gettimeofday instead of vsyscall.
8444 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8446         * nscd/servicescache.c: Include kernel-features.h.
8447         * nscd/gai.c: Likewise.
8448         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8449         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8450         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8451         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8452         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8453         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8454         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8455         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8456         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8458 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8460         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8461         and _dl_get_origin defines anymore.
8463         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8464         Build fix for systems which might lack POSIX timer support.
8466         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8467         (_libc_vdso_platform_setup): Mangle function pointers before storing
8468         them.
8469         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8470         Demangle vdso pointer before use.
8471         (INTERNAL_VSYSCALL): Likewise.
8473         * elf/cache.c (primes): Mark as const.
8474         Noted by Roland McGrath.
8476 2007-08-01  Andreas Jaeger  <aj@suse.de>
8477             Jakub Jelinek  <jakub@redhat.com>
8479         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8480         (options): Add option.
8481         (parse_opt): Handle option.
8482         (manual_link): Adjust process_file caller.  Call implicit_soname.
8483         (search_dir): Formatting.  Use and populate auxiliary cache.
8484         (main): Load and save auxiliary cache.
8485         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8486         stat64 from fstat64 to caller.
8487         (implicit_soname): New function.
8488         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8489         leave *soname as NULL.
8490         * elf/cache.c: Include libgen.h.
8491         (print_entry, print_cache, compare, save_cache, add_to_cache):
8492         Formatting and cleanups.
8493         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8494         aux_cache_file): New structures.
8495         (AUX_CACHEMAGIC): Define.
8496         (primes): New array.
8497         (aux_hash_size, aux_hash): New variables.
8498         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8499         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8500         load_aux_cache, save_aux_cache): New functions.
8501         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8502         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8503         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8504         (process_file): Adjust prototype.
8506 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8508         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8509         with __need_size_t.
8511 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8513         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8514         r_found_version structure as second parameter.
8515         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8516         (_dl_vdso_vsym): Change type of second parameter accordingly.
8517         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8518         (_libc_vdso_platform_setup): Adjust.
8519         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8520         (_libc_vdso_platform_setup): Likewise.
8522         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8523         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8524         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8525         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8526         * csu/libc-start.c: Pretty printing.
8527         Use VDSO_SETUP if defined.
8528         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8529         and let generic code call into _libc_vdso_platform_setup.
8530         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8531         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8532         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8533         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8534         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8535         for GLIBC_PRIVATE.
8536         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8537         (sysdep_rountines): Add dl-vdso.
8539         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8540         of routines.
8542         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8543         attribute_hidden to __vdso_gettimeofday prototype.
8545 2007-08-12  Roland McGrath  <roland@redhat.com>
8547         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8548         From: Karl Berry <karl@freefriends.org>.
8550 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8552         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8553         an atime update for the files we read.
8555 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8557         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8559         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8560         instead of mkstemp.
8562         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8563         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8564         * misc/mkostemp.c: New file.
8565         * misc/mkostemp64.c: New file.
8566         * stdlib/stdlib.h: Declare the new functions.
8567         * sysdeps/posix/tempname.c: Add new parameter which is added to
8568         the flags for open.  Remove __GT_BIGFILE handling.
8569         * stdio-common/tempname.c: Likewise.
8570         * include/stdio.h: Adjust __gen_tempname prototype.
8571         Renumber __GT_* constants.
8572         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8573         * misc/mkdtemp.c: Likewise.
8574         * misc/mkstemp.c: Likewise.
8575         * misc/mkstemp64.c: Likewise.
8576         * misc/mktemp.c: Likewise.
8577         * stdio-common/tempnam.c: Likewise.
8578         * stdio-common/tmpfile.c: Likewise.
8579         * stdio-common/tmpfile64.c: Likewise.
8580         * stdio-common/tmpnam.c: Likewise.
8581         * stdio-common/tmpnam_r.c: Likewise.
8583 2007-08-10  Roland McGrath  <roland@frob.com>
8585         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8586         New macros.
8587         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8588         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8590 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8592         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8593         possible.
8594         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8595         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8596         * nss/nss_files/files-have_o_cloexec.c: New file.
8598         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8599         available.
8601 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8603         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8604         ___new_wcstold_l): New weak aliases.
8605         (strtold_l, wcstold_l): Use them as second argument for
8606         long_double_symbol.
8608 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8610         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8611         register in test for error.
8613         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8614         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8616         * po/sv.po: Update from translation team.
8618 2007-08-06  Roland McGrath  <roland@redhat.com>
8620         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8621         Remove __strto*_l inlines.
8622         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8623         * stdlib/strtod.c: Add libc_hidden_def.
8624         * stdlib/strtod_l.c: Likewise.
8625         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8626         for __new_strtold and __new_wcstold.
8627         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8628         __STRTOF, STRTOF.
8629         * stdlib/strtol.c: Add libc_hidden_def.
8630         * stdlib/strtol_l.c: Likewise.
8631         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8632         strtoq.
8634         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8636         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8637         * scripts/data/localplt-generic.data: ... here.
8638         * elf/Makefile (check-data): Get generic file if no other.
8639         ($(objpfx)check-localplt.out): Make target unconditional.
8641         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8642         Use ElfW(Nhdr).
8644 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8646         * po/zh_CN.po: Updated translation from translation team.
8648 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8651         Don't use CGOTSETUP and CGOTRESTORE macros.
8653 2007-08-04  Roland McGrath  <roland@redhat.com>
8655         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8657 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8659         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8660         __extension__ around the whole statement expression.
8662 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8664         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8665         elements during initialization.
8667         * po/pl.po: Updated translation from translation team.
8668         * po/tr.po: Likewise.
8669         * po/nl.po: Likewise.
8671 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8673         * rt/aio.h: Add __nonnull attributes.
8675 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8677         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8678         * stdlib/Makefile (tests): Add tst-strtod5.
8679         (tst-strtod5-ENV): New.
8680         * stdlib/tst-strtod5.c: New file.
8682         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8683         failed.
8684         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8685         on failure.
8687         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8688         allocated.
8690 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8692         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8693         numbers.
8695 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8697         * io/Makefile (aux): Add have_o_cloexec.
8698         * include/fcntl.h: Declare __have_o_cloexec.
8699         * io/have_o_cloexec.c: New file.
8700         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8701         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8702         fcntl call if not necessary.
8703         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8704         of local variable.
8706         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8707         Avoid memset, add explicit initialization.
8708         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8709         to the end and change into zero-sized array.
8710         Move lock member to fill a hole on 64-bit platforms.
8712         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8713         inline functions.
8714         * include/stdlib.h: Add __strto*_internal prototypes here.
8715         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8716         inline functions.
8717         * include/wchar.h: Add __wcsto*_internal prototypes.
8718         * sysdeps/generic/inttypes.h: No need to protect the declaration
8719         of the __strto*_internal and __wcsto*_internal members here.
8721         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8723 2007-08-02  Roland McGrath  <roland@redhat.com>
8725         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8726         $(inst_bindir)/getconf if possible.
8728         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8729         (generated): Add it.
8730         ($(inst_libexecdir)/getconf): Use it.
8732 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8734         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8735         /proc is faster and sufficient.  /sys is still needed for
8736         __get_nprocs_conf.
8738 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8740         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8741         syscall as __fallocate64.
8742         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8743         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8745 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8747         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8748         value.
8750         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8751         if off_t is different rank from size_t.
8753         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8754         uw_frame_state_for): Avoid type punning warnings.
8755         * sysdeps/generic/unwind-dw2-fde-glibc.c
8756         (_Unwind_IteratePhdrCallback): Likewise.
8757         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8758         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8759         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8760         pointers.
8762 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8764         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8765         total processors using sysfs.
8766         (__get_nprocs): Use sysfs to determine which processors are online.
8768 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8770         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8771         syscall arguments count.
8773         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8775 2007-07-30  Roland McGrath  <roland@redhat.com>
8777         * manual/libc.texinfo: Update copyrights, formatting magic, and
8778         @dircategory.  From Karl Berry <karl@freefriends.org>.
8780 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8782         [BZ #4860]
8783         * io/Makefile (headers): Add bits/fcntl2.h.
8785         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8786         using gcc builtin.
8787         (__CPU_EQUAL_S): Likewise.
8789         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8790         (tests): Add tst-cpuset.
8791         * posix/sched_cpualloc.c: New file.
8792         * posix/sched_cpufree.c: New file.
8793         * posix/tst-cpuset.c: New file.
8794         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8795         GLIBC_2.7.
8796         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8797         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8798         macros.  Define CPU_*_S macros.
8800 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8802         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8803         entry.
8805         [BZ #4858]
8806         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8807         #.0g and value rounded to 1.0.
8808         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8810 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8812         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8813         for int_frac_digits and frac_digits.
8815         * login/logout.c (logout): Avoid aliasing violation.
8816         * login/logwtmp.c (logwtmp): Likewise.
8818         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8820         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8821         to avoid warning.
8822         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8823         warning.
8824         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8825         warning.
8826         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8827         to avoid warnings.
8829         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8830         void **.
8831         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8833         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8834         char * to avoid warning.
8835         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8837         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8839         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8840         allocate_arrays): Cast second argument to charmap_find_symbol
8841         to char * to avoid warnings.
8843         * locale/programs/repertoire.c (repertoire_new_char): Change
8844         from_nr, to_nr and cnt to unsigned long, adjust printf format
8845         string.
8847         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8848         Cast second argument to new_element to char * to avoid warnings.
8850         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8852         * intl/gettextP.h (struct loaded_domain): Change plural to const
8853         struct expression *.
8854         * intl/plural-eval.c (plural_eval): Change first argument to
8855         const struct expression *.
8856         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8857         argument to const struct expression **.
8858         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8859         prototypes.
8860         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8861         in call to __gettext_free_exp.
8863         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8864         unitialized wstring/wpattern var warnings.
8866         * posix/runtests.c (struct a_test): Make data field const char *.
8868         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8869         vars if not LDBL_MANT_DIG >= 106.
8871         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8873         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8874         __find_specmb to avoid warning.
8876         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8878         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8879         to avoid warnings.
8881         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8882         initializer.
8884         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8885         tv var when it will be actually used.
8887         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8888         to avoid warnings.
8890         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8891         char array resp. pointer.
8892         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8893         char array.
8894         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8895         to const unsigned char **.
8896         (ucs4_to_cns11643): Change second argument to unsigned char *.
8897         * iconvdata/euc-tw.c (BODY): Change endp type to
8898         const unsigned char *.
8899         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8900         to unsigned char *.
8901         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8902         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8903         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8904         types to unsigned char pointers/arrays instead of char.
8905         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8906         to unsigned char *.
8907         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8908         * iconvdata/jis0212.h: Include assert.h.
8909         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8910         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8911         of trying to handle that.
8912         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8913         shut up a warning.
8914         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8915         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8916         two dimensional const unsigned char arrays.
8917         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8918         Initialize endp to inptr to shut up a warning.
8920 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8922         [BZ #4772]
8923         * time/strptime_l.c (__strptime_internal): Silently ignore
8924         strftime modifiers and field width in recursive calls.
8926         * include/time.h (enum ptime_locale_status): Remove.
8927         (__strptime_internal): Remove decided and era_cnt arguments,
8928         add statep argument.
8929         * time/strptime_l.c (__strptime_internal): Remove decided
8930         and era_cnt arguments, add statep argument.  Don't recompute
8931         any fields in recursive calls, only update caller's tm
8932         and state, if recursive call fails, don't change tm nor
8933         any state.
8934         (get_alt_number): Adjust.
8935         (recursive): Adjust caller.
8936         (strptime): Likewise.
8937         * time/strptime.c (strptime): Likewise.
8939 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8941         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8942         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8943         if from and to charsets are the same.
8944         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8945         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8946         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8948 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8950         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8951         Don't define wint_t when __need_mbstate_t unless it
8952         is necessary.
8953         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8954         in the typedef if possible.
8955         * wctype/wctype.h (wint_t): Define by including
8956         wchar.h with __need_wint_t instead of including stddef.h
8957         with __need_wint_t and as fallback definining it ourselves.
8958         * iconv/gconv.h (__need_wint_t): Define before including
8959         wchar.h.
8960         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8961         or _GLIBCPP_USE_WCHAR_T.
8962         (__need_wchar_t): Don't define
8963         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8964         (__need_wint_t): Don't define before including stddef.h,
8965         define before including wchar.h only if _LIBC or
8966         _GLIBCPP_USE_WCHAR_T.
8967         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8968         * sysdeps/mach/hurd/_G_config.h: Likewise.
8969         * sysdeps/generic/_G_config.h: Likewise.
8970         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8971         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8972         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8973         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8975 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8977         * sysdeps/posix/posix_fallocate64.c: Undefine
8978         __posix_fallocate64_l64 before alias handling.
8979         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8980         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8981         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8982         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8984         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8986 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8988         * locale/programs/ld-collate.c (atwc): New variable.
8989         (add_to_tablewc): New toplevel function, moved from collate_output.
8990         (collate_output): Remove add_to_tablewc nested function.
8992         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8993         (name_insert): New function.
8994         (write_output): Remove hash_table and hash_size vars and name_insert
8995         nested function.
8997 2007-07-24  Roland McGrath  <roland@redhat.com>
8999         * Makerules (install-others-programs-nosubdir): New target.
9000         (install-no-libc.a-nosubdir): Depend on it.
9002         * iconv/Makefile (install-others-programs): Set this instead of
9003         install-others.
9004         * login/Makefile (install-others-programs): Likewise.
9005         * posix/Makefile (install-others-programs): Likewise.
9007         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9008         dependencies.
9010 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9012         * io/Makefile (tests): Add tst-posix_fallocate.
9013         * io/tst-posix_fallocate.c: New file.
9015         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9016         __ASSUME_FALLOCATE.
9018 2007-07-22  Roland McGrath  <roland@frob.com>
9020         * hurd/getdport.c: Add missing copyright year update.
9022         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9023         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9025 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9027         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9029         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9030         O_CLOEXEC is needed.
9031         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9032         Avoid additional fcntl to set O_CLOEXEC if not needed.
9033         * nis/nss_compat/compat-initgroups.c: Likewise.
9034         * nis/nss_compat/compat-pwd.c: Likewise.
9035         * nis/nss_compat/compat-spwd.c: Likewise.
9037 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9039         [BZ #3665]
9040         * manual/errno.texi: Change ECANCELED value to 119.
9042         [BZ #4610]
9043         * mach/lock-intern.h: Include <sys/cdefs.h>.
9045         [BZ #4178]
9046         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9047         reading A.
9049         [BZ #4126]
9050         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9051         to __sigsuspend.
9053         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9055 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9057         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9058         `__ASSEMBLER__'.
9059         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9061 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9063         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9064         descriptor received from nscd.
9066         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9068         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9069         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9070         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9071         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9072         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9073         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9075 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9077         [BZ #4816]
9078         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9080         [BZ #4813]
9081         * login/forkpty.c (forkpty): Close master and slave fds on
9082         fork failure.  Patch by
9083         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9085 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9087         * include/features.h (__USE_ISOC95): New define.
9088         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9089         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9090         for -std=iso9899:199409.
9091         * CONFORMANCE: Remove comments about unsupported AMD1.
9093 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9095         * sysdeps/ia64/sched_cpucount.c: New file.
9096         * sysdeps/powerpc/sched_cpucount.c: New file.
9098         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9099         __BEGIN_DECLS/__END_DECLS around the prototype.
9100         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9101         pointer to const cpu_set_t.
9103         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9104         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9105         __need_size_t and include stddef.h.
9106         * sysvipc/sys/msg.h: Likewise.
9107         * posix/sched.h: Likewise.
9108         * hurd/hurd/signal.h (__need_size_t): Define.
9110         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9111         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9112         no longer defines wint_t or wchar_t.
9114         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9115         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9116         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9117         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9118         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9119         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9120         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9121         * debug/printf_chk.c (__printf_chk): Likewise.
9122         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9123         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9125         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9126         Define.
9128         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9129         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9131 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9133         [BZ #4792]
9134         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9135         * malloc/malloc.h (realloc): Likewise.
9137         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9138         if one of proc_file_chain streams has that fileno.
9139         * stdio-common/Makefile (tests): Add tst-popen2.
9140         * stdio-common/tst-popen2.c: New test.
9142 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9144         * elf/ldconfig.c: Allow GPLv2 or any later version.
9145         * elf/readlib.c: Likewise.
9146         * elf/chroot_canon.c: Likewise.
9147         * elf/cache.c: Likewise.
9148         * nscd/mem.c: Likewise.
9149         * nscd/getpwuid_r.c: Likewise.
9150         * nscd/grpcache.c: Likewise.
9151         * nscd/aicache.c: Likewise.
9152         * nscd/getsrvbynm_r.c: Likewise.
9153         * nscd/nscd.c: Likewise.
9154         * nscd/servicescache.c: Likewise.
9155         * nscd/getsrvbypt_r.c: Likewise.
9156         * nscd/initgrcache.c: Likewise.
9157         * nscd/gethstbyad_r.c: Likewise.
9158         * nscd/gethstbynm2_r.c: Likewise.
9159         * nscd/getgrnam_r.c: Likewise.
9160         * nscd/nscd_setup_thread.c: Likewise.
9161         * nscd/getpwnam_r.c: Likewise.
9162         * nscd/gai.c: Likewise.
9163         * nscd/connections.c: Likewise.
9164         * nscd/dbg_log.c: Likewise.
9165         * nscd/cache.c: Likewise.
9166         * nscd/hstcache.c: Likewise.
9167         * nscd/nscd_conf.c: Likewise.
9168         * nscd/getgrgid_r.c: Likewise.
9169         * nscd/pwdcache.c: Likewise.
9170         * catgets/gencat.c: Likewise.
9171         * locale/programs/linereader.h: Likewise.
9172         * locale/programs/locarchive.c: Likewise.
9173         * locale/programs/ld-paper.c: Likewise.
9174         * locale/programs/locfile-kw.h: Likewise.
9175         * locale/programs/ld-address.c: Likewise.
9176         * locale/programs/xmalloc.c: Likewise.
9177         * locale/programs/ld-time.c: Likewise.
9178         * locale/programs/localedef.c: Likewise.
9179         * locale/programs/simple-hash.c: Likewise.
9180         * locale/programs/xstrdup.c: Likewise.
9181         * locale/programs/ld-numeric.c: Likewise.
9182         * locale/programs/locfile-kw.gperf: Likewise.
9183         * locale/programs/ld-collate.c: Likewise.
9184         * locale/programs/charmap-kw.gperf: Likewise.
9185         * locale/programs/charmap.h: Likewise.
9186         * locale/programs/charmap-kw.h: Likewise.
9187         * locale/programs/config.h: Likewise.
9188         * locale/programs/locfile.c: Likewise.
9189         * locale/programs/ld-ctype.c: Likewise.
9190         * locale/programs/charmap.c: Likewise.
9191         * locale/programs/ld-messages.c: Likewise.
9192         * locale/programs/repertoire.h: Likewise.
9193         * locale/programs/locale.c: Likewise.
9194         * locale/programs/ld-name.c: Likewise.
9195         * locale/programs/linereader.c: Likewise.
9196         * locale/programs/locfile.h: Likewise.
9197         * locale/programs/3level.h: Likewise.
9198         * locale/programs/ld-monetary.c: Likewise.
9199         * locale/programs/ld-measurement.c: Likewise.
9200         * locale/programs/charmap-dir.c: Likewise.
9201         * locale/programs/ld-identification.c: Likewise.
9202         * locale/programs/localedef.h: Likewise.
9203         * locale/programs/charmap-dir.h: Likewise.
9204         * locale/programs/repertoire.c: Likewise.
9205         * locale/programs/simple-hash.h: Likewise.
9206         * locale/programs/ld-telephone.c: Likewise.
9207         * locale/programs/locale-spec.c: Likewise.
9208         * locale/programs/locfile-token.h: Likewise.
9209         * posix/getconf.c: Likewise.
9210         * iconv/dummy-repertoire.c: Likewise.
9211         * iconv/iconv_charmap.c: Likewise.
9212         * iconv/iconvconfig.c: Likewise.
9213         * iconv/iconv_prog.c: Likewise.
9214         * malloc/memusagestat.c: Likewise.
9215         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9217 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9219         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9220         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9221         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9222         check for the first argument.
9224 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9226         [BZ #4775]
9227         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9228         (__tgmath_real_type): Fix if expr is const int or other const
9229         qualified integral type.
9230         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9231         expressions and handle const qualified arguments.
9232         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9233         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9234         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9235         statement expressions.
9236         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9237         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9238         (__TGMATH_UNARY_IMAG): Define.
9239         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9240         * math/Makefile (tests): Add test-tgmath2.
9241         (CFLAGS-test-tgmath2.c): Add.
9242         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9243         count_cfloat, count_cldouble): New variables.
9244         (NCCALLS): Define.
9245         (main): Check number of complex calls as well.
9246         (F(compile_test)): Add complex tests and tests with const qualified
9247         arguments.
9248         (y, z, ccount): Define.
9249         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9250         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9251         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9252         F(cproj)): New functions.
9253         * math/test-tgmath2.c: New test.
9255 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9257         [BZ #4776]
9258         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9259         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9260         instead output ".".
9261         * dlfcn/Makefile (distribute): Add glreflib3.c.
9262         (module-names): Add glreflib3.
9263         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9264         glreflib1.so.
9265         (LDFLAGS_glreflib3.so): New.
9266         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9267         glreflib1.so.
9268         * dlfcn/glreflib3.c: New file.
9270         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9271         returned -1, return NULL.
9272         * intl/explodename.c (_nl_explode_name): Return -1 if
9273         _nl_normalize_codeset failed.
9275 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9277         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9278         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9279         and avoid branch misspredicts for > 31 bytes memset case.
9280         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9281         Remove toc ref to __cache_line_size.
9283         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9284         to get ISA-V2.0 branch hints.
9285         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9286         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9287         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9288         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9289         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9290         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9291         Remove toc ref to __cache_line_size.
9293         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9294         Include math_ldbl_opt.h.
9296 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9298         [BZ #4773]
9299         * time/strptime_l.c (__strptime_internal): Implement greedy
9300         matching of weekday and month names.
9302 2007-07-09  Roland McGrath  <roland@redhat.com>
9304         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9305         (ELF_NOTE_ABI): Use it.
9306         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9308 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9310         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9311         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9313 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9315         [BZ #4745]
9316         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9317         in loop to look for conversion specifier to avoid testing of
9318         wrong errno value.
9319         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9320         * stdio-common/bug18.c: New file.
9321         * stdio-common/bug18a.c: New file.
9322         * stdio-common/bug19.c: New file.
9323         * stdio-common/bug19a.c: New file.
9325 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9327         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9328         running awk script.
9330 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9332         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9333         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9334         Return NULL if mmap failed instead of asserting it does not.
9335         (calloc): Check for integer overflow.
9337         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9338         than LONG_MAX / 10.
9340 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9342         [BZ #4702]
9343         * nis/nss-default.c: Include errno.h.
9344         (init): Preserve errno.
9346 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9348         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9350 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9352         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9354 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9356         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9358 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9360         * sysdeps/s390/dl-procinfo.c: New file.
9361         * sysdeps/s390/dl-procinfo.h: New file.
9362         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9364 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9366         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9367         in PT_NOTE segments with multiple notes.
9368         * elf/readelflib.c (process_elf_file): Likewise.
9370 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9372         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9373         ISO C compliant.
9375 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9377         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9379 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9381         * include/link.h: Don't include rtld-lowlevel.h.
9382         (struct link_map): Remove l_scope_lock.
9383         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9384         (_dl_scope_free_list): New field (variable) in _rtld_global.
9385         (DL_LOOKUP_SCOPE_LOCK): Remove.
9386         (_dl_scope_free): New prototype.
9387         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9388         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9389         (_dl_profile_fixup): Likewise.
9390         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9391         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9392         THREAD_GSCOPE_RESET_FLAG around it.
9393         * elf/dl-close.c (_dl_close_worker): Don't use
9394         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9395         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9396         scopes were queued or if l_scope_mem has been abandoned.
9397         * elf/dl-open.c (_dl_scope_free): New function.
9398         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9399         * elf/dl-support.c (_dl_scope_free_list): New variable.
9400         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9401         Remove DL_LOOKUP_SCOPE_LOCK handling.
9402         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9403         handling.
9404         * elf/dl-object.c (_dl_new_object): Don't use
9405         __rtld_mrlock_initialize.
9407 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9409         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9410         to fill in holes
9411         (rtld_global_ro): Likewise.
9413 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9415         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9416         Move PT_LOAD checking to...
9417         (_dl_addr_inside_object): ... here, new function.
9418         * elf/dl-sym.c (do_sym): If not l_contiguous,
9419         call _dl_addr_inside_object.
9420         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9421         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9422         * elf/dl-open.c (dl_open_worker): Likewise.
9423         (_dl_addr_inside_object): New function if IS_IN_rtld.
9424         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9425         holes are present or are PROT_NONE protected.
9426         * include/link.h (struct link_map): Add l_contiguous field.
9427         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9429 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9430             Tomas Janousek  <tjanouse@redhat.com>
9431             Ulrich Drepper  <drepper@redhat.com>
9433         [BZ #4647]
9434         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9435         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9436         socket.
9437         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9438         unused member a bitmap.
9439         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9440         servers are configured.
9442 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9444         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9446 2007-06-17  Andreas Schwab  <schwab@suse.de>
9448         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9450 2007-06-16  Andreas Jaeger  <aj@suse.de>
9452         [BZ #4125]
9453         * sysdeps/unix/sysv/linux/sys/ptrace.h
9454         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9455         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9456         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9457         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9458         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9459         Define.
9460         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9461         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9462         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9463         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9465 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9467         [BZ #4599]
9468         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9469         determining whether there are IPv4/IPv6 addresses, ignore loopback
9470         addresses.
9472 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9474         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9475         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9476         as the return type.  Change type of "r" variable to CMPtype.
9477         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9478         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9479         * soft-fp/gedf2.c (__gedf2): Likewise.
9480         * soft-fp/gesf2.c (__gesf2): Likewise.
9481         * soft-fp/getf2.c (__getf2): Likewise.
9482         * soft-fp/ledf2.c (__ledf2): Likewise.
9483         * soft-fp/lesf2.c (__lesf2): Likewise.
9484         * soft-fp/letf2.c (__letf2): Likewise.
9485         * soft-fp/unorddf2 (__unorddf2): Likewise.
9486         * soft-fp/unordsf2 (__unordsf2): Likewise.
9487         * soft-fp/unordtf2 (__unordtf2): Likewise.
9489 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9491         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9492         make sure gcc doesn't mess around with this.
9494 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9496         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9498 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9500         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9501         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9502         at most once per _dl_close_worker.
9504 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9506         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9507         __sched_cpucount as const.
9508         * posix/sched_cpucount.c: Adjust.
9510         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9511         instruction for counting bits.
9512         * sysdeps/x86_64/sched_cpucount.c: New file.
9514 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9516         * configure.in: Avoid variable named BASH.
9517         * config.make.in: Likewise.
9518         Patch in part by Mike Frysinger.
9520 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9522         [BZ #4586]
9523         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9524         pseudo-zeros as zero.
9525         * sysdeps/x86_64/ldbl2mpn.c: New file.
9526         * sysdeps/ia64/ldbl2mpn.c: New file.
9528 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9530         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9531         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9532         Remove unreachable code at the end.
9534 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9536         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9537         ldbl-128ibm in comment.
9538         (fpclassifyl): Correct classification of denormals.
9539         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9540         return value for MIN denormal. Rewrite using long double math too
9541         correctly handle denormals and canonicalize the results.
9543 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9545         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9546         (__mpn_construct_long_double): Fix conversion where result ought
9547         to be smaller than __LDBL_MIN__, or the low double should be
9548         denormal.  Fix decision where to negate low double - honor round
9549         to even rules.
9550         * stdio-common/tst-sprintf2.c: Include string.h.
9551         (COMPARE_LDBL): Define.
9552         (TEST): Also test whether a string hexadecimal float representation
9553         can be parsed back to the number.
9554         (main): Add a couple of further tests.
9556 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9558         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9559         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9560         is non-zero, but smaller than 2 * __DBL_MIN__.
9561         * stdio-common/tst-sprintf2.c: New test.
9562         * stdio-common/Makefile (tests): Add tst-sprintf2.
9564         * math/test-misc.c (main): Don't run last batch of tests with
9565         IBM long double format.
9567 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9569         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9570         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9571         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9572         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9573         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9574         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9575         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9576         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9577         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9578         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9581         New file.
9582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9583         New file.
9584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9585         New file.
9586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9587         New file.
9588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9589         New file.
9590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9592         New file.
9593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9594         New file.
9595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9596         New file.
9597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9598         New file.
9599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9600         New file.
9602 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9604         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9605         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9606         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9607         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9608         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9609         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9610         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9611         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9613 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9615         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9616         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9617         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9618         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9619         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9620         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9621         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9622         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9624 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9626         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9627         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9628         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9629         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9631 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9633         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9634         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9636 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9638         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9639         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9640         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9641         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9643 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9645         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9646         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9648 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9650         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9651         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9653         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9654         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9655         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9656         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9658 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9660         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9661         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9662         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9663         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9665 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9667         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9668         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9669         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9670         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9671         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9672         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9674 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9676         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9677         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9678         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9679         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9681 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9683         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9684         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9685         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9686         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9687         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9688         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9689         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9690         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9691         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9692         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9693         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9694         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9695         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9696         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9697         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9698         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9700 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9702         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9703         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9705 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9707         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9708         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9710 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9712         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9713         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9714         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9715         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9716         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9717         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9718         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9719         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9720         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9721         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9723 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9725         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9727 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9729         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9730         branch miss-predicts. Ensure that cache line crossing does not impact
9731         dispatch grouping.
9733 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9735         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9736         "../../powerpc32/power4/memcopy.h".
9737         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9738         "../../powerpc32/power4/wordcopy.c".
9740 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9742         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9743         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9744         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9745         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9746         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9747         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9749 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9751         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9753 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9755         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9756         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9757         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9758         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9759         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9760         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9761         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9762         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9764 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9766         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9768 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9770         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9771         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9772         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9773         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9774         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9775         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9776         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9778 2007-05-29  Roland McGrath  <roland@redhat.com>
9780         * po/Makefile (po-sed-cmd): New variable.
9781         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9783 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9785         * crypt/md5-crypt.c: Fix comment.
9787         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9788         of crashing.  When this is the case or if the reply is malformed,
9789         don't try to close the new file descriptor since it does not
9790         exist.
9791         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9793 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9795         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9796         if __NR_utimensat is not defined.
9798 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9800         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9802 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9804         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9805         (open): Fix comment typos.  Don't call __open_2 if flags
9806         is a compile time constant without O_CREAT.
9807         (__open64_2): Add nonnull attribute.
9808         (open64): Fix comment typos.  Don't call __open64_2 if flags
9809         is a compile time constant without O_CREAT.
9810         (__openat_2): Add nonnull attribute, fix nonnull attribute
9811         on redirect.
9812         (openat): Fix comment typos.  Don't call __openat_2 if flags
9813         is a compile time constant without O_CREAT.
9814         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9815         on redirect.
9816         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9817         is a compile time constant without O_CREAT.
9819 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9821         * Makerules (sysd-rules): Define PTW for ptw-* files.
9822         * Versions: Define GLIBC_2.7 for libc.
9823         * include/stdio.h: Declare __fortify_fail.
9824         * debug/fortify_fail.c: New file.
9825         * debug/Makefile (routines): Add fortify_fail.
9826         * debug/chk_fail.c: Use __fortify_fail.
9827         * debug/stack_chk_fail.c: Likewise.
9828         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9829         __openat64_2 for GLIBC_2.7.
9830         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9831         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9832         and fails if necessary.
9833         * io/open64.c: Likewise.
9834         * io/openat.c: Likewise.
9835         * io/openat64.c: Likewise.
9836         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9837         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9838         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9839         * io/bits/fcntl2.h: New file.
9840         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9841         __openat64_2.
9842         * include/bits/fcntl2.h: New file.
9843         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9844         Add open_2.
9845         * sysdeps/unix/sysv/linux/open_2.c: New file.
9847 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9849         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9850         as second parameter to handle_intel.
9852         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9853         the entry.
9855         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9856         handling to ...
9857         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9858         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9859         cacheinfo.
9860         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9861         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9862         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9864         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9866 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9868         [BZ #4525]
9869         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9870         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9871         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9873         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9875         [BZ #4514]
9876         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9877         reinitialize workend at the start of each do_positional format spec
9878         loop, free workstart before do_positional loops.
9879         (printf_unknown): Fix size of work_buffer.
9880         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9882         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9883         (public_sET_STATe): If ms->version < 3, put all chunks into
9884         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9885         chunks.
9887         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9888         * malloc/hooks.c: Likewise.
9889         * malloc/arena.c: Likewise.
9890         * malloc/malloc.c (do_check_malloc_state): Don't assert
9891         n_mmaps is not greater than n_mmaps_max.  This removes the need
9892         for the previous change.
9894         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9895         2007-05-07 commit.
9897 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9899         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9900         Define for kernel >= 2.6.22.
9902 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9904         * elf/dl-close.c (_dl_close_worker): When removing object from
9905         global scope, wait for all lookups to finish afterwards.
9906         * elf/dl-open.c (add_to_global): When global scope array must
9907         grow, allocate a new one and free old array only after all
9908         lookups finish.
9909         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9910         (_dl_lookup_symbol_x): Likewise.
9911         * elf/dl-support.c: Define _dl_wait_lookup_done.
9912         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9913         _dl_wait_lookup_done.
9915         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9916         not overlapping with arena.
9918         * malloc/mcheck.c (reallochook): If size==0, free the block.
9920         * rt/tst-shm.c: Use fstat64 instead of fstat.
9922         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9923         __NR_sync_file_range is not defined.
9925 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9927         Dummy files to prevent stub versions from being used.
9928         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9929         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9930         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9931         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9933         * version.h (VERSION): Set to 2.6.90.
9935 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9937         * version.h (VERSION): Define to 2.6.
9938         * include/features.h (__GLIBC_MINOR__): Define to 6.
9940         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9942         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9943         sizes.
9945 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9947         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9948         number of mmaps.  n_mmaps_max is the target.
9949         * malloc/hooks.c: Likewise.
9950         * malloc/arena.c: Likewise.
9952 2007-05-12  Andreas Jaeger  <aj@suse.de>
9954         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9955         getpid.
9957 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9959         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9960         adding new variables.
9962         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9963         optimize.  Completely extend global scope array before making the
9964         new entries visible.
9966 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9968         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9969         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9970         tst-getcpu.
9972         * include/link.h: Move l_version and l_nversion members around to
9973         fill gaps.
9975         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9977         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9978         (__sched_setaffinity_new): If syscall was successful and
9979         RESET_VGETCPU_CACHE is defined, use it before returning.
9980         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9982         * io/sys/stat.h: Make sure struct timespec is defined for
9983         __USE_ATFILE.
9985         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9986         UTIME_OMIT.
9987         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9988         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9989         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9990         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9991         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9992         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9993         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9994         * io/sys/stat.h: Declare utimensat, futimens.
9995         * io/utimensat.c: New file.
9996         * io/futimens.c: New file.
9997         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9998         * sysdeps/unix/sysv/linux/futimens.c: New file.
9999         * io/Makefile (routines): Add utimensat, futimens.
10000         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10001         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10002         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10003         available.
10005         * include/sys/cdefs.h: Redefine __nonnull so that test for
10006         incorrect parameters in the libc code itself are not omitted.
10008 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10010         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10011         exception in addition to inexact when asked to raise only FE_INEXACT.
10013         [BZ #3427]
10014         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10015         in *envp.
10017 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10019         [BZ #4403]
10020         * string/strfry.c (strfry): Make result more random.
10022 2007-05-07  Richard Henderson  <rth@redhat.com>
10024         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10025         if __NO_LONG_DOUBLE_MATH.
10026         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10027         available in the compiler, add .arch directive to the assembly.
10029 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10031         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10032         compat_symbol to GLIBC_2_1.
10033         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10034         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10035         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10036         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10037         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10038         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10039         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10040         libc, not libm.
10041         (__isnanl): New compat_symbol.
10043 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10044             Jakub Jelinek  <jakub@redhat.com>
10046         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10047         (new_heap): Initialize mprotect_size.
10048         (grow_heap): When growing, only mprotect from mprotect_size till
10049         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10050         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10052 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10053             Peter Bergner  <bergner@us.ibm.com>
10055         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10056         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10057         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10058         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10059         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10060         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10061         Call __fe_mask_env() if all FP exceptions disabled.
10062         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10063         from old FPSCR to new fenv to propagate DFP rounding modes.
10064         Call __fe_mask_env() if FP exceptions previously enabled.
10065         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10066         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10067         transitioning from all exceptions disabled to any exception enabled
10068         or visa versa.
10069         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10070         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10071         when transitioning from all exceptions disabled to any exception
10072         enabled or visa versa.
10073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10080 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10082         [BZ #4465]
10083         * posix/unistd.h: Remove __THROW from fdatasync.
10085 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10087         [BZ #4465]
10088         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10090 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10092         * stdio-common/vfprintf.c (process_string_arg): Optimize
10093         ridiculous precision in wide char code printing multi-byte string.
10094         Reported by Jim Meyering <jim@meyering.net>.
10096         [BZ #4131]
10097         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10098         boundaries to work around systems with overlapping binary loading.
10099         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10101 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10103         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10104         __mbsnrtowcs after last change.
10106         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10107         (get_ident): Likewise.
10109 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10111         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10112         with setting the sticky bit.
10113         * math/test-misc.c (main): Add more truncation tests.
10115 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10117         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10118         double in the function declaration.
10119         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10120         double in the function declaration.
10121         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10122         float in the function declaration.
10123         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10124         float in the function declaration.
10126         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10127         denormal operands.  Do not generate FP_EX_DENORM exception.
10128         (FP_UNPACK_RAW_EP): Ditto.
10129         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10130         undefined _FP_UNPACK_RAW_E.
10131         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10132         undefined _FP_UNPACK_RAW_EP.
10133         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10134         undefined _FP_PACK_RAW_E.
10135         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10136         undefined _FP_PACK_RAW_EP.
10138         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10139         _FP_FRAC_COPY_2.
10140         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10141         _FP_FRAC_COPY_4.
10143 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10144             Jakub Jelinek  <jakub@redhat.com>
10146         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10147         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10148         this case.
10149         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10151 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10153         * math/test-misc.c (main): Add tests for rounding long double
10154         values close to smallest double denormalized value to double.
10156 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10158         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10159         condition for truncating to 0.  Set sticky bit for such
10160         truncation.
10162 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10164         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10165         fixed length array for ignore.
10167 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10169         [BZ #4438]
10170         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10171         stack for large precisions.
10172         * stdio-common/test-vfprintf.c (main): Add test for large
10173         precision.
10175 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10177         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10178         for exponent 0.
10179         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10181         [BZ #4439]
10182         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10183         account in the size check.
10184         * resolv/tst-inet_ntop.c: New test.
10185         * resolv/Makefile (tests): Add tst-inet_ntop.
10187 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10188             Jakub Jelinek  <jakub@redhat.com>
10190         [BZ #4349]
10191         * malloc/malloc.c: Keep separate list for first blocks on the bin
10192         lists with a given size.  This helps skipping over list elements
10193         we know won't fit in two places.
10194         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10196 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10198         [BZ #4102]
10199         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10200         label to Teredo tunnel addresses 2001://32.
10202 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10204         * locale/programs/ld-collate.c (collate_read): Allow order_start
10205         after copy.
10207         * locale/programs/ld-collate.c (collate_read): Fix printing of
10208         error message.
10210         [BZ #3213]
10211         * locale/C-translit.h.in: Add entry for U2044.
10213         [BZ #4342]
10214         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10215         hexa-decimal floats without exponent.
10216         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10218 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10220         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10221         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10222         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10223         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10224         GLIBC_2.6.
10225         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10226         Add sched_getcpu.
10228 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10230         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10231         of 0 after the out_fail label.
10233 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10235         [BZ #4406]
10236         * iconv/gconv_charset.h (strip): Allow ':'.
10237         * iconv/iconv_open.c (iconv_open): Adjust comment.
10239 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10241         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10242         version.
10244 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10246         [BZ #4381]
10247         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10248         alignment of buffer and tmp_buffer.
10249         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10250         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10251         alignment of buffer.
10252         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10253         bigger than INT_MAX.
10254         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10255         h_errnop arguments.  Fail if buflen is too small.
10256         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10258 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10260         [BZ #4405]
10261         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10262         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10264 2007-04-22  Roland McGrath  <roland@redhat.com>
10266         * elf/elf.h (NT_PRXFPREG): New macro.
10268 2007-04-19  Andreas Jaeger  <aj@suse.de>
10270         [BZ #3905]
10271         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10272         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10273         Added.
10275 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10277         * include/sys/mman.h: Mark madvise hidden.
10278         * misc/madvise.c: Add libc_hidden_def.
10280 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10282         * nis/nis_domain_of.c (__nis_domain_of): New function.
10283         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10284         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10285         * nis/nis_call.c (rec_dirsearch): Likewise.
10286         (first_shoot): Likewise.  Remove search_parent_first argument.
10287         (struct nis_server_cache): Rename search_parent_first field
10288         to search_parent.
10289         (nis_server_cache_search, nis_server_cache_add): Rename
10290         search_parent_first argument to search_parent.
10291         (__nisfind_server): Likewise.  If search_parent, call
10292         __nis_domain_of.
10294 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10296         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10298 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10300         [BZ #4368]
10301         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10303 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10305         [BZ #4364]
10306         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10308 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10310         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10311         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10312         current number of locales in SUPPORTED.
10313         (create_archive): Initialize serial.
10314         (enlarge_archive): Preserve aliases rather than duplicating
10315         their locrecs.
10317 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10319         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10320         after _IO_un_link, not before it.
10322         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10323         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10324         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10326 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10328         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10329         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10330         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10331         Remove __THROW.
10332         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10333         _IO_file_xsgetn_maybe_mmap): Likewise.
10334         * libio/oldfileops.c (old_do_write): Likewise.
10335         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10336         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10337         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10338         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10339         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10340         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10341         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10342         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10343         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10344         _IO_file_underflow, _IO_file_underflow_mmap,
10345         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10346         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10347         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10348         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10349         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10350         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10351         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10352         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10353         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10354         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10355         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10356         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10357         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10358         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10359         _IO_adjust_column_internal, _IO_default_uflow_internal,
10360         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10361         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10362         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10363         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10364         _IO_file_close_it_internal, _IO_file_underflow_internal,
10365         _IO_file_overflow_internal, _IO_file_attach_internal,
10366         _IO_file_fopen_internal, _IO_file_sync_internal,
10367         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10368         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10369         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10370         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10371         _IO_seekpos_unlocked): Likewise.
10372         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10373         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10375 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10377         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10378         argument in xmalloc size computation.
10380 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10382         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10383         math_opt_barrier and math_force_eval macros.
10385 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10387         [BZ #3306]
10388         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10389         * sysdeps/i386/fpu/math_private.h: New file.
10390         * sysdeps/x86_64/fpu/math_private.h: New file.
10391         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10392         math_force_eval macros.  Use "+m" constraint on asm rather than
10393         "=m" and "m".
10394         * math/s_nextafter.c (__nextafter): Likewise.
10395         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10396         Likewise.
10397         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10398         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10399         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10400         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10401         math_opt_barrier and math_force_eval macros.
10402         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10403         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10404         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10405         (__nexttoward): Use math_opt_barrier and
10406         math_force_eval macros.  Use "+m" constraint on asm rather than
10407         "=m" and "m".  Only use asm to force double result if
10408         FLT_EVAL_METHOD is 2.
10409         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10410         (__nexttowardf): Use math_opt_barrier and
10411         math_force_eval macros.  Use "+m" constraint on asm rather than
10412         "=m" and "m".  Only use asm to force double result if
10413         FLT_EVAL_METHOD is not 0.
10414         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10415         (__nexttowardf): Use math_opt_barrier and
10416         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10417         x to float using asm.
10418         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10419         (__nldbl_nexttowardf): Use math_opt_barrier and
10420         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10421         x to float using asm.
10422         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10423         (__nexttowardf): Use math_opt_barrier and math_force_eval
10424         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10425         * math/bug-nextafter.c (zero, inf): New variables.
10426         (main): Add new tests.
10427         * math/bug-nexttoward.c (zero, inf): New variables.
10428         (main): Add new tests.
10430 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10432         [BZ #3427]
10433         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10434         exceptions both in SW and MXCSR.
10435         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10436         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10437         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10438         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10439         in MXCSR if SSE is available.
10440         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10441         and ldsodefs.h.
10442         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10443         Fix comment typo.
10444         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10445         Return 0 rather than 1.
10446         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10447         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10448         * math/test-fenv.c (feholdexcept_tests): New function.
10449         (main): Call it.
10451 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10453         [BZ #3427]
10454         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10455         in SW.
10457 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10459         [BZ #4344]
10460         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10461         Reported by David Anderson <davea42@earthlink.net>.
10463 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10465         * posix/sys/wait.h: Remove unnecessary forward declaration.
10467 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10469         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10470         with obj->do_servers after first_shoot.
10472 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10474         * posix/Makefile (routines): Add sched_cpucount.
10475         (tests): Add tst-cpucount.
10476         * posix/sched_cpucount.c: New file.
10477         * posix/tst-cpucount.c: New file.
10478         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10479         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10480         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10481         * posix/sched.h: Define CPU_COUNT.
10483 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10485         * posix/fnmatch.c (STRUCT): Define.
10486         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10487         * posix/fnmatch_loop.c (struct STRUCT): New type.
10488         (FCT): Add ends argument.  If ends != NULL and normal * is
10489         seen in the pattern, store current pattern and string pointers
10490         and return.  Adjust recursive calls.
10491         (EXT): Adjust FCT callers.
10492         (STRUCT): Undef at the end of the file.
10493         * posix/Makefile (tests): Add tst-fnmatch2.
10494         * posix/tst-fnmatch2.c: New test.
10496 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10498         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10499         and 1 on failure.
10501         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10502         Change last argument to unsigned int.
10504 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10506         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10508 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10510         * config.h.in (HAVE_LIBCAP): Add.
10511         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10512         sys/capabilities.h.
10513         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10514         free_caps.  Cast away const from 4th cap_set_flag argument.
10516 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10518         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10519         GLIBC_2.6.
10520         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10521         Add sync_file_range.
10522         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10524 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10526         * sysdeps/powerpc/bits/atomic.h
10527         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10528         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10529         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10530         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10531         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10532         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10533         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10534         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10535         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10536         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10537         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10538         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10539         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10540         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10541         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10542         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10543         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10544         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10545         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10546         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10548 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10550         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10551         (__cache_line_size): Define the variable here.  Add
10552         attribute_hidden, remove weak_extern.
10553         (__libc_start_main): Set __cache_line_size
10554         unconditionally.
10555         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10556         (__cache_line_size): Define the variable here.  Add
10557         attribute_hidden, remove weak_extern.
10558         (DL_PLATFORM_AUXV): Set __cache_line_size
10559         unconditionally.
10560         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10561         weak_extern, add attribute_hidden.
10562         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10563         defined in ld.so.
10564         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10565         definition.
10566         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10568 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10570         [BZ #4276]
10571         * timezone/africa: Update from tzdata2007d.
10572         * timezone/asia: Likewise.
10573         * timezone/australasia: Likewise.
10574         * timezone/backward: Likewise.
10575         * timezone/europe: Likewise.
10576         * timezone/iso3166.tab: Likewise.
10577         * timezone/leapseconds: Likewise.
10578         * timezone/northamerica: Likewise.
10579         * timezone/southamerica: Likewise.
10580         * timezone/zone.tab: Likewise.
10582         * timezone/private.h: Update from tzcode2007d.
10583         * timezone/zdump.c: Likewise.
10584         * timezone/zic.c: Likewise.
10586 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10588         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10589         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10590         variables.
10591         (nis_server_cache_search, nis_server_cache_add): New functions.
10592         (__nisfind_server): Use them.  Add dbp and flags argument, if
10593         call __nisbind_create.
10594         (__nisbind_create): Add server_used and current_ep arguments,
10595         only call __nis_findfastest if server_used is ~0.
10596         (__do_niscall2, __prepare_niscall): Adjust callers.
10597         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10598         ckey_cache_euid, ckey_cache_lock): New variables.
10599         (get_ckey): New function.
10600         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10601         __pmap_getnisport.  Save __pmap_getnisport result in
10602         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10603         key.
10604         * nis/nis_lookup.c (nis_lookup): Likewise.
10605         * nis/nis_table.c (nis_list): Likewise.
10606         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10607         prototypes.
10609         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10610         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10611         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10612         _nss_nisplus_getservbyport_r): Likewise.
10613         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10614         _nss_nisplus_getnetbyaddr_r): Likewise.
10615         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10616         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10617         _nss_nisplus_getntohost_r): Likewise.
10618         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10619         _nss_nisplus_getrpcbynumber_r): Likewise.
10621 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10623         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10624         * configure: Rebuilt.
10626         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10627         bit-fields.
10628         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10630 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10632         [BZ #2831]
10633         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10634         bit-fields.
10636 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10638         * nscd/gai.c: Include alloca.h.
10639         (__libc_use_alloca): Define.
10641 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10643         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10644         smaller scopes.
10645         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10646         (DL_DST_REQUIRED): Adjust user.
10648         * include/dlfcn.h (struct link_map): New forward decl.
10650         * inet/getnameinfo.c: Include stddef.h.
10651         (getnameinfo): Use offsetof.
10653         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10655         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10657         * string/strerror_l.c: Include stdlib.h.
10659         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10660         * config.make.in (gnu89-inline-CFLAGS): New variable.
10661         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10662         -std=gnu99.
10663         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10664         * argp/argp.h: Use it.
10665         * bits/mathinline.h: Likewise.
10666         * bits/sigset.h: Likewise.
10667         * bits/string.h: Likewise.
10668         * ctype/ctype.h: Likewise.
10669         * hurd/hurd.h: Likewise.
10670         * hurd/hurd/fd.h: Likewise.
10671         * hurd/hurd/port.h: Likewise.
10672         * hurd/hurd/signal.h: Likewise.
10673         * hurd/hurd/threadvar.h: Likewise.
10674         * hurd/hurd/userlink.h: Likewise.
10675         * io/sys/stat.h: Likewise.
10676         * libio/bits/stdio.h: Likewise.
10677         * libio/bits/stdio2.h: Likewise.
10678         * mach/lock-intern.h: Likewise.
10679         * mach/mach/mig_support.h: Likewise.
10680         * math/bits/cmathcalls.h: Likewise.
10681         * posix/bits/unistd.h: Likewise.
10682         * socket/bits/socket2.h: Likewise.
10683         * stdlib/bits/stdlib.h: Likewise.
10684         * stdlib/stdlib.h: Likewise.
10685         * string/argz.h: Likewise.
10686         * string/bits/string2.h: Likewise.
10687         * string/bits/string3.h: Likewise.
10688         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10689         * sysdeps/generic/inttypes.h: Likewise.
10690         * sysdeps/generic/machine-lock.h: Likewise.
10691         * sysdeps/generic/machine-sp.h: Likewise.
10692         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10693         * sysdeps/i386/i486/bits/string.h: Likewise.
10694         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10695         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10696         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10697         * sysdeps/mach/i386/machine-lock.h: Likewise.
10698         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10699         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10700         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10701         * sysdeps/s390/bits/string.h: Likewise.
10702         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10703         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10704         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10705         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10706         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10707         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10708         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10709         * wcsmbs/bits/wchar2.h: Likewise.
10710         * wcsmbs/wchar.h: Likewise.
10711         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10712         __extern_inline definition.
10714 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10716         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10717         NULL.
10719         [BZ #3919]
10720         * math/libm-test.inc (log_test): Test -Inf and NaN.
10721         (log10_test, log1p_test, log2_test): Test -Inf.
10722         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10723         FE_INVALID when argument is qNaN.
10724         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10725         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10726         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10727         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10728         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10729         testb $4, %ah and jump if non-zero.
10730         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10731         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10733         [BZ #4101]
10734         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10735         ancestors with the same depths.
10736         Patch by Niels Moeller <nisse@lysator.liu.se>.
10737         (filter_doc): Don't crash if argp is NULL.
10738         * argp/Makefile (tests): Add tst-argp2.
10739         * argp/tst-argp2.c: New test.
10741         [BZ #4130]
10742         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10743         open_not_cancel_2.
10744         (updwtmp_file): Likewise.
10746         [BZ #4181]
10747         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10748         (inet6_opt_append): Don't check extlen is big enough if extbuf
10749         is NULL.
10750         (inet6_opt_finish): Likewise.
10751         * inet/Makefile (tests): Add test-inet6_opt.
10752         * inet/test-inet6_opt.c: New test.
10754         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10755         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10756         NLMSG_ERR.  Instead use a page sized buffer.
10757         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10758         buffer.
10760 2007-03-14  Richard Henderson  <rth@redhat.com>
10762         * sysdeps/alpha/fpu/s_llround.c: New file.
10763         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10764         * sysdeps/alpha/fpu/s_lround.c: New file.
10765         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10766         * sysdeps/alpha/fpu/s_round.c: New file.
10767         * sysdeps/alpha/fpu/s_roundf.c: New file.
10768         * sysdeps/alpha/fpu/s_trunc.c: New file.
10769         * sysdeps/alpha/fpu/s_truncf.c: New file.
10771         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10772         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10773         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10774         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10775         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10776         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10778         * sysdeps/alpha/fpu/s_fmax.S: New file.
10779         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10780         * sysdeps/alpha/fpu/s_fmin.S: New file.
10781         * sysdeps/alpha/fpu/s_fminf.S: New file.
10782         * sysdeps/alpha/fpu/s_isnan.c: New file.
10783         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10784         * sysdeps/alpha/fpu/s_llrint.c: New file.
10785         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10786         * sysdeps/alpha/fpu/s_lrint.c: New file.
10787         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10788         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10789         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10791         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10792         (__fdimf, fdimf, __fdim, fdim): Remove.
10793         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10794         (__isnanf, __isnan, __isnanl): New.
10796 2007-03-13  Richard Henderson  <rth@redhat.com>
10798         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10800 2007-03-13  Richard Henderson  <rth@redhat.com>
10802         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10803         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10804         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10805         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10806         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10807         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10809 2007-03-13  Richard Henderson  <rth@redhat.com>
10811         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10812         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10813         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10814         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10815         Move to dl-auxv.h; initialize instead of extern weak.
10816         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10817         weak symbol.
10818         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10819         Extern instead of initialized.
10821 2007-03-13  Richard Henderson  <rth@redhat.com>
10823         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10824         __sigsuspend_nocancel.
10826 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10828         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10829         172.16/12 address range.
10831 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10833         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10834         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10835         message.
10837 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10839         [BZ #4069]
10840         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10841         earlier.
10842         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10844         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10845         for x qNaN and y either +-inf or non-integer value.
10846         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10847         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10848         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10850 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10852         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10853         from sysdep_headers.
10855 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10857         * time/tzfile.c (find_transition): Instead of a linear search try to
10858         guess the transition index, use a linear search if the result is at
10859         most 10 transitions away from the guess or binary search otherwise.
10861 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10863         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10864         memory reallocation.
10866 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10868         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10869         and fix some typos.
10870         Optimize use of TOLOWER.
10872         [BZ #3325]
10873         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10874         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10875         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10877         [BZ #3458]
10878         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10879         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10881         [BZ #4076]
10882         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10883         (open_dir_stream): Likewise.
10884         * io/Makefile (tests): Add bug-ftw5.
10885         * io/bug-ftw5.c: New file.
10887         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10888         * nscd/servicescache.c (cache_addserv): Likewise.
10890         * nscd/grpcache.c (cache_addgr): In case a record changed on
10891         refresh, adjust key_copy.
10893         [BZ #4074]
10894         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10895         refresh, adjust key_copy.
10897         [BZ #4070]
10898         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10899         special cases.
10900         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10902 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10904         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10905         optimization.
10907         * stdio-common/vfscanf.c: Small cleanups throughout.
10909 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10911         [BZ #3325]
10912         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10913         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10914         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10915         Patch by Jared Casper <jaredcasper@gmail.com>.
10917         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10918         * sysdeps/unix/opendir.c: Likewise.
10919         * sysdeps/unix/readdir.c: Likewise.
10921         [BZ #2211]
10922         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10923         point numbers.
10924         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10926         * stdio-common/vfscanf.c: Fix problems in width accounting.
10927         * stdio-common/tst-sscanf.c (double_tests): New tests.
10928         (main): Hook them up.
10930         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10931         More simplifications of floating-point reader.
10933         * stdio-common/Makefile (tests): Add tst-swscanf.
10934         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10935         testing.
10936         * stdio-common/tst-swscanf.c: New file.
10938 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10940         [BZ #2633]
10941         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10942         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10943         Remove using for __jmp_buf_tag.
10944         * locale/locale.h (struct lconv): Also define in std namespace.
10945         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10947         [BZ #3842]
10948         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10949         using __libc_enable_secure.
10951         [BZ #3818]
10952         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10954         [BZ #3745]
10955         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10956         of names for ellipsises.
10958         [BZ #3348]
10959         * malloc/memusage.sh: Cleanups.
10960         * debug/xtrace.sh: Quoting and trap changes.
10962 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10964         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10966         * locale/iso-3166.def: Update entry for Serbia.
10967         * locale/iso-4217.def: Define RSD, remove CSD.
10969         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10970         and 64-bit operations.
10972         [BZ #4040]
10973         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10974         16-bit operations.
10976         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10977         of writev.
10979 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10981         [BZ #3991]
10982         * assert/assert.h (assert): Simplify.
10983         (assert_perror): Likewise.
10984         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10986         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10987         reqdata.
10989         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10990         change: don't pass NULL in place of an integer.
10992 2007-02-02  Bruno Haible  <bruno@clisp.org>
10994         [BZ #3954]
10995         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10996         Add mapping for U+327E.
10997         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10998         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10999         mapping of 0xD9 0xE8.
11000         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11001         mapping of U+327E.
11002         Reported by Jungshik Shin <jungshik@google.com>.
11004         [BZ #3955]
11005         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11006         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11007         Reported by Jungshik Shin <jungshik@google.com>.
11009 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11011         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11012         byte variants.
11014         [BZ #4040]
11015         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11016         byte variants.  Patch mostly be tom@tommay.net.
11018 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11020         [BZ #3996]
11021         * posix/glob.c (attribute_hidden): Define if not defined.
11022         (glob): Unescape dirname, filename or username when needed and not
11023         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11024         is NULL.  Handle unescaped [ in pattern without closing ].
11025         Don't pass GLOB_CHECK down to recursive glob for directories.
11026         (__glob_pattern_type): New function.
11027         (__glob_pattern_p): Implement using __glob_pattern_type.
11028         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11029         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11030         Remove unreachable code.
11031         * posix/globtest.sh: Add a couple of new tests.
11033 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11035         * po/ru.po: Update from translation team.
11037 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11039         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11040         to the list of i486+ CPUs.
11041         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11043 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11045         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11046         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11047         references.
11049 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11051         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11053         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11054         * resolv/res_mkquery.c: Define __res_nopt.
11055         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11056         try adding EDNS0 record.
11057         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11058         EDNS0 record was send make sure we don't try it again.
11059         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11060         * include/resolv.h: Declare __res_nopt.
11062 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11064         [BZ #3944]
11065         * time/strptime_l.c (__strptime_internal): Set have_mon for
11066         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11067         have been computed from tm_yday and tm_year.  Don't crash
11068         in day_of_the_week or day_of_the_year if not have_mon
11069         and tm_mon contains bogus value.
11070         * time/Makefile (tests): Add tst-strptime3.
11071         * time/tst-strptime3.c: New test.
11073 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11075         [BZ #3957]
11076         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11077         bit for RE_HAT_LISTS_NOT_NEWLINE.
11078         (build_charclass_op): Remove bogus comment.
11079         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11080         * posix/bug-regex27.c: New test.
11081         * posix/bug-regex28.c: New test.
11083 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11085         * po/sv.po: Update from translation team.
11087 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11089         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11091 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11093         * include/locale.h (__uselocale): Add libc_hidden_proto.
11094         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11096         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11097         gettimeofday.
11099 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11101         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11102         returning.
11103         (PTR_DEMANGLE): Real definition now that it's not the same as
11104         PRT_MANGLE anymore.
11105         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11107         * string/strerror_l.c: New file.
11108         * string/Makefile (routines): Add strerror_l.
11109         * string/string.h: Declare strerror_l.
11110         * string/Versions: Export strerror_l for GLIBC_2.6.
11112 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11114         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11115         as parameter.  Construct request record.  Try sending request
11116         before the first poll use, it usually succeeds.  Adjust all
11117         callers.
11118         * nscd/nscd-client.h: Define MAXKEYLEN.
11119         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11121 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11123         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11124         from return value.
11125         * nscd/nscd_helper.c: Include string.h.
11126         (__nscd_cache_search): Remove const qualifier from return value.
11127         On strict alignment architectures check hash entry and data head
11128         alignment.
11129         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11130         mmapped data during GC cycle contains garbage.  If
11131         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11132         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11133         dropped to 0.
11134         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11135         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11136         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11137         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11138         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11140 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11142         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11144 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11146         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11147         names not numbers in cfi_*.
11149 2007-01-26  Andreas Jaeger  <aj@suse.de>
11151         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11152         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11153         Correct values of PER_HPUX and PER_OSF4.
11155 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11157         * elf/dl-minimal.c: Undefine _itoa first.
11158         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11159         * malloc/mtrace.c: Revert last change.
11160         * posix/wordexp.c: Likewise.
11162 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11164         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11165         and __geode__ to the list of i486+ CPUs.
11166         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11168 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11170         * stdio-common/_itoa.c: Include <limits.h>.
11171         * stdio-common/_itowa.c: Likewise.
11173 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11175         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11176         platforms.
11177         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11178         64-bit platforms.
11179         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11180         possible.
11181         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11182         if possible.
11184         [BZ #3902]
11185         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11186         * stdio-common/Makefile (tests): Add bug17.
11187         * stdio-common/bug17.c: New file.
11189 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11191         * iconvdata/brf.c: New file.
11192         * iconvdata/testdata/BRF: New file.
11193         * iconvdata/testdata/BRF..UTF8: New file.
11194         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11195         * iconvdata/Makefile: Add rules to build BRF.
11196         * iconvdata/TESTS: Add BRF entry.
11197         * iconvdata/gconv-modules: Likewise.
11198         * iconvdata/tst-tables.sh: Likewise.
11200 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11202         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11203         type `long long int', not `long int'.
11204         (wcstoq): Likewise.
11206 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11208         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11209         of values on 64-bit platforms which are too large.
11211 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11212             Joe Kerian  <jkerian@us.us.ibm.com>
11214         [BZ #2749]
11215         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11216         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11217         (__copysignl): Use signbit() for comparison.
11218         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11219         SET_LDOUBLE_WORDS64.
11221         [BZ #2423, #2749]
11222         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11223         (__ceill): Remove calls to fegetround(), fesetround().
11224         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11225         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11226         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11228 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11230         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11232         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11234 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11236         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11237         demangle pointer.
11238         * csu/libc-start.c: Likewise.
11240 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11242         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11243         really work anyway.
11245 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11247         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11248         users.
11249         (handle_request): Remove unnecessary tests.
11251         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11253 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11255         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11256         workbits in semi-raw fraction.
11258         * math/test-misc.c: Add new tests.
11260 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11262         * math/basic-test.c: Include test-skeleton.c.
11263         (TEST_TRUNC): Define.
11264         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11265         (main): Rename to ...
11266         (do_test): ...this.  Run new tests.
11267         (TEST_FUNCTION): Define.
11269 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11270             Joe Kerian  <jkerian@us.us.ibm.com>
11272         [BZ #2749]
11273         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11274         handling for high words.
11275         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11276         and overflow for infinity.
11278 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11280         * nscd/connections.c (handle_request): Add a __builtin_expect.
11282         * nscd/connections.c (serv2db): Change type into structure which
11283         also says whether this is a request for data.  Renamed to
11284         servinfo.  All users changed.
11285         (handle_request): Much simpler test whether we should search the cache.
11287         * nscd/connections.c (handle_request): Fix thinko in selinux test
11288         invocation.
11290         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11291         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11292         it before getting dl_load_lock and then relock.
11293         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11294         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11295         case we unlocked the scope.
11296         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11297         _dl_lookup_symbol_x in case we locked the scope.
11298         (_dl_profile_fixup): Likewise.
11299         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11300         set DL_LOOKUP_SCOPE_LOCK.
11302 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11304         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11305         CFLAGS-getsrvbynpt_r.c.
11306         * nscd/getsrvbynm_r.c: New file.
11307         * nscd/getsrvbypt_r.c: New file.
11308         * nscd/nscd_getserv_r.c: New file.
11309         * nscd/servicescache.c: New file.
11310         * nscd/Makefile (routines): Add nscd_getserv_r.
11311         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11312         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11313         CFLAGS-getsrvbypt_r.c.
11314         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11315         table.  Add entries for services database.
11316         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11317         services database.
11318         (dbs): Add .reset_res and servdb initialization.
11319         (serv2db): Add entries for services database.
11320         (verify_persistent_db): Accept dbnr == servdb.
11321         (invalidate_cache): Rewrite database name recognition to use a table.
11322         Call res_init() if .reset_res is set for database.
11323         (handle_request): Add code to handle services database.
11324         * nscd/gai.c: Don't define __getservbyname_r.
11325         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11326         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11327         (serv_response_header): Define.
11328         (struct datahead): Add serv_response_header member.
11329         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11330         using table.
11331         * nscd/nscd.conf: Add entries for services database.
11332         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11333         Declare serv_iov_disabled.
11334         Declare addservbyname, readdservbyname, addservbyport, and
11335         readdservbyport.
11336         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11337         (find_db): Fix error message.
11338         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11339         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11340         * nscd/selinux.c (perms): Add entries for services database.
11341         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11342         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11344         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11345         * nscd/hstcache.c: Likewise.
11346         * nscd/pwdcache.c: Likewise.
11348         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11349         computation of keylen.
11351         * include/string.h: Only redefine strndupa if this is really for
11352         libc code.
11354 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11356         * nscd/nscd_gethst_r.c: Minor cleanups.
11358         * nscd/connections.c (handle_request): Check selinux permissions
11359         for all non-admin commands.
11361         * sysdeps/i386/i486/bits/atomic.h: Define
11362         atomic_compare_and_exchange_val_acq,
11363         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11364         using __sync_* built-ins for gcc >= 4.1.
11365         * sysdeps/x86_64/bits/atomic.h: Likewise.
11367         [BZ #3840]
11368         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11369         and .oS.d files.
11371 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11373         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11374         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11375         (do_test): Check errno and exit(0) if ENOSYS.
11377 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11379         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11380         thousands separators.
11381         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11382         * stdlib/tst-strtod4.c: New test.
11384         [BZ #3855]
11385         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11386         hexadecimal digit should accept just the initial 0.
11387         * stdlib/tst-strtod2.c (tests): New variable.
11388         (do_test): Run several tests rather than just one.
11390 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11392         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11393         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11395 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11397         * io/fts.c: Make sure fts_cur is always valid after return from
11398         fts_read.
11399         Patch by Miloslav Trmac <mitr@redhat.com>.
11401 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11403         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11404         (R_MIPS_NUM): Bump by 1.
11406 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11408         * posix/execvp.c: Include alloca.h.
11409         (allocate_scripts_argv): Renamed to...
11410         (scripts_argv): ... this.  Don't allocate buffer here nor count
11411         arguments.
11412         (execvp): Use alloca if possible.
11413         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11414         * posix/tst-vfork3.c: New test.
11416 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11418         * string/Makefile (tst-strxfrm2-ENV): Define.
11419         * stdlib/Makefile (tst-strtod3-ENV): Define.
11421 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11423         * posix/getconf.c: Update copyright year.
11424         * nss/getent.c: Likewise.
11425         * iconv/iconvconfig.c: Likewise.
11426         * iconv/iconv_prog.c: Likewise.
11427         * elf/ldconfig.c: Likewise.
11428         * catgets/gencat.c: Likewise.
11429         * csu/version.c: Likewise.
11430         * elf/ldd.bash.in: Likewise.
11431         * elf/sprof.c (print_version): Likewise.
11432         * locale/programs/locale.c: Likewise.
11433         * locale/programs/localedef.c: Likewise.
11434         * nscd/nscd.c (print_version): Likewise.
11435         * debug/xtrace.sh: Likewise.
11436         * malloc/memusage.sh: Likewise.
11437         * malloc/mtrace.pl: Likewise.
11438         * debug/catchsegv.sh: Likewise.
11440 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11442         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11443         attempts.
11445 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11447         * posix/wordexp.c: Remove some unnecessary tests.
11449 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11451         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11452         blacklist the group till after we look it up.
11454 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11456         * include/atomic.h (atomic_forced_read): New macro.
11458 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11460         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11462 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11464         * nss/getXXbyYY_r.c: Include atomic.h.
11465         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11466         add atomic_write_barrier () in between.
11468         * stdlib/Makefile (tests): Add tst-makecontext.
11469         * stdlib/tst-makecontext.c: New test.
11471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11472         (__makecontext): Don't realign uc_mcontext.uc_regs.
11474 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11476         * elf/dl-support.c: Include dl-procinfo.h.
11477         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11478         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11479         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11480         Define.
11481         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11482         hardcoded constants.
11483         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11484         PPC_PLATFORM_* macros for array designators.
11486 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11488         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11489         names to the beginning.
11490         (_dl_powerpc_platforms): Add "power6x".
11491         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11492         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11493         (_DL_PLATFORMS_COUNT): Increase.
11494         (_dl_string_platform): Handle power6x case.
11495         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11496         PPC_FEATURE_POWER6_EXT): Define.
11497         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11499 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11501         [BZ #3747]
11502         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11503         [-2^31 .. 2^31) range.
11504         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11505         targets.
11506         * stdlib/tst-rand48-2.c: New test.
11507         * stdlib/Makefile (tests): Add tst-rand48-2.
11509 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11511         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11513 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11515         * misc/tst-pselect.c (do_test): Make sure the helper process is
11516         terminating when the test is aborted.
11518 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11520         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11521         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11522         Handle relatime mount option.
11524         [BZ #2337]
11525         * libio/Makefile (tests): Add tst-setvbuf1.
11526         * libio/tst-setvbuf1.c: New file.
11528 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11530         [BZ #2337]
11531         * libio/genops.c (__uflow): Fix a typo.
11532         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11533         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11534         the narrow buffer size.
11536 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11538         [BZ #2337]
11539         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11540         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11541         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11542         in _flags.
11543         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11544         _IO_wstr_finish): Likewise.
11545         * libio/wmemstream.c (open_wmemstream): Likewise.
11546         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11547         even for wide streams.
11549 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11552         kernel-features.h.
11554 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11556         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11557         separators also if no non-zero digits found.
11558         * stdlib/Makefile (tests): Add tst-strtod3.
11560 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11562         [BZ #3632]
11563         * include/features.h: Fix comment about default value for
11564         _POSIX_C_SOURCE.
11566         [BZ #3664]
11567         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11568         empty parsed strings.
11569         * stdlib/Makefile (tests): Add tst-strtod2.
11570         * stdlib/tst-strtod2.c: New file.
11572         [BZ #3673]
11573         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11574         computation.
11575         * stdlib/Makefile (tests): Add tst-atof2.
11576         * stdlib/tst-atof2.c: New file.
11578         [BZ #3674]
11579         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11580         correctly if removing trailing zero of hex-float.
11581         * stdlib/Makefile (tests): Add tst-atof1.
11582         * stdlib/tst-atof1.c: New file.
11584 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11586         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11587         Start searching for next comma at p rather than rest.
11588         * misc/Makefile (tests): Add tst-mntent2.
11589         * misc/tst-mntent2.c: New test.
11591         * misc/getusershell.c (initshells): Check for integer overflows.
11592         Make strings buffer one bigger as fgets always succeeds when second
11593         argument is 1.  Don't use calloc for shells array.  Disallow
11594         / as shell.
11596 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11598         * malloc/memusage.c: Handle realloc with new size of zero and
11599         non-NULL pointer correctly.
11600         (me): Really write first record twice.
11601         (struct entry): Make format bi-arch safe.
11602         (dest): Write out more realloc statistics.
11603         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11605 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11607         * nis/nis_subr.c (nis_getnames): Revert last change.
11609 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11611         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11612         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11613         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11614         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11615         ENOTTY.
11616         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11617         * io/tst-ttyname_r.c: New test.
11619 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11621         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11623 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11625         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11626         jump table entries.
11628 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11630         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11631         `clone' function to ensure proper unwinding stop of gdb.
11632         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11634 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11636         * nscd/nscd.init: Remove obsolete and commented-out -S option
11637         handling.
11639 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11641         [BZ #3514]
11642         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11644         [BZ #3515]
11645         * manual/string.texi (strtok): Remove duplicate paragraph.
11647 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11649         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11650         libgcc not supporting `rflags' unwinding (register # >= 17).
11652 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11654         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11655         succeeded.
11657 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11658             Jakub Jelinek  <jakub@redhat.com>
11659             Jan Kratochvil  <jan.kratochvil@redhat.com>
11661         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11662         unwind information.
11663         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11664         'restore_rt' even in the 'signal' directory.
11665         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11667 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11669         [BZ #3559]
11670         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11671         malloc crashed.  Don't allocate memory unnecessarily in each
11672         loop.
11674 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11676         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11678 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11680         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11682 2006-11-18  Bruno Haible  <bruno@clisp.org>
11684         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11685         __sysconf only after having tried to call getgroups32.
11687 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11689         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11690         addresses for IPv4 queries if they can be mapped.
11692 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11694         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11695         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11696         (signmask): Add .size directive.
11697         (othermask): Add .type directive.
11699 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11701         * po/nl.po: Update from translation team.
11703         * timezone/zdump.c: Redo fix for BZ #3137.
11705 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11707         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11708         to first_unused after parsing :include: file.
11710 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11712         * timezone/africa: Update from tzdata2006o.
11713         * timezone/antarctica: Likewise.
11714         * timezone/asia: Likewise.
11715         * timezone/australasia: Likewise.
11716         * timezone/backward: Likewise.
11717         * timezone/europe: Likewise.
11718         * timezone/iso3166.tab: Likewise.
11719         * timezone/northamerica: Likewise.
11720         * timezone/southamerica: Likewise.
11721         * timezone/zone.tab: Likewise.
11723         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11724         on machines with 64-bit time_t.
11726         * timezone/checktab.awk: Update from tzcode2006o.
11727         * timezone/ialloc.c: Likewise.
11728         * timezone/private.h: Likewise.
11729         * timezone/scheck.c: Likewise.
11730         * timezone/tzfile.h: Likewise.
11731         * timezone/tzselect.ksh: Likewise.
11732         * timezone/zdump.c: Likewise.
11733         * timezone/zic.c: Likewise.
11735         [BZ #3483]
11736         * elf/ldconfig.c (main): Call setlocale and textdomain.
11737         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11739         [BZ #3480]
11740         * manual/argp.texi: Fix typos.
11741         * manual/charset.texi: Likewise.
11742         * manual/errno.texi: Likewise.
11743         * manual/filesys.texi: Likewise.
11744         * manual/lang.texi: Likewise.
11745         * manual/maint.texi: Likewise.
11746         * manual/memory.texi: Likewise.
11747         * manual/message.texi: Likewise.
11748         * manual/resource.texi: Likewise.
11749         * manual/search.texi: Likewise.
11750         * manual/signal.texi: Likewise.
11751         * manual/startup.texi: Likewise.
11752         * manual/stdio.texi: Likewise.
11753         * manual/sysinfo.texi: Likewise.
11754         * manual/syslog.texi: Likewise.
11755         * manual/time.texi: Likewise.
11756         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11758         [BZ #3465]
11759         * sunrpc/clnt_raw.c: Minimal message improvements.
11760         * sunrpc/pm_getmaps.c: Likewise.
11761         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11762         * nis/nis_print_group_entry.c: Likewise.
11763         * locale/programs/repertoire.c: Likewise.
11764         * locale/programs/charmap.c: Likewise.
11765         * malloc/memusage.sh: Likewise.
11766         * elf/dl-deps.c: Likewise.
11767         * locale/programs/ld-collate.c: Likewise.
11768         * libio/vswprintf.c: Likewise.
11769         * malloc/memusagestat.c: Likewise.
11770         * sunrpc/auth_unix.c: Likewise.
11771         * sunrpc/rpc_main.c: Likewise.
11772         * nscd/cache.c: Likewise.
11773         * locale/programs/repertoire.c: Unify output messages.
11774         * locale/programs/charmap.c: Likewise.
11775         * locale/programs/ld-ctype.c: Likewise.
11776         * locale/programs/ld-monetary.c: Likewise.
11777         * locale/programs/ld-numeric.c: Likewise.
11778         * locale/programs/ld-time.c: Likewise.
11779         * elf/ldconfig.c: Likewise.
11780         * nscd/selinux.c: Likewise.
11781         * elf/cache.c: Likewise.
11782         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11784         [BZ #3451]
11785         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11786         change atomic.
11787         (ceil): Likewise.
11789 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11791         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11792         if N is one bigger than return value.
11793         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11794         and l1 last arguments, if buf is defined, verify the return value
11795         equals to strlen (buf) and verify no byte beyond passed length
11796         is modified.
11798 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11800         * po/sv.po: Update from translation team.
11802 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11804         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11805         noinline attribute.
11807 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11809         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11810         noinline attribute.
11812         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11813         Use __new_sys_siglist instead of _sys_siglist_internal as
11814         second macro argument.
11815         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11816         strong_alias.
11818 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11820         [BZ #3493]
11821         * posix/unistd.h (sysconf): Remove const attribute.
11823         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11824         temporary or deprecated addresses.
11825         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11827         * string/Makefile (tests): Add tst-strxfrm2.
11828         * string/tst-strxfrm2.c: New file.
11830 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11832         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11833         rather than r->r_brk.
11835 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11837         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11838         optimization even if needed > n.
11840         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11841         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11842         return false, otherwise return true.
11843         (cache_rpath): Return decompose_rpath return value.
11845 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11847         * include/libc-symbols.h (declare_symbol): Rename to...
11848         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11849         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11850         .size directive.
11851         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11852         changes.
11853         * sysdeps/gnu/siglist.c: Likewise.
11855 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11857         * sysdeps/powerpc/fpu/bits/mathinline.h
11858         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11859         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11861 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11863         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11864         Update handling of cache descriptor 0x49 for new models.
11865         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11866         Likewise.
11868 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11870         * malloc/memusage.c (dest): Reset not_me back to false after
11871         printing statistics.
11873 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11875         * configure.in: Work around ld --help change and avoid -z relro
11876         test completely if the architecture doesn't care about security.
11878 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11880         * po/sv.po: Update from translation team.
11882 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11884         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11885         generate compatibility version.
11887 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11889         * configure.in: Relax -z relro requirement a bit.
11891         * po/sv.po: Update from translation team.
11893 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11895         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11896         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11897         * elf/dl-close.c (_dl_close_worker): Likewise.
11898         * elf/dl-open.c (_dl_open_worker): Likewise.
11899         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11901 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11903         * configure.in: Require assembler support for visibility, compiler
11904         support for visibility and aliases, linker support for various -z
11905         options.
11906         * Makeconfig: Remove conditional code which now is unnecessary.
11907         * config.h.in: Likewise.
11908         * config.make.in: Likewise.
11909         * dlfcn/Makefile: Likewise.
11910         * elf/Makefile: Likewise.
11911         * elf/dl-load.c: Likewise.
11912         * elf/rtld.c: Likewise.
11913         * include/libc-symbols.h: Likewise.
11914         * include/stdio.h: Likewise.
11915         * io/Makefile: Likewise.
11916         * io/fstat.c: Likewise.
11917         * io/fstat64.c: Likewise.
11918         * io/fstatat.c: Likewise.
11919         * io/fstatat64.c: Likewise.
11920         * io/lstat.c: Likewise.
11921         * io/lstat64.c: Likewise.
11922         * io/mknod.c: Likewise.
11923         * io/mknodat.c: Likewise.
11924         * io/stat.c: Likewise.
11925         * io/stat64.c: Likewise.
11926         * libio/stdio.c: Likewise.
11927         * nscd/Makefile: Likewise.
11928         * stdlib/Makefile: Likewise.
11929         * stdlib/atexit.c: Likewise.
11930         * sysdeps/generic/ldsodefs.h: Likewise.
11931         * sysdeps/i386/dl-machine.h: Likewise.
11932         * sysdeps/i386/sysdep.h: Likewise.
11933         * sysdeps/i386/i686/memcmp.S: Likewise.
11934         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11935         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11936         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11938         * Makerules: USE_TLS support is now default.
11939         * tls.make.c: Likewise.
11940         * csu/Versions: Likewise.
11941         * csu/libc-start.c: Likewise.
11942         * csu/libc-tls.c: Likewise.
11943         * csu/version.c: Likewise.
11944         * dlfcn/dlinfo.c: Likewise.
11945         * elf/dl-addr.c: Likewise.
11946         * elf/dl-cache.c: Likewise.
11947         * elf/dl-close.c: Likewise.
11948         * elf/dl-iteratephdr.c: Likewise.
11949         * elf/dl-load.c: Likewise.
11950         * elf/dl-lookup.c: Likewise.
11951         * elf/dl-object.c: Likewise.
11952         * elf/dl-open.c: Likewise.
11953         * elf/dl-reloc.c: Likewise.
11954         * elf/dl-support.c: Likewise.
11955         * elf/dl-sym.c: Likewise.
11956         * elf/dl-sysdep.c: Likewise.
11957         * elf/dl-tls.c: Likewise.
11958         * elf/ldconfig.c: Likewise.
11959         * elf/rtld.c: Likewise.
11960         * elf/tst-tls-dlinfo.c: Likewise.
11961         * elf/tst-tls1.c: Likewise.
11962         * elf/tst-tls10.h: Likewise.
11963         * elf/tst-tls14.c: Likewise.
11964         * elf/tst-tls2.c: Likewise.
11965         * elf/tst-tls3.c: Likewise.
11966         * elf/tst-tls4.c: Likewise.
11967         * elf/tst-tls5.c: Likewise.
11968         * elf/tst-tls6.c: Likewise.
11969         * elf/tst-tls7.c: Likewise.
11970         * elf/tst-tls8.c: Likewise.
11971         * elf/tst-tls9.c: Likewise.
11972         * elf/tst-tlsmod1.c: Likewise.
11973         * elf/tst-tlsmod13.c: Likewise.
11974         * elf/tst-tlsmod13a.c: Likewise.
11975         * elf/tst-tlsmod14a.c: Likewise.
11976         * elf/tst-tlsmod2.c: Likewise.
11977         * elf/tst-tlsmod3.c: Likewise.
11978         * elf/tst-tlsmod4.c: Likewise.
11979         * elf/tst-tlsmod5.c: Likewise.
11980         * elf/tst-tlsmod6.c: Likewise.
11981         * include/errno.h: Likewise.
11982         * include/link.h: Likewise.
11983         * include/tls.h: Likewise.
11984         * locale/global-locale.c: Likewise.
11985         * locale/localeinfo.h: Likewise.
11986         * malloc/arena.c: Likewise.
11987         * malloc/hooks.c: Likewise.
11988         * malloc/malloc.c: Likewise.
11989         * resolv/Versions: Likewise.
11990         * sysdeps/alpha/dl-machine.h: Likewise.
11991         * sysdeps/alpha/libc-tls.c: Likewise.
11992         * sysdeps/generic/ldsodefs.h: Likewise.
11993         * sysdeps/generic/tls.h: Likewise.
11994         * sysdeps/i386/dl-machine.h: Likewise.
11995         * sysdeps/ia64/dl-machine.h: Likewise.
11996         * sysdeps/ia64/libc-tls.c: Likewise.
11997         * sysdeps/mach/hurd/fork.c: Likewise.
11998         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11999         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12000         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12001         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12002         * sysdeps/s390/libc-tls.c: Likewise.
12003         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12004         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12005         * sysdeps/sh/dl-machine.h: Likewise.
12006         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12007         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12008         * sysdeps/x86_64/dl-machine.h: Likewise.
12010         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12011         split out locking and parameter checking.
12012         (_dl_close): Call _dl_close_worker after locking and checking.
12013         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12014         _dl_close.
12015         * elf/Makefile: Add rules to build and run tst-thrlock.
12016         * elf/tst-thrlock.c:  New file.
12018         [BZ #3426]
12019         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12020         reality.
12022         [BZ #3429]
12023         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12024         we are sure we do not need it anymore for _dl_close.  Also move
12025         the asserts inside the lock region.
12026         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12028 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12030         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12031         argument.
12032         (_dl_lookup_symbol_x): Adjust caller.
12034         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12035         _ns_global_scope.
12036         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12038         * elf/dl-libc.c: Revert l_scope name changes.
12039         * elf/dl-load.c: Likewise.
12040         * elf/dl-object.c: Likewise.
12041         * elf/rtld.c: Likewise.
12042         * elf/dl-close.c (_dl_close): Likewise.
12043         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12044         always use __rtld_mrlock_{change,done}.  Always free old scope list
12045         here if not l_scope_mem.
12046         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12047         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12048         the lookup and __rtld_mrlock_unlock it after the lookup.
12049         * elf/dl-sym.c: Likewise.
12050         * include/link.h (struct r_scoperec): Remove.
12051         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12052         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12054 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12056         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12058 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12060         * configure.in: Disable building profile libraries by default.
12062 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12064         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12065         as signed longs, check for x_base + pos overflow.
12066         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12067         * sunrpc/tst-xdrmem2.c: New test.
12069 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12071         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12072         _dl_lookup_symbol_x code.
12074 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12076         * elf/dl-runtime.c: Include sysdep-cancel.h.
12077         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12078         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12079         instead of catomic_* macros.
12080         * elf/dl-sym.c: Include sysdep-cancel.h.
12081         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12082         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12083         * elf/dl-close.c: Include sysdep-cancel.h.
12084         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12085         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12086         * elf/dl-open.c: Include sysdep-cancel.h.
12087         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12088         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12090 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12092         [BZ #3313]
12093         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12094         fastbin rather than end of fastbin array.
12096 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12098         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12099         body macro.
12100         * sysdeps/x86_64/bits/atomic.h
12101         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12102         (catomic_decrement): Use correct body macro.
12104 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12106         * include/atomic.h: Add a unique prefix to all local variables
12107         in macros.
12108         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12110 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12112         [BZ #3369]
12113         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12114         and 7.
12116 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12118         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12120 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12122         [BZ #3313]
12123         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12124         determine highest fast bin to consolidate, always look into all of
12125         them.
12126         (do_check_malloc_state): Only require for empty bins for large
12127         sizes in main arena.
12129         * libio/stdio.h: Add more __wur attributes.
12131         * elf/dl-minimal.c (realloc): Optimize last patch.
12133 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12135         [BZ #3352]
12136         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12137         and use memcpy() if it does.
12139 2006-11-12  Andreas Jaeger  <aj@suse.de>
12141         [BZ #2510]
12142         * manual/search.texi (Hash Search Function): Clarify.
12143         (Array Search Function): Clarify.
12145 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12147         [BZ #2830]
12148         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12149         shifting.
12150         * math/atest-exp2.c (read_mpn_hex): Likewise.
12151         * math/atest-sincos.c (main): Likewise.
12153 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12155         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12156         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12157         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12158         version GLIBC_2.6.
12159         * Versions.def: Add GLIBC_2.6 for libc.
12161         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12163         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12165 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12167         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12169         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12171         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12172         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12174 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12176         * include/atomic.c: Define catomic_* operations.
12177         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12178         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12179         * malloc/memusage.c: Likewise.
12180         * gmon/mcount.c: Likewise.
12181         * elf/dl-close.c: Likewise.
12182         * elf/dl-open.c: Likewise.
12183         * elf/dl-profile.c: Likewise.
12184         * elf/dl-sym.c: Likewise.
12185         * elf/dl-runtime.c: Likewise.
12186         * elf/dl-fptr.c: Likewise.
12187         * resolv/res_libc.c: Likewise.
12189 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12191         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12192         components which lack them.
12194         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12195         at least one entry consisting of the parameter concatenated with
12196         the domain.
12198 2006-10-10  Roland McGrath  <roland@frob.com>
12200         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12201         * sysdeps/mach/hurd/futimes.c: Likewise.
12202         * sysdeps/mach/hurd/lutimes.c: Likewise.
12204 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12205             Jakub Jelinek  <jakub@redhat.com>
12207         Implement reference counting of scope records.
12208         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12209         from the list in objects which remain.  Always allocate new scope
12210         record.
12211         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12212         don't resize, allocate a new one.
12213         * elf/dl-runtime.c: Update reference counters before using a scope
12214         array.
12215         * elf/dl-sym.c: Likewise.
12216         * elf/dl-libc.c: Adjust for l_scope name change.
12217         * elf/dl-load.c: Likewise.
12218         * elf/dl-object.c: Likewise.
12219         * elf/rtld.c: Likewise.
12220         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12221         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12222         Add l_scoperec_lock.
12223         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12224         * sysdeps/generic/rtld-lowlevel.h: New file.
12226         * include/atomic.h: Rename atomic_and to atomic_and_val and
12227         atomic_or to atomic_or_val.  Define new macros atomic_and and
12228         atomic_or which do not return values.
12229         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12230         Various cleanups.
12231         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12233         * po/sv.po: Update from translation team.
12235 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12237         * Versions.def: Add GLIBC_2.6 to libpthread.
12239         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12240         (versioned_symbol): Likewise.
12241         (compat_symbol): Likewise.
12243         * po/tr.po: Update from translation team.
12245 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12247         * nis/Banner: Removed.  It's been integral part forever and the
12248         author info is incomplete anyway.
12249         * libio/Banner: Likewise.
12251         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12252         code, make sure the nis_freeresult call doesn't crash and that the
12253         result is reported correctly.
12255 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12257         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12258         when callback is NULL.
12260         * nis/Versions (libnss_nisplus): Add
12261         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12262         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12263         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12264         _nss_create_tablename): Rename to...
12265         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12266         ... these.  No longer static.
12267         (internal_setgrent): Adjust users.
12268         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12269         Don't use locking around _nss_grp_create_tablename call.
12270         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12272 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12274         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12276 2006-10-06  Andreas Jaeger  <aj@suse.de>
12278         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12280 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12282         * po/pl.po: Update from translation team.
12284         * nscd/nscd.c (main): Fix typo in message.
12285         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12287 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12289         [BZ #3291]
12290         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12291         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12292         (__sigprocmask): Define.
12294 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12296         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12297         used.
12299 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12301         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12302         in oldtotal and newtotal calculation.
12303         * nscd/nscd-client.h (struct mapped_database): Add datasize
12304         field.
12305         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12306         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12307         increased.
12308         (__nscd_cache_search): Add checks to make sure we never reference
12309         data beyond the current mapping.
12311 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12313         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12314         variables const to avoid compiler warnings.
12316         * io/fts.c (fts_close): Remove redundant checks.
12317         (fts_build): Likewise.
12318         (fts_palloc): Likewise.
12320         * manual/message.texi (Advanced gettext functions,
12321         Using gettextized software): Fix typos.
12323 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12325         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12326         explain why there are no leaks.
12328 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12330         * libio/wmemstream.c: Include <wchar.h>.
12331         * libio/bug-wmemstream1.c: Likewise.
12332         * libio/tst-wmemstream1.c: Likewise.
12333         * libio/tst-wmemstream2.c: Likewise.
12335         * version.h (RELEASE): Bump to 2.5.
12336         * README: Regenerated.
12338         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12340         [BZ #3273]
12341         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12342         found no group members.
12343         Patch by Petr Baudis.
12345 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12347         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12348         assert bootstrap_map.l_tls_modid is zero.
12349         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12350         if USE___THREAD.
12352 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12354         * libio/stdio.h: Move open_wmemstream prototype to ...
12355         * wcsmbs/wchar.h: ... here.
12357 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12359         [BZ #3252]
12360         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12361         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12362         __{,l}chown to handle the rest.
12363         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12364         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12365         __{,l}chown to handle the rest.
12366         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12367         i386/fchownat.c.
12368         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12369         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12371         [BZ #3253]
12372         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12373         time, rather allocate increasingly bigger arrays of pointers, if
12374         possible with alloca, if too large with malloc.
12376 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12378         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12380         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12382 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12384         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12385         home addresses.
12386         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12387         IFA_F_HOMEADDRESS flag for interfaces.
12388         * include/ifaddrs.h (struct in6addrinfo): Define
12389         in6ai_homeaddress.
12391 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12393         [BZ #3225]
12394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12395         PTR_DEMANGLE3): Define.
12396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12397         PTR_DEMANGLE3): Likewise.
12398         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12399         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12400         Likewise.
12401         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12403 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12405         * po/libc.pot: Regenerated.
12406         * po/be.po: Updated.
12407         * po/ca.po: Likewise.
12408         * po/cs.po: Likewise.
12409         * po/da.po: Likewise.
12410         * po/de.po: Likewise.
12411         * po/el.po: Likewise.
12412         * po/en_GB.po: Likewise.
12413         * po/es.po: Likewise.
12414         * po/fi.po: Likewise.
12415         * po/fr.po: Likewise.
12416         * po/gl.po: Likewise.
12417         * po/hr.po: Likewise.
12418         * po/hu.po: Likewise.
12419         * po/ja.po: Likewise.
12420         * po/ko.po: Likewise.
12421         * po/nb.po: Likewise.
12422         * po/nl.po: Likewise.
12423         * po/pl.po: Likewise.
12424         * po/pt_BR.po: Likewise.
12425         * po/ru.po: Likewise.
12426         * po/rw.po: Likewise.
12427         * po/sk.po: Likewise.
12428         * po/sv.po: Likewise.
12429         * po/tr.po: Likewise.
12430         * po/zh_CN.po: Likewise.
12431         * po/zh_TW.po: Likewise.
12433         [BZ #3137]
12434         * iconv/iconv_prog.c (main): Fix spelling in error message.
12435         * iconv/iconvconfig.c (main): Likewise.
12436         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12437         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12438         * locale/programs/localedef.c (main): Likewise.
12439         * locale/programs/repertoire.c (repertoire_read): Likewise.
12440         * timezone/zdump.c (main): Likewise.
12441         * nscd/connections.c (handle_request): Fix spelling in log message.
12442         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12444 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12446         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12447         interfaces.
12449 2006-09-20  Andreas Jaeger  <aj@suse.de>
12451         * math/libm-test.inc (lrint_test_upward): Fix typo.
12453 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12455         [BZ #2592]
12456         * math/libm-test.inc (lrint_test_tonearest): New function.
12457         (lrint_test_towardzero): New function.
12458         (lrint_test_downward): New function.
12459         (lrint_test_upward): New function.
12460         (main): Run these new tests.
12461         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12462         of values near to 0.
12463         (two52): Use double not long double.
12464         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12465         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12466         (two23): Use float not double.
12467         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12468         (two23): Use float not double.
12469         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12470         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12471         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12472         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12474 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12476         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12477         Cast sp to unsigned long to avoid compiler warning.
12478         Use __makecontext_ret function instead of a trampoline on the stack.
12479         (__makecontext_ret): New function.
12480         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12482 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12484         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12485         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12486         bits.
12488 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12490         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12491         sure no reference to the unloaded map's search list remains in the
12492         dependency's scope.
12494 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12496         * elf/Makefile: Add rules to build and run unload7 test.
12497         * elf/unload7.c: New test.
12498         * elf/unload7mod1.c: New file.
12499         * elf/unload7mod2.c: New file.
12501 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12503         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12504         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12505         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12506         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12507         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12508         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12509         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12510         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12511         PTRACE_GETEVENTMSG): Likewise.
12512         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12513         values.
12515 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12517         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12518         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12519         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12520         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12522 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12524         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12525         write '\0' to the fd.
12526         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12527         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12528         Change regs to unsigned long pointer from unsigned int, fix fscr
12529         offset.
12531 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12533         * io/Makefile (CFLAGS-fstatat.c): Set.
12534         (CFLAGS-fstatat64.c): Likewise.
12535         (CFLAGS-mknodat.c): Likewise.
12537         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12538         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12539         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12540         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12542 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12543             Steven Munroe  <sjmunroe@us.ibm.com>
12545         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12546         names to the beginning.  Rename "cell" to "cellbe".
12547         (_dl_powerpc_platforms): New.
12548         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12549         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12550         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12551         (_DL_HWCAP_PLATFORM): Define to new mask.
12552         (_dl_platform_string, _dl_string_platform): New functions.
12553         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12554         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12556 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12558         [BZ #2526]
12559         * README.libm: Fix a thinko in sqrt algorithm description.
12561         [BZ #3143]
12562         * manual/string.texi (argz_delete): Fix prototype.
12563         Patch by <alpt@freaknet.org>.
12565 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12567         [BZ #3138]
12568         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12569         * io/tst-fcntl.c (do_prepare): Likewise.
12570         * posix/tst-exec.c (do_prepare): Likewise.
12571         * posix/tst-preadwrite.c (do_prepare): Likewise.
12572         * posix/tst-spawn.c (do_prepare): Likewise.
12573         * posix/tst-truncate.c (do_prepare): Likewise.
12574         * rt/tst-aio.c (do_prepare): Likewise.
12575         * rt/tst-aio64.c (do_prepare): Likewise.
12576         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12577         size_t.
12579 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12581         [BZ #2821]
12582         * time/mktime.c (guess_time_tm): Fix overflow detection.
12583         * time/Makefile (tests): Add bug-mktime1.
12584         * time/bug-mktime1.c: New file.
12586         [BZ #3189, #3188]
12587         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12588         (mremap): Likewise.
12590 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12592         [BZ #1006]
12593         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12594         Ensure relocation doesn't clobber any bits outside of the
12595         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12596         R_SPARC_HI22 and R_SPARC_H44.
12598         [BZ #2775]
12599         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12600         (long) (MINSIZE + nb - old_size) is positive.
12602         * malloc/arena.c (grow_heap): When growing bail even if new_size
12603         is negative.
12605         [BZ #3155]
12606         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12607         stack below r1.
12609 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12611         * posix/regex_internal.c (re_string_reconstruct): Handle
12612         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12613         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12614         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12615         re_string_context_at.
12616         * posix/Makefile: Add rules to build and run bug-regex26 test.
12617         * posix/bug-regex26.c: New test.
12619         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12620         rather than col_sym_free.  Move seqp declaration earlier.
12622         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12624 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12626         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12627         decl before first goto out.
12629 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12631         * Makerules (shlib.lds): If have-hash-style, put .hash section
12632         at the end of the RO segment.
12634 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12636         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12637         style hash table format is used.
12639 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12641         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12642         randomization rather than before.
12643         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12645 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12647         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12649         * malloc/malloc.c (_int_malloc): Use full list insert and not
12650         shortcut which assumes the list is empty for large requests
12651         too.
12653         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12655 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12657         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12658         and offout arguments to the prototype.
12659         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12660         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12661         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12662         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12663         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12664         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12665         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12666         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12668 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12670         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12672         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12673         dlopen parameters.
12675 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12677         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12678         only if herrno is NETDB_INTERNAL.  Handle errors other than
12679         ERANGE outside of the loops, handle TRY_AGAIN.
12681         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12682         if other's ctype category was missing.
12683         * locale/programs/ld-collate.c (collate_read): Return if
12684         copy_locale's collate category is missing.
12686 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12688         [BZ #2684]
12689         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12690         arenas if allocation failed.
12691         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12693 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12695         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12696         waste bins[0..1].
12697         (malloc_state): Reduce bins size by 2.
12698         (_int_malloc): Fix test for large enough buffer for early termination.
12699         When no unsorted block matches perfectly and an exiting block has
12700         to be split, use full list insert and not shortcut which assumes
12701         the list is empty.
12703         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12704         failure.
12706 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12708         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12709         do anything.
12711         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12712         symbol require exact match (these are PLTs).
12713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12714         (_dl_ppc64_addr_sym_match): Likewise.
12716         [BZ #2683]
12717         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12718         If symbol has a value use it.
12719         * elf/tst-dladdr1.c: New file.
12720         * elf/Makefile: Add rules to build and run tst-addr1.
12722 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12724         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12725         keeps failing and heap growth or new heap creation isn't
12726         successful either.
12727         * malloc/tst-malloc.c (main): Add new tests.
12729 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12731         [BZ #2734]
12732         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12733         as in the x86-64 code to use bswap.
12735 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12737         [BZ #2680]
12738         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12739         __USE_UNIX98.
12740         * posix/bits/unistd.h: Likewise.
12742 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12744         [BZ #2751]
12745         * string/strchr.c: Add cast to avoid warning.
12747 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12749         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12750         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12751         limit is needed to avoid the exploding of the address space
12752         requirement for secondary heaps.
12753         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12754         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12756 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12758         [BZ #3018]
12759         * Makerules (depfiles): Handle extra-test-objs the same as
12760         extra-objs.
12761         (common-mostlyclean): Likewise.
12762         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12763         instead.
12764         * elf/Makefile (extra-objs): Likewise.
12765         * stdlib/Makefile (extra-objs): Likewise.
12767 2006-08-14  Eric Blake  <ebb9@byu.net>
12769         [BZ #3044]
12770         * misc/error.h: Assume C89 or better.
12771         * misc/error.c: Likewise.
12773 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12775         [BZ #3040]
12776         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12777         __ASSUME_ATFCTS is defined.
12779 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12781         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12782         to sort in each call.
12784         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12785         is empty simply return and use next service.
12786         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12788         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12789         tells us when not finding a charmap file is an error.
12790         * locale/programs/charmap.h: Adjust charmap_read prototype.
12791         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12792         cannot find a charmap.
12793         * locale/programs/localedef.c (main): Adjust charmap_read call.
12795 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12797         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12798         sysdeps/posix/pause.c implementation instead.
12800 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12802         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12803         to EPERM.
12805 2006-08-13  Andreas Schwab  <schwab@suse.de>
12807         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12808         Don't clobber caller's LRSAVE.
12809         (_dl_prof_resolve): Likewise.
12811 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12813         [BZ #1996]
12814         * libio/memstream.c (open_memstream): Allocate initial buffer with
12815         calloc.
12816         * libio/wmemstream.c (open_wmemstream): Likewise.
12817         * libio/strops.c: Pretty printing.
12818         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12819         (enlarge_userbuf): New function.
12820         (_IO_str_seekoff): Call it if seek position is larger than current
12821         buffer.
12822         * libio/wstrops.c: Likewise.
12823         * libio/vasprintf.c: Add comment as to why we do not have to use
12824         calloc instead of malloc to allocate initial buffer.
12825         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12826         * libio/bug-memstream1.c: New file.
12827         * libio/bug-wmemstream1.c: New file.
12829 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12831         * libio/wstrops.c: Remove dead macro definitions and comments.
12832         * libio/strops.c: Likewise.
12834         [BZ #2764]
12835         * login/utmpname.c (__utmpname): Remove unnecessary test.
12837 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12839         [BZ #2832]
12840         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12841         0s from integers.
12843 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12845         [BZ #2987]
12846         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12847         for CPU clocks.
12848         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12849         setting of CPU clocks.
12851 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12853         [BZ #2841]
12854         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12855         since C99 requires the result to promote to 'int' when uint_least8_t
12856         and uint_least16_t promote to 'int'.
12858 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12860         [BZ #3013]
12861         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12862         lenght of one output field, correct bitmask creation.
12863         * locale/programs/ld-time.c: Add alignment.
12865         [BZ #2997]
12866         * misc/error.c: Add space between program name and message if file
12867         name is missing.
12869 2006-08-03  Eric Blake  <ebb9@byu.net>
12871         [BZ #2998]
12872         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12874 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12876         * malloc/memusagestat.c: Silence warnings.
12878         * malloc/malloc.c: Dynamically size mmap treshold if the program
12879         frees mmaped blocks.
12880         Patch by Valerie Henson and Arjan van de Ven.
12882 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12884         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12885         __USE_GNU.
12887         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12888         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12889         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12890         Only provide var definitions in strtol_l (or for *ull*
12891         in strtoll_l).
12893         * stdio-common/bug16.c (tests): New array.
12894         (do_tests): Allow the first hexadecimal digit
12895         to be 1, 2, 4 or 8.  Do 3 additional tests.
12897         * sysdeps/s390/fpu/libm-test-ulps: Update.
12899         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12900         fchownat syscall if available.
12901         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12902         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12903         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12905 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12907         * nis/nis_xdr.c: Avoid some function calls.
12909 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12910             Ulrich Drepper  <drepper@redhat.com>
12912         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12913         short cut if only one name component is stripped away.
12915 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12917         * nis/nis_call.c: Minor cleanups throughout.
12918         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12919         (first_shoot): Add search_parent_first parameter.  Only if it is set
12920         search parent server first.
12921         If directory for table found through cold start cache is not the same
12922         as referenced in the cache, don't use it.
12923         (__nisfind_server): Take additional parameter.  Pass it on to
12924         first_shoot.
12925         (__prepare_niscall): Adjust __nisfind_server call.
12926         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12927         * nis/nis_table.c: Adjust __nisfind_server call.
12928         * nis/nis_lookup.c: Likewise.
12929         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12931 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12933         [BZ #2182]
12934         * math/s_cacosh.c: Return values from positive branch.
12935         * math/s_cacoshf.c: Likewise.
12936         * math/s_cacoshl.c: Likewise.
12938         [BZ #2883]
12939         * sysvipc/sys/msg.h: Change return value to ssize_t.
12940         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12941         * sysvipc/msgrcv.c: Likewise.
12942         * include/sys/msg.h: Likewise.
12944         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12945         test introduced in patch for bz #661.
12946         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12947         element for NEWGROUPS.
12949         [BZ #2908]
12950         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12951         'f', use '1' as leading digit not '\1'.
12952         * stdio-common/Makefile (tests): Add bug16.
12953         * stdio-common/bug16.c: New file.
12955         [BZ #2914]
12956         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12957         and don't try to open it.  The patch introducing the macro
12958         contained a bug and used the same file name as the new file
12959         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12960         this out completely.
12962         [BZ #2926]
12963         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12964         Patch by Jerry James <Jerry.James@usu.edu>.
12966         * rt/Makefile (tests): Add tst-clock2.
12967         * rt/tst-clock2.c: New file.
12969         [BZ #2978]
12970         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12971         function and its parameters and pass it to new thread.
12972         (__gai_notify): Add support for alternative waiting for completion.
12973         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12974         waiting for completion.
12975         * resolv/getaddrinfo_a.c: Likewise.
12976         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12977         waiting for completion is used.
12978         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12979         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12980         * resolv/gai_error.c: Likewise.
12981         * resolv/gai_sigqueue.c: Likewise.
12983 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12985         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12986         errno to EBADF and return MACH_PORT_NULL.
12988 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12990         [BZ #2980]
12991         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12993 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12995         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12996         walk them instead of the symbol table.
12998 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13000         [BZ #2098]
13001         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13002         status of NSS calls, not the number of returned entries.
13004         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13005         request_key, keyctl.
13007 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13009         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13011 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13013         * elf/tst-auditmod1.c: Fix typo in #error.
13015 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13017         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13019         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13021 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13023         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13024         that the directory is empty even on non-POSIX filesystems.
13026 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13028         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13030         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13031         the backend NSS module.  If backend setgrent call failed, don't have
13032         internal_setgrent fail.  Just remember this until it is needed.
13033         * nis/nss_compat/compat-pwd.c: Likewise.
13034         * nis/nss_compat/compat-spwd.c: Likewise.
13036 2006-07-30  Roland McGrath  <roland@redhat.com>
13038         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13039         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13040         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13041         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13043         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13044         (nanosleep_not_cancel): New macro.
13045         (sigsuspend_not_cancel): new macro.
13046         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13047         (do_sigsuspend): Define as inline.
13048         (__sigsuspend): Always use do_sigsuspend.
13049         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13050         * include/signal.h: Declare __sigsuspend_nocancel.
13051         * sysdeps/posix/pause.c
13052         [! NO_CANCELLATION] (__pause_nocancel): New function.
13054         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13055         * include/time.h (__nanosleep_nocancel): Likewise.
13057 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13059         * locale/programs/localedef.c (add_to_readlist): Rename local
13060         variables to avoid confusion.
13062         * locale/programs/charmap.c (charmap_read): Emit error message if
13063         charmap couldn't be found or read.
13065 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13067         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13068         __ASSUME_FUTEX_LOCK_PI.
13069         * include/time.h: Declare __nanosleep_nocancel.
13070         * include/unistd.h: Declare __pause_nocancel.
13072         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13073         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13074         get the __stack_chk_fail_local definition when it's needed.
13076 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13078         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13079         * dlfcn/bug-atexit3.c: New file.
13080         * dlfcn/bug-atexit3-lib.cc: New file.
13082         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13083         used when the namespace is not the base namespace.
13085 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13087         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13088         (__new_exitfn): Bump it in every successful call.
13089         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13090         more exit handlers, call them right away.
13091         * stdlib/exit.h: Declare __new_exitfn_called.
13093 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13095         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13096         calling registered handler.
13098         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13099         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13100         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13101         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13102         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13103         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13104         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13105         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13107 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13109         * elf/dl-lookup.c (dl_new_hash): New functions.
13110         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13111         value here.  Compute new-style hash value.  Pass new hash value
13112         and reference to variable with the old value to do_lookup_x.
13113         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13114         old-style hash table.
13115         (_dl_debug_bindings): Pass new hash value and reference to variable
13116         with the old value to do_lookup_x.
13117         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13118         new-style hash value and change old-style hash value parameter to
13119         be a reference.  Reoganize functions to determine whether
13120         new-style hash table is available.  Only fall back on old-style
13121         table.  If old-style hash value is needed, compute it here.
13122         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13123         entry.
13124         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13125         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13126         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13127         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13128         * Makeconfig: If linker supports --hash-style option add it to all
13129         linker command lines to build DSOs.
13130         * config.make.in: Define have-hash-style.
13131         * configure.in: Test whether linker supports --hash-style option.
13133         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13134         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13136 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13138         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13139         auditing.
13141         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13142         RPATH of main map twice.
13144 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13146         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13147         look further, return original strings.
13148         (_nl_find_msg): Do not return found translation if the conversion
13149         failed.  Either signal the string is unusable or that something went
13150         wrong and the original should be used.
13152 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13154         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13156 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13158         [BZ #2766]
13159         * misc/insremque.c (insque): Handle prev == NULL.
13160         * misc/Makefile (tests): Add tst-insremque.
13161         * misc/tst-insremque.c: New test.
13163 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13165         [BZ #2792]
13166         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13167         conflict with DL_DST_REQUIRED.
13169 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13171         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13172         match what Solaris does.
13174 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13176         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13177         local_setegid instead of seteuid and setegid.
13178         * sysdeps/generic/local-setxid.h: New file.
13179         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13181         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13183         * string/Makefile (tests): Add bug-envz1.
13184         * string/bug-envz1.c: New file.
13186 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13188         * posix/regex_internal.c (re_string_skip_chars): If no character has
13189         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13190         to the byte which couldn't be converted.
13191         (re_string_reconstruct): Don't clear valid_raw_len before calling
13192         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13193         tip_context using re_string_context_at.
13194         * posix/Makefile: Add rules to build and run bug-regex25 test.
13195         * posix/bug-regex25.c: New test.
13197 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13199         [BZ #2703]
13200         * string/envz.c (envz_strip): Correct erroneously reversed src
13201         and dest parameters to memmove() invocation.
13203 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13205         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13206         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13207         to make sure the database has been already invalidated.
13208         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13209         after the cache has been invalidated.  Use pthread_mutex_lock rather
13210         than pthread_mutex_trylock if fd != -1.
13211         * nscd/connections.c (invalidate_cache): Add fd argument, write
13212         response to fd if not calling prune_cache, pass fd to prune_cache.
13213         (handle_request): Adjust invalidate_cache caller.
13214         (nscd_run): Pass -1 as fd to prune_cache.
13216 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13218         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13219         the correct place.
13221 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13223         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13224         * nscd/cache.c (prune_cache): Take prunelock before starting the
13225         work.  Just return in case it is already taken.
13226         * nscd/connections.c (dbs): Initialize .prunelock.
13228 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13230         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13231         copying.  No need to allocate new array for group members.  Just
13232         move the pointers and update the size.
13234         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13235         Avoid memory leak in case realloc fails.  Simplification for
13236         better code generation.
13238         Avoid deprecation warning because of libc_hidden_proto for
13239         inet6_option_alloc.
13240         * inet/inet6_option.c (option_alloc): Renamed from
13241         inet6_option_alloc.  Made static.
13242         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13243         (inet6_option_append): Call option_alloc.
13244         * include/netinet/in.h: Remove libc_hidden_proto for
13245         inet6_option_alloc.
13247         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13248         for cleanup when cb!=NULL [Coverity CID 233].
13250 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13252         [BZ #2693]
13253         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13254         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13255         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13256         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13257         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13258         and inet6_rth_getaddr.
13259         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13260         array.
13261         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13262         Mark inet6_option_* interfaces as deprecated.
13263         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13264         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13265         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13266         inet6_rth_segments, and inet6_rth_getaddr.
13267         * inet/inet6_opt.c: New file.
13268         * inet/inet6_rth.c: New file.
13270         * inet/netinet/icmp6.h: Pretty printing.
13272         [BZ #2683]
13273         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13275 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13277         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13278         doing it all here.  When server does not know the answer do not
13279         fail immediate, try parent first.
13281         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13282         overflow test.
13284 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13286         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13287         from __do_niscall.
13288         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13289         and exported.
13290         (__follow_path): New function.  Split out from nis_list.
13291         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13292         _xdr_nis_result.
13293         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13294         _xdr_nis_result.
13295         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13296         and __follow_path.
13297         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13298         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13299         from libnsl for version GLIBC_PRIVATE.
13300         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13301         Remove entry parameter from _nss_nisplus_parse_pwent and
13302         _nss_nisplus_parse_grent.
13303         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13304         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13305         again.  Rewrite getpwent handling to not use nis_first_entry and
13306         nis_next_entry.  Roll out own niscall handling.
13307         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13309         * sunrpc/xdr_rec.c: Fix typo in comment.
13311 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13313         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13314         handling.
13316         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13317         to allocate memory for my_pollfd.  Better initialization of
13318         cb_is_running.  Use TEMP_FAILURE_RETRY.
13320         * malloc/memusage.sh (memusageso): Add quotes.
13321         (memusagestat): Likewise.
13322         * debug/xtrace.sh (pcprofileso): Likewise.
13323         (pcprofiledump): Likewise.
13324         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13325         replacement.
13326         * malloc/Makefile ($(objpfx)memusage): Likewise.
13328         * nis/nis_callback.c (__nis_create_callback): Calls to
13329         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13330         asprintf call fails.
13332         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13333         no uninitialized memory is passed to sendto.
13335 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13337         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13338         of snprintf+strdup.  Handle OOM.
13339         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13340         cb->serv together.  Remove now obsolete free calls.
13341         (__nis_destroy_callback): Remove now obsolete free call.
13343 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13345         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13346         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13347         and ULA respectively). Set precedence for IPv4 address to 10 as
13348         defined in RFC3484 for preferring IPv6.
13349         * posix/gai.conf: Update to match the new default tables.
13351 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13353         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13354         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13355         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13356         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13358         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13359         Removed.
13360         (init_nss_interface): Remove initialization of these variables.
13362 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13364         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13365         nis_free_directory forward to avoid duplication.
13367 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13369         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13370         rec_dirsearch returning NULL.
13371         (first_shoot): Handle __nis_finddirectory returning NULL.
13372         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13374         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13375         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13377 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13379         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13380         pid changed.
13382 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13384         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13386         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13387         * nscd/nscd_getgr_r.c: Likewise.
13389         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13391         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13392         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13394         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13396         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13398         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13400         * include/rpc/auth.h: Mark xdr_des_block_internal and
13401         xdr_opaque_auth_internal as hidden.
13403         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13404         hidden.
13406         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13408         * misc/getusershell.c (okshells): Don't use static initializers,
13409         do it dynamically.
13411         * stdlib/fmtmsg.c (keywords): Change type of len element to
13412         uint32_t to not waste space on 64bit machines.
13414         * locale/setlocale.c: Change _nl_category_names into a string.
13415         Add new _nl_category_name_idxs.  Change all users.
13416         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13417         Declare _nl_category_name_idxs.
13418         * locale/findlocale.c: Adjust for _nl_category_names change.
13419         * locale/loadlocale.c: Likewise.
13420         * locale/newlocale.c: Likewise.
13421         * intl/dcigettext.c: Likewise.
13423         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13424         (add_alias2): ...here.  New function.
13425         (__gconv_read_conf): Simplify builtin alias handling.
13426         (builtin_aliases): Convert to string to avoid relocations.
13427         * iconv/gconv_builtin.h: Add comment about correct formatting.
13429 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13431         * resolv/res_debug.c (loc_ntoa): Make error const.
13433 2006-05-14  Andreas Schwab  <schwab@suse.de>
13435         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13437 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13439         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13440         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13441         sizeof (cpu_set_t).
13443 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13445         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13447         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13449         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13450         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13452         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13453         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13455         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13456         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13457         xdr_cback_data.
13459         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13460         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13461         xdr_ypupdate_args.
13463         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13464         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13466         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13467         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13469         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13470         * include/rpcsvc/nis_callback.h: New file.
13472         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13473         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13475         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13476         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13478         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13479         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13481         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13482         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13484         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13485         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13486         xdr_ypdelete_args.
13488         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13489         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13491         * nis/nis_error.c: Remove table of strings.  Use position
13492         independent mechanism.
13493         * nis/nis_error.h: New file.
13495 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13497         * locale/programs/ld-time.c (time_finish): If wide era name or
13498         format aren't provided, set both wname and wformat to L"".
13500 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13502         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13503         results if the call was succesful.
13505         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13507         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13508         as hidden.
13510 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13512         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13514 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13516         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13517         caller makes sure this is not the case.
13518         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13520 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13522         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13523         calls.
13525         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13526         [Coverity CID 229, 230]
13528         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13529         DGETTEXT calls.
13530         (hol_help): Likewise.  [Coverity CID 226, 227]
13532         * string/argz-replace.c (__argz_replace): Unconditionally call
13533         free on SRC.  [Coverity CID 225]
13535         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13536         the return value of __nis_default_owner and __nis_default_group,
13537         it has been especially allocated.  [Coverity CID 224]
13539         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13540         searchgroup and searchowner.  Significantly simplified.
13541         (__nis_default_owner): Remove duplication.  Do not locally copy the
13542         string before duplicating it.
13543         (__nis_default_group): Likewise.
13545         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13546         we must clear the variable before calling __nisfind_server.
13548         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13549         nis_getnames.  [Coverity CID 223]
13551         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13552         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13554         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13555         allocate memory for the input to add_bytes.  [Coverity CID 221]
13557         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13558         was allocated here.  [Coverity CID 219, 220]
13560         * posix/getconf.c (print_all): Free confstr data after printing.
13561         [Coverity CID 218]
13563         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13564         list allocation fails.  [Coverity CID 215]
13566         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13567         [Coverity CID 213]
13569         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13570         string is NULL.  [Coverity CID 212]
13571         * argp/Makefile: Add rules to build and run bug-argp1.
13572         * argp/bug-argp1.c: New file.
13574         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13575         end of string.
13576         * stdlib/canonicalize.c (__realpath): Likewise.
13578         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13579         pointer.  [Coverity CID 206]
13581         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13582         in statically linked code.
13583         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13584         statically built code, be prepared to have no link map.
13585         [Coverity CID 205]
13587         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13588         dgettext calls. [Coverity CID 204]
13590         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13591         the one user.
13592         (uparam_names): Reduce size.  Avoid relative relocations.
13593         Moved to read-only segment.
13594         (fill_in_uparams): Update for new layout.
13596         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13597         assumed to always be != NULL. [Coverity CID 202]
13599         * argp/argp-help.c (hol_entry_help): Remove some dead code
13600         [Coverity CID 200].
13602         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13603         away a few more unconditional yperr2nss calls.
13604         (_nss_nis_getservbyname_r): Likewise.
13606 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13608         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13609         architectures.
13611         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13612         that unused memory passed to sendto is nevertheless initialized.
13614         [BZ #2499]
13615         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13616         possibly unaligned memory accesses.
13618         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13619         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13620         and __putlong respectively.  Correct buffer overflow check for
13621         NS_NOTIFY_OP.
13623         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13625         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13626         (send_dg): Rewrite error handling to be more compact and avoid
13627         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13629         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13631         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13632         instead of ns_get16.
13633         (res_queriesmatch): Likewise.  Minor optimization.
13635         [BZ #2499]
13636         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13637         __libc_res_nsend might reallocate the buffer for the answer.  In
13638         this case we have to reload the HP pointer.
13640 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13642         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13643         some branch prediction hints.
13645         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13646         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13647         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13648         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13649         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13650         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13651         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13652         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13654 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13656         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13657         by a GOT relocation to make Scrt1.o position independent.
13658         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13660         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13661         six system call parameters.
13662         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13664 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13666         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13667         malloc&bzero.
13669         * sunrpc/svc_udp.c (BZERO): Remove definition.
13670         (CALLOC): Define.
13671         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13673         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13674         (des_SPtrans): Use uint32_t type.
13675         (des_skb): Likewise.
13677         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13679 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13681         [BZ #2509]
13682         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13683         on 32-bit arches.
13685 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13687         * locale/programs/ld-address.c (address_finish): Fix one more
13688         place where the iso639 array might be accessed beyond the limits.
13690 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13692         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13693         filling it for the first time.
13695         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13696         Adjust all callers.
13697         Free res object content before returning.
13699         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13701         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13702         client->cl_auth.
13704         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13705         cleanup for initial thread, just the free call on TVP.
13707         * nscd/gai.c (__getline): Define.
13710 See ChangeLog.16 for earlier changes.