Change misleading names of parameters of sync_file_range.
[glibc.git] / ChangeLog
blob03c0cab7a2922ed1b44c31f205444209467ead13
1 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
4         of parameters of sync_file_range.
5         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
14         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
15         Implement using sync_file_range2 syscall if __NR_sync_file_range2
16         is defined.
17         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
18         file.
20 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
22         * posix/bug-regex30.c: New file.
23         * posix/Makefile: Add rules to build and run bug-regex30.
24         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
25         character lead bytes when there is a range in a COMPLEX_BRACKET.
26         Reported by Oleg Bylatov.
28 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
30         [BZ #10969]
31         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
32         * locale/tst-duplocale.c: New file.
33         * locale/Makefile (tests): Add tst-duplocale.
35         [BZ #10968]
36         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
37         Patch by Bruno Haible <bruno@clisp.org>.
38         * locale/tst-locname.c: New file.
39         * locale/Makefile (tests): Add tst-locname.
41         [BZ #10972]
42         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
43         constants from recent kernels.
44         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
45         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
46         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
47         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
48         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
49         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
51 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
53         [BZ #10162]
54         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
55         software pipeline.
57 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
59         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
60         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
61         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
63 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
65         * posix/bug-regex29.c: Include stdio.h.
67 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
69         [BZ #10939]
70         * Versions.def: Define GLIBC_2.12 for libc.
71         * manual/errno.texi: Add ERFKILL entry.
72         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
73         for 2.12.
74         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
75         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
77         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
78         F_GETOWN_EX definitions according to corrected kernel definitions.
79         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
80         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
82         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
83         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
84         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
86 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
88         * version.h: Bump for 2.12 development.
90 2009-11-10  Andreas Schwab  <schwab@redhat.com>
92         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
93         out of buffer space.
94         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
95         map_v4v6_hostent running out of space.
97 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
99         * string/bits/string3.h (memset): If the second parameter is constant
100         and zero there is likely no transposition.
101         Patch by Caolan McNamara <caolanm@redhat.com.
103 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
105         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
106         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
108 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
110         * malloc/memusagestat.c (main): Fix spelling in an error message.
112 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
114         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
115         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
117 2009-11-03  Andreas Schwab  <schwab@redhat.com>
119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
120         readahead.
122 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
124         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
125         relocate opd entry when resolving prelink conflicts.
127 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
129         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
130         when -D_FILE_OFFSET_BITS=64.
132         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
133         of last two arguments when -D_FILE_OFFSET_BITS=64.
134         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
135         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
136         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
137         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
138         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
139         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
141 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
143         [BZ #4457]
144         * sysdeps/generic/libgcc_s.h: New file.
145         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
147 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
149         * malloc/hooks.c (free_check): Restore locking and call _int_free
150         appropriately.
152 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
154         * version.h (VERSION): Bump for 2.11 release.
155         * include/features.h (__GLIBC_MINOR__): Bump to 11.
157         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
159         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
161         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
162         to avoid warning.
163         * stdlib/tst-strtoll.c (tests): Likewise.
165         [BZ #9986]
166         * time/strftime_l.c (__strftime_internal): Allow %OC.
168         * misc/mkostemps.c: New file.
169         * misc/mkostemps64.c: New file.
171 2009-10-30  Andreas Schwab  <schwab@redhat.com>
173         * locale/programs/locale-spec.c: Include <error.h> and
174         <libintl.h>.
176         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
178 2009-10-28  Roland McGrath  <roland@redhat.com>
180         * Makefile (dist-prepare): New target.
181         (tag-for-dist): Target removed.
182         (glibc-%.tar): Pattern rule removed.
183         (%.tar): New pattern rule, does simple use of git archive.
184         (dist-version): Remove variable definition.
185         (dist): Just depend on that.  Add .tar.xz dependency.
186         If dist-version variable not set on command line, depend on
187         dist-prepare, re-invoke with dist-version set via git describe.
189         * Makerules (%.xz): New pattern rule.
191 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
193         * elf/ifuncdep2.c: Include ifunc-sel.h.
194         (global): Delete.
195         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
196         * elf/ifuncmain1.c (global): Delete.
197         * elf/ifuncmain1vis.c: Likewise.
198         * elf/ifuncmain2.c: Likewise.
199         * elf/ifuncmain5.c: Likewise.
200         * elf/ifuncmod3.c: Likewise.
201         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
202         (foo_ifunc): Use ifunc_one.
203         * elf/ifuncmain7.c: Likewise.
204         * elf/ifuncmod1.c: Include ifunc-sel.h.
205         (global): Define protected var.
206         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
207         * elf/ifuncmod5.c: Likewise.
208         * sysdeps/generic/elf/ifunc-sel.h: New file.
209         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
211 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
213         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
214         (R_PPC_REL16*): Correct comments.
215         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
216         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
217          R_PPC64_REL16_HA): Define.
218         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
219         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
220         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
221         Delete unused "reloc" param.
222         (__process_machine_rela): Handle R_PPC_IRELATIVE.
223         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
224         Delete "reloc" param.
225         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
226         R_PPC_IRELATIVE.
227         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
228         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
229         relocations.
231 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
233         [BZ #10315]
234         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
235         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
236         UDP_ENCAP_L2TPINUDP.
238         [BZ #10349]
239         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
240         parameter, specifying length of prefix.
241         * stdio-common/tempname.c: Likewise.
242         * include/stdio.h: Adjust prototypes.
243         * libio/oldtmpfile.c: Adjust caller.
244         * misc/mkdtemp.c: Likewise.
245         * misc/mkostemp.c: Likewise.
246         * misc/mkostemp64.c: Likewise.
247         * misc/mkstemp.c:  Likewise.
248         * misc/mkstemp64.c: Likewise.
249         * misc/mktemp.c: Likewise.
250         * stdio-common/tempnam.c: Likewise.
251         * stdio-common/tmpfile.c: Likewise.
252         * stdio-common/tmpnam.c: Likewise.
253         * stdio-common/tmpnam_r.c: Likewise.
254         * misc/mkstemps.c: New file.
255         * misc/mkstemps64.c: New file.
256         * stdlib/stdlib.h: Add prototypes.
257         * misc/Makefile (routines): Add mkstemps and mkstemps64.
258         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
260 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
262         * locale/iso-639.def: Add sml entry.
264         [BZ #10391]
265         * resolv/res_send.c (send_dg): Initialize resplen.
267         [BZ #10446]
268         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
269         definition to the kernel's.
270         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
272 2009-08-18  Anders Johansson  <ajohansson@novell.com>
274         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
275         offsets and record sizes in assert()s and response sending.
276         * nscd/grpcache.c: Likewise.
277         * nscd/hstcache.c: Likewise.
278         * nscd/initgrcache.c: Likewise.
279         * nscd/pwdcache.c: Likewise.
281 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
283         [BZ #10540]
284         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
285         /etc/hosts does not exist set errnop and herrnop appropriately.
286         Patch by Steve Langasek <vorlon@debian.org>.
288         [BZ #10553]
289         * malloc/malloc.c (malloc_info): Fix typos in format strings.
290         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
292         [BZ #10564]
293         * login/utmp_file.c (TIMEOUT): Increase to 10.
295         [BZ #10609]
296         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
297         for file names in case the syscall is not available.
298         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
299         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
300         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
301         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
302         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
303         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
304         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
305         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
306         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
307         * sysdeps/unix/sysv/linux/openat.c: Likewise.
308         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
309         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
310         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
311         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
312         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
313         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
314         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
316         [BZ #10643]
317         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
318         creation filed, remove the request from the 'requests' list and signal
319         the caller that the request is finished.
321         [BZ #10692]
322         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
323         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
325         [BZ #10713]
326         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
327         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
329         [BZ #10780]
330         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
331         overflows the int return type.
333         [BZ #10717]
334         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
335         have to compute maxsize_total, we have to update the variables, and
336         the also_total handling must happen after the repair.
338         [BZ #10742]
339         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
340         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
342 2009-10-27  Andreas Schwab  <schwab@redhat.com>
344         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
345         errno is always set when returning unsuccessfully.
347 2009-10-29  Andreas Schwab  <schwab@redhat.com>
349         * malloc/memusage.c (update_data): Fix index wraparound handling
350         so that buffer_cnt is actually reset.
352 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
354         [BZ #10784]
355         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
356         of the directory we look at into the static buffer if there is one
357         at the start of the loop.
359         [BZ #10789]
360         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
361         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
363         [BZ #10840]
364         * sysdeps/unix/sysv/linux/kernel-features.h: Define
365         __ASSUME_F_GETOWN_EX.
366         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
367         if possible.
368         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
370         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
371         and f_owner_ex.
372         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
373         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
374         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
375         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
376         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
377         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
379         [BZ #10847]
380         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
381         getutmpx symbol.
383         [BZ #10823]
384         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
385         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
387 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
389         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
391 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
393         [BZ #10817]
394         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
395         Reported by Ray Chason.
397 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
399         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
400         strend-sse4.
401         * sysdeps/x86_64/multiarch/strchr.S: New file.
402         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
403         * sysdeps/x86_64/multiarch/strrchr.S: New file.
405 2009-10-21  Andreas Schwab  <schwab@redhat.com>
407         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
409 2009-10-19  Andreas Schwab  <schwab@redhat.com>
411         * include/math.h: Add hidden protos for __exp/__expf/__expl.
412         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
413         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
414         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
415         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
416         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
417         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
418         __ieee751_expl to handle overflow.
420 2009-10-14  David S. Miller  <davem@davemloft.net>
422         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
423         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
425 2009-10-13  Andreas Schwab  <schwab@redhat.com>
427         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
428         !USE_MULTIARCH.
430 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
432         [BZ #10730]
433         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
434         Patch in part by Steve Ward <planet36@gmail.com>.
436         [BZ #10731]
437         * stdlib/rand_r.c: Fix typo.
439         * po/cs.po: Update from translation team.
441 2009-10-06  Andreas Schwab  <schwab@redhat.com>
443         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
444         returning if RTLD_NOLOAD.
446 2009-10-06  Roland McGrath  <roland@redhat.com>
448         * sysdeps/x86_64/multiarch/strstr-c.c
449         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
451         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
452         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
454         * sysdeps/x86_64/multiarch/init-arch.h
455         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
456         (HAS_CPU_FEATURE): New macro.
457         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
458         * sysdeps/x86_64/multiarch/init-arch.c
459         (__get_cpu_features): #undef it before definition.
461 2009-10-05  Andreas Schwab  <schwab@redhat.com>
463         * locale/C-time.c: Revert week-1stday back to 19971130 and set
464         first_weekday to 1 and first_workday to 2.
466 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
468         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
469         F_GETOWN_EX.
470         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
471         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
472         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
473         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
474         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
475         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
477 2009-09-28  Andreas Schwab  <schwab@redhat.com>
479         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
480         * stdio-common/vfprintf.c: Likewise.
482 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
484         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
485         (mkdirat): Call __directory_name_split_at instead of
486         __directory_name_split.
488 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
490         * locale/programs/locale-spec.c (locale_special): If nothing matches
491         fail with an appropriate message.
493 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
495         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
496         and XX.
498 2009-09-25  Andreas Schwab  <schwab@redhat.com>
500         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
501         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
503 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
505         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
507 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
509         * iconvdata/iso646.c (gconv_init): Correctly initialize the
510         character size elements in step data.
512 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
514         * po/hu.po: Update from translation team.
515         * po/vi.po: Likewise.
517 2009-09-19  Roland McGrath  <roland@redhat.com>
519         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
521 2009-09-15  Roland McGrath  <roland@redhat.com>
523         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
524         * nptl/sysdeps/pthread/configure: Regenerated.
525         * nptl/sysdeps/x86_64/configure: Regenerated.
526         * sysdeps/unix/sysv/linux/configure: Regenerated.
527         * sysdeps/x86_64/elf/configure: Regenerated.
529         * Makefile (autoconf-it): Set execute bit only on top-level configure.
531         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
532         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
533         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
534         * configure: Regenerated.
536 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
538         * posix/getconf.c (main): Handle -- on command line.
540 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
542         * configure.in: Support binutils 2.100 and 3.0.
544 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
546         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
547         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
548         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
549         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
551 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
553         * locale/programs/ld-collate.c (struct locale_collate_t): Add
554         unnamed_section_defined field.
555         (collate_read): Test and set unnamed_section_defined.
557         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
558         _POSIX2_LINE_MAX.
560 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
562         * configure.in: Support binutils 2.20.
564 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
566         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
567         __strstr_ia32): Add attribute_hidden.
569 2009-09-01  Andreas Schwab  <schwab@redhat.com>
571         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
572         parsing of group entry.
574 2009-09-02  Andreas Schwab  <schwab@redhat.com>
576         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
577         external buffer.  Always discard readahead in internal buffer.
578         * libio/Makefile (tests): Add bug-wsetpos.
579         * libio/bug-wsetpos.c: New file.
581 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
583         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
584         Add attribute_hidden.
585         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
586         __strcasestr_sse2): Likewise.
587         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
588         (__fma_fma): Make static.
589         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
590         (__fmaf_fma): Make static.
592 2009-08-31  Andreas Schwab  <schwab@redhat.com>
594         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
595         reformulate in-buffer optimisation check to match code in
596         _IO_new_file_seekoff.
598 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
600         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
601         to srwi in 32-bit memcpy for power6.
603 2009-09-01  Andreas Schwab  <schwab@redhat.com>
605         * include/stdio.h: Declare hidden proto for fflush.
606         * libio/iofflush.c: Add hidden weak alias for fflush.
608 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
610         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
611         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
613 2009-08-31  Andreas Schwab  <schwab@redhat.com>
615         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
617 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
619         [BZ #10560]
620         * malloc/malloc.c: Add local assert definition to avoid problems with
621         memory allocation in the real one.
623 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
625         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
626         Removed.
627         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
628         turn off SSSE3 on Atom.
630 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
632         * stdlib/tst-strtol.c (tests): More tests.
633         * stdlib/tst-strtoll.c (tests): Likewise.
635 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
637         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
639         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
641 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
643         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
644         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
646         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
648         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
650         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
652 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
654         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
656 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
658         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
659         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
661         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
663         * sysdeps/x86_64/fpu/s_signbit.S: New file.
664         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
666         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
667         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
669         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
670         leftover YMM_SIZE definition.
672 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
674         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
675         union.
676         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
677         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
678         Redefine.
679         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
681         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
682         and SET_FLOAT_WORD definitions.
684 2009-08-24  Roland McGrath  <roland@redhat.com>
686         * sysdeps/unix/syscall-template.S: New file.
687         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
688         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
689         (compile-syscall): Pass mkdep and -g options as normal.
690         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
691         (common-generated): Don't add them here.
693 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
695         * math/s_fdim.c: In case of overflows set errno.
696         * math/s_fdimf.c: Likewise.
697         * math/s_fdiml.c: Likewise.
699         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
700         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
701         are using the inline optimizations.
703         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
704         (__signbitf): Likewise.
706 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
708         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
709         terminated.
710         * posix/Makefile (tests): Add bug-regex29.
711         * posix/bug-regex29.c: New file.
713         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
714         older POSIX versions are selected.
716         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
717         as well.
718         * stdio-common/printf_fphex.c: Likewise.
719         * stdio-common/tstdiomisc.c: Add more tests.
721         * locale/locale.h: Include xlocale.h and the thread-local locale
722         declarations for XPG7, not XPG6.
724 2009-08-21  Andreas Schwab  <schwab@redhat.com>
726         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
727         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
730         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
731         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
733 2009-08-20  Roland McGrath  <roland@redhat.com>
735         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
736         Use l_addr instead of l_map_start (dli_fbase).
737         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
738         address when there is no proximate symbol.
739         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
740         Likewise.
742 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
744         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
746 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
748         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
749         Also handle SIGINT.  In that case only do the cleanup and then
750         re-raise the signal.
751         (main): Install handler for SIGINT.
753 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
755         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
756         clobber list.
758 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
760         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
761         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
762         tst-auditmod7b.c.
763         (tests): Add tst-audit6 tst-audit7.
764         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
765         tst-auditmod7a tst-auditmod7b.
766         ($(objpfx)tst-audit6): New.
767         ($(objpfx)tst-audit6.out): Likewise.
768         ($(objpfx)tst-audit7): Likewise.
769         ($(objpfx)tst-audit7.out): Likewise.
770         (tst-audit6-ENV): Likewise.
771         (tst-audit7-ENV): Likewise.
772         (CFLAGS-tst-auditmod6b.c): Likewise.
773         (CFLAGS-tst-auditmod6c.c): Likewise.
774         (CFLAGS-tst-auditmod7b.c): Likewise.
775         * elf/tst-audit6.c: New file.
776         * elf/tst-audit7.c: New file.
777         * elf/tst-auditmod6a.c: New file.
778         * elf/tst-auditmod6b.c: New file.
779         * elf/tst-auditmod6c.c: New file.
780         * elf/tst-auditmod7a.c: New file.
781         * elf/tst-auditmod7b.c: New file.
782         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
783         saving and restoring SSE/AVX registers to ...
784         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
786 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
788         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
789         only if SHARED is defined.
790         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
792 2009-08-03  Jim Meyering  <meyering@redhat.com>
794         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
796 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
798         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
799         section as the other functions for this architecture.
800         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
802 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
804         * sysdeps/x86_64/strcmp.S: Add support to compile with
805         USE_SSSE3.  In this case palignr is used.
806         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
807         available but SSSE3 is, pick __str{,n}cmp_ssse3.
808         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
809         Add strcmp-ssse3 and strncmp-ssse3.
810         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
811         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
813         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
814         warning through fake initialization.
816 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
818         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
820 2009-08-07  Andreas Schwab  <schwab@redhat.com>
822         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
823         unique symbols.
825 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
827         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
828         EBX from EAX = 1.  Handle EAX = 11.
830 2009-08-07  Andreas Schwab  <schwab@redhat.com>
832         * Makefile (TAGS): Use separate sed -e expressions to avoid \
833         inside ''.
835 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
837         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
838         hidden IFUNC functions.
839         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
841         * sysdeps/i386/i686/multiarch/strlen.S: New file.
843         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
844         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
845         strcasestr-c.
846         (CFLAGS-strcspn-c.c): Define.
847         (CFLAGS-strpbrk-c.c): Define.
848         (CFLAGS-strspn-c.c): Define.
849         (CFLAGS-strstr.c): Define.
850         (CFLAGS-strcasestr.c): Define.
851         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
852         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
853         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
854         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
855         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
856         * sysdeps/i386/i686/multiarch/strspn.S: New file.
857         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
858         * sysdeps/i386/i686/multiarch/strstr.c: New file.
859         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
860         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
861         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
862         -16L instead of 0xfffffffffffffff0L.
863         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
865 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
867         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
869 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
871         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
872         another rewrite.  Much smaller and faster.
873         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
875         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
876         ss_flags from the correct location.
878 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
880         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
881         * sysdeps/i386/i686/cacheinfo.c: New file.
882         * sysdeps/i386/i686/multiarch/Makefile: New file.
883         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
884         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
885         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
886         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
887         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
888         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
889         (__cpuid_count): New. Provide the default.
890         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
891         (__x86_64_preferred_memory_instruction): Define only if
892         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
893         (intel_check_word): Use __cpuid.
894         (handle_intel): Likewise.
895         (handle_amd): Likewise.
896         (__cache_sysconf): Likewise.
897         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
898         (__cache_sysconf): Likewise.
899         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
900         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
901         (get_common_indeces): Use __cpuid.
902         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
903         if ENABLE_SSSE3_ON_ATOM is not defined.
904         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
905         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
906         popcnt instead of popcntq.
908 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
910         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
912 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
914         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
915         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
916         which always causes a compile error.
918         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
920         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
921         comes from...
922         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
923         which always causes a compile error.
925         * debug/Makefile (tests): Add tst-longjmp_chk2.
926         * debug/tst-longjmp_chk2.c: New file.
928         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
929         Remove incorrect use of BP_SYM.
930         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
931         here now since it is more complex than just a simple check.
933         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
934         we make no more progress.
936 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
938         * math/s_fma.c: Don't define alias if __fma is a macro.
939         * math/s_fmaf.c: Likewise.
940         * sysdeps/x86_64/multiarch/s_fma.c: New file.
941         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
942         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
944         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
945         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
946         New macro HAS_FMA.
947         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
948         function.
949         * include/libc-symbols.h (libm_ifunc): Define.
950         * sysdeps/x86_64/multiarch/Versions: New file.
952         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
954 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
956         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
958 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
960         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
961         call that registers used in calling conventions need to be preserved.
962         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
963         to preserve register content if necessary.
964         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
965         (_dl_x86_64_restore_sse): New function.
966         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
967         is allowed to modify xmm/ymm registers.
969         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
970         application's perspective.
971         * stdio-common/scanf17.c: Likewise.
973 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
975         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
976         size to memsz.
977         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
978         here.
979         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
980         two steps to catch bugs.
982 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
984         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
985         determines which files are used in runtime lookups and only checks
986         those for SSE use.
987         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
988         testing.
989         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
990         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
991         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
992         take a while.
994         * elf/dl-open.c: Move _dl_scope_free to...
995         * elf/dl-scope.c: ...here.  New file.
996         * elf/Makefile (dl-routines): Add scope.
998         * resolv/resolv.h (RES_USE_DNSSEC): Define.
999         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1000         RES_USE_DNSSEC.
1001         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1002         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1003         all the places we handled RES_USE_EDNS0 only before.
1004         Patch by Adam Tkac <atkac@redhat.com>.
1006 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1008         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1009         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1010         Update size when reallocating.
1012 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1014         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1015         functions used in ld.so modify xmm/ymm registers.
1016         * sysdeps/x86_64/Makefile:  Hook new test up.
1017         * sysdeps/x86_64/rtld-memchr.c: New file.
1018         * sysdeps/x86_64/rtld-memcmp.c: New file.
1019         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1020         * sysdeps/x86_64/rtld-strchr.S: New file.
1021         * sysdeps/x86_64/rtld-strlen.S: New file.
1022         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1023         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1025 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1027         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1028         strncmp-c.
1029         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1030         (exit): Likewise.
1031         (Byte1): Likewise.
1032         (Byte2): Likewise.
1033         (Byte3): Likewise.
1034         (Byte4): Likewise.
1035         (Byte5): Likewise.
1036         (Byte6): Likewise.
1037         (next_8_bytes): Likewise.
1038         (Byte0): Remove commented out codes.
1039         (unaligned_table): Align jump table at 8 bytes.
1040         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1041         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1042         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1043         * sysdeps/x86_64/strncmp.S: New file.
1045 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1047         [BZ #10422]
1048         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1049         kernels, dropped when eventfd2 support was added.
1050         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1051         kernels, dropped when signalfd4 support was added.
1052         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1053         added, name them.
1055         [BZ #10452]
1056         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1057         replies up.
1059         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1061 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1063         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1064         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1066         [BZ #10448]
1067         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1068         callback we must touch the status to avoid using stale value.
1070         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1071         compiled in.
1073 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1075         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1076         /lib/modules/* headers anymore.  We have sane headers in the standard
1077         place now.
1079 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1081         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1082         "etf3enh" and "highgprs" added.
1083         (_dl_s390_platforms): "z10" added.
1084         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1085         Increased for the new entries.
1086         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1087         HWCAP_S390_HIGH_GPRS added.
1089         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1090         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1091         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1092         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1093         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1095 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1097         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1098         avoid additional cpuid instructions.  Most of the information is
1099         stored somewhere.
1101         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1102         cache descriptors.
1103         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1105         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1106         SSSE3 bit for Atoms.
1107         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1108         here anymore.
1110         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1111         structure before copying it to avoid warning.
1112         * posix/tst-rfc3484-2.c (do_test): Likewise.
1113         * posix/tst-rfc3484-3.c (do_test): Likewise.
1115         [BZ #10416]
1116         * include/unistd.h: Make header file suitable for C++ test cases.
1117         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1119         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1120         stack alignment in the exit code.
1122         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1123         potentially be zero.
1125         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1126         unique symbol definition.
1127         Patch by Jakub Jelinek.
1128         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1129         make sure the object with the definition cannot be unloaded.  Adjust
1130         a few types.
1131         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1132         the unique symbol hash table should not be const.
1134 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1136         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1137         unnecesary variables.  Comment fixes.
1139 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1141         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1142         Use NONASCII_CASE information provided by the locale to determine
1143         whether optimized string load function can be used.  Minor cleanups.
1145 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1147         * string/strcasestr.c (STRCASESTR): New macro.
1148         (__strcasestr): Renamed to ..
1149         (STRCASESTR): ...this.
1150         * string/strstr.c (STRSTR): New macro.
1151         (strstr): Renamed to ..
1152         (STRSTR): ...this.
1153         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1154         strstr-c strcasestr-c
1155         (CFLAGS-strstr.c): New.
1156         (CFLAGS-strcasestr.c): Likewise.
1157         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1158         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1159         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1160         * sysdeps/x86_64/multiarch/strstr.c: New file.
1162 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1164         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1165         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1166         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1167         _NL_CTYPE_NONASCII_CASE.
1168         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1169         field.
1170         (ctype_finish): Check whether there are any 8-bit characters outside
1171         the range ASCII has or whether the mapping isn't the same as for
1172         ASCII (±0x20).  Set nonascii_case appropriately.
1173         (ctype_output): Add output handler for nonascii_case.
1175 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1177         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1178         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1180 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1182         [BZ #10360]
1183         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1184         0xffff in the EDNS0 record.
1186 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1188         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1189         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1190         is written before the list head update.
1191         Patch by Andreas Schwab <aschwab@redhat.com>.
1193 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1194             Jakub Jelinek  <jakub@redhat.com>
1196         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1197         corruption thread-safe.
1199 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1201         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1202         overrides atomic_compare_and_exchange_val_rel, define to
1203         atomic_compare_and_exchange_val_rel by default, otherwise default
1204         to catomic_compare_and_exchange_val_acq.
1205         (catomic_compare_and_exchange_bool_rel): If arch overrides
1206         atomic_compare_and_exchange_bool_rel, define to
1207         atomic_compare_and_exchange_bool_rel by default.
1208         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1209         Use catomic_compare_and_exchange_val_rel instead of
1210         catomic_compare_and_exchange_val_acq.
1212 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1214         * sysdeps/generic/ldsodefs.h: Add prototype for
1215         _dl_higher_prime_number.
1216         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1218         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1219         restoring of ymm registers a bit.
1221 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1223         * sysdeps/x86_64/memcmp.S: New file.
1225 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1227         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1228         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1229         pointers in writable memory.
1231 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1233         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1234         * config.make.in: Add config-cflags-avx entry.
1235         * configure.in: Substitute libc_cv_cc_avx.
1236         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1237         * elf/tst-audit4.c: New file.
1238         * elf/tst-audit5.c: New file.
1239         * elf/tst-auditmod4a.c: New file.
1240         * elf/tst-auditmod4b.c: New file.
1241         * elf/tst-auditmod5a.c: New file.
1242         * elf/tst-auditmod5b.c: New file.
1243         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1244         link-defines.sym.
1245         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1246         (La_x86_64_vector): Likewise.
1247         (La_x86_64_regs): Append lr_vector.
1248         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1249         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1250         saving and restoring SSE registers to ...
1251         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1252         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1253         <link-defines.h>.
1254         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1255         La_x86_64_regs.  Allocate extra space and jump to memory at
1256         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1257         (save_and_restore_vector_sse): New.
1258         (save_and_restore_vector_avx): Likewise.
1259         (check_avx): Likewise.
1260         (save_and_restore_vector): Likewise.
1261         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1262         HAVE_AVX_SUPPORT.
1263         * sysdeps/x86_64/link-defines.sym: New file.
1265 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1267         * elf/do-lookup.h: Removed after folding content into...
1268         * elf/dl-lookup.c: ...here.
1270         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1272 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1274         * configure.in: Check for gnu_unique_symbol symbol type.
1275         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1276         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1277         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1278         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1279         change.
1280         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1281         unique symbol table.
1282         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1283         for first namespace.
1284         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1285         unique symbol hash table.
1286         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1287         * elf/tst-unique1.c: New file.
1288         * elf/tst-unique1mod1.c: New file.
1289         * elf/tst-unique1mod2.c: New file.
1290         * elf/tst-unique2.c: New file.
1291         * elf/tst-unique2mod1.c: New file.
1292         * elf/tst-unique2mod2.c: New file.
1294 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1296         * elf/elf.h (STB_GNU_UNIQUE): Define.
1298         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1299         from...
1300         * include/inline-hashtab.h: ...here.
1301         (htab_expand): Adjust for renamed function.  Correct memory handling.
1303 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1305         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1307 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1309         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1310         (PPC_FEATURE_HAS_VSX): Likewise.
1312 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1314         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1315         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1317         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1318         aligned to 16 byte boundaries.
1319         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1320         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1321         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1323 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1325         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1326         * config.make.in (config-cflags-sse4): New variable.
1327         * configure.in: Substitute libc_cv_cc_sse4.
1328         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1329         HAVE_SSE4_SUPPORT.
1330         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1331         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1332         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1333         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1334         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1335         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1336         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1337         * sysdeps/x86_64/multiarch/strspn.S: New file.
1339 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1341         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1342         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1343         (tests): Add tst-audit3 for x86_64.
1344         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1345         ($(objpfx)tst-audit3): Define.
1346         ($(objpfx)tst-audit3.out): Define.
1347         (tst-audit3-ENV): Define.
1348         * elf/tst-audit3.c: New file.
1349         * elf/tst-auditmod3a.c: New file.
1350         * elf/tst-auditmod3b.c: New file.
1351         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1352         and restore xmm6.
1354         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1355         (__stpncpy): Renamed to ...
1356         (STPNCPY): This.
1357         (stpncpy): Create alias only if STPNCPY is not defined.
1358         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1359         defined.
1360         (strncpy): Renamed to ...
1361         (STRNCPY): This.
1362         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1363          stpncpy-c strncpy-c for string.
1364         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1365         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1366         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1367         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1368         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1369         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1371 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1373         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1374         adding to fast bin list.
1376 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1378         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1379         inet_makeaddr.  This worked only with class-based networks.
1380         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1381         Likewise.
1383         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1384         recognize all types.
1385         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1386         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1387         be in host byte order.
1389 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1391         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1392         (MODEL_OFFSET): Define.
1393         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1394         family and model.
1395         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1396         out common code into new function get_common_indeces. Determine
1397         extended family and model for Intel processors.
1399 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1401         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1402         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1403         option.
1404         * resolv/res_send.c (reopen): New function.  Broken out of...
1405         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1406         fallback mechanism.  If single-request fails switch to
1407         single-request-reopen mode which opens a new socket for the second
1408         request.
1410 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1412         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1413         (CHECK_SP): Use it.
1415 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1417         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1418         for saved registers.
1419         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1420         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1421         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1423 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1425         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1427 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1429         * po/id.po: Update from translation team.
1431         * po/bg.po: Update from translation team.
1433 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1435         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1436         defined.
1437         (strncmp): Renamed to STRNCMP.
1438         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1439         strncmp-c for string.
1440         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1441         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1442         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1443         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1445 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1447         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1448         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1449         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1450         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1451         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1452         ifuncmain7static.c.
1453         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1454         ifuncmain7static, and ifuncmain7picstatic.
1455         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1456         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1457         $(objpfx)ifuncmain7pie.out.
1458         (modules-names): Add ifuncmod5 ifuncmod6
1459         (ifuncmod5.so-no-z-defs): Define.
1460         (ifuncmod6.so-no-z-defs): Define.
1461         (CFLAGS-ifuncmain5pic.c): Define.
1462         (CFLAGS-ifuncmain5picstatic.c): Define.
1463         (CFLAGS-ifuncmain5staticpic.c): Define.
1464         (CFLAGS-ifuncdep5pic.c): Define.
1465         (CFLAGS-ifuncmain7pic.c): Define.
1466         (CFLAGS-ifuncmain7picstatic.c): Define.
1467         (CFLAGS-ifuncmain1staticpie.c): Define.
1468         (CFLAGS-ifuncmain5pie.c): Define.
1469         (CFLAGS-ifuncmain6pie.c): Define.
1470         (CFLAGS-ifuncmain7pie.c): Define.
1471         ($(objpfx)ifuncmain1staticpie.out): Define.
1472         ($(objpfx)ifuncmain1staticpie): Define.
1473         ($(objpfx)ifuncmain5pie.out): Define.
1474         ($(objpfx)ifuncmain5pie): Define.
1475         ($(objpfx)ifuncmain6pie.out): Define.
1476         ($(objpfx)ifuncmain6pie): Define.
1477         ($(objpfx)ifuncmain5): Define.
1478         ($(objpfx)ifuncmain5pic): Define.
1479         ($(objpfx)ifuncmain5static): Define.
1480         ($(objpfx)ifuncmain5staticpic): Define.
1481         ($(objpfx)ifuncmain5picstatic): Define.
1482         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1483         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1484         ifuncmain6pie.out.
1485         * elf/b/elf/ifuncmain1staticpie.c: New file.
1486         * elf/ifuncdep5.c: New file.
1487         * elf/ifuncdep5pic.c: New file.
1488         * elf/ifuncmain5.c: New file.
1489         * elf/ifuncmain5pic.c: New file.
1490         * elf/ifuncmain5picstatic.c: New file.
1491         * elf/ifuncmain5pie.c: New file.
1492         * elf/ifuncmain5static.c: New file.
1493         * elf/ifuncmain5staticpic.c: New file.
1494         * elf/ifuncmain6pie.c: New file.
1495         * elf/ifuncmain7.c: New file.
1496         * elf/ifuncmain7pic.c: New file.
1497         * elf/ifuncmain7picstatic.c: New file.
1498         * elf/ifuncmain7pie.c: New file.
1499         * elf/ifuncmain7static.c: New file.
1500         * elf/ifuncmod5.c: New file.
1501         * elf/ifuncmod6.c: New file.
1503 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1505         [BZ #10085]
1506         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1507         (nss_endgrent): New variable.
1508         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1509         fields. Change type of files to bool and adjust all users.
1510         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1511         (internal_endgrent): Call nss_endgrent if necessary.
1512         (add_group): New function.  Broken out of...
1513         (check_and_add_group): ...here.
1514         (getgrent_next_nss): Remove test that any callback is available.
1515         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1516         callback.  If there is no blacklist we can trust the results returned
1517         by the initgroups_dyn callback.  In case there is a callback and we
1518         find a group entry for the group ID but it doesn't contain the
1519         correct member, switch to the slow mode and use getgrent_r.
1520         (internal_getgrent_r): When we see a +: entry, determine whether
1521         there is any callback and which we can use the initgroups_dyn
1522         callback.
1524 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1526         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1527         (_int_free): Likewise.
1529         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1530         AF_IEEE802154.
1531         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1532         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1533         and ARPHRD_IEEE802154_PHY.
1535         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1536         relative to generic Linux version.
1538 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1540         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1541         ($(objpfx)ifuncmain1vispie): Likewise.
1543 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1545         * login/Makefile: Build pt_chown as PIE.
1547 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1549         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1550         a format string.
1551         * elf/sln.c (usage): Likewise.
1552         * malloc/memusage.sh (do_help): Likewise.
1553         * nss/getent.c (more_help): Likewise.
1554         * posix/getconf.c (main): Likewise.
1555         * sunrpc/rpcinfo.c (usage): Likewise.
1556         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1558 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1560         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1561         those needed.
1562         * login/Makefile: If necessary link pt_chown with -lcap.
1563         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1564         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1566 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1568         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1569         comparisons.
1570         * string/test-memchr.c (do_random_tests): Test very large lengths
1571         as well.
1573 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1575         * Makeconfig (+link-pie): Define.
1576         (+prectorS): Define.
1577         (+postctorS): Define.
1578         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1579         * nscd/Makefile ($(objpfx)nscd): Likewise.
1581 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1583         [BZ #10107]
1584         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1585         with cmplwi.
1586         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1588 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1590         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1591         into ...
1592         * sysdeps/unix/grantpt.c: ...here.
1594 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1596         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1597         chmod if it is necessary.
1599         [BZ #10166]
1600         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1601         when the slave device is in devpts or devfs.
1603         [BZ #10183]
1604         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1606         [BZ #10195]
1607         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1608         of nd_opt_home_agent_info_preference to uint16_t.
1609         Patch by Arnaud Ebalard <arno@natisbad.org>.
1611         [BZ #10207]
1612         * nss/getent.c: Add support for printing gshadow data.
1614         [BZ #10203]
1615         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1616         not just the currently used one and those which follow.
1617         Patch by Joe Landers <jlanders@vmware.com>.
1619         [BZ #10196]
1620         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1621         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1622         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1624         [BZ #10217]
1625         * stdlib/abort.c: Define variable __abort_msg.
1626         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1627         * include/stdlib.h: Declare __abort_msg.
1628         * assert/assert-perr.c: Don't free buffer for message immediately.
1629         Store atomically in __abort_msg and free old buffer if necessary.
1630         * assert/assert.c: Likewise.
1631         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1632         store pointer in __abort_msg, and possibly free old string.
1633         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1635         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1637         [BZ #10211]
1638         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1639         handle leap seconds if they are available.
1640         Patch by Akinori Hattori <hattya@gentoo.org>.
1642         * timezone/tzselect.ksh: Update from tzcode2009i.
1643         * timezone/zdump.c: Likewise.
1644         * timezone/zic.c: Likewise.
1646         * timezone/africa: Update from tzdata2009i.
1647         * timezone/antarctica: Likewise.
1648         * timezone/asia: Likewise.
1649         * timezone/australasia: Likewise.
1650         * timezone/backward: Likewise.
1651         * timezone/etcetera: Likewise.
1652         * timezone/europe: Likewise.
1653         * timezone/factory: Likewise.
1654         * timezone/iso3166.tab: Likewise.
1655         * timezone/leapseconds: Likewise.
1656         * timezone/northamerica: Likewise.
1657         * timezone/pacificnew: Likewise.
1658         * timezone/solar87: Likewise.
1659         * timezone/solar88: Likewise.
1660         * timezone/solar89: Likewise.
1661         * timezone/southamerica: Likewise.
1662         * timezone/systemv: Likewise.
1663         * timezone/yearistype: Likewise.
1664         * timezone/zone.tab: Likewise.
1666 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1668         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1669         STT_GNU_IFUNC symbol or in 8 into type_class.
1671         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1672         instead of Elf64_Addr.
1674 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1676         * po/sv.po: Update from translation team.
1678         [BZ #10229]
1679         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1680         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1681         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1682         the C version.
1684 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1686         * Versions.def: Add GLIBC_2.11 for libpthread.
1688 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1690         * resolv/res_send.c (send_dg): Remember we switched to
1691         single-request mode.
1693 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1695         * dlfcn/dlfcn.h: Remove comma at end of enum.
1696         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1698         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1699         parsing mode string.
1701 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1703         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1705         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1707         * sysdeps/x86_64/multiarch/strlen.S: New file.
1708         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1709         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1710         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1711         content.
1713         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1714         is defined.
1716 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1718         * sysdeps/x86_64/strlen.S: Minor optimizations.
1720 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1722         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1723         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1724         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1725         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1726         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1727         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1728         ifuncmain3.c, ifuncmod3.c,.
1729         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1730         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1731         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1732         ifuncmain4picstatic.
1733         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1734         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1735         ifuncmain3, ifuncmain4.
1736         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1737         $(objpfx)ifuncmain1vispie.out.
1738         (modules-names): Add ifuncmod1 ifuncmod3.
1739         (generated): Add ifuncmain1pie ifuncmain1pie.out
1740         ifuncmain1vispie ifuncmain1vispie.out.
1741         Define rules to build and run the tests.
1742         * elf/ifuncdep1.c: New file.
1743         * elf/ifuncdep1pic.c: New file.
1744         * elf/ifuncdep2.c: New file.
1745         * elf/ifuncdep2pic.c: New file.
1746         * elf/ifuncmain1.c: New file.
1747         * elf/ifuncmain1pic.c: New file.
1748         * elf/ifuncmain1picstatic.c: New file.
1749         * elf/ifuncmain1pie.c: New file.
1750         * elf/ifuncmain1static.c: New file.
1751         * elf/ifuncmain1staticpic.c: New file.
1752         * elf/ifuncmain1vis.c: New file..
1753         * elf/ifuncmain1vispic.c: New file..
1754         * elf/ifuncmain1vispie.c: New file.
1755         * elf/ifuncmain2.c: New file.
1756         * elf/ifuncmain2pic.c: New file.
1757         * elf/ifuncmain2picstatic.c: New file.
1758         * elf/ifuncmain2static.c: New file.
1759         * elf/ifuncmain3.c: New file.
1760         * elf/ifuncmain4.c: New file.
1761         * elf/ifuncmain4picstatic.c: New file.
1762         * elf/ifuncmain4static.c: New file.
1763         * elf/ifuncmod1.c: New file.
1764         * elf/ifuncmod3.c: New file.
1766 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1768         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1770 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1772         [BZ #10221]
1773         * posix/Makefile (routines): Add execvpe.
1774         * posix/Versions: Export execvpe for GLIBC_2.11.
1775         * posix/execvp.c: Now only a wrapper.  Move code to...
1776         * posix/execvpe.c: ...here.  New file.
1777         * posix/unistd.h: Declare execvpe.
1779 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1781         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1782         for STT_GNU_IFUNC handling for efficiency.
1783         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1785         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1786         _exit.
1787         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1789 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1791         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1792         for !SHARED.
1794 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1796         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1797         is not defined.
1798         (__rela_iplt_start): New declaration.
1799         (__rela_iplt_end): Likewise.
1800         (__rel_iplt_start): Likewise.
1801         (__rel_iplt_end): Likewise.
1802         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1803         * elf/elf.h (R_386_IRELATIVE): New macro.
1804         (R_X86_64_IRELATIVE): New macro.
1805         (R_386_NUM): Updated.
1806         (R_X86_64_NUM): Likewise.
1807         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1808         (libc_ifunc_hidden_def): New macro.
1809         * sysdeps/generic/dl-irel.h: New file.
1810         * sysdeps/i386/dl-irel.h: New file.
1811         * sysdeps/x86_64/dl-irel.h: New file.
1812         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1813         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1814         Handle R_386_IRELATIVE.
1815         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1816         (elf_machine_lazy_rela): Likewise.
1817         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1818         R_X86_64_IRELATIVE.
1819         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1821 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1823         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1824         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
1825         are no differences.  If an architecture has bits in CPUID index 1
1826         meaning different things the values for the COMMON_CPUID_INDEX_1
1827         index must not be set.
1828         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1829         (HAS_POPCOUNT): ...this.  New macro.
1830         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1831         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
1832         to set the value for Intel and AMD architectures.
1833         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1834         INTEL_CPUID_INDEX_1.
1835         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1836         change.
1838 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1840         * configure.in: Move AC_CANONICAL_HOST before first use of $host
1841         and $build.
1843 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1845         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1846         (__expm1l): Set errno to ERANGE on overflow.
1847         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1848         (__tanl): Set errno to EDOM for Â±Inf.
1849         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1850         (__cosl): Set errno to EDOM for Â±Inf.
1851         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1852         (__sinl): Set errno to EDOM for Â±Inf.
1854         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1855         defined, use it.
1856         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1857         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1858         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1860 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
1862         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
1863         code accessing it.
1864         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1866 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
1868         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
1869         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1870         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1871         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1873         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1874         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1875         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1876         defined.
1877         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1878         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1880 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
1882         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1883         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1884         is, either do nothing at all if __ASSUME_ACCEPT4, or
1885         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1886         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1887         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1888         define.
1889         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1890         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1891         internal_accept4 in socket directory.
1893 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1895         * sysdeps/ia64/configure.in: New file.
1897 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1899         [BZ #10162]
1900         * sysdeps/ia64/memchr.S: Use speculative load.
1902         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1903         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1904         use it.
1906         * sysdeps/i386/__longjmp.S: Add .text.
1907         * sysdeps/x86_64/__longjmp.S: Likewise.
1909 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
1911         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1912         __ASSUME_ACCEPT4 for IA-64.
1914 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
1916         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1918         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1919         (SOCKOP_accept4): Define.
1921 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
1923         Sun approved the change of the license.
1924         * sunrpc/auth_des.c: Replace license text.
1925         * sunrpc/auth_none.c: Likewise.
1926         * sunrpc/auth_unix.c: Likewise.
1927         * sunrpc/authdes_prot.c: Likewise.
1928         * sunrpc/authuxprot.c: Likewise.
1929         * sunrpc/bindrsvprt.c: Likewise.
1930         * sunrpc/clnt_gen.c: Likewise.
1931         * sunrpc/clnt_perr.c: Likewise.
1932         * sunrpc/clnt_raw.c: Likewise.
1933         * sunrpc/clnt_simp.c: Likewise.
1934         * sunrpc/clnt_tcp.c: Likewise.
1935         * sunrpc/clnt_udp.c: Likewise.
1936         * sunrpc/clnt_unix.c: Likewise.
1937         * sunrpc/des_crypt.c: Likewise.
1938         * sunrpc/des_soft.c: Likewise.
1939         * sunrpc/get_myaddr.c: Likewise.
1940         * sunrpc/getrpcport.c: Likewise.
1941         * sunrpc/key_call.c: Likewise.
1942         * sunrpc/key_prot.c: Likewise.
1943         * sunrpc/openchild.c: Likewise.
1944         * sunrpc/pm_getmaps.c: Likewise.
1945         * sunrpc/pm_getport.c: Likewise.
1946         * sunrpc/pmap_clnt.c: Likewise.
1947         * sunrpc/pmap_prot.c: Likewise.
1948         * sunrpc/pmap_prot2.c: Likewise.
1949         * sunrpc/pmap_rmt.c: Likewise.
1950         * sunrpc/rpc/auth.h: Likewise.
1951         * sunrpc/rpc/auth_unix.h: Likewise.
1952         * sunrpc/rpc/clnt.h: Likewise.
1953         * sunrpc/rpc/des_crypt.h: Likewise.
1954         * sunrpc/rpc/key_prot.h: Likewise.
1955         * sunrpc/rpc/netdb.h: Likewise.
1956         * sunrpc/rpc/pmap_clnt.h: Likewise.
1957         * sunrpc/rpc/pmap_prot.h: Likewise.
1958         * sunrpc/rpc/pmap_rmt.h: Likewise.
1959         * sunrpc/rpc/rpc.h: Likewise.
1960         * sunrpc/rpc/rpc_des.h: Likewise.
1961         * sunrpc/rpc/rpc_msg.h: Likewise.
1962         * sunrpc/rpc/svc.h: Likewise.
1963         * sunrpc/rpc/svc_auth.h: Likewise.
1964         * sunrpc/rpc/types.h: Likewise.
1965         * sunrpc/rpc/xdr.h: Likewise.
1966         * sunrpc/rpc_clntout.c: Likewise.
1967         * sunrpc/rpc_cmsg.c: Likewise.
1968         * sunrpc/rpc_common.c: Likewise.
1969         * sunrpc/rpc_cout.c: Likewise.
1970         * sunrpc/rpc_dtable.c: Likewise.
1971         * sunrpc/rpc_hout.c: Likewise.
1972         * sunrpc/rpc_main.c: Likewise.
1973         * sunrpc/rpc_parse.c: Likewise.
1974         * sunrpc/rpc_parse.h: Likewise.
1975         * sunrpc/rpc_prot.c: Likewise.
1976         * sunrpc/rpc_sample.c: Likewise.
1977         * sunrpc/rpc_scan.c: Likewise.
1978         * sunrpc/rpc_scan.h: Likewise.
1979         * sunrpc/rpc_svcout.c: Likewise.
1980         * sunrpc/rpc_tblout.c: Likewise.
1981         * sunrpc/rpc_util.c: Likewise.
1982         * sunrpc/rpc_util.h: Likewise.
1983         * sunrpc/rpcinfo.c: Likewise.
1984         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1985         * sunrpc/rpcsvc/key_prot.x: Likewise.
1986         * sunrpc/rpcsvc/klm_prot.x: Likewise.
1987         * sunrpc/rpcsvc/mount.x: Likewise.
1988         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1989         * sunrpc/rpcsvc/rex.x: Likewise.
1990         * sunrpc/rpcsvc/rstat.x: Likewise.
1991         * sunrpc/rpcsvc/rusers.x: Likewise.
1992         * sunrpc/rpcsvc/sm_inter.x: Likewise.
1993         * sunrpc/rpcsvc/spray.x: Likewise.
1994         * sunrpc/rpcsvc/yppasswd.x: Likewise.
1995         * sunrpc/rtime.c: Likewise.
1996         * sunrpc/svc.c: Likewise.
1997         * sunrpc/svc_auth.c: Likewise.
1998         * sunrpc/svc_authux.c: Likewise.
1999         * sunrpc/svc_raw.c: Likewise.
2000         * sunrpc/svc_run.c: Likewise.
2001         * sunrpc/svc_simple.c: Likewise.
2002         * sunrpc/svc_tcp.c: Likewise.
2003         * sunrpc/svc_udp.c: Likewise.
2004         * sunrpc/svc_unix.c: Likewise.
2005         * sunrpc/svcauth_des.c: Likewise.
2006         * sunrpc/xcrypt.c: Likewise.
2007         * sunrpc/xdr.c: Likewise.
2008         * sunrpc/xdr_array.c: Likewise.
2009         * sunrpc/xdr_float.c: Likewise.
2010         * sunrpc/xdr_mem.c: Likewise.
2011         * sunrpc/xdr_rec.c: Likewise.
2012         * sunrpc/xdr_ref.c: Likewise.
2013         * sunrpc/xdr_sizeof.c: Likewise.
2014         * sunrpc/xdr_stdio.c: Likewise.
2016         * po/da.po: Update from translation team.
2018 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2020         * sysdeps/sh/____longjmp_chk.S: New file.
2021         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2022         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2024 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2025             Ulrich Drepper  <drepper@redhat.com>
2027         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2028         (__nscd_cache_search): Assume each entry in the
2029         hash chain needs one hashentry and half of datahead.  Use
2030         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2032 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2034         * posix/sys/wait.h: Fix typos.  Pretty printing.
2035         * stdlib/stdlib.h: Likewise.  Correct comments.
2037         [BZ #10159]
2038         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2040         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2041         patch.
2043 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2045         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2046         Use it if we absolutely cannot reach any more correct list elements
2047         because that many do not fit into the currently mapped database.
2049 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2051         * nscd/nscd_helper.c: Include stddef.h.
2052         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2053         in a couple of places.  Return NULL if trail is not less than
2054         datasize, don't consider dataheads with length smaller than
2055         offsetof (struct datahead, data) + datalen.
2056         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2057         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2058         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2059         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2060         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2061         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2062         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2064         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2065         Rename ...
2066         (fallocate64): ... to this.
2067         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2068         Rename ...
2069         (fallocate64): ... to this.
2070         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2071         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2072         fallocate64@@GLIBC_2.10.
2073         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2074         fallocate64@@GLIBC_2.11.
2075         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2077         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2078         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2080         * nscd/selinux.c (nscd_avc_destroy): Removed.
2081         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2082         * nscd/nscd.c (termination_handler): Don't call
2083         nscd_avc_destroy.
2085 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2087         * include/atomic.h: Formatting.
2088         (catomic_compare_and_exchange_val_acq): Don't define if already
2089         defined by bits/atomic.h.
2091 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2093         * math/libm-test.inc (expm1_test): Add test for range error.
2095         * Versions.def: Add GLIBC_2.11 for libc.
2096         * debug/Makefile (routines): Add longjmp_chk.
2097         Add rules to build and run tst-longjmp_chk.
2098         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2099         * debug/longjmp_chk.c: New file.
2100         * debug/tst-longjmp_chk.c: New file.
2101         * include/bits/setjmp2.: New file.
2102         * include/stdio.h: Mark __fortify_fail as internal_function.
2103         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2104         * setjmp/bits/setjmp2.h: New file.
2105         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2106         of the aliases.
2107         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2108         defined.
2109         * sysdeps/i386/____longjmp_chk.S: New file.
2110         * sysdeps/x86_64/____longjmp_chk.S: New file.
2111         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2112         * sysdeps/x86_64/__longjmp.S: Likewise.
2114         * version.h: Bump for 2.11 development.
2116         * elf/check-execstack.c: New file.
2117         * elf/Makefile: Add rules to build and run check-execstack.
2119 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2121         * version.h (VERSION): Bump to 2.10.1.
2123         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2124         compatibility functions.
2125         * nss/getXXent_r.c: Likewise.
2126         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2127         * gshadow/getsgnam_r.c: Likewise.
2128         * gshadow/Version: Remove duplicate entries.
2130         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2131         for recent processor.
2132         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2133         Likewise.
2135 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2137         * version.h (VERSION): Bump for 2.10 release.
2138         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2140         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2141         same place we add ASFLAGS-config.
2143 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2145         [BZ #10128]
2146         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2147         or FORMERR and the other NOERROR, don't raise an error.
2149 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2151         [BZ #10118]
2152         * Makeconfig (+asflags): New variable based upon ASFLAG or
2153         asflags-cpu.
2154         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2155         * config.make.in (asflags-cpu): Add variable based upon
2156         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2157         the assembler.
2158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2159         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2160         recognizes power6 instruction set due to passing -mcpu=power6 from
2161         --with-cpu=power6 when compiling .S files.
2162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2163         Likewise.
2164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2165         Likewise.
2166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2167         Likewise.
2169 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2171         * string/stratcliff.c (do_test): Test for zero length
2172         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2173         at the end of the page.
2175 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2177         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2179         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2180         count is zero.
2182         * po/da.po: Update from translation team.
2184 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2186         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2187         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2189 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2191         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2192         and READ_IMPLIES_EXEC.
2194 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2196         * po/da.po: Update from translation team.
2198 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2200         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2201         comment change.
2203 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2205         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2206         to MAP_ANON in PROT_NONE mmap64 call.
2207         (open_archive): Likewise.
2208         (file_data_available_p): Use mmap64 instead of mremap.
2209         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2210         Attempt to reserve address space after mmap64 region.
2212 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2214         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2215         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2216         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2218         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2219         atanh should set ERANGE.
2221         [BZ #10087]
2222         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2223         result of lookup to make call to implement STT_GNU_IFUNC.
2224         (_dl_profile_fixup): Likewise.
2225         Patch by H.J. Lu <hjl.tools@gmail.com>.
2227         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2228         warning.
2230         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2231         from definition.
2233         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2234         label if it is not used.
2236         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2237         of gmon_hist_hdr and gmon_hdr structures and use them.
2238         * elf/sprof.c: Likewise.
2240         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2241         warning.
2243         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2245         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2246         to avoid cast.
2248         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2249         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2250         to avoid warnings.
2251         (iruserok_af): Use ss_family instead of casts.
2253         * gmon/gmon.c (write_hist): Define real-type variant of
2254         gmon_hist_hdr structure and use it.
2255         (write_gmon): Likewise for gmon_hdr.
2257         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2258         function if we are not going to define it.
2259         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2261         * inet/inet6_option.c (option_alloc): Add temporary variable to
2262         avoid warning.
2264         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2265         name of VTable element.
2266         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2267         * libio/iovsscanf.c: Likewise.
2268         * libio/vasprintf.c: Likewise.
2269         * libio/vsnprintf.c: Likewise.
2270         * stdio-common/isoc99_vsscanf.c: Likewise.
2271         * stdlib/strfmon_l.c: Likewise.
2272         * debug/vasprintf_chk.c: Likewise.
2273         * debug/vsnprintf_chk.c: Likewise.
2274         * debug/vsprintf_chk.c: Likewise.
2276         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2277         function pointers.
2279 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2281         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2283 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2285         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2287         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2288         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2289         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2290         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2291         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2292         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2293         * math/libm-test.inc: Add tests for errno after tan calls with
2294         Â±Inf.
2296         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2297         errno value vor pow(+-0,neg).
2298         * math/libm-test.inc (pow_test): Add tests for errno value for
2299         pole errors.
2301         * math/w_fmod.c: Also handle x=±Inf as error.
2302         * math/w_fmodf.c: Likewise.
2303         * math/w_fmodl.c: Likewise.
2304         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2305         x=±Inf or y=0.
2307         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2308         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2309         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2310         * sysdeps/i386/fpu/s_sin.S: Likewise.
2311         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2312         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2313         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2314         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2315         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2316         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2317         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2318         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2319         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2320         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2321         Â±Inf.
2323         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2324         ERANGE for underflows.
2325         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2327         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2328         the 2001 revision.
2330         * libio/tst-widetext.input: Remove surrogates.
2332         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2334         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2335         for lgamma should set errno to ERANGE, not EDOM.
2336         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2338 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2340         [BZ #10093]
2341         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2342         UTF-16 surrogates.
2344         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2345         space when temporarily mapping the whole content of the old file.
2347         [BZ #10100]
2348         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2349         not zero.
2351 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2353         * iconvdata/sjis.c (BODY): Don't advance inptr before
2354         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2355         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2356         two byte chars.
2358 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2360         * locale/locarchive.h (struct locarhandle): Rename len field to
2361         mmaped and add new reserved field.
2362         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2363         (create_archive): Reserve address space and then map file into it.
2364         (open_archive): Likewise.
2365         (file_data_available_p): New function.
2366         (compare_from_file): New function.
2367         (close_archive): Adjust to member name changes.
2368         (add_locale): Before comparing locale data, check it is mapped.
2369         Otherwise fall back to reading from the file.
2371 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2373         * stdio-common/psiginfo.c: Include <errno.h>.
2375 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2377         [BZ #9920]
2378         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2379         to get consistency between 32 and 64 bit architectures.
2381         [BZ #10052]
2382         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2383         directory for dummy syscall rules.
2384         Patch by Chris Steinbroner <hesh@pobox.com>.
2386 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2388         [BZ #10092]
2389         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2390         MNT_EXPIRE.
2392 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2394         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2395         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2397 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2399         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2400         data from vector to temporary buffer and call PWRITEV after it
2401         instead of vice versa.
2402         * sysdeps/posix/preadv.c: Fix up comment.
2403         * misc/preadv.c: Likewise.
2404         * misc/preadv64.c: Likewise.
2405         * misc/pwritev.c: Likewise.
2406         * misc/pwritev64.c: Likewise.
2407         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2409 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2411         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2413         * shadow/Makefile (tests): Add tst-shadow.
2414         * shadow/tst-shadow.c: New file.
2416         [BZ #9955]
2417         * gshadow/Makefile: New file.
2418         * gshadow/Versions: New file.
2419         * gshadow/fgetsgent.c: New file.
2420         * gshadow/fgetsgent_r.c: New file.
2421         * gshadow/getsgent.c: New file.
2422         * gshadow/getsgent_r.c: New file.
2423         * gshadow/getsgnam.c: New file.
2424         * gshadow/getsgnam_r.c: New file.
2425         * gshadow/gshadow.h: New file.
2426         * gshadow/putsgent.c: New file.
2427         * gshadow/sgetsgent.c: New file.
2428         * gshadow/sgetsgent_r.c: New file.
2429         * gshadow/tst-gshadow.c: New file.
2430         * include/gshadow.h: New file.
2431         * Makeconfig (all-subdirs): Add gshadow.
2432         * Makefile (installed-headers): Add gshadow/gshadow.h.
2433         * nss/Makefile (databases): Add sgrp.
2434         * nss/Versions: Add gshadow functions as private exports.
2435         * nss/nsswitch.conf: Add gshadow entry.
2436         * nss/sgrp-lookup.c: New file.
2437         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2438         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2439         * nss/nss_files/files-sgrp.c: New file.
2440         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2441         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2443 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2445         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2446         * stdio-common/reg-modifier.c: Likewise.
2448 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2450         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2451         is no FPU.
2453 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2455         [BZ #10086]
2456         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2457         headers up to 2.6.30.
2459         * po/ca.po: Update from translation team.
2461 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2463         [BZ #10069]
2464         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2465         an object that uses static TLS if the TLS modid is higher than the
2466         reserve we always allocate.  At least for multi-threaded code.
2468 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2470         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2471         Numerically stable check for valid width.
2473         * locale/programs/locarchive.c (open_archive): Map the entire file
2474         and not just the administrative data.
2475         (add_locale): When we find a hash sum match compare the content
2476         to be sure.
2478         * malloc/malloc.c (malloc_info): Output address space information.
2480 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2482         * malloc/malloc.c (malloc_info): Also output system memory information.
2484         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2485         architectures have preadv/pwritev in 2.6.30.
2487         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2488         * sysdeps/posix/readv.c: Likewise.
2489         Reported by Markus Armbruster <armbru@redhat.com>.
2491         * malloc/hooks.c (top_check): Force hook value into register.
2493 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2495         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2496         calls to _dl_relocate_object.
2498 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2500         [BZ #9957]
2501         * malloc/malloc.c (force_reg): Define.
2502         (sYSMALLOc): Load hook variable into variable
2503         before test and force into register.
2504         (sYSTRIm): Likewise.
2505         (public_mALLOc): Force hook value into register.
2506         (public_fREe): Likewise.
2507         (public_rEALLOc): Likewise.
2508         (public_mEMALIGn): Likewise.
2509         (public_vALLOc): Likewise.
2510         (public_pVALLOc): Likewise.
2511         (public_cALLOc): Likewise.
2512         (__posix_memalign): Likewise.
2513         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2514         before test and force into register.
2515         * malloc/hooks.c (top_check): Likewise.
2516         (public_sET_STATe): Pretty printing.
2518         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2519         in case we only receive one reply in single-request mode.
2521 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2523         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2524         are dlopened in statically linked program even for __LM_ID_CALLER.
2526 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2528         * resolv/res_send.c (send_dg): Don't switch into single-request
2529         mode if we already are in it.
2531 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2533         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2534         are always at least 4 bytes in the returned line.
2536 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2538         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2539         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2540         instead of 8K.  Stop searching in /proc/stat after hitting first
2541         line not starting with cpu.
2542         (next_line): Truncate too long
2543         lines at buffer size * 3/4 instead of pretending there were line
2544         breaks inside of large lines.
2546 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2548         * sysdeps/x86_64/mp_clz_tab.c: New file.
2550 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2551             Ulrich Drepper  <drepper@redhat.com>
2553         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2554         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2555         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2557 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2559         * sysdeps/sh/libc-tls.c: New file.
2561         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2563 2009-04-14  Roland McGrath  <roland@redhat.com>
2565         * elf/elf.h: Add various missing ARM constants, to match binutils.
2567 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2569         Optimizations from GMP.
2570         * sysdeps/x86_64/add_n.S: New file.
2571         * sysdeps/x86_64/addmul_1.S: New file.
2572         * sysdeps/x86_64/lshift.S: New file.
2573         * sysdeps/x86_64/mul_1.S: New file.
2574         * sysdeps/x86_64/rshift.S: New file.
2575         * sysdeps/x86_64/sub_n.S: New file.
2576         * sysdeps/x86_64/submul_1.S: New file.
2578 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2580         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2581         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2582         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2583         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2585 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2587         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2588         preadv/pwritev.
2590 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2592         * sysdeps/x86-64/strrchr.S: New file.
2594 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2596         * stdio-common/printf.h (struct printf_info): Add user element.
2597         New types printf_arginfo_size_function, printf_va_arg_function.
2598         Declare register_printf_specifier, register_printf_modifier,
2599         register_printf_type.
2600         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2601         (union printf_arg): Add pa_user element.
2602         Adjust __printf_arginfo_table type.
2603         Add __printf_va_arg_table, __printf_modifier_table,
2604         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2605         declarations.
2606         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2607         If registered arginfo call failed try normal specifier.
2608         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2609         function.
2610         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2611         * stdio-common/Versions: Export register_printf_modifier,
2612         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2613         * stdio-common/reg-modifier.c: New file.
2614         * stdio-common/reg-type.c: New file.
2615         * stdio-common/reg-printf.c (__register_printf_specifier): New
2616         function.  Mostly the old __register_printf_function function but
2617         uses locking and type of third parameter changed.
2618         (__register_printf_function): Implement using
2619         __register_printf_specifier.
2620         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2621         calls to arginfo functions.  Allocate enough memory for user-defined
2622         types.  Call new va_arg functions to get user-defined types.
2623         Try installed handlers even for existing format specifiers first.
2625 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2627         * sysdeps/x86_64/rawmemchr.S: New file.
2629         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2630         Simplified code and possible copy problem fixed.
2632         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2633         function if it is not defined.  Add some necessary casts.
2634         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2636         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2637         have preadv/pwritev in 2.6.30.
2639 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2641         * malloc/malloc.c (malloc_info): New function.
2642         * malloc/malloc.h: Declare it.
2643         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2645         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2646         to avoid PLT slot.
2648         * malloc/malloc.c (_int_realloc): Add parameter with old block
2649         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2650         Adjust all callers.
2651         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2653 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2655         * sysdeps/x86_64/strchrnul.S: New file.
2657         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2658         depending libcrypt on -lfreebl3.
2660         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2661         preadv/pwritev in 2.6.30.
2663         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2664         instead of __strcasecmp.
2666         * string/stratcliff.c (do_test): Add memchr tests..
2667         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2668         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2669         first read quad word.
2671 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2673         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2674         * string/tst-svc.input: Add new test case.
2675         * string/tst-svc.expect: Adjust.
2676         * string/Makefile: Don't ignore tst-svc error.
2678         * sysdeps/x86_64/memchr.S: New file.
2680         * resolv/resolv.h (RES_SNGLKUP): Define.
2681         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2682         * resolv/res_send.c (send_dg): If we sent two requests at once and
2683         only get one reply before timeout switch to mode where we send the
2684         second request only after the first answer has been received.
2686 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2688         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2689         * sysdeps/x86_64/strchr.S: Likewise.
2691 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2693         * configure.in: We need to test for the compiler earlier.
2695         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2696         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2697         GLIBC_2.10.
2698         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2699         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2700         and pwritev.
2701         * misc/preadv.c: New file.
2702         * misc/preadv64.c: New file.
2703         * misc/pwritev.c: New file.
2704         * misc/pwritev64.c: New file.
2705         * sysdeps/posx/preadv.c: New file.
2706         * sysdeps/posx/preadv64.c: New file.
2707         * sysdeps/posx/pwritev.c: New file.
2708         * sysdeps/posx/pwritev64.c: New file.
2709         * sysdeps/unix/sysv/linux/preadv.c: New file.
2710         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2711         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2712         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2713         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2714         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2716         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2717         compatibility code.
2718         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2720         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2721         __ASSUME_COMPLETE_READV_WRITEV.
2722         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2723         with modern kernels.
2724         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2726         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2727         to free a possible malloced buffer in case of cancellation.
2728         * sysdeps/posix/writev.c: Likewise for write.
2730 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2732         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2734         * configure.in: Recognize --enable-nss-crypt.
2735         * config.make.in: Add nss-crypt entry.
2736         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2737         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2738         and include path for NSS directory to compiler for md5-crypt,
2739         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2740         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2741         function implementation, use NSS.  Introduce wrappers around the
2742         hash function calls.  Little code size optimization.
2743         * crypt/sha256-crypt.c: Likewise.
2744         * crypt/sha512-crypt.c: Likewise.
2745         * scripts/check-local-headers.sh: Ignore nss3 directory.
2747         * configure.in: Rename pic_default to libc_cv_pic_default.
2748         * config.make.in: Likewise.
2750 2009-04-01  Roland McGrath  <roland@redhat.com>
2752         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2753         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2754         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2755         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2756         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2757         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2758         (R_SPARC_NUM): Update.
2759         From Dave Miller <davem@davemloft.net>.
2761 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2763         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2765 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2767         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2768         those which are used.
2769         * elf/dl-addr.c: Likewise.
2770         * elf/dl-caller.c: Likewise.
2771         * elf/dl-fini.c: Likewise.
2772         * elf/dl-iteratephdr.c: Likewise.
2773         * elf/dl-libc.c: Likewise.
2774         * elf/dl-load.c: Likewise.
2775         * elf/dl-support.c: Likewise.
2776         * elf/dl-sym.c: Likewise.
2777         * elf/rtld.c: Likewise.
2778         * sysdeps/generic/ldsodefs.h: Likewise.
2780         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2781         * elf/dl-minimal.c: Likewise.
2782         * elf/dl-misc.c: Likewise.
2783         * elf/rtld.c: Likewise.
2784         * sysdeps/generic/ldsodefs.h: Likewise.
2786 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2788         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2789         Avoid reuse of complex expression.
2791         * po/fr.po: Update from translation team.
2793 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2795         * include/dirent.h: Yet more changes to match sort function type
2796         change.
2797         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2798         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2799         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2801 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2803         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2805 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2807         * nscd/connections.c (restart): Try to preserve the process name
2808         by reading the /proc/self/exe symlink and using the return name.
2809         Patch by Jeff Bastian <jbastian@redhat.com>.
2811 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2813         [BZ #9733]
2814         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2815         if we are not loading a new audit library.
2816         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2817         Only use profiling trampoline for auditing if we are not relocating
2818         an audit library.
2819         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2820         * elf/rtld.c: Likewise.
2821         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2823         * elf/rtld.c (dl_main): Extend help message for --audit option.
2825         [BZ #9759]
2826         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2827         alphasort64, versionsort, and versionsort64 to POSIX 2008.
2828         * dirent/alphasort.c: Adjust implementation to type change.
2829         * dirent/alphasort64.c: Likewise.
2830         * dirent/scandir.c: Likewise.
2831         * dirent/versionsort.c: Likewise.
2832         * dirent/versionsort64.c: Likewise.
2833         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2834         declaration.
2835         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2836         declaration.
2838         [BZ #9880]
2839         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2840         correctly.  Set segleft member in output as required.
2841         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2842         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2844         [BZ #9881]
2845         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2846         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2847         * inet/Makefile (tests): Add tst-inet6_rth.
2848         * inet/tst-inet6_rth.c: New file.
2850         [BZ #5807]
2851         * string/strlen.c (strlen): Fix omission in the expression to test
2852         for NUL bytes.
2854 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2856         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2858         * elf/dl-runtime.c (reloc_offset): Define.
2859         (reloc_index): Define.
2860         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2861         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
2862         computing index from reloc_offset.
2863         (_dl_call_pltexit): Likewise.
2864         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2865         the relocation index to _dl_fixup.
2866         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2867         _dl_call_pltexit.
2868         * sysdeps/x86_64/dl-runtime.c: New file.
2870         [BZ #9893]
2871         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2872         alignment of La_x86_64_regs.  Store xmm parameters.
2873         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2875         [BZ #9913]
2876         * string/strverscmp.c (__strverscmp): Fix case of different digits
2877         in fractional part of string.
2878         Patch by Jingyu Liu <jyliu@fortinet.com>.
2879         * string/Makefile (tests): Add tst-svc2.
2880         * string/tst-svc2.c: New file.
2882         * string/strverscmp.c (__strverscmp): Optimize size of tables.
2884         * locale/iso-639.def: Add Min Nan.
2886 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2888         [BZ #9948]
2889         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2891 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2893         * elf/dl-sysdep.c (auxvars): Compress data structure.
2895         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2896         STT_GNU_IFUNC handling.
2897         (elf_machine_rela): Likewise.
2899 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
2901         * config.h.in (USE_MULTIARCH): Define.
2902         * configure.in: Handle --enable-multi-arch.
2903         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2904         (_dl_fixup_profile): Likewise.
2905         * elf/do-lookup.c (dl_lookup_x): Likewise.
2906         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2907         * elf/elf.h (STT_GNU_IFUNC): Define.
2908         * include/libc-symbols.h (libc_ifunc): Define.
2909         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2910         framework in init-arch.h to get CPUID values.
2911         * sysdeps/x86_64/multiarch/Makefile: New file.
2912         * sysdeps/x86_64/multiarch/init-arch.c: New file.
2913         * sysdeps/x86_64/multiarch/init-arch.h: New file.
2914         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2916         * config.make.in (experimental-malloc): Define.
2917         * configure.in: Handle --enable-experimental-malloc.
2918         * malloc/Makefile: Handle experimental-malloc flag.
2919         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2920         * malloc/arena.c: Likewise.
2921         * malloc/hooks.c: Likewise.
2922         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2924 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
2926         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2927         prediction.  A few size optimizations.
2929 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2931         * time/tzset.c: Optimize a bit for size.
2933 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2935         * include/stdio.h (fmemopen): Add libc_hidden_proto.
2936         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2938         * elf/sprof.c: Avoid warning about multi-line comment.
2940 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2942         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2943         DST name.
2944         * time/tst-posixtz.c: Add tests for quoted timezone names.
2946 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2948         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2949         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2950         200809L instead of 200112L.
2951         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2952         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2954         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2955         instead of __quick_exit_funcs to __run_exit_handlers.
2956         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2957         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2958         (__cxa_at_quick_exit): Remove attribute_hidden.
2959         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2960         to __run_exit_handlers.
2961         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2962         attribute_hidden.
2964 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2966         * po/id.po: Update from translation team.
2968 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2971         .machine push; .machine "power6" and .machine pop around mtfsf
2972         insns outside of _ARCH_PWR6 define.
2973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2975         Likewise.
2976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2977         Likewise.
2978         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2979         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2980         relax_fenv_state): Likewise.
2982 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
2984         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2985         cxa_at_quick_exit.
2986         (static-only-routines): Add at_quick_exit.
2987         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2988         GLIBC_2.10.
2989         * stdlib/quick_exit.c: New file.
2990         * stdlib/at_quick_exit.c: New file.
2991         * stdlib/cxa_at_quick_exit.c: New file.
2992         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
2993         it appropriately.
2994         (__internal_atexit): New function.
2995         (__new_exitfn): Now takes parameter to point to the list to use.
2996         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2997         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
2998         (exit): ...here.  Just call __run_exit_handlers appropriately.
2999         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3000         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3001         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3002         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3004         * po/id.po: Update from translation team.
3006 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3008         * po/ru.po: Update from translation team.
3010 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3012         * po/nl.po: Update from translation team.
3014 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3016         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3017         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3018         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3019         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3020         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3021         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3022         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3024         * po/pl.po: Update from translation team.
3026 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3028         [BZ #7083]
3029         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3030         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3031         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3032         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3033         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3034         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3035         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3036         for GLIBC_2.10.
3037         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3038         Add fallocate and fallocate64.
3040         * io/fcntl.h: Pretty printing.
3042 2009-03-02  Richard Guenther  <rguenther@suse.de>
3044         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3045         attribute also for non-C99 inline semantics variant.
3047 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3049         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3050         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3051         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3052         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3054         Likewise.
3055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3056         Likewise.
3058 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3060         * po/cs.po: Update from translation team.
3062 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3064         * po/bg.po: Update from translation team.
3065         * po/sv.po: Likewise.
3066         * po/fi.po: Likewise.
3067         * po/vi.po: Likewise.
3069 2009-02-27  Roland McGrath  <roland@redhat.com>
3071         * Makeconfig (%.v.i): Depend on Makeconfig.
3072         Exclude % lines from initial #-comment removal.
3074 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3076         * po/ko.po: Update from translation team.
3078 2009-02-26  Roland McGrath  <roland@redhat.com>
3080         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3081         avoids unused warning.
3083 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3084             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3086         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3087         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3088         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3089         and asm/user.h.  Include asm/ptrace.h.
3090         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3091         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3092         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3093         Undefine.
3094         (start_thread): Don't undefine.
3095         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3096         Define.
3098 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3100         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3101         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3102         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3103         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3104         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3105         200112L to 200809L.
3106         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3107         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3108         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3109         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3110         _SC_THREAD_ROBUST_PRIO_PROTECT.
3111         * posix/unistd.h: fexecve is in POSIX 2008.
3112         * time/time.h: strftime_l is in POSIX 2008.
3113         * io/sys/stat.h: futimens is in POSIX 2008.
3114         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3115         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3116         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3117         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3118         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3119         open_memstream, and vdprintf are in POSIX 2008.
3121 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3123         * include/features.h: Define macros for XPG7/POSIX 2008.
3124         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3125         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3126         POSIX 2008.
3127         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3128         * locale/xlocale.h: Define locale_t type.
3129         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3130         in POSIX 2008.  Don't define locale_t here.
3131         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3132         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3133         UTIME_OMIT only with __USE_ATFILE.
3134         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3135         * stdio-common/psiginfo.c: New file.
3136         * stdio-common/psiginfo-data.h: New file.
3137         * stdio-common/psiginfo-define.h: New file.
3138         * stdio-common/Makefile (routines): Add psiginfo.
3139         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3140         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3141         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3142         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3143         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3144         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3145         * io/sys/stat.h: Move mknodat definition into same conditional as
3146         mknod.
3147         * time/sys/time.h: futimesat is not among the functions accepted
3148         into the POSIX standard.
3150         * include/features.h: If no feature selection given and we select
3151         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3152         * posix/Versions: Export __posix_getopt.
3153         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3154         Use it to alternatively initialize __posixly_correct.
3155         (_getopt_internal_r): Take addition parameter.  Pass on to
3156         _getopt_initialize.
3157         (_getopt_internal): Take addition parameter.  Pass on to
3158         _getopt_internal_r.
3159         (getopt): Pass additional zero to _getopt_internal.
3160         (__posix_getopt): New function.
3161         * posix/getopt.h: Add redirection for getopt.
3162         * posix/getopt1.c (getopt_long): Pass additional zero to
3163         _getopt_internal.
3164         (getopt_long_only): Likewise.
3165         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3166         (_getopt_long_only_r): Likewise.
3167         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3168         _getopt_internal_r.
3170 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3172         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3173         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3174         * sysdeps/posix/sysconf.c (__sysconf): Handle
3175         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3176         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3178 2009-02-24  Roland McGrath  <roland@redhat.com>
3180         [BZ #9895]
3181         * README.template: Reworded not to use substituted version number.
3182         Renamed to ...
3183         * README: ... here (no longer generated).
3184         * Makefile (README): Target removed.
3186 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3188         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3189         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3190         instead.
3192         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3194         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3196 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3198         * po/bg.po: Update from translation team.
3200 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3202         * stdlib/monetary.h: Uglify function parameter names.
3203         * sunrpc/rpc/pmap_clnt.h: Likewise.
3204         * sunrpc/rpc/svc.h: Likewise.
3205         * sunrpc/rpc/xdr.h: Likewise.
3206         * sunrpc/rpc/clnt.h: Likewise.
3207         * resolv/netdb.h: Likewise.
3208         * resolv/arpa/nameser.h: Likewise.
3209         * resolv/resolv.h: Likewise.
3210         * argp/argp.h: Likewise.
3211         * locale/langinfo.h: Likewise.
3212         * io/sys/stat.h: Likewise.
3213         * posix/spawn.h: Likewise.
3214         * nis/rpcsvc/nislib.h: Likewise.
3215         * malloc/obstack.h: Likewise.
3216         * sysdeps/ia64/bits/link.h: Likewise.
3217         * sysdeps/i386/bits/link.h: Likewise.
3218         * sysdeps/s390/bits/link.h: Likewise.
3219         * sysdeps/powerpc/bits/link.h: Likewise.
3220         * sysdeps/x86_64/bits/link.h: Likewise.
3221         * sysdeps/sparc/bits/link.h: Likewise.
3222         * sysdeps/sh/bits/link.h: Likewise.
3223         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3224         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3225         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3226         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3228 2008-12-01  Fredrik Unger  <fred@tree.se>
3230         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3231         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3232         _FP_UNPACK_RAW_2, fix up first argument.
3234 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3236         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3237         (GET_NPROCS_PARSER): Change parameters and use next_line.
3238         (__get_nprocs): Rewrite to not use stdio routines.
3239         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3240         Change parameters and use next_line.
3242 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3244         [BZ #5381]
3245         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3246         Change mempool_alloc prototype.
3247         * nscd/mem.c (gc): Don't handle mem_in_flight.
3248         (mempool_alloc): Third parameter now only indicates whether this is the
3249         first call (to allocate data) or not.  If it is, get db rdlock.
3250         Release it on error.  Don't handle mem_in_flight.
3251         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3252         Adjust third parameter of mempool_alloc calls.
3253         Nothing to do here in case mempool_alloc fails.
3254         Avoid local variable shadowing parameter.  No need to get db rdlock
3255         before calling cache_add.
3256         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3257         no mem_in_flight array anymore.
3258         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3259         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3260         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3261         in case mempool_alloc fails. No need to get db rdlock before calling
3262         cache_add.
3263         * nscd/hstcache.c (cache_addhst): Likewise.
3264         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3265         * nscd/servicescache.c (cache_addserv): Likewise.
3266         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3268 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3270         * po/lt.po: Update from translation team.
3272 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3274         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3275         defined, allow additional data to be added using the optional
3276         MORE_ELF_HEADER_DATA macro.
3277         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3278         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3280 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3282         * include/atomic.h: Define catomic_and if not already defined.
3283         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3284         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3286 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3288         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3289         Change all callers.
3290         (_int_realloc): Likewise.  Third argument is now padded size
3291         All _int_* functions are now static.
3293         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3294         * malloc/arena.c: Likewise.
3295         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3296         functions.
3298         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3299         easily.
3301         * malloc/malloc.c: Add branch prediction for use of the hooks.
3303         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3305 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3307         [BZ #7095]
3308         * bits/confname.h: Add SUSv7 macros for getconf environments.
3309         * bits/environments.h: Likewise.
3310         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3311         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3312         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3313         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3314         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3315         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3316         * posix/getconf.c: Likewise.
3317         * posix/sysconf.c: Likewise.
3318         * sysdeps/posix/sysconf.c: Likewise.
3319         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3320         environments.
3322 2009-01-16  Petr Baudis  <pasky@suse.cz>
3324         [BZ #9753]
3325         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3326         even if we currently have zero nscount.
3328 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3330         [BZ #9781]
3331         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3332         the input line is too long.
3334         * po/Makefile (libc.pot): Add f_print as function taking c-format
3335         parameter.
3337         * debug/xtrace.sh: Unify translatable messages.
3338         * elf/ldd.bash.in: Likewise.
3339         * elf/sprof.c: Likewise.
3340         * locale/programs/locale.c: Likewise.
3341         * malloc/memusage.sh: Likewise.
3342         * nss/getent.c: Likewise.
3344 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3346         * debug/pcprofiledump.c (print_version,
3347         argp_program_version_hook): New function.
3348         * elf/ldconfig.c (more_help): New function.
3349         (argp): Use it.
3350         * elf/sln.c (usage): New function.
3351         (main): Support --help and --version.
3352         * malloc/memusagestat.c (print_version): New function.
3353         (argp_program_version_hook): New variable.
3354         * nscd/nscd.c (more_help): New function.
3355         (argp): Use it.
3356         * posix/getconf.c (main): Send --version output to stdout.
3357         Support --help.
3358         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3359         arguments.  All callers changed.
3360         (print_version): New function.
3361         (parseargs): Support --help and --version.
3362         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3363         changed.
3364         (print_version): New function.
3365         (main): Use getopt_long.  Support --help and --version.
3366         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3367         --version.
3369 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3371         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3372         (update_data): Fix handling of wrapping back
3373         to the beginning of the buffer.
3375         [BZ #9823]
3376         * stdio-common/psignal.c (psignal): Fix test for empty string.
3378 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3380         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3381         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3382         move _null_auth to .rodata.
3384         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3385         value of 24.
3387         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3389         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3390         today than when the original code was written.  Use larger
3391         buffers.  This also makes it unnecessary to have stat information,
3392         if this causes extra efforts.
3393         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3394         __alloc_dir.
3396 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3398         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3399         is set.
3400         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3401         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3402         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3403         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3404         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3405         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3407 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3409         * po/ru.po: Update from translation team.
3411 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3413         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3414         Add _tid slot to maintain consistency with kernel.
3416 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3418         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3419         incomplete characters at end of input buffer.
3420         * libio/Makefile (tests): Add tst-fgetwc.
3421         * libio/tst-fgetwc.c: New file.
3422         * libio/tst-fgetwc.input: New file.
3424 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3426         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3428 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3430         [BZ #9793]
3431         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3432         *OUTBUFSTART unless the whole output fit into the buffer.
3433         * iconv/Makefile (tests): Add tst-iconv4.
3434         * iconv/tst-iconv4.c: New file.
3436 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3438         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3439         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3441 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3443         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3444         newer linker scripts.
3446 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3448         [BZ #7040]
3449         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3450         inotify_rm_watch should have type int.
3452 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3454         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3455         Make aligned_restore_vmx a local symbol.
3456         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3457         Likewise.
3459 2009-01-30  Andreas Jaeger  <aj@suse.de>
3461         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3462         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3463         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3464         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3465         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3466         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3467         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3469 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3471         [BZ #9726]
3472         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3473         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3475 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3477         [BZ #9726]
3478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3479         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3481         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3483 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3485         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3486         memcpy instead of memcmp.
3487         (_dl_setup_pointer_guard): Likewise.
3489 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3491         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3492         manipulated brk, use malloc_printerr.
3493         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3494         requests.
3496 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3498         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3499         rindex): For C++ add inlines so that they can be recognized as
3500         builtins.
3501         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3503 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3504             Jakub Jelinek  <jakub@redhat.com>
3506         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3507         * wcsmbs/wchar.h: Likewise.
3509 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3511         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3512         (stackinfo_sub_sp): Define.
3514 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3516         [BZ #9750]
3517         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3518         * include/alloca.h (alloca_account): Define.
3519         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3520         (stackinfo_sub_sp): Define.
3522         * nscd/connections.c (nscd_init): If database file access fails
3523         check whether this is due to permission problems and bail in that
3524         case.
3526         [BZ #9741]
3527         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3528         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3530 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3532         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3533         Add "t" to clobber list.
3534         (INTERNAL_SYSCALL_NCS): Likewise.
3536 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3538         * nss/getent.c (print_networks): Don't print comma between aliases.
3540 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3542         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3544         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3545         the hash table.
3546         * misc/Makefile (tests): Add bug-hsearch1.
3547         * misc/bug-hsearch1.c: New file.
3549 2009-01-22  Roland McGrath  <roland@redhat.com>
3551         * Makeconfig (%.v.i): Strip trailing # comments,
3552         not only whole-line comments.
3554 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3556         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3557         one parameter.  If non-NULL use it to initialize return value.
3558         (_dl_setup_pointer_guard): New function.
3559         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3560         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3561         * elf/rtld.c (security_init): Pass _dl_random to
3562         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3563         pointer_chk_guard.
3564         * elf/dl-sysdep.c (_dl_random): New variable.
3565         (_dl_sysdep_start): Handle AT_RANDOM.
3566         (_dl_show_auxv): Likewise.
3567         * elf/dl-support.c (_dl_random): New variable.
3568         (_dl_aux_init): Handle AT_RANDOM.
3569         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3570         to _dl_setup_stack_chk_guard.
3572         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3574 2009-01-10  Roland McGrath  <roland@redhat.com>
3576         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3578 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3580         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3582         [BZ #9706]
3583         * nss/nss_files/files-parse.c (strtou32): New function.
3584         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3585         across 32-bit and 64-bit platforms.
3586         (INT_FIELD_MAYBE_NULL): Likewise.
3588 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3590         [BZ #9720]
3591         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3592         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3593         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3594         Likewise.
3596 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3598         [BZ #697]
3599         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3600         being NULL also if there are no backreferences.
3601         * posix/rxspencer/tests: Add testcases.
3603 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3605         [BZ #9697]
3606         * posix/bug-regex17.c: Add testcases.
3607         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3608         handling.
3610 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3612         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3613         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3614         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3615         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3616         for elf subdir.
3617         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3618         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3619         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3620         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3621         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3622         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3624 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3626         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3627         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3628         re_string_skip_chars, re_string_reconstruct): Likewise.
3629         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3631 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3633         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3634         adjust the buffer alignment.
3636 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3638         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3639         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3640         net/route.h.
3642         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3643         flavor to description only when flavor is not NULL.
3645         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3646         mutex after SIGIO/SIGURG lookup loop.
3648 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3650         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3652 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3654         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3655         handling.
3657 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3659         * sysdeps/unix/sysv/linux/kernel-features.h
3660         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3662         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3663         if no output is written.
3665         * version.h: Bump to 2.10 development.
3667         * posix/getconf.c: Update copyright year.
3668         * nss/getent.c: Likewise.
3669         * iconv/iconvconfig.c: Likewise.
3670         * iconv/iconv_prog.c: Likewise.
3671         * elf/ldconfig.c: Likewise.
3672         * catgets/gencat.c: Likewise.
3673         * csu/version.c: Likewise.
3674         * elf/ldd.bash.in: Likewise.
3675         * elf/sprof.c (print_version): Likewise.
3676         * locale/programs/locale.c: Likewise.
3677         * locale/programs/localedef.c: Likewise.
3678         * nscd/nscd.c (print_version): Likewise.
3679         * debug/xtrace.sh: Likewise.
3680         * malloc/memusage.sh: Likewise.
3681         * malloc/mtrace.pl: Likewise.
3682         * debug/catchsegv.sh: Likewise.
3684 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3686         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3687         script.
3689 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3691         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3692         gethostbyname4_r function call succeeded, just leave the loop.
3694         [BZ #9694]
3695         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3696         very end.
3697         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3698         * wctype/Makefile (tests): Add bug-wctypeh.
3699         * wctype/bug-wctypeh.c: New file.
3701         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3702         LOCALDOMAIN is defined.
3703         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3705         * sysdeps/x86_64/bits/select.h: New file.
3707         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3709 2008-12-21  Bruno Haible  <bruno@clisp.org>
3711         [BZ #9677]
3712         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3713         if no output is written.
3715 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3717         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3718         libc internal symbol __dup2 to avoid access through the PLT.
3720 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3722         [BZ #6545]
3723         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3724         available only for __USE_GNU.
3726         * inet/Makefile (tests): Add tst-getni2.
3727         * inet/tst-getni2.c: New file.
3729         [BZ #7080]
3730         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3731         NULL when NI_NAMEREQD is set.
3732         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3733         * inet/Makefile (tests): Add tst-getni1.
3734         * inet/tst-getni1.c: New file.
3736 2008-12-03  Petr Baudis  <pasky@suse.cz>
3738         [BZ #7067]
3739         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3740         instead of prune_lock.
3741         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3742         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3744 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3746         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3747         use.
3749         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3750         handling.
3752         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3753         after reading name server list.
3755         [BZ #7058]
3756         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3757         handling for host name aliases.
3759 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3761         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3762         instead of doing things manually.
3764 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3766         * posix/regex_internal.h (build_wcs_upper_buffer):
3767         Return type is reg_error_t.
3769 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3771         * posix/globtest.sh: Use mktemp to create temporary file and
3772         directory.
3774         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3775         sets correctly.
3776         (__CPU_CLR_S): Likewise.
3777         (__CPU_ISSET_S): Likewise.
3779 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3780             Ulrich Drepper  <drepper@redhat.com>
3782         * scripts/firstversion.awk: Use custom comparison function to compare
3783         version numbers.
3784         * scripts/versions.awk: Use sort invocation which can handle
3785         multi-digit sub-version numbers.
3787 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3789         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3790         * locale/iso-639.def: Add Chhattisgarhi entry.
3792 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3794         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3795         ESRCH return value.
3796         (_nss_dns_gethostbyname4_r): Likewise.
3797         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3798         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3799         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3800         the no_data variable.
3802         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3803         information at the correct index.
3805         * socket/sys/socket.h: Declare accept4.
3806         * socket/accept4.c: New file.
3807         * sysdeps/unix/sysv/linux/accept4.c: New file.
3808         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3809         * socket/Makefile (routines): Add accept4.
3810         * socket/Versions: Export accept4 with version GLIBC_2.10.
3811         * socket/paccept.c: Removed.
3812         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3813         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3814         * Versions.def: Define GLIBC_2.10 for libc.
3815         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3817         * nscd/connections.c: Use accept4.
3819         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3821 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
3823         * resolv/res_send.c (send_dg): Create sockets with non-blocking
3824         flag already set.
3826         * stdlib/setenv.c (unsetenv): Don't search environment if it does
3827         not exist.
3828         * stdlib/Makefile (tests): Add tst-unsetenv1.
3829         * stdlib/tst-unsetenv1.c: New file.
3831 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
3833         * login/utmp_file.c (file_writable): New variable.
3834         (setutent_file): Don't try to open file for writing.
3835         (pututline_file): Before writing, make descriptor writable if
3836         necessary.
3838 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
3840         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3841         to IPv4 or IPv6 if an interface has been found.
3843 2008-11-26  Roland McGrath  <roland@redhat.com>
3845         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3846         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3848         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3849         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3850         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3852         * elf/elf.h (NT_386_IOPERM): New macro.
3853         (NT_PPC_VSX): New macro.
3855 2008-11-25  Roland McGrath  <roland@redhat.com>
3857         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3858         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3859         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3860         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3861         Subdirectories moved to ports repository.
3862         * configure.in (base_machine): Remove alpha case.
3864 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
3866         * sysdeps/mach/strerror_l.c: New file.
3868 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
3870         [BZ #6411]
3871         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3872         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3873         magic numbers.
3874         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3875         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3876         (relax_fenv_state): Same as above.
3877         (FPSCR_29): Reserve bit in ISA 2.05.
3878         (FPSCR_NI): Provide define for compat.
3879         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3880         magic numbers.
3881         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3882         magic numbers.
3883         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
3884         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3885         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3886         access to hwcap to account for hwcap size increase to uint64_t.
3887         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3888         Likewise.
3889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3890         (*setcontext): Likewise.
3891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3892         New file.
3893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3894         New file.
3895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3896         (*setcontext): dynamically select mtfsf insn based on
3897         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3898         increase to uint64_t.
3899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3900         (*swapcontext): dynamically select mtfsf insn based on
3901         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
3902         increase to uint64_t.
3903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3904         New file.
3905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3906         New file.
3907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3908         (*setcontext): dynamically select mtfsf insn based on
3909         PPC_FEATURE_HAS_DFP.
3910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3911         (*swapcontext): dynamically select mtfsf insn based on
3912         PPC_FEATURE_HAS_DFP.
3914 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
3916         * version.h: Bump for 2.9 release.
3917         * include/features.h (__GLIBC_MINOR__): Bump to 9.
3919         [BZ #7029]
3920         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3921         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3922         all the rounding.
3924 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
3926         [BZ #7009]
3927         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3928         unknown request types for now.
3930 2008-11-11  Roland McGrath  <roland@redhat.com>
3932         * sysdeps/x86_64/configure: New file.
3934         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3935         * configure: Regenerated.
3937 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3939         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3940         correct instruction to remove the stack frame.
3942 2008-11-03  Michael Matz  <matz@suse.de>
3944         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3945         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3947 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
3949         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3950         Remove.
3952         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3953         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3954         of the thread variable instead of void *.
3955         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3956         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3957         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3958         __libc_tsd_define arguments.
3959         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3960         __libc_tsd_address arguments.  Remove union hack.
3961         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3962         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3963         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3964         Adjust __libc_tsd_{set,get} arguments.
3965         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3966         __libc_tsd_define arguments.
3967         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3968         arguments.
3969         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3970         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3971         (LOCALE): Adjust __libc_tsd_define arguments.
3972         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3973         arguments.
3974         (LOCALE): Adjust __libc_tsd_define arguments.
3975         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3976         arguments.
3977         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3978         arguments.
3980 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
3982         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3983         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3985 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
3987         [BZ #6966]
3988         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3990 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
3991             Ulrich Drepper  <drepper@redhat.com>
3993         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3994         definition for GCC 3.1 and later.
3996 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
3998         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3999         refetch dtv, as it might have changed.
4000         * elf/Makefile: Add rules to build and run tst-tls18.
4001         * elf/tst-tls18.c: New test.
4002         * elf/tst-tlsmod18a.c: New file.
4004 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4006         [BZ #6875]
4007         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4009 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4011         [BZ #6867]
4012         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4014         [BZ #6919]
4015         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4016         Fix length of copy operation.
4018 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4020         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4021         and fix its calling convention.
4023 2008-10-07  Andreas Schwab  <schwab@suse.de>
4025         [BZ #6942]
4026         * resolv/res_send.c (send_vc): Fix last change.
4027         (send_dg): Align here as well.
4029 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4031         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4032         return value in case rlimit is RLIM_INFINITY.
4034         [BZ #6947]
4035         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4036         for UL_SETFSIZE.
4037         * resource/Makefile (tests): Add bug-ulimit1.
4038         * resource/bug-ulimit1.c: New file.
4040         [BZ #6974]
4041         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4042         without dot.  Properly terminate the string with a null byte.
4043         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4045         [BZ #6980]
4046         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4047         negative sizees.
4048         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4049         negative __size.
4051         [BZ #6995]
4052         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4054 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4056         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4057         abort if there is no initgroups_dyn function.
4059         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4060         result if any of the queries really provided an answer.
4062 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4064         * po/lt.po: Update from translation team.
4066 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4068         * po/id.po: Update from translation team.
4070 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4072         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4073         Fix tests for existence of second reply.
4075 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4077         * po/id.po: New file.
4078         Contributed by the Indonesian translation team.
4080 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4082         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4083         initialization.
4085 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4087         * elf/Makefile: Add rules to build and run tst-tls17.
4088         * elf/tst-tls17.c: New test.
4089         * elf/tst-tlsmod17a.c: New file.
4090         * elf/tst-tlsmod17b.c: Likewise.
4092 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4094         * stdlib/divmod_1.c: Use correct type for dummy variable.
4095         * stdlib/mod_1.c: Likewise.
4097 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4099         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4101 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4103         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4104         __nonnull order for C++.
4105         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4106         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4108 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4110         * stdlib/longlong.h: Update from GCC.
4112 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4113             David S. Miller  <davem@davemloft.net>
4115         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4116         make sure any registers used with 64-bit 'branch-on-register'
4117         instructions have their top 32-bits clear.
4118         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4119         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4121 2008-09-18  Andreas Schwab  <schwab@suse.de>
4123         [BZ #6942]
4124         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4125         Properly handle partial reads.
4127 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4129         * elf/elf.h (STO_MIPS_PLT): New.
4130         (R_MIPS_COPY): New.
4131         (R_MIPS_JUMP_SLOT): New.
4132         (R_MIPS_NUM): Redefine to 128.
4133         (DT_MIPS_PLTGOT): New.
4134         (DT_MIPS_RWPLT): New.
4135         (DT_MIPS_NUM): Redefine to 0x35.
4137 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4139         * timezone/africa: Update from tzdata2008f.
4140         * timezone/asia: Likewise.
4141         * timezone/australasia: Likewise.
4142         * timezone/europe: Likewise.
4143         * timezone/leapseconds: Likewise.
4144         * timezone/northamerica: Likewise.
4145         * timezone/southamerica: Likewise.
4146         * timezone/zone.tab: Likewise.
4148 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4150         * nscd/connections.c: Disable use of paccept for now.
4152 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4154         * socket/Versions: Remove paccept export for GLIBC_2.9.
4155         * socket/Makefile (routines): Remove paccept.
4156         * socket/sys/socket.h: Remove paccept declaration.
4158         * po/sv.po: Update from translation team.
4160 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4162         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4163         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4165 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4167         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4168         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4170 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4172         * sunrpc/rpc/svc.h: Declare svcfd_create.
4173         Patch by Michael Solberg <msolberg@redhat.com>.
4175 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4176             Ulrich Drepper  <drepper@redhat.com>
4178         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4179         _int_valloc fails.
4180         (public_pVALLOc): Likewise.
4182 2008-09-02  Andreas Jaeger  <aj@suse.de>
4184         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4185         commit.
4187 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4189         [BZ #6860]
4190         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4192 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4194         * Makefile (check-data): Check data directory in add-ons.
4195         * elf/Makefile (check-data): Likewise.
4197 2008-08-18  Roland McGrath  <roland@redhat.com>
4199         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4200         * configure: Regenerated.
4201         * config.make.in (cflags-cpu): New substituted variable.
4202         (with-cpu): Variable removed.
4203         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4205 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4207         [BZ #6845]
4208         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4209         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4210         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4211         redundant.  Functions which call floating point assembler operations
4212         should go into a sysdeps powerpc/fpu directory.
4214 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4216         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4217         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4219 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4221         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4223         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4224         change related to AT_EXECFN.  We cannot use that string.
4225         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4226         _dl_execfn member.
4227         * elf/dl-support.c: Remove _dl_execfn variable.
4228         (_dl_aux_init): Remove handling of AT_EXECFN.
4229         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4230         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4232 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4234         [BZ #6544]
4235         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4236         byte gets added to writes and seeks from the end use the length of
4237         the buffer and not the currently terminating NUL byte.
4239         [BZ #6634]
4240         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4241         Set to true if locking failed.
4242         (getutid_r_file): Adjust caller.
4243         (pututline_file): Likewise.  Return NULL in this case.
4244         Patch mostly by halesh.s@gmail.com.
4246 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4248         [BZ #6589]
4249         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4250         Define.
4251         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4253 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4255         [BZ #6839]
4256         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4257         macro since it is now available in elf/dynamic-link.h.
4259 2008-08-12  Roland McGrath  <roland@frob.com>
4261         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4262         in case used outside of libc.
4263         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4265 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4267         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4268         directly instead of going through dn_comp.
4270 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4272         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4273         Fix asm constraints.
4275 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4277         [BZ #6790]
4278         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4279         (IPV6_PMTUDISC_PROBE): Likewise.
4281 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4283         [BZ #6791]
4284         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4286 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4287             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4289         [BZ #6817]
4290         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4291         Added the members 'vsx' and 'arch_2_06'.
4292         (_dl_powerpc_platforms): Add the member 'power7'.
4293         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4294         to reflect the changes required by VSX and ISA 2.06.
4295         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4296         'power7'.
4297         Defined PPC_PLATFORM_POWER7.
4298         (_dl_string_platform): Add support for POWER7.
4299         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4300         capability and ISA 2.06.
4302 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4304         [BZ #6824]
4305         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4306         macro to detect use of 128 bit long double.
4307         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4309 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4311         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4313         [BZ #5794]
4314         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4315         parameters.
4316         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4317         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4319 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4321         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4322         guaranteed to be large enough to read inotify event.  Ignore
4323         EAGAIN error.  Better error message.  Add branch predicition.
4324         (main_loop_epoll): Likewise.
4326 2008-08-02  Roland McGrath  <roland@frob.com>
4328         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4329         Add memory clobbers.
4331 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4333         * manual/arith.texi: Avoid @strong{Note:}.
4334         * manual/creature.texi: Likewise.
4335         * manual/filesys.texi: Likewise.
4336         * manual/math.texi: Likewise.
4337         * manual/memory.texi: Likewise.
4338         * manual/resource.texi: Likewise.
4339         * manual/syslog.texi: Likewise.
4340         * manual/time.texi: Likewise.
4342         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4343         to prevent warning.
4345 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4347         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4348         new epoll_create1 interface.
4349         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4350         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4351         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4353         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4354         (NS_GET32): Likewise.
4356         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4357         syscalls, too.
4359         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4360         use the AT_EXECFN value if it is no absolute path.
4361         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4362         __ASSUME_AT_EXECFN.
4364         * Versions.def: Add GLIBC_2.9 to libresolv.
4365         * include/resolv.h: Remove hidden proto declarations for __ns_*
4366         functions.  Add them for __dn_count_labels and __p_secstodate.
4367         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4368         Define ns_msg_getflags macro here.
4369         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4370         and __p_secstodate.
4371         * resolv/Versions: Export functions from <arpa/nameser.h> from
4372         libresolv in version GLIBC_2.9.
4373         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4374         hidden definitions.
4375         * resolv/ns_netint.c: Likewise.
4376         * resolv/ns_parse.c: Likewise.
4377         * resolv/ns_print.c: Likewise.
4378         * resolv/ns_samedomain.c: Likewise.
4379         * resolv/ns_ttl.c: Likewise.
4380         * resolv/arpa/nameser_compat.h: Likewise.
4381         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4382         function calls.
4383         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4384         instead of ns_get16.
4385         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4386         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4387         (gaih_getanswer_slice): Likewise.
4388         * resolv/Makefile (libresolv-routines): Add ns_date.
4389         * resolv/ns_date.c: New file.
4391         * elf/Makefile (check-localplt.out): Also check libresolv and
4392         libcrypt.
4394 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4396         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4397         __ASSUME_O_CLOEXEC.
4399 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4401         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4402         buffer passed to NSS functions.
4404         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4406         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4407         Define.
4409         * misc/syslog.c (openlog_internal): Fix compile problem.
4411 2008-07-28  Roland McGrath  <roland@redhat.com>
4413         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4415 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4417         * io/ftw.c (add_object): Remove inline to avoid warning.
4419         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4421         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4422         Use it instead of locally defined resplen2 variable.
4423         (res_nsend): Adjust for __libc_res_nsend interface change.
4424         (send_vc): Initialize *resplen2 if necessary.  Read length of
4425         package into an appropriately aligned variable.  Store converted length
4426         in new variable and use it appropriately.
4427         Add branch prediction help.
4428         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4429         and pass it on to __libc_res_nsend.  Adjust all callers.
4430         (__libc_res_nsearch): Likewise.
4431         (__libc_res_nqeurydomain): Likewise.
4432         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4433         change.
4434         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4435         Define resplen2 variable and pass it to __libc_res_nsearch and then
4436         to gaih_getanswer.
4437         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4438         Add branch prediction.
4439         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4440         (gaih_getanswer): Don't decode second slice if first one failed due
4441         to a too small buffer.  Don't let not found status of second
4442         decoder shadow results of the first.
4443         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4444         and __libc_res_nquery interface changes
4445         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4446         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4447         __libc_res_nsearch, and __libc_res_nsend.
4448         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4449         change.
4450         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4451         __libc_res_nsearch interface changes.
4453 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4455         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4457         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4458         file descriptors with close-on-exec set.
4459         (exec_comm_child): Fix the case where the write end of the pipe is
4460         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4462         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4463         * io/pipe2.c: Likewise.
4464         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4465         instead of __ASSUME_PACCEPT.
4466         * include/unistd.h: Declare __have_pipe2.
4467         * libio/iopopen.c: Implement "e" flag.
4468         * libio/Makefile (tests): Add tst-popen1.
4469         * libio/tst-popen1.c: New file.
4471         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4472         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4474 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4476         [BZ #6771]
4477         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4478         success call of _IO_SEEKOFF or calls which failed because the
4479         descriptor is for a pipe.
4481         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4482         magic number.
4484         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4486         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4487         F_SETFD use if we know fopen set the flag.
4489         * login/utmp_file.c (setutent_file): Minor optimization in case
4490         O_CLOEXEC is available.
4492 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4494         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4495         * elf/Makefile: Use pie-ccflag variable.
4496         * nscd/Makefile: Likewise.
4497         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4499 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4501         [BZ #6724]
4502         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4503         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4504         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4505         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4506         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4507         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4508         utmp32, utmpx32 and login32.
4509         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4510         versions of struct utmp functions to libc and libutil.
4511         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4512         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4513         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4514         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4515         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4516         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4517         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4518         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4519         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4520         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4521         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4522         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4523         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4524         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4525         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4526         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4527         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4528         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4529         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4530         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4531         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4532         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4534 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4536         * scripts/gen-as-const.awk: Generate more widely usable code by
4537         using 64-bit arithmetic.
4539         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4540         the same treatment as narrow output code in last patch.
4542         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4544         [BZ #6763]
4545         * elf/dl-load.c (local_strdup): Remove inline.
4546         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4547         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4548         part of the object.
4550         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4552 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4554         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4555         the new syscalls, too.
4557         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4558         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4560         [BZ #6698]
4561         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4562         parameter for end of buffer.  If temporary copy is too large use
4563         malloc.
4564         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4565         interface change.
4566         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4567         string rewrite when allocating buffer.
4569         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4570         syscalls, too.
4572         * nscd/connections.c (nscd_init): Clean up fcntl call.
4574         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4575         SOCK_NONBLOCK if possible.
4577         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4578         SOCK_CLOEXEC if available.
4580         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4581         __libc_clntudp_bufcreate_internal.
4582         * include/sys/socket.h: Declare __have_sock_cloexec.
4583         * socket/Makefile (aux): Add have_sock_cloexec.
4584         * socket/have_sock_cloexec.c: New file.
4585         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4586         __libc_clntudp_bufcreate.
4587         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4588         which takes an additional parameter.  Create socket with non-blocking
4589         mode and close-on-exec flag set, if wanted.
4590         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4591         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4592         instead of clntudp_create.  The socket has already the close-on-exec
4593         flag set if SOCK_CLOEXEC is defined.
4595 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4597         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4598         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4599         appropriate.
4600         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4601         non-blocking mode by using socket, paccept, and inotify_init1.
4603         * Versions.def (glibc): Add GLIBC_2.9.
4604         * io/Makefile (routines): Add dup3 and pipe2.
4605         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4606         * io/dup3.c: New file.
4607         * io/pipe2.c: New file.
4608         * posix/unistd.h: Declare dup3 and pipe2.
4609         * socket/Makefile (routines): Add paccept.
4610         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4611         * socket/paccept.c: New file.
4612         * socket/sys/socket.h: Declare paccept.
4613         * sysdeps/unix/syscalls.list: Add entry for dup3.
4614         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4615         epoll_create2 and inotify_init1.
4616         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4617         * sysdeps/unix/sysv/linux/paccept.c: New file.
4618         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4619         possible.
4620         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4621         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4622         inotify_init1, and pipe2 entries.
4623         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4624         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4625         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4626         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4627         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4628         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4629         SOCK_NONBLOCK.
4630         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4631         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4632         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4633         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4634         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4635         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4636         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4637         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4638         EPOLL_NONBLOCK.  Declare epoll_create2.
4639         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4640         EFD_NONBLOCK.
4641         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4642         IN_NONBLOCK.  Declare inotify_init1.
4643         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4644         SFD_NONBLOCK.
4645         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4646         TFD_NONBLOCK.
4648         * elf/elf.h: Define AT_EXECFN.
4649         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4650         LD_ORIGIN_PATH.
4651         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4652         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4653         if __ASSUME_AT_EXECFN is defined.
4654         (_dl_aux_init): Handle AT_EXECFN.
4655         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4656         for 2.6.27 and up.
4657         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4658         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4659         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4660         _dl_execfn if available and avoid compatibility code if
4661         __ASSUME_AT_EXECFN is defined.
4663         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4664         _dl_discover_osversion only for older kernels.
4666 2008-07-22  Roland McGrath  <roland@frob.com>
4668         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4670 2008-07-21  Roland McGrath  <roland@frob.com>
4672         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4673         returned too much data out of line.
4675 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4677         * locale/setlocale.c (setname): Remove inline to avoid compiler
4678         warning.
4680         [BZ #6712]
4681         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4683 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4685         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4686         doesn't manage to write anything, fail.
4688         * malloc/hooks.c (__malloc_check_init): Remove printf.
4690 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4692         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4694 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4696         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4697         from inotify.
4698         (main_loop_epoll): Likewise.
4700 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4702         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4704         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4705         if DEBUG is defined.
4707         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4708         query.  Adjust buffer size computation for padding.
4710 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4712         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4713         * stdio-common/tst-setvbuf1.c: New file.
4714         * stdio-common/tst-setvbuf1.expect: New file.
4716         [BZ #6719]
4717         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4718         when selecting fully-buffered stream.
4719         Patch by Wang Xin <wxinee@gmail.com>.
4721 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4723         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4724         (__open_2): New function.
4725         (__open64_2): New alias to __open_2.
4726         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4727         (__openat_2): New function.
4728         (__openat64_2): New alias to __openat_2.
4730 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4732         [BZ #6723]
4733         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4735 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4737         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4738         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4739         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4740         __hurd_dfail.
4741         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4742         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4743         * sysdeps/mach/hurd/send.c (__send): Likewise.
4744         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4745         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4747 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4749         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4750         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4751         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4752         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4753         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4754         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4756 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4758         [BZ #6657]
4759         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4760         of %EY.
4761         Patch by Petr Baudis.
4763 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4765         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4766         Patch by Peter Jones <pjones@redhat.com>.
4768 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4770         [BZ #6654]
4771         * stdlib/canonicalize.c (__realpath): readlink can write too much
4772         into the buffer on platforms without PATH_MAX.
4774 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4776         [BZ #6653]
4777         * posix/tst-regex.c (main): Rename to...
4778         (do_test): ... this. Remove cmdline option processing.
4779         (TIMEOUT): Define.
4780         (TEST_FUNCTION): Define.
4781         (CMDLINE_OPTIONS): Define.
4783 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4785         [BZ #5210]
4786         * configure.in: Add -Werror to -fstack-protector test to catch
4787         unsupported architectures.
4788         Patch by Gilles Esponasse <g.esp@free.fr>.
4790 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4792         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4793         getcontext returns ENOSYS.
4795 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4797         * nscd/connections.c (main_loop_poll): Fix test for read error.
4798         (main_loop_epoll): Likewise.
4800 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4802         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4803         better place so it is not called when nscd is used.
4805         * nscd/connections.c: Also recognize and handle changes to the
4806         resolver configuration file.
4808 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4810         * time/strftime.c: Pass reference to tzset_called around to handle
4811         recursive calls.
4813         [BZ #6612]
4814         * time/strftime.c (__strftime_internal): Call tzset() only
4815         when printing timezone-dependent values.
4816         Based on a patch by Petr Baudis <pasky@suse.cz>.
4818         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4819         unconditionally use second gaih_getanswer_slice result.
4821         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4822         (getaddrinfo): RES must always be non-NULL.
4824 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4826         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4827         cr[34] registers.
4828         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4829         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4830         Likewise.
4831         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4832         register.
4834 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4836         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4837         fields.
4838         * nscd/connections.c (inotify_fd): New variable.
4839         (nscd_init): Try to open an inotify descriptor.
4840         If successful, watch files for databases using inotify instead of
4841         having prune threads stat the files.
4842         (nscd_run_prune): Recognize clear_cache flag being set and call
4843         prune_cache appropriately.
4844         (main_loop_poll): Add inotify descriptor to wait set and handle the
4845         reported changes.
4846         (main_loop_epoll): Likewise.
4847         * nscd/cache.c (prune_cache): Don't stat files for databases if
4848         inotify is used.
4849         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4850         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4852         * nscd/grpcache.c (cache_addgr): Correctly compute size of
4853         fixed-size portion of the record.
4854         * nscd/servicescache.c (cache_addserv): Likewise.
4855         * nscd/pwdcache.c (cache_addpw): Likewise.
4856         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4858 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
4860         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4861         out we don't use uninitialized memory.
4863         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4864         the client.
4866 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
4868         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4869         ignore T_DNAME messages.
4870         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4872 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
4874         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4875         Avoid segfault if first GETC returns eof/'\0'/'\n'.
4877 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
4879         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4880         instead of portstr to nscd_getserv_r.  Patch by
4881         Roman Kagan <rkagan@mail.ru>.
4883 2008-05-26  Jim Meyering  <meyering@redhat.com>
4885         Remove more useless "if" tests before "free".
4886         * include/inline-hashtab.h (htab_delete): Likewise.
4887         * libio/freopen.c (freopen): Likewise.
4888         * libio/freopen64.c (freopen64): Likewise.
4889         * locale/programs/ld-collate.c (collate_read): Likewise.
4890         * misc/fstab.c (libc_freeres_fn): Likewise.
4891         * posix/glob.c (globfree): Likewise.
4893 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4895         * string/Makefile (strop-tests): Add memmem.
4896         * string/test-memmem.c: New file.
4897         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4898         (test_init): Size buf1 according to BUF1PAGES.
4900 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
4902         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4903         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4904         (CFLAGS-scanf17.c): New.
4905         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4906         * stdio-common/scanf15.c (main): Likewise.
4907         * stdio-common/scanf16.c: New file.
4908         * stdio-common/scanf17.c: New file.
4910 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4912         * resolv/res_send.c (send_dg): If we already have one of two
4913         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4914         use the one answer insted of failing.
4916 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
4918         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4919         being executed on PowerPC as the expected result exceeds IBM
4920         long double 128 __LDBL_MAX__.
4922 2008-05-21  Roland McGrath  <roland@redhat.com>
4924         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4926         * Makefile (check-data): Use $(abi-name) before other guesses.
4927         Look in $(add-ons) dirs before scripts/data/.
4928         * elf/Makefile (check-data): Likewise.
4930         * scripts/soversions.awk: Grok ABI line.
4931         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4932         Emit definition for abi-name variable.
4934 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
4936         * string/endian.h: Define new fixed-size hto* and *toh macros only
4937         if [__USE_BSD].
4939         * iconvdata/Depend: Add localedata.
4941 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4943         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4945 2008-05-08  David S. Miller  <davem@davemloft.net>
4947         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4948         HIDDEN_JUMPTARGET.
4949         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4950         (__SYSCALL_CLOBBERS): Remove %g* registers.
4951         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4952         (__SYSCALL_CLOBBERS): Likewise.
4953         * scripts/data/localplt-sparc-linux-gnu.data: New file.
4954         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4956 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
4958         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4959         (CALL_ERRNO_LOCATION): Define.
4960         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4961         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4962         (CALL_ERRNO_LOCATION): Define.
4963         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4964         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4965         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4967 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
4969         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4970         variable.
4972 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
4974         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4975         (FIRST_FRAME_POINTER): Define.
4977 2008-05-09  David S. Miller  <davem@davemloft.net>
4979         * sysdeps/sparc/sparc64/backtrace.c: New file.
4981 2008-05-14  David S. Miller  <davem@davemloft.net>
4983         * sysdeps/sparc/machine-gmon.h: New file.
4984         * sysdeps/sparc/sparc-mcount.S: Likewise.
4985         * sysdeps/sparc/Makefile: Add sparc-mcount target to
4986         sysdep_routines in gmon directory.
4988 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
4990         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4992 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
4994         * resolv/res_query.c (__libc_res_nquery): In case one of two
4995         answer was too short don't try to read that answer's header.
4997         * resolv/res_send.c (send_dg): In case of timeout and there are
4998         two queries and one has been answered, return value indicating
4999         success.
5001 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5003         * nscd/cache.c (cache_add): Take additional parameter specifying
5004         whether this is in response of a cache refill.  Check alignment
5005         of package data.  Revamp waking of pruning thread.
5006         (prune_cache): Small optimization.
5007         * nscd/nscd.h: Adjust cache_add prototypes.
5008         * nscd/aicache.c: Adjust cache_add calls.
5009         * nscd/grpcache.c: Likewise.
5010         * nscd/hstcache.c: Likewise.
5011         * nscd/initgrcache.c: Likewise.
5012         * nscd/pwdcache.c: Likewise.
5013         * nscd/servicescache.c: Likewise.
5014         * nscd/connections.c (restart): Really disable cache use before
5015         exec attempt.  If it fails, reenable cache.
5016         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5017         time to max to be able to notice concurrent cache additions.  Unlock
5018         prune_lock while performing gc.  Afterwards compute wakeup time with
5019         current wakeup_time value in mind.
5021 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5023         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5025         * nscd/mem.c (gc): Correctly determine highest used array element
5026         in mark.
5028         * nscd/mem.c (markrange): Add assert to check entries are all
5029         aligned.  Small cleanup in bitmap use.
5031         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5032         blockoff of type nscd_ssize_t.
5033         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5034         (mempoll_alloc): Record block offset and not address.
5036         * nscd/mem.c (gc): Fix test for stack overuse.
5038         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5039         more asserts.
5041         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5042         entry is available, believe it.
5044         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5045         no answers return NSS_STATUS_NOTFOUND.
5046         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5047         buffer does not have any content.
5049 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5051         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5053         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5054         lookup, don't assign canon unconditionally.
5056 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5058         * string/Makefile (distribute): Add str-two-way.h.
5060 2008-03-29  Eric Blake  <ebb9@byu.net>
5062         Rewrite string searches to O(n) rather than O(n^2).
5063         * string/str-two-way.h: New file.  For linear fixed-allocation
5064         string searching.
5065         * string/memmem.c: New implementation.
5066         * string/strstr.c: New implementation.
5067         * string/strcasestr.c: New implementation.
5069 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5071         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5072         opr.ctx_type.
5073         (calc_first): Initialize constraint field.
5074         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5075         Use search_duplicated_node to avoid loops.  Fix grammar.
5076         (duplicate_node): Merge constraint field for all node types.
5077         (calc_eclosure_iter): Look at constraint field for all node types.
5078         * posix/regex_internal.c (create_cd_newstate): Don't look at
5079         create_cd_newstate.
5081 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5083         [BZ #6428]
5084         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5086         [BZ #6442]
5087         * string/endian.h: Add macros for fixed-size endian conversion.
5088         * bits/byteswap.h: Allow inclusion from <endian.h>.
5089         * sysdeps/i386/bits/byteswap.h: Likewise.
5090         * sysdeps/ia64/bits/byteswap.h: Likewise.
5091         * sysdeps/s390/bits/byteswap.h: Likewise.
5092         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5093         * string/Makefile (tests): Add tst-endian.
5094         * string/tst-endian.c: New file.
5096         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5097         Patch by Reuben Thomas.
5099 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5101         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5103 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5105         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5107         [BZ #6461]
5108         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5109         Add missing braces.
5110         (BODY for __gconv_transform_internal_ascii): Likewise.
5112         [BZ #6472]
5113         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5114         to be treated like link-local addresses.
5115         (match_prefix): Don't treat IPv4 loopback address special when
5116         converting to v4 mapped addressed.
5118         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5119         if necessary.
5120         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5121         * posix/tst-rfc3484-2.c: Likewise.
5122         * posix/tst-rfc3484-3.c: Likewise.
5124         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5125         and SCTP.
5127         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5129         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5131         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5133 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5135         * po/lt.po: New file.  From Lituanian translation team.
5137 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5139         Introduce TLS descriptors for i386 and x86_64.
5140         * include/inline-hashtab.h: New file, copied from 2005's
5141         libiberty, with fix for memory leak imported afterwards by
5142         Glauber de Oliveira Costa.
5143         * elf/tlsdeschtab.h: New file.
5144         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5145         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5146         (CHECK_STATIC_TLS): Move to...
5147         * elf/dynamic-link.h: ... this file.
5148         (TRY_STATIC_TLS): New macro.
5149         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5150         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5151         R_386_TLS_DESC): Define.
5152         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5153         binutils.
5154         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5155         R_X86_64_TLSDESC): Define.
5156         (R_386_NUM, R_X86_64_NUM): Adjust.
5157         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5158         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5159         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5160         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5161         release tlsdesc_table.
5162         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5163         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5164         (elf_machine_rel): Handle R_386_TLS_DESC.
5165         (elf_machine_rela): Likewise.
5166         (elf_machine_lazy_rel): Likewise.
5167         (elf_machine_lazy_rela): Likewise.
5168         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5169         * sysdeps/i386/dl-tlsdesc.S: New file.
5170         * sysdeps/i386/dl-tlsdesc.h: New file.
5171         * sysdeps/i386/tlsdesc.c: New file.
5172         * sysdeps/i386/tlsdesc.sym: New file.
5173         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5174         tlsdesc_table.
5175         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5176         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5177         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5178         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5179         release tlsdesc_table.
5180         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5181         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5182         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5183         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5184         (elf_machine_rela): Likewise.
5185         (elf_machine_lazy_rel): Likewise.
5186         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5187         (__tls_get_addr): Do not declare for non-shared compiles.
5188         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5189         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5190         * sysdeps/x86_64/tlsdesc.c: New file.
5191         * sysdeps/x86_64/tlsdesc.sym: New file.
5192         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5193         tlsdesc_table for both 32- and 64-bit structs.
5195 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5197         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5198         its own function.  This reduces the frame setup costs and more.
5200 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5202         [BZ #3406]
5203         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5204         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5206 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5208         * io/openat.c (__openat_2): Also pass fd to __openat.
5209         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5210         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5212         * string/tester.c (test_memcmp): Add a few more tests.
5213         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5215 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5217         * nscd/cache.c (cache_add): Before returning with failure and this
5218         is the first use of the record, mark it as unusable.
5219         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5220         reporting a failure.
5221         * nscd/grpcache.c: Likewise
5222         * nscd/hstcache.c: Likewise.
5223         * nscd/initgrcache.c: Likewise.
5224         * nscd/pwdcache.c: Likewise.
5225         * nscd/servicescache.c: Likewise.
5227 2008-05-10  Roland McGrath  <roland@redhat.com>
5229         [BZ #6505]
5230         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5232 2008-05-08  David S. Miller  <davem@davemloft.net>
5234         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5236         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5237         (__ieee754_y0l): Likewise.
5238         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5239         (__ieee754_y1l): Likewise.
5240         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5241         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5242         frexpl and ldexpl.  math_private.h provides them and the latter
5243         is not even used.
5244         (__log1pl): Use __frexpl.
5246 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5248         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5249         prototypes.
5250         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5251         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5252         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5253         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5254         af==AF_UNSPEC.
5255         (_nss_nis_gethostbyname4_r): New function.
5256         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5257         Change to also handle af==AF_UNSPEC.
5258         (get_tablename): New function.  Use it to avoid duplication.
5259         (_nss_nisplus_gethostbyname4_r): New function.
5260         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5261         available.
5262         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5263         * nss/nss.h: Define struct gaih_addrtuple.
5264         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5265         af==AF_UNSPEC.
5266         (_nss_files_gethostbyname4_r): New function.
5267         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5268         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5269         calls.
5270         * resolv/res_query.c (__libc_res_nquery): Take two additional
5271         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5272         look up IPv4 and IPv6.
5273         Change all callers.
5274         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5275         for an additional query and answer buffer.  Pass to send_vc and
5276         send_dg.
5277         (send_vc): Send possibly two requests and receive two answers.
5278         (send_dg): Likewise.
5279         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5280         __libc_res_nquery.
5281         (_nss_dns_gethostbyname4_r): New function.
5282         (gaih_getanswer_slice): Likewise.
5283         (gaih_getanswer): Likewise.
5284         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5285         __libc_res_nquery call.
5286         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5287         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5288         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5289         available.
5291 2008-05-05  David S. Miller  <davem@davemloft.net>
5293         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5294         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5296 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5298         Fix termios bit macros.
5299         Move *DLY definitions where they belong, in termios.h.
5300         Add *[0-3] definitions.
5301         Fixes confusion between VT and FF.
5302         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5303         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5304         are already defined to avoid collision with termios.h.
5305         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5306         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5307         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5308         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5309         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5310         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5311         VTDLY, VT0, VT1): New macros.
5312         [__USE_GNU] (OLCUC): Change value of macro.
5313         [__USE_XOPEN] (OFILL): New macro.
5314         [__USE_BSD] (CRTSCTS): Change value.
5315         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5316         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5317         (B7200, B14400, B28800, B76800): New macros.
5319 2008-05-01  David S. Miller  <davem@davemloft.net>
5321         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5322         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5323         (gen-as-const-headers): Add it.
5324         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5325         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5326         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5327         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5329         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5330         six system call parameters.
5331         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5333 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5335         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5336         RUSAGE_LWP.
5337         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5338         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5340 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5342         * stdlib/tst-setcontext.c: Include unistd.h.
5344 2008-04-25  David S. Miller  <davem@davemloft.net>
5346         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5347         Pass "union semun" properly in to sys_ipc, it must be passed
5348         by value, not by reference.
5350 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5352         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5353         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5354         * nscd/connections.c (mem_in_flight): Likewise.
5356         * nscd/nscd.h (dbs): Make hidden.
5358         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5359         Avoid returning -1, return 0 instead.
5361 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5363         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5365 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5367         [BZ #5209]
5368         * sysdeps/unix/sysv/linux/times.c: New file.
5370         [BZ #5381]
5371         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5372         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5373         prototype.
5374         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5375         appropriate mem_in_flight element.
5376         (gc): Take allocations which have not yet been committed to the
5377         database into account.
5378         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5379         Reset mem_in_flight before returning.
5380         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5381         cue it up in mem_in_flight_list.
5382         * nscd/aicache.c: Adjust mempool_alloc call.
5383         * nscd/grpcache.c: Likewise.
5384         * nscd/hstcache.c: Likewise.
5385         * nscd/initgrcache.c: Likewise.
5386         * nscd/pwdcache.c: Likewise.
5387         * nscd/servicescache.c: Likewise.
5388         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5389         of -fpie.
5391         * nscd/connections.c (handle_request): Provide better error message
5392         in case SELinux forbids the service.
5394         * version.h (VERSION): Bump to 2.8.90.
5396 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5398         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5400 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5402         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5403         Also use for 32-bit.
5404         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5405         __nextafter instead of nextafter to avoid local PLT.
5406         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5407         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5409         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5411         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5412         __fe_nomask_env.
5413         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5414         <fenv_libc.h> instead of <fenv.h>.
5415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5418         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5420         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5421         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5422         function from fegetexcept and make old name weak alias.
5423         * include/fenv.h: Declare __fegetexcept.
5424         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5425         fegetexcept.
5426         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5427         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5428         to fetestexcept.
5429         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5430         instead of frexpl to avoid local PLT.
5431         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5432         ilogbl to avoid local PLT.
5433         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5434         instead of ldexpl to avoid local PLT.
5435         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5436         __roundl not roundl to avoid local PLT.
5437         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5438         local PLTs.  Use __sincosl instead of separate sinl and cosl
5439         calls.
5440         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5442         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5443         version for ppc64 to 2.4.21 since without it makecontext will fail.
5445         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5446         to the ABI in use.
5447         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5448         .__tls_get_addr.
5449         [__powerpc64__] (TLS_GD): Likewise.
5451 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5453         [BZ #4997]
5454         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5455         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5456         mantissa.
5457         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5458         Likewise.  Also account for when x is an odd number between 2^52
5459         and 2^53-1.
5460         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5461         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5462         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5463         detect aforementioned erroneous conditions.
5465 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5467         * configure.in: Check for -fno-section-anchors in addition to
5468         -fno-toplevel-reorder.
5470 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5472         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5474         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5475         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5476         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5477         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5478         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5479         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5481 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5483         [BZ #5443]
5484         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5485         * time/alt_digit.c: Likewise.
5486         * wcsmbs/wcsmbsload.c: Likewise.
5488 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5490         * version.h (VERSION): Bump to 2.8.
5492         * timzeone/asia: Update from tzdata2008b.
5493         * timezone/backward: Likewise.
5494         * timezone/europe: Likewise.
5495         * timezone/northamerica: Likewise.
5496         * timezone/southamerica: Likewise.
5497         * timezone/iso3166.tab: Likewise.
5498         * timezone/leapseconds: Likewise.
5499         * timezone/zone.tab: Likewise.
5500         * timezone/private.h: Update from tzcode2008a.
5501         * timezone/zdump.c: Likewise.
5502         * timezone/zic.c: Likewise.
5504 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5506         [BZ #5741]
5507         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5508         Define additonal Data Cache Block instruction macros.
5509         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5510         Replace dcbst with dcbf and sync with sync/isync.
5512 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5514         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5515         Always set ELF_RTYPE_CLASS_PLT.
5516         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5518 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5520         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5521         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5522         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5523         For ISA 2.01 and later replace mftb with mfspr 268.
5525 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5527         [BZ #5768]
5528         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5529         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5531 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5533         [BZ #5768]
5534         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5535         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5536         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5537         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5539 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5541         * stdlib/tst-makecontext.c (othervar): New variable.
5542         (cf): Test sign extending the argument to long.
5544 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5546         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5547         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5548         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5549         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5550         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5551         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5552         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5554 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5556         * elf/Makefile (tests): Substitute tests-vis-yes here.
5557         (tests-vis-yes): Delete.
5558         (modules-name, modules-vis-yes): Similarly.
5560 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5562         [BZ #4407]
5563         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5564         Preserve sign in signgamp when x is zero.
5566 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5568         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5569         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5570         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5571         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5572         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5573         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5575 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5577         [BZ #4314]
5578         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5579         buffers.
5581         [BZ #5209]
5582         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5583         a reserved error value.
5585         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5586         value to check for correct sign extension.
5588         [BZ #5436]
5589         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5590         Copy 64-bit parameter values even though this is not required in
5591         the standard.
5593         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5594         PC save.
5596 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5598         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5599         PC save.
5601 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5603         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5605 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5607         [BZ #5998]
5608         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5609         in line-buffered stream failed.
5610         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5612 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5614         [BZ #6024]
5615         * scripts/abi-versions.awk: If the version specified by
5616         --enable-oldest-abi is older than the first version for this
5617         architecture, use the default version.
5619         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5620         as well when ignoring the whole category.
5622 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5624         [BZ #6042]
5625         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5626         ETHERTYPE_* definitions.
5627         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5629 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5631         * stdlib/mbtowc.c (__no_r_state): Remove.
5632         (mbtowc): New static state variable.  Use it instead of
5633         __no_r_state.
5634         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5635         (__wctomb_state): New hidden variable.
5636         (wctomb): Use __wctomb_state instead of __no_r_state.
5637         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5638         (__wctomb_state): New extern decl.
5639         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5641 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5643         [BZ #5475]
5644         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5646 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5648         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5650 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5652         * po/nl.po: Update from translation team.
5654 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5656         [BZ #6007]
5657         * string/strfry.c: Handle empty strings again.
5659 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5661         [BZ #5443]
5662         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5663         before looking for translation.
5664         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5665         * locale/freelocale.c: Likewise.
5666         * locale/newlocale.c: Likewise.
5667         * locale/setlocale.c: Likewise.
5668         Based partially on a patch by ryo@np.css.fujitsu.com.
5670 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5672         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5673         acquiring wrlock.  Do conv_tab allocation while holding lock.
5674         * intl/Makefile: Add rules to build and run tst-gettext6.
5675         * intl/tst-gettext6.c: New test.
5676         * intl/tst-gettext6.sh: New file.
5678 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5680         * po/nl.po: Update from translation team.
5682         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5683         provided through st_blksize, try the default size before giving up.
5685 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5687         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5689         [BZ #5939]
5690         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5692         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5693         error message.  POSIX today does not require the messages to be in
5694         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5696         [BZ #5979]
5697         * sunrpc/auth_unix.c: Unify printed strings.
5698         * sunrpc/clnt_tcp.c: Likewise.
5699         * sunrpc/clnt_udp.c: Likewise.
5700         * sunrpc/clnt_unix.c: Likewise.
5701         * sunrpc/svc_tcp.c: Likewise.
5702         * sunrpc/svc_udp.c: Likewise.
5703         * sunrpc/svc_unix.c: Likewise.
5704         * sunrpc/xdr.c: Likewise.
5705         * sunrpc/xdr_array.c: Likewise.
5706         * sunrpc/xdr_rec.c: Likewise.
5707         * sunrpc/xdr_ref.c: Likewise.
5708         * locale/programs/ld-time.c (time_finish): Unify messages.
5709         * locale/programs/locfile.c (handle_copy): Fix typo.
5710         * nscd/nscd.c (options): Fix typo.
5712         [BZ #5995]
5713         * stdlib/strtod_l.c: Use correct sign for result in one more
5714         underflow case.
5715         Patch by Eric Blake <ebb9@byu.net>.
5717 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5719         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5720         and creat system calls.
5721         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5722         call.
5723         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5724         system calls.
5725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5726         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5727         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5729 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5731         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5732         <linux/limits.h> has defined it.
5733         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5734         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5735         headers.
5736         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5737         it instead of ARG_MAX.
5739 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5741         * posix/gai.conf: Fix comment for scope nullbits.
5742         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5743         default to 128 bits for v4 mapped addresses.
5745 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5747         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5748         ptrace call to get the ieee_instruction_pointer from the kernel.
5749         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5750         ptrace call to set the ieee_instructtion_pointer.
5751         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5752         Add comment that ieee_instruction_pointer is always 0.
5754 2008-03-09  Andreas Jaeger  <aj@suse.de>
5756         [BZ #5857]
5757         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5758         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5759         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5761         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5762         (rint_test): Likewise.
5764 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5766         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5767         call.
5768         (__nisfind_server): Similar for open readColdStartFile call.
5769         Patch partially by Jim Meyering.
5770         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5771         around internal_setent call.
5773         * po/vi.po: New Vietnamese translation.
5775         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5776         ADJ_OFFSET_SS_READ.
5778         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5779         remove CLONE_STOPPED.
5781 2008-02-10  Jim Meyering  <meyering@redhat.com>
5783         Remove useless "if" before "free":
5784         * elf/ldconfig.c (parse_conf_include): Likewise.
5785         * gmon/gmon.c (weak_alias): Likewise.
5786         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5787         * inet/rcmd.c (__validuser2_sa): Likewise.
5788         * intl/bindtextdom.c (set_binding_values): Likewise.
5789         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5790         * libio/genops.c (save_for_backup): Likewise.
5791         * libio/wgenops.c (save_for_wbackup): Likewise.
5792         * locale/programs/ld-collate.c (collate_read): Likewise.
5793         * locale/programs/linereader.c (get_string): Likewise.
5794         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5795         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5796         * resolv/res_debug.c (do_section): Likewise.
5797         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5798         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5799         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5800         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5801         * time/tzset.c (tzset_internal): Likewise.
5803 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5805         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5806         of ASSEMBLER.
5808 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5810         [BZ #5903]
5811         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5812         not stream for output file.  Open output file here.
5813         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5814         and output file name.
5815         (process_fd): Likewise.
5816         (process_file): Likewise.
5817         (main): Adjust callers of changed functions.
5818         * iconv/iconv_prog.h: Adjust prototype.
5820 2008-03-09  Andreas Jaeger  <aj@suse.de>
5822         [BZ #5753]
5823         * sysdeps/ia64/ieee754.h: Use protected namespace
5824         __BIG_ENDIAN/__LITTLE_ENDIAN.
5825         * sysdeps/ieee754/ieee754.h: Likewise.
5826         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5828 2008-03-08  Roland McGrath  <roland@frob.com>
5830         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5831         ignore a signal that came from a machine exception, treat it as a
5832         fatal core-dump signal instead.
5833         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5835         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5836         Clear DF bit in thread state's eflags.
5837         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5839 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
5841         [BZ #5774]
5842         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5843         of NAN(...) sequence.
5844         * stdlib/Makefile (tests): Add tst-strtod6.
5845         * stdlib/tst-strtod6.c: New file.
5847         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5849         [BZ #5762]
5850         * posix/getopt.c (_getopt_internal_r): Clarify error message by
5851         putting offending option character in quotes.  Clean up error
5852         messages.
5853         * po/be.po: Adjust msgstr in translation file.
5854         * po/bg.po: Likewise.
5855         * po/ca.po: Likewise.
5856         * po/cs.po: Likewise.
5857         * po/da.po: Likewise.
5858         * po/de.po: Likewise.
5859         * po/es.po: Likewise.
5860         * po/fr.po: Likewise.
5861         * po/hr.po: Likewise.
5862         * po/ko.po: Likewise.
5863         * po/nl.po: Likewise.
5864         * po/rw.po: Likewise.
5865         * po/sk.po: Likewise.
5866         * po/sv.po: Likewise.
5867         * po/tr.po: Likewise.
5868         * po/zh_CN.po: Likewise.
5869         * po/zh_TW.po: Likewise.
5871         [BZ #5760]
5872         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5873         Patch by Roland Bless <roland@bless.de>.
5875         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5876         .o file.
5877         * elf/Makefile (routines): Add dl-sysdep.
5878         (elide-routines.os): Likewise.
5880 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
5882         [BZ #5786]
5883         * elf/dl-sysdep.c: Undefine ROUND after use.
5884         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5885         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5886         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5887         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5888         to ...
5889         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5890         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5891         if necessary.
5892         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5894         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5895         _dl_tls_get_addr_soft element.
5896         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5897         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5898         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5899         GLRO.
5900         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5901         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5902         of internal_function.
5904         * stdlib/Makefile (aux): Add tens_in_limb.
5905         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5906         * stdlib/tens_in_limb.c: ...here.  New file.
5908         [BZ #5778]
5909         * sysdeps/unix/sysv/linux/pathconf.h: Declare
5910         __statfs_chown_restricted.
5911         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5912         for _PC_CHOWN_RESTRICTED.
5913         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5914         Implement __statfs_chown_restricted.
5915         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5916         _POSIX_CHOWN_RESTRICTED value to zero.
5917         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5918         defined to zero.
5920         * sysdeps/x86_64/rtld-memset.c: New file.
5922 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
5924         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5926         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5927         Barcelona machine.  Make default fall through branch of
5928         __x86_64_preferred_memory_instruction check as the integer code path.
5930 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5932         * sysdeps/x86_64/cacheinfo.c
5933         (__x86_64_preferred_memory_instruction): New variable.
5934         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5936         * sysdeps/x86_64/memset.S: Rewrite.
5938 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
5940         * include/stdio.h (__asprintf_chk, __dprintf_chk,
5941         __obstack_printf_chk): New prototypes.
5942         (__vasprintf_chk, __vdprintf_chk,
5943         __obstack_vprintf_chk): Likewise.
5944         Add libc_hidden_proto.
5945         * libio/obprintf.c
5946         (_IO_obstack_jumps): No longer static, add attribute_hidden.
5947         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5948         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5949         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5950         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5951         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5952         __obstack_vprintf_chk): New prototypes.
5953         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5954         obstack_vprintf): New inlines.
5955         * debug/dprintf_chk.c: New file.
5956         * debug/vdprintf_chk.c: New file.
5957         * debug/asprintf_chk.c: New file.
5958         * debug/vasprintf_chk.c: New file.
5959         * debug/obprintf_chk.c: New file.
5960         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5961         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5962         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5963         @@GLIBC_2.8.
5964         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5965         vdprintf_chk and obprintf_chk, set CFLAGS for them.
5966         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5967         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5968         libc_hidden_proto.
5969         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5970         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5971         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5972         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5973         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5974         @@GLIBC_2.8.
5975         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5976         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5977         obstack_vprintf_chk.
5978         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5979         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5980         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5981         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5982         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5983         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5985 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
5987         [BZ #5779]
5988         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5989         Patch by Roy Marples <roy@marples.name>.
5991         [BZ #5736]
5992         * malloc/malloc.c: Fix typo in comment.
5994         [BZ #5627]
5995         * locale/iso-639.def: Add Shuswap.
5997 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
5999         [BZ #5790]
6000         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6001         overwrite *h_errnop/*errnop values from getanswer_r in case of
6002         failure.
6004 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6006         [BZ #5818]
6007         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6008         (verify_persistent_db): Remove one unnecessary test and add a new one
6009         for bad configuration.
6010         (nscd_init): Improve error reported when persistent database cannot
6011         be reused.
6012         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6013         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6014         .suggested_module and .max_db_size and case config file says the
6015         values are zero.
6016         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6018         [BZ #5854]
6019         * nis/ypclnt.c (yp_order): Fix handling of return value of
6020         do_ypcall_tr call.
6021         Patch by Jeff Moyer <jmoyer@redhat.com>.
6023         * po/fr.po: Update from translation team.
6025 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6026             Carlos O'Donell <carlos@systemhalted.org>
6028         [BZ #5012]
6029         * FAQ.in: Describe why glibc needs to be compiled with
6030         optimization.
6032 2008-02-19  Roland McGrath  <roland@redhat.com>
6034         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6036 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6038         [BZ #5737]
6039         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6040         __USE_MISC is defined.
6042 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6044         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6045         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6046         sys/timerfd.h.
6047         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6048         timerfd_gettime, timerfd_settime.
6049         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6050         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6052 2008-02-08  Roland McGrath  <roland@redhat.com>
6054         * elf/elf.h (NT_PPC_SPE): New macro.
6056 2008-02-06  Roland McGrath  <roland@redhat.com>
6058         * Makerules ($(common-objpfx)sysd-rules):
6059         Depend on $(sysdep-makeconfigs).
6061 2008-01-31  Roland McGrath  <roland@redhat.com>
6063         [BZ #5442]
6064         * configure.in: Use -print-file-name if it yields a directory,
6065         for each of include and include-fixed.
6066         * configure: Regenerated.
6068         * Makeconfig (sysd-rules-targets): New variable.
6069         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6070         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6072 2008-01-30  Roland McGrath  <roland@redhat.com>
6074         * manual/libc.texinfo: Update back-cover text.
6076         * elf/elf.h (NT_386_TLS): New macro.
6078 2008-01-29  Roland McGrath  <roland@redhat.com>
6080         * Makeconfig (sysd-rules-patterns): New variable.
6081         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6082         (check-inhibit-asm): New canned sequence, replaces ...
6083         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6084         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6085         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6086         (CFLAGS-rtld): Variable removed.
6088 2008-01-24  Roland McGrath  <roland@redhat.com>
6090         * configure.in: Let configure fragments set base_os.
6091         * configure: Regenerated.
6093 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6095         * po/ko.po: Update from translation team.
6097 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6099         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6101 2008-01-12  Andreas Jaeger  <aj@suse.de>
6103         [BZ #5040]
6104         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6105         Add EPOLLRDHUP.
6107 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6109         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6110         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6111         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6113 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6115         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6116         * elf/dl-close.c (_dl_close): Check for it.
6117         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6118         (_dl_allocate_static_tls): Likewise.
6119         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6120         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6121         to it.
6122         * elf/tst-tls16.c: New file.
6123         * elf/tst-tlsmod16a.c: New file.
6124         * elf/tst-tlsmod16b.c: New file.
6125         * elf/Makefile: Add rules to build and run tst-tls16.
6127 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6129         [BZ #5628]
6130         * bits/shm.h: Fix comment describing shmid_ds.
6131         * sysdeps/gnu/bits/shm.h: Likewise.
6132         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6133         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6134         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6135         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6136         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6137         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6138         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6139         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6140         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6142         [BZ #5607]
6143         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6144         prototypes.
6145         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6146         additional suffixes.
6147         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6148         Add optional functions mq_timedreceive and mq_timedsend.
6149         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6150         * conform/data/pthread.h-data: Fix prototype of
6151         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6152         * conform/data/semaphore.h-data: Allow time.h definitions.
6153         * conform/data/signal.h-data: Likewise.
6154         * conform/data/stdio.h-data: getw and putw are not required in v6.
6155         * conform/data/stdlib.h-data: Change setstate prototype.
6156         * conform/data/string.h-data: Fix strerror_r prototype.
6157         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6158         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6159         Fix readlink prototype.
6160         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6161         in6addr_loopback.
6162         * inet/netinet/in.h: Cleanup namespace.
6163         * posix/regex.h: Likewise.
6164         * resolv/netdb.h: Likewise.
6165         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6166         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6167         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6168         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6169         of names of in in6_addr.
6170         (default_precedence): Likewise.
6171         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6172         NULL definition.
6174 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6176         * conform/data/fmtmsg.h-data: Add missing allows.
6177         * conform/data/ftw.h-data: Likewise.
6178         * conform/data/inttypes.h-data: Likewise.
6179         * conform/data/math.h-data: Likewise.
6180         * conform/data/signal.h-data: Likewise.
6181         * conform/data/net/if.h-data: Likewise.
6182         * conform/data/netinet/in.h-data: Likewise.
6183         * conform/data/sys/socket.h-data: Likewise.
6185         [BZ #5614]
6186         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6187         (__strtok_r): Simplify.
6188         * string/tester.c (test_strtok_r): Add test case for futile search
6189         with single-character seach string.
6191 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6193         * po/ko.po: Update from translation team.
6195 2008-01-11  Andreas Jaeger  <aj@suse.de>
6197         [BZ #5600]
6198         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6199         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6200         kernel header.
6202 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6204         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6205         native interface lookup in all the relevant places.
6207 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6208             Ulrich Drepper  <drepper@redhat.com>
6210         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6211         field.  Use sockaddr_in6 for source_addr.
6212         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6213         (match_prefix): Likewise.
6214         (get_label): Likewise.
6215         (get_precedence): Likewise.
6216         (rfc3484_sort): Change to use indirect access to results array.
6217         Adjust to use of sockaddr_in6.  Replace service_order test with
6218         simple index comparison.
6219         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6220         service_order field.  Adjust qsort_t calls.  Access sorted result
6221         array indirectly through order array.
6222         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6223         * posix/tst-rfc3484-2.c: Likewise.
6224         * posix/tst-rfc3484-3.c: Likewise.
6226 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6228         [BZ #5541]
6229         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6230         pollfd structures.
6231         Patch by André Cruz.
6233         [BZ #5545]
6234         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6235         (clnt_spcreateerror): Likewise.
6237         [BZ #5553]
6238         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6239         (public_mEMALIGn): Likewise.
6240         Patch mostly by Daniel Jacobowitz.
6242 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6244         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6245         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6246         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6247         * stdlib/tst-makecontext2.c: New test.
6249 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6251         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6252         defined.
6253         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6254         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6255         transliteration hooks and REINIT_PARAMS afterwards.
6256         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6257         status.
6258         (REINIT_PARAMS): Define.
6259         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6260         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6261         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6262         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6263         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6264         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6265         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6266         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6267         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6268         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6269         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6270         * iconvdata/tst-iconv7.c: New test.
6272 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6274         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6276 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6278         [BZ #5112]
6279         * nscd/connections.c (restart): Fix condition.
6281 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6283         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6284         __ctype_toupper_loc): Add __THROW.
6286 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6288         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6289         recognition of interface family.
6291         * posix/getconf.c: Update copyright year.
6292         * nss/getent.c: Likewise.
6293         * iconv/iconvconfig.c: Likewise.
6294         * iconv/iconv_prog.c: Likewise.
6295         * elf/ldconfig.c: Likewise.
6296         * catgets/gencat.c: Likewise.
6297         * csu/version.c: Likewise.
6298         * elf/ldd.bash.in: Likewise.
6299         * elf/sprof.c (print_version): Likewise.
6300         * locale/programs/locale.c: Likewise.
6301         * locale/programs/localedef.c: Likewise.
6302         * nscd/nscd.c (print_version): Likewise.
6303         * debug/xtrace.sh: Likewise.
6304         * malloc/memusage.sh: Likewise.
6305         * malloc/mtrace.pl: Likewise.
6306         * debug/catchsegv.sh: Likewise.
6308 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6310         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6311         second lookup.
6313 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6315         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6316         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6318 2007-12-17  Roland McGrath  <roland@redhat.com>
6320         * inet/ether_line.c (ether_line): Remove unused variable.
6322 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6324         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6325         and winp.
6326         * login/openpty.c (openpty): Likewise.
6327         * login/pty.h (openpty, forkpty): Likewise.
6328         * manual/terminal.texi (openpty, forkpty): Likewise.
6330 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6332         * malloc/malloc.c (public_cALLOc): For arenas other than
6333         main_arena, count all bytes inside the mprotect_size range of the
6334         heap as uninitialized.
6336 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6338         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6339         executable stacks.
6341         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6342         mTRIm for all of them.
6343         (mTRIm): Additionally iterate over all free blocks and use madvise
6344         to free memory for all those blocks which contain at least one
6345         memory page.
6346         * malloc/tst-trim1.c: New file.
6347         * malloc/Makefile (tests): Add tst-trim1.
6349         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6351 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6353         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6354         First cast argument to long
6355         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6356         Return long.
6357         (__vdso_clock_gettime): Likewise.
6358         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6359         return long.
6361 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6363         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6364         * locale/nl_langinfo_l.c: Real implementation, copied from
6365         nl_langinfo.c.
6366         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6368 2007-12-01  Jim Meyering  <meyering@redhat.com>
6370         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6371         that would inhibit utf8-optimization of a regexp containing line-
6372         or buffer-anchors, e.g., `^', `$'.
6374 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6376         * time/bug-getdate1.c (do_test): Don't use century values which
6377         aren't valid on 32-bit systems.
6379 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6381         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6382         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6383         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6384         __strcat_g, __strncat_g): Add __asm__.
6386 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6388         [BZ #5477]
6389         * io/fchmodat.c: Fix typo in stub_warning use.
6390         Patch by Petr Salinger.
6392 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6394         * iconvdata/hp-thai8.c: New file.
6395         * iconvdata/Makefile: Add rules for hp-thai8.c.
6396         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6397         * iconvdata/gconv-modules: Likewise.
6399         [BZ #5464]
6400         * iconvdata/hp-greek8.c: New file.
6401         * iconvdata/Makefile: Add rules for hp-greek8.c.
6402         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6403         * iconvdata/gconv-modules: Likewise.
6405         [BZ #5463]
6406         * iconvdata/hp-turkish8.c: New file.
6407         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6408         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6409         * iconvdata/gconv-modules: Likewise.
6411         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6412         (shrink_heap): ... this new function.
6413         (heap_trim): Call shrink_heap instead of grow_heap.
6415         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6416         case don't call alloc_perturb.
6418 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6420         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6421         possible.
6422         * sysdeps/unix/sysv/linux/kernel-features.h
6423         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6424         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6426 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6428         [BZ #5424]
6429         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6430         * stdio-common/Makefile (tests): Add bug22.
6431         * stdio-common/bug22.c: New file.
6433         [BZ #5451]
6434         * time/getdate.c: Fix filling in default values.
6435         * time/bug-getdate1.c: New file.
6436         * time/Makefile: Add rules to build and run bug-getdate1.
6438         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6439         * iconvdata/ebcdic-es.c: Likewise.
6440         * iconvdata/ebcdic-es-a.c: Likewise.
6441         * iconvdata/ebcdic-uk.c: Likewise.
6442         * iconvdata/iso8859-16.c: Likewise.
6443         * iconvdata/viscii.c: Likewise.
6444         * iconvdata/iso8859-9e.c: Likewise.
6445         * iconvdata/Makefile: Adjust appropriately.
6447         [BZ #5428]
6448         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6449         __need_wint_t.
6451 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6453         [BZ #5427]
6454         * iconvdata/hp-roman9.c: New file.
6455         * iconvdata/Makefile: Add rules for hp-roman9.c.
6456         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6457         * iconvdata/gconv-modules: Likewise.
6459         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6460         * iconvdata/Makefile: Adjust appropriately.
6462         [BZ #5441]
6463         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6464         structure, it's allocated with alloca.
6465         * stdio-common/Makefile (tests): Add bug21.
6466         * stdio-common/bug21.c: New file.
6468 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6470         [BZ #5452]
6471         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6472         keyword for gcc's braced-groups.
6474 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6476         [BZ #5454]
6477         * inet/ether_line.c: Strip hostname of whitespaces.
6478         * inet/Makefile (tests): Add tst-ether_line.
6479         * inet/tst-ether_line.c: New file.
6481 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6483         [BZ #5439]
6484         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6486         [BZ #5435]
6487         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6489         * stdlib/tst-setcontext.c: Catch the case where the links gets
6490         messed up and we do not reach main again.
6492         * po/ca.po: Update from translation team.
6494 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6496         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6497         * posix/regex.h (REG_ENOSYS): Likewise.
6498         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6500 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6502         * nscd/nscd.h (MAX_STACK_USE): Define.
6503         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6504         (gc): Initialize stack_used based on allocation in prune_cache.
6505         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6506         Clear array before use.
6508         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6509         memory allocation failed.
6510         * nscd/hstcache.c (cache_addhst): Likewise.
6511         * nscd/grpcache.c (cache_addgr): Likewise.
6512         * nscd/servicescache.c (cache_addserv): Likewise.
6513         * nscd/pwdcache.c (cache_addpw): Likewise.
6514         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6516 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6519         and creat system calls.
6521         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6523 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6525         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6526         Add netiucv/iucv.h.
6527         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6528         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6529         protocol.
6530         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6531         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6532         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6534 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6536         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6537         strncat): Define as macros to avoid compile errors.
6539         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6540         creat entries.
6542 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6544         [BZ #5382]
6545         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6546         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6547         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6548         overflow it.
6549         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6551         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6552         Return zero in case the thread library is not NPTL.
6554         [BZ #5375]
6555         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6556         initializing interface list.
6558         [BZ #5378]
6559         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6560         use result of nss_getgrgid_r if nothing was found.  For other
6561         error return with a failure.
6562         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6564         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6565         macro name.
6567 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6569         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6570         (get_scope): For IPv4 scope, use scopes table.
6571         (fini): Free scopes table if necessary.
6572         (free_scopelist): New function.
6573         (scopecmp): New function.
6574         (gaiconf_init): Also handle scopev4 entries.
6575         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6576         * posix/tst-rfc3484-2.c (do_test): Likewise.
6577         * posix/gai.conf: Document scopev4 defaults.
6578         * posix/Makefile (tests): Add tst-rfc3484-3.
6579         * posix/tst-rfc3484-3.c: New file.
6581         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6582         Teredo tunnels.
6583         * posix/gai.conf: Update for current default tables.
6585 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6587         * po/tr.po: Update from translation team.
6589 2007-11-18  Roland McGrath  <roland@frob.com>
6591         * manual/arith.texi (Remainder Functions): Spelling fix.
6592         From Shaun Silk <genix@mysoul.com.au>.
6594         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6596 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6598         * po/zh_CN.po: Update from translation team.
6600         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6601         Add sys/signalfd.h and sys/eventfd.h.
6603 2007-11-15  Bruno Haible  <bruno@clisp.org>
6605         [BZ #5346]
6606         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6607         union.
6608         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6609         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6610         it needs only fixed stack space. Delay the initialization of
6611         msgid_len until it is needed.
6613 2007-11-15  Andreas Jaeger  <aj@suse.de>
6615         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6616         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6618 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6620         * po/ko.po: Update from translation team.
6622 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6624         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6625         significantly.  The device type is also part of the ifinfomsg data.
6627         * po/sv.po: Update from translation team.
6628         * po/nl.po: Likewise.
6630         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6631         to wake up in 24 hours.
6633         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6635 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6637         * po/cs.po: Update from translation team.
6638         * po/pl.po: Likewise.
6640         * include/ifaddrs.h: Remove in6ai_temporary.
6641         (struct in6addrinfo): Add index element.
6642         Declare __check_native.
6643         * inet/Makefile (aux): Add check_native.
6644         * sysdeps/unix/sysv/linux/check_native.c: New file.
6645         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6646         IFA_F_TEMPORARY.  Pass back ifa_index.
6647         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6648         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6649         call __check_native if necessary.
6650         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6651         to sort addresses.  Pass information about the results.
6652         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6653         of rfc3484_sort interface.
6654         * posix/tst-rfc3484-2.c: Likewise.
6656         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6657         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6658         for _quicksort.
6659         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6660         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6661         on as third parameter to compare function and _quicksort.
6662         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6663         to the compare function.
6664         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6665         * Versions.def: Add GLIBC_2.8 for libc.
6667         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6668         * posix/tst-rfc3484-2.c: Likewise.
6670         * include/kernel-features.h: Moved to...
6671         * sysdeps/mach/hurd/kernel-features.h: ...here.
6673 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6675         * sysdeps/i386/i586/memcpy_chk.S: New file.
6676         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6677         * sysdeps/i386/i586/memset_chk.S: Likewise.
6679 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6681         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6682         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6683         list of interfaces.  Also store prefix length.
6684         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6685         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6686         prefix if source and destination address are in the same subnet.
6687         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6688         Always look for matching record in in6ai list.
6689         Correct source_addr_len value for IPv6->IPv4 converted records.
6691 2007-11-11  Roland McGrath  <roland@frob.com>
6693         * include/kernel-features.h: New file.
6695 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6697         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6698         complications for 64-bit platforms.
6700         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6701         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6702         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6703         open64_2.
6704         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6705         entries.
6706         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6707         * sysdeps/wordsize-64/alphasort.c: New file.
6708         * sysdeps/wordsize-64/alphasort64.c: New file.
6709         * sysdeps/wordsize-64/fseeko.c: New file.
6710         * sysdeps/wordsize-64/fseeko64.c: New file.
6711         * sysdeps/wordsize-64/ftello.c: New file.
6712         * sysdeps/wordsize-64/ftello64.c: New file.
6713         * sysdeps/wordsize-64/ftw.c: New file.
6714         * sysdeps/wordsize-64/ftw64.c: New file.
6715         * sysdeps/wordsize-64/iofgetpos.c: New file.
6716         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6717         * sysdeps/wordsize-64/iofopen.c: New file.
6718         * sysdeps/wordsize-64/iofopen64.c: New file.
6719         * sysdeps/wordsize-64/iofsetpos.c: New file.
6720         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6721         * sysdeps/wordsize-64/lockf.c: New file.
6722         * sysdeps/wordsize-64/lockf64.c: New file.
6723         * sysdeps/wordsize-64/mkostemp.c: New file.
6724         * sysdeps/wordsize-64/mkostemp64.c: New file.
6725         * sysdeps/wordsize-64/mkstemp.c: New file.
6726         * sysdeps/wordsize-64/mkstemp64.c: New file.
6727         * sysdeps/wordsize-64/scandir.c: New file.
6728         * sysdeps/wordsize-64/scandir64.c: New file.
6729         * sysdeps/wordsize-64/tmpfile.c: New file.
6730         * sysdeps/wordsize-64/tmpfile64.c: New file.
6731         * sysdeps/wordsize-64/versionsort.c: New file.
6732         * sysdeps/wordsize-64/versionsort64.c: New file.
6733         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6734         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6735         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6736         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6737         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6738         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6739         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6740         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6741         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6742         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6743         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6744         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6746         * crypt/sha256-crypt.c: Fix a comment.
6747         * crypt/sha512-crypt.c: Likewise.
6749 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6751         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6753 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6755         [BZ #5277]
6756         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6757         because output buffer is too small break, don't loop.
6758         * iconvdata/Makefile (tests): Add bug-iconv6.
6759         * iconvdata/bug-iconv6.c: New file.
6761 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6763         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6764         with size_t type.
6765         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6766         size_t.  Add casts where needed.
6768         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6769         old headers, don't call avc_has_perm if we don't have the
6770         permission information.
6772 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6774         * elf/rtld.c (dl_main): Use the page size to find the map start.
6776 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6778         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6779         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6781         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6782         when the lookup call failed.
6784         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6785         Add prune_cond and wakeup_time.
6786         (CACHE_PRUNE_INTERNAL): Define.
6787         Update declarations of prune_cache and setup_thread.
6788         * nscd/connections.c (dbs): Update initializers.
6789         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6790         (nscd_init): Default number of threads is now 4.
6791         (invalidate_cache): Take lock before calling prune_cache.
6792         (handle_request): If SELinux forbids the request, say so.
6793         (readylist_cond): Use static initializer.
6794         (nscd_run_prune): New function.  Used only by pruning threads.
6795         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6796         here.
6797         (fd_ready): Update nscd_run reference.
6798         (start_threads): No need to initialize readylist_cond.
6799         Start pruning threads separately.
6800         * nscd/nscd_setup_thread.c: Change return value type to int and always
6801         return 0.
6802         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6803         to int and return nonzero value if we can use the TID address hack.
6804         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6805         the database is later than the new entry's timeout, update the
6806         wakeup time and wake the cleanup thread.
6807         (prune_cache): Return seconds the next entry in the database is still
6808         valid.  Remove locking for pruning here.
6809         * nscd/nscd.conf: Document default number of threads.
6811 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6813         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6814         stack is properly aligned for the target function.
6815         Correct unwind info.
6817         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6818         when using auditing libraries.
6820 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
6822         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6823         _nss_dns_getnetbyaddr2_r.
6824         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
6825         extra parameter to getanswer_r.
6826         (_nss_dns_getnetbyaddr_r): Now a wrapper around
6827         _nss_dns_getnetbyaddr2_r.
6829         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6830         gethstbynm3_r.
6831         * nscd/gethstbynm2_r.c: Remove.
6832         * nscd/gethstbynm3_r.c: New file.
6833         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6834         __gethostbyaddr_r.
6835         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
6836         __gethostbyaddr_r compatibility wrapper.
6837         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
6838         determining timeout of entry.
6839         (lookup): Take new parameter and pass it to __gethostbyname3_r and
6840         __gethostbyaddr2_r.
6841         (addhstbyX): Pass reference to variable for TTL to lookup and
6842         cache_addhst.
6843         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6844         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6845         and __nss_next2.  Remove __nss_services_lookup.
6846         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
6847         Add compat wrapper.
6848         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6849         __nss_next2.
6850         * nss/getXXent_r.c: Likewise.
6851         * nss/getnssent_r.c: Likewise.
6852         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
6853         does not exist in module, try the optional second name.
6854         (__nss_next2): New function.
6855         (__nss_next): Now wrapper around __nss_next2.
6856         * nss/nsswitch.h: Adjust __nss_lookup prototype.
6857         Declare __nss_next2.
6858         Adjust definition of db_lookup_function type.
6859         * nss/service-lookup.c: Define NO_COMPAT.
6860         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6861         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6862         * inet/ether_ntoh.c: Likewise.
6863         * sunrpc/netname.c: Likewise.
6864         * sunrpc/publickey.c: Likewise.
6865         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
6866         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6867         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6868         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6869         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6871         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6873         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6875 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
6877         [BZ #5204]
6878         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6879         * crypt/sha512c-test.c: Likewise.
6881         [BZ #5225]
6882         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6883         to keep track of end of %[ format string element.
6884         * stdio-common/Makefile (tests): Add bug20.
6885         * stdio-common/bug20.c: New file.
6887         [BZ #5222]
6888         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6889         path elements in counting mode.
6891 2007-10-27  Andreas Jaeger  <aj@suse.de>
6893         [BZ #5040]
6894         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6896         [BZ #3112]
6897         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6898         (__cleanup): Free shared library when exiting.
6899         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6900         (__cleanup): Free shared library when exiting.
6902 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6904         [BZ #2549]
6905         * math/libm-test.inc (check_float_internal): Support
6906         denormalized return.
6908 2007-10-23  Andreas Jaeger  <aj@suse.de>
6910         [BZ #5208]
6911         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6912         __LONG_LONG_PAIR to handle little endian byte order.
6913         Suggested by abhishekrai@google.com
6915 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
6917         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6919 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
6921         * nscd/cache.c (prune_cache): Move test for modified file outside
6922         of locking.
6924 2007-10-21  Andreas Jaeger  <aj@suse.de>
6926         * manual/texinfo.tex: Update to latest version.
6928         * manual/sysinfo.texi (System Parameters): Fix Formatting.
6930         * manual/arith.texi (Status bit operations): Fix formatting.
6932         * manual/errno.texi (Error Messages): Fix formatting.
6934         * manual/sysinfo.texi (System Parameters): Fix formatting.
6936         * manual/libc.texinfo: Update VERSION and UPDATED.
6938 2007-10-19  Roland McGrath  <roland@redhat.com>
6940         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6942 2007-10-06  David S. Miller  <davem@davemloft.net>
6944         * configure.in: Add sparcv9v2 and sparc64v2.
6945         * scripts/config.sub: Likewise.
6946         * configure: Regenerate.
6947         * elf/elf.h (HWCAP_SPARC_N2): New.
6948         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6949         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6950         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6951         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6952         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6953         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6954         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6956 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
6958         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6959         even if the poll result indicates there is data to read.
6960         Patch by Jeff Moyer <jmoyer@redhat.com>.
6962 2007-10-18  Roland McGrath  <roland@redhat.com>
6964         * elf/elf.h (NT_PPC_VMX): New macro.
6966 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6968         * version.h (VERSION): Set to 2.7.90.
6970 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6972         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
6973         weak_alias.
6975 2007-10-17  Roland McGrath  <roland@frob.com>
6977         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6978         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6980 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6982         * version.h (VERSION): Bump to 2.7.
6983         * include/features.h (__GLIBC_MINOR__): Bump to 7.
6985         [BZ #5186]
6986         * time/tzset.c (__tz_convert): Don't force testing for a change of
6987         TZ if not called from localtime.  But then also see whether the
6988         file changed, in case __use_tzfile is set.
6990         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6991         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6992         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6993         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6994         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6995         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6996         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
6997         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6999 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7001         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7002         and admin selects to be able to replace the gai.conf file, lock
7003         data structures around the qsort call.
7005 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7007         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7008         new memset.
7009         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7010         too high for the improvements.  Implement bzero unconditionally for
7011         use in libc.
7013 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7014             Jakub Jelinek  <jakub@redhat.com>
7016         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7017         even when time_t is 32-bit.
7018         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7019         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7020         always set after the search.
7022 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7024         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7025         unreachable code on 32-bit machines.
7027 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7029         [BZ #5184]
7030         * time/strftime_l.c: Include stdbool.h.
7031         (my_strftime): New wrapper, old function renamed to...
7032         (__strftime_internal): ... new function.  Add tzset_called
7033         argument, pass it down to recursive calls, don't call tzset ()
7034         if already true, set to true after call to tzset ().
7036 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7038         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7039         into account when copying TZ string.
7041 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7043         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7044         num_transition rather than num_transitions - 1.
7046 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7048         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7049         PIC indirect jump.
7051         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7052         a local label rather than HIDDEN_JUMPTARGET.
7054 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7056         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7057         (init_cacheinfo): Initialize it.
7058         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7059         Always define bzero.
7060         Remove non-glibc code.
7061         * sysdeps/x86_64/bzero.S: Make an empty file.
7063 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7065         * sysdeps/x86_64/cacheinfo.c
7066         (__x86_64_preferred_memory_instruction): New.
7067         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7069         * sysdeps/x86_64/memset.S: Rewrite.
7071 2007-10-15  Roland McGrath  <roland@redhat.com>
7073         * po/libc.pot: Regenerated.
7075 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7077         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7078         pointers.
7080         [BZ #3425]
7081         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7082         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7083         address record to T_A/T_AAAA requests.
7085 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7087         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7089         * posix/glob.c: Add some branch prediction throughout.
7091         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7092         read from nscd.
7094         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7095         service_order.
7096         (rfc3484_sort): Make sure that even if qsort doesn't support
7097         stable sorting out sorting here is stable by comparing service_order.
7098         (getaddrinfo): Initialize service_order.
7099         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7100         service_order field to sorting structure.
7101         * posix/tst-rfc3484-2.c (do_test): Likewise.
7103         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7104         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7105         __tzset_parse_tz and updating of daylight, timezone, tzname into
7106         update_vars.
7107         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7108         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7109         happens in __tz_compute.
7110         * time/tzfile.c (__tzfile_read): Also read TZ string.
7111         (find_transition): Fold into __tzfile_compute.
7112         (__tzfile_compute): For times beyond the last transition try to
7113         use the TZ string.
7114         * timezone/tst-timezone.c: Information in daylight and tzname does
7115         change for Asia/Tokyo timezone with more concrete information.
7116         Remove the test.
7118         * include/stdio.h: Add libc_hidden_proto for ftello.
7119         * libio/ftello.c: Add libc_hidden_def.
7121         [BZ #1140]
7122         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7123         on the specified time and not the last entries in the file.  Move
7124         code to determine tzname[] to...
7125         (find_transition): ...here.  Add ugly guess for times before the
7126         first transition.
7128 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7130         [BZ #3195]
7131         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7132         no entry.
7133         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7134         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7135         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7136         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7138         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7139         read mechanism when there are no group members and avoid no-op
7140         read syscall in this case.
7142         [BZ #3242]
7143         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7144         (__readall): If reading failed due to EAGAIN error wait a bit
7145         and possibly try again.
7146         (__readvall): Likewise.
7148 2007-10-13  Bruno Haible  <bruno@clisp.org>
7150         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7151         when we cannot recode the message.
7153 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7155         [BZ #4359]
7156         * libio/__freading.c (__freading): Don't return true for
7157         write-only streams.  For read/write streams, check whether we
7158         performed a read operation already.
7159         * libio/Makefile (tests): Add tst-ext2.
7160         * libio/tst-ext2.c: New file.
7162 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7164         * locale/programs/repertoire.c (repertoire_read): Always free
7165         memory for repertoire file name [Coverity CID 270].
7167         * elf/cache.c (save_aux_cache): Free memory allocated for
7168         temporary file name [Coverity CID 267].
7170 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7172         * misc/Makefile (headers): Add bits/error.h.
7174 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7176         * posix/fnmatch_loop.c: Take rule index returned as part of
7177         findidx return value into account when accessing weights.
7178         * posix/regcomp.c: Likewise.
7179         * posix/regexec.c: Likewise.
7181         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7182         (skip_to): Fix problems with parameter of elifdef/elifndef.
7184 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7186         * iconv/gconv_simple.c: Add some branch prediction.
7188 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7190         * locale/programs/ld-collate.c (collate_read): If ignore_content
7191         and nowtok is tok_define, eat any tok_eol tokens.
7193 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7195         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7196         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7198         * inet/netinet/in.h: Don't include bits/socket.h.
7199         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7200         macro.
7201         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7203 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7205         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7206         and tok_elifndef.
7207         * locale/programs/locfile-kw.gperf: Likewise.
7208         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7210 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7212         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7213         (__find_specwc): Change into __extern_always_inline function.
7214         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7215         (__parse_one_specmb): Remove ps argument.
7216         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7217         Adjust __find_specmb and __parse_one_specmb callers.
7218         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7219         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7220         Removed.
7221         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7222         caller.
7224 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7226         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7227         with some Pentium Ds.
7229 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7231         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7232         __read not read.
7233         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7234         __write not write.
7236 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7238         [BZ #181]
7239         * locale/C-time.c: Set week_1stday data to 19971201.
7240         * locale/programs/ld-time.c (time_finish): Default for
7241         first_workday is Monday.
7243         [BZ #2633]
7244         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7246         [BZ #5103]
7247         * posix/glob.c (glob): Recognize patterns starting \/.
7248         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7249         (main): Add test for pattern starting \/.
7251         * misc/error.h: Use __const instead of const.
7252         * misc/bits/error.h: Likewise.
7254 2007-10-07  Andreas Jaeger  <aj@suse.de>
7256         * include/bits/error.h: New file.
7258         * misc/bits/error.h (error_at_line): Fix prototype.
7260 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7262         [BZ #3924]
7263         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7264         more little bugs in creating the stack frame when pltexit has to
7265         be called.
7267         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7268         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7270         [BZ #4407]
7271         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7272         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7273         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7274         * math/libm-test.inc: Add test for this case.
7276         [BZ #5010]
7277         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7278         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7279         map service succeeded.
7280         (svc_is_mapped): New function.
7281         (svc_unregister): Use it before trying to unmap service.
7283 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7285         * timezone/zic.c: Update from tzcode2007h.
7287         [BZ #5063]
7288         * timezone/africa: Update from tzdata2007h.
7289         * timezone/antarctica: Likewise.
7290         * timezone/asia: Likewise.
7291         * timezone/australasia: Likewise.
7292         * timezone/europe: Likewise.
7293         * timezone/leapseconds: Likewise.
7294         * timezone/northamerica: Likewise.
7295         * timezone/southamerica: Likewise.
7296         * timzeone/zone.tab: Likewise.
7298         [BZ #5104]
7299         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7301         [BZ #5113]
7302         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7303         avoid warning with -Wconversion.
7304         (__strndup): Likewise.
7305         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7307         [BZ #5112]
7308         * nscd/connections.c (restart): Don't resync if database is
7309         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7311         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7312         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7314         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7315         evetnfd_read, eventfd_write.
7316         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7317         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7318         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7319         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7320         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7321         eventfd_write for GLIBC_2.7.
7323         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7324         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7325         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7326         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7328 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7330         * stdlib/msort.c: Include stdint.h.
7331         (struct msort_param): New type.
7332         (msort_with_tmp): Use struct msort_param pointer for unchanging
7333         parameters.  Add optimized handling for several common sizes
7334         and indirect sorting mode.
7335         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7336         sorting.
7337         Suggested by Belazougui Djamel .
7339         * stdlib/Makefile (tests): Add tst-qsort2.
7340         * stdlib/tst-qsort2.c: New test.
7342 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7344         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7345         for dup2 in case another thread races with the current one.  Retry
7346         in this case.
7348         * misc/error.h: Remove support for use outside of libc.  We have to
7349         include <features.h> now.  Include <bits/error.h> if possible.
7350         * misc/bits/error.h: New file.
7352 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7354         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7355         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7356         __extern_always_inline functions unconditionally, drop macros.
7358         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7359         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7360         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7362         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7363         add __artificial__ attribute.
7365 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7367         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7368         backward to forward direction.
7370         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7372         [BZ #645]
7373         * locale/programs/ld-collate.c (collate_finish): Compare against last
7374         used section which is known to have rules defined.
7375         (collate_read): After order_start, correctly record order of sections
7376         and queue sections up.
7378 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7380         [BZ #5071]
7381         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7382         the same number of pages.
7383         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7385         * locale/programs/ld-collate.c (collate_read): After initial copy
7386         statement, continue in state 0.
7388         * include/stdio_ext.h (__fsetlocking): Define as macro.
7390 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7392         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7393         of section order.
7395         * po/pt_BR.po: Fix typo.
7397 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7399         * iconvdata/Makefile (modules): Add ISO8859-9E.
7400         (distribute): Add iso8859-9e.c.
7401         (gen-8bit-gap-modules): Add iso8859-9e.
7402         * iconvdata/iso8859-9e.c: New file.
7403         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7404         * iconvdata/TESTS: Likewise.
7405         * iconvdata/tst-tables.sh: Likewise.
7407         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7409         * locale/iso-639.def: Add several new entries.
7411 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7413         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7414         void * pointers instead of struct link_map **.
7415         (_dl_scope_free): Change argument type to void *.
7416         * include/link.h (struct link_map): Change type of l_reldeps
7417         to struct link_map_reldeps, move l_reldepsact into that
7418         struct too.
7419         * elf/dl-deps.c: Include atomic.h.
7420         (_dl_map_object_deps): Only change l->l_initfini when it is
7421         fully populated, use _dl_scope_free for freeing it.  Optimize
7422         removal of libs from reldeps by using l_reserved flag, when
7423         some removal is needed, allocate a new list instead of
7424         reallocating and free the old with _dl_scope_free.  Adjust
7425         for l_reldeps and l_reldepsact changes.
7426         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7427         searching in l_initfini and l_reldeps without holding dl_load_lock.
7428         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7429         l_reldepsact changes.
7430         * elf/dl-close.c (_dl_close_worker): Likewise.
7431         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7433 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7435         * iconvdata/Makefile (modules): Add KOI8-RU.
7436         (distribute): Add koi8-ru.c.
7437         (gen-8bit-gap-modules): Add koi8-ru.
7438         * iconvdata/koi8-ru.c: New file.
7439         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7440         * iconvdata/TESTS: Likewise.
7441         * iconvdata/tst-tables.sh: Likewise.
7443         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7445 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7447         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7448         with __warning__/__error__ attributes.
7449         (__warnattr): Define.
7450         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7451         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7452         __warnattr.
7453         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7454         of __*_chk if compile time detectable overflow is found.
7455         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7456         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7457         with __warnattr.
7458         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7459         instead of __*_chk if compile time detectable overflow is found.
7460         (__gets_alias): Rename to...
7461         (__gets_warn): ... this.  Add __warnattr.
7462         (gets): Call __gets_warn instead of __gets_alias.
7463         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7464         aliases with __warnattr.
7465         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7466         time detectable overflow is found.
7467         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7468         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7469         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7470         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7471         __getdomainname_chk_warn): New aliases with __warnattr.
7472         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7473         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7474         __*_chk_warn instead of __*_chk if compile time detectable overflow
7475         is found.
7476         (__getgroups_chk): Rename argument to __listlen from listlen.
7477         (__getwd_alias): Rename to...
7478         (__getwd_warn): ... this.  Add __warnattr.
7479         (getwd): Call __getwd_warn instead of __getwd_alias.
7480         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7481         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7482         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7483         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7484         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7485         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7486         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7487         compile time detectable overflow is found.
7488         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7489         to use __*_chk or not.
7490         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7491         in comparisons which function should be called and in __*_chk*
7492         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7493         detectable overflow is found.
7494         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7495         __*_chk argument.
7496         * debug/tst-chk1.c (do_test): Add a few more tests.
7498 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7500         [BZ #5058]
7501         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7502         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7503         (_nl_unload_domain): Finalize conversions_lock.
7504         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7505         handling table of known conversions.
7507 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7509         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7510         close_not_cancel_no_status instead of close.
7512 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7514         [BZ #5028]
7515         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7516         nrules != 0 for multibyte chars.
7518 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7520         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7521         Provide better error message in case the type is unknown.
7523         [BZ #4963]
7524         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7525         * string/stratcliff.c: Make usable to test wide char functions.
7526         * wcsmbs/wcsatcliff.c: New file.
7527         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7529         [BZ #4972]
7530         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7531         (distribute): Add mac-centraleurope.c.
7532         (gen-8bit-gap-modules): Add mac-centraleurope.
7533         * iconvdata/mac-centraleurope.c: New file.
7534         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7535         * iconvdata/TESTS: Likewise.
7536         * iconvdata/tst-tables.sh: Likewise.
7538         [BZ #5043]
7539         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7541 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7543         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7544         from __x86_64_core_cache_size_half.
7545         (init_cacheinfo): Compute shared cache size for AMD processors with
7546         shared L3 correctly.
7547         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7548         name change.
7549         Patch in large parts by Evandro Menezes.
7551 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7553         * elf/dl-lookup.c (add_dependency): Handle failing memory
7554         allocation for dependency list.  Remove unnecessary check.
7556         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7557         open/close when determining source addresses.
7559         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7560         sha512-crypt, and sha512.
7561         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7562         (distribute): Add sha256.h and sha512.h.
7563         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7564         and call the appropriate code.
7565         * crypt/sha256-crypt.c: New file.
7566         * crypt/sha256.c: New file.
7567         * crypt/sha256.h: New file.
7568         * crypt/sha256c-test.c: New file.
7569         * crypt/sha256test.c: New file.
7570         * crypt/sha512-crypt.c: New file.
7571         * crypt/sha512.c: New file.
7572         * crypt/sha512.h: New file.
7573         * crypt/sha512c-test.c: New file.
7574         * crypt/sha512test.c: New file.
7576 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7578         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7579         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7580         __syslog_chk.
7582 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7584         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7585         %as in fscanf format strings.
7587         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7588         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7589         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7590         Likewise.
7591         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7592         Likewise.
7594         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7595         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7596         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7597         * elf/dl-sym.c (do_sym): Likewise.
7598         * include/link.h (struct link_map): Add l_serial field.
7599         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7600         * elf/dl-lookup.c (add_dependency): Add flags argument.
7601         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7602         flags, use THREAD_GSCOPE_RESET_FLAG before and
7603         THREAD_GSCOPE_SET_FLAG after
7604         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7605         Don't dereference map until it has been found on some list.
7606         If map->l_serial changed, return -1.
7608 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7610         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7611         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7612         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7613         libc_hidden_proto.
7614         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7615         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7616         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7617         add libc_hidden_proto.
7618         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7619         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7620         conformance requested.
7621         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7622         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7623         conformance requested.
7624         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7625         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7626         conformance requested.
7627         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7628         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7629         ISO C99 or POSIX conformance requested.
7630         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7631         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7632         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7633         and __isoc99_vsscanf@@GLIBC_2.7.
7634         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7635         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7636         (tests): Add scanf14.
7637         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7638         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7639         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7640         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7641         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7642         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7643         from using internal headers.
7644         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7645         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7646         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7647         and __isoc99_vswscanf@@GLIBC_2.7.
7648         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7649         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7650         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7651         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7652         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7653         * stdio-common/isoc99_scanf.c: New file.
7654         * stdio-common/isoc99_vsscanf.c: New file.
7655         * stdio-common/isoc99_vscanf.c: New file.
7656         * stdio-common/isoc99_vfscanf.c: New file.
7657         * stdio-common/isoc99_fscanf.c: New file.
7658         * stdio-common/isoc99_sscanf.c: New file.
7659         * wcsmbs/isoc99_fwscanf.c: New file.
7660         * wcsmbs/isoc99_vswscanf.c: New file.
7661         * wcsmbs/isoc99_swscanf.c: New file.
7662         * wcsmbs/isoc99_wscanf.c: New file.
7663         * wcsmbs/isoc99_vwscanf.c: New file.
7664         * wcsmbs/isoc99_vfwscanf.c: New file.
7665         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7666         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7667         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7668         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7669         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7670         * stdio-common/scanf14.c: New test.
7671         * stdio-common/scanf15.c: New test.
7672         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7673         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7674         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7675         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7676         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7677         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7678         __nldbl___isoc99_scanf@@GLIBC_2.7,
7679         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7680         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7681         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7682         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7683         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7684         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7685         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7686         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7687         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7688         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7689         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7690         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7691         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7692         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7693         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7694         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7695         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7696         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7697         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7698         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7699         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7700         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7701         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7702         functions.
7703         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7704         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7705         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7706         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7707         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7708         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7709         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7710         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7711         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7712         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7713         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7714         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7716         * stdio-common/Makefile (tests): Add scanf13.
7717         (scanf13-ENV): New.
7718         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7719         m modifier followed by l.
7720         (STRING_ARG): Add width argument.
7721         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7722         <case L_('C')>: Handle %mlc and %mC.
7723         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7724         arguments.
7725         * stdio-common/scanf13.c: New test.
7727         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7728         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7730 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7732         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7733         type and __THROW marker of splice, vmsplice, and tee.
7734         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7735         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7736         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7737         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7738         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7739         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7740         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7741         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7742         as cancellation points.
7744 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7746         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7747         parse more than three parts of the version number.
7749 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7751         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7752         modifier.  Patch by Jakub Jelinek.
7754 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7756         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7757         call_fallocate in misc subdir.
7758         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7759         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7760         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7761         instead of __fallocate64.
7762         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7764 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7766         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7767         * rt/Makefile (headers): Add bits/mqueue2.h.
7768         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7769         optimizing with GCC and __va_arg_pack_len is defined.
7770         * rt/bits/mqueue2.h: New file.
7771         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7772         (mq_open): New strong_alias.
7773         (__mq_open_2): New function.
7774         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7775         (mq_open): New strong_alias.
7776         (__mq_open_2): New function.
7777         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7778         * Versions.def (librt): Add GLIBC_2.7 version.
7779         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7780         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7782         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7783         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7784         is defined rather than when not C++.
7785         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7786         __openat64_alias): New redirects.
7787         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7788         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7789         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7790         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7791         functions instead of function-like macros.
7793 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7795         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7796         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7797         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7799 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7801         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7802         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7804 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7806         * inet/tst-network.c: Increment ERRORS for failing tests.
7808 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7810         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7811         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7812         implement as __extern_always_inline function.
7813         (vsyslog): Define as __extern_always_inline function unconditionally.
7814         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7815         When __va_arg_pack is defined, implement as __extern_always_inline
7816         functions.
7817         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7818         __extern_always_inline functions unconditionally.
7819         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7820         bits/stdio2.h will be included.
7821         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7822         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7823         implement as __extern_always_inline functions.
7824         (vswprintf, vwprintf, vfwprintf): Define as
7825         __extern_always_inline functions unconditionally.
7826         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7828 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
7830         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7831         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7832         attribute.
7833         * include/features.h (__USE_EXTERN_INLINES): Define only when
7834         __extern_inline is defined.
7835         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7836         is defined instead of when not __cplusplus.
7837         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7838         is defined instead of when not __cplusplus.
7839         * socket/sys/socket.h: Include bits/socket2.h when
7840         __extern_always_inline is defined instead of when not __cplusplus.
7841         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7842         is defined instead of when not __cplusplus.
7843         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7844         is defined instead of when not __cplusplus.
7845         * string/string.h: Include bits/string3.h when __extern_always_inline
7846         is defined instead of when not __cplusplus.
7847         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7848         is defined instead of when not __cplusplus.
7849         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7850         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7851         is not defined.
7852         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7853         defined __extern_always_inline instead of !defined __cplusplus.
7854         * libio/bits/stdio-ldbl.h: Likewise.
7855         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7856         * misc/bits/syslog.h (syslog): Don't define for C++.
7857         (vsyslog): Use __extern_always_inline function for C++ instead of
7858         a macro.
7859         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7860         whenever that macro is defined.
7861         (vprintf): Don't provide the inline for C++.
7862         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7863         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7864         define the macros for C++.
7865         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7866         __extern_always_inline functions for C++.
7867         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7868         stat64, lstat64, fstat64, fstatat64): Don't define if not
7869         __USE_EXTERN_INLINES.
7870         * wcsmbs/bits/wchar2.h: Fix #error message.
7871         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7872         (vswprintf, vwprintf, vfwprintf): Define using
7873         __extern_always_inline functions for C++.
7874         * string/bits/string3.h: Don't #undef macros if __cplusplus.
7875         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7876         strncpy, strcat, strncat): Define as __extern_always_inline
7877         functions instead of macros for C++.
7878         * math/bits/cmathcalls.h: Guard __extern_inline routines with
7879         defined __extern_inline.
7880         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7881         to __extern_inline whenever that macro is defined.
7882         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7883         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7884         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7885         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7886         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7887         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7888         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7889         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7890         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7891         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7892         prototypes.  Only provide __extern_inline routines if
7893         __USE_EXTERN_INLINES.
7894         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7895         tests.
7896         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7897         For now avoid some *printf tests in C++.  Skip all testing
7898         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7899         is not.
7900         * debug/tst-chk4.cc: New file.
7901         * debug/tst-chk5.cc: New file.
7902         * debug/tst-chk6.cc: New file.
7903         * debug/tst-lfschk4.cc: New file.
7904         * debug/tst-lfschk5.cc: New file.
7905         * debug/tst-lfschk6.cc: New file.
7906         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7907         prototypes in C++.
7908         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7909         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7910         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7912 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
7914         * po/cs.po: Update from translation team.
7916 2007-09-11  Roland McGrath  <roland@redhat.com>
7918         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7919         compiling.
7921 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7923         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7925 2007-09-05  Roland McGrath  <roland@redhat.com>
7927         * manual/signal.texi (Signaling Another Process): Typo fix.
7928         From Karl Berry <karl@freefriends.org>.
7930 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
7932         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7933         zero if not defined.
7934         (make_request): Recognize optimistic addresses and treat them like
7935         deprecated addresses.
7936         Reported by Neil Horman <nhorman@redhat.com>.
7938 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
7940         * nscd/connections.c (send_ro_fd): Also transfer file size.
7941         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7942         file size don't call fstat.
7944         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7945         ahead and map the file.  This should always be correct and we can
7946         catch problems later.
7948 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
7950         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7951         prototypes.
7952         (__fread_alias, __fread_unlocked_alias): New aliases.
7953         (fread): New extern inline.
7954         (fread_unlocked): Likewise.  Undef macro before definition of
7955         the inline function.
7956         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7957         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7958         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7959         and __fread_unlocked_chk@@GLIBC_2.7.
7960         * debug/fread_chk.c: New file.
7961         * debug/fread_u_chk.c: New file.
7962         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7964 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
7966         * sysdeps/unix/sysv/linux/syscalls.list
7967         (personality): Change caller to EXTRA.
7969 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
7971         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7972         to keep gcc quiet.
7973         * iconvdata/iso-2022-cn.c (BODY): Likewise.
7975         * locale/programs/ld-collate.c (collate_output): Avoid warning if
7976         NDEBUG is defined.
7978         * Makerules: Use -p option with mkdir.
7980         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7981         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7982         (_xdr_directory_obj): Likewise.
7983         (xdr_entry_obj): Likewise.
7984         (xdr_group_obj): Likewise.
7985         (xdr_link_obj): Likewise.
7986         (xdr_table_obj): Likewise.
7987         (_xdr_nis_result): Likewise.
7988         (_xdr_ns_request): Likewise.
7989         (_xdr_ib_request): Likewise.
7990         (_xdr_nis_taglist): Likewise.
7991         (xdr_cback_data): Likewise.
7992         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7993         (xdr_ypresp_maplist): Likewise.
7995         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7997         * posix/regex_internal.h: Prevent some declarations and definitions
7998         to be seen when used in tests.
8000         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8001         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8003         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8005         * config.make.in (datarootdir): Add to shut up configure.
8007         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8008         associativity for fully-associative caches.
8010         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8011         requests.  Fill on more associativity values for L2.
8012         Patch mostly by Evandro Menezes.
8014 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8016         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8017         (_libc_vdso_platform_setup): Avoid using exported variable by using
8018         alias.
8020         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8022         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8023         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8024         defined.
8026 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8028         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8029         align stack for call if pltexit is to be used.
8031         [BZ #3924]
8032         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8033         align for function call in case pltexit has to be called later.
8035         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8036         implicit atomic operation when storing function pointer.
8037         (_dl_runtime_profile): Likewise.
8039 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8041         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8042         NIS_NOTFOUND.
8044 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8046         [BZ #4566]
8047         * string/strtok.c: Fix typo in comment.
8049         [BZ #4582]
8050         * debug/segfault.c: Fix typos in comments.
8052         [BZ #4588]
8053         * stdio-common/tempnam.c: Fix comment, it is not checked that
8054         TMPDIR points to a writable directory.
8056         [BZ #4726]
8057         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8058         memory allocated for the name server address.
8060         [BZ #4946]
8061         * nscd/connections.c (handle_request): Using sendfile always
8062         requires that mmap is used for the database.
8063         Patch by Petr Baudis <pasky@suse.cz>.
8065         [BZ #4905]
8066         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8067         suddenly has two or more addresses, ignore it and remove the old
8068         entry.
8070         [BZ #4814]
8071         * resolv/res_hconf.c: Prepare for compiling outside libc.
8072         * nscd/res_hconf.c: New file.
8073         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8074         the new file.
8075         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8076         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8078         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8080         [BZ #4925]
8081         * debug/pcprofiledump.c: Turn on internationalization by calling
8082         setlocale.  Patch mostly by Benno Schulenberg.
8084         [BZ #4936]
8085         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8086         the state.
8087         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8088         * iconvdata/bug-iconv5.c: New file.
8090 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8092         [BZ #4896]
8093         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8094         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8095         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8096         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8097         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8098         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8099         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8100         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8102 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8104         [BZ #4937]
8105         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8106         lookup loop.  Suggested by John Reiser.
8108 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8110         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8112 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8114         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8115         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8116         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8117         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8118         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8119         to...
8120         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8122 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8124         * po/nl.po: Update from translation team.
8126 2007-08-16  Andreas Jaeger  <aj@suse.de>
8128         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8129         Reported by Peter Festner <peter.festner@ewetel.net>.
8131 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8133         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8135 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8137         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8138         to check for undefined symbols.
8140         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8141         If the syscall fails, set errno to the actual returned error number
8142         rather than EINVAL.
8143         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8144         arguments are incorrect, set errno to EINVAL, if the syscall
8145         fails, set errno to the actual returned error number.
8147         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8148         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8150         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8151         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8152         file.
8153         (ASI_PNF, ASI_BLK_P): Don't define.
8154         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8155         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8156         file.
8157         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8158         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8159         file.
8161 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8163         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8164         FE_UNDERFLOW on Niagara CPUs.
8166         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8167         exceptions.
8169 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8171         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8172         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8173         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8174         flush should be used or not inside of the function.
8175         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8177         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8178         __thread_start): Use HIDDEN_JUMPTARGET.
8179         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8180         __thread_start): Likewise.
8181         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8183         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8184         Add libc_hidden_proto.
8185         (STRTOF): Add libc_hidden_proto.
8186         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8187         (strtold_l, wcstold_l): Use them as second argument for
8188         long_double_symbol.
8190 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8192         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8194 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8196         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8198 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8200         * po/bg.po: New file.  From the translation team.
8202 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8204         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8205         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8206         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8207         when each feature was introduced.
8209         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8210         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8211         (CHECK_HASH): New macro.
8212         (PREPARE_VERSION): Use it.
8214         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8215         prototype if not __ASSUME_PSELECT.
8216         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8217         prototype if not __ASSUME_PPOLL.
8219         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8221         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8222         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8223         is defined.
8225 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8227         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8228         (_libc_vdso_platform_setup): If vDSO is not available point
8229         __vdso_gettimeofday to the vsyscall.
8230         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8231         __vdso_gettimeofday instead of vsyscall.
8233 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8235         * nscd/servicescache.c: Include kernel-features.h.
8236         * nscd/gai.c: Likewise.
8237         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8238         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8239         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8240         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8241         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8242         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8243         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8244         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8245         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8247 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8249         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8250         and _dl_get_origin defines anymore.
8252         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8253         Build fix for systems which might lack POSIX timer support.
8255         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8256         (_libc_vdso_platform_setup): Mangle function pointers before storing
8257         them.
8258         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8259         Demangle vdso pointer before use.
8260         (INTERNAL_VSYSCALL): Likewise.
8262         * elf/cache.c (primes): Mark as const.
8263         Noted by Roland McGrath.
8265 2007-08-01  Andreas Jaeger  <aj@suse.de>
8266             Jakub Jelinek  <jakub@redhat.com>
8268         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8269         (options): Add option.
8270         (parse_opt): Handle option.
8271         (manual_link): Adjust process_file caller.  Call implicit_soname.
8272         (search_dir): Formatting.  Use and populate auxiliary cache.
8273         (main): Load and save auxiliary cache.
8274         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8275         stat64 from fstat64 to caller.
8276         (implicit_soname): New function.
8277         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8278         leave *soname as NULL.
8279         * elf/cache.c: Include libgen.h.
8280         (print_entry, print_cache, compare, save_cache, add_to_cache):
8281         Formatting and cleanups.
8282         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8283         aux_cache_file): New structures.
8284         (AUX_CACHEMAGIC): Define.
8285         (primes): New array.
8286         (aux_hash_size, aux_hash): New variables.
8287         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8288         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8289         load_aux_cache, save_aux_cache): New functions.
8290         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8291         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8292         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8293         (process_file): Adjust prototype.
8295 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8297         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8298         with __need_size_t.
8300 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8302         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8303         r_found_version structure as second parameter.
8304         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8305         (_dl_vdso_vsym): Change type of second parameter accordingly.
8306         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8307         (_libc_vdso_platform_setup): Adjust.
8308         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8309         (_libc_vdso_platform_setup): Likewise.
8311         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8312         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8313         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8314         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8315         * csu/libc-start.c: Pretty printing.
8316         Use VDSO_SETUP if defined.
8317         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8318         and let generic code call into _libc_vdso_platform_setup.
8319         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8320         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8321         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8322         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8323         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8324         for GLIBC_PRIVATE.
8325         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8326         (sysdep_rountines): Add dl-vdso.
8328         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8329         of routines.
8331         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8332         attribute_hidden to __vdso_gettimeofday prototype.
8334 2007-08-12  Roland McGrath  <roland@redhat.com>
8336         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8337         From: Karl Berry <karl@freefriends.org>.
8339 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8341         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8342         an atime update for the files we read.
8344 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8346         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8348         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8349         instead of mkstemp.
8351         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8352         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8353         * misc/mkostemp.c: New file.
8354         * misc/mkostemp64.c: New file.
8355         * stdlib/stdlib.h: Declare the new functions.
8356         * sysdeps/posix/tempname.c: Add new parameter which is added to
8357         the flags for open.  Remove __GT_BIGFILE handling.
8358         * stdio-common/tempname.c: Likewise.
8359         * include/stdio.h: Adjust __gen_tempname prototype.
8360         Renumber __GT_* constants.
8361         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8362         * misc/mkdtemp.c: Likewise.
8363         * misc/mkstemp.c: Likewise.
8364         * misc/mkstemp64.c: Likewise.
8365         * misc/mktemp.c: Likewise.
8366         * stdio-common/tempnam.c: Likewise.
8367         * stdio-common/tmpfile.c: Likewise.
8368         * stdio-common/tmpfile64.c: Likewise.
8369         * stdio-common/tmpnam.c: Likewise.
8370         * stdio-common/tmpnam_r.c: Likewise.
8372 2007-08-10  Roland McGrath  <roland@frob.com>
8374         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8375         New macros.
8376         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8377         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8379 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8381         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8382         possible.
8383         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8384         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8385         * nss/nss_files/files-have_o_cloexec.c: New file.
8387         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8388         available.
8390 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8392         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8393         ___new_wcstold_l): New weak aliases.
8394         (strtold_l, wcstold_l): Use them as second argument for
8395         long_double_symbol.
8397 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8399         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8400         register in test for error.
8402         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8403         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8405         * po/sv.po: Update from translation team.
8407 2007-08-06  Roland McGrath  <roland@redhat.com>
8409         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8410         Remove __strto*_l inlines.
8411         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8412         * stdlib/strtod.c: Add libc_hidden_def.
8413         * stdlib/strtod_l.c: Likewise.
8414         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8415         for __new_strtold and __new_wcstold.
8416         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8417         __STRTOF, STRTOF.
8418         * stdlib/strtol.c: Add libc_hidden_def.
8419         * stdlib/strtol_l.c: Likewise.
8420         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8421         strtoq.
8423         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8425         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8426         * scripts/data/localplt-generic.data: ... here.
8427         * elf/Makefile (check-data): Get generic file if no other.
8428         ($(objpfx)check-localplt.out): Make target unconditional.
8430         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8431         Use ElfW(Nhdr).
8433 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8435         * po/zh_CN.po: Updated translation from translation team.
8437 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8440         Don't use CGOTSETUP and CGOTRESTORE macros.
8442 2007-08-04  Roland McGrath  <roland@redhat.com>
8444         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8446 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8448         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8449         __extension__ around the whole statement expression.
8451 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8453         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8454         elements during initialization.
8456         * po/pl.po: Updated translation from translation team.
8457         * po/tr.po: Likewise.
8458         * po/nl.po: Likewise.
8460 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8462         * rt/aio.h: Add __nonnull attributes.
8464 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8466         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8467         * stdlib/Makefile (tests): Add tst-strtod5.
8468         (tst-strtod5-ENV): New.
8469         * stdlib/tst-strtod5.c: New file.
8471         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8472         failed.
8473         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8474         on failure.
8476         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8477         allocated.
8479 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8481         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8482         numbers.
8484 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8486         * io/Makefile (aux): Add have_o_cloexec.
8487         * include/fcntl.h: Declare __have_o_cloexec.
8488         * io/have_o_cloexec.c: New file.
8489         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8490         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8491         fcntl call if not necessary.
8492         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8493         of local variable.
8495         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8496         Avoid memset, add explicit initialization.
8497         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8498         to the end and change into zero-sized array.
8499         Move lock member to fill a hole on 64-bit platforms.
8501         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8502         inline functions.
8503         * include/stdlib.h: Add __strto*_internal prototypes here.
8504         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8505         inline functions.
8506         * include/wchar.h: Add __wcsto*_internal prototypes.
8507         * sysdeps/generic/inttypes.h: No need to protect the declaration
8508         of the __strto*_internal and __wcsto*_internal members here.
8510         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8512 2007-08-02  Roland McGrath  <roland@redhat.com>
8514         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8515         $(inst_bindir)/getconf if possible.
8517         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8518         (generated): Add it.
8519         ($(inst_libexecdir)/getconf): Use it.
8521 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8523         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8524         /proc is faster and sufficient.  /sys is still needed for
8525         __get_nprocs_conf.
8527 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8529         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8530         syscall as __fallocate64.
8531         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8532         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8534 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8536         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8537         value.
8539         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8540         if off_t is different rank from size_t.
8542         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8543         uw_frame_state_for): Avoid type punning warnings.
8544         * sysdeps/generic/unwind-dw2-fde-glibc.c
8545         (_Unwind_IteratePhdrCallback): Likewise.
8546         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8547         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8548         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8549         pointers.
8551 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8553         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8554         total processors using sysfs.
8555         (__get_nprocs): Use sysfs to determine which processors are online.
8557 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8559         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8560         syscall arguments count.
8562         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8564 2007-07-30  Roland McGrath  <roland@redhat.com>
8566         * manual/libc.texinfo: Update copyrights, formatting magic, and
8567         @dircategory.  From Karl Berry <karl@freefriends.org>.
8569 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8571         [BZ #4860]
8572         * io/Makefile (headers): Add bits/fcntl2.h.
8574         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8575         using gcc builtin.
8576         (__CPU_EQUAL_S): Likewise.
8578         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8579         (tests): Add tst-cpuset.
8580         * posix/sched_cpualloc.c: New file.
8581         * posix/sched_cpufree.c: New file.
8582         * posix/tst-cpuset.c: New file.
8583         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8584         GLIBC_2.7.
8585         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8586         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8587         macros.  Define CPU_*_S macros.
8589 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8591         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8592         entry.
8594         [BZ #4858]
8595         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8596         #.0g and value rounded to 1.0.
8597         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8599 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8601         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8602         for int_frac_digits and frac_digits.
8604         * login/logout.c (logout): Avoid aliasing violation.
8605         * login/logwtmp.c (logwtmp): Likewise.
8607         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8609         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8610         to avoid warning.
8611         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8612         warning.
8613         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8614         warning.
8615         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8616         to avoid warnings.
8618         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8619         void **.
8620         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8622         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8623         char * to avoid warning.
8624         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8626         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8628         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8629         allocate_arrays): Cast second argument to charmap_find_symbol
8630         to char * to avoid warnings.
8632         * locale/programs/repertoire.c (repertoire_new_char): Change
8633         from_nr, to_nr and cnt to unsigned long, adjust printf format
8634         string.
8636         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8637         Cast second argument to new_element to char * to avoid warnings.
8639         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8641         * intl/gettextP.h (struct loaded_domain): Change plural to const
8642         struct expression *.
8643         * intl/plural-eval.c (plural_eval): Change first argument to
8644         const struct expression *.
8645         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8646         argument to const struct expression **.
8647         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8648         prototypes.
8649         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8650         in call to __gettext_free_exp.
8652         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8653         unitialized wstring/wpattern var warnings.
8655         * posix/runtests.c (struct a_test): Make data field const char *.
8657         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8658         vars if not LDBL_MANT_DIG >= 106.
8660         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8662         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8663         __find_specmb to avoid warning.
8665         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8667         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8668         to avoid warnings.
8670         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8671         initializer.
8673         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8674         tv var when it will be actually used.
8676         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8677         to avoid warnings.
8679         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8680         char array resp. pointer.
8681         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8682         char array.
8683         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8684         to const unsigned char **.
8685         (ucs4_to_cns11643): Change second argument to unsigned char *.
8686         * iconvdata/euc-tw.c (BODY): Change endp type to
8687         const unsigned char *.
8688         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8689         to unsigned char *.
8690         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8691         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8692         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8693         types to unsigned char pointers/arrays instead of char.
8694         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8695         to unsigned char *.
8696         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8697         * iconvdata/jis0212.h: Include assert.h.
8698         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8699         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8700         of trying to handle that.
8701         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8702         shut up a warning.
8703         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8704         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8705         two dimensional const unsigned char arrays.
8706         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8707         Initialize endp to inptr to shut up a warning.
8709 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8711         [BZ #4772]
8712         * time/strptime_l.c (__strptime_internal): Silently ignore
8713         strftime modifiers and field width in recursive calls.
8715         * include/time.h (enum ptime_locale_status): Remove.
8716         (__strptime_internal): Remove decided and era_cnt arguments,
8717         add statep argument.
8718         * time/strptime_l.c (__strptime_internal): Remove decided
8719         and era_cnt arguments, add statep argument.  Don't recompute
8720         any fields in recursive calls, only update caller's tm
8721         and state, if recursive call fails, don't change tm nor
8722         any state.
8723         (get_alt_number): Adjust.
8724         (recursive): Adjust caller.
8725         (strptime): Likewise.
8726         * time/strptime.c (strptime): Likewise.
8728 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8730         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8731         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8732         if from and to charsets are the same.
8733         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8734         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8735         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8737 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8739         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8740         Don't define wint_t when __need_mbstate_t unless it
8741         is necessary.
8742         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8743         in the typedef if possible.
8744         * wctype/wctype.h (wint_t): Define by including
8745         wchar.h with __need_wint_t instead of including stddef.h
8746         with __need_wint_t and as fallback definining it ourselves.
8747         * iconv/gconv.h (__need_wint_t): Define before including
8748         wchar.h.
8749         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8750         or _GLIBCPP_USE_WCHAR_T.
8751         (__need_wchar_t): Don't define
8752         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8753         (__need_wint_t): Don't define before including stddef.h,
8754         define before including wchar.h only if _LIBC or
8755         _GLIBCPP_USE_WCHAR_T.
8756         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8757         * sysdeps/mach/hurd/_G_config.h: Likewise.
8758         * sysdeps/generic/_G_config.h: Likewise.
8759         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8760         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8761         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8762         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8764 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8766         * sysdeps/posix/posix_fallocate64.c: Undefine
8767         __posix_fallocate64_l64 before alias handling.
8768         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8769         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8770         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8771         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8773         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8775 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8777         * locale/programs/ld-collate.c (atwc): New variable.
8778         (add_to_tablewc): New toplevel function, moved from collate_output.
8779         (collate_output): Remove add_to_tablewc nested function.
8781         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8782         (name_insert): New function.
8783         (write_output): Remove hash_table and hash_size vars and name_insert
8784         nested function.
8786 2007-07-24  Roland McGrath  <roland@redhat.com>
8788         * Makerules (install-others-programs-nosubdir): New target.
8789         (install-no-libc.a-nosubdir): Depend on it.
8791         * iconv/Makefile (install-others-programs): Set this instead of
8792         install-others.
8793         * login/Makefile (install-others-programs): Likewise.
8794         * posix/Makefile (install-others-programs): Likewise.
8796         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8797         dependencies.
8799 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8801         * io/Makefile (tests): Add tst-posix_fallocate.
8802         * io/tst-posix_fallocate.c: New file.
8804         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8805         __ASSUME_FALLOCATE.
8807 2007-07-22  Roland McGrath  <roland@frob.com>
8809         * hurd/getdport.c: Add missing copyright year update.
8811         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8812         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8814 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
8816         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8818         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8819         O_CLOEXEC is needed.
8820         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8821         Avoid additional fcntl to set O_CLOEXEC if not needed.
8822         * nis/nss_compat/compat-initgroups.c: Likewise.
8823         * nis/nss_compat/compat-pwd.c: Likewise.
8824         * nis/nss_compat/compat-spwd.c: Likewise.
8826 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8828         [BZ #3665]
8829         * manual/errno.texi: Change ECANCELED value to 119.
8831         [BZ #4610]
8832         * mach/lock-intern.h: Include <sys/cdefs.h>.
8834         [BZ #4178]
8835         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8836         reading A.
8838         [BZ #4126]
8839         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8840         to __sigsuspend.
8842         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8844 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
8846         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8847         `__ASSEMBLER__'.
8848         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8850 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
8852         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8853         descriptor received from nscd.
8855         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8857         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8858         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8859         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8860         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8861         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8862         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8864 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8866         [BZ #4816]
8867         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8869         [BZ #4813]
8870         * login/forkpty.c (forkpty): Close master and slave fds on
8871         fork failure.  Patch by
8872         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8874 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
8876         * include/features.h (__USE_ISOC95): New define.
8877         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8878         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8879         for -std=iso9899:199409.
8880         * CONFORMANCE: Remove comments about unsupported AMD1.
8882 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8884         * sysdeps/ia64/sched_cpucount.c: New file.
8885         * sysdeps/powerpc/sched_cpucount.c: New file.
8887         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8888         __BEGIN_DECLS/__END_DECLS around the prototype.
8889         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
8890         pointer to const cpu_set_t.
8892         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8893         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8894         __need_size_t and include stddef.h.
8895         * sysvipc/sys/msg.h: Likewise.
8896         * posix/sched.h: Likewise.
8897         * hurd/hurd/signal.h (__need_size_t): Define.
8899         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8900         neither does signal.h in pedantic ISO C namespaces.  stdio.h
8901         no longer defines wint_t or wchar_t.
8903         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8904         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8905         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8906         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8907         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8908         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8909         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8910         * debug/printf_chk.c (__printf_chk): Likewise.
8911         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8912         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8914         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8915         Define.
8917         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8918         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8920 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8922         [BZ #4792]
8923         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8924         * malloc/malloc.h (realloc): Likewise.
8926         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8927         if one of proc_file_chain streams has that fileno.
8928         * stdio-common/Makefile (tests): Add tst-popen2.
8929         * stdio-common/tst-popen2.c: New test.
8931 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
8933         * elf/ldconfig.c: Allow GPLv2 or any later version.
8934         * elf/readlib.c: Likewise.
8935         * elf/chroot_canon.c: Likewise.
8936         * elf/cache.c: Likewise.
8937         * nscd/mem.c: Likewise.
8938         * nscd/getpwuid_r.c: Likewise.
8939         * nscd/grpcache.c: Likewise.
8940         * nscd/aicache.c: Likewise.
8941         * nscd/getsrvbynm_r.c: Likewise.
8942         * nscd/nscd.c: Likewise.
8943         * nscd/servicescache.c: Likewise.
8944         * nscd/getsrvbypt_r.c: Likewise.
8945         * nscd/initgrcache.c: Likewise.
8946         * nscd/gethstbyad_r.c: Likewise.
8947         * nscd/gethstbynm2_r.c: Likewise.
8948         * nscd/getgrnam_r.c: Likewise.
8949         * nscd/nscd_setup_thread.c: Likewise.
8950         * nscd/getpwnam_r.c: Likewise.
8951         * nscd/gai.c: Likewise.
8952         * nscd/connections.c: Likewise.
8953         * nscd/dbg_log.c: Likewise.
8954         * nscd/cache.c: Likewise.
8955         * nscd/hstcache.c: Likewise.
8956         * nscd/nscd_conf.c: Likewise.
8957         * nscd/getgrgid_r.c: Likewise.
8958         * nscd/pwdcache.c: Likewise.
8959         * catgets/gencat.c: Likewise.
8960         * locale/programs/linereader.h: Likewise.
8961         * locale/programs/locarchive.c: Likewise.
8962         * locale/programs/ld-paper.c: Likewise.
8963         * locale/programs/locfile-kw.h: Likewise.
8964         * locale/programs/ld-address.c: Likewise.
8965         * locale/programs/xmalloc.c: Likewise.
8966         * locale/programs/ld-time.c: Likewise.
8967         * locale/programs/localedef.c: Likewise.
8968         * locale/programs/simple-hash.c: Likewise.
8969         * locale/programs/xstrdup.c: Likewise.
8970         * locale/programs/ld-numeric.c: Likewise.
8971         * locale/programs/locfile-kw.gperf: Likewise.
8972         * locale/programs/ld-collate.c: Likewise.
8973         * locale/programs/charmap-kw.gperf: Likewise.
8974         * locale/programs/charmap.h: Likewise.
8975         * locale/programs/charmap-kw.h: Likewise.
8976         * locale/programs/config.h: Likewise.
8977         * locale/programs/locfile.c: Likewise.
8978         * locale/programs/ld-ctype.c: Likewise.
8979         * locale/programs/charmap.c: Likewise.
8980         * locale/programs/ld-messages.c: Likewise.
8981         * locale/programs/repertoire.h: Likewise.
8982         * locale/programs/locale.c: Likewise.
8983         * locale/programs/ld-name.c: Likewise.
8984         * locale/programs/linereader.c: Likewise.
8985         * locale/programs/locfile.h: Likewise.
8986         * locale/programs/3level.h: Likewise.
8987         * locale/programs/ld-monetary.c: Likewise.
8988         * locale/programs/ld-measurement.c: Likewise.
8989         * locale/programs/charmap-dir.c: Likewise.
8990         * locale/programs/ld-identification.c: Likewise.
8991         * locale/programs/localedef.h: Likewise.
8992         * locale/programs/charmap-dir.h: Likewise.
8993         * locale/programs/repertoire.c: Likewise.
8994         * locale/programs/simple-hash.h: Likewise.
8995         * locale/programs/ld-telephone.c: Likewise.
8996         * locale/programs/locale-spec.c: Likewise.
8997         * locale/programs/locfile-token.h: Likewise.
8998         * posix/getconf.c: Likewise.
8999         * iconv/dummy-repertoire.c: Likewise.
9000         * iconv/iconv_charmap.c: Likewise.
9001         * iconv/iconvconfig.c: Likewise.
9002         * iconv/iconv_prog.c: Likewise.
9003         * malloc/memusagestat.c: Likewise.
9004         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9006 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9008         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9009         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9010         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9011         check for the first argument.
9013 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9015         [BZ #4775]
9016         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9017         (__tgmath_real_type): Fix if expr is const int or other const
9018         qualified integral type.
9019         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9020         expressions and handle const qualified arguments.
9021         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9022         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9023         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9024         statement expressions.
9025         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9026         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9027         (__TGMATH_UNARY_IMAG): Define.
9028         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9029         * math/Makefile (tests): Add test-tgmath2.
9030         (CFLAGS-test-tgmath2.c): Add.
9031         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9032         count_cfloat, count_cldouble): New variables.
9033         (NCCALLS): Define.
9034         (main): Check number of complex calls as well.
9035         (F(compile_test)): Add complex tests and tests with const qualified
9036         arguments.
9037         (y, z, ccount): Define.
9038         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9039         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9040         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9041         F(cproj)): New functions.
9042         * math/test-tgmath2.c: New test.
9044 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9046         [BZ #4776]
9047         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9048         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9049         instead output ".".
9050         * dlfcn/Makefile (distribute): Add glreflib3.c.
9051         (module-names): Add glreflib3.
9052         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9053         glreflib1.so.
9054         (LDFLAGS_glreflib3.so): New.
9055         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9056         glreflib1.so.
9057         * dlfcn/glreflib3.c: New file.
9059         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9060         returned -1, return NULL.
9061         * intl/explodename.c (_nl_explode_name): Return -1 if
9062         _nl_normalize_codeset failed.
9064 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9066         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9067         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9068         and avoid branch misspredicts for > 31 bytes memset case.
9069         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9070         Remove toc ref to __cache_line_size.
9072         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9073         to get ISA-V2.0 branch hints.
9074         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9075         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9076         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9077         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9078         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9079         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9080         Remove toc ref to __cache_line_size.
9082         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9083         Include math_ldbl_opt.h.
9085 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9087         [BZ #4773]
9088         * time/strptime_l.c (__strptime_internal): Implement greedy
9089         matching of weekday and month names.
9091 2007-07-09  Roland McGrath  <roland@redhat.com>
9093         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9094         (ELF_NOTE_ABI): Use it.
9095         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9097 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9099         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9100         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9102 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9104         [BZ #4745]
9105         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9106         in loop to look for conversion specifier to avoid testing of
9107         wrong errno value.
9108         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9109         * stdio-common/bug18.c: New file.
9110         * stdio-common/bug18a.c: New file.
9111         * stdio-common/bug19.c: New file.
9112         * stdio-common/bug19a.c: New file.
9114 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9116         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9117         running awk script.
9119 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9121         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9122         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9123         Return NULL if mmap failed instead of asserting it does not.
9124         (calloc): Check for integer overflow.
9126         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9127         than LONG_MAX / 10.
9129 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9131         [BZ #4702]
9132         * nis/nss-default.c: Include errno.h.
9133         (init): Preserve errno.
9135 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9137         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9139 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9141         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9143 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9145         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9147 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9149         * sysdeps/s390/dl-procinfo.c: New file.
9150         * sysdeps/s390/dl-procinfo.h: New file.
9151         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9153 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9155         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9156         in PT_NOTE segments with multiple notes.
9157         * elf/readelflib.c (process_elf_file): Likewise.
9159 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9161         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9162         ISO C compliant.
9164 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9166         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9168 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9170         * include/link.h: Don't include rtld-lowlevel.h.
9171         (struct link_map): Remove l_scope_lock.
9172         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9173         (_dl_scope_free_list): New field (variable) in _rtld_global.
9174         (DL_LOOKUP_SCOPE_LOCK): Remove.
9175         (_dl_scope_free): New prototype.
9176         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9177         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9178         (_dl_profile_fixup): Likewise.
9179         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9180         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9181         THREAD_GSCOPE_RESET_FLAG around it.
9182         * elf/dl-close.c (_dl_close_worker): Don't use
9183         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9184         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9185         scopes were queued or if l_scope_mem has been abandoned.
9186         * elf/dl-open.c (_dl_scope_free): New function.
9187         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9188         * elf/dl-support.c (_dl_scope_free_list): New variable.
9189         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9190         Remove DL_LOOKUP_SCOPE_LOCK handling.
9191         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9192         handling.
9193         * elf/dl-object.c (_dl_new_object): Don't use
9194         __rtld_mrlock_initialize.
9196 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9198         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9199         to fill in holes
9200         (rtld_global_ro): Likewise.
9202 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9204         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9205         Move PT_LOAD checking to...
9206         (_dl_addr_inside_object): ... here, new function.
9207         * elf/dl-sym.c (do_sym): If not l_contiguous,
9208         call _dl_addr_inside_object.
9209         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9210         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9211         * elf/dl-open.c (dl_open_worker): Likewise.
9212         (_dl_addr_inside_object): New function if IS_IN_rtld.
9213         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9214         holes are present or are PROT_NONE protected.
9215         * include/link.h (struct link_map): Add l_contiguous field.
9216         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9218 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9219             Tomas Janousek  <tjanouse@redhat.com>
9220             Ulrich Drepper  <drepper@redhat.com>
9222         [BZ #4647]
9223         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9224         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9225         socket.
9226         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9227         unused member a bitmap.
9228         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9229         servers are configured.
9231 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9233         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9235 2007-06-17  Andreas Schwab  <schwab@suse.de>
9237         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9239 2007-06-16  Andreas Jaeger  <aj@suse.de>
9241         [BZ #4125]
9242         * sysdeps/unix/sysv/linux/sys/ptrace.h
9243         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9244         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9245         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9246         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9247         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9248         Define.
9249         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9250         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9251         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9252         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9254 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9256         [BZ #4599]
9257         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9258         determining whether there are IPv4/IPv6 addresses, ignore loopback
9259         addresses.
9261 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9263         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9264         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9265         as the return type.  Change type of "r" variable to CMPtype.
9266         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9267         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9268         * soft-fp/gedf2.c (__gedf2): Likewise.
9269         * soft-fp/gesf2.c (__gesf2): Likewise.
9270         * soft-fp/getf2.c (__getf2): Likewise.
9271         * soft-fp/ledf2.c (__ledf2): Likewise.
9272         * soft-fp/lesf2.c (__lesf2): Likewise.
9273         * soft-fp/letf2.c (__letf2): Likewise.
9274         * soft-fp/unorddf2 (__unorddf2): Likewise.
9275         * soft-fp/unordsf2 (__unordsf2): Likewise.
9276         * soft-fp/unordtf2 (__unordtf2): Likewise.
9278 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9280         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9281         make sure gcc doesn't mess around with this.
9283 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9285         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9287 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9289         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9290         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9291         at most once per _dl_close_worker.
9293 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9295         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9296         __sched_cpucount as const.
9297         * posix/sched_cpucount.c: Adjust.
9299         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9300         instruction for counting bits.
9301         * sysdeps/x86_64/sched_cpucount.c: New file.
9303 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9305         * configure.in: Avoid variable named BASH.
9306         * config.make.in: Likewise.
9307         Patch in part by Mike Frysinger.
9309 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9311         [BZ #4586]
9312         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9313         pseudo-zeros as zero.
9314         * sysdeps/x86_64/ldbl2mpn.c: New file.
9315         * sysdeps/ia64/ldbl2mpn.c: New file.
9317 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9319         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9320         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9321         Remove unreachable code at the end.
9323 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9325         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9326         ldbl-128ibm in comment.
9327         (fpclassifyl): Correct classification of denormals.
9328         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9329         return value for MIN denormal. Rewrite using long double math too
9330         correctly handle denormals and canonicalize the results.
9332 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9334         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9335         (__mpn_construct_long_double): Fix conversion where result ought
9336         to be smaller than __LDBL_MIN__, or the low double should be
9337         denormal.  Fix decision where to negate low double - honor round
9338         to even rules.
9339         * stdio-common/tst-sprintf2.c: Include string.h.
9340         (COMPARE_LDBL): Define.
9341         (TEST): Also test whether a string hexadecimal float representation
9342         can be parsed back to the number.
9343         (main): Add a couple of further tests.
9345 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9347         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9348         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9349         is non-zero, but smaller than 2 * __DBL_MIN__.
9350         * stdio-common/tst-sprintf2.c: New test.
9351         * stdio-common/Makefile (tests): Add tst-sprintf2.
9353         * math/test-misc.c (main): Don't run last batch of tests with
9354         IBM long double format.
9356 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9358         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9359         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9360         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9361         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9362         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9363         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9364         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9365         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9366         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9367         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9370         New file.
9371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9372         New file.
9373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9374         New file.
9375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9376         New file.
9377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9378         New file.
9379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9381         New file.
9382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9383         New file.
9384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9385         New file.
9386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9387         New file.
9388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9389         New file.
9391 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9393         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9394         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9395         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9396         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9397         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9398         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9399         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9400         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9402 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9404         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9405         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9406         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9407         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9408         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9409         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9410         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9411         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9413 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9415         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9416         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9417         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9418         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9420 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9422         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9423         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9425 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9427         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9428         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9429         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9430         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9432 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9434         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9435         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9437 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9439         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9440         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9442         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9443         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9444         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9445         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9447 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9449         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9450         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9451         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9452         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9454 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9456         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9457         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9458         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9459         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9460         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9461         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9463 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9465         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9466         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9467         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9468         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9470 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9472         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9473         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9474         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9475         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9476         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9477         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9478         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9479         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9480         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9481         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9482         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9483         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9484         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9485         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9486         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9487         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9489 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9491         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9492         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9494 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9496         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9497         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9499 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9501         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9502         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9503         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9504         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9505         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9506         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9507         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9508         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9509         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9510         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9512 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9514         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9516 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9518         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9519         branch miss-predicts. Ensure that cache line crossing does not impact
9520         dispatch grouping.
9522 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9524         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9525         "../../powerpc32/power4/memcopy.h".
9526         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9527         "../../powerpc32/power4/wordcopy.c".
9529 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9531         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9532         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9533         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9534         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9535         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9536         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9538 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9540         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9542 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9544         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9545         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9546         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9547         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9548         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9549         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9550         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9551         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9553 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9555         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9557 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9559         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9560         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9561         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9562         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9563         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9564         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9565         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9567 2007-05-29  Roland McGrath  <roland@redhat.com>
9569         * po/Makefile (po-sed-cmd): New variable.
9570         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9572 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9574         * crypt/md5-crypt.c: Fix comment.
9576         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9577         of crashing.  When this is the case or if the reply is malformed,
9578         don't try to close the new file descriptor since it does not
9579         exist.
9580         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9582 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9584         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9585         if __NR_utimensat is not defined.
9587 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9589         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9591 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9593         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9594         (open): Fix comment typos.  Don't call __open_2 if flags
9595         is a compile time constant without O_CREAT.
9596         (__open64_2): Add nonnull attribute.
9597         (open64): Fix comment typos.  Don't call __open64_2 if flags
9598         is a compile time constant without O_CREAT.
9599         (__openat_2): Add nonnull attribute, fix nonnull attribute
9600         on redirect.
9601         (openat): Fix comment typos.  Don't call __openat_2 if flags
9602         is a compile time constant without O_CREAT.
9603         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9604         on redirect.
9605         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9606         is a compile time constant without O_CREAT.
9608 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9610         * Makerules (sysd-rules): Define PTW for ptw-* files.
9611         * Versions: Define GLIBC_2.7 for libc.
9612         * include/stdio.h: Declare __fortify_fail.
9613         * debug/fortify_fail.c: New file.
9614         * debug/Makefile (routines): Add fortify_fail.
9615         * debug/chk_fail.c: Use __fortify_fail.
9616         * debug/stack_chk_fail.c: Likewise.
9617         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9618         __openat64_2 for GLIBC_2.7.
9619         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9620         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9621         and fails if necessary.
9622         * io/open64.c: Likewise.
9623         * io/openat.c: Likewise.
9624         * io/openat64.c: Likewise.
9625         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9626         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9627         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9628         * io/bits/fcntl2.h: New file.
9629         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9630         __openat64_2.
9631         * include/bits/fcntl2.h: New file.
9632         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9633         Add open_2.
9634         * sysdeps/unix/sysv/linux/open_2.c: New file.
9636 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9638         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9639         as second parameter to handle_intel.
9641         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9642         the entry.
9644         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9645         handling to ...
9646         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9647         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9648         cacheinfo.
9649         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9650         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9651         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9653         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9655 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9657         [BZ #4525]
9658         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9659         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9660         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9662         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9664         [BZ #4514]
9665         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9666         reinitialize workend at the start of each do_positional format spec
9667         loop, free workstart before do_positional loops.
9668         (printf_unknown): Fix size of work_buffer.
9669         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9671         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9672         (public_sET_STATe): If ms->version < 3, put all chunks into
9673         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9674         chunks.
9676         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9677         * malloc/hooks.c: Likewise.
9678         * malloc/arena.c: Likewise.
9679         * malloc/malloc.c (do_check_malloc_state): Don't assert
9680         n_mmaps is not greater than n_mmaps_max.  This removes the need
9681         for the previous change.
9683         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9684         2007-05-07 commit.
9686 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9688         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9689         Define for kernel >= 2.6.22.
9691 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9693         * elf/dl-close.c (_dl_close_worker): When removing object from
9694         global scope, wait for all lookups to finish afterwards.
9695         * elf/dl-open.c (add_to_global): When global scope array must
9696         grow, allocate a new one and free old array only after all
9697         lookups finish.
9698         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9699         (_dl_lookup_symbol_x): Likewise.
9700         * elf/dl-support.c: Define _dl_wait_lookup_done.
9701         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9702         _dl_wait_lookup_done.
9704         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9705         not overlapping with arena.
9707         * malloc/mcheck.c (reallochook): If size==0, free the block.
9709         * rt/tst-shm.c: Use fstat64 instead of fstat.
9711         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9712         __NR_sync_file_range is not defined.
9714 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9716         Dummy files to prevent stub versions from being used.
9717         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9718         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9719         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9720         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9722         * version.h (VERSION): Set to 2.6.90.
9724 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9726         * version.h (VERSION): Define to 2.6.
9727         * include/features.h (__GLIBC_MINOR__): Define to 6.
9729         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9731         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9732         sizes.
9734 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9736         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9737         number of mmaps.  n_mmaps_max is the target.
9738         * malloc/hooks.c: Likewise.
9739         * malloc/arena.c: Likewise.
9741 2007-05-12  Andreas Jaeger  <aj@suse.de>
9743         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9744         getpid.
9746 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9748         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9749         adding new variables.
9751         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9752         optimize.  Completely extend global scope array before making the
9753         new entries visible.
9755 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9757         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9758         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9759         tst-getcpu.
9761         * include/link.h: Move l_version and l_nversion members around to
9762         fill gaps.
9764         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9766         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9767         (__sched_setaffinity_new): If syscall was successful and
9768         RESET_VGETCPU_CACHE is defined, use it before returning.
9769         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9771         * io/sys/stat.h: Make sure struct timespec is defined for
9772         __USE_ATFILE.
9774         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9775         UTIME_OMIT.
9776         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9777         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9778         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9779         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9780         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9781         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9782         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9783         * io/sys/stat.h: Declare utimensat, futimens.
9784         * io/utimensat.c: New file.
9785         * io/futimens.c: New file.
9786         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9787         * sysdeps/unix/sysv/linux/futimens.c: New file.
9788         * io/Makefile (routines): Add utimensat, futimens.
9789         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9790         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9791         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9792         available.
9794         * include/sys/cdefs.h: Redefine __nonnull so that test for
9795         incorrect parameters in the libc code itself are not omitted.
9797 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9799         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9800         exception in addition to inexact when asked to raise only FE_INEXACT.
9802         [BZ #3427]
9803         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9804         in *envp.
9806 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9808         [BZ #4403]
9809         * string/strfry.c (strfry): Make result more random.
9811 2007-05-07  Richard Henderson  <rth@redhat.com>
9813         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9814         if __NO_LONG_DOUBLE_MATH.
9815         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9816         available in the compiler, add .arch directive to the assembly.
9818 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
9820         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9821         compat_symbol to GLIBC_2_1.
9822         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9823         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9824         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9825         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9826         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9827         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9828         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9829         libc, not libm.
9830         (__isnanl): New compat_symbol.
9832 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9833             Jakub Jelinek  <jakub@redhat.com>
9835         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9836         (new_heap): Initialize mprotect_size.
9837         (grow_heap): When growing, only mprotect from mprotect_size till
9838         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
9839         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9841 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
9842             Peter Bergner  <bergner@us.ibm.com>
9844         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9845         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
9846         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9847         * sysdeps/powerpc/fpu/fe_mask.c: New file.
9848         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9849         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9850         Call __fe_mask_env() if all FP exceptions disabled.
9851         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9852         from old FPSCR to new fenv to propagate DFP rounding modes.
9853         Call __fe_mask_env() if FP exceptions previously enabled.
9854         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9855         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
9856         transitioning from all exceptions disabled to any exception enabled
9857         or visa versa.
9858         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9859         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
9860         when transitioning from all exceptions disabled to any exception
9861         enabled or visa versa.
9862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9869 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9871         [BZ #4465]
9872         * posix/unistd.h: Remove __THROW from fdatasync.
9874 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
9876         [BZ #4465]
9877         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9879 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9881         * stdio-common/vfprintf.c (process_string_arg): Optimize
9882         ridiculous precision in wide char code printing multi-byte string.
9883         Reported by Jim Meyering <jim@meyering.net>.
9885         [BZ #4131]
9886         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9887         boundaries to work around systems with overlapping binary loading.
9888         Based on a patch by Suzuki <suzuki@in.ibm.com>.
9890 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
9892         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9893         __mbsnrtowcs after last change.
9895         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9896         (get_ident): Likewise.
9898 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9900         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9901         with setting the sticky bit.
9902         * math/test-misc.c (main): Add more truncation tests.
9904 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
9906         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9907         double in the function declaration.
9908         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9909         double in the function declaration.
9910         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9911         float in the function declaration.
9912         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9913         float in the function declaration.
9915         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9916         denormal operands.  Do not generate FP_EX_DENORM exception.
9917         (FP_UNPACK_RAW_EP): Ditto.
9918         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9919         undefined _FP_UNPACK_RAW_E.
9920         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9921         undefined _FP_UNPACK_RAW_EP.
9922         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9923         undefined _FP_PACK_RAW_E.
9924         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9925         undefined _FP_PACK_RAW_EP.
9927         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9928         _FP_FRAC_COPY_2.
9929         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9930         _FP_FRAC_COPY_4.
9932 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
9933             Jakub Jelinek  <jakub@redhat.com>
9935         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9936         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
9937         this case.
9938         * soft-fp/op-common.h (FP_TRUNC): Ditto.
9940 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9942         * math/test-misc.c (main): Add tests for rounding long double
9943         values close to smallest double denormalized value to double.
9945 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
9947         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9948         condition for truncating to 0.  Set sticky bit for such
9949         truncation.
9951 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
9953         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9954         fixed length array for ignore.
9956 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9958         [BZ #4438]
9959         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9960         stack for large precisions.
9961         * stdio-common/test-vfprintf.c (main): Add test for large
9962         precision.
9964 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
9966         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9967         for exponent 0.
9968         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9970         [BZ #4439]
9971         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9972         account in the size check.
9973         * resolv/tst-inet_ntop.c: New test.
9974         * resolv/Makefile (tests): Add tst-inet_ntop.
9976 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9977             Jakub Jelinek  <jakub@redhat.com>
9979         [BZ #4349]
9980         * malloc/malloc.c: Keep separate list for first blocks on the bin
9981         lists with a given size.  This helps skipping over list elements
9982         we know won't fit in two places.
9983         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9985 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
9987         [BZ #4102]
9988         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9989         label to Teredo tunnel addresses 2001://32.
9991 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
9993         * locale/programs/ld-collate.c (collate_read): Allow order_start
9994         after copy.
9996         * locale/programs/ld-collate.c (collate_read): Fix printing of
9997         error message.
9999         [BZ #3213]
10000         * locale/C-translit.h.in: Add entry for U2044.
10002         [BZ #4342]
10003         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10004         hexa-decimal floats without exponent.
10005         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10007 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10009         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10010         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10011         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10012         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10013         GLIBC_2.6.
10014         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10015         Add sched_getcpu.
10017 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10019         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10020         of 0 after the out_fail label.
10022 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10024         [BZ #4406]
10025         * iconv/gconv_charset.h (strip): Allow ':'.
10026         * iconv/iconv_open.c (iconv_open): Adjust comment.
10028 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10030         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10031         version.
10033 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10035         [BZ #4381]
10036         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10037         alignment of buffer and tmp_buffer.
10038         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10039         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10040         alignment of buffer.
10041         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10042         bigger than INT_MAX.
10043         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10044         h_errnop arguments.  Fail if buflen is too small.
10045         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10047 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10049         [BZ #4405]
10050         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10051         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10053 2007-04-22  Roland McGrath  <roland@redhat.com>
10055         * elf/elf.h (NT_PRXFPREG): New macro.
10057 2007-04-19  Andreas Jaeger  <aj@suse.de>
10059         [BZ #3905]
10060         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10061         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10062         Added.
10064 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10066         * include/sys/mman.h: Mark madvise hidden.
10067         * misc/madvise.c: Add libc_hidden_def.
10069 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10071         * nis/nis_domain_of.c (__nis_domain_of): New function.
10072         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10073         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10074         * nis/nis_call.c (rec_dirsearch): Likewise.
10075         (first_shoot): Likewise.  Remove search_parent_first argument.
10076         (struct nis_server_cache): Rename search_parent_first field
10077         to search_parent.
10078         (nis_server_cache_search, nis_server_cache_add): Rename
10079         search_parent_first argument to search_parent.
10080         (__nisfind_server): Likewise.  If search_parent, call
10081         __nis_domain_of.
10083 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10085         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10087 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10089         [BZ #4368]
10090         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10092 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10094         [BZ #4364]
10095         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10097 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10099         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10100         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10101         current number of locales in SUPPORTED.
10102         (create_archive): Initialize serial.
10103         (enlarge_archive): Preserve aliases rather than duplicating
10104         their locrecs.
10106 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10108         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10109         after _IO_un_link, not before it.
10111         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10112         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10113         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10115 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10117         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10118         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10119         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10120         Remove __THROW.
10121         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10122         _IO_file_xsgetn_maybe_mmap): Likewise.
10123         * libio/oldfileops.c (old_do_write): Likewise.
10124         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10125         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10126         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10127         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10128         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10129         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10130         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10131         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10132         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10133         _IO_file_underflow, _IO_file_underflow_mmap,
10134         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10135         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10136         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10137         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10138         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10139         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10140         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10141         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10142         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10143         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10144         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10145         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10146         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10147         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10148         _IO_adjust_column_internal, _IO_default_uflow_internal,
10149         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10150         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10151         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10152         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10153         _IO_file_close_it_internal, _IO_file_underflow_internal,
10154         _IO_file_overflow_internal, _IO_file_attach_internal,
10155         _IO_file_fopen_internal, _IO_file_sync_internal,
10156         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10157         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10158         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10159         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10160         _IO_seekpos_unlocked): Likewise.
10161         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10162         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10164 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10166         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10167         argument in xmalloc size computation.
10169 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10171         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10172         math_opt_barrier and math_force_eval macros.
10174 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10176         [BZ #3306]
10177         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10178         * sysdeps/i386/fpu/math_private.h: New file.
10179         * sysdeps/x86_64/fpu/math_private.h: New file.
10180         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10181         math_force_eval macros.  Use "+m" constraint on asm rather than
10182         "=m" and "m".
10183         * math/s_nextafter.c (__nextafter): Likewise.
10184         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10185         Likewise.
10186         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10187         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10188         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10189         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10190         math_opt_barrier and math_force_eval macros.
10191         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10192         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10193         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10194         (__nexttoward): Use math_opt_barrier and
10195         math_force_eval macros.  Use "+m" constraint on asm rather than
10196         "=m" and "m".  Only use asm to force double result if
10197         FLT_EVAL_METHOD is 2.
10198         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10199         (__nexttowardf): Use math_opt_barrier and
10200         math_force_eval macros.  Use "+m" constraint on asm rather than
10201         "=m" and "m".  Only use asm to force double result if
10202         FLT_EVAL_METHOD is not 0.
10203         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10204         (__nexttowardf): Use math_opt_barrier and
10205         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10206         x to float using asm.
10207         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10208         (__nldbl_nexttowardf): Use math_opt_barrier and
10209         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10210         x to float using asm.
10211         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10212         (__nexttowardf): Use math_opt_barrier and math_force_eval
10213         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10214         * math/bug-nextafter.c (zero, inf): New variables.
10215         (main): Add new tests.
10216         * math/bug-nexttoward.c (zero, inf): New variables.
10217         (main): Add new tests.
10219 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10221         [BZ #3427]
10222         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10223         exceptions both in SW and MXCSR.
10224         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10225         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10226         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10227         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10228         in MXCSR if SSE is available.
10229         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10230         and ldsodefs.h.
10231         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10232         Fix comment typo.
10233         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10234         Return 0 rather than 1.
10235         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10236         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10237         * math/test-fenv.c (feholdexcept_tests): New function.
10238         (main): Call it.
10240 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10242         [BZ #3427]
10243         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10244         in SW.
10246 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10248         [BZ #4344]
10249         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10250         Reported by David Anderson <davea42@earthlink.net>.
10252 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10254         * posix/sys/wait.h: Remove unnecessary forward declaration.
10256 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10258         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10259         with obj->do_servers after first_shoot.
10261 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10263         * posix/Makefile (routines): Add sched_cpucount.
10264         (tests): Add tst-cpucount.
10265         * posix/sched_cpucount.c: New file.
10266         * posix/tst-cpucount.c: New file.
10267         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10268         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10269         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10270         * posix/sched.h: Define CPU_COUNT.
10272 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10274         * posix/fnmatch.c (STRUCT): Define.
10275         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10276         * posix/fnmatch_loop.c (struct STRUCT): New type.
10277         (FCT): Add ends argument.  If ends != NULL and normal * is
10278         seen in the pattern, store current pattern and string pointers
10279         and return.  Adjust recursive calls.
10280         (EXT): Adjust FCT callers.
10281         (STRUCT): Undef at the end of the file.
10282         * posix/Makefile (tests): Add tst-fnmatch2.
10283         * posix/tst-fnmatch2.c: New test.
10285 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10287         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10288         and 1 on failure.
10290         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10291         Change last argument to unsigned int.
10293 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10295         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10297 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10299         * config.h.in (HAVE_LIBCAP): Add.
10300         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10301         sys/capabilities.h.
10302         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10303         free_caps.  Cast away const from 4th cap_set_flag argument.
10305 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10307         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10308         GLIBC_2.6.
10309         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10310         Add sync_file_range.
10311         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10313 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10315         * sysdeps/powerpc/bits/atomic.h
10316         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10317         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10318         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10319         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10320         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10321         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10322         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10323         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10324         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10325         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10326         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10327         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10328         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10329         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10330         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10331         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10332         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10333         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10334         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10335         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10337 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10339         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10340         (__cache_line_size): Define the variable here.  Add
10341         attribute_hidden, remove weak_extern.
10342         (__libc_start_main): Set __cache_line_size
10343         unconditionally.
10344         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10345         (__cache_line_size): Define the variable here.  Add
10346         attribute_hidden, remove weak_extern.
10347         (DL_PLATFORM_AUXV): Set __cache_line_size
10348         unconditionally.
10349         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10350         weak_extern, add attribute_hidden.
10351         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10352         defined in ld.so.
10353         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10354         definition.
10355         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10357 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10359         [BZ #4276]
10360         * timezone/africa: Update from tzdata2007d.
10361         * timezone/asia: Likewise.
10362         * timezone/australasia: Likewise.
10363         * timezone/backward: Likewise.
10364         * timezone/europe: Likewise.
10365         * timezone/iso3166.tab: Likewise.
10366         * timezone/leapseconds: Likewise.
10367         * timezone/northamerica: Likewise.
10368         * timezone/southamerica: Likewise.
10369         * timezone/zone.tab: Likewise.
10371         * timezone/private.h: Update from tzcode2007d.
10372         * timezone/zdump.c: Likewise.
10373         * timezone/zic.c: Likewise.
10375 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10377         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10378         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10379         variables.
10380         (nis_server_cache_search, nis_server_cache_add): New functions.
10381         (__nisfind_server): Use them.  Add dbp and flags argument, if
10382         call __nisbind_create.
10383         (__nisbind_create): Add server_used and current_ep arguments,
10384         only call __nis_findfastest if server_used is ~0.
10385         (__do_niscall2, __prepare_niscall): Adjust callers.
10386         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10387         ckey_cache_euid, ckey_cache_lock): New variables.
10388         (get_ckey): New function.
10389         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10390         __pmap_getnisport.  Save __pmap_getnisport result in
10391         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10392         key.
10393         * nis/nis_lookup.c (nis_lookup): Likewise.
10394         * nis/nis_table.c (nis_list): Likewise.
10395         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10396         prototypes.
10398         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10399         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10400         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10401         _nss_nisplus_getservbyport_r): Likewise.
10402         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10403         _nss_nisplus_getnetbyaddr_r): Likewise.
10404         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10405         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10406         _nss_nisplus_getntohost_r): Likewise.
10407         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10408         _nss_nisplus_getrpcbynumber_r): Likewise.
10410 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10412         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10413         * configure: Rebuilt.
10415         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10416         bit-fields.
10417         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10419 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10421         [BZ #2831]
10422         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10423         bit-fields.
10425 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10427         * nscd/gai.c: Include alloca.h.
10428         (__libc_use_alloca): Define.
10430 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10432         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10433         smaller scopes.
10434         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10435         (DL_DST_REQUIRED): Adjust user.
10437         * include/dlfcn.h (struct link_map): New forward decl.
10439         * inet/getnameinfo.c: Include stddef.h.
10440         (getnameinfo): Use offsetof.
10442         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10444         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10446         * string/strerror_l.c: Include stdlib.h.
10448         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10449         * config.make.in (gnu89-inline-CFLAGS): New variable.
10450         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10451         -std=gnu99.
10452         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10453         * argp/argp.h: Use it.
10454         * bits/mathinline.h: Likewise.
10455         * bits/sigset.h: Likewise.
10456         * bits/string.h: Likewise.
10457         * ctype/ctype.h: Likewise.
10458         * hurd/hurd.h: Likewise.
10459         * hurd/hurd/fd.h: Likewise.
10460         * hurd/hurd/port.h: Likewise.
10461         * hurd/hurd/signal.h: Likewise.
10462         * hurd/hurd/threadvar.h: Likewise.
10463         * hurd/hurd/userlink.h: Likewise.
10464         * io/sys/stat.h: Likewise.
10465         * libio/bits/stdio.h: Likewise.
10466         * libio/bits/stdio2.h: Likewise.
10467         * mach/lock-intern.h: Likewise.
10468         * mach/mach/mig_support.h: Likewise.
10469         * math/bits/cmathcalls.h: Likewise.
10470         * posix/bits/unistd.h: Likewise.
10471         * socket/bits/socket2.h: Likewise.
10472         * stdlib/bits/stdlib.h: Likewise.
10473         * stdlib/stdlib.h: Likewise.
10474         * string/argz.h: Likewise.
10475         * string/bits/string2.h: Likewise.
10476         * string/bits/string3.h: Likewise.
10477         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10478         * sysdeps/generic/inttypes.h: Likewise.
10479         * sysdeps/generic/machine-lock.h: Likewise.
10480         * sysdeps/generic/machine-sp.h: Likewise.
10481         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10482         * sysdeps/i386/i486/bits/string.h: Likewise.
10483         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10484         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10485         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10486         * sysdeps/mach/i386/machine-lock.h: Likewise.
10487         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10488         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10489         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10490         * sysdeps/s390/bits/string.h: Likewise.
10491         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10492         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10493         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10494         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10495         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10496         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10497         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10498         * wcsmbs/bits/wchar2.h: Likewise.
10499         * wcsmbs/wchar.h: Likewise.
10500         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10501         __extern_inline definition.
10503 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10505         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10506         NULL.
10508         [BZ #3919]
10509         * math/libm-test.inc (log_test): Test -Inf and NaN.
10510         (log10_test, log1p_test, log2_test): Test -Inf.
10511         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10512         FE_INVALID when argument is qNaN.
10513         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10514         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10515         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10516         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10517         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10518         testb $4, %ah and jump if non-zero.
10519         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10520         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10522         [BZ #4101]
10523         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10524         ancestors with the same depths.
10525         Patch by Niels Moeller <nisse@lysator.liu.se>.
10526         (filter_doc): Don't crash if argp is NULL.
10527         * argp/Makefile (tests): Add tst-argp2.
10528         * argp/tst-argp2.c: New test.
10530         [BZ #4130]
10531         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10532         open_not_cancel_2.
10533         (updwtmp_file): Likewise.
10535         [BZ #4181]
10536         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10537         (inet6_opt_append): Don't check extlen is big enough if extbuf
10538         is NULL.
10539         (inet6_opt_finish): Likewise.
10540         * inet/Makefile (tests): Add test-inet6_opt.
10541         * inet/test-inet6_opt.c: New test.
10543         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10544         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10545         NLMSG_ERR.  Instead use a page sized buffer.
10546         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10547         buffer.
10549 2007-03-14  Richard Henderson  <rth@redhat.com>
10551         * sysdeps/alpha/fpu/s_llround.c: New file.
10552         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10553         * sysdeps/alpha/fpu/s_lround.c: New file.
10554         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10555         * sysdeps/alpha/fpu/s_round.c: New file.
10556         * sysdeps/alpha/fpu/s_roundf.c: New file.
10557         * sysdeps/alpha/fpu/s_trunc.c: New file.
10558         * sysdeps/alpha/fpu/s_truncf.c: New file.
10560         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10561         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10562         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10563         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10564         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10565         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10567         * sysdeps/alpha/fpu/s_fmax.S: New file.
10568         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10569         * sysdeps/alpha/fpu/s_fmin.S: New file.
10570         * sysdeps/alpha/fpu/s_fminf.S: New file.
10571         * sysdeps/alpha/fpu/s_isnan.c: New file.
10572         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10573         * sysdeps/alpha/fpu/s_llrint.c: New file.
10574         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10575         * sysdeps/alpha/fpu/s_lrint.c: New file.
10576         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10577         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10578         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10580         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10581         (__fdimf, fdimf, __fdim, fdim): Remove.
10582         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10583         (__isnanf, __isnan, __isnanl): New.
10585 2007-03-13  Richard Henderson  <rth@redhat.com>
10587         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10589 2007-03-13  Richard Henderson  <rth@redhat.com>
10591         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10592         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10593         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10594         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10595         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10596         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10598 2007-03-13  Richard Henderson  <rth@redhat.com>
10600         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10601         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10602         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10603         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10604         Move to dl-auxv.h; initialize instead of extern weak.
10605         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10606         weak symbol.
10607         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10608         Extern instead of initialized.
10610 2007-03-13  Richard Henderson  <rth@redhat.com>
10612         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10613         __sigsuspend_nocancel.
10615 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10617         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10618         172.16/12 address range.
10620 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10622         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10623         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10624         message.
10626 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10628         [BZ #4069]
10629         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10630         earlier.
10631         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10633         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10634         for x qNaN and y either +-inf or non-integer value.
10635         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10636         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10637         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10639 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10641         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10642         from sysdep_headers.
10644 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10646         * time/tzfile.c (find_transition): Instead of a linear search try to
10647         guess the transition index, use a linear search if the result is at
10648         most 10 transitions away from the guess or binary search otherwise.
10650 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10652         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10653         memory reallocation.
10655 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10657         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10658         and fix some typos.
10659         Optimize use of TOLOWER.
10661         [BZ #3325]
10662         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10663         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10664         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10666         [BZ #3458]
10667         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10668         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10670         [BZ #4076]
10671         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10672         (open_dir_stream): Likewise.
10673         * io/Makefile (tests): Add bug-ftw5.
10674         * io/bug-ftw5.c: New file.
10676         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10677         * nscd/servicescache.c (cache_addserv): Likewise.
10679         * nscd/grpcache.c (cache_addgr): In case a record changed on
10680         refresh, adjust key_copy.
10682         [BZ #4074]
10683         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10684         refresh, adjust key_copy.
10686         [BZ #4070]
10687         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10688         special cases.
10689         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10691 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10693         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10694         optimization.
10696         * stdio-common/vfscanf.c: Small cleanups throughout.
10698 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10700         [BZ #3325]
10701         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10702         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10703         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10704         Patch by Jared Casper <jaredcasper@gmail.com>.
10706         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10707         * sysdeps/unix/opendir.c: Likewise.
10708         * sysdeps/unix/readdir.c: Likewise.
10710         [BZ #2211]
10711         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10712         point numbers.
10713         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10715         * stdio-common/vfscanf.c: Fix problems in width accounting.
10716         * stdio-common/tst-sscanf.c (double_tests): New tests.
10717         (main): Hook them up.
10719         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10720         More simplifications of floating-point reader.
10722         * stdio-common/Makefile (tests): Add tst-swscanf.
10723         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10724         testing.
10725         * stdio-common/tst-swscanf.c: New file.
10727 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10729         [BZ #2633]
10730         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10731         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10732         Remove using for __jmp_buf_tag.
10733         * locale/locale.h (struct lconv): Also define in std namespace.
10734         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10736         [BZ #3842]
10737         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10738         using __libc_enable_secure.
10740         [BZ #3818]
10741         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10743         [BZ #3745]
10744         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10745         of names for ellipsises.
10747         [BZ #3348]
10748         * malloc/memusage.sh: Cleanups.
10749         * debug/xtrace.sh: Quoting and trap changes.
10751 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10753         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10755         * locale/iso-3166.def: Update entry for Serbia.
10756         * locale/iso-4217.def: Define RSD, remove CSD.
10758         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10759         and 64-bit operations.
10761         [BZ #4040]
10762         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10763         16-bit operations.
10765         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10766         of writev.
10768 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10770         [BZ #3991]
10771         * assert/assert.h (assert): Simplify.
10772         (assert_perror): Likewise.
10773         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10775         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10776         reqdata.
10778         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10779         change: don't pass NULL in place of an integer.
10781 2007-02-02  Bruno Haible  <bruno@clisp.org>
10783         [BZ #3954]
10784         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10785         Add mapping for U+327E.
10786         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10787         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10788         mapping of 0xD9 0xE8.
10789         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10790         mapping of U+327E.
10791         Reported by Jungshik Shin <jungshik@google.com>.
10793         [BZ #3955]
10794         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10795         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10796         Reported by Jungshik Shin <jungshik@google.com>.
10798 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10800         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10801         byte variants.
10803         [BZ #4040]
10804         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10805         byte variants.  Patch mostly be tom@tommay.net.
10807 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10809         [BZ #3996]
10810         * posix/glob.c (attribute_hidden): Define if not defined.
10811         (glob): Unescape dirname, filename or username when needed and not
10812         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10813         is NULL.  Handle unescaped [ in pattern without closing ].
10814         Don't pass GLOB_CHECK down to recursive glob for directories.
10815         (__glob_pattern_type): New function.
10816         (__glob_pattern_p): Implement using __glob_pattern_type.
10817         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10818         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10819         Remove unreachable code.
10820         * posix/globtest.sh: Add a couple of new tests.
10822 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
10824         * po/ru.po: Update from translation team.
10826 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
10828         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10829         to the list of i486+ CPUs.
10830         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10832 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
10834         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10835         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10836         references.
10838 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
10840         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10842         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10843         * resolv/res_mkquery.c: Define __res_nopt.
10844         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10845         try adding EDNS0 record.
10846         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10847         EDNS0 record was send make sure we don't try it again.
10848         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10849         * include/resolv.h: Declare __res_nopt.
10851 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
10853         [BZ #3944]
10854         * time/strptime_l.c (__strptime_internal): Set have_mon for
10855         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
10856         have been computed from tm_yday and tm_year.  Don't crash
10857         in day_of_the_week or day_of_the_year if not have_mon
10858         and tm_mon contains bogus value.
10859         * time/Makefile (tests): Add tst-strptime3.
10860         * time/tst-strptime3.c: New test.
10862 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10864         [BZ #3957]
10865         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10866         bit for RE_HAT_LISTS_NOT_NEWLINE.
10867         (build_charclass_op): Remove bogus comment.
10868         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10869         * posix/bug-regex27.c: New test.
10870         * posix/bug-regex28.c: New test.
10872 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
10874         * po/sv.po: Update from translation team.
10876 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
10878         * nscd/nscd_helper.c (open_socket): Minor size optimization.
10880 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10882         * include/locale.h (__uselocale): Add libc_hidden_proto.
10883         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10885         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10886         gettimeofday.
10888 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
10890         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10891         returning.
10892         (PTR_DEMANGLE): Real definition now that it's not the same as
10893         PRT_MANGLE anymore.
10894         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10896         * string/strerror_l.c: New file.
10897         * string/Makefile (routines): Add strerror_l.
10898         * string/string.h: Declare strerror_l.
10899         * string/Versions: Export strerror_l for GLIBC_2.6.
10901 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
10903         * nscd/nscd_helper.c (open_socket): Now takes request type and key
10904         as parameter.  Construct request record.  Try sending request
10905         before the first poll use, it usually succeeds.  Adjust all
10906         callers.
10907         * nscd/nscd-client.h: Define MAXKEYLEN.
10908         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10910 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
10912         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10913         from return value.
10914         * nscd/nscd_helper.c: Include string.h.
10915         (__nscd_cache_search): Remove const qualifier from return value.
10916         On strict alignment architectures check hash entry and data head
10917         alignment.
10918         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10919         mmapped data during GC cycle contains garbage.  If
10920         __nscd_drop_map_ref fails, decrement mapped->counter when returning
10921         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10922         dropped to 0.
10923         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10924         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10925         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10926         * nscd/nscd_getai.c (__nscd_getai): Likewise.
10927         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10929 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
10931         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10933 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
10935         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10936         names not numbers in cfi_*.
10938 2007-01-26  Andreas Jaeger  <aj@suse.de>
10940         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10941         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10942         Correct values of PER_HPUX and PER_OSF4.
10944 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
10946         * elf/dl-minimal.c: Undefine _itoa first.
10947         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10948         * malloc/mtrace.c: Revert last change.
10949         * posix/wordexp.c: Likewise.
10951 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10953         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10954         and __geode__ to the list of i486+ CPUs.
10955         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10957 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
10959         * stdio-common/_itoa.c: Include <limits.h>.
10960         * stdio-common/_itowa.c: Likewise.
10962 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
10964         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10965         platforms.
10966         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10967         64-bit platforms.
10968         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10969         possible.
10970         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10971         if possible.
10973         [BZ #3902]
10974         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10975         * stdio-common/Makefile (tests): Add bug17.
10976         * stdio-common/bug17.c: New file.
10978 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
10980         * iconvdata/brf.c: New file.
10981         * iconvdata/testdata/BRF: New file.
10982         * iconvdata/testdata/BRF..UTF8: New file.
10983         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10984         * iconvdata/Makefile: Add rules to build BRF.
10985         * iconvdata/TESTS: Add BRF entry.
10986         * iconvdata/gconv-modules: Likewise.
10987         * iconvdata/tst-tables.sh: Likewise.
10989 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
10991         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10992         type `long long int', not `long int'.
10993         (wcstoq): Likewise.
10995 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
10997         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10998         of values on 64-bit platforms which are too large.
11000 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11001             Joe Kerian  <jkerian@us.us.ibm.com>
11003         [BZ #2749]
11004         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11005         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11006         (__copysignl): Use signbit() for comparison.
11007         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11008         SET_LDOUBLE_WORDS64.
11010         [BZ #2423, #2749]
11011         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11012         (__ceill): Remove calls to fegetround(), fesetround().
11013         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11014         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11015         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11017 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11019         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11021         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11023 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11025         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11026         demangle pointer.
11027         * csu/libc-start.c: Likewise.
11029 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11031         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11032         really work anyway.
11034 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11036         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11037         users.
11038         (handle_request): Remove unnecessary tests.
11040         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11042 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11044         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11045         workbits in semi-raw fraction.
11047         * math/test-misc.c: Add new tests.
11049 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11051         * math/basic-test.c: Include test-skeleton.c.
11052         (TEST_TRUNC): Define.
11053         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11054         (main): Rename to ...
11055         (do_test): ...this.  Run new tests.
11056         (TEST_FUNCTION): Define.
11058 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11059             Joe Kerian  <jkerian@us.us.ibm.com>
11061         [BZ #2749]
11062         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11063         handling for high words.
11064         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11065         and overflow for infinity.
11067 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11069         * nscd/connections.c (handle_request): Add a __builtin_expect.
11071         * nscd/connections.c (serv2db): Change type into structure which
11072         also says whether this is a request for data.  Renamed to
11073         servinfo.  All users changed.
11074         (handle_request): Much simpler test whether we should search the cache.
11076         * nscd/connections.c (handle_request): Fix thinko in selinux test
11077         invocation.
11079         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11080         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11081         it before getting dl_load_lock and then relock.
11082         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11083         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11084         case we unlocked the scope.
11085         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11086         _dl_lookup_symbol_x in case we locked the scope.
11087         (_dl_profile_fixup): Likewise.
11088         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11089         set DL_LOOKUP_SCOPE_LOCK.
11091 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11093         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11094         CFLAGS-getsrvbynpt_r.c.
11095         * nscd/getsrvbynm_r.c: New file.
11096         * nscd/getsrvbypt_r.c: New file.
11097         * nscd/nscd_getserv_r.c: New file.
11098         * nscd/servicescache.c: New file.
11099         * nscd/Makefile (routines): Add nscd_getserv_r.
11100         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11101         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11102         CFLAGS-getsrvbypt_r.c.
11103         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11104         table.  Add entries for services database.
11105         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11106         services database.
11107         (dbs): Add .reset_res and servdb initialization.
11108         (serv2db): Add entries for services database.
11109         (verify_persistent_db): Accept dbnr == servdb.
11110         (invalidate_cache): Rewrite database name recognition to use a table.
11111         Call res_init() if .reset_res is set for database.
11112         (handle_request): Add code to handle services database.
11113         * nscd/gai.c: Don't define __getservbyname_r.
11114         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11115         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11116         (serv_response_header): Define.
11117         (struct datahead): Add serv_response_header member.
11118         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11119         using table.
11120         * nscd/nscd.conf: Add entries for services database.
11121         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11122         Declare serv_iov_disabled.
11123         Declare addservbyname, readdservbyname, addservbyport, and
11124         readdservbyport.
11125         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11126         (find_db): Fix error message.
11127         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11128         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11129         * nscd/selinux.c (perms): Add entries for services database.
11130         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11131         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11133         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11134         * nscd/hstcache.c: Likewise.
11135         * nscd/pwdcache.c: Likewise.
11137         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11138         computation of keylen.
11140         * include/string.h: Only redefine strndupa if this is really for
11141         libc code.
11143 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11145         * nscd/nscd_gethst_r.c: Minor cleanups.
11147         * nscd/connections.c (handle_request): Check selinux permissions
11148         for all non-admin commands.
11150         * sysdeps/i386/i486/bits/atomic.h: Define
11151         atomic_compare_and_exchange_val_acq,
11152         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11153         using __sync_* built-ins for gcc >= 4.1.
11154         * sysdeps/x86_64/bits/atomic.h: Likewise.
11156         [BZ #3840]
11157         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11158         and .oS.d files.
11160 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11162         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11163         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11164         (do_test): Check errno and exit(0) if ENOSYS.
11166 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11168         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11169         thousands separators.
11170         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11171         * stdlib/tst-strtod4.c: New test.
11173         [BZ #3855]
11174         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11175         hexadecimal digit should accept just the initial 0.
11176         * stdlib/tst-strtod2.c (tests): New variable.
11177         (do_test): Run several tests rather than just one.
11179 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11181         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11182         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11184 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11186         * io/fts.c: Make sure fts_cur is always valid after return from
11187         fts_read.
11188         Patch by Miloslav Trmac <mitr@redhat.com>.
11190 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11192         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11193         (R_MIPS_NUM): Bump by 1.
11195 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11197         * posix/execvp.c: Include alloca.h.
11198         (allocate_scripts_argv): Renamed to...
11199         (scripts_argv): ... this.  Don't allocate buffer here nor count
11200         arguments.
11201         (execvp): Use alloca if possible.
11202         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11203         * posix/tst-vfork3.c: New test.
11205 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11207         * string/Makefile (tst-strxfrm2-ENV): Define.
11208         * stdlib/Makefile (tst-strtod3-ENV): Define.
11210 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11212         * posix/getconf.c: Update copyright year.
11213         * nss/getent.c: Likewise.
11214         * iconv/iconvconfig.c: Likewise.
11215         * iconv/iconv_prog.c: Likewise.
11216         * elf/ldconfig.c: Likewise.
11217         * catgets/gencat.c: Likewise.
11218         * csu/version.c: Likewise.
11219         * elf/ldd.bash.in: Likewise.
11220         * elf/sprof.c (print_version): Likewise.
11221         * locale/programs/locale.c: Likewise.
11222         * locale/programs/localedef.c: Likewise.
11223         * nscd/nscd.c (print_version): Likewise.
11224         * debug/xtrace.sh: Likewise.
11225         * malloc/memusage.sh: Likewise.
11226         * malloc/mtrace.pl: Likewise.
11227         * debug/catchsegv.sh: Likewise.
11229 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11231         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11232         attempts.
11234 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11236         * posix/wordexp.c: Remove some unnecessary tests.
11238 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11240         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11241         blacklist the group till after we look it up.
11243 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11245         * include/atomic.h (atomic_forced_read): New macro.
11247 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11249         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11251 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11253         * nss/getXXbyYY_r.c: Include atomic.h.
11254         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11255         add atomic_write_barrier () in between.
11257         * stdlib/Makefile (tests): Add tst-makecontext.
11258         * stdlib/tst-makecontext.c: New test.
11260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11261         (__makecontext): Don't realign uc_mcontext.uc_regs.
11263 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11265         * elf/dl-support.c: Include dl-procinfo.h.
11266         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11267         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11268         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11269         Define.
11270         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11271         hardcoded constants.
11272         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11273         PPC_PLATFORM_* macros for array designators.
11275 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11277         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11278         names to the beginning.
11279         (_dl_powerpc_platforms): Add "power6x".
11280         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11281         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11282         (_DL_PLATFORMS_COUNT): Increase.
11283         (_dl_string_platform): Handle power6x case.
11284         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11285         PPC_FEATURE_POWER6_EXT): Define.
11286         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11288 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11290         [BZ #3747]
11291         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11292         [-2^31 .. 2^31) range.
11293         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11294         targets.
11295         * stdlib/tst-rand48-2.c: New test.
11296         * stdlib/Makefile (tests): Add tst-rand48-2.
11298 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11300         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11302 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11304         * misc/tst-pselect.c (do_test): Make sure the helper process is
11305         terminating when the test is aborted.
11307 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11309         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11310         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11311         Handle relatime mount option.
11313         [BZ #2337]
11314         * libio/Makefile (tests): Add tst-setvbuf1.
11315         * libio/tst-setvbuf1.c: New file.
11317 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11319         [BZ #2337]
11320         * libio/genops.c (__uflow): Fix a typo.
11321         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11322         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11323         the narrow buffer size.
11325 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11327         [BZ #2337]
11328         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11329         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11330         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11331         in _flags.
11332         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11333         _IO_wstr_finish): Likewise.
11334         * libio/wmemstream.c (open_wmemstream): Likewise.
11335         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11336         even for wide streams.
11338 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11341         kernel-features.h.
11343 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11345         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11346         separators also if no non-zero digits found.
11347         * stdlib/Makefile (tests): Add tst-strtod3.
11349 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11351         [BZ #3632]
11352         * include/features.h: Fix comment about default value for
11353         _POSIX_C_SOURCE.
11355         [BZ #3664]
11356         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11357         empty parsed strings.
11358         * stdlib/Makefile (tests): Add tst-strtod2.
11359         * stdlib/tst-strtod2.c: New file.
11361         [BZ #3673]
11362         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11363         computation.
11364         * stdlib/Makefile (tests): Add tst-atof2.
11365         * stdlib/tst-atof2.c: New file.
11367         [BZ #3674]
11368         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11369         correctly if removing trailing zero of hex-float.
11370         * stdlib/Makefile (tests): Add tst-atof1.
11371         * stdlib/tst-atof1.c: New file.
11373 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11375         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11376         Start searching for next comma at p rather than rest.
11377         * misc/Makefile (tests): Add tst-mntent2.
11378         * misc/tst-mntent2.c: New test.
11380         * misc/getusershell.c (initshells): Check for integer overflows.
11381         Make strings buffer one bigger as fgets always succeeds when second
11382         argument is 1.  Don't use calloc for shells array.  Disallow
11383         / as shell.
11385 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11387         * malloc/memusage.c: Handle realloc with new size of zero and
11388         non-NULL pointer correctly.
11389         (me): Really write first record twice.
11390         (struct entry): Make format bi-arch safe.
11391         (dest): Write out more realloc statistics.
11392         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11394 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11396         * nis/nis_subr.c (nis_getnames): Revert last change.
11398 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11400         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11401         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11402         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11403         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11404         ENOTTY.
11405         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11406         * io/tst-ttyname_r.c: New test.
11408 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11410         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11412 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11414         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11415         jump table entries.
11417 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11419         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11420         `clone' function to ensure proper unwinding stop of gdb.
11421         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11423 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11425         * nscd/nscd.init: Remove obsolete and commented-out -S option
11426         handling.
11428 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11430         [BZ #3514]
11431         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11433         [BZ #3515]
11434         * manual/string.texi (strtok): Remove duplicate paragraph.
11436 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11438         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11439         libgcc not supporting `rflags' unwinding (register # >= 17).
11441 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11443         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11444         succeeded.
11446 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11447             Jakub Jelinek  <jakub@redhat.com>
11448             Jan Kratochvil  <jan.kratochvil@redhat.com>
11450         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11451         unwind information.
11452         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11453         'restore_rt' even in the 'signal' directory.
11454         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11456 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11458         [BZ #3559]
11459         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11460         malloc crashed.  Don't allocate memory unnecessarily in each
11461         loop.
11463 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11465         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11467 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11469         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11471 2006-11-18  Bruno Haible  <bruno@clisp.org>
11473         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11474         __sysconf only after having tried to call getgroups32.
11476 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11478         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11479         addresses for IPv4 queries if they can be mapped.
11481 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11483         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11484         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11485         (signmask): Add .size directive.
11486         (othermask): Add .type directive.
11488 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11490         * po/nl.po: Update from translation team.
11492         * timezone/zdump.c: Redo fix for BZ #3137.
11494 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11496         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11497         to first_unused after parsing :include: file.
11499 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11501         * timezone/africa: Update from tzdata2006o.
11502         * timezone/antarctica: Likewise.
11503         * timezone/asia: Likewise.
11504         * timezone/australasia: Likewise.
11505         * timezone/backward: Likewise.
11506         * timezone/europe: Likewise.
11507         * timezone/iso3166.tab: Likewise.
11508         * timezone/northamerica: Likewise.
11509         * timezone/southamerica: Likewise.
11510         * timezone/zone.tab: Likewise.
11512         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11513         on machines with 64-bit time_t.
11515         * timezone/checktab.awk: Update from tzcode2006o.
11516         * timezone/ialloc.c: Likewise.
11517         * timezone/private.h: Likewise.
11518         * timezone/scheck.c: Likewise.
11519         * timezone/tzfile.h: Likewise.
11520         * timezone/tzselect.ksh: Likewise.
11521         * timezone/zdump.c: Likewise.
11522         * timezone/zic.c: Likewise.
11524         [BZ #3483]
11525         * elf/ldconfig.c (main): Call setlocale and textdomain.
11526         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11528         [BZ #3480]
11529         * manual/argp.texi: Fix typos.
11530         * manual/charset.texi: Likewise.
11531         * manual/errno.texi: Likewise.
11532         * manual/filesys.texi: Likewise.
11533         * manual/lang.texi: Likewise.
11534         * manual/maint.texi: Likewise.
11535         * manual/memory.texi: Likewise.
11536         * manual/message.texi: Likewise.
11537         * manual/resource.texi: Likewise.
11538         * manual/search.texi: Likewise.
11539         * manual/signal.texi: Likewise.
11540         * manual/startup.texi: Likewise.
11541         * manual/stdio.texi: Likewise.
11542         * manual/sysinfo.texi: Likewise.
11543         * manual/syslog.texi: Likewise.
11544         * manual/time.texi: Likewise.
11545         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11547         [BZ #3465]
11548         * sunrpc/clnt_raw.c: Minimal message improvements.
11549         * sunrpc/pm_getmaps.c: Likewise.
11550         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11551         * nis/nis_print_group_entry.c: Likewise.
11552         * locale/programs/repertoire.c: Likewise.
11553         * locale/programs/charmap.c: Likewise.
11554         * malloc/memusage.sh: Likewise.
11555         * elf/dl-deps.c: Likewise.
11556         * locale/programs/ld-collate.c: Likewise.
11557         * libio/vswprintf.c: Likewise.
11558         * malloc/memusagestat.c: Likewise.
11559         * sunrpc/auth_unix.c: Likewise.
11560         * sunrpc/rpc_main.c: Likewise.
11561         * nscd/cache.c: Likewise.
11562         * locale/programs/repertoire.c: Unify output messages.
11563         * locale/programs/charmap.c: Likewise.
11564         * locale/programs/ld-ctype.c: Likewise.
11565         * locale/programs/ld-monetary.c: Likewise.
11566         * locale/programs/ld-numeric.c: Likewise.
11567         * locale/programs/ld-time.c: Likewise.
11568         * elf/ldconfig.c: Likewise.
11569         * nscd/selinux.c: Likewise.
11570         * elf/cache.c: Likewise.
11571         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11573         [BZ #3451]
11574         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11575         change atomic.
11576         (ceil): Likewise.
11578 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11580         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11581         if N is one bigger than return value.
11582         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11583         and l1 last arguments, if buf is defined, verify the return value
11584         equals to strlen (buf) and verify no byte beyond passed length
11585         is modified.
11587 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11589         * po/sv.po: Update from translation team.
11591 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11593         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11594         noinline attribute.
11596 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11598         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11599         noinline attribute.
11601         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11602         Use __new_sys_siglist instead of _sys_siglist_internal as
11603         second macro argument.
11604         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11605         strong_alias.
11607 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11609         [BZ #3493]
11610         * posix/unistd.h (sysconf): Remove const attribute.
11612         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11613         temporary or deprecated addresses.
11614         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11616         * string/Makefile (tests): Add tst-strxfrm2.
11617         * string/tst-strxfrm2.c: New file.
11619 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11621         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11622         rather than r->r_brk.
11624 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11626         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11627         optimization even if needed > n.
11629         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11630         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11631         return false, otherwise return true.
11632         (cache_rpath): Return decompose_rpath return value.
11634 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11636         * include/libc-symbols.h (declare_symbol): Rename to...
11637         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11638         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11639         .size directive.
11640         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11641         changes.
11642         * sysdeps/gnu/siglist.c: Likewise.
11644 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11646         * sysdeps/powerpc/fpu/bits/mathinline.h
11647         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11648         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11650 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11652         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11653         Update handling of cache descriptor 0x49 for new models.
11654         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11655         Likewise.
11657 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11659         * malloc/memusage.c (dest): Reset not_me back to false after
11660         printing statistics.
11662 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11664         * configure.in: Work around ld --help change and avoid -z relro
11665         test completely if the architecture doesn't care about security.
11667 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11669         * po/sv.po: Update from translation team.
11671 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11673         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11674         generate compatibility version.
11676 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11678         * configure.in: Relax -z relro requirement a bit.
11680         * po/sv.po: Update from translation team.
11682 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11684         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11685         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11686         * elf/dl-close.c (_dl_close_worker): Likewise.
11687         * elf/dl-open.c (_dl_open_worker): Likewise.
11688         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11690 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11692         * configure.in: Require assembler support for visibility, compiler
11693         support for visibility and aliases, linker support for various -z
11694         options.
11695         * Makeconfig: Remove conditional code which now is unnecessary.
11696         * config.h.in: Likewise.
11697         * config.make.in: Likewise.
11698         * dlfcn/Makefile: Likewise.
11699         * elf/Makefile: Likewise.
11700         * elf/dl-load.c: Likewise.
11701         * elf/rtld.c: Likewise.
11702         * include/libc-symbols.h: Likewise.
11703         * include/stdio.h: Likewise.
11704         * io/Makefile: Likewise.
11705         * io/fstat.c: Likewise.
11706         * io/fstat64.c: Likewise.
11707         * io/fstatat.c: Likewise.
11708         * io/fstatat64.c: Likewise.
11709         * io/lstat.c: Likewise.
11710         * io/lstat64.c: Likewise.
11711         * io/mknod.c: Likewise.
11712         * io/mknodat.c: Likewise.
11713         * io/stat.c: Likewise.
11714         * io/stat64.c: Likewise.
11715         * libio/stdio.c: Likewise.
11716         * nscd/Makefile: Likewise.
11717         * stdlib/Makefile: Likewise.
11718         * stdlib/atexit.c: Likewise.
11719         * sysdeps/generic/ldsodefs.h: Likewise.
11720         * sysdeps/i386/dl-machine.h: Likewise.
11721         * sysdeps/i386/sysdep.h: Likewise.
11722         * sysdeps/i386/i686/memcmp.S: Likewise.
11723         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11724         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11725         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11727         * Makerules: USE_TLS support is now default.
11728         * tls.make.c: Likewise.
11729         * csu/Versions: Likewise.
11730         * csu/libc-start.c: Likewise.
11731         * csu/libc-tls.c: Likewise.
11732         * csu/version.c: Likewise.
11733         * dlfcn/dlinfo.c: Likewise.
11734         * elf/dl-addr.c: Likewise.
11735         * elf/dl-cache.c: Likewise.
11736         * elf/dl-close.c: Likewise.
11737         * elf/dl-iteratephdr.c: Likewise.
11738         * elf/dl-load.c: Likewise.
11739         * elf/dl-lookup.c: Likewise.
11740         * elf/dl-object.c: Likewise.
11741         * elf/dl-open.c: Likewise.
11742         * elf/dl-reloc.c: Likewise.
11743         * elf/dl-support.c: Likewise.
11744         * elf/dl-sym.c: Likewise.
11745         * elf/dl-sysdep.c: Likewise.
11746         * elf/dl-tls.c: Likewise.
11747         * elf/ldconfig.c: Likewise.
11748         * elf/rtld.c: Likewise.
11749         * elf/tst-tls-dlinfo.c: Likewise.
11750         * elf/tst-tls1.c: Likewise.
11751         * elf/tst-tls10.h: Likewise.
11752         * elf/tst-tls14.c: Likewise.
11753         * elf/tst-tls2.c: Likewise.
11754         * elf/tst-tls3.c: Likewise.
11755         * elf/tst-tls4.c: Likewise.
11756         * elf/tst-tls5.c: Likewise.
11757         * elf/tst-tls6.c: Likewise.
11758         * elf/tst-tls7.c: Likewise.
11759         * elf/tst-tls8.c: Likewise.
11760         * elf/tst-tls9.c: Likewise.
11761         * elf/tst-tlsmod1.c: Likewise.
11762         * elf/tst-tlsmod13.c: Likewise.
11763         * elf/tst-tlsmod13a.c: Likewise.
11764         * elf/tst-tlsmod14a.c: Likewise.
11765         * elf/tst-tlsmod2.c: Likewise.
11766         * elf/tst-tlsmod3.c: Likewise.
11767         * elf/tst-tlsmod4.c: Likewise.
11768         * elf/tst-tlsmod5.c: Likewise.
11769         * elf/tst-tlsmod6.c: Likewise.
11770         * include/errno.h: Likewise.
11771         * include/link.h: Likewise.
11772         * include/tls.h: Likewise.
11773         * locale/global-locale.c: Likewise.
11774         * locale/localeinfo.h: Likewise.
11775         * malloc/arena.c: Likewise.
11776         * malloc/hooks.c: Likewise.
11777         * malloc/malloc.c: Likewise.
11778         * resolv/Versions: Likewise.
11779         * sysdeps/alpha/dl-machine.h: Likewise.
11780         * sysdeps/alpha/libc-tls.c: Likewise.
11781         * sysdeps/generic/ldsodefs.h: Likewise.
11782         * sysdeps/generic/tls.h: Likewise.
11783         * sysdeps/i386/dl-machine.h: Likewise.
11784         * sysdeps/ia64/dl-machine.h: Likewise.
11785         * sysdeps/ia64/libc-tls.c: Likewise.
11786         * sysdeps/mach/hurd/fork.c: Likewise.
11787         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11788         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11789         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11790         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11791         * sysdeps/s390/libc-tls.c: Likewise.
11792         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11793         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11794         * sysdeps/sh/dl-machine.h: Likewise.
11795         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11796         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11797         * sysdeps/x86_64/dl-machine.h: Likewise.
11799         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11800         split out locking and parameter checking.
11801         (_dl_close): Call _dl_close_worker after locking and checking.
11802         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11803         _dl_close.
11804         * elf/Makefile: Add rules to build and run tst-thrlock.
11805         * elf/tst-thrlock.c:  New file.
11807         [BZ #3426]
11808         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11809         reality.
11811         [BZ #3429]
11812         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11813         we are sure we do not need it anymore for _dl_close.  Also move
11814         the asserts inside the lock region.
11815         Patch mostly by Suzuki <suzuki@in.ibm.com>.
11817 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
11819         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11820         argument.
11821         (_dl_lookup_symbol_x): Adjust caller.
11823         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11824         _ns_global_scope.
11825         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11827         * elf/dl-libc.c: Revert l_scope name changes.
11828         * elf/dl-load.c: Likewise.
11829         * elf/dl-object.c: Likewise.
11830         * elf/rtld.c: Likewise.
11831         * elf/dl-close.c (_dl_close): Likewise.
11832         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
11833         always use __rtld_mrlock_{change,done}.  Always free old scope list
11834         here if not l_scope_mem.
11835         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11836         change.  Never free scope list here.  Just __rtld_mrlock_lock before
11837         the lookup and __rtld_mrlock_unlock it after the lookup.
11838         * elf/dl-sym.c: Likewise.
11839         * include/link.h (struct r_scoperec): Remove.
11840         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11841         with l_scope_mem and l_scoperec_lock with l_scope_lock.
11843 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
11845         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11847 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11849         * configure.in: Disable building profile libraries by default.
11851 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11853         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11854         as signed longs, check for x_base + pos overflow.
11855         * sunrpc/Makefile (tests): Add tst-xdrmem2.
11856         * sunrpc/tst-xdrmem2.c: New test.
11858 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11860         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11861         _dl_lookup_symbol_x code.
11863 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11865         * elf/dl-runtime.c: Include sysdep-cancel.h.
11866         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11867         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
11868         instead of catomic_* macros.
11869         * elf/dl-sym.c: Include sysdep-cancel.h.
11870         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11871         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11872         * elf/dl-close.c: Include sysdep-cancel.h.
11873         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11874         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11875         * elf/dl-open.c: Include sysdep-cancel.h.
11876         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11877         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11879 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11881         [BZ #3313]
11882         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11883         fastbin rather than end of fastbin array.
11885 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11887         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11888         body macro.
11889         * sysdeps/x86_64/bits/atomic.h
11890         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11891         (catomic_decrement): Use correct body macro.
11893 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11895         * include/atomic.h: Add a unique prefix to all local variables
11896         in macros.
11897         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11899 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
11901         [BZ #3369]
11902         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11903         and 7.
11905 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
11907         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11909 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
11911         [BZ #3313]
11912         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11913         determine highest fast bin to consolidate, always look into all of
11914         them.
11915         (do_check_malloc_state): Only require for empty bins for large
11916         sizes in main arena.
11918         * libio/stdio.h: Add more __wur attributes.
11920         * elf/dl-minimal.c (realloc): Optimize last patch.
11922 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
11924         [BZ #3352]
11925         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11926         and use memcpy() if it does.
11928 2006-11-12  Andreas Jaeger  <aj@suse.de>
11930         [BZ #2510]
11931         * manual/search.texi (Hash Search Function): Clarify.
11932         (Array Search Function): Clarify.
11934 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
11936         [BZ #2830]
11937         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11938         shifting.
11939         * math/atest-exp2.c (read_mpn_hex): Likewise.
11940         * math/atest-sincos.c (main): Likewise.
11942 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11944         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11945         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11946         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11947         version GLIBC_2.6.
11948         * Versions.def: Add GLIBC_2.6 for libc.
11950         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11952         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11954 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
11956         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11958         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11960         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11961         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11963 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11965         * include/atomic.c: Define catomic_* operations.
11966         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
11967         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11968         * malloc/memusage.c: Likewise.
11969         * gmon/mcount.c: Likewise.
11970         * elf/dl-close.c: Likewise.
11971         * elf/dl-open.c: Likewise.
11972         * elf/dl-profile.c: Likewise.
11973         * elf/dl-sym.c: Likewise.
11974         * elf/dl-runtime.c: Likewise.
11975         * elf/dl-fptr.c: Likewise.
11976         * resolv/res_libc.c: Likewise.
11978 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
11980         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11981         components which lack them.
11983         * nis/nis_subr.c (nis_getnames): Make sure that we always return
11984         at least one entry consisting of the parameter concatenated with
11985         the domain.
11987 2006-10-10  Roland McGrath  <roland@frob.com>
11989         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11990         * sysdeps/mach/hurd/futimes.c: Likewise.
11991         * sysdeps/mach/hurd/lutimes.c: Likewise.
11993 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
11994             Jakub Jelinek  <jakub@redhat.com>
11996         Implement reference counting of scope records.
11997         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11998         from the list in objects which remain.  Always allocate new scope
11999         record.
12000         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12001         don't resize, allocate a new one.
12002         * elf/dl-runtime.c: Update reference counters before using a scope
12003         array.
12004         * elf/dl-sym.c: Likewise.
12005         * elf/dl-libc.c: Adjust for l_scope name change.
12006         * elf/dl-load.c: Likewise.
12007         * elf/dl-object.c: Likewise.
12008         * elf/rtld.c: Likewise.
12009         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12010         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12011         Add l_scoperec_lock.
12012         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12013         * sysdeps/generic/rtld-lowlevel.h: New file.
12015         * include/atomic.h: Rename atomic_and to atomic_and_val and
12016         atomic_or to atomic_or_val.  Define new macros atomic_and and
12017         atomic_or which do not return values.
12018         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12019         Various cleanups.
12020         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12022         * po/sv.po: Update from translation team.
12024 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12026         * Versions.def: Add GLIBC_2.6 to libpthread.
12028         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12029         (versioned_symbol): Likewise.
12030         (compat_symbol): Likewise.
12032         * po/tr.po: Update from translation team.
12034 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12036         * nis/Banner: Removed.  It's been integral part forever and the
12037         author info is incomplete anyway.
12038         * libio/Banner: Likewise.
12040         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12041         code, make sure the nis_freeresult call doesn't crash and that the
12042         result is reported correctly.
12044 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12046         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12047         when callback is NULL.
12049         * nis/Versions (libnss_nisplus): Add
12050         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12051         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12052         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12053         _nss_create_tablename): Rename to...
12054         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12055         ... these.  No longer static.
12056         (internal_setgrent): Adjust users.
12057         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12058         Don't use locking around _nss_grp_create_tablename call.
12059         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12061 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12063         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12065 2006-10-06  Andreas Jaeger  <aj@suse.de>
12067         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12069 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12071         * po/pl.po: Update from translation team.
12073         * nscd/nscd.c (main): Fix typo in message.
12074         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12076 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12078         [BZ #3291]
12079         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12080         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12081         (__sigprocmask): Define.
12083 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12085         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12086         used.
12088 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12090         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12091         in oldtotal and newtotal calculation.
12092         * nscd/nscd-client.h (struct mapped_database): Add datasize
12093         field.
12094         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12095         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12096         increased.
12097         (__nscd_cache_search): Add checks to make sure we never reference
12098         data beyond the current mapping.
12100 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12102         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12103         variables const to avoid compiler warnings.
12105         * io/fts.c (fts_close): Remove redundant checks.
12106         (fts_build): Likewise.
12107         (fts_palloc): Likewise.
12109         * manual/message.texi (Advanced gettext functions,
12110         Using gettextized software): Fix typos.
12112 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12114         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12115         explain why there are no leaks.
12117 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12119         * libio/wmemstream.c: Include <wchar.h>.
12120         * libio/bug-wmemstream1.c: Likewise.
12121         * libio/tst-wmemstream1.c: Likewise.
12122         * libio/tst-wmemstream2.c: Likewise.
12124         * version.h (RELEASE): Bump to 2.5.
12125         * README: Regenerated.
12127         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12129         [BZ #3273]
12130         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12131         found no group members.
12132         Patch by Petr Baudis.
12134 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12136         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12137         assert bootstrap_map.l_tls_modid is zero.
12138         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12139         if USE___THREAD.
12141 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12143         * libio/stdio.h: Move open_wmemstream prototype to ...
12144         * wcsmbs/wchar.h: ... here.
12146 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12148         [BZ #3252]
12149         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12150         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12151         __{,l}chown to handle the rest.
12152         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12153         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12154         __{,l}chown to handle the rest.
12155         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12156         i386/fchownat.c.
12157         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12158         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12160         [BZ #3253]
12161         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12162         time, rather allocate increasingly bigger arrays of pointers, if
12163         possible with alloca, if too large with malloc.
12165 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12167         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12169         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12171 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12173         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12174         home addresses.
12175         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12176         IFA_F_HOMEADDRESS flag for interfaces.
12177         * include/ifaddrs.h (struct in6addrinfo): Define
12178         in6ai_homeaddress.
12180 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12182         [BZ #3225]
12183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12184         PTR_DEMANGLE3): Define.
12185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12186         PTR_DEMANGLE3): Likewise.
12187         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12188         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12189         Likewise.
12190         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12192 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12194         * po/libc.pot: Regenerated.
12195         * po/be.po: Updated.
12196         * po/ca.po: Likewise.
12197         * po/cs.po: Likewise.
12198         * po/da.po: Likewise.
12199         * po/de.po: Likewise.
12200         * po/el.po: Likewise.
12201         * po/en_GB.po: Likewise.
12202         * po/es.po: Likewise.
12203         * po/fi.po: Likewise.
12204         * po/fr.po: Likewise.
12205         * po/gl.po: Likewise.
12206         * po/hr.po: Likewise.
12207         * po/hu.po: Likewise.
12208         * po/ja.po: Likewise.
12209         * po/ko.po: Likewise.
12210         * po/nb.po: Likewise.
12211         * po/nl.po: Likewise.
12212         * po/pl.po: Likewise.
12213         * po/pt_BR.po: Likewise.
12214         * po/ru.po: Likewise.
12215         * po/rw.po: Likewise.
12216         * po/sk.po: Likewise.
12217         * po/sv.po: Likewise.
12218         * po/tr.po: Likewise.
12219         * po/zh_CN.po: Likewise.
12220         * po/zh_TW.po: Likewise.
12222         [BZ #3137]
12223         * iconv/iconv_prog.c (main): Fix spelling in error message.
12224         * iconv/iconvconfig.c (main): Likewise.
12225         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12226         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12227         * locale/programs/localedef.c (main): Likewise.
12228         * locale/programs/repertoire.c (repertoire_read): Likewise.
12229         * timezone/zdump.c (main): Likewise.
12230         * nscd/connections.c (handle_request): Fix spelling in log message.
12231         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12233 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12235         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12236         interfaces.
12238 2006-09-20  Andreas Jaeger  <aj@suse.de>
12240         * math/libm-test.inc (lrint_test_upward): Fix typo.
12242 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12244         [BZ #2592]
12245         * math/libm-test.inc (lrint_test_tonearest): New function.
12246         (lrint_test_towardzero): New function.
12247         (lrint_test_downward): New function.
12248         (lrint_test_upward): New function.
12249         (main): Run these new tests.
12250         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12251         of values near to 0.
12252         (two52): Use double not long double.
12253         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12254         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12255         (two23): Use float not double.
12256         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12257         (two23): Use float not double.
12258         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12259         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12260         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12261         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12263 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12265         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12266         Cast sp to unsigned long to avoid compiler warning.
12267         Use __makecontext_ret function instead of a trampoline on the stack.
12268         (__makecontext_ret): New function.
12269         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12271 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12273         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12274         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12275         bits.
12277 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12279         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12280         sure no reference to the unloaded map's search list remains in the
12281         dependency's scope.
12283 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12285         * elf/Makefile: Add rules to build and run unload7 test.
12286         * elf/unload7.c: New test.
12287         * elf/unload7mod1.c: New file.
12288         * elf/unload7mod2.c: New file.
12290 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12292         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12293         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12294         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12295         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12296         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12297         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12298         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12299         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12300         PTRACE_GETEVENTMSG): Likewise.
12301         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12302         values.
12304 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12306         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12307         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12308         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12309         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12311 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12313         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12314         write '\0' to the fd.
12315         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12316         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12317         Change regs to unsigned long pointer from unsigned int, fix fscr
12318         offset.
12320 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12322         * io/Makefile (CFLAGS-fstatat.c): Set.
12323         (CFLAGS-fstatat64.c): Likewise.
12324         (CFLAGS-mknodat.c): Likewise.
12326         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12327         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12328         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12329         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12331 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12332             Steven Munroe  <sjmunroe@us.ibm.com>
12334         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12335         names to the beginning.  Rename "cell" to "cellbe".
12336         (_dl_powerpc_platforms): New.
12337         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12338         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12339         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12340         (_DL_HWCAP_PLATFORM): Define to new mask.
12341         (_dl_platform_string, _dl_string_platform): New functions.
12342         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12343         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12345 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12347         [BZ #2526]
12348         * README.libm: Fix a thinko in sqrt algorithm description.
12350         [BZ #3143]
12351         * manual/string.texi (argz_delete): Fix prototype.
12352         Patch by <alpt@freaknet.org>.
12354 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12356         [BZ #3138]
12357         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12358         * io/tst-fcntl.c (do_prepare): Likewise.
12359         * posix/tst-exec.c (do_prepare): Likewise.
12360         * posix/tst-preadwrite.c (do_prepare): Likewise.
12361         * posix/tst-spawn.c (do_prepare): Likewise.
12362         * posix/tst-truncate.c (do_prepare): Likewise.
12363         * rt/tst-aio.c (do_prepare): Likewise.
12364         * rt/tst-aio64.c (do_prepare): Likewise.
12365         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12366         size_t.
12368 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12370         [BZ #2821]
12371         * time/mktime.c (guess_time_tm): Fix overflow detection.
12372         * time/Makefile (tests): Add bug-mktime1.
12373         * time/bug-mktime1.c: New file.
12375         [BZ #3189, #3188]
12376         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12377         (mremap): Likewise.
12379 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12381         [BZ #1006]
12382         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12383         Ensure relocation doesn't clobber any bits outside of the
12384         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12385         R_SPARC_HI22 and R_SPARC_H44.
12387         [BZ #2775]
12388         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12389         (long) (MINSIZE + nb - old_size) is positive.
12391         * malloc/arena.c (grow_heap): When growing bail even if new_size
12392         is negative.
12394         [BZ #3155]
12395         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12396         stack below r1.
12398 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12400         * posix/regex_internal.c (re_string_reconstruct): Handle
12401         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12402         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12403         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12404         re_string_context_at.
12405         * posix/Makefile: Add rules to build and run bug-regex26 test.
12406         * posix/bug-regex26.c: New test.
12408         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12409         rather than col_sym_free.  Move seqp declaration earlier.
12411         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12413 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12415         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12416         decl before first goto out.
12418 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12420         * Makerules (shlib.lds): If have-hash-style, put .hash section
12421         at the end of the RO segment.
12423 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12425         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12426         style hash table format is used.
12428 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12430         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12431         randomization rather than before.
12432         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12434 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12436         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12438         * malloc/malloc.c (_int_malloc): Use full list insert and not
12439         shortcut which assumes the list is empty for large requests
12440         too.
12442         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12444 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12446         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12447         and offout arguments to the prototype.
12448         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12449         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12450         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12451         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12452         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12453         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12454         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12455         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12457 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12459         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12461         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12462         dlopen parameters.
12464 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12466         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12467         only if herrno is NETDB_INTERNAL.  Handle errors other than
12468         ERANGE outside of the loops, handle TRY_AGAIN.
12470         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12471         if other's ctype category was missing.
12472         * locale/programs/ld-collate.c (collate_read): Return if
12473         copy_locale's collate category is missing.
12475 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12477         [BZ #2684]
12478         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12479         arenas if allocation failed.
12480         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12482 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12484         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12485         waste bins[0..1].
12486         (malloc_state): Reduce bins size by 2.
12487         (_int_malloc): Fix test for large enough buffer for early termination.
12488         When no unsorted block matches perfectly and an exiting block has
12489         to be split, use full list insert and not shortcut which assumes
12490         the list is empty.
12492         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12493         failure.
12495 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12497         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12498         do anything.
12500         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12501         symbol require exact match (these are PLTs).
12502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12503         (_dl_ppc64_addr_sym_match): Likewise.
12505         [BZ #2683]
12506         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12507         If symbol has a value use it.
12508         * elf/tst-dladdr1.c: New file.
12509         * elf/Makefile: Add rules to build and run tst-addr1.
12511 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12513         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12514         keeps failing and heap growth or new heap creation isn't
12515         successful either.
12516         * malloc/tst-malloc.c (main): Add new tests.
12518 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12520         [BZ #2734]
12521         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12522         as in the x86-64 code to use bswap.
12524 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12526         [BZ #2680]
12527         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12528         __USE_UNIX98.
12529         * posix/bits/unistd.h: Likewise.
12531 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12533         [BZ #2751]
12534         * string/strchr.c: Add cast to avoid warning.
12536 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12538         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12539         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12540         limit is needed to avoid the exploding of the address space
12541         requirement for secondary heaps.
12542         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12543         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12545 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12547         [BZ #3018]
12548         * Makerules (depfiles): Handle extra-test-objs the same as
12549         extra-objs.
12550         (common-mostlyclean): Likewise.
12551         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12552         instead.
12553         * elf/Makefile (extra-objs): Likewise.
12554         * stdlib/Makefile (extra-objs): Likewise.
12556 2006-08-14  Eric Blake  <ebb9@byu.net>
12558         [BZ #3044]
12559         * misc/error.h: Assume C89 or better.
12560         * misc/error.c: Likewise.
12562 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12564         [BZ #3040]
12565         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12566         __ASSUME_ATFCTS is defined.
12568 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12570         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12571         to sort in each call.
12573         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12574         is empty simply return and use next service.
12575         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12577         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12578         tells us when not finding a charmap file is an error.
12579         * locale/programs/charmap.h: Adjust charmap_read prototype.
12580         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12581         cannot find a charmap.
12582         * locale/programs/localedef.c (main): Adjust charmap_read call.
12584 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12586         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12587         sysdeps/posix/pause.c implementation instead.
12589 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12591         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12592         to EPERM.
12594 2006-08-13  Andreas Schwab  <schwab@suse.de>
12596         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12597         Don't clobber caller's LRSAVE.
12598         (_dl_prof_resolve): Likewise.
12600 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12602         [BZ #1996]
12603         * libio/memstream.c (open_memstream): Allocate initial buffer with
12604         calloc.
12605         * libio/wmemstream.c (open_wmemstream): Likewise.
12606         * libio/strops.c: Pretty printing.
12607         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12608         (enlarge_userbuf): New function.
12609         (_IO_str_seekoff): Call it if seek position is larger than current
12610         buffer.
12611         * libio/wstrops.c: Likewise.
12612         * libio/vasprintf.c: Add comment as to why we do not have to use
12613         calloc instead of malloc to allocate initial buffer.
12614         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12615         * libio/bug-memstream1.c: New file.
12616         * libio/bug-wmemstream1.c: New file.
12618 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12620         * libio/wstrops.c: Remove dead macro definitions and comments.
12621         * libio/strops.c: Likewise.
12623         [BZ #2764]
12624         * login/utmpname.c (__utmpname): Remove unnecessary test.
12626 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12628         [BZ #2832]
12629         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12630         0s from integers.
12632 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12634         [BZ #2987]
12635         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12636         for CPU clocks.
12637         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12638         setting of CPU clocks.
12640 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12642         [BZ #2841]
12643         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12644         since C99 requires the result to promote to 'int' when uint_least8_t
12645         and uint_least16_t promote to 'int'.
12647 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12649         [BZ #3013]
12650         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12651         lenght of one output field, correct bitmask creation.
12652         * locale/programs/ld-time.c: Add alignment.
12654         [BZ #2997]
12655         * misc/error.c: Add space between program name and message if file
12656         name is missing.
12658 2006-08-03  Eric Blake  <ebb9@byu.net>
12660         [BZ #2998]
12661         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12663 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12665         * malloc/memusagestat.c: Silence warnings.
12667         * malloc/malloc.c: Dynamically size mmap treshold if the program
12668         frees mmaped blocks.
12669         Patch by Valerie Henson and Arjan van de Ven.
12671 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12673         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12674         __USE_GNU.
12676         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12677         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12678         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12679         Only provide var definitions in strtol_l (or for *ull*
12680         in strtoll_l).
12682         * stdio-common/bug16.c (tests): New array.
12683         (do_tests): Allow the first hexadecimal digit
12684         to be 1, 2, 4 or 8.  Do 3 additional tests.
12686         * sysdeps/s390/fpu/libm-test-ulps: Update.
12688         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12689         fchownat syscall if available.
12690         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12691         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12692         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12694 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12696         * nis/nis_xdr.c: Avoid some function calls.
12698 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12699             Ulrich Drepper  <drepper@redhat.com>
12701         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12702         short cut if only one name component is stripped away.
12704 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12706         * nis/nis_call.c: Minor cleanups throughout.
12707         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12708         (first_shoot): Add search_parent_first parameter.  Only if it is set
12709         search parent server first.
12710         If directory for table found through cold start cache is not the same
12711         as referenced in the cache, don't use it.
12712         (__nisfind_server): Take additional parameter.  Pass it on to
12713         first_shoot.
12714         (__prepare_niscall): Adjust __nisfind_server call.
12715         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12716         * nis/nis_table.c: Adjust __nisfind_server call.
12717         * nis/nis_lookup.c: Likewise.
12718         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12720 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12722         [BZ #2182]
12723         * math/s_cacosh.c: Return values from positive branch.
12724         * math/s_cacoshf.c: Likewise.
12725         * math/s_cacoshl.c: Likewise.
12727         [BZ #2883]
12728         * sysvipc/sys/msg.h: Change return value to ssize_t.
12729         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12730         * sysvipc/msgrcv.c: Likewise.
12731         * include/sys/msg.h: Likewise.
12733         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12734         test introduced in patch for bz #661.
12735         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12736         element for NEWGROUPS.
12738         [BZ #2908]
12739         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12740         'f', use '1' as leading digit not '\1'.
12741         * stdio-common/Makefile (tests): Add bug16.
12742         * stdio-common/bug16.c: New file.
12744         [BZ #2914]
12745         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12746         and don't try to open it.  The patch introducing the macro
12747         contained a bug and used the same file name as the new file
12748         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12749         this out completely.
12751         [BZ #2926]
12752         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12753         Patch by Jerry James <Jerry.James@usu.edu>.
12755         * rt/Makefile (tests): Add tst-clock2.
12756         * rt/tst-clock2.c: New file.
12758         [BZ #2978]
12759         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12760         function and its parameters and pass it to new thread.
12761         (__gai_notify): Add support for alternative waiting for completion.
12762         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12763         waiting for completion.
12764         * resolv/getaddrinfo_a.c: Likewise.
12765         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12766         waiting for completion is used.
12767         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12768         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12769         * resolv/gai_error.c: Likewise.
12770         * resolv/gai_sigqueue.c: Likewise.
12772 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12774         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12775         errno to EBADF and return MACH_PORT_NULL.
12777 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12779         [BZ #2980]
12780         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12782 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12784         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12785         walk them instead of the symbol table.
12787 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12789         [BZ #2098]
12790         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12791         status of NSS calls, not the number of returned entries.
12793         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12794         request_key, keyctl.
12796 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12798         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12800 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12802         * elf/tst-auditmod1.c: Fix typo in #error.
12804 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12806         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12808         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12810 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12812         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12813         that the directory is empty even on non-POSIX filesystems.
12815 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12817         * elf/dl-open.c (dl_open_worker): Add branch prediction.
12819         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12820         the backend NSS module.  If backend setgrent call failed, don't have
12821         internal_setgrent fail.  Just remember this until it is needed.
12822         * nis/nss_compat/compat-pwd.c: Likewise.
12823         * nis/nss_compat/compat-spwd.c: Likewise.
12825 2006-07-30  Roland McGrath  <roland@redhat.com>
12827         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12828         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12829         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12830         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12832         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12833         (nanosleep_not_cancel): New macro.
12834         (sigsuspend_not_cancel): new macro.
12835         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12836         (do_sigsuspend): Define as inline.
12837         (__sigsuspend): Always use do_sigsuspend.
12838         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12839         * include/signal.h: Declare __sigsuspend_nocancel.
12840         * sysdeps/posix/pause.c
12841         [! NO_CANCELLATION] (__pause_nocancel): New function.
12843         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12844         * include/time.h (__nanosleep_nocancel): Likewise.
12846 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
12848         * locale/programs/localedef.c (add_to_readlist): Rename local
12849         variables to avoid confusion.
12851         * locale/programs/charmap.c (charmap_read): Emit error message if
12852         charmap couldn't be found or read.
12854 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
12856         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12857         __ASSUME_FUTEX_LOCK_PI.
12858         * include/time.h: Declare __nanosleep_nocancel.
12859         * include/unistd.h: Declare __pause_nocancel.
12861         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12862         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
12863         get the __stack_chk_fail_local definition when it's needed.
12865 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
12867         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12868         * dlfcn/bug-atexit3.c: New file.
12869         * dlfcn/bug-atexit3-lib.cc: New file.
12871         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12872         used when the namespace is not the base namespace.
12874 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
12876         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12877         (__new_exitfn): Bump it in every successful call.
12878         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12879         more exit handlers, call them right away.
12880         * stdlib/exit.h: Declare __new_exitfn_called.
12882 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
12884         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12885         calling registered handler.
12887         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12888         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12889         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12890         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12891         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12892         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12893         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12894         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12896 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
12898         * elf/dl-lookup.c (dl_new_hash): New functions.
12899         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12900         value here.  Compute new-style hash value.  Pass new hash value
12901         and reference to variable with the old value to do_lookup_x.
12902         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12903         old-style hash table.
12904         (_dl_debug_bindings): Pass new hash value and reference to variable
12905         with the old value to do_lookup_x.
12906         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12907         new-style hash value and change old-style hash value parameter to
12908         be a reference.  Reoganize functions to determine whether
12909         new-style hash table is available.  Only fall back on old-style
12910         table.  If old-style hash value is needed, compute it here.
12911         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12912         entry.
12913         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12914         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
12915         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12916         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12917         * Makeconfig: If linker supports --hash-style option add it to all
12918         linker command lines to build DSOs.
12919         * config.make.in: Define have-hash-style.
12920         * configure.in: Test whether linker supports --hash-style option.
12922         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12923         * sysdeps/generic/ldsodefs.h: Adjust prototype.
12925 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
12927         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12928         auditing.
12930         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12931         RPATH of main map twice.
12933 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
12935         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12936         look further, return original strings.
12937         (_nl_find_msg): Do not return found translation if the conversion
12938         failed.  Either signal the string is unusable or that something went
12939         wrong and the original should be used.
12941 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
12943         * string/_strerror.c (__strerror_r): Add __builtin_expect.
12945 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
12947         [BZ #2766]
12948         * misc/insremque.c (insque): Handle prev == NULL.
12949         * misc/Makefile (tests): Add tst-insremque.
12950         * misc/tst-insremque.c: New test.
12952 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
12954         [BZ #2792]
12955         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12956         conflict with DL_DST_REQUIRED.
12958 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
12960         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12961         match what Solaris does.
12963 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
12965         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12966         local_setegid instead of seteuid and setegid.
12967         * sysdeps/generic/local-setxid.h: New file.
12968         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12970         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12972         * string/Makefile (tests): Add bug-envz1.
12973         * string/bug-envz1.c: New file.
12975 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12977         * posix/regex_internal.c (re_string_skip_chars): If no character has
12978         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
12979         to the byte which couldn't be converted.
12980         (re_string_reconstruct): Don't clear valid_raw_len before calling
12981         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12982         tip_context using re_string_context_at.
12983         * posix/Makefile: Add rules to build and run bug-regex25 test.
12984         * posix/bug-regex25.c: New test.
12986 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
12988         [BZ #2703]
12989         * string/envz.c (envz_strip): Correct erroneously reversed src
12990         and dest parameters to memmove() invocation.
12992 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
12994         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12995         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12996         to make sure the database has been already invalidated.
12997         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
12998         after the cache has been invalidated.  Use pthread_mutex_lock rather
12999         than pthread_mutex_trylock if fd != -1.
13000         * nscd/connections.c (invalidate_cache): Add fd argument, write
13001         response to fd if not calling prune_cache, pass fd to prune_cache.
13002         (handle_request): Adjust invalidate_cache caller.
13003         (nscd_run): Pass -1 as fd to prune_cache.
13005 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13007         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13008         the correct place.
13010 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13012         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13013         * nscd/cache.c (prune_cache): Take prunelock before starting the
13014         work.  Just return in case it is already taken.
13015         * nscd/connections.c (dbs): Initialize .prunelock.
13017 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13019         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13020         copying.  No need to allocate new array for group members.  Just
13021         move the pointers and update the size.
13023         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13024         Avoid memory leak in case realloc fails.  Simplification for
13025         better code generation.
13027         Avoid deprecation warning because of libc_hidden_proto for
13028         inet6_option_alloc.
13029         * inet/inet6_option.c (option_alloc): Renamed from
13030         inet6_option_alloc.  Made static.
13031         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13032         (inet6_option_append): Call option_alloc.
13033         * include/netinet/in.h: Remove libc_hidden_proto for
13034         inet6_option_alloc.
13036         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13037         for cleanup when cb!=NULL [Coverity CID 233].
13039 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13041         [BZ #2693]
13042         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13043         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13044         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13045         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13046         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13047         and inet6_rth_getaddr.
13048         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13049         array.
13050         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13051         Mark inet6_option_* interfaces as deprecated.
13052         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13053         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13054         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13055         inet6_rth_segments, and inet6_rth_getaddr.
13056         * inet/inet6_opt.c: New file.
13057         * inet/inet6_rth.c: New file.
13059         * inet/netinet/icmp6.h: Pretty printing.
13061         [BZ #2683]
13062         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13064 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13066         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13067         doing it all here.  When server does not know the answer do not
13068         fail immediate, try parent first.
13070         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13071         overflow test.
13073 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13075         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13076         from __do_niscall.
13077         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13078         and exported.
13079         (__follow_path): New function.  Split out from nis_list.
13080         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13081         _xdr_nis_result.
13082         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13083         _xdr_nis_result.
13084         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13085         and __follow_path.
13086         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13087         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13088         from libnsl for version GLIBC_PRIVATE.
13089         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13090         Remove entry parameter from _nss_nisplus_parse_pwent and
13091         _nss_nisplus_parse_grent.
13092         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13093         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13094         again.  Rewrite getpwent handling to not use nis_first_entry and
13095         nis_next_entry.  Roll out own niscall handling.
13096         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13098         * sunrpc/xdr_rec.c: Fix typo in comment.
13100 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13102         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13103         handling.
13105         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13106         to allocate memory for my_pollfd.  Better initialization of
13107         cb_is_running.  Use TEMP_FAILURE_RETRY.
13109         * malloc/memusage.sh (memusageso): Add quotes.
13110         (memusagestat): Likewise.
13111         * debug/xtrace.sh (pcprofileso): Likewise.
13112         (pcprofiledump): Likewise.
13113         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13114         replacement.
13115         * malloc/Makefile ($(objpfx)memusage): Likewise.
13117         * nis/nis_callback.c (__nis_create_callback): Calls to
13118         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13119         asprintf call fails.
13121         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13122         no uninitialized memory is passed to sendto.
13124 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13126         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13127         of snprintf+strdup.  Handle OOM.
13128         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13129         cb->serv together.  Remove now obsolete free calls.
13130         (__nis_destroy_callback): Remove now obsolete free call.
13132 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13134         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13135         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13136         and ULA respectively). Set precedence for IPv4 address to 10 as
13137         defined in RFC3484 for preferring IPv6.
13138         * posix/gai.conf: Update to match the new default tables.
13140 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13142         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13143         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13144         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13145         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13147         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13148         Removed.
13149         (init_nss_interface): Remove initialization of these variables.
13151 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13153         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13154         nis_free_directory forward to avoid duplication.
13156 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13158         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13159         rec_dirsearch returning NULL.
13160         (first_shoot): Handle __nis_finddirectory returning NULL.
13161         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13163         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13164         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13166 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13168         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13169         pid changed.
13171 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13173         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13175         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13176         * nscd/nscd_getgr_r.c: Likewise.
13178         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13180         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13181         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13183         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13185         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13187         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13189         * include/rpc/auth.h: Mark xdr_des_block_internal and
13190         xdr_opaque_auth_internal as hidden.
13192         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13193         hidden.
13195         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13197         * misc/getusershell.c (okshells): Don't use static initializers,
13198         do it dynamically.
13200         * stdlib/fmtmsg.c (keywords): Change type of len element to
13201         uint32_t to not waste space on 64bit machines.
13203         * locale/setlocale.c: Change _nl_category_names into a string.
13204         Add new _nl_category_name_idxs.  Change all users.
13205         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13206         Declare _nl_category_name_idxs.
13207         * locale/findlocale.c: Adjust for _nl_category_names change.
13208         * locale/loadlocale.c: Likewise.
13209         * locale/newlocale.c: Likewise.
13210         * intl/dcigettext.c: Likewise.
13212         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13213         (add_alias2): ...here.  New function.
13214         (__gconv_read_conf): Simplify builtin alias handling.
13215         (builtin_aliases): Convert to string to avoid relocations.
13216         * iconv/gconv_builtin.h: Add comment about correct formatting.
13218 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13220         * resolv/res_debug.c (loc_ntoa): Make error const.
13222 2006-05-14  Andreas Schwab  <schwab@suse.de>
13224         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13226 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13228         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13229         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13230         sizeof (cpu_set_t).
13232 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13234         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13236         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13238         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13239         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13241         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13242         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13244         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13245         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13246         xdr_cback_data.
13248         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13249         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13250         xdr_ypupdate_args.
13252         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13253         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13255         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13256         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13258         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13259         * include/rpcsvc/nis_callback.h: New file.
13261         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13262         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13264         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13265         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13267         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13268         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13270         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13271         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13273         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13274         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13275         xdr_ypdelete_args.
13277         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13278         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13280         * nis/nis_error.c: Remove table of strings.  Use position
13281         independent mechanism.
13282         * nis/nis_error.h: New file.
13284 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13286         * locale/programs/ld-time.c (time_finish): If wide era name or
13287         format aren't provided, set both wname and wformat to L"".
13289 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13291         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13292         results if the call was succesful.
13294         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13296         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13297         as hidden.
13299 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13301         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13303 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13305         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13306         caller makes sure this is not the case.
13307         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13309 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13311         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13312         calls.
13314         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13315         [Coverity CID 229, 230]
13317         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13318         DGETTEXT calls.
13319         (hol_help): Likewise.  [Coverity CID 226, 227]
13321         * string/argz-replace.c (__argz_replace): Unconditionally call
13322         free on SRC.  [Coverity CID 225]
13324         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13325         the return value of __nis_default_owner and __nis_default_group,
13326         it has been especially allocated.  [Coverity CID 224]
13328         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13329         searchgroup and searchowner.  Significantly simplified.
13330         (__nis_default_owner): Remove duplication.  Do not locally copy the
13331         string before duplicating it.
13332         (__nis_default_group): Likewise.
13334         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13335         we must clear the variable before calling __nisfind_server.
13337         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13338         nis_getnames.  [Coverity CID 223]
13340         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13341         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13343         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13344         allocate memory for the input to add_bytes.  [Coverity CID 221]
13346         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13347         was allocated here.  [Coverity CID 219, 220]
13349         * posix/getconf.c (print_all): Free confstr data after printing.
13350         [Coverity CID 218]
13352         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13353         list allocation fails.  [Coverity CID 215]
13355         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13356         [Coverity CID 213]
13358         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13359         string is NULL.  [Coverity CID 212]
13360         * argp/Makefile: Add rules to build and run bug-argp1.
13361         * argp/bug-argp1.c: New file.
13363         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13364         end of string.
13365         * stdlib/canonicalize.c (__realpath): Likewise.
13367         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13368         pointer.  [Coverity CID 206]
13370         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13371         in statically linked code.
13372         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13373         statically built code, be prepared to have no link map.
13374         [Coverity CID 205]
13376         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13377         dgettext calls. [Coverity CID 204]
13379         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13380         the one user.
13381         (uparam_names): Reduce size.  Avoid relative relocations.
13382         Moved to read-only segment.
13383         (fill_in_uparams): Update for new layout.
13385         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13386         assumed to always be != NULL. [Coverity CID 202]
13388         * argp/argp-help.c (hol_entry_help): Remove some dead code
13389         [Coverity CID 200].
13391         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13392         away a few more unconditional yperr2nss calls.
13393         (_nss_nis_getservbyname_r): Likewise.
13395 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13397         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13398         architectures.
13400         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13401         that unused memory passed to sendto is nevertheless initialized.
13403         [BZ #2499]
13404         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13405         possibly unaligned memory accesses.
13407         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13408         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13409         and __putlong respectively.  Correct buffer overflow check for
13410         NS_NOTIFY_OP.
13412         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13414         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13415         (send_dg): Rewrite error handling to be more compact and avoid
13416         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13418         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13420         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13421         instead of ns_get16.
13422         (res_queriesmatch): Likewise.  Minor optimization.
13424         [BZ #2499]
13425         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13426         __libc_res_nsend might reallocate the buffer for the answer.  In
13427         this case we have to reload the HP pointer.
13429 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13431         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13432         some branch prediction hints.
13434         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13435         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13436         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13437         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13438         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13439         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13440         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13441         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13443 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13445         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13446         by a GOT relocation to make Scrt1.o position independent.
13447         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13449         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13450         six system call parameters.
13451         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13453 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13455         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13456         malloc&bzero.
13458         * sunrpc/svc_udp.c (BZERO): Remove definition.
13459         (CALLOC): Define.
13460         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13462         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13463         (des_SPtrans): Use uint32_t type.
13464         (des_skb): Likewise.
13466         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13468 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13470         [BZ #2509]
13471         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13472         on 32-bit arches.
13474 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13476         * locale/programs/ld-address.c (address_finish): Fix one more
13477         place where the iso639 array might be accessed beyond the limits.
13479 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13481         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13482         filling it for the first time.
13484         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13485         Adjust all callers.
13486         Free res object content before returning.
13488         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13490         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13491         client->cl_auth.
13493         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13494         cleanup for initial thread, just the free call on TVP.
13496         * nscd/gai.c (__getline): Define.
13499 See ChangeLog.16 for earlier changes.