Fix _NC_LOCALE_NAME definition.
[glibc.git] / ChangeLog
blob8dfb46e98cd84da988a6f085ddb66bad87b74571
1 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
3         [BZ #10968]
4         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
5         Patch by Bruno Haible <bruno@clisp.org>.
6         * locale/tst-locname.c: New file.
7         * locale/Makefile (tests): Add tst-locname.
9         [BZ #10972]
10         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
11         constants from recent kernels.
12         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
13         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
14         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
15         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
16         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21         [BZ #10162]
22         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
23         software pipeline.
25 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
27         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
28         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
29         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
31 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
33         * posix/bug-regex29.c: Include stdio.h.
35 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
37         [BZ #10939]
38         * Versions.def: Define GLIBC_2.12 for libc.
39         * manual/errno.texi: Add ERFKILL entry.
40         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
41         for 2.12.
42         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
43         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
45         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
46         F_GETOWN_EX definitions according to corrected kernel definitions.
47         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
48         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
49         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
50         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
51         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
52         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
54 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
56         * version.h: Bump for 2.12 development.
58 2009-11-10  Andreas Schwab  <schwab@redhat.com>
60         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
61         out of buffer space.
62         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
63         map_v4v6_hostent running out of space.
65 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
67         * string/bits/string3.h (memset): If the second parameter is constant
68         and zero there is likely no transposition.
69         Patch by Caolan McNamara <caolanm@redhat.com.
71 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
73         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
74         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
76 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
78         * malloc/memusagestat.c (main): Fix spelling in an error message.
80 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
82         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
83         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
85 2009-11-03  Andreas Schwab  <schwab@redhat.com>
87         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
88         readahead.
90 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
92         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
93         relocate opd entry when resolving prelink conflicts.
95 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
97         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
98         when -D_FILE_OFFSET_BITS=64.
100         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
101         of last two arguments when -D_FILE_OFFSET_BITS=64.
102         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
103         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
104         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
105         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
106         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
107         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
109 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
111         [BZ #4457]
112         * sysdeps/generic/libgcc_s.h: New file.
113         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
115 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
117         * malloc/hooks.c (free_check): Restore locking and call _int_free
118         appropriately.
120 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
122         * version.h (VERSION): Bump for 2.11 release.
123         * include/features.h (__GLIBC_MINOR__): Bump to 11.
125         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
127         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
129         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
130         to avoid warning.
131         * stdlib/tst-strtoll.c (tests): Likewise.
133         [BZ #9986]
134         * time/strftime_l.c (__strftime_internal): Allow %OC.
136         * misc/mkostemps.c: New file.
137         * misc/mkostemps64.c: New file.
139 2009-10-30  Andreas Schwab  <schwab@redhat.com>
141         * locale/programs/locale-spec.c: Include <error.h> and
142         <libintl.h>.
144         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
146 2009-10-28  Roland McGrath  <roland@redhat.com>
148         * Makefile (dist-prepare): New target.
149         (tag-for-dist): Target removed.
150         (glibc-%.tar): Pattern rule removed.
151         (%.tar): New pattern rule, does simple use of git archive.
152         (dist-version): Remove variable definition.
153         (dist): Just depend on that.  Add .tar.xz dependency.
154         If dist-version variable not set on command line, depend on
155         dist-prepare, re-invoke with dist-version set via git describe.
157         * Makerules (%.xz): New pattern rule.
159 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
161         * elf/ifuncdep2.c: Include ifunc-sel.h.
162         (global): Delete.
163         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
164         * elf/ifuncmain1.c (global): Delete.
165         * elf/ifuncmain1vis.c: Likewise.
166         * elf/ifuncmain2.c: Likewise.
167         * elf/ifuncmain5.c: Likewise.
168         * elf/ifuncmod3.c: Likewise.
169         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
170         (foo_ifunc): Use ifunc_one.
171         * elf/ifuncmain7.c: Likewise.
172         * elf/ifuncmod1.c: Include ifunc-sel.h.
173         (global): Define protected var.
174         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
175         * elf/ifuncmod5.c: Likewise.
176         * sysdeps/generic/elf/ifunc-sel.h: New file.
177         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
179 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
181         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
182         (R_PPC_REL16*): Correct comments.
183         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
184         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
185          R_PPC64_REL16_HA): Define.
186         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
187         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
188         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
189         Delete unused "reloc" param.
190         (__process_machine_rela): Handle R_PPC_IRELATIVE.
191         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
192         Delete "reloc" param.
193         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
194         R_PPC_IRELATIVE.
195         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
196         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
197         relocations.
199 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
201         [BZ #10315]
202         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
203         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
204         UDP_ENCAP_L2TPINUDP.
206         [BZ #10349]
207         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
208         parameter, specifying length of prefix.
209         * stdio-common/tempname.c: Likewise.
210         * include/stdio.h: Adjust prototypes.
211         * libio/oldtmpfile.c: Adjust caller.
212         * misc/mkdtemp.c: Likewise.
213         * misc/mkostemp.c: Likewise.
214         * misc/mkostemp64.c: Likewise.
215         * misc/mkstemp.c:  Likewise.
216         * misc/mkstemp64.c: Likewise.
217         * misc/mktemp.c: Likewise.
218         * stdio-common/tempnam.c: Likewise.
219         * stdio-common/tmpfile.c: Likewise.
220         * stdio-common/tmpnam.c: Likewise.
221         * stdio-common/tmpnam_r.c: Likewise.
222         * misc/mkstemps.c: New file.
223         * misc/mkstemps64.c: New file.
224         * stdlib/stdlib.h: Add prototypes.
225         * misc/Makefile (routines): Add mkstemps and mkstemps64.
226         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
228 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
230         * locale/iso-639.def: Add sml entry.
232         [BZ #10391]
233         * resolv/res_send.c (send_dg): Initialize resplen.
235         [BZ #10446]
236         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
237         definition to the kernel's.
238         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
240 2009-08-18  Anders Johansson  <ajohansson@novell.com>
242         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
243         offsets and record sizes in assert()s and response sending.
244         * nscd/grpcache.c: Likewise.
245         * nscd/hstcache.c: Likewise.
246         * nscd/initgrcache.c: Likewise.
247         * nscd/pwdcache.c: Likewise.
249 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
251         [BZ #10540]
252         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
253         /etc/hosts does not exist set errnop and herrnop appropriately.
254         Patch by Steve Langasek <vorlon@debian.org>.
256         [BZ #10553]
257         * malloc/malloc.c (malloc_info): Fix typos in format strings.
258         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
260         [BZ #10564]
261         * login/utmp_file.c (TIMEOUT): Increase to 10.
263         [BZ #10609]
264         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
265         for file names in case the syscall is not available.
266         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
267         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
268         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
269         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
270         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
271         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
272         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
273         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
274         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
275         * sysdeps/unix/sysv/linux/openat.c: Likewise.
276         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
277         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
278         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
279         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
280         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
281         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
282         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
284         [BZ #10643]
285         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
286         creation filed, remove the request from the 'requests' list and signal
287         the caller that the request is finished.
289         [BZ #10692]
290         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
291         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
293         [BZ #10713]
294         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
295         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
297         [BZ #10780]
298         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
299         overflows the int return type.
301         [BZ #10717]
302         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
303         have to compute maxsize_total, we have to update the variables, and
304         the also_total handling must happen after the repair.
306         [BZ #10742]
307         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
308         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
310 2009-10-27  Andreas Schwab  <schwab@redhat.com>
312         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
313         errno is always set when returning unsuccessfully.
315 2009-10-29  Andreas Schwab  <schwab@redhat.com>
317         * malloc/memusage.c (update_data): Fix index wraparound handling
318         so that buffer_cnt is actually reset.
320 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
322         [BZ #10784]
323         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
324         of the directory we look at into the static buffer if there is one
325         at the start of the loop.
327         [BZ #10789]
328         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
329         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
331         [BZ #10840]
332         * sysdeps/unix/sysv/linux/kernel-features.h: Define
333         __ASSUME_F_GETOWN_EX.
334         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
335         if possible.
336         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
338         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
339         and f_owner_ex.
340         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
341         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
342         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
343         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
344         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
345         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
347         [BZ #10847]
348         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
349         getutmpx symbol.
351         [BZ #10823]
352         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
353         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
355 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
357         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
359 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
361         [BZ #10817]
362         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
363         Reported by Ray Chason.
365 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
367         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
368         strend-sse4.
369         * sysdeps/x86_64/multiarch/strchr.S: New file.
370         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
371         * sysdeps/x86_64/multiarch/strrchr.S: New file.
373 2009-10-21  Andreas Schwab  <schwab@redhat.com>
375         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
377 2009-10-19  Andreas Schwab  <schwab@redhat.com>
379         * include/math.h: Add hidden protos for __exp/__expf/__expl.
380         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
381         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
382         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
383         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
384         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
385         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
386         __ieee751_expl to handle overflow.
388 2009-10-14  David S. Miller  <davem@davemloft.net>
390         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
391         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
393 2009-10-13  Andreas Schwab  <schwab@redhat.com>
395         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
396         !USE_MULTIARCH.
398 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
400         [BZ #10730]
401         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
402         Patch in part by Steve Ward <planet36@gmail.com>.
404         [BZ #10731]
405         * stdlib/rand_r.c: Fix typo.
407         * po/cs.po: Update from translation team.
409 2009-10-06  Andreas Schwab  <schwab@redhat.com>
411         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
412         returning if RTLD_NOLOAD.
414 2009-10-06  Roland McGrath  <roland@redhat.com>
416         * sysdeps/x86_64/multiarch/strstr-c.c
417         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
419         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
420         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
422         * sysdeps/x86_64/multiarch/init-arch.h
423         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
424         (HAS_CPU_FEATURE): New macro.
425         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
426         * sysdeps/x86_64/multiarch/init-arch.c
427         (__get_cpu_features): #undef it before definition.
429 2009-10-05  Andreas Schwab  <schwab@redhat.com>
431         * locale/C-time.c: Revert week-1stday back to 19971130 and set
432         first_weekday to 1 and first_workday to 2.
434 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
436         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
437         F_GETOWN_EX.
438         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
439         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
440         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
441         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
442         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
443         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
445 2009-09-28  Andreas Schwab  <schwab@redhat.com>
447         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
448         * stdio-common/vfprintf.c: Likewise.
450 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
452         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
453         (mkdirat): Call __directory_name_split_at instead of
454         __directory_name_split.
456 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
458         * locale/programs/locale-spec.c (locale_special): If nothing matches
459         fail with an appropriate message.
461 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
463         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
464         and XX.
466 2009-09-25  Andreas Schwab  <schwab@redhat.com>
468         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
469         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
471 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
473         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
475 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
477         * iconvdata/iso646.c (gconv_init): Correctly initialize the
478         character size elements in step data.
480 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
482         * po/hu.po: Update from translation team.
483         * po/vi.po: Likewise.
485 2009-09-19  Roland McGrath  <roland@redhat.com>
487         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
489 2009-09-15  Roland McGrath  <roland@redhat.com>
491         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
492         * nptl/sysdeps/pthread/configure: Regenerated.
493         * nptl/sysdeps/x86_64/configure: Regenerated.
494         * sysdeps/unix/sysv/linux/configure: Regenerated.
495         * sysdeps/x86_64/elf/configure: Regenerated.
497         * Makefile (autoconf-it): Set execute bit only on top-level configure.
499         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
500         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
501         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
502         * configure: Regenerated.
504 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
506         * posix/getconf.c (main): Handle -- on command line.
508 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
510         * configure.in: Support binutils 2.100 and 3.0.
512 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
514         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
515         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
516         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
517         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
519 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
521         * locale/programs/ld-collate.c (struct locale_collate_t): Add
522         unnamed_section_defined field.
523         (collate_read): Test and set unnamed_section_defined.
525         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
526         _POSIX2_LINE_MAX.
528 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
530         * configure.in: Support binutils 2.20.
532 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
534         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
535         __strstr_ia32): Add attribute_hidden.
537 2009-09-01  Andreas Schwab  <schwab@redhat.com>
539         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
540         parsing of group entry.
542 2009-09-02  Andreas Schwab  <schwab@redhat.com>
544         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
545         external buffer.  Always discard readahead in internal buffer.
546         * libio/Makefile (tests): Add bug-wsetpos.
547         * libio/bug-wsetpos.c: New file.
549 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
551         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
552         Add attribute_hidden.
553         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
554         __strcasestr_sse2): Likewise.
555         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
556         (__fma_fma): Make static.
557         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
558         (__fmaf_fma): Make static.
560 2009-08-31  Andreas Schwab  <schwab@redhat.com>
562         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
563         reformulate in-buffer optimisation check to match code in
564         _IO_new_file_seekoff.
566 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
568         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
569         to srwi in 32-bit memcpy for power6.
571 2009-09-01  Andreas Schwab  <schwab@redhat.com>
573         * include/stdio.h: Declare hidden proto for fflush.
574         * libio/iofflush.c: Add hidden weak alias for fflush.
576 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
578         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
579         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
581 2009-08-31  Andreas Schwab  <schwab@redhat.com>
583         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
585 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
587         [BZ #10560]
588         * malloc/malloc.c: Add local assert definition to avoid problems with
589         memory allocation in the real one.
591 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
593         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
594         Removed.
595         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
596         turn off SSSE3 on Atom.
598 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
600         * stdlib/tst-strtol.c (tests): More tests.
601         * stdlib/tst-strtoll.c (tests): Likewise.
603 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
605         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
607         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
609 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
611         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
612         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
614         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
616         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
618         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
620 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
622         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
624 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
626         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
627         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
629         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
631         * sysdeps/x86_64/fpu/s_signbit.S: New file.
632         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
634         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
635         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
637         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
638         leftover YMM_SIZE definition.
640 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
642         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
643         union.
644         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
645         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
646         Redefine.
647         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
649         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
650         and SET_FLOAT_WORD definitions.
652 2009-08-24  Roland McGrath  <roland@redhat.com>
654         * sysdeps/unix/syscall-template.S: New file.
655         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
656         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
657         (compile-syscall): Pass mkdep and -g options as normal.
658         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
659         (common-generated): Don't add them here.
661 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
663         * math/s_fdim.c: In case of overflows set errno.
664         * math/s_fdimf.c: Likewise.
665         * math/s_fdiml.c: Likewise.
667         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
668         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
669         are using the inline optimizations.
671         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
672         (__signbitf): Likewise.
674 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
676         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
677         terminated.
678         * posix/Makefile (tests): Add bug-regex29.
679         * posix/bug-regex29.c: New file.
681         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
682         older POSIX versions are selected.
684         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
685         as well.
686         * stdio-common/printf_fphex.c: Likewise.
687         * stdio-common/tstdiomisc.c: Add more tests.
689         * locale/locale.h: Include xlocale.h and the thread-local locale
690         declarations for XPG7, not XPG6.
692 2009-08-21  Andreas Schwab  <schwab@redhat.com>
694         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
695         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
698         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
699         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
701 2009-08-20  Roland McGrath  <roland@redhat.com>
703         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
704         Use l_addr instead of l_map_start (dli_fbase).
705         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
706         address when there is no proximate symbol.
707         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
708         Likewise.
710 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
712         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
714 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
716         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
717         Also handle SIGINT.  In that case only do the cleanup and then
718         re-raise the signal.
719         (main): Install handler for SIGINT.
721 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
723         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
724         clobber list.
726 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
728         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
729         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
730         tst-auditmod7b.c.
731         (tests): Add tst-audit6 tst-audit7.
732         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
733         tst-auditmod7a tst-auditmod7b.
734         ($(objpfx)tst-audit6): New.
735         ($(objpfx)tst-audit6.out): Likewise.
736         ($(objpfx)tst-audit7): Likewise.
737         ($(objpfx)tst-audit7.out): Likewise.
738         (tst-audit6-ENV): Likewise.
739         (tst-audit7-ENV): Likewise.
740         (CFLAGS-tst-auditmod6b.c): Likewise.
741         (CFLAGS-tst-auditmod6c.c): Likewise.
742         (CFLAGS-tst-auditmod7b.c): Likewise.
743         * elf/tst-audit6.c: New file.
744         * elf/tst-audit7.c: New file.
745         * elf/tst-auditmod6a.c: New file.
746         * elf/tst-auditmod6b.c: New file.
747         * elf/tst-auditmod6c.c: New file.
748         * elf/tst-auditmod7a.c: New file.
749         * elf/tst-auditmod7b.c: New file.
750         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
751         saving and restoring SSE/AVX registers to ...
752         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
754 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
756         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
757         only if SHARED is defined.
758         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
760 2009-08-03  Jim Meyering  <meyering@redhat.com>
762         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
764 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
766         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
767         section as the other functions for this architecture.
768         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
770 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
772         * sysdeps/x86_64/strcmp.S: Add support to compile with
773         USE_SSSE3.  In this case palignr is used.
774         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
775         available but SSSE3 is, pick __str{,n}cmp_ssse3.
776         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
777         Add strcmp-ssse3 and strncmp-ssse3.
778         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
779         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
781         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
782         warning through fake initialization.
784 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
786         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
788 2009-08-07  Andreas Schwab  <schwab@redhat.com>
790         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
791         unique symbols.
793 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
795         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
796         EBX from EAX = 1.  Handle EAX = 11.
798 2009-08-07  Andreas Schwab  <schwab@redhat.com>
800         * Makefile (TAGS): Use separate sed -e expressions to avoid \
801         inside ''.
803 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
805         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
806         hidden IFUNC functions.
807         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
809         * sysdeps/i386/i686/multiarch/strlen.S: New file.
811         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
812         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
813         strcasestr-c.
814         (CFLAGS-strcspn-c.c): Define.
815         (CFLAGS-strpbrk-c.c): Define.
816         (CFLAGS-strspn-c.c): Define.
817         (CFLAGS-strstr.c): Define.
818         (CFLAGS-strcasestr.c): Define.
819         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
820         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
821         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
822         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
823         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
824         * sysdeps/i386/i686/multiarch/strspn.S: New file.
825         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
826         * sysdeps/i386/i686/multiarch/strstr.c: New file.
827         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
828         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
829         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
830         -16L instead of 0xfffffffffffffff0L.
831         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
833 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
835         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
837 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
839         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
840         another rewrite.  Much smaller and faster.
841         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
843         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
844         ss_flags from the correct location.
846 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
848         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
849         * sysdeps/i386/i686/cacheinfo.c: New file.
850         * sysdeps/i386/i686/multiarch/Makefile: New file.
851         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
852         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
853         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
854         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
855         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
856         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
857         (__cpuid_count): New. Provide the default.
858         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
859         (__x86_64_preferred_memory_instruction): Define only if
860         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
861         (intel_check_word): Use __cpuid.
862         (handle_intel): Likewise.
863         (handle_amd): Likewise.
864         (__cache_sysconf): Likewise.
865         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
866         (__cache_sysconf): Likewise.
867         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
868         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
869         (get_common_indeces): Use __cpuid.
870         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
871         if ENABLE_SSSE3_ON_ATOM is not defined.
872         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
873         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
874         popcnt instead of popcntq.
876 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
878         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
880 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
882         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
883         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
884         which always causes a compile error.
886         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
888         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
889         comes from...
890         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
891         which always causes a compile error.
893         * debug/Makefile (tests): Add tst-longjmp_chk2.
894         * debug/tst-longjmp_chk2.c: New file.
896         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
897         Remove incorrect use of BP_SYM.
898         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
899         here now since it is more complex than just a simple check.
901         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
902         we make no more progress.
904 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
906         * math/s_fma.c: Don't define alias if __fma is a macro.
907         * math/s_fmaf.c: Likewise.
908         * sysdeps/x86_64/multiarch/s_fma.c: New file.
909         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
910         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
912         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
913         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
914         New macro HAS_FMA.
915         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
916         function.
917         * include/libc-symbols.h (libm_ifunc): Define.
918         * sysdeps/x86_64/multiarch/Versions: New file.
920         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
922 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
924         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
926 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
928         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
929         call that registers used in calling conventions need to be preserved.
930         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
931         to preserve register content if necessary.
932         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
933         (_dl_x86_64_restore_sse): New function.
934         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
935         is allowed to modify xmm/ymm registers.
937         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
938         application's perspective.
939         * stdio-common/scanf17.c: Likewise.
941 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
943         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
944         size to memsz.
945         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
946         here.
947         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
948         two steps to catch bugs.
950 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
952         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
953         determines which files are used in runtime lookups and only checks
954         those for SSE use.
955         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
956         testing.
957         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
958         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
959         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
960         take a while.
962         * elf/dl-open.c: Move _dl_scope_free to...
963         * elf/dl-scope.c: ...here.  New file.
964         * elf/Makefile (dl-routines): Add scope.
966         * resolv/resolv.h (RES_USE_DNSSEC): Define.
967         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
968         RES_USE_DNSSEC.
969         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
970         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
971         all the places we handled RES_USE_EDNS0 only before.
972         Patch by Adam Tkac <atkac@redhat.com>.
974 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
976         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
977         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
978         Update size when reallocating.
980 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
982         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
983         functions used in ld.so modify xmm/ymm registers.
984         * sysdeps/x86_64/Makefile:  Hook new test up.
985         * sysdeps/x86_64/rtld-memchr.c: New file.
986         * sysdeps/x86_64/rtld-memcmp.c: New file.
987         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
988         * sysdeps/x86_64/rtld-strchr.S: New file.
989         * sysdeps/x86_64/rtld-strlen.S: New file.
990         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
991         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
993 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
995         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
996         strncmp-c.
997         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
998         (exit): Likewise.
999         (Byte1): Likewise.
1000         (Byte2): Likewise.
1001         (Byte3): Likewise.
1002         (Byte4): Likewise.
1003         (Byte5): Likewise.
1004         (Byte6): Likewise.
1005         (next_8_bytes): Likewise.
1006         (Byte0): Remove commented out codes.
1007         (unaligned_table): Align jump table at 8 bytes.
1008         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1009         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1010         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1011         * sysdeps/x86_64/strncmp.S: New file.
1013 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1015         [BZ #10422]
1016         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1017         kernels, dropped when eventfd2 support was added.
1018         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1019         kernels, dropped when signalfd4 support was added.
1020         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1021         added, name them.
1023         [BZ #10452]
1024         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1025         replies up.
1027         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1029 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1031         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1032         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1034         [BZ #10448]
1035         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1036         callback we must touch the status to avoid using stale value.
1038         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1039         compiled in.
1041 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1043         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1044         /lib/modules/* headers anymore.  We have sane headers in the standard
1045         place now.
1047 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1049         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1050         "etf3enh" and "highgprs" added.
1051         (_dl_s390_platforms): "z10" added.
1052         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1053         Increased for the new entries.
1054         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1055         HWCAP_S390_HIGH_GPRS added.
1057         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1058         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1059         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1060         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1061         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1063 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1065         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1066         avoid additional cpuid instructions.  Most of the information is
1067         stored somewhere.
1069         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1070         cache descriptors.
1071         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1073         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1074         SSSE3 bit for Atoms.
1075         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1076         here anymore.
1078         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1079         structure before copying it to avoid warning.
1080         * posix/tst-rfc3484-2.c (do_test): Likewise.
1081         * posix/tst-rfc3484-3.c (do_test): Likewise.
1083         [BZ #10416]
1084         * include/unistd.h: Make header file suitable for C++ test cases.
1085         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1087         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1088         stack alignment in the exit code.
1090         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1091         potentially be zero.
1093         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1094         unique symbol definition.
1095         Patch by Jakub Jelinek.
1096         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1097         make sure the object with the definition cannot be unloaded.  Adjust
1098         a few types.
1099         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1100         the unique symbol hash table should not be const.
1102 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1104         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1105         unnecesary variables.  Comment fixes.
1107 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1109         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1110         Use NONASCII_CASE information provided by the locale to determine
1111         whether optimized string load function can be used.  Minor cleanups.
1113 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1115         * string/strcasestr.c (STRCASESTR): New macro.
1116         (__strcasestr): Renamed to ..
1117         (STRCASESTR): ...this.
1118         * string/strstr.c (STRSTR): New macro.
1119         (strstr): Renamed to ..
1120         (STRSTR): ...this.
1121         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1122         strstr-c strcasestr-c
1123         (CFLAGS-strstr.c): New.
1124         (CFLAGS-strcasestr.c): Likewise.
1125         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1126         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1127         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1128         * sysdeps/x86_64/multiarch/strstr.c: New file.
1130 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1132         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1133         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1134         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1135         _NL_CTYPE_NONASCII_CASE.
1136         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1137         field.
1138         (ctype_finish): Check whether there are any 8-bit characters outside
1139         the range ASCII has or whether the mapping isn't the same as for
1140         ASCII (±0x20).  Set nonascii_case appropriately.
1141         (ctype_output): Add output handler for nonascii_case.
1143 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1145         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1146         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1148 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1150         [BZ #10360]
1151         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1152         0xffff in the EDNS0 record.
1154 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1156         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1157         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1158         is written before the list head update.
1159         Patch by Andreas Schwab <aschwab@redhat.com>.
1161 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1162             Jakub Jelinek  <jakub@redhat.com>
1164         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1165         corruption thread-safe.
1167 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1169         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1170         overrides atomic_compare_and_exchange_val_rel, define to
1171         atomic_compare_and_exchange_val_rel by default, otherwise default
1172         to catomic_compare_and_exchange_val_acq.
1173         (catomic_compare_and_exchange_bool_rel): If arch overrides
1174         atomic_compare_and_exchange_bool_rel, define to
1175         atomic_compare_and_exchange_bool_rel by default.
1176         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1177         Use catomic_compare_and_exchange_val_rel instead of
1178         catomic_compare_and_exchange_val_acq.
1180 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1182         * sysdeps/generic/ldsodefs.h: Add prototype for
1183         _dl_higher_prime_number.
1184         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1186         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1187         restoring of ymm registers a bit.
1189 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1191         * sysdeps/x86_64/memcmp.S: New file.
1193 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1195         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1196         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1197         pointers in writable memory.
1199 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1201         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1202         * config.make.in: Add config-cflags-avx entry.
1203         * configure.in: Substitute libc_cv_cc_avx.
1204         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1205         * elf/tst-audit4.c: New file.
1206         * elf/tst-audit5.c: New file.
1207         * elf/tst-auditmod4a.c: New file.
1208         * elf/tst-auditmod4b.c: New file.
1209         * elf/tst-auditmod5a.c: New file.
1210         * elf/tst-auditmod5b.c: New file.
1211         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1212         link-defines.sym.
1213         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1214         (La_x86_64_vector): Likewise.
1215         (La_x86_64_regs): Append lr_vector.
1216         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1217         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1218         saving and restoring SSE registers to ...
1219         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1220         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1221         <link-defines.h>.
1222         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1223         La_x86_64_regs.  Allocate extra space and jump to memory at
1224         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1225         (save_and_restore_vector_sse): New.
1226         (save_and_restore_vector_avx): Likewise.
1227         (check_avx): Likewise.
1228         (save_and_restore_vector): Likewise.
1229         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1230         HAVE_AVX_SUPPORT.
1231         * sysdeps/x86_64/link-defines.sym: New file.
1233 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1235         * elf/do-lookup.h: Removed after folding content into...
1236         * elf/dl-lookup.c: ...here.
1238         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1240 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1242         * configure.in: Check for gnu_unique_symbol symbol type.
1243         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1244         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1245         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1246         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1247         change.
1248         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1249         unique symbol table.
1250         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1251         for first namespace.
1252         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1253         unique symbol hash table.
1254         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1255         * elf/tst-unique1.c: New file.
1256         * elf/tst-unique1mod1.c: New file.
1257         * elf/tst-unique1mod2.c: New file.
1258         * elf/tst-unique2.c: New file.
1259         * elf/tst-unique2mod1.c: New file.
1260         * elf/tst-unique2mod2.c: New file.
1262 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1264         * elf/elf.h (STB_GNU_UNIQUE): Define.
1266         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1267         from...
1268         * include/inline-hashtab.h: ...here.
1269         (htab_expand): Adjust for renamed function.  Correct memory handling.
1271 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1273         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1275 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1277         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1278         (PPC_FEATURE_HAS_VSX): Likewise.
1280 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1282         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1283         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1285         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1286         aligned to 16 byte boundaries.
1287         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1288         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1289         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1291 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1293         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1294         * config.make.in (config-cflags-sse4): New variable.
1295         * configure.in: Substitute libc_cv_cc_sse4.
1296         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1297         HAVE_SSE4_SUPPORT.
1298         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1299         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1300         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1301         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1302         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1303         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1304         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1305         * sysdeps/x86_64/multiarch/strspn.S: New file.
1307 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1309         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1310         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1311         (tests): Add tst-audit3 for x86_64.
1312         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1313         ($(objpfx)tst-audit3): Define.
1314         ($(objpfx)tst-audit3.out): Define.
1315         (tst-audit3-ENV): Define.
1316         * elf/tst-audit3.c: New file.
1317         * elf/tst-auditmod3a.c: New file.
1318         * elf/tst-auditmod3b.c: New file.
1319         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1320         and restore xmm6.
1322         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1323         (__stpncpy): Renamed to ...
1324         (STPNCPY): This.
1325         (stpncpy): Create alias only if STPNCPY is not defined.
1326         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1327         defined.
1328         (strncpy): Renamed to ...
1329         (STRNCPY): This.
1330         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1331          stpncpy-c strncpy-c for string.
1332         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1333         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1334         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1335         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1336         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1337         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1339 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1341         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1342         adding to fast bin list.
1344 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1346         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1347         inet_makeaddr.  This worked only with class-based networks.
1348         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1349         Likewise.
1351         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1352         recognize all types.
1353         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1354         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1355         be in host byte order.
1357 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1359         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1360         (MODEL_OFFSET): Define.
1361         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1362         family and model.
1363         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1364         out common code into new function get_common_indeces. Determine
1365         extended family and model for Intel processors.
1367 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1369         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1370         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1371         option.
1372         * resolv/res_send.c (reopen): New function.  Broken out of...
1373         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1374         fallback mechanism.  If single-request fails switch to
1375         single-request-reopen mode which opens a new socket for the second
1376         request.
1378 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1380         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1381         (CHECK_SP): Use it.
1383 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1385         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1386         for saved registers.
1387         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1388         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1389         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1391 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1393         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1395 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1397         * po/id.po: Update from translation team.
1399         * po/bg.po: Update from translation team.
1401 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1403         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1404         defined.
1405         (strncmp): Renamed to STRNCMP.
1406         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1407         strncmp-c for string.
1408         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1409         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1410         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1411         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1413 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1415         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1416         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1417         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1418         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1419         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1420         ifuncmain7static.c.
1421         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1422         ifuncmain7static, and ifuncmain7picstatic.
1423         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1424         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1425         $(objpfx)ifuncmain7pie.out.
1426         (modules-names): Add ifuncmod5 ifuncmod6
1427         (ifuncmod5.so-no-z-defs): Define.
1428         (ifuncmod6.so-no-z-defs): Define.
1429         (CFLAGS-ifuncmain5pic.c): Define.
1430         (CFLAGS-ifuncmain5picstatic.c): Define.
1431         (CFLAGS-ifuncmain5staticpic.c): Define.
1432         (CFLAGS-ifuncdep5pic.c): Define.
1433         (CFLAGS-ifuncmain7pic.c): Define.
1434         (CFLAGS-ifuncmain7picstatic.c): Define.
1435         (CFLAGS-ifuncmain1staticpie.c): Define.
1436         (CFLAGS-ifuncmain5pie.c): Define.
1437         (CFLAGS-ifuncmain6pie.c): Define.
1438         (CFLAGS-ifuncmain7pie.c): Define.
1439         ($(objpfx)ifuncmain1staticpie.out): Define.
1440         ($(objpfx)ifuncmain1staticpie): Define.
1441         ($(objpfx)ifuncmain5pie.out): Define.
1442         ($(objpfx)ifuncmain5pie): Define.
1443         ($(objpfx)ifuncmain6pie.out): Define.
1444         ($(objpfx)ifuncmain6pie): Define.
1445         ($(objpfx)ifuncmain5): Define.
1446         ($(objpfx)ifuncmain5pic): Define.
1447         ($(objpfx)ifuncmain5static): Define.
1448         ($(objpfx)ifuncmain5staticpic): Define.
1449         ($(objpfx)ifuncmain5picstatic): Define.
1450         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1451         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1452         ifuncmain6pie.out.
1453         * elf/b/elf/ifuncmain1staticpie.c: New file.
1454         * elf/ifuncdep5.c: New file.
1455         * elf/ifuncdep5pic.c: New file.
1456         * elf/ifuncmain5.c: New file.
1457         * elf/ifuncmain5pic.c: New file.
1458         * elf/ifuncmain5picstatic.c: New file.
1459         * elf/ifuncmain5pie.c: New file.
1460         * elf/ifuncmain5static.c: New file.
1461         * elf/ifuncmain5staticpic.c: New file.
1462         * elf/ifuncmain6pie.c: New file.
1463         * elf/ifuncmain7.c: New file.
1464         * elf/ifuncmain7pic.c: New file.
1465         * elf/ifuncmain7picstatic.c: New file.
1466         * elf/ifuncmain7pie.c: New file.
1467         * elf/ifuncmain7static.c: New file.
1468         * elf/ifuncmod5.c: New file.
1469         * elf/ifuncmod6.c: New file.
1471 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1473         [BZ #10085]
1474         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1475         (nss_endgrent): New variable.
1476         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1477         fields. Change type of files to bool and adjust all users.
1478         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1479         (internal_endgrent): Call nss_endgrent if necessary.
1480         (add_group): New function.  Broken out of...
1481         (check_and_add_group): ...here.
1482         (getgrent_next_nss): Remove test that any callback is available.
1483         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1484         callback.  If there is no blacklist we can trust the results returned
1485         by the initgroups_dyn callback.  In case there is a callback and we
1486         find a group entry for the group ID but it doesn't contain the
1487         correct member, switch to the slow mode and use getgrent_r.
1488         (internal_getgrent_r): When we see a +: entry, determine whether
1489         there is any callback and which we can use the initgroups_dyn
1490         callback.
1492 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1494         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1495         (_int_free): Likewise.
1497         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1498         AF_IEEE802154.
1499         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1500         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1501         and ARPHRD_IEEE802154_PHY.
1503         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1504         relative to generic Linux version.
1506 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1508         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1509         ($(objpfx)ifuncmain1vispie): Likewise.
1511 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1513         * login/Makefile: Build pt_chown as PIE.
1515 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1517         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1518         a format string.
1519         * elf/sln.c (usage): Likewise.
1520         * malloc/memusage.sh (do_help): Likewise.
1521         * nss/getent.c (more_help): Likewise.
1522         * posix/getconf.c (main): Likewise.
1523         * sunrpc/rpcinfo.c (usage): Likewise.
1524         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1526 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1528         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1529         those needed.
1530         * login/Makefile: If necessary link pt_chown with -lcap.
1531         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1532         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1534 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1536         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1537         comparisons.
1538         * string/test-memchr.c (do_random_tests): Test very large lengths
1539         as well.
1541 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1543         * Makeconfig (+link-pie): Define.
1544         (+prectorS): Define.
1545         (+postctorS): Define.
1546         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1547         * nscd/Makefile ($(objpfx)nscd): Likewise.
1549 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1551         [BZ #10107]
1552         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1553         with cmplwi.
1554         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1556 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1558         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1559         into ...
1560         * sysdeps/unix/grantpt.c: ...here.
1562 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1564         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1565         chmod if it is necessary.
1567         [BZ #10166]
1568         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1569         when the slave device is in devpts or devfs.
1571         [BZ #10183]
1572         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1574         [BZ #10195]
1575         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1576         of nd_opt_home_agent_info_preference to uint16_t.
1577         Patch by Arnaud Ebalard <arno@natisbad.org>.
1579         [BZ #10207]
1580         * nss/getent.c: Add support for printing gshadow data.
1582         [BZ #10203]
1583         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1584         not just the currently used one and those which follow.
1585         Patch by Joe Landers <jlanders@vmware.com>.
1587         [BZ #10196]
1588         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1589         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1590         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1592         [BZ #10217]
1593         * stdlib/abort.c: Define variable __abort_msg.
1594         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1595         * include/stdlib.h: Declare __abort_msg.
1596         * assert/assert-perr.c: Don't free buffer for message immediately.
1597         Store atomically in __abort_msg and free old buffer if necessary.
1598         * assert/assert.c: Likewise.
1599         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1600         store pointer in __abort_msg, and possibly free old string.
1601         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1603         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1605         [BZ #10211]
1606         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1607         handle leap seconds if they are available.
1608         Patch by Akinori Hattori <hattya@gentoo.org>.
1610         * timezone/tzselect.ksh: Update from tzcode2009i.
1611         * timezone/zdump.c: Likewise.
1612         * timezone/zic.c: Likewise.
1614         * timezone/africa: Update from tzdata2009i.
1615         * timezone/antarctica: Likewise.
1616         * timezone/asia: Likewise.
1617         * timezone/australasia: Likewise.
1618         * timezone/backward: Likewise.
1619         * timezone/etcetera: Likewise.
1620         * timezone/europe: Likewise.
1621         * timezone/factory: Likewise.
1622         * timezone/iso3166.tab: Likewise.
1623         * timezone/leapseconds: Likewise.
1624         * timezone/northamerica: Likewise.
1625         * timezone/pacificnew: Likewise.
1626         * timezone/solar87: Likewise.
1627         * timezone/solar88: Likewise.
1628         * timezone/solar89: Likewise.
1629         * timezone/southamerica: Likewise.
1630         * timezone/systemv: Likewise.
1631         * timezone/yearistype: Likewise.
1632         * timezone/zone.tab: Likewise.
1634 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1636         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1637         STT_GNU_IFUNC symbol or in 8 into type_class.
1639         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1640         instead of Elf64_Addr.
1642 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1644         * po/sv.po: Update from translation team.
1646         [BZ #10229]
1647         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1648         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1649         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1650         the C version.
1652 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1654         * Versions.def: Add GLIBC_2.11 for libpthread.
1656 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1658         * resolv/res_send.c (send_dg): Remember we switched to
1659         single-request mode.
1661 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1663         * dlfcn/dlfcn.h: Remove comma at end of enum.
1664         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1666         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1667         parsing mode string.
1669 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1671         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1673         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1675         * sysdeps/x86_64/multiarch/strlen.S: New file.
1676         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1677         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1678         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1679         content.
1681         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1682         is defined.
1684 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1686         * sysdeps/x86_64/strlen.S: Minor optimizations.
1688 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1690         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1691         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1692         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1693         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1694         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1695         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1696         ifuncmain3.c, ifuncmod3.c,.
1697         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1698         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1699         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1700         ifuncmain4picstatic.
1701         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1702         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1703         ifuncmain3, ifuncmain4.
1704         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1705         $(objpfx)ifuncmain1vispie.out.
1706         (modules-names): Add ifuncmod1 ifuncmod3.
1707         (generated): Add ifuncmain1pie ifuncmain1pie.out
1708         ifuncmain1vispie ifuncmain1vispie.out.
1709         Define rules to build and run the tests.
1710         * elf/ifuncdep1.c: New file.
1711         * elf/ifuncdep1pic.c: New file.
1712         * elf/ifuncdep2.c: New file.
1713         * elf/ifuncdep2pic.c: New file.
1714         * elf/ifuncmain1.c: New file.
1715         * elf/ifuncmain1pic.c: New file.
1716         * elf/ifuncmain1picstatic.c: New file.
1717         * elf/ifuncmain1pie.c: New file.
1718         * elf/ifuncmain1static.c: New file.
1719         * elf/ifuncmain1staticpic.c: New file.
1720         * elf/ifuncmain1vis.c: New file..
1721         * elf/ifuncmain1vispic.c: New file..
1722         * elf/ifuncmain1vispie.c: New file.
1723         * elf/ifuncmain2.c: New file.
1724         * elf/ifuncmain2pic.c: New file.
1725         * elf/ifuncmain2picstatic.c: New file.
1726         * elf/ifuncmain2static.c: New file.
1727         * elf/ifuncmain3.c: New file.
1728         * elf/ifuncmain4.c: New file.
1729         * elf/ifuncmain4picstatic.c: New file.
1730         * elf/ifuncmain4static.c: New file.
1731         * elf/ifuncmod1.c: New file.
1732         * elf/ifuncmod3.c: New file.
1734 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1736         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1738 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1740         [BZ #10221]
1741         * posix/Makefile (routines): Add execvpe.
1742         * posix/Versions: Export execvpe for GLIBC_2.11.
1743         * posix/execvp.c: Now only a wrapper.  Move code to...
1744         * posix/execvpe.c: ...here.  New file.
1745         * posix/unistd.h: Declare execvpe.
1747 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1749         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1750         for STT_GNU_IFUNC handling for efficiency.
1751         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1753         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1754         _exit.
1755         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1757 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1759         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1760         for !SHARED.
1762 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1764         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1765         is not defined.
1766         (__rela_iplt_start): New declaration.
1767         (__rela_iplt_end): Likewise.
1768         (__rel_iplt_start): Likewise.
1769         (__rel_iplt_end): Likewise.
1770         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1771         * elf/elf.h (R_386_IRELATIVE): New macro.
1772         (R_X86_64_IRELATIVE): New macro.
1773         (R_386_NUM): Updated.
1774         (R_X86_64_NUM): Likewise.
1775         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1776         (libc_ifunc_hidden_def): New macro.
1777         * sysdeps/generic/dl-irel.h: New file.
1778         * sysdeps/i386/dl-irel.h: New file.
1779         * sysdeps/x86_64/dl-irel.h: New file.
1780         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1781         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1782         Handle R_386_IRELATIVE.
1783         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1784         (elf_machine_lazy_rela): Likewise.
1785         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1786         R_X86_64_IRELATIVE.
1787         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1789 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1791         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1792         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
1793         are no differences.  If an architecture has bits in CPUID index 1
1794         meaning different things the values for the COMMON_CPUID_INDEX_1
1795         index must not be set.
1796         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1797         (HAS_POPCOUNT): ...this.  New macro.
1798         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1799         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
1800         to set the value for Intel and AMD architectures.
1801         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1802         INTEL_CPUID_INDEX_1.
1803         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1804         change.
1806 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1808         * configure.in: Move AC_CANONICAL_HOST before first use of $host
1809         and $build.
1811 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1813         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1814         (__expm1l): Set errno to ERANGE on overflow.
1815         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1816         (__tanl): Set errno to EDOM for Â±Inf.
1817         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1818         (__cosl): Set errno to EDOM for Â±Inf.
1819         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1820         (__sinl): Set errno to EDOM for Â±Inf.
1822         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1823         defined, use it.
1824         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1825         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1826         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1828 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
1830         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
1831         code accessing it.
1832         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1834 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
1836         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
1837         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1838         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1839         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1841         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1842         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1843         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1844         defined.
1845         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1846         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1848 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
1850         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1851         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1852         is, either do nothing at all if __ASSUME_ACCEPT4, or
1853         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1854         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1855         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1856         define.
1857         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1858         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1859         internal_accept4 in socket directory.
1861 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1863         * sysdeps/ia64/configure.in: New file.
1865 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1867         [BZ #10162]
1868         * sysdeps/ia64/memchr.S: Use speculative load.
1870         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1871         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1872         use it.
1874         * sysdeps/i386/__longjmp.S: Add .text.
1875         * sysdeps/x86_64/__longjmp.S: Likewise.
1877 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
1879         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1880         __ASSUME_ACCEPT4 for IA-64.
1882 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
1884         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1886         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1887         (SOCKOP_accept4): Define.
1889 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
1891         Sun approved the change of the license.
1892         * sunrpc/auth_des.c: Replace license text.
1893         * sunrpc/auth_none.c: Likewise.
1894         * sunrpc/auth_unix.c: Likewise.
1895         * sunrpc/authdes_prot.c: Likewise.
1896         * sunrpc/authuxprot.c: Likewise.
1897         * sunrpc/bindrsvprt.c: Likewise.
1898         * sunrpc/clnt_gen.c: Likewise.
1899         * sunrpc/clnt_perr.c: Likewise.
1900         * sunrpc/clnt_raw.c: Likewise.
1901         * sunrpc/clnt_simp.c: Likewise.
1902         * sunrpc/clnt_tcp.c: Likewise.
1903         * sunrpc/clnt_udp.c: Likewise.
1904         * sunrpc/clnt_unix.c: Likewise.
1905         * sunrpc/des_crypt.c: Likewise.
1906         * sunrpc/des_soft.c: Likewise.
1907         * sunrpc/get_myaddr.c: Likewise.
1908         * sunrpc/getrpcport.c: Likewise.
1909         * sunrpc/key_call.c: Likewise.
1910         * sunrpc/key_prot.c: Likewise.
1911         * sunrpc/openchild.c: Likewise.
1912         * sunrpc/pm_getmaps.c: Likewise.
1913         * sunrpc/pm_getport.c: Likewise.
1914         * sunrpc/pmap_clnt.c: Likewise.
1915         * sunrpc/pmap_prot.c: Likewise.
1916         * sunrpc/pmap_prot2.c: Likewise.
1917         * sunrpc/pmap_rmt.c: Likewise.
1918         * sunrpc/rpc/auth.h: Likewise.
1919         * sunrpc/rpc/auth_unix.h: Likewise.
1920         * sunrpc/rpc/clnt.h: Likewise.
1921         * sunrpc/rpc/des_crypt.h: Likewise.
1922         * sunrpc/rpc/key_prot.h: Likewise.
1923         * sunrpc/rpc/netdb.h: Likewise.
1924         * sunrpc/rpc/pmap_clnt.h: Likewise.
1925         * sunrpc/rpc/pmap_prot.h: Likewise.
1926         * sunrpc/rpc/pmap_rmt.h: Likewise.
1927         * sunrpc/rpc/rpc.h: Likewise.
1928         * sunrpc/rpc/rpc_des.h: Likewise.
1929         * sunrpc/rpc/rpc_msg.h: Likewise.
1930         * sunrpc/rpc/svc.h: Likewise.
1931         * sunrpc/rpc/svc_auth.h: Likewise.
1932         * sunrpc/rpc/types.h: Likewise.
1933         * sunrpc/rpc/xdr.h: Likewise.
1934         * sunrpc/rpc_clntout.c: Likewise.
1935         * sunrpc/rpc_cmsg.c: Likewise.
1936         * sunrpc/rpc_common.c: Likewise.
1937         * sunrpc/rpc_cout.c: Likewise.
1938         * sunrpc/rpc_dtable.c: Likewise.
1939         * sunrpc/rpc_hout.c: Likewise.
1940         * sunrpc/rpc_main.c: Likewise.
1941         * sunrpc/rpc_parse.c: Likewise.
1942         * sunrpc/rpc_parse.h: Likewise.
1943         * sunrpc/rpc_prot.c: Likewise.
1944         * sunrpc/rpc_sample.c: Likewise.
1945         * sunrpc/rpc_scan.c: Likewise.
1946         * sunrpc/rpc_scan.h: Likewise.
1947         * sunrpc/rpc_svcout.c: Likewise.
1948         * sunrpc/rpc_tblout.c: Likewise.
1949         * sunrpc/rpc_util.c: Likewise.
1950         * sunrpc/rpc_util.h: Likewise.
1951         * sunrpc/rpcinfo.c: Likewise.
1952         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1953         * sunrpc/rpcsvc/key_prot.x: Likewise.
1954         * sunrpc/rpcsvc/klm_prot.x: Likewise.
1955         * sunrpc/rpcsvc/mount.x: Likewise.
1956         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1957         * sunrpc/rpcsvc/rex.x: Likewise.
1958         * sunrpc/rpcsvc/rstat.x: Likewise.
1959         * sunrpc/rpcsvc/rusers.x: Likewise.
1960         * sunrpc/rpcsvc/sm_inter.x: Likewise.
1961         * sunrpc/rpcsvc/spray.x: Likewise.
1962         * sunrpc/rpcsvc/yppasswd.x: Likewise.
1963         * sunrpc/rtime.c: Likewise.
1964         * sunrpc/svc.c: Likewise.
1965         * sunrpc/svc_auth.c: Likewise.
1966         * sunrpc/svc_authux.c: Likewise.
1967         * sunrpc/svc_raw.c: Likewise.
1968         * sunrpc/svc_run.c: Likewise.
1969         * sunrpc/svc_simple.c: Likewise.
1970         * sunrpc/svc_tcp.c: Likewise.
1971         * sunrpc/svc_udp.c: Likewise.
1972         * sunrpc/svc_unix.c: Likewise.
1973         * sunrpc/svcauth_des.c: Likewise.
1974         * sunrpc/xcrypt.c: Likewise.
1975         * sunrpc/xdr.c: Likewise.
1976         * sunrpc/xdr_array.c: Likewise.
1977         * sunrpc/xdr_float.c: Likewise.
1978         * sunrpc/xdr_mem.c: Likewise.
1979         * sunrpc/xdr_rec.c: Likewise.
1980         * sunrpc/xdr_ref.c: Likewise.
1981         * sunrpc/xdr_sizeof.c: Likewise.
1982         * sunrpc/xdr_stdio.c: Likewise.
1984         * po/da.po: Update from translation team.
1986 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1988         * sysdeps/sh/____longjmp_chk.S: New file.
1989         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1990         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1992 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
1993             Ulrich Drepper  <drepper@redhat.com>
1995         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1996         (__nscd_cache_search): Assume each entry in the
1997         hash chain needs one hashentry and half of datahead.  Use
1998         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2000 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2002         * posix/sys/wait.h: Fix typos.  Pretty printing.
2003         * stdlib/stdlib.h: Likewise.  Correct comments.
2005         [BZ #10159]
2006         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2008         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2009         patch.
2011 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2013         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2014         Use it if we absolutely cannot reach any more correct list elements
2015         because that many do not fit into the currently mapped database.
2017 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2019         * nscd/nscd_helper.c: Include stddef.h.
2020         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2021         in a couple of places.  Return NULL if trail is not less than
2022         datasize, don't consider dataheads with length smaller than
2023         offsetof (struct datahead, data) + datalen.
2024         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2025         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2026         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2027         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2028         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2029         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2030         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2032         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2033         Rename ...
2034         (fallocate64): ... to this.
2035         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2036         Rename ...
2037         (fallocate64): ... to this.
2038         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2039         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2040         fallocate64@@GLIBC_2.10.
2041         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2042         fallocate64@@GLIBC_2.11.
2043         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2045         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2046         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2048         * nscd/selinux.c (nscd_avc_destroy): Removed.
2049         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2050         * nscd/nscd.c (termination_handler): Don't call
2051         nscd_avc_destroy.
2053 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2055         * include/atomic.h: Formatting.
2056         (catomic_compare_and_exchange_val_acq): Don't define if already
2057         defined by bits/atomic.h.
2059 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2061         * math/libm-test.inc (expm1_test): Add test for range error.
2063         * Versions.def: Add GLIBC_2.11 for libc.
2064         * debug/Makefile (routines): Add longjmp_chk.
2065         Add rules to build and run tst-longjmp_chk.
2066         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2067         * debug/longjmp_chk.c: New file.
2068         * debug/tst-longjmp_chk.c: New file.
2069         * include/bits/setjmp2.: New file.
2070         * include/stdio.h: Mark __fortify_fail as internal_function.
2071         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2072         * setjmp/bits/setjmp2.h: New file.
2073         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2074         of the aliases.
2075         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2076         defined.
2077         * sysdeps/i386/____longjmp_chk.S: New file.
2078         * sysdeps/x86_64/____longjmp_chk.S: New file.
2079         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2080         * sysdeps/x86_64/__longjmp.S: Likewise.
2082         * version.h: Bump for 2.11 development.
2084         * elf/check-execstack.c: New file.
2085         * elf/Makefile: Add rules to build and run check-execstack.
2087 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2089         * version.h (VERSION): Bump to 2.10.1.
2091         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2092         compatibility functions.
2093         * nss/getXXent_r.c: Likewise.
2094         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2095         * gshadow/getsgnam_r.c: Likewise.
2096         * gshadow/Version: Remove duplicate entries.
2098         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2099         for recent processor.
2100         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2101         Likewise.
2103 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2105         * version.h (VERSION): Bump for 2.10 release.
2106         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2108         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2109         same place we add ASFLAGS-config.
2111 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2113         [BZ #10128]
2114         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2115         or FORMERR and the other NOERROR, don't raise an error.
2117 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2119         [BZ #10118]
2120         * Makeconfig (+asflags): New variable based upon ASFLAG or
2121         asflags-cpu.
2122         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2123         * config.make.in (asflags-cpu): Add variable based upon
2124         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2125         the assembler.
2126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2127         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2128         recognizes power6 instruction set due to passing -mcpu=power6 from
2129         --with-cpu=power6 when compiling .S files.
2130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2131         Likewise.
2132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2133         Likewise.
2134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2135         Likewise.
2137 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2139         * string/stratcliff.c (do_test): Test for zero length
2140         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2141         at the end of the page.
2143 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2145         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2147         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2148         count is zero.
2150         * po/da.po: Update from translation team.
2152 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2154         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2155         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2157 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2159         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2160         and READ_IMPLIES_EXEC.
2162 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2164         * po/da.po: Update from translation team.
2166 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2168         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2169         comment change.
2171 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2173         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2174         to MAP_ANON in PROT_NONE mmap64 call.
2175         (open_archive): Likewise.
2176         (file_data_available_p): Use mmap64 instead of mremap.
2177         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2178         Attempt to reserve address space after mmap64 region.
2180 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2182         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2183         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2184         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2186         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2187         atanh should set ERANGE.
2189         [BZ #10087]
2190         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2191         result of lookup to make call to implement STT_GNU_IFUNC.
2192         (_dl_profile_fixup): Likewise.
2193         Patch by H.J. Lu <hjl.tools@gmail.com>.
2195         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2196         warning.
2198         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2199         from definition.
2201         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2202         label if it is not used.
2204         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2205         of gmon_hist_hdr and gmon_hdr structures and use them.
2206         * elf/sprof.c: Likewise.
2208         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2209         warning.
2211         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2213         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2214         to avoid cast.
2216         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2217         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2218         to avoid warnings.
2219         (iruserok_af): Use ss_family instead of casts.
2221         * gmon/gmon.c (write_hist): Define real-type variant of
2222         gmon_hist_hdr structure and use it.
2223         (write_gmon): Likewise for gmon_hdr.
2225         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2226         function if we are not going to define it.
2227         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2229         * inet/inet6_option.c (option_alloc): Add temporary variable to
2230         avoid warning.
2232         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2233         name of VTable element.
2234         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2235         * libio/iovsscanf.c: Likewise.
2236         * libio/vasprintf.c: Likewise.
2237         * libio/vsnprintf.c: Likewise.
2238         * stdio-common/isoc99_vsscanf.c: Likewise.
2239         * stdlib/strfmon_l.c: Likewise.
2240         * debug/vasprintf_chk.c: Likewise.
2241         * debug/vsnprintf_chk.c: Likewise.
2242         * debug/vsprintf_chk.c: Likewise.
2244         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2245         function pointers.
2247 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2249         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2251 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2253         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2255         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2256         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2257         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2258         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2259         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2260         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2261         * math/libm-test.inc: Add tests for errno after tan calls with
2262         Â±Inf.
2264         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2265         errno value vor pow(+-0,neg).
2266         * math/libm-test.inc (pow_test): Add tests for errno value for
2267         pole errors.
2269         * math/w_fmod.c: Also handle x=±Inf as error.
2270         * math/w_fmodf.c: Likewise.
2271         * math/w_fmodl.c: Likewise.
2272         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2273         x=±Inf or y=0.
2275         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2276         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2277         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2278         * sysdeps/i386/fpu/s_sin.S: Likewise.
2279         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2280         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2281         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2282         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2283         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2284         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2285         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2286         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2287         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2288         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2289         Â±Inf.
2291         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2292         ERANGE for underflows.
2293         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2295         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2296         the 2001 revision.
2298         * libio/tst-widetext.input: Remove surrogates.
2300         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2302         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2303         for lgamma should set errno to ERANGE, not EDOM.
2304         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2306 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2308         [BZ #10093]
2309         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2310         UTF-16 surrogates.
2312         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2313         space when temporarily mapping the whole content of the old file.
2315         [BZ #10100]
2316         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2317         not zero.
2319 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2321         * iconvdata/sjis.c (BODY): Don't advance inptr before
2322         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2323         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2324         two byte chars.
2326 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2328         * locale/locarchive.h (struct locarhandle): Rename len field to
2329         mmaped and add new reserved field.
2330         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2331         (create_archive): Reserve address space and then map file into it.
2332         (open_archive): Likewise.
2333         (file_data_available_p): New function.
2334         (compare_from_file): New function.
2335         (close_archive): Adjust to member name changes.
2336         (add_locale): Before comparing locale data, check it is mapped.
2337         Otherwise fall back to reading from the file.
2339 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2341         * stdio-common/psiginfo.c: Include <errno.h>.
2343 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2345         [BZ #9920]
2346         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2347         to get consistency between 32 and 64 bit architectures.
2349         [BZ #10052]
2350         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2351         directory for dummy syscall rules.
2352         Patch by Chris Steinbroner <hesh@pobox.com>.
2354 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2356         [BZ #10092]
2357         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2358         MNT_EXPIRE.
2360 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2362         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2363         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2365 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2367         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2368         data from vector to temporary buffer and call PWRITEV after it
2369         instead of vice versa.
2370         * sysdeps/posix/preadv.c: Fix up comment.
2371         * misc/preadv.c: Likewise.
2372         * misc/preadv64.c: Likewise.
2373         * misc/pwritev.c: Likewise.
2374         * misc/pwritev64.c: Likewise.
2375         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2377 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2379         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2381         * shadow/Makefile (tests): Add tst-shadow.
2382         * shadow/tst-shadow.c: New file.
2384         [BZ #9955]
2385         * gshadow/Makefile: New file.
2386         * gshadow/Versions: New file.
2387         * gshadow/fgetsgent.c: New file.
2388         * gshadow/fgetsgent_r.c: New file.
2389         * gshadow/getsgent.c: New file.
2390         * gshadow/getsgent_r.c: New file.
2391         * gshadow/getsgnam.c: New file.
2392         * gshadow/getsgnam_r.c: New file.
2393         * gshadow/gshadow.h: New file.
2394         * gshadow/putsgent.c: New file.
2395         * gshadow/sgetsgent.c: New file.
2396         * gshadow/sgetsgent_r.c: New file.
2397         * gshadow/tst-gshadow.c: New file.
2398         * include/gshadow.h: New file.
2399         * Makeconfig (all-subdirs): Add gshadow.
2400         * Makefile (installed-headers): Add gshadow/gshadow.h.
2401         * nss/Makefile (databases): Add sgrp.
2402         * nss/Versions: Add gshadow functions as private exports.
2403         * nss/nsswitch.conf: Add gshadow entry.
2404         * nss/sgrp-lookup.c: New file.
2405         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2406         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2407         * nss/nss_files/files-sgrp.c: New file.
2408         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2409         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2411 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2413         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2414         * stdio-common/reg-modifier.c: Likewise.
2416 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2418         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2419         is no FPU.
2421 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2423         [BZ #10086]
2424         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2425         headers up to 2.6.30.
2427         * po/ca.po: Update from translation team.
2429 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2431         [BZ #10069]
2432         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2433         an object that uses static TLS if the TLS modid is higher than the
2434         reserve we always allocate.  At least for multi-threaded code.
2436 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2438         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2439         Numerically stable check for valid width.
2441         * locale/programs/locarchive.c (open_archive): Map the entire file
2442         and not just the administrative data.
2443         (add_locale): When we find a hash sum match compare the content
2444         to be sure.
2446         * malloc/malloc.c (malloc_info): Output address space information.
2448 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2450         * malloc/malloc.c (malloc_info): Also output system memory information.
2452         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2453         architectures have preadv/pwritev in 2.6.30.
2455         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2456         * sysdeps/posix/readv.c: Likewise.
2457         Reported by Markus Armbruster <armbru@redhat.com>.
2459         * malloc/hooks.c (top_check): Force hook value into register.
2461 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2463         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2464         calls to _dl_relocate_object.
2466 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2468         [BZ #9957]
2469         * malloc/malloc.c (force_reg): Define.
2470         (sYSMALLOc): Load hook variable into variable
2471         before test and force into register.
2472         (sYSTRIm): Likewise.
2473         (public_mALLOc): Force hook value into register.
2474         (public_fREe): Likewise.
2475         (public_rEALLOc): Likewise.
2476         (public_mEMALIGn): Likewise.
2477         (public_vALLOc): Likewise.
2478         (public_pVALLOc): Likewise.
2479         (public_cALLOc): Likewise.
2480         (__posix_memalign): Likewise.
2481         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2482         before test and force into register.
2483         * malloc/hooks.c (top_check): Likewise.
2484         (public_sET_STATe): Pretty printing.
2486         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2487         in case we only receive one reply in single-request mode.
2489 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2491         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2492         are dlopened in statically linked program even for __LM_ID_CALLER.
2494 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2496         * resolv/res_send.c (send_dg): Don't switch into single-request
2497         mode if we already are in it.
2499 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2501         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2502         are always at least 4 bytes in the returned line.
2504 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2506         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2507         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2508         instead of 8K.  Stop searching in /proc/stat after hitting first
2509         line not starting with cpu.
2510         (next_line): Truncate too long
2511         lines at buffer size * 3/4 instead of pretending there were line
2512         breaks inside of large lines.
2514 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2516         * sysdeps/x86_64/mp_clz_tab.c: New file.
2518 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2519             Ulrich Drepper  <drepper@redhat.com>
2521         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2522         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2523         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2525 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2527         * sysdeps/sh/libc-tls.c: New file.
2529         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2531 2009-04-14  Roland McGrath  <roland@redhat.com>
2533         * elf/elf.h: Add various missing ARM constants, to match binutils.
2535 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2537         Optimizations from GMP.
2538         * sysdeps/x86_64/add_n.S: New file.
2539         * sysdeps/x86_64/addmul_1.S: New file.
2540         * sysdeps/x86_64/lshift.S: New file.
2541         * sysdeps/x86_64/mul_1.S: New file.
2542         * sysdeps/x86_64/rshift.S: New file.
2543         * sysdeps/x86_64/sub_n.S: New file.
2544         * sysdeps/x86_64/submul_1.S: New file.
2546 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2548         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2549         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2550         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2551         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2553 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2555         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2556         preadv/pwritev.
2558 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2560         * sysdeps/x86-64/strrchr.S: New file.
2562 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2564         * stdio-common/printf.h (struct printf_info): Add user element.
2565         New types printf_arginfo_size_function, printf_va_arg_function.
2566         Declare register_printf_specifier, register_printf_modifier,
2567         register_printf_type.
2568         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2569         (union printf_arg): Add pa_user element.
2570         Adjust __printf_arginfo_table type.
2571         Add __printf_va_arg_table, __printf_modifier_table,
2572         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2573         declarations.
2574         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2575         If registered arginfo call failed try normal specifier.
2576         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2577         function.
2578         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2579         * stdio-common/Versions: Export register_printf_modifier,
2580         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2581         * stdio-common/reg-modifier.c: New file.
2582         * stdio-common/reg-type.c: New file.
2583         * stdio-common/reg-printf.c (__register_printf_specifier): New
2584         function.  Mostly the old __register_printf_function function but
2585         uses locking and type of third parameter changed.
2586         (__register_printf_function): Implement using
2587         __register_printf_specifier.
2588         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2589         calls to arginfo functions.  Allocate enough memory for user-defined
2590         types.  Call new va_arg functions to get user-defined types.
2591         Try installed handlers even for existing format specifiers first.
2593 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2595         * sysdeps/x86_64/rawmemchr.S: New file.
2597         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2598         Simplified code and possible copy problem fixed.
2600         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2601         function if it is not defined.  Add some necessary casts.
2602         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2604         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2605         have preadv/pwritev in 2.6.30.
2607 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2609         * malloc/malloc.c (malloc_info): New function.
2610         * malloc/malloc.h: Declare it.
2611         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2613         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2614         to avoid PLT slot.
2616         * malloc/malloc.c (_int_realloc): Add parameter with old block
2617         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2618         Adjust all callers.
2619         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2621 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2623         * sysdeps/x86_64/strchrnul.S: New file.
2625         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2626         depending libcrypt on -lfreebl3.
2628         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2629         preadv/pwritev in 2.6.30.
2631         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2632         instead of __strcasecmp.
2634         * string/stratcliff.c (do_test): Add memchr tests..
2635         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2636         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2637         first read quad word.
2639 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2641         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2642         * string/tst-svc.input: Add new test case.
2643         * string/tst-svc.expect: Adjust.
2644         * string/Makefile: Don't ignore tst-svc error.
2646         * sysdeps/x86_64/memchr.S: New file.
2648         * resolv/resolv.h (RES_SNGLKUP): Define.
2649         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2650         * resolv/res_send.c (send_dg): If we sent two requests at once and
2651         only get one reply before timeout switch to mode where we send the
2652         second request only after the first answer has been received.
2654 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2656         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2657         * sysdeps/x86_64/strchr.S: Likewise.
2659 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2661         * configure.in: We need to test for the compiler earlier.
2663         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2664         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2665         GLIBC_2.10.
2666         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2667         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2668         and pwritev.
2669         * misc/preadv.c: New file.
2670         * misc/preadv64.c: New file.
2671         * misc/pwritev.c: New file.
2672         * misc/pwritev64.c: New file.
2673         * sysdeps/posx/preadv.c: New file.
2674         * sysdeps/posx/preadv64.c: New file.
2675         * sysdeps/posx/pwritev.c: New file.
2676         * sysdeps/posx/pwritev64.c: New file.
2677         * sysdeps/unix/sysv/linux/preadv.c: New file.
2678         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2679         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2680         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2681         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2682         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2684         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2685         compatibility code.
2686         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2688         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2689         __ASSUME_COMPLETE_READV_WRITEV.
2690         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2691         with modern kernels.
2692         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2694         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2695         to free a possible malloced buffer in case of cancellation.
2696         * sysdeps/posix/writev.c: Likewise for write.
2698 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2700         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2702         * configure.in: Recognize --enable-nss-crypt.
2703         * config.make.in: Add nss-crypt entry.
2704         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2705         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2706         and include path for NSS directory to compiler for md5-crypt,
2707         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2708         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2709         function implementation, use NSS.  Introduce wrappers around the
2710         hash function calls.  Little code size optimization.
2711         * crypt/sha256-crypt.c: Likewise.
2712         * crypt/sha512-crypt.c: Likewise.
2713         * scripts/check-local-headers.sh: Ignore nss3 directory.
2715         * configure.in: Rename pic_default to libc_cv_pic_default.
2716         * config.make.in: Likewise.
2718 2009-04-01  Roland McGrath  <roland@redhat.com>
2720         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2721         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2722         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2723         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2724         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2725         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2726         (R_SPARC_NUM): Update.
2727         From Dave Miller <davem@davemloft.net>.
2729 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2731         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2733 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2735         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2736         those which are used.
2737         * elf/dl-addr.c: Likewise.
2738         * elf/dl-caller.c: Likewise.
2739         * elf/dl-fini.c: Likewise.
2740         * elf/dl-iteratephdr.c: Likewise.
2741         * elf/dl-libc.c: Likewise.
2742         * elf/dl-load.c: Likewise.
2743         * elf/dl-support.c: Likewise.
2744         * elf/dl-sym.c: Likewise.
2745         * elf/rtld.c: Likewise.
2746         * sysdeps/generic/ldsodefs.h: Likewise.
2748         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2749         * elf/dl-minimal.c: Likewise.
2750         * elf/dl-misc.c: Likewise.
2751         * elf/rtld.c: Likewise.
2752         * sysdeps/generic/ldsodefs.h: Likewise.
2754 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2756         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2757         Avoid reuse of complex expression.
2759         * po/fr.po: Update from translation team.
2761 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2763         * include/dirent.h: Yet more changes to match sort function type
2764         change.
2765         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2766         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2767         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2769 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2771         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2773 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2775         * nscd/connections.c (restart): Try to preserve the process name
2776         by reading the /proc/self/exe symlink and using the return name.
2777         Patch by Jeff Bastian <jbastian@redhat.com>.
2779 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2781         [BZ #9733]
2782         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2783         if we are not loading a new audit library.
2784         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2785         Only use profiling trampoline for auditing if we are not relocating
2786         an audit library.
2787         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2788         * elf/rtld.c: Likewise.
2789         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2791         * elf/rtld.c (dl_main): Extend help message for --audit option.
2793         [BZ #9759]
2794         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2795         alphasort64, versionsort, and versionsort64 to POSIX 2008.
2796         * dirent/alphasort.c: Adjust implementation to type change.
2797         * dirent/alphasort64.c: Likewise.
2798         * dirent/scandir.c: Likewise.
2799         * dirent/versionsort.c: Likewise.
2800         * dirent/versionsort64.c: Likewise.
2801         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2802         declaration.
2803         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2804         declaration.
2806         [BZ #9880]
2807         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2808         correctly.  Set segleft member in output as required.
2809         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2810         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2812         [BZ #9881]
2813         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2814         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2815         * inet/Makefile (tests): Add tst-inet6_rth.
2816         * inet/tst-inet6_rth.c: New file.
2818         [BZ #5807]
2819         * string/strlen.c (strlen): Fix omission in the expression to test
2820         for NUL bytes.
2822 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2824         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2826         * elf/dl-runtime.c (reloc_offset): Define.
2827         (reloc_index): Define.
2828         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2829         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
2830         computing index from reloc_offset.
2831         (_dl_call_pltexit): Likewise.
2832         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2833         the relocation index to _dl_fixup.
2834         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2835         _dl_call_pltexit.
2836         * sysdeps/x86_64/dl-runtime.c: New file.
2838         [BZ #9893]
2839         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2840         alignment of La_x86_64_regs.  Store xmm parameters.
2841         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2843         [BZ #9913]
2844         * string/strverscmp.c (__strverscmp): Fix case of different digits
2845         in fractional part of string.
2846         Patch by Jingyu Liu <jyliu@fortinet.com>.
2847         * string/Makefile (tests): Add tst-svc2.
2848         * string/tst-svc2.c: New file.
2850         * string/strverscmp.c (__strverscmp): Optimize size of tables.
2852         * locale/iso-639.def: Add Min Nan.
2854 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2856         [BZ #9948]
2857         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2859 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2861         * elf/dl-sysdep.c (auxvars): Compress data structure.
2863         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2864         STT_GNU_IFUNC handling.
2865         (elf_machine_rela): Likewise.
2867 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
2869         * config.h.in (USE_MULTIARCH): Define.
2870         * configure.in: Handle --enable-multi-arch.
2871         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2872         (_dl_fixup_profile): Likewise.
2873         * elf/do-lookup.c (dl_lookup_x): Likewise.
2874         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2875         * elf/elf.h (STT_GNU_IFUNC): Define.
2876         * include/libc-symbols.h (libc_ifunc): Define.
2877         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2878         framework in init-arch.h to get CPUID values.
2879         * sysdeps/x86_64/multiarch/Makefile: New file.
2880         * sysdeps/x86_64/multiarch/init-arch.c: New file.
2881         * sysdeps/x86_64/multiarch/init-arch.h: New file.
2882         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2884         * config.make.in (experimental-malloc): Define.
2885         * configure.in: Handle --enable-experimental-malloc.
2886         * malloc/Makefile: Handle experimental-malloc flag.
2887         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2888         * malloc/arena.c: Likewise.
2889         * malloc/hooks.c: Likewise.
2890         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2892 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
2894         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2895         prediction.  A few size optimizations.
2897 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2899         * time/tzset.c: Optimize a bit for size.
2901 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2903         * include/stdio.h (fmemopen): Add libc_hidden_proto.
2904         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2906         * elf/sprof.c: Avoid warning about multi-line comment.
2908 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2910         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2911         DST name.
2912         * time/tst-posixtz.c: Add tests for quoted timezone names.
2914 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2916         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2917         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2918         200809L instead of 200112L.
2919         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2920         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2922         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2923         instead of __quick_exit_funcs to __run_exit_handlers.
2924         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2925         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2926         (__cxa_at_quick_exit): Remove attribute_hidden.
2927         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2928         to __run_exit_handlers.
2929         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2930         attribute_hidden.
2932 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2934         * po/id.po: Update from translation team.
2936 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2939         .machine push; .machine "power6" and .machine pop around mtfsf
2940         insns outside of _ARCH_PWR6 define.
2941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2943         Likewise.
2944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2945         Likewise.
2946         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2947         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2948         relax_fenv_state): Likewise.
2950 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
2952         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2953         cxa_at_quick_exit.
2954         (static-only-routines): Add at_quick_exit.
2955         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2956         GLIBC_2.10.
2957         * stdlib/quick_exit.c: New file.
2958         * stdlib/at_quick_exit.c: New file.
2959         * stdlib/cxa_at_quick_exit.c: New file.
2960         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
2961         it appropriately.
2962         (__internal_atexit): New function.
2963         (__new_exitfn): Now takes parameter to point to the list to use.
2964         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2965         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
2966         (exit): ...here.  Just call __run_exit_handlers appropriately.
2967         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2968         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
2969         * stdlib/on_exit.c: Adjust call to __new_exitfn.
2970         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2972         * po/id.po: Update from translation team.
2974 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
2976         * po/ru.po: Update from translation team.
2978 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
2980         * po/nl.po: Update from translation team.
2982 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
2984         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2985         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2986         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2987         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2988         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2989         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2990         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2992         * po/pl.po: Update from translation team.
2994 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2996         [BZ #7083]
2997         * sysdeps/unix/sysv/linux/fallocate.c: New file.
2998         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2999         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3000         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3001         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3002         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3003         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3004         for GLIBC_2.10.
3005         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3006         Add fallocate and fallocate64.
3008         * io/fcntl.h: Pretty printing.
3010 2009-03-02  Richard Guenther  <rguenther@suse.de>
3012         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3013         attribute also for non-C99 inline semantics variant.
3015 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3017         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3018         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3019         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3020         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3022         Likewise.
3023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3024         Likewise.
3026 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3028         * po/cs.po: Update from translation team.
3030 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3032         * po/bg.po: Update from translation team.
3033         * po/sv.po: Likewise.
3034         * po/fi.po: Likewise.
3035         * po/vi.po: Likewise.
3037 2009-02-27  Roland McGrath  <roland@redhat.com>
3039         * Makeconfig (%.v.i): Depend on Makeconfig.
3040         Exclude % lines from initial #-comment removal.
3042 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3044         * po/ko.po: Update from translation team.
3046 2009-02-26  Roland McGrath  <roland@redhat.com>
3048         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3049         avoids unused warning.
3051 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3052             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3054         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3055         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3056         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3057         and asm/user.h.  Include asm/ptrace.h.
3058         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3059         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3060         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3061         Undefine.
3062         (start_thread): Don't undefine.
3063         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3064         Define.
3066 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3068         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3069         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3070         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3071         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3072         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3073         200112L to 200809L.
3074         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3075         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3076         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3077         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3078         _SC_THREAD_ROBUST_PRIO_PROTECT.
3079         * posix/unistd.h: fexecve is in POSIX 2008.
3080         * time/time.h: strftime_l is in POSIX 2008.
3081         * io/sys/stat.h: futimens is in POSIX 2008.
3082         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3083         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3084         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3085         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3086         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3087         open_memstream, and vdprintf are in POSIX 2008.
3089 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3091         * include/features.h: Define macros for XPG7/POSIX 2008.
3092         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3093         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3094         POSIX 2008.
3095         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3096         * locale/xlocale.h: Define locale_t type.
3097         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3098         in POSIX 2008.  Don't define locale_t here.
3099         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3100         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3101         UTIME_OMIT only with __USE_ATFILE.
3102         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3103         * stdio-common/psiginfo.c: New file.
3104         * stdio-common/psiginfo-data.h: New file.
3105         * stdio-common/psiginfo-define.h: New file.
3106         * stdio-common/Makefile (routines): Add psiginfo.
3107         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3108         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3109         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3110         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3111         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3112         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3113         * io/sys/stat.h: Move mknodat definition into same conditional as
3114         mknod.
3115         * time/sys/time.h: futimesat is not among the functions accepted
3116         into the POSIX standard.
3118         * include/features.h: If no feature selection given and we select
3119         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3120         * posix/Versions: Export __posix_getopt.
3121         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3122         Use it to alternatively initialize __posixly_correct.
3123         (_getopt_internal_r): Take addition parameter.  Pass on to
3124         _getopt_initialize.
3125         (_getopt_internal): Take addition parameter.  Pass on to
3126         _getopt_internal_r.
3127         (getopt): Pass additional zero to _getopt_internal.
3128         (__posix_getopt): New function.
3129         * posix/getopt.h: Add redirection for getopt.
3130         * posix/getopt1.c (getopt_long): Pass additional zero to
3131         _getopt_internal.
3132         (getopt_long_only): Likewise.
3133         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3134         (_getopt_long_only_r): Likewise.
3135         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3136         _getopt_internal_r.
3138 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3140         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3141         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3142         * sysdeps/posix/sysconf.c (__sysconf): Handle
3143         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3144         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3146 2009-02-24  Roland McGrath  <roland@redhat.com>
3148         [BZ #9895]
3149         * README.template: Reworded not to use substituted version number.
3150         Renamed to ...
3151         * README: ... here (no longer generated).
3152         * Makefile (README): Target removed.
3154 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3156         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3157         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3158         instead.
3160         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3162         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3164 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3166         * po/bg.po: Update from translation team.
3168 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3170         * stdlib/monetary.h: Uglify function parameter names.
3171         * sunrpc/rpc/pmap_clnt.h: Likewise.
3172         * sunrpc/rpc/svc.h: Likewise.
3173         * sunrpc/rpc/xdr.h: Likewise.
3174         * sunrpc/rpc/clnt.h: Likewise.
3175         * resolv/netdb.h: Likewise.
3176         * resolv/arpa/nameser.h: Likewise.
3177         * resolv/resolv.h: Likewise.
3178         * argp/argp.h: Likewise.
3179         * locale/langinfo.h: Likewise.
3180         * io/sys/stat.h: Likewise.
3181         * posix/spawn.h: Likewise.
3182         * nis/rpcsvc/nislib.h: Likewise.
3183         * malloc/obstack.h: Likewise.
3184         * sysdeps/ia64/bits/link.h: Likewise.
3185         * sysdeps/i386/bits/link.h: Likewise.
3186         * sysdeps/s390/bits/link.h: Likewise.
3187         * sysdeps/powerpc/bits/link.h: Likewise.
3188         * sysdeps/x86_64/bits/link.h: Likewise.
3189         * sysdeps/sparc/bits/link.h: Likewise.
3190         * sysdeps/sh/bits/link.h: Likewise.
3191         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3192         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3193         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3194         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3196 2008-12-01  Fredrik Unger  <fred@tree.se>
3198         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3199         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3200         _FP_UNPACK_RAW_2, fix up first argument.
3202 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3204         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3205         (GET_NPROCS_PARSER): Change parameters and use next_line.
3206         (__get_nprocs): Rewrite to not use stdio routines.
3207         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3208         Change parameters and use next_line.
3210 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3212         [BZ #5381]
3213         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3214         Change mempool_alloc prototype.
3215         * nscd/mem.c (gc): Don't handle mem_in_flight.
3216         (mempool_alloc): Third parameter now only indicates whether this is the
3217         first call (to allocate data) or not.  If it is, get db rdlock.
3218         Release it on error.  Don't handle mem_in_flight.
3219         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3220         Adjust third parameter of mempool_alloc calls.
3221         Nothing to do here in case mempool_alloc fails.
3222         Avoid local variable shadowing parameter.  No need to get db rdlock
3223         before calling cache_add.
3224         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3225         no mem_in_flight array anymore.
3226         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3227         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3228         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3229         in case mempool_alloc fails. No need to get db rdlock before calling
3230         cache_add.
3231         * nscd/hstcache.c (cache_addhst): Likewise.
3232         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3233         * nscd/servicescache.c (cache_addserv): Likewise.
3234         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3236 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3238         * po/lt.po: Update from translation team.
3240 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3242         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3243         defined, allow additional data to be added using the optional
3244         MORE_ELF_HEADER_DATA macro.
3245         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3246         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3248 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3250         * include/atomic.h: Define catomic_and if not already defined.
3251         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3252         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3254 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3256         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3257         Change all callers.
3258         (_int_realloc): Likewise.  Third argument is now padded size
3259         All _int_* functions are now static.
3261         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3262         * malloc/arena.c: Likewise.
3263         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3264         functions.
3266         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3267         easily.
3269         * malloc/malloc.c: Add branch prediction for use of the hooks.
3271         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3273 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3275         [BZ #7095]
3276         * bits/confname.h: Add SUSv7 macros for getconf environments.
3277         * bits/environments.h: Likewise.
3278         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3279         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3280         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3281         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3282         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3283         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3284         * posix/getconf.c: Likewise.
3285         * posix/sysconf.c: Likewise.
3286         * sysdeps/posix/sysconf.c: Likewise.
3287         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3288         environments.
3290 2009-01-16  Petr Baudis  <pasky@suse.cz>
3292         [BZ #9753]
3293         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3294         even if we currently have zero nscount.
3296 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3298         [BZ #9781]
3299         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3300         the input line is too long.
3302         * po/Makefile (libc.pot): Add f_print as function taking c-format
3303         parameter.
3305         * debug/xtrace.sh: Unify translatable messages.
3306         * elf/ldd.bash.in: Likewise.
3307         * elf/sprof.c: Likewise.
3308         * locale/programs/locale.c: Likewise.
3309         * malloc/memusage.sh: Likewise.
3310         * nss/getent.c: Likewise.
3312 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3314         * debug/pcprofiledump.c (print_version,
3315         argp_program_version_hook): New function.
3316         * elf/ldconfig.c (more_help): New function.
3317         (argp): Use it.
3318         * elf/sln.c (usage): New function.
3319         (main): Support --help and --version.
3320         * malloc/memusagestat.c (print_version): New function.
3321         (argp_program_version_hook): New variable.
3322         * nscd/nscd.c (more_help): New function.
3323         (argp): Use it.
3324         * posix/getconf.c (main): Send --version output to stdout.
3325         Support --help.
3326         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3327         arguments.  All callers changed.
3328         (print_version): New function.
3329         (parseargs): Support --help and --version.
3330         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3331         changed.
3332         (print_version): New function.
3333         (main): Use getopt_long.  Support --help and --version.
3334         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3335         --version.
3337 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3339         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3340         (update_data): Fix handling of wrapping back
3341         to the beginning of the buffer.
3343         [BZ #9823]
3344         * stdio-common/psignal.c (psignal): Fix test for empty string.
3346 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3348         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3349         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3350         move _null_auth to .rodata.
3352         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3353         value of 24.
3355         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3357         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3358         today than when the original code was written.  Use larger
3359         buffers.  This also makes it unnecessary to have stat information,
3360         if this causes extra efforts.
3361         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3362         __alloc_dir.
3364 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3366         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3367         is set.
3368         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3369         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3370         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3371         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3372         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3373         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3375 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3377         * po/ru.po: Update from translation team.
3379 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3381         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3382         Add _tid slot to maintain consistency with kernel.
3384 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3386         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3387         incomplete characters at end of input buffer.
3388         * libio/Makefile (tests): Add tst-fgetwc.
3389         * libio/tst-fgetwc.c: New file.
3390         * libio/tst-fgetwc.input: New file.
3392 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3394         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3396 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3398         [BZ #9793]
3399         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3400         *OUTBUFSTART unless the whole output fit into the buffer.
3401         * iconv/Makefile (tests): Add tst-iconv4.
3402         * iconv/tst-iconv4.c: New file.
3404 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3406         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3407         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3409 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3411         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3412         newer linker scripts.
3414 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3416         [BZ #7040]
3417         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3418         inotify_rm_watch should have type int.
3420 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3422         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3423         Make aligned_restore_vmx a local symbol.
3424         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3425         Likewise.
3427 2009-01-30  Andreas Jaeger  <aj@suse.de>
3429         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3430         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3431         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3432         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3433         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3434         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3435         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3437 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3439         [BZ #9726]
3440         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3441         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3443 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3445         [BZ #9726]
3446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3447         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3449         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3451 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3453         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3454         memcpy instead of memcmp.
3455         (_dl_setup_pointer_guard): Likewise.
3457 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3459         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3460         manipulated brk, use malloc_printerr.
3461         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3462         requests.
3464 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3466         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3467         rindex): For C++ add inlines so that they can be recognized as
3468         builtins.
3469         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3471 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3472             Jakub Jelinek  <jakub@redhat.com>
3474         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3475         * wcsmbs/wchar.h: Likewise.
3477 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3479         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3480         (stackinfo_sub_sp): Define.
3482 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3484         [BZ #9750]
3485         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3486         * include/alloca.h (alloca_account): Define.
3487         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3488         (stackinfo_sub_sp): Define.
3490         * nscd/connections.c (nscd_init): If database file access fails
3491         check whether this is due to permission problems and bail in that
3492         case.
3494         [BZ #9741]
3495         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3496         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3498 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3500         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3501         Add "t" to clobber list.
3502         (INTERNAL_SYSCALL_NCS): Likewise.
3504 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3506         * nss/getent.c (print_networks): Don't print comma between aliases.
3508 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3510         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3512         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3513         the hash table.
3514         * misc/Makefile (tests): Add bug-hsearch1.
3515         * misc/bug-hsearch1.c: New file.
3517 2009-01-22  Roland McGrath  <roland@redhat.com>
3519         * Makeconfig (%.v.i): Strip trailing # comments,
3520         not only whole-line comments.
3522 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3524         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3525         one parameter.  If non-NULL use it to initialize return value.
3526         (_dl_setup_pointer_guard): New function.
3527         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3528         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3529         * elf/rtld.c (security_init): Pass _dl_random to
3530         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3531         pointer_chk_guard.
3532         * elf/dl-sysdep.c (_dl_random): New variable.
3533         (_dl_sysdep_start): Handle AT_RANDOM.
3534         (_dl_show_auxv): Likewise.
3535         * elf/dl-support.c (_dl_random): New variable.
3536         (_dl_aux_init): Handle AT_RANDOM.
3537         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3538         to _dl_setup_stack_chk_guard.
3540         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3542 2009-01-10  Roland McGrath  <roland@redhat.com>
3544         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3546 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3548         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3550         [BZ #9706]
3551         * nss/nss_files/files-parse.c (strtou32): New function.
3552         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3553         across 32-bit and 64-bit platforms.
3554         (INT_FIELD_MAYBE_NULL): Likewise.
3556 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3558         [BZ #9720]
3559         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3560         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3561         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3562         Likewise.
3564 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3566         [BZ #697]
3567         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3568         being NULL also if there are no backreferences.
3569         * posix/rxspencer/tests: Add testcases.
3571 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3573         [BZ #9697]
3574         * posix/bug-regex17.c: Add testcases.
3575         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3576         handling.
3578 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3580         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3581         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3582         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3583         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3584         for elf subdir.
3585         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3586         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3587         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3588         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3589         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3590         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3592 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3594         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3595         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3596         re_string_skip_chars, re_string_reconstruct): Likewise.
3597         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3599 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3601         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3602         adjust the buffer alignment.
3604 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3606         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3607         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3608         net/route.h.
3610         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3611         flavor to description only when flavor is not NULL.
3613         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3614         mutex after SIGIO/SIGURG lookup loop.
3616 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3618         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3620 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3622         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3623         handling.
3625 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3627         * sysdeps/unix/sysv/linux/kernel-features.h
3628         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3630         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3631         if no output is written.
3633         * version.h: Bump to 2.10 development.
3635         * posix/getconf.c: Update copyright year.
3636         * nss/getent.c: Likewise.
3637         * iconv/iconvconfig.c: Likewise.
3638         * iconv/iconv_prog.c: Likewise.
3639         * elf/ldconfig.c: Likewise.
3640         * catgets/gencat.c: Likewise.
3641         * csu/version.c: Likewise.
3642         * elf/ldd.bash.in: Likewise.
3643         * elf/sprof.c (print_version): Likewise.
3644         * locale/programs/locale.c: Likewise.
3645         * locale/programs/localedef.c: Likewise.
3646         * nscd/nscd.c (print_version): Likewise.
3647         * debug/xtrace.sh: Likewise.
3648         * malloc/memusage.sh: Likewise.
3649         * malloc/mtrace.pl: Likewise.
3650         * debug/catchsegv.sh: Likewise.
3652 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3654         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3655         script.
3657 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3659         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3660         gethostbyname4_r function call succeeded, just leave the loop.
3662         [BZ #9694]
3663         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3664         very end.
3665         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3666         * wctype/Makefile (tests): Add bug-wctypeh.
3667         * wctype/bug-wctypeh.c: New file.
3669         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3670         LOCALDOMAIN is defined.
3671         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3673         * sysdeps/x86_64/bits/select.h: New file.
3675         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3677 2008-12-21  Bruno Haible  <bruno@clisp.org>
3679         [BZ #9677]
3680         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3681         if no output is written.
3683 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3685         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3686         libc internal symbol __dup2 to avoid access through the PLT.
3688 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3690         [BZ #6545]
3691         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3692         available only for __USE_GNU.
3694         * inet/Makefile (tests): Add tst-getni2.
3695         * inet/tst-getni2.c: New file.
3697         [BZ #7080]
3698         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3699         NULL when NI_NAMEREQD is set.
3700         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3701         * inet/Makefile (tests): Add tst-getni1.
3702         * inet/tst-getni1.c: New file.
3704 2008-12-03  Petr Baudis  <pasky@suse.cz>
3706         [BZ #7067]
3707         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3708         instead of prune_lock.
3709         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3710         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3712 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3714         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3715         use.
3717         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3718         handling.
3720         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3721         after reading name server list.
3723         [BZ #7058]
3724         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3725         handling for host name aliases.
3727 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3729         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3730         instead of doing things manually.
3732 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3734         * posix/regex_internal.h (build_wcs_upper_buffer):
3735         Return type is reg_error_t.
3737 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3739         * posix/globtest.sh: Use mktemp to create temporary file and
3740         directory.
3742         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3743         sets correctly.
3744         (__CPU_CLR_S): Likewise.
3745         (__CPU_ISSET_S): Likewise.
3747 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3748             Ulrich Drepper  <drepper@redhat.com>
3750         * scripts/firstversion.awk: Use custom comparison function to compare
3751         version numbers.
3752         * scripts/versions.awk: Use sort invocation which can handle
3753         multi-digit sub-version numbers.
3755 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3757         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3758         * locale/iso-639.def: Add Chhattisgarhi entry.
3760 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3762         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3763         ESRCH return value.
3764         (_nss_dns_gethostbyname4_r): Likewise.
3765         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3766         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3767         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3768         the no_data variable.
3770         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3771         information at the correct index.
3773         * socket/sys/socket.h: Declare accept4.
3774         * socket/accept4.c: New file.
3775         * sysdeps/unix/sysv/linux/accept4.c: New file.
3776         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3777         * socket/Makefile (routines): Add accept4.
3778         * socket/Versions: Export accept4 with version GLIBC_2.10.
3779         * socket/paccept.c: Removed.
3780         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3781         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3782         * Versions.def: Define GLIBC_2.10 for libc.
3783         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3785         * nscd/connections.c: Use accept4.
3787         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3789 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
3791         * resolv/res_send.c (send_dg): Create sockets with non-blocking
3792         flag already set.
3794         * stdlib/setenv.c (unsetenv): Don't search environment if it does
3795         not exist.
3796         * stdlib/Makefile (tests): Add tst-unsetenv1.
3797         * stdlib/tst-unsetenv1.c: New file.
3799 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
3801         * login/utmp_file.c (file_writable): New variable.
3802         (setutent_file): Don't try to open file for writing.
3803         (pututline_file): Before writing, make descriptor writable if
3804         necessary.
3806 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
3808         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3809         to IPv4 or IPv6 if an interface has been found.
3811 2008-11-26  Roland McGrath  <roland@redhat.com>
3813         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3814         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3816         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3817         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3818         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3820         * elf/elf.h (NT_386_IOPERM): New macro.
3821         (NT_PPC_VSX): New macro.
3823 2008-11-25  Roland McGrath  <roland@redhat.com>
3825         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3826         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3827         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3828         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3829         Subdirectories moved to ports repository.
3830         * configure.in (base_machine): Remove alpha case.
3832 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
3834         * sysdeps/mach/strerror_l.c: New file.
3836 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
3838         [BZ #6411]
3839         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3840         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3841         magic numbers.
3842         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3843         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3844         (relax_fenv_state): Same as above.
3845         (FPSCR_29): Reserve bit in ISA 2.05.
3846         (FPSCR_NI): Provide define for compat.
3847         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3848         magic numbers.
3849         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3850         magic numbers.
3851         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
3852         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3853         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3854         access to hwcap to account for hwcap size increase to uint64_t.
3855         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3856         Likewise.
3857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3858         (*setcontext): Likewise.
3859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3860         New file.
3861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3862         New file.
3863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3864         (*setcontext): dynamically select mtfsf insn based on
3865         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3866         increase to uint64_t.
3867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3868         (*swapcontext): dynamically select mtfsf insn based on
3869         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
3870         increase to uint64_t.
3871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3872         New file.
3873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3874         New file.
3875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3876         (*setcontext): dynamically select mtfsf insn based on
3877         PPC_FEATURE_HAS_DFP.
3878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3879         (*swapcontext): dynamically select mtfsf insn based on
3880         PPC_FEATURE_HAS_DFP.
3882 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
3884         * version.h: Bump for 2.9 release.
3885         * include/features.h (__GLIBC_MINOR__): Bump to 9.
3887         [BZ #7029]
3888         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3889         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3890         all the rounding.
3892 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
3894         [BZ #7009]
3895         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3896         unknown request types for now.
3898 2008-11-11  Roland McGrath  <roland@redhat.com>
3900         * sysdeps/x86_64/configure: New file.
3902         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3903         * configure: Regenerated.
3905 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3907         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3908         correct instruction to remove the stack frame.
3910 2008-11-03  Michael Matz  <matz@suse.de>
3912         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3913         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3915 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
3917         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3918         Remove.
3920         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3921         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3922         of the thread variable instead of void *.
3923         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3924         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3925         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3926         __libc_tsd_define arguments.
3927         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3928         __libc_tsd_address arguments.  Remove union hack.
3929         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3930         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3931         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3932         Adjust __libc_tsd_{set,get} arguments.
3933         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3934         __libc_tsd_define arguments.
3935         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3936         arguments.
3937         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3938         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3939         (LOCALE): Adjust __libc_tsd_define arguments.
3940         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3941         arguments.
3942         (LOCALE): Adjust __libc_tsd_define arguments.
3943         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3944         arguments.
3945         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3946         arguments.
3948 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
3950         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3951         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3953 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
3955         [BZ #6966]
3956         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3958 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
3959             Ulrich Drepper  <drepper@redhat.com>
3961         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3962         definition for GCC 3.1 and later.
3964 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
3966         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3967         refetch dtv, as it might have changed.
3968         * elf/Makefile: Add rules to build and run tst-tls18.
3969         * elf/tst-tls18.c: New test.
3970         * elf/tst-tlsmod18a.c: New file.
3972 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
3974         [BZ #6875]
3975         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3977 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3979         [BZ #6867]
3980         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3982         [BZ #6919]
3983         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3984         Fix length of copy operation.
3986 2008-10-02  Pierre Habouzit <madcoder@debian.org>
3988         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3989         and fix its calling convention.
3991 2008-10-07  Andreas Schwab  <schwab@suse.de>
3993         [BZ #6942]
3994         * resolv/res_send.c (send_vc): Fix last change.
3995         (send_dg): Align here as well.
3997 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3999         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4000         return value in case rlimit is RLIM_INFINITY.
4002         [BZ #6947]
4003         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4004         for UL_SETFSIZE.
4005         * resource/Makefile (tests): Add bug-ulimit1.
4006         * resource/bug-ulimit1.c: New file.
4008         [BZ #6974]
4009         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4010         without dot.  Properly terminate the string with a null byte.
4011         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4013         [BZ #6980]
4014         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4015         negative sizees.
4016         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4017         negative __size.
4019         [BZ #6995]
4020         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4022 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4024         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4025         abort if there is no initgroups_dyn function.
4027         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4028         result if any of the queries really provided an answer.
4030 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4032         * po/lt.po: Update from translation team.
4034 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4036         * po/id.po: Update from translation team.
4038 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4040         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4041         Fix tests for existence of second reply.
4043 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4045         * po/id.po: New file.
4046         Contributed by the Indonesian translation team.
4048 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4050         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4051         initialization.
4053 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4055         * elf/Makefile: Add rules to build and run tst-tls17.
4056         * elf/tst-tls17.c: New test.
4057         * elf/tst-tlsmod17a.c: New file.
4058         * elf/tst-tlsmod17b.c: Likewise.
4060 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4062         * stdlib/divmod_1.c: Use correct type for dummy variable.
4063         * stdlib/mod_1.c: Likewise.
4065 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4067         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4069 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4071         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4072         __nonnull order for C++.
4073         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4074         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4076 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4078         * stdlib/longlong.h: Update from GCC.
4080 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4081             David S. Miller  <davem@davemloft.net>
4083         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4084         make sure any registers used with 64-bit 'branch-on-register'
4085         instructions have their top 32-bits clear.
4086         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4087         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4089 2008-09-18  Andreas Schwab  <schwab@suse.de>
4091         [BZ #6942]
4092         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4093         Properly handle partial reads.
4095 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4097         * elf/elf.h (STO_MIPS_PLT): New.
4098         (R_MIPS_COPY): New.
4099         (R_MIPS_JUMP_SLOT): New.
4100         (R_MIPS_NUM): Redefine to 128.
4101         (DT_MIPS_PLTGOT): New.
4102         (DT_MIPS_RWPLT): New.
4103         (DT_MIPS_NUM): Redefine to 0x35.
4105 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4107         * timezone/africa: Update from tzdata2008f.
4108         * timezone/asia: Likewise.
4109         * timezone/australasia: Likewise.
4110         * timezone/europe: Likewise.
4111         * timezone/leapseconds: Likewise.
4112         * timezone/northamerica: Likewise.
4113         * timezone/southamerica: Likewise.
4114         * timezone/zone.tab: Likewise.
4116 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4118         * nscd/connections.c: Disable use of paccept for now.
4120 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4122         * socket/Versions: Remove paccept export for GLIBC_2.9.
4123         * socket/Makefile (routines): Remove paccept.
4124         * socket/sys/socket.h: Remove paccept declaration.
4126         * po/sv.po: Update from translation team.
4128 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4130         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4131         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4133 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4135         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4136         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4138 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4140         * sunrpc/rpc/svc.h: Declare svcfd_create.
4141         Patch by Michael Solberg <msolberg@redhat.com>.
4143 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4144             Ulrich Drepper  <drepper@redhat.com>
4146         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4147         _int_valloc fails.
4148         (public_pVALLOc): Likewise.
4150 2008-09-02  Andreas Jaeger  <aj@suse.de>
4152         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4153         commit.
4155 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4157         [BZ #6860]
4158         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4160 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4162         * Makefile (check-data): Check data directory in add-ons.
4163         * elf/Makefile (check-data): Likewise.
4165 2008-08-18  Roland McGrath  <roland@redhat.com>
4167         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4168         * configure: Regenerated.
4169         * config.make.in (cflags-cpu): New substituted variable.
4170         (with-cpu): Variable removed.
4171         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4173 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4175         [BZ #6845]
4176         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4177         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4178         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4179         redundant.  Functions which call floating point assembler operations
4180         should go into a sysdeps powerpc/fpu directory.
4182 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4184         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4185         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4187 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4189         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4191         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4192         change related to AT_EXECFN.  We cannot use that string.
4193         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4194         _dl_execfn member.
4195         * elf/dl-support.c: Remove _dl_execfn variable.
4196         (_dl_aux_init): Remove handling of AT_EXECFN.
4197         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4198         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4200 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4202         [BZ #6544]
4203         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4204         byte gets added to writes and seeks from the end use the length of
4205         the buffer and not the currently terminating NUL byte.
4207         [BZ #6634]
4208         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4209         Set to true if locking failed.
4210         (getutid_r_file): Adjust caller.
4211         (pututline_file): Likewise.  Return NULL in this case.
4212         Patch mostly by halesh.s@gmail.com.
4214 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4216         [BZ #6589]
4217         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4218         Define.
4219         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4221 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4223         [BZ #6839]
4224         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4225         macro since it is now available in elf/dynamic-link.h.
4227 2008-08-12  Roland McGrath  <roland@frob.com>
4229         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4230         in case used outside of libc.
4231         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4233 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4235         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4236         directly instead of going through dn_comp.
4238 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4240         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4241         Fix asm constraints.
4243 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4245         [BZ #6790]
4246         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4247         (IPV6_PMTUDISC_PROBE): Likewise.
4249 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4251         [BZ #6791]
4252         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4254 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4255             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4257         [BZ #6817]
4258         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4259         Added the members 'vsx' and 'arch_2_06'.
4260         (_dl_powerpc_platforms): Add the member 'power7'.
4261         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4262         to reflect the changes required by VSX and ISA 2.06.
4263         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4264         'power7'.
4265         Defined PPC_PLATFORM_POWER7.
4266         (_dl_string_platform): Add support for POWER7.
4267         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4268         capability and ISA 2.06.
4270 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4272         [BZ #6824]
4273         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4274         macro to detect use of 128 bit long double.
4275         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4277 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4279         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4281         [BZ #5794]
4282         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4283         parameters.
4284         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4285         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4287 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4289         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4290         guaranteed to be large enough to read inotify event.  Ignore
4291         EAGAIN error.  Better error message.  Add branch predicition.
4292         (main_loop_epoll): Likewise.
4294 2008-08-02  Roland McGrath  <roland@frob.com>
4296         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4297         Add memory clobbers.
4299 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4301         * manual/arith.texi: Avoid @strong{Note:}.
4302         * manual/creature.texi: Likewise.
4303         * manual/filesys.texi: Likewise.
4304         * manual/math.texi: Likewise.
4305         * manual/memory.texi: Likewise.
4306         * manual/resource.texi: Likewise.
4307         * manual/syslog.texi: Likewise.
4308         * manual/time.texi: Likewise.
4310         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4311         to prevent warning.
4313 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4315         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4316         new epoll_create1 interface.
4317         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4318         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4319         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4321         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4322         (NS_GET32): Likewise.
4324         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4325         syscalls, too.
4327         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4328         use the AT_EXECFN value if it is no absolute path.
4329         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4330         __ASSUME_AT_EXECFN.
4332         * Versions.def: Add GLIBC_2.9 to libresolv.
4333         * include/resolv.h: Remove hidden proto declarations for __ns_*
4334         functions.  Add them for __dn_count_labels and __p_secstodate.
4335         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4336         Define ns_msg_getflags macro here.
4337         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4338         and __p_secstodate.
4339         * resolv/Versions: Export functions from <arpa/nameser.h> from
4340         libresolv in version GLIBC_2.9.
4341         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4342         hidden definitions.
4343         * resolv/ns_netint.c: Likewise.
4344         * resolv/ns_parse.c: Likewise.
4345         * resolv/ns_print.c: Likewise.
4346         * resolv/ns_samedomain.c: Likewise.
4347         * resolv/ns_ttl.c: Likewise.
4348         * resolv/arpa/nameser_compat.h: Likewise.
4349         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4350         function calls.
4351         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4352         instead of ns_get16.
4353         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4354         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4355         (gaih_getanswer_slice): Likewise.
4356         * resolv/Makefile (libresolv-routines): Add ns_date.
4357         * resolv/ns_date.c: New file.
4359         * elf/Makefile (check-localplt.out): Also check libresolv and
4360         libcrypt.
4362 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4364         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4365         __ASSUME_O_CLOEXEC.
4367 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4369         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4370         buffer passed to NSS functions.
4372         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4374         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4375         Define.
4377         * misc/syslog.c (openlog_internal): Fix compile problem.
4379 2008-07-28  Roland McGrath  <roland@redhat.com>
4381         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4383 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4385         * io/ftw.c (add_object): Remove inline to avoid warning.
4387         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4389         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4390         Use it instead of locally defined resplen2 variable.
4391         (res_nsend): Adjust for __libc_res_nsend interface change.
4392         (send_vc): Initialize *resplen2 if necessary.  Read length of
4393         package into an appropriately aligned variable.  Store converted length
4394         in new variable and use it appropriately.
4395         Add branch prediction help.
4396         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4397         and pass it on to __libc_res_nsend.  Adjust all callers.
4398         (__libc_res_nsearch): Likewise.
4399         (__libc_res_nqeurydomain): Likewise.
4400         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4401         change.
4402         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4403         Define resplen2 variable and pass it to __libc_res_nsearch and then
4404         to gaih_getanswer.
4405         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4406         Add branch prediction.
4407         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4408         (gaih_getanswer): Don't decode second slice if first one failed due
4409         to a too small buffer.  Don't let not found status of second
4410         decoder shadow results of the first.
4411         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4412         and __libc_res_nquery interface changes
4413         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4414         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4415         __libc_res_nsearch, and __libc_res_nsend.
4416         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4417         change.
4418         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4419         __libc_res_nsearch interface changes.
4421 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4423         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4425         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4426         file descriptors with close-on-exec set.
4427         (exec_comm_child): Fix the case where the write end of the pipe is
4428         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4430         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4431         * io/pipe2.c: Likewise.
4432         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4433         instead of __ASSUME_PACCEPT.
4434         * include/unistd.h: Declare __have_pipe2.
4435         * libio/iopopen.c: Implement "e" flag.
4436         * libio/Makefile (tests): Add tst-popen1.
4437         * libio/tst-popen1.c: New file.
4439         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4440         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4442 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4444         [BZ #6771]
4445         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4446         success call of _IO_SEEKOFF or calls which failed because the
4447         descriptor is for a pipe.
4449         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4450         magic number.
4452         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4454         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4455         F_SETFD use if we know fopen set the flag.
4457         * login/utmp_file.c (setutent_file): Minor optimization in case
4458         O_CLOEXEC is available.
4460 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4462         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4463         * elf/Makefile: Use pie-ccflag variable.
4464         * nscd/Makefile: Likewise.
4465         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4467 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4469         [BZ #6724]
4470         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4471         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4472         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4473         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4474         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4475         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4476         utmp32, utmpx32 and login32.
4477         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4478         versions of struct utmp functions to libc and libutil.
4479         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4480         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4481         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4482         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4483         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4484         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4485         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4486         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4487         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4488         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4489         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4490         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4491         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4492         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4493         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4494         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4495         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4496         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4497         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4498         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4499         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4500         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4502 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4504         * scripts/gen-as-const.awk: Generate more widely usable code by
4505         using 64-bit arithmetic.
4507         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4508         the same treatment as narrow output code in last patch.
4510         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4512         [BZ #6763]
4513         * elf/dl-load.c (local_strdup): Remove inline.
4514         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4515         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4516         part of the object.
4518         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4520 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4522         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4523         the new syscalls, too.
4525         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4526         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4528         [BZ #6698]
4529         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4530         parameter for end of buffer.  If temporary copy is too large use
4531         malloc.
4532         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4533         interface change.
4534         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4535         string rewrite when allocating buffer.
4537         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4538         syscalls, too.
4540         * nscd/connections.c (nscd_init): Clean up fcntl call.
4542         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4543         SOCK_NONBLOCK if possible.
4545         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4546         SOCK_CLOEXEC if available.
4548         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4549         __libc_clntudp_bufcreate_internal.
4550         * include/sys/socket.h: Declare __have_sock_cloexec.
4551         * socket/Makefile (aux): Add have_sock_cloexec.
4552         * socket/have_sock_cloexec.c: New file.
4553         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4554         __libc_clntudp_bufcreate.
4555         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4556         which takes an additional parameter.  Create socket with non-blocking
4557         mode and close-on-exec flag set, if wanted.
4558         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4559         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4560         instead of clntudp_create.  The socket has already the close-on-exec
4561         flag set if SOCK_CLOEXEC is defined.
4563 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4565         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4566         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4567         appropriate.
4568         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4569         non-blocking mode by using socket, paccept, and inotify_init1.
4571         * Versions.def (glibc): Add GLIBC_2.9.
4572         * io/Makefile (routines): Add dup3 and pipe2.
4573         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4574         * io/dup3.c: New file.
4575         * io/pipe2.c: New file.
4576         * posix/unistd.h: Declare dup3 and pipe2.
4577         * socket/Makefile (routines): Add paccept.
4578         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4579         * socket/paccept.c: New file.
4580         * socket/sys/socket.h: Declare paccept.
4581         * sysdeps/unix/syscalls.list: Add entry for dup3.
4582         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4583         epoll_create2 and inotify_init1.
4584         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4585         * sysdeps/unix/sysv/linux/paccept.c: New file.
4586         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4587         possible.
4588         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4589         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4590         inotify_init1, and pipe2 entries.
4591         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4592         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4593         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4594         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4595         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4596         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4597         SOCK_NONBLOCK.
4598         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4599         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4600         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4601         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4602         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4603         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4604         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4605         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4606         EPOLL_NONBLOCK.  Declare epoll_create2.
4607         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4608         EFD_NONBLOCK.
4609         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4610         IN_NONBLOCK.  Declare inotify_init1.
4611         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4612         SFD_NONBLOCK.
4613         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4614         TFD_NONBLOCK.
4616         * elf/elf.h: Define AT_EXECFN.
4617         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4618         LD_ORIGIN_PATH.
4619         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4620         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4621         if __ASSUME_AT_EXECFN is defined.
4622         (_dl_aux_init): Handle AT_EXECFN.
4623         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4624         for 2.6.27 and up.
4625         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4626         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4627         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4628         _dl_execfn if available and avoid compatibility code if
4629         __ASSUME_AT_EXECFN is defined.
4631         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4632         _dl_discover_osversion only for older kernels.
4634 2008-07-22  Roland McGrath  <roland@frob.com>
4636         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4638 2008-07-21  Roland McGrath  <roland@frob.com>
4640         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4641         returned too much data out of line.
4643 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4645         * locale/setlocale.c (setname): Remove inline to avoid compiler
4646         warning.
4648         [BZ #6712]
4649         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4651 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4653         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4654         doesn't manage to write anything, fail.
4656         * malloc/hooks.c (__malloc_check_init): Remove printf.
4658 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4660         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4662 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4664         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4665         from inotify.
4666         (main_loop_epoll): Likewise.
4668 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4670         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4672         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4673         if DEBUG is defined.
4675         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4676         query.  Adjust buffer size computation for padding.
4678 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4680         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4681         * stdio-common/tst-setvbuf1.c: New file.
4682         * stdio-common/tst-setvbuf1.expect: New file.
4684         [BZ #6719]
4685         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4686         when selecting fully-buffered stream.
4687         Patch by Wang Xin <wxinee@gmail.com>.
4689 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4691         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4692         (__open_2): New function.
4693         (__open64_2): New alias to __open_2.
4694         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4695         (__openat_2): New function.
4696         (__openat64_2): New alias to __openat_2.
4698 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4700         [BZ #6723]
4701         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4703 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4705         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4706         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4707         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4708         __hurd_dfail.
4709         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4710         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4711         * sysdeps/mach/hurd/send.c (__send): Likewise.
4712         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4713         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4715 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4717         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4718         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4719         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4720         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4721         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4722         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4724 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4726         [BZ #6657]
4727         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4728         of %EY.
4729         Patch by Petr Baudis.
4731 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4733         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4734         Patch by Peter Jones <pjones@redhat.com>.
4736 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4738         [BZ #6654]
4739         * stdlib/canonicalize.c (__realpath): readlink can write too much
4740         into the buffer on platforms without PATH_MAX.
4742 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4744         [BZ #6653]
4745         * posix/tst-regex.c (main): Rename to...
4746         (do_test): ... this. Remove cmdline option processing.
4747         (TIMEOUT): Define.
4748         (TEST_FUNCTION): Define.
4749         (CMDLINE_OPTIONS): Define.
4751 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4753         [BZ #5210]
4754         * configure.in: Add -Werror to -fstack-protector test to catch
4755         unsupported architectures.
4756         Patch by Gilles Esponasse <g.esp@free.fr>.
4758 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4760         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4761         getcontext returns ENOSYS.
4763 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4765         * nscd/connections.c (main_loop_poll): Fix test for read error.
4766         (main_loop_epoll): Likewise.
4768 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4770         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4771         better place so it is not called when nscd is used.
4773         * nscd/connections.c: Also recognize and handle changes to the
4774         resolver configuration file.
4776 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4778         * time/strftime.c: Pass reference to tzset_called around to handle
4779         recursive calls.
4781         [BZ #6612]
4782         * time/strftime.c (__strftime_internal): Call tzset() only
4783         when printing timezone-dependent values.
4784         Based on a patch by Petr Baudis <pasky@suse.cz>.
4786         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4787         unconditionally use second gaih_getanswer_slice result.
4789         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4790         (getaddrinfo): RES must always be non-NULL.
4792 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4794         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4795         cr[34] registers.
4796         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4797         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4798         Likewise.
4799         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4800         register.
4802 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4804         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4805         fields.
4806         * nscd/connections.c (inotify_fd): New variable.
4807         (nscd_init): Try to open an inotify descriptor.
4808         If successful, watch files for databases using inotify instead of
4809         having prune threads stat the files.
4810         (nscd_run_prune): Recognize clear_cache flag being set and call
4811         prune_cache appropriately.
4812         (main_loop_poll): Add inotify descriptor to wait set and handle the
4813         reported changes.
4814         (main_loop_epoll): Likewise.
4815         * nscd/cache.c (prune_cache): Don't stat files for databases if
4816         inotify is used.
4817         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4818         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4820         * nscd/grpcache.c (cache_addgr): Correctly compute size of
4821         fixed-size portion of the record.
4822         * nscd/servicescache.c (cache_addserv): Likewise.
4823         * nscd/pwdcache.c (cache_addpw): Likewise.
4824         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4826 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
4828         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4829         out we don't use uninitialized memory.
4831         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4832         the client.
4834 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
4836         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4837         ignore T_DNAME messages.
4838         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4840 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
4842         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4843         Avoid segfault if first GETC returns eof/'\0'/'\n'.
4845 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
4847         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4848         instead of portstr to nscd_getserv_r.  Patch by
4849         Roman Kagan <rkagan@mail.ru>.
4851 2008-05-26  Jim Meyering  <meyering@redhat.com>
4853         Remove more useless "if" tests before "free".
4854         * include/inline-hashtab.h (htab_delete): Likewise.
4855         * libio/freopen.c (freopen): Likewise.
4856         * libio/freopen64.c (freopen64): Likewise.
4857         * locale/programs/ld-collate.c (collate_read): Likewise.
4858         * misc/fstab.c (libc_freeres_fn): Likewise.
4859         * posix/glob.c (globfree): Likewise.
4861 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4863         * string/Makefile (strop-tests): Add memmem.
4864         * string/test-memmem.c: New file.
4865         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4866         (test_init): Size buf1 according to BUF1PAGES.
4868 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
4870         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4871         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4872         (CFLAGS-scanf17.c): New.
4873         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4874         * stdio-common/scanf15.c (main): Likewise.
4875         * stdio-common/scanf16.c: New file.
4876         * stdio-common/scanf17.c: New file.
4878 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4880         * resolv/res_send.c (send_dg): If we already have one of two
4881         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4882         use the one answer insted of failing.
4884 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
4886         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4887         being executed on PowerPC as the expected result exceeds IBM
4888         long double 128 __LDBL_MAX__.
4890 2008-05-21  Roland McGrath  <roland@redhat.com>
4892         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4894         * Makefile (check-data): Use $(abi-name) before other guesses.
4895         Look in $(add-ons) dirs before scripts/data/.
4896         * elf/Makefile (check-data): Likewise.
4898         * scripts/soversions.awk: Grok ABI line.
4899         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4900         Emit definition for abi-name variable.
4902 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
4904         * string/endian.h: Define new fixed-size hto* and *toh macros only
4905         if [__USE_BSD].
4907         * iconvdata/Depend: Add localedata.
4909 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4911         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4913 2008-05-08  David S. Miller  <davem@davemloft.net>
4915         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4916         HIDDEN_JUMPTARGET.
4917         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4918         (__SYSCALL_CLOBBERS): Remove %g* registers.
4919         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4920         (__SYSCALL_CLOBBERS): Likewise.
4921         * scripts/data/localplt-sparc-linux-gnu.data: New file.
4922         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4924 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
4926         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4927         (CALL_ERRNO_LOCATION): Define.
4928         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4929         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4930         (CALL_ERRNO_LOCATION): Define.
4931         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4932         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4933         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4935 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
4937         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4938         variable.
4940 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
4942         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4943         (FIRST_FRAME_POINTER): Define.
4945 2008-05-09  David S. Miller  <davem@davemloft.net>
4947         * sysdeps/sparc/sparc64/backtrace.c: New file.
4949 2008-05-14  David S. Miller  <davem@davemloft.net>
4951         * sysdeps/sparc/machine-gmon.h: New file.
4952         * sysdeps/sparc/sparc-mcount.S: Likewise.
4953         * sysdeps/sparc/Makefile: Add sparc-mcount target to
4954         sysdep_routines in gmon directory.
4956 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
4958         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4960 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
4962         * resolv/res_query.c (__libc_res_nquery): In case one of two
4963         answer was too short don't try to read that answer's header.
4965         * resolv/res_send.c (send_dg): In case of timeout and there are
4966         two queries and one has been answered, return value indicating
4967         success.
4969 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
4971         * nscd/cache.c (cache_add): Take additional parameter specifying
4972         whether this is in response of a cache refill.  Check alignment
4973         of package data.  Revamp waking of pruning thread.
4974         (prune_cache): Small optimization.
4975         * nscd/nscd.h: Adjust cache_add prototypes.
4976         * nscd/aicache.c: Adjust cache_add calls.
4977         * nscd/grpcache.c: Likewise.
4978         * nscd/hstcache.c: Likewise.
4979         * nscd/initgrcache.c: Likewise.
4980         * nscd/pwdcache.c: Likewise.
4981         * nscd/servicescache.c: Likewise.
4982         * nscd/connections.c (restart): Really disable cache use before
4983         exec attempt.  If it fails, reenable cache.
4984         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
4985         time to max to be able to notice concurrent cache additions.  Unlock
4986         prune_lock while performing gc.  Afterwards compute wakeup time with
4987         current wakeup_time value in mind.
4989 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
4991         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4993         * nscd/mem.c (gc): Correctly determine highest used array element
4994         in mark.
4996         * nscd/mem.c (markrange): Add assert to check entries are all
4997         aligned.  Small cleanup in bitmap use.
4999         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5000         blockoff of type nscd_ssize_t.
5001         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5002         (mempoll_alloc): Record block offset and not address.
5004         * nscd/mem.c (gc): Fix test for stack overuse.
5006         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5007         more asserts.
5009         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5010         entry is available, believe it.
5012         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5013         no answers return NSS_STATUS_NOTFOUND.
5014         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5015         buffer does not have any content.
5017 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5019         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5021         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5022         lookup, don't assign canon unconditionally.
5024 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5026         * string/Makefile (distribute): Add str-two-way.h.
5028 2008-03-29  Eric Blake  <ebb9@byu.net>
5030         Rewrite string searches to O(n) rather than O(n^2).
5031         * string/str-two-way.h: New file.  For linear fixed-allocation
5032         string searching.
5033         * string/memmem.c: New implementation.
5034         * string/strstr.c: New implementation.
5035         * string/strcasestr.c: New implementation.
5037 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5039         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5040         opr.ctx_type.
5041         (calc_first): Initialize constraint field.
5042         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5043         Use search_duplicated_node to avoid loops.  Fix grammar.
5044         (duplicate_node): Merge constraint field for all node types.
5045         (calc_eclosure_iter): Look at constraint field for all node types.
5046         * posix/regex_internal.c (create_cd_newstate): Don't look at
5047         create_cd_newstate.
5049 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5051         [BZ #6428]
5052         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5054         [BZ #6442]
5055         * string/endian.h: Add macros for fixed-size endian conversion.
5056         * bits/byteswap.h: Allow inclusion from <endian.h>.
5057         * sysdeps/i386/bits/byteswap.h: Likewise.
5058         * sysdeps/ia64/bits/byteswap.h: Likewise.
5059         * sysdeps/s390/bits/byteswap.h: Likewise.
5060         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5061         * string/Makefile (tests): Add tst-endian.
5062         * string/tst-endian.c: New file.
5064         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5065         Patch by Reuben Thomas.
5067 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5069         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5071 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5073         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5075         [BZ #6461]
5076         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5077         Add missing braces.
5078         (BODY for __gconv_transform_internal_ascii): Likewise.
5080         [BZ #6472]
5081         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5082         to be treated like link-local addresses.
5083         (match_prefix): Don't treat IPv4 loopback address special when
5084         converting to v4 mapped addressed.
5086         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5087         if necessary.
5088         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5089         * posix/tst-rfc3484-2.c: Likewise.
5090         * posix/tst-rfc3484-3.c: Likewise.
5092         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5093         and SCTP.
5095         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5097         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5099         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5101 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5103         * po/lt.po: New file.  From Lituanian translation team.
5105 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5107         Introduce TLS descriptors for i386 and x86_64.
5108         * include/inline-hashtab.h: New file, copied from 2005's
5109         libiberty, with fix for memory leak imported afterwards by
5110         Glauber de Oliveira Costa.
5111         * elf/tlsdeschtab.h: New file.
5112         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5113         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5114         (CHECK_STATIC_TLS): Move to...
5115         * elf/dynamic-link.h: ... this file.
5116         (TRY_STATIC_TLS): New macro.
5117         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5118         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5119         R_386_TLS_DESC): Define.
5120         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5121         binutils.
5122         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5123         R_X86_64_TLSDESC): Define.
5124         (R_386_NUM, R_X86_64_NUM): Adjust.
5125         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5126         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5127         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5128         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5129         release tlsdesc_table.
5130         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5131         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5132         (elf_machine_rel): Handle R_386_TLS_DESC.
5133         (elf_machine_rela): Likewise.
5134         (elf_machine_lazy_rel): Likewise.
5135         (elf_machine_lazy_rela): Likewise.
5136         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5137         * sysdeps/i386/dl-tlsdesc.S: New file.
5138         * sysdeps/i386/dl-tlsdesc.h: New file.
5139         * sysdeps/i386/tlsdesc.c: New file.
5140         * sysdeps/i386/tlsdesc.sym: New file.
5141         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5142         tlsdesc_table.
5143         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5144         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5145         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5146         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5147         release tlsdesc_table.
5148         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5149         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5150         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5151         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5152         (elf_machine_rela): Likewise.
5153         (elf_machine_lazy_rel): Likewise.
5154         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5155         (__tls_get_addr): Do not declare for non-shared compiles.
5156         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5157         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5158         * sysdeps/x86_64/tlsdesc.c: New file.
5159         * sysdeps/x86_64/tlsdesc.sym: New file.
5160         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5161         tlsdesc_table for both 32- and 64-bit structs.
5163 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5165         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5166         its own function.  This reduces the frame setup costs and more.
5168 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5170         [BZ #3406]
5171         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5172         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5174 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5176         * io/openat.c (__openat_2): Also pass fd to __openat.
5177         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5178         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5180         * string/tester.c (test_memcmp): Add a few more tests.
5181         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5183 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5185         * nscd/cache.c (cache_add): Before returning with failure and this
5186         is the first use of the record, mark it as unusable.
5187         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5188         reporting a failure.
5189         * nscd/grpcache.c: Likewise
5190         * nscd/hstcache.c: Likewise.
5191         * nscd/initgrcache.c: Likewise.
5192         * nscd/pwdcache.c: Likewise.
5193         * nscd/servicescache.c: Likewise.
5195 2008-05-10  Roland McGrath  <roland@redhat.com>
5197         [BZ #6505]
5198         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5200 2008-05-08  David S. Miller  <davem@davemloft.net>
5202         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5204         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5205         (__ieee754_y0l): Likewise.
5206         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5207         (__ieee754_y1l): Likewise.
5208         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5209         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5210         frexpl and ldexpl.  math_private.h provides them and the latter
5211         is not even used.
5212         (__log1pl): Use __frexpl.
5214 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5216         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5217         prototypes.
5218         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5219         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5220         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5221         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5222         af==AF_UNSPEC.
5223         (_nss_nis_gethostbyname4_r): New function.
5224         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5225         Change to also handle af==AF_UNSPEC.
5226         (get_tablename): New function.  Use it to avoid duplication.
5227         (_nss_nisplus_gethostbyname4_r): New function.
5228         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5229         available.
5230         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5231         * nss/nss.h: Define struct gaih_addrtuple.
5232         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5233         af==AF_UNSPEC.
5234         (_nss_files_gethostbyname4_r): New function.
5235         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5236         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5237         calls.
5238         * resolv/res_query.c (__libc_res_nquery): Take two additional
5239         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5240         look up IPv4 and IPv6.
5241         Change all callers.
5242         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5243         for an additional query and answer buffer.  Pass to send_vc and
5244         send_dg.
5245         (send_vc): Send possibly two requests and receive two answers.
5246         (send_dg): Likewise.
5247         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5248         __libc_res_nquery.
5249         (_nss_dns_gethostbyname4_r): New function.
5250         (gaih_getanswer_slice): Likewise.
5251         (gaih_getanswer): Likewise.
5252         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5253         __libc_res_nquery call.
5254         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5255         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5256         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5257         available.
5259 2008-05-05  David S. Miller  <davem@davemloft.net>
5261         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5262         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5264 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5266         Fix termios bit macros.
5267         Move *DLY definitions where they belong, in termios.h.
5268         Add *[0-3] definitions.
5269         Fixes confusion between VT and FF.
5270         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5271         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5272         are already defined to avoid collision with termios.h.
5273         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5274         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5275         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5276         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5277         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5278         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5279         VTDLY, VT0, VT1): New macros.
5280         [__USE_GNU] (OLCUC): Change value of macro.
5281         [__USE_XOPEN] (OFILL): New macro.
5282         [__USE_BSD] (CRTSCTS): Change value.
5283         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5284         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5285         (B7200, B14400, B28800, B76800): New macros.
5287 2008-05-01  David S. Miller  <davem@davemloft.net>
5289         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5290         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5291         (gen-as-const-headers): Add it.
5292         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5293         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5294         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5295         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5297         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5298         six system call parameters.
5299         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5301 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5303         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5304         RUSAGE_LWP.
5305         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5306         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5308 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5310         * stdlib/tst-setcontext.c: Include unistd.h.
5312 2008-04-25  David S. Miller  <davem@davemloft.net>
5314         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5315         Pass "union semun" properly in to sys_ipc, it must be passed
5316         by value, not by reference.
5318 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5320         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5321         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5322         * nscd/connections.c (mem_in_flight): Likewise.
5324         * nscd/nscd.h (dbs): Make hidden.
5326         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5327         Avoid returning -1, return 0 instead.
5329 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5331         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5333 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5335         [BZ #5209]
5336         * sysdeps/unix/sysv/linux/times.c: New file.
5338         [BZ #5381]
5339         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5340         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5341         prototype.
5342         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5343         appropriate mem_in_flight element.
5344         (gc): Take allocations which have not yet been committed to the
5345         database into account.
5346         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5347         Reset mem_in_flight before returning.
5348         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5349         cue it up in mem_in_flight_list.
5350         * nscd/aicache.c: Adjust mempool_alloc call.
5351         * nscd/grpcache.c: Likewise.
5352         * nscd/hstcache.c: Likewise.
5353         * nscd/initgrcache.c: Likewise.
5354         * nscd/pwdcache.c: Likewise.
5355         * nscd/servicescache.c: Likewise.
5356         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5357         of -fpie.
5359         * nscd/connections.c (handle_request): Provide better error message
5360         in case SELinux forbids the service.
5362         * version.h (VERSION): Bump to 2.8.90.
5364 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5366         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5368 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5370         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5371         Also use for 32-bit.
5372         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5373         __nextafter instead of nextafter to avoid local PLT.
5374         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5375         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5377         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5379         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5380         __fe_nomask_env.
5381         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5382         <fenv_libc.h> instead of <fenv.h>.
5383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5386         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5388         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5389         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5390         function from fegetexcept and make old name weak alias.
5391         * include/fenv.h: Declare __fegetexcept.
5392         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5393         fegetexcept.
5394         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5395         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5396         to fetestexcept.
5397         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5398         instead of frexpl to avoid local PLT.
5399         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5400         ilogbl to avoid local PLT.
5401         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5402         instead of ldexpl to avoid local PLT.
5403         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5404         __roundl not roundl to avoid local PLT.
5405         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5406         local PLTs.  Use __sincosl instead of separate sinl and cosl
5407         calls.
5408         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5410         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5411         version for ppc64 to 2.4.21 since without it makecontext will fail.
5413         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5414         to the ABI in use.
5415         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5416         .__tls_get_addr.
5417         [__powerpc64__] (TLS_GD): Likewise.
5419 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5421         [BZ #4997]
5422         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5423         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5424         mantissa.
5425         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5426         Likewise.  Also account for when x is an odd number between 2^52
5427         and 2^53-1.
5428         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5429         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5430         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5431         detect aforementioned erroneous conditions.
5433 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5435         * configure.in: Check for -fno-section-anchors in addition to
5436         -fno-toplevel-reorder.
5438 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5440         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5442         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5443         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5444         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5445         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5446         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5447         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5449 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5451         [BZ #5443]
5452         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5453         * time/alt_digit.c: Likewise.
5454         * wcsmbs/wcsmbsload.c: Likewise.
5456 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5458         * version.h (VERSION): Bump to 2.8.
5460         * timzeone/asia: Update from tzdata2008b.
5461         * timezone/backward: Likewise.
5462         * timezone/europe: Likewise.
5463         * timezone/northamerica: Likewise.
5464         * timezone/southamerica: Likewise.
5465         * timezone/iso3166.tab: Likewise.
5466         * timezone/leapseconds: Likewise.
5467         * timezone/zone.tab: Likewise.
5468         * timezone/private.h: Update from tzcode2008a.
5469         * timezone/zdump.c: Likewise.
5470         * timezone/zic.c: Likewise.
5472 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5474         [BZ #5741]
5475         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5476         Define additonal Data Cache Block instruction macros.
5477         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5478         Replace dcbst with dcbf and sync with sync/isync.
5480 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5482         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5483         Always set ELF_RTYPE_CLASS_PLT.
5484         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5486 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5488         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5489         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5490         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5491         For ISA 2.01 and later replace mftb with mfspr 268.
5493 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5495         [BZ #5768]
5496         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5497         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5499 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5501         [BZ #5768]
5502         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5503         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5504         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5505         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5507 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5509         * stdlib/tst-makecontext.c (othervar): New variable.
5510         (cf): Test sign extending the argument to long.
5512 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5514         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5515         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5516         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5517         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5518         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5519         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5520         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5522 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5524         * elf/Makefile (tests): Substitute tests-vis-yes here.
5525         (tests-vis-yes): Delete.
5526         (modules-name, modules-vis-yes): Similarly.
5528 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5530         [BZ #4407]
5531         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5532         Preserve sign in signgamp when x is zero.
5534 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5536         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5537         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5538         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5539         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5540         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5541         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5543 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5545         [BZ #4314]
5546         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5547         buffers.
5549         [BZ #5209]
5550         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5551         a reserved error value.
5553         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5554         value to check for correct sign extension.
5556         [BZ #5436]
5557         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5558         Copy 64-bit parameter values even though this is not required in
5559         the standard.
5561         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5562         PC save.
5564 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5566         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5567         PC save.
5569 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5571         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5573 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5575         [BZ #5998]
5576         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5577         in line-buffered stream failed.
5578         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5580 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5582         [BZ #6024]
5583         * scripts/abi-versions.awk: If the version specified by
5584         --enable-oldest-abi is older than the first version for this
5585         architecture, use the default version.
5587         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5588         as well when ignoring the whole category.
5590 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5592         [BZ #6042]
5593         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5594         ETHERTYPE_* definitions.
5595         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5597 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5599         * stdlib/mbtowc.c (__no_r_state): Remove.
5600         (mbtowc): New static state variable.  Use it instead of
5601         __no_r_state.
5602         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5603         (__wctomb_state): New hidden variable.
5604         (wctomb): Use __wctomb_state instead of __no_r_state.
5605         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5606         (__wctomb_state): New extern decl.
5607         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5609 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5611         [BZ #5475]
5612         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5614 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5616         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5618 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5620         * po/nl.po: Update from translation team.
5622 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5624         [BZ #6007]
5625         * string/strfry.c: Handle empty strings again.
5627 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5629         [BZ #5443]
5630         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5631         before looking for translation.
5632         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5633         * locale/freelocale.c: Likewise.
5634         * locale/newlocale.c: Likewise.
5635         * locale/setlocale.c: Likewise.
5636         Based partially on a patch by ryo@np.css.fujitsu.com.
5638 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5640         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5641         acquiring wrlock.  Do conv_tab allocation while holding lock.
5642         * intl/Makefile: Add rules to build and run tst-gettext6.
5643         * intl/tst-gettext6.c: New test.
5644         * intl/tst-gettext6.sh: New file.
5646 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5648         * po/nl.po: Update from translation team.
5650         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5651         provided through st_blksize, try the default size before giving up.
5653 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5655         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5657         [BZ #5939]
5658         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5660         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5661         error message.  POSIX today does not require the messages to be in
5662         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5664         [BZ #5979]
5665         * sunrpc/auth_unix.c: Unify printed strings.
5666         * sunrpc/clnt_tcp.c: Likewise.
5667         * sunrpc/clnt_udp.c: Likewise.
5668         * sunrpc/clnt_unix.c: Likewise.
5669         * sunrpc/svc_tcp.c: Likewise.
5670         * sunrpc/svc_udp.c: Likewise.
5671         * sunrpc/svc_unix.c: Likewise.
5672         * sunrpc/xdr.c: Likewise.
5673         * sunrpc/xdr_array.c: Likewise.
5674         * sunrpc/xdr_rec.c: Likewise.
5675         * sunrpc/xdr_ref.c: Likewise.
5676         * locale/programs/ld-time.c (time_finish): Unify messages.
5677         * locale/programs/locfile.c (handle_copy): Fix typo.
5678         * nscd/nscd.c (options): Fix typo.
5680         [BZ #5995]
5681         * stdlib/strtod_l.c: Use correct sign for result in one more
5682         underflow case.
5683         Patch by Eric Blake <ebb9@byu.net>.
5685 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5687         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5688         and creat system calls.
5689         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5690         call.
5691         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5692         system calls.
5693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5694         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5695         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5697 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5699         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5700         <linux/limits.h> has defined it.
5701         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5702         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5703         headers.
5704         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5705         it instead of ARG_MAX.
5707 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5709         * posix/gai.conf: Fix comment for scope nullbits.
5710         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5711         default to 128 bits for v4 mapped addresses.
5713 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5715         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5716         ptrace call to get the ieee_instruction_pointer from the kernel.
5717         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5718         ptrace call to set the ieee_instructtion_pointer.
5719         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5720         Add comment that ieee_instruction_pointer is always 0.
5722 2008-03-09  Andreas Jaeger  <aj@suse.de>
5724         [BZ #5857]
5725         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5726         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5727         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5729         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5730         (rint_test): Likewise.
5732 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5734         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5735         call.
5736         (__nisfind_server): Similar for open readColdStartFile call.
5737         Patch partially by Jim Meyering.
5738         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5739         around internal_setent call.
5741         * po/vi.po: New Vietnamese translation.
5743         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5744         ADJ_OFFSET_SS_READ.
5746         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5747         remove CLONE_STOPPED.
5749 2008-02-10  Jim Meyering  <meyering@redhat.com>
5751         Remove useless "if" before "free":
5752         * elf/ldconfig.c (parse_conf_include): Likewise.
5753         * gmon/gmon.c (weak_alias): Likewise.
5754         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5755         * inet/rcmd.c (__validuser2_sa): Likewise.
5756         * intl/bindtextdom.c (set_binding_values): Likewise.
5757         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5758         * libio/genops.c (save_for_backup): Likewise.
5759         * libio/wgenops.c (save_for_wbackup): Likewise.
5760         * locale/programs/ld-collate.c (collate_read): Likewise.
5761         * locale/programs/linereader.c (get_string): Likewise.
5762         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5763         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5764         * resolv/res_debug.c (do_section): Likewise.
5765         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5766         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5767         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5768         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5769         * time/tzset.c (tzset_internal): Likewise.
5771 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5773         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5774         of ASSEMBLER.
5776 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5778         [BZ #5903]
5779         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5780         not stream for output file.  Open output file here.
5781         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5782         and output file name.
5783         (process_fd): Likewise.
5784         (process_file): Likewise.
5785         (main): Adjust callers of changed functions.
5786         * iconv/iconv_prog.h: Adjust prototype.
5788 2008-03-09  Andreas Jaeger  <aj@suse.de>
5790         [BZ #5753]
5791         * sysdeps/ia64/ieee754.h: Use protected namespace
5792         __BIG_ENDIAN/__LITTLE_ENDIAN.
5793         * sysdeps/ieee754/ieee754.h: Likewise.
5794         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5796 2008-03-08  Roland McGrath  <roland@frob.com>
5798         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5799         ignore a signal that came from a machine exception, treat it as a
5800         fatal core-dump signal instead.
5801         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5803         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5804         Clear DF bit in thread state's eflags.
5805         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5807 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
5809         [BZ #5774]
5810         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5811         of NAN(...) sequence.
5812         * stdlib/Makefile (tests): Add tst-strtod6.
5813         * stdlib/tst-strtod6.c: New file.
5815         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5817         [BZ #5762]
5818         * posix/getopt.c (_getopt_internal_r): Clarify error message by
5819         putting offending option character in quotes.  Clean up error
5820         messages.
5821         * po/be.po: Adjust msgstr in translation file.
5822         * po/bg.po: Likewise.
5823         * po/ca.po: Likewise.
5824         * po/cs.po: Likewise.
5825         * po/da.po: Likewise.
5826         * po/de.po: Likewise.
5827         * po/es.po: Likewise.
5828         * po/fr.po: Likewise.
5829         * po/hr.po: Likewise.
5830         * po/ko.po: Likewise.
5831         * po/nl.po: Likewise.
5832         * po/rw.po: Likewise.
5833         * po/sk.po: Likewise.
5834         * po/sv.po: Likewise.
5835         * po/tr.po: Likewise.
5836         * po/zh_CN.po: Likewise.
5837         * po/zh_TW.po: Likewise.
5839         [BZ #5760]
5840         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5841         Patch by Roland Bless <roland@bless.de>.
5843         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5844         .o file.
5845         * elf/Makefile (routines): Add dl-sysdep.
5846         (elide-routines.os): Likewise.
5848 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
5850         [BZ #5786]
5851         * elf/dl-sysdep.c: Undefine ROUND after use.
5852         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5853         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5854         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5855         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5856         to ...
5857         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5858         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5859         if necessary.
5860         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5862         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5863         _dl_tls_get_addr_soft element.
5864         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5865         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5866         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5867         GLRO.
5868         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5869         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5870         of internal_function.
5872         * stdlib/Makefile (aux): Add tens_in_limb.
5873         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5874         * stdlib/tens_in_limb.c: ...here.  New file.
5876         [BZ #5778]
5877         * sysdeps/unix/sysv/linux/pathconf.h: Declare
5878         __statfs_chown_restricted.
5879         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5880         for _PC_CHOWN_RESTRICTED.
5881         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5882         Implement __statfs_chown_restricted.
5883         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5884         _POSIX_CHOWN_RESTRICTED value to zero.
5885         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5886         defined to zero.
5888         * sysdeps/x86_64/rtld-memset.c: New file.
5890 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
5892         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5894         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5895         Barcelona machine.  Make default fall through branch of
5896         __x86_64_preferred_memory_instruction check as the integer code path.
5898 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5900         * sysdeps/x86_64/cacheinfo.c
5901         (__x86_64_preferred_memory_instruction): New variable.
5902         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5904         * sysdeps/x86_64/memset.S: Rewrite.
5906 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
5908         * include/stdio.h (__asprintf_chk, __dprintf_chk,
5909         __obstack_printf_chk): New prototypes.
5910         (__vasprintf_chk, __vdprintf_chk,
5911         __obstack_vprintf_chk): Likewise.
5912         Add libc_hidden_proto.
5913         * libio/obprintf.c
5914         (_IO_obstack_jumps): No longer static, add attribute_hidden.
5915         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5916         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5917         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5918         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5919         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5920         __obstack_vprintf_chk): New prototypes.
5921         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5922         obstack_vprintf): New inlines.
5923         * debug/dprintf_chk.c: New file.
5924         * debug/vdprintf_chk.c: New file.
5925         * debug/asprintf_chk.c: New file.
5926         * debug/vasprintf_chk.c: New file.
5927         * debug/obprintf_chk.c: New file.
5928         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5929         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5930         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5931         @@GLIBC_2.8.
5932         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5933         vdprintf_chk and obprintf_chk, set CFLAGS for them.
5934         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5935         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5936         libc_hidden_proto.
5937         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5938         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5939         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5940         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5941         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5942         @@GLIBC_2.8.
5943         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5944         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5945         obstack_vprintf_chk.
5946         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5947         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5948         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5949         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5950         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5951         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5953 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
5955         [BZ #5779]
5956         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5957         Patch by Roy Marples <roy@marples.name>.
5959         [BZ #5736]
5960         * malloc/malloc.c: Fix typo in comment.
5962         [BZ #5627]
5963         * locale/iso-639.def: Add Shuswap.
5965 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
5967         [BZ #5790]
5968         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5969         overwrite *h_errnop/*errnop values from getanswer_r in case of
5970         failure.
5972 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
5974         [BZ #5818]
5975         * nscd/connections.c (dbs): Add initializers for .suggested_module.
5976         (verify_persistent_db): Remove one unnecessary test and add a new one
5977         for bad configuration.
5978         (nscd_init): Improve error reported when persistent database cannot
5979         be reused.
5980         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5981         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5982         .suggested_module and .max_db_size and case config file says the
5983         values are zero.
5984         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5986         [BZ #5854]
5987         * nis/ypclnt.c (yp_order): Fix handling of return value of
5988         do_ypcall_tr call.
5989         Patch by Jeff Moyer <jmoyer@redhat.com>.
5991         * po/fr.po: Update from translation team.
5993 2008-02-22  Andreas Jaeger  <aj@suse.de>,
5994             Carlos O'Donell <carlos@systemhalted.org>
5996         [BZ #5012]
5997         * FAQ.in: Describe why glibc needs to be compiled with
5998         optimization.
6000 2008-02-19  Roland McGrath  <roland@redhat.com>
6002         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6004 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6006         [BZ #5737]
6007         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6008         __USE_MISC is defined.
6010 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6012         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6013         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6014         sys/timerfd.h.
6015         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6016         timerfd_gettime, timerfd_settime.
6017         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6018         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6020 2008-02-08  Roland McGrath  <roland@redhat.com>
6022         * elf/elf.h (NT_PPC_SPE): New macro.
6024 2008-02-06  Roland McGrath  <roland@redhat.com>
6026         * Makerules ($(common-objpfx)sysd-rules):
6027         Depend on $(sysdep-makeconfigs).
6029 2008-01-31  Roland McGrath  <roland@redhat.com>
6031         [BZ #5442]
6032         * configure.in: Use -print-file-name if it yields a directory,
6033         for each of include and include-fixed.
6034         * configure: Regenerated.
6036         * Makeconfig (sysd-rules-targets): New variable.
6037         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6038         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6040 2008-01-30  Roland McGrath  <roland@redhat.com>
6042         * manual/libc.texinfo: Update back-cover text.
6044         * elf/elf.h (NT_386_TLS): New macro.
6046 2008-01-29  Roland McGrath  <roland@redhat.com>
6048         * Makeconfig (sysd-rules-patterns): New variable.
6049         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6050         (check-inhibit-asm): New canned sequence, replaces ...
6051         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6052         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6053         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6054         (CFLAGS-rtld): Variable removed.
6056 2008-01-24  Roland McGrath  <roland@redhat.com>
6058         * configure.in: Let configure fragments set base_os.
6059         * configure: Regenerated.
6061 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6063         * po/ko.po: Update from translation team.
6065 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6067         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6069 2008-01-12  Andreas Jaeger  <aj@suse.de>
6071         [BZ #5040]
6072         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6073         Add EPOLLRDHUP.
6075 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6077         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6078         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6079         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6081 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6083         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6084         * elf/dl-close.c (_dl_close): Check for it.
6085         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6086         (_dl_allocate_static_tls): Likewise.
6087         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6088         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6089         to it.
6090         * elf/tst-tls16.c: New file.
6091         * elf/tst-tlsmod16a.c: New file.
6092         * elf/tst-tlsmod16b.c: New file.
6093         * elf/Makefile: Add rules to build and run tst-tls16.
6095 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6097         [BZ #5628]
6098         * bits/shm.h: Fix comment describing shmid_ds.
6099         * sysdeps/gnu/bits/shm.h: Likewise.
6100         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6101         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6102         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6103         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6104         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6105         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6106         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6107         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6108         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6110         [BZ #5607]
6111         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6112         prototypes.
6113         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6114         additional suffixes.
6115         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6116         Add optional functions mq_timedreceive and mq_timedsend.
6117         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6118         * conform/data/pthread.h-data: Fix prototype of
6119         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6120         * conform/data/semaphore.h-data: Allow time.h definitions.
6121         * conform/data/signal.h-data: Likewise.
6122         * conform/data/stdio.h-data: getw and putw are not required in v6.
6123         * conform/data/stdlib.h-data: Change setstate prototype.
6124         * conform/data/string.h-data: Fix strerror_r prototype.
6125         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6126         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6127         Fix readlink prototype.
6128         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6129         in6addr_loopback.
6130         * inet/netinet/in.h: Cleanup namespace.
6131         * posix/regex.h: Likewise.
6132         * resolv/netdb.h: Likewise.
6133         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6134         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6135         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6136         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6137         of names of in in6_addr.
6138         (default_precedence): Likewise.
6139         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6140         NULL definition.
6142 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6144         * conform/data/fmtmsg.h-data: Add missing allows.
6145         * conform/data/ftw.h-data: Likewise.
6146         * conform/data/inttypes.h-data: Likewise.
6147         * conform/data/math.h-data: Likewise.
6148         * conform/data/signal.h-data: Likewise.
6149         * conform/data/net/if.h-data: Likewise.
6150         * conform/data/netinet/in.h-data: Likewise.
6151         * conform/data/sys/socket.h-data: Likewise.
6153         [BZ #5614]
6154         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6155         (__strtok_r): Simplify.
6156         * string/tester.c (test_strtok_r): Add test case for futile search
6157         with single-character seach string.
6159 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6161         * po/ko.po: Update from translation team.
6163 2008-01-11  Andreas Jaeger  <aj@suse.de>
6165         [BZ #5600]
6166         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6167         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6168         kernel header.
6170 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6172         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6173         native interface lookup in all the relevant places.
6175 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6176             Ulrich Drepper  <drepper@redhat.com>
6178         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6179         field.  Use sockaddr_in6 for source_addr.
6180         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6181         (match_prefix): Likewise.
6182         (get_label): Likewise.
6183         (get_precedence): Likewise.
6184         (rfc3484_sort): Change to use indirect access to results array.
6185         Adjust to use of sockaddr_in6.  Replace service_order test with
6186         simple index comparison.
6187         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6188         service_order field.  Adjust qsort_t calls.  Access sorted result
6189         array indirectly through order array.
6190         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6191         * posix/tst-rfc3484-2.c: Likewise.
6192         * posix/tst-rfc3484-3.c: Likewise.
6194 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6196         [BZ #5541]
6197         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6198         pollfd structures.
6199         Patch by André Cruz.
6201         [BZ #5545]
6202         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6203         (clnt_spcreateerror): Likewise.
6205         [BZ #5553]
6206         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6207         (public_mEMALIGn): Likewise.
6208         Patch mostly by Daniel Jacobowitz.
6210 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6212         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6213         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6214         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6215         * stdlib/tst-makecontext2.c: New test.
6217 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6219         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6220         defined.
6221         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6222         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6223         transliteration hooks and REINIT_PARAMS afterwards.
6224         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6225         status.
6226         (REINIT_PARAMS): Define.
6227         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6228         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6229         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6230         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6231         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6232         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6233         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6234         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6235         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6236         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6237         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6238         * iconvdata/tst-iconv7.c: New test.
6240 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6242         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6244 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6246         [BZ #5112]
6247         * nscd/connections.c (restart): Fix condition.
6249 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6251         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6252         __ctype_toupper_loc): Add __THROW.
6254 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6256         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6257         recognition of interface family.
6259         * posix/getconf.c: Update copyright year.
6260         * nss/getent.c: Likewise.
6261         * iconv/iconvconfig.c: Likewise.
6262         * iconv/iconv_prog.c: Likewise.
6263         * elf/ldconfig.c: Likewise.
6264         * catgets/gencat.c: Likewise.
6265         * csu/version.c: Likewise.
6266         * elf/ldd.bash.in: Likewise.
6267         * elf/sprof.c (print_version): Likewise.
6268         * locale/programs/locale.c: Likewise.
6269         * locale/programs/localedef.c: Likewise.
6270         * nscd/nscd.c (print_version): Likewise.
6271         * debug/xtrace.sh: Likewise.
6272         * malloc/memusage.sh: Likewise.
6273         * malloc/mtrace.pl: Likewise.
6274         * debug/catchsegv.sh: Likewise.
6276 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6278         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6279         second lookup.
6281 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6283         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6284         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6286 2007-12-17  Roland McGrath  <roland@redhat.com>
6288         * inet/ether_line.c (ether_line): Remove unused variable.
6290 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6292         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6293         and winp.
6294         * login/openpty.c (openpty): Likewise.
6295         * login/pty.h (openpty, forkpty): Likewise.
6296         * manual/terminal.texi (openpty, forkpty): Likewise.
6298 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6300         * malloc/malloc.c (public_cALLOc): For arenas other than
6301         main_arena, count all bytes inside the mprotect_size range of the
6302         heap as uninitialized.
6304 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6306         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6307         executable stacks.
6309         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6310         mTRIm for all of them.
6311         (mTRIm): Additionally iterate over all free blocks and use madvise
6312         to free memory for all those blocks which contain at least one
6313         memory page.
6314         * malloc/tst-trim1.c: New file.
6315         * malloc/Makefile (tests): Add tst-trim1.
6317         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6319 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6321         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6322         First cast argument to long
6323         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6324         Return long.
6325         (__vdso_clock_gettime): Likewise.
6326         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6327         return long.
6329 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6331         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6332         * locale/nl_langinfo_l.c: Real implementation, copied from
6333         nl_langinfo.c.
6334         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6336 2007-12-01  Jim Meyering  <meyering@redhat.com>
6338         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6339         that would inhibit utf8-optimization of a regexp containing line-
6340         or buffer-anchors, e.g., `^', `$'.
6342 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6344         * time/bug-getdate1.c (do_test): Don't use century values which
6345         aren't valid on 32-bit systems.
6347 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6349         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6350         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6351         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6352         __strcat_g, __strncat_g): Add __asm__.
6354 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6356         [BZ #5477]
6357         * io/fchmodat.c: Fix typo in stub_warning use.
6358         Patch by Petr Salinger.
6360 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6362         * iconvdata/hp-thai8.c: New file.
6363         * iconvdata/Makefile: Add rules for hp-thai8.c.
6364         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6365         * iconvdata/gconv-modules: Likewise.
6367         [BZ #5464]
6368         * iconvdata/hp-greek8.c: New file.
6369         * iconvdata/Makefile: Add rules for hp-greek8.c.
6370         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6371         * iconvdata/gconv-modules: Likewise.
6373         [BZ #5463]
6374         * iconvdata/hp-turkish8.c: New file.
6375         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6376         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6377         * iconvdata/gconv-modules: Likewise.
6379         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6380         (shrink_heap): ... this new function.
6381         (heap_trim): Call shrink_heap instead of grow_heap.
6383         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6384         case don't call alloc_perturb.
6386 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6388         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6389         possible.
6390         * sysdeps/unix/sysv/linux/kernel-features.h
6391         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6392         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6394 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6396         [BZ #5424]
6397         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6398         * stdio-common/Makefile (tests): Add bug22.
6399         * stdio-common/bug22.c: New file.
6401         [BZ #5451]
6402         * time/getdate.c: Fix filling in default values.
6403         * time/bug-getdate1.c: New file.
6404         * time/Makefile: Add rules to build and run bug-getdate1.
6406         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6407         * iconvdata/ebcdic-es.c: Likewise.
6408         * iconvdata/ebcdic-es-a.c: Likewise.
6409         * iconvdata/ebcdic-uk.c: Likewise.
6410         * iconvdata/iso8859-16.c: Likewise.
6411         * iconvdata/viscii.c: Likewise.
6412         * iconvdata/iso8859-9e.c: Likewise.
6413         * iconvdata/Makefile: Adjust appropriately.
6415         [BZ #5428]
6416         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6417         __need_wint_t.
6419 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6421         [BZ #5427]
6422         * iconvdata/hp-roman9.c: New file.
6423         * iconvdata/Makefile: Add rules for hp-roman9.c.
6424         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6425         * iconvdata/gconv-modules: Likewise.
6427         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6428         * iconvdata/Makefile: Adjust appropriately.
6430         [BZ #5441]
6431         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6432         structure, it's allocated with alloca.
6433         * stdio-common/Makefile (tests): Add bug21.
6434         * stdio-common/bug21.c: New file.
6436 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6438         [BZ #5452]
6439         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6440         keyword for gcc's braced-groups.
6442 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6444         [BZ #5454]
6445         * inet/ether_line.c: Strip hostname of whitespaces.
6446         * inet/Makefile (tests): Add tst-ether_line.
6447         * inet/tst-ether_line.c: New file.
6449 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6451         [BZ #5439]
6452         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6454         [BZ #5435]
6455         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6457         * stdlib/tst-setcontext.c: Catch the case where the links gets
6458         messed up and we do not reach main again.
6460         * po/ca.po: Update from translation team.
6462 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6464         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6465         * posix/regex.h (REG_ENOSYS): Likewise.
6466         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6468 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6470         * nscd/nscd.h (MAX_STACK_USE): Define.
6471         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6472         (gc): Initialize stack_used based on allocation in prune_cache.
6473         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6474         Clear array before use.
6476         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6477         memory allocation failed.
6478         * nscd/hstcache.c (cache_addhst): Likewise.
6479         * nscd/grpcache.c (cache_addgr): Likewise.
6480         * nscd/servicescache.c (cache_addserv): Likewise.
6481         * nscd/pwdcache.c (cache_addpw): Likewise.
6482         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6484 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6487         and creat system calls.
6489         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6491 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6493         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6494         Add netiucv/iucv.h.
6495         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6496         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6497         protocol.
6498         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6499         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6500         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6502 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6504         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6505         strncat): Define as macros to avoid compile errors.
6507         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6508         creat entries.
6510 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6512         [BZ #5382]
6513         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6514         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6515         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6516         overflow it.
6517         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6519         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6520         Return zero in case the thread library is not NPTL.
6522         [BZ #5375]
6523         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6524         initializing interface list.
6526         [BZ #5378]
6527         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6528         use result of nss_getgrgid_r if nothing was found.  For other
6529         error return with a failure.
6530         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6532         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6533         macro name.
6535 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6537         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6538         (get_scope): For IPv4 scope, use scopes table.
6539         (fini): Free scopes table if necessary.
6540         (free_scopelist): New function.
6541         (scopecmp): New function.
6542         (gaiconf_init): Also handle scopev4 entries.
6543         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6544         * posix/tst-rfc3484-2.c (do_test): Likewise.
6545         * posix/gai.conf: Document scopev4 defaults.
6546         * posix/Makefile (tests): Add tst-rfc3484-3.
6547         * posix/tst-rfc3484-3.c: New file.
6549         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6550         Teredo tunnels.
6551         * posix/gai.conf: Update for current default tables.
6553 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6555         * po/tr.po: Update from translation team.
6557 2007-11-18  Roland McGrath  <roland@frob.com>
6559         * manual/arith.texi (Remainder Functions): Spelling fix.
6560         From Shaun Silk <genix@mysoul.com.au>.
6562         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6564 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6566         * po/zh_CN.po: Update from translation team.
6568         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6569         Add sys/signalfd.h and sys/eventfd.h.
6571 2007-11-15  Bruno Haible  <bruno@clisp.org>
6573         [BZ #5346]
6574         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6575         union.
6576         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6577         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6578         it needs only fixed stack space. Delay the initialization of
6579         msgid_len until it is needed.
6581 2007-11-15  Andreas Jaeger  <aj@suse.de>
6583         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6584         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6586 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6588         * po/ko.po: Update from translation team.
6590 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6592         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6593         significantly.  The device type is also part of the ifinfomsg data.
6595         * po/sv.po: Update from translation team.
6596         * po/nl.po: Likewise.
6598         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6599         to wake up in 24 hours.
6601         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6603 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6605         * po/cs.po: Update from translation team.
6606         * po/pl.po: Likewise.
6608         * include/ifaddrs.h: Remove in6ai_temporary.
6609         (struct in6addrinfo): Add index element.
6610         Declare __check_native.
6611         * inet/Makefile (aux): Add check_native.
6612         * sysdeps/unix/sysv/linux/check_native.c: New file.
6613         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6614         IFA_F_TEMPORARY.  Pass back ifa_index.
6615         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6616         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6617         call __check_native if necessary.
6618         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6619         to sort addresses.  Pass information about the results.
6620         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6621         of rfc3484_sort interface.
6622         * posix/tst-rfc3484-2.c: Likewise.
6624         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6625         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6626         for _quicksort.
6627         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6628         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6629         on as third parameter to compare function and _quicksort.
6630         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6631         to the compare function.
6632         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6633         * Versions.def: Add GLIBC_2.8 for libc.
6635         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6636         * posix/tst-rfc3484-2.c: Likewise.
6638         * include/kernel-features.h: Moved to...
6639         * sysdeps/mach/hurd/kernel-features.h: ...here.
6641 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6643         * sysdeps/i386/i586/memcpy_chk.S: New file.
6644         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6645         * sysdeps/i386/i586/memset_chk.S: Likewise.
6647 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6649         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6650         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6651         list of interfaces.  Also store prefix length.
6652         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6653         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6654         prefix if source and destination address are in the same subnet.
6655         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6656         Always look for matching record in in6ai list.
6657         Correct source_addr_len value for IPv6->IPv4 converted records.
6659 2007-11-11  Roland McGrath  <roland@frob.com>
6661         * include/kernel-features.h: New file.
6663 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6665         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6666         complications for 64-bit platforms.
6668         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6669         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6670         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6671         open64_2.
6672         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6673         entries.
6674         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6675         * sysdeps/wordsize-64/alphasort.c: New file.
6676         * sysdeps/wordsize-64/alphasort64.c: New file.
6677         * sysdeps/wordsize-64/fseeko.c: New file.
6678         * sysdeps/wordsize-64/fseeko64.c: New file.
6679         * sysdeps/wordsize-64/ftello.c: New file.
6680         * sysdeps/wordsize-64/ftello64.c: New file.
6681         * sysdeps/wordsize-64/ftw.c: New file.
6682         * sysdeps/wordsize-64/ftw64.c: New file.
6683         * sysdeps/wordsize-64/iofgetpos.c: New file.
6684         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6685         * sysdeps/wordsize-64/iofopen.c: New file.
6686         * sysdeps/wordsize-64/iofopen64.c: New file.
6687         * sysdeps/wordsize-64/iofsetpos.c: New file.
6688         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6689         * sysdeps/wordsize-64/lockf.c: New file.
6690         * sysdeps/wordsize-64/lockf64.c: New file.
6691         * sysdeps/wordsize-64/mkostemp.c: New file.
6692         * sysdeps/wordsize-64/mkostemp64.c: New file.
6693         * sysdeps/wordsize-64/mkstemp.c: New file.
6694         * sysdeps/wordsize-64/mkstemp64.c: New file.
6695         * sysdeps/wordsize-64/scandir.c: New file.
6696         * sysdeps/wordsize-64/scandir64.c: New file.
6697         * sysdeps/wordsize-64/tmpfile.c: New file.
6698         * sysdeps/wordsize-64/tmpfile64.c: New file.
6699         * sysdeps/wordsize-64/versionsort.c: New file.
6700         * sysdeps/wordsize-64/versionsort64.c: New file.
6701         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6702         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6703         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6704         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6705         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6706         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6707         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6708         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6709         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6710         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6711         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6712         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6714         * crypt/sha256-crypt.c: Fix a comment.
6715         * crypt/sha512-crypt.c: Likewise.
6717 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6719         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6721 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6723         [BZ #5277]
6724         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6725         because output buffer is too small break, don't loop.
6726         * iconvdata/Makefile (tests): Add bug-iconv6.
6727         * iconvdata/bug-iconv6.c: New file.
6729 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6731         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6732         with size_t type.
6733         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6734         size_t.  Add casts where needed.
6736         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6737         old headers, don't call avc_has_perm if we don't have the
6738         permission information.
6740 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6742         * elf/rtld.c (dl_main): Use the page size to find the map start.
6744 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6746         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6747         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6749         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6750         when the lookup call failed.
6752         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6753         Add prune_cond and wakeup_time.
6754         (CACHE_PRUNE_INTERNAL): Define.
6755         Update declarations of prune_cache and setup_thread.
6756         * nscd/connections.c (dbs): Update initializers.
6757         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6758         (nscd_init): Default number of threads is now 4.
6759         (invalidate_cache): Take lock before calling prune_cache.
6760         (handle_request): If SELinux forbids the request, say so.
6761         (readylist_cond): Use static initializer.
6762         (nscd_run_prune): New function.  Used only by pruning threads.
6763         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6764         here.
6765         (fd_ready): Update nscd_run reference.
6766         (start_threads): No need to initialize readylist_cond.
6767         Start pruning threads separately.
6768         * nscd/nscd_setup_thread.c: Change return value type to int and always
6769         return 0.
6770         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6771         to int and return nonzero value if we can use the TID address hack.
6772         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6773         the database is later than the new entry's timeout, update the
6774         wakeup time and wake the cleanup thread.
6775         (prune_cache): Return seconds the next entry in the database is still
6776         valid.  Remove locking for pruning here.
6777         * nscd/nscd.conf: Document default number of threads.
6779 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6781         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6782         stack is properly aligned for the target function.
6783         Correct unwind info.
6785         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6786         when using auditing libraries.
6788 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
6790         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6791         _nss_dns_getnetbyaddr2_r.
6792         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
6793         extra parameter to getanswer_r.
6794         (_nss_dns_getnetbyaddr_r): Now a wrapper around
6795         _nss_dns_getnetbyaddr2_r.
6797         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6798         gethstbynm3_r.
6799         * nscd/gethstbynm2_r.c: Remove.
6800         * nscd/gethstbynm3_r.c: New file.
6801         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6802         __gethostbyaddr_r.
6803         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
6804         __gethostbyaddr_r compatibility wrapper.
6805         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
6806         determining timeout of entry.
6807         (lookup): Take new parameter and pass it to __gethostbyname3_r and
6808         __gethostbyaddr2_r.
6809         (addhstbyX): Pass reference to variable for TTL to lookup and
6810         cache_addhst.
6811         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6812         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6813         and __nss_next2.  Remove __nss_services_lookup.
6814         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
6815         Add compat wrapper.
6816         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6817         __nss_next2.
6818         * nss/getXXent_r.c: Likewise.
6819         * nss/getnssent_r.c: Likewise.
6820         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
6821         does not exist in module, try the optional second name.
6822         (__nss_next2): New function.
6823         (__nss_next): Now wrapper around __nss_next2.
6824         * nss/nsswitch.h: Adjust __nss_lookup prototype.
6825         Declare __nss_next2.
6826         Adjust definition of db_lookup_function type.
6827         * nss/service-lookup.c: Define NO_COMPAT.
6828         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6829         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6830         * inet/ether_ntoh.c: Likewise.
6831         * sunrpc/netname.c: Likewise.
6832         * sunrpc/publickey.c: Likewise.
6833         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
6834         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6835         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6836         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6837         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6839         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6841         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6843 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
6845         [BZ #5204]
6846         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6847         * crypt/sha512c-test.c: Likewise.
6849         [BZ #5225]
6850         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6851         to keep track of end of %[ format string element.
6852         * stdio-common/Makefile (tests): Add bug20.
6853         * stdio-common/bug20.c: New file.
6855         [BZ #5222]
6856         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6857         path elements in counting mode.
6859 2007-10-27  Andreas Jaeger  <aj@suse.de>
6861         [BZ #5040]
6862         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6864         [BZ #3112]
6865         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6866         (__cleanup): Free shared library when exiting.
6867         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6868         (__cleanup): Free shared library when exiting.
6870 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6872         [BZ #2549]
6873         * math/libm-test.inc (check_float_internal): Support
6874         denormalized return.
6876 2007-10-23  Andreas Jaeger  <aj@suse.de>
6878         [BZ #5208]
6879         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6880         __LONG_LONG_PAIR to handle little endian byte order.
6881         Suggested by abhishekrai@google.com
6883 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
6885         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6887 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
6889         * nscd/cache.c (prune_cache): Move test for modified file outside
6890         of locking.
6892 2007-10-21  Andreas Jaeger  <aj@suse.de>
6894         * manual/texinfo.tex: Update to latest version.
6896         * manual/sysinfo.texi (System Parameters): Fix Formatting.
6898         * manual/arith.texi (Status bit operations): Fix formatting.
6900         * manual/errno.texi (Error Messages): Fix formatting.
6902         * manual/sysinfo.texi (System Parameters): Fix formatting.
6904         * manual/libc.texinfo: Update VERSION and UPDATED.
6906 2007-10-19  Roland McGrath  <roland@redhat.com>
6908         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6910 2007-10-06  David S. Miller  <davem@davemloft.net>
6912         * configure.in: Add sparcv9v2 and sparc64v2.
6913         * scripts/config.sub: Likewise.
6914         * configure: Regenerate.
6915         * elf/elf.h (HWCAP_SPARC_N2): New.
6916         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6917         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6918         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6919         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6920         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6921         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6922         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6924 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
6926         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6927         even if the poll result indicates there is data to read.
6928         Patch by Jeff Moyer <jmoyer@redhat.com>.
6930 2007-10-18  Roland McGrath  <roland@redhat.com>
6932         * elf/elf.h (NT_PPC_VMX): New macro.
6934 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6936         * version.h (VERSION): Set to 2.7.90.
6938 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6940         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
6941         weak_alias.
6943 2007-10-17  Roland McGrath  <roland@frob.com>
6945         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6946         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6948 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6950         * version.h (VERSION): Bump to 2.7.
6951         * include/features.h (__GLIBC_MINOR__): Bump to 7.
6953         [BZ #5186]
6954         * time/tzset.c (__tz_convert): Don't force testing for a change of
6955         TZ if not called from localtime.  But then also see whether the
6956         file changed, in case __use_tzfile is set.
6958         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6959         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6960         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6961         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6962         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6963         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6964         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
6965         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6967 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6969         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6970         and admin selects to be able to replace the gai.conf file, lock
6971         data structures around the qsort call.
6973 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6975         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6976         new memset.
6977         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
6978         too high for the improvements.  Implement bzero unconditionally for
6979         use in libc.
6981 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6982             Jakub Jelinek  <jakub@redhat.com>
6984         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6985         even when time_t is 32-bit.
6986         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6987         timezone data read by __tzfile_default.  Ensure __tzname[0] is
6988         always set after the search.
6990 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6992         * time/tzfile.c (__tzfile_read): Help the compiler recognize
6993         unreachable code on 32-bit machines.
6995 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6997         [BZ #5184]
6998         * time/strftime_l.c: Include stdbool.h.
6999         (my_strftime): New wrapper, old function renamed to...
7000         (__strftime_internal): ... new function.  Add tzset_called
7001         argument, pass it down to recursive calls, don't call tzset ()
7002         if already true, set to true after call to tzset ().
7004 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7006         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7007         into account when copying TZ string.
7009 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7011         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7012         num_transition rather than num_transitions - 1.
7014 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7016         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7017         PIC indirect jump.
7019         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7020         a local label rather than HIDDEN_JUMPTARGET.
7022 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7024         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7025         (init_cacheinfo): Initialize it.
7026         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7027         Always define bzero.
7028         Remove non-glibc code.
7029         * sysdeps/x86_64/bzero.S: Make an empty file.
7031 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7033         * sysdeps/x86_64/cacheinfo.c
7034         (__x86_64_preferred_memory_instruction): New.
7035         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7037         * sysdeps/x86_64/memset.S: Rewrite.
7039 2007-10-15  Roland McGrath  <roland@redhat.com>
7041         * po/libc.pot: Regenerated.
7043 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7045         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7046         pointers.
7048         [BZ #3425]
7049         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7050         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7051         address record to T_A/T_AAAA requests.
7053 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7055         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7057         * posix/glob.c: Add some branch prediction throughout.
7059         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7060         read from nscd.
7062         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7063         service_order.
7064         (rfc3484_sort): Make sure that even if qsort doesn't support
7065         stable sorting out sorting here is stable by comparing service_order.
7066         (getaddrinfo): Initialize service_order.
7067         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7068         service_order field to sorting structure.
7069         * posix/tst-rfc3484-2.c (do_test): Likewise.
7071         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7072         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7073         __tzset_parse_tz and updating of daylight, timezone, tzname into
7074         update_vars.
7075         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7076         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7077         happens in __tz_compute.
7078         * time/tzfile.c (__tzfile_read): Also read TZ string.
7079         (find_transition): Fold into __tzfile_compute.
7080         (__tzfile_compute): For times beyond the last transition try to
7081         use the TZ string.
7082         * timezone/tst-timezone.c: Information in daylight and tzname does
7083         change for Asia/Tokyo timezone with more concrete information.
7084         Remove the test.
7086         * include/stdio.h: Add libc_hidden_proto for ftello.
7087         * libio/ftello.c: Add libc_hidden_def.
7089         [BZ #1140]
7090         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7091         on the specified time and not the last entries in the file.  Move
7092         code to determine tzname[] to...
7093         (find_transition): ...here.  Add ugly guess for times before the
7094         first transition.
7096 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7098         [BZ #3195]
7099         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7100         no entry.
7101         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7102         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7103         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7104         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7106         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7107         read mechanism when there are no group members and avoid no-op
7108         read syscall in this case.
7110         [BZ #3242]
7111         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7112         (__readall): If reading failed due to EAGAIN error wait a bit
7113         and possibly try again.
7114         (__readvall): Likewise.
7116 2007-10-13  Bruno Haible  <bruno@clisp.org>
7118         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7119         when we cannot recode the message.
7121 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7123         [BZ #4359]
7124         * libio/__freading.c (__freading): Don't return true for
7125         write-only streams.  For read/write streams, check whether we
7126         performed a read operation already.
7127         * libio/Makefile (tests): Add tst-ext2.
7128         * libio/tst-ext2.c: New file.
7130 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7132         * locale/programs/repertoire.c (repertoire_read): Always free
7133         memory for repertoire file name [Coverity CID 270].
7135         * elf/cache.c (save_aux_cache): Free memory allocated for
7136         temporary file name [Coverity CID 267].
7138 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7140         * misc/Makefile (headers): Add bits/error.h.
7142 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7144         * posix/fnmatch_loop.c: Take rule index returned as part of
7145         findidx return value into account when accessing weights.
7146         * posix/regcomp.c: Likewise.
7147         * posix/regexec.c: Likewise.
7149         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7150         (skip_to): Fix problems with parameter of elifdef/elifndef.
7152 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7154         * iconv/gconv_simple.c: Add some branch prediction.
7156 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7158         * locale/programs/ld-collate.c (collate_read): If ignore_content
7159         and nowtok is tok_define, eat any tok_eol tokens.
7161 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7163         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7164         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7166         * inet/netinet/in.h: Don't include bits/socket.h.
7167         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7168         macro.
7169         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7171 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7173         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7174         and tok_elifndef.
7175         * locale/programs/locfile-kw.gperf: Likewise.
7176         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7178 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7180         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7181         (__find_specwc): Change into __extern_always_inline function.
7182         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7183         (__parse_one_specmb): Remove ps argument.
7184         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7185         Adjust __find_specmb and __parse_one_specmb callers.
7186         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7187         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7188         Removed.
7189         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7190         caller.
7192 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7194         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7195         with some Pentium Ds.
7197 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7199         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7200         __read not read.
7201         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7202         __write not write.
7204 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7206         [BZ #181]
7207         * locale/C-time.c: Set week_1stday data to 19971201.
7208         * locale/programs/ld-time.c (time_finish): Default for
7209         first_workday is Monday.
7211         [BZ #2633]
7212         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7214         [BZ #5103]
7215         * posix/glob.c (glob): Recognize patterns starting \/.
7216         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7217         (main): Add test for pattern starting \/.
7219         * misc/error.h: Use __const instead of const.
7220         * misc/bits/error.h: Likewise.
7222 2007-10-07  Andreas Jaeger  <aj@suse.de>
7224         * include/bits/error.h: New file.
7226         * misc/bits/error.h (error_at_line): Fix prototype.
7228 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7230         [BZ #3924]
7231         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7232         more little bugs in creating the stack frame when pltexit has to
7233         be called.
7235         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7236         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7238         [BZ #4407]
7239         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7240         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7241         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7242         * math/libm-test.inc: Add test for this case.
7244         [BZ #5010]
7245         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7246         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7247         map service succeeded.
7248         (svc_is_mapped): New function.
7249         (svc_unregister): Use it before trying to unmap service.
7251 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7253         * timezone/zic.c: Update from tzcode2007h.
7255         [BZ #5063]
7256         * timezone/africa: Update from tzdata2007h.
7257         * timezone/antarctica: Likewise.
7258         * timezone/asia: Likewise.
7259         * timezone/australasia: Likewise.
7260         * timezone/europe: Likewise.
7261         * timezone/leapseconds: Likewise.
7262         * timezone/northamerica: Likewise.
7263         * timezone/southamerica: Likewise.
7264         * timzeone/zone.tab: Likewise.
7266         [BZ #5104]
7267         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7269         [BZ #5113]
7270         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7271         avoid warning with -Wconversion.
7272         (__strndup): Likewise.
7273         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7275         [BZ #5112]
7276         * nscd/connections.c (restart): Don't resync if database is
7277         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7279         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7280         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7282         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7283         evetnfd_read, eventfd_write.
7284         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7285         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7286         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7287         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7288         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7289         eventfd_write for GLIBC_2.7.
7291         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7292         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7293         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7294         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7296 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7298         * stdlib/msort.c: Include stdint.h.
7299         (struct msort_param): New type.
7300         (msort_with_tmp): Use struct msort_param pointer for unchanging
7301         parameters.  Add optimized handling for several common sizes
7302         and indirect sorting mode.
7303         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7304         sorting.
7305         Suggested by Belazougui Djamel .
7307         * stdlib/Makefile (tests): Add tst-qsort2.
7308         * stdlib/tst-qsort2.c: New test.
7310 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7312         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7313         for dup2 in case another thread races with the current one.  Retry
7314         in this case.
7316         * misc/error.h: Remove support for use outside of libc.  We have to
7317         include <features.h> now.  Include <bits/error.h> if possible.
7318         * misc/bits/error.h: New file.
7320 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7322         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7323         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7324         __extern_always_inline functions unconditionally, drop macros.
7326         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7327         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7328         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7330         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7331         add __artificial__ attribute.
7333 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7335         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7336         backward to forward direction.
7338         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7340         [BZ #645]
7341         * locale/programs/ld-collate.c (collate_finish): Compare against last
7342         used section which is known to have rules defined.
7343         (collate_read): After order_start, correctly record order of sections
7344         and queue sections up.
7346 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7348         [BZ #5071]
7349         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7350         the same number of pages.
7351         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7353         * locale/programs/ld-collate.c (collate_read): After initial copy
7354         statement, continue in state 0.
7356         * include/stdio_ext.h (__fsetlocking): Define as macro.
7358 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7360         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7361         of section order.
7363         * po/pt_BR.po: Fix typo.
7365 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7367         * iconvdata/Makefile (modules): Add ISO8859-9E.
7368         (distribute): Add iso8859-9e.c.
7369         (gen-8bit-gap-modules): Add iso8859-9e.
7370         * iconvdata/iso8859-9e.c: New file.
7371         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7372         * iconvdata/TESTS: Likewise.
7373         * iconvdata/tst-tables.sh: Likewise.
7375         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7377         * locale/iso-639.def: Add several new entries.
7379 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7381         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7382         void * pointers instead of struct link_map **.
7383         (_dl_scope_free): Change argument type to void *.
7384         * include/link.h (struct link_map): Change type of l_reldeps
7385         to struct link_map_reldeps, move l_reldepsact into that
7386         struct too.
7387         * elf/dl-deps.c: Include atomic.h.
7388         (_dl_map_object_deps): Only change l->l_initfini when it is
7389         fully populated, use _dl_scope_free for freeing it.  Optimize
7390         removal of libs from reldeps by using l_reserved flag, when
7391         some removal is needed, allocate a new list instead of
7392         reallocating and free the old with _dl_scope_free.  Adjust
7393         for l_reldeps and l_reldepsact changes.
7394         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7395         searching in l_initfini and l_reldeps without holding dl_load_lock.
7396         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7397         l_reldepsact changes.
7398         * elf/dl-close.c (_dl_close_worker): Likewise.
7399         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7401 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7403         * iconvdata/Makefile (modules): Add KOI8-RU.
7404         (distribute): Add koi8-ru.c.
7405         (gen-8bit-gap-modules): Add koi8-ru.
7406         * iconvdata/koi8-ru.c: New file.
7407         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7408         * iconvdata/TESTS: Likewise.
7409         * iconvdata/tst-tables.sh: Likewise.
7411         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7413 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7415         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7416         with __warning__/__error__ attributes.
7417         (__warnattr): Define.
7418         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7419         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7420         __warnattr.
7421         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7422         of __*_chk if compile time detectable overflow is found.
7423         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7424         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7425         with __warnattr.
7426         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7427         instead of __*_chk if compile time detectable overflow is found.
7428         (__gets_alias): Rename to...
7429         (__gets_warn): ... this.  Add __warnattr.
7430         (gets): Call __gets_warn instead of __gets_alias.
7431         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7432         aliases with __warnattr.
7433         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7434         time detectable overflow is found.
7435         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7436         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7437         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7438         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7439         __getdomainname_chk_warn): New aliases with __warnattr.
7440         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7441         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7442         __*_chk_warn instead of __*_chk if compile time detectable overflow
7443         is found.
7444         (__getgroups_chk): Rename argument to __listlen from listlen.
7445         (__getwd_alias): Rename to...
7446         (__getwd_warn): ... this.  Add __warnattr.
7447         (getwd): Call __getwd_warn instead of __getwd_alias.
7448         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7449         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7450         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7451         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7452         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7453         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7454         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7455         compile time detectable overflow is found.
7456         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7457         to use __*_chk or not.
7458         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7459         in comparisons which function should be called and in __*_chk*
7460         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7461         detectable overflow is found.
7462         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7463         __*_chk argument.
7464         * debug/tst-chk1.c (do_test): Add a few more tests.
7466 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7468         [BZ #5058]
7469         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7470         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7471         (_nl_unload_domain): Finalize conversions_lock.
7472         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7473         handling table of known conversions.
7475 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7477         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7478         close_not_cancel_no_status instead of close.
7480 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7482         [BZ #5028]
7483         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7484         nrules != 0 for multibyte chars.
7486 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7488         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7489         Provide better error message in case the type is unknown.
7491         [BZ #4963]
7492         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7493         * string/stratcliff.c: Make usable to test wide char functions.
7494         * wcsmbs/wcsatcliff.c: New file.
7495         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7497         [BZ #4972]
7498         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7499         (distribute): Add mac-centraleurope.c.
7500         (gen-8bit-gap-modules): Add mac-centraleurope.
7501         * iconvdata/mac-centraleurope.c: New file.
7502         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7503         * iconvdata/TESTS: Likewise.
7504         * iconvdata/tst-tables.sh: Likewise.
7506         [BZ #5043]
7507         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7509 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7511         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7512         from __x86_64_core_cache_size_half.
7513         (init_cacheinfo): Compute shared cache size for AMD processors with
7514         shared L3 correctly.
7515         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7516         name change.
7517         Patch in large parts by Evandro Menezes.
7519 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7521         * elf/dl-lookup.c (add_dependency): Handle failing memory
7522         allocation for dependency list.  Remove unnecessary check.
7524         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7525         open/close when determining source addresses.
7527         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7528         sha512-crypt, and sha512.
7529         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7530         (distribute): Add sha256.h and sha512.h.
7531         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7532         and call the appropriate code.
7533         * crypt/sha256-crypt.c: New file.
7534         * crypt/sha256.c: New file.
7535         * crypt/sha256.h: New file.
7536         * crypt/sha256c-test.c: New file.
7537         * crypt/sha256test.c: New file.
7538         * crypt/sha512-crypt.c: New file.
7539         * crypt/sha512.c: New file.
7540         * crypt/sha512.h: New file.
7541         * crypt/sha512c-test.c: New file.
7542         * crypt/sha512test.c: New file.
7544 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7546         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7547         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7548         __syslog_chk.
7550 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7552         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7553         %as in fscanf format strings.
7555         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7556         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7557         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7558         Likewise.
7559         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7560         Likewise.
7562         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7563         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7564         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7565         * elf/dl-sym.c (do_sym): Likewise.
7566         * include/link.h (struct link_map): Add l_serial field.
7567         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7568         * elf/dl-lookup.c (add_dependency): Add flags argument.
7569         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7570         flags, use THREAD_GSCOPE_RESET_FLAG before and
7571         THREAD_GSCOPE_SET_FLAG after
7572         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7573         Don't dereference map until it has been found on some list.
7574         If map->l_serial changed, return -1.
7576 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7578         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7579         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7580         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7581         libc_hidden_proto.
7582         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7583         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7584         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7585         add libc_hidden_proto.
7586         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7587         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7588         conformance requested.
7589         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7590         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7591         conformance requested.
7592         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7593         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7594         conformance requested.
7595         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7596         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7597         ISO C99 or POSIX conformance requested.
7598         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7599         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7600         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7601         and __isoc99_vsscanf@@GLIBC_2.7.
7602         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7603         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7604         (tests): Add scanf14.
7605         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7606         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7607         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7608         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7609         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7610         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7611         from using internal headers.
7612         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7613         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7614         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7615         and __isoc99_vswscanf@@GLIBC_2.7.
7616         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7617         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7618         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7619         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7620         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7621         * stdio-common/isoc99_scanf.c: New file.
7622         * stdio-common/isoc99_vsscanf.c: New file.
7623         * stdio-common/isoc99_vscanf.c: New file.
7624         * stdio-common/isoc99_vfscanf.c: New file.
7625         * stdio-common/isoc99_fscanf.c: New file.
7626         * stdio-common/isoc99_sscanf.c: New file.
7627         * wcsmbs/isoc99_fwscanf.c: New file.
7628         * wcsmbs/isoc99_vswscanf.c: New file.
7629         * wcsmbs/isoc99_swscanf.c: New file.
7630         * wcsmbs/isoc99_wscanf.c: New file.
7631         * wcsmbs/isoc99_vwscanf.c: New file.
7632         * wcsmbs/isoc99_vfwscanf.c: New file.
7633         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7634         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7635         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7636         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7637         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7638         * stdio-common/scanf14.c: New test.
7639         * stdio-common/scanf15.c: New test.
7640         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7641         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7642         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7643         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7644         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7645         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7646         __nldbl___isoc99_scanf@@GLIBC_2.7,
7647         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7648         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7649         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7650         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7651         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7652         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7653         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7654         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7655         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7656         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7657         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7658         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7659         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7660         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7661         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7662         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7663         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7664         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7665         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7666         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7667         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7668         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7669         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7670         functions.
7671         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7672         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7673         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7674         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7675         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7676         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7677         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7678         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7679         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7680         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7681         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7682         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7684         * stdio-common/Makefile (tests): Add scanf13.
7685         (scanf13-ENV): New.
7686         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7687         m modifier followed by l.
7688         (STRING_ARG): Add width argument.
7689         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7690         <case L_('C')>: Handle %mlc and %mC.
7691         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7692         arguments.
7693         * stdio-common/scanf13.c: New test.
7695         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7696         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7698 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7700         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7701         type and __THROW marker of splice, vmsplice, and tee.
7702         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7703         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7704         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7705         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7706         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7707         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7708         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7709         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7710         as cancellation points.
7712 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7714         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7715         parse more than three parts of the version number.
7717 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7719         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7720         modifier.  Patch by Jakub Jelinek.
7722 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7724         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7725         call_fallocate in misc subdir.
7726         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7727         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7728         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7729         instead of __fallocate64.
7730         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7732 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7734         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7735         * rt/Makefile (headers): Add bits/mqueue2.h.
7736         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7737         optimizing with GCC and __va_arg_pack_len is defined.
7738         * rt/bits/mqueue2.h: New file.
7739         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7740         (mq_open): New strong_alias.
7741         (__mq_open_2): New function.
7742         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7743         (mq_open): New strong_alias.
7744         (__mq_open_2): New function.
7745         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7746         * Versions.def (librt): Add GLIBC_2.7 version.
7747         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7748         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7750         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7751         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7752         is defined rather than when not C++.
7753         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7754         __openat64_alias): New redirects.
7755         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7756         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7757         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7758         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7759         functions instead of function-like macros.
7761 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7763         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7764         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7765         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7767 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7769         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7770         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7772 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7774         * inet/tst-network.c: Increment ERRORS for failing tests.
7776 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7778         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7779         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7780         implement as __extern_always_inline function.
7781         (vsyslog): Define as __extern_always_inline function unconditionally.
7782         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7783         When __va_arg_pack is defined, implement as __extern_always_inline
7784         functions.
7785         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7786         __extern_always_inline functions unconditionally.
7787         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7788         bits/stdio2.h will be included.
7789         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7790         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7791         implement as __extern_always_inline functions.
7792         (vswprintf, vwprintf, vfwprintf): Define as
7793         __extern_always_inline functions unconditionally.
7794         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7796 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
7798         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7799         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7800         attribute.
7801         * include/features.h (__USE_EXTERN_INLINES): Define only when
7802         __extern_inline is defined.
7803         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7804         is defined instead of when not __cplusplus.
7805         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7806         is defined instead of when not __cplusplus.
7807         * socket/sys/socket.h: Include bits/socket2.h when
7808         __extern_always_inline is defined instead of when not __cplusplus.
7809         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7810         is defined instead of when not __cplusplus.
7811         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7812         is defined instead of when not __cplusplus.
7813         * string/string.h: Include bits/string3.h when __extern_always_inline
7814         is defined instead of when not __cplusplus.
7815         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7816         is defined instead of when not __cplusplus.
7817         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7818         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7819         is not defined.
7820         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7821         defined __extern_always_inline instead of !defined __cplusplus.
7822         * libio/bits/stdio-ldbl.h: Likewise.
7823         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7824         * misc/bits/syslog.h (syslog): Don't define for C++.
7825         (vsyslog): Use __extern_always_inline function for C++ instead of
7826         a macro.
7827         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7828         whenever that macro is defined.
7829         (vprintf): Don't provide the inline for C++.
7830         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7831         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7832         define the macros for C++.
7833         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7834         __extern_always_inline functions for C++.
7835         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7836         stat64, lstat64, fstat64, fstatat64): Don't define if not
7837         __USE_EXTERN_INLINES.
7838         * wcsmbs/bits/wchar2.h: Fix #error message.
7839         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7840         (vswprintf, vwprintf, vfwprintf): Define using
7841         __extern_always_inline functions for C++.
7842         * string/bits/string3.h: Don't #undef macros if __cplusplus.
7843         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7844         strncpy, strcat, strncat): Define as __extern_always_inline
7845         functions instead of macros for C++.
7846         * math/bits/cmathcalls.h: Guard __extern_inline routines with
7847         defined __extern_inline.
7848         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7849         to __extern_inline whenever that macro is defined.
7850         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7851         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7852         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7853         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7854         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7855         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7856         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7857         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7858         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7859         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7860         prototypes.  Only provide __extern_inline routines if
7861         __USE_EXTERN_INLINES.
7862         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7863         tests.
7864         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7865         For now avoid some *printf tests in C++.  Skip all testing
7866         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7867         is not.
7868         * debug/tst-chk4.cc: New file.
7869         * debug/tst-chk5.cc: New file.
7870         * debug/tst-chk6.cc: New file.
7871         * debug/tst-lfschk4.cc: New file.
7872         * debug/tst-lfschk5.cc: New file.
7873         * debug/tst-lfschk6.cc: New file.
7874         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7875         prototypes in C++.
7876         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7877         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7878         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7880 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
7882         * po/cs.po: Update from translation team.
7884 2007-09-11  Roland McGrath  <roland@redhat.com>
7886         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7887         compiling.
7889 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7891         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7893 2007-09-05  Roland McGrath  <roland@redhat.com>
7895         * manual/signal.texi (Signaling Another Process): Typo fix.
7896         From Karl Berry <karl@freefriends.org>.
7898 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
7900         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7901         zero if not defined.
7902         (make_request): Recognize optimistic addresses and treat them like
7903         deprecated addresses.
7904         Reported by Neil Horman <nhorman@redhat.com>.
7906 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
7908         * nscd/connections.c (send_ro_fd): Also transfer file size.
7909         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7910         file size don't call fstat.
7912         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7913         ahead and map the file.  This should always be correct and we can
7914         catch problems later.
7916 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
7918         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7919         prototypes.
7920         (__fread_alias, __fread_unlocked_alias): New aliases.
7921         (fread): New extern inline.
7922         (fread_unlocked): Likewise.  Undef macro before definition of
7923         the inline function.
7924         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7925         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7926         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7927         and __fread_unlocked_chk@@GLIBC_2.7.
7928         * debug/fread_chk.c: New file.
7929         * debug/fread_u_chk.c: New file.
7930         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7932 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
7934         * sysdeps/unix/sysv/linux/syscalls.list
7935         (personality): Change caller to EXTRA.
7937 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
7939         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7940         to keep gcc quiet.
7941         * iconvdata/iso-2022-cn.c (BODY): Likewise.
7943         * locale/programs/ld-collate.c (collate_output): Avoid warning if
7944         NDEBUG is defined.
7946         * Makerules: Use -p option with mkdir.
7948         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7949         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7950         (_xdr_directory_obj): Likewise.
7951         (xdr_entry_obj): Likewise.
7952         (xdr_group_obj): Likewise.
7953         (xdr_link_obj): Likewise.
7954         (xdr_table_obj): Likewise.
7955         (_xdr_nis_result): Likewise.
7956         (_xdr_ns_request): Likewise.
7957         (_xdr_ib_request): Likewise.
7958         (_xdr_nis_taglist): Likewise.
7959         (xdr_cback_data): Likewise.
7960         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7961         (xdr_ypresp_maplist): Likewise.
7963         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7965         * posix/regex_internal.h: Prevent some declarations and definitions
7966         to be seen when used in tests.
7968         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7969         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7971         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7973         * config.make.in (datarootdir): Add to shut up configure.
7975         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7976         associativity for fully-associative caches.
7978         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7979         requests.  Fill on more associativity values for L2.
7980         Patch mostly by Evandro Menezes.
7982 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
7984         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7985         (_libc_vdso_platform_setup): Avoid using exported variable by using
7986         alias.
7988         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7990         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7991         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
7992         defined.
7994 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
7996         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7997         align stack for call if pltexit is to be used.
7999         [BZ #3924]
8000         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8001         align for function call in case pltexit has to be called later.
8003         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8004         implicit atomic operation when storing function pointer.
8005         (_dl_runtime_profile): Likewise.
8007 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8009         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8010         NIS_NOTFOUND.
8012 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8014         [BZ #4566]
8015         * string/strtok.c: Fix typo in comment.
8017         [BZ #4582]
8018         * debug/segfault.c: Fix typos in comments.
8020         [BZ #4588]
8021         * stdio-common/tempnam.c: Fix comment, it is not checked that
8022         TMPDIR points to a writable directory.
8024         [BZ #4726]
8025         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8026         memory allocated for the name server address.
8028         [BZ #4946]
8029         * nscd/connections.c (handle_request): Using sendfile always
8030         requires that mmap is used for the database.
8031         Patch by Petr Baudis <pasky@suse.cz>.
8033         [BZ #4905]
8034         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8035         suddenly has two or more addresses, ignore it and remove the old
8036         entry.
8038         [BZ #4814]
8039         * resolv/res_hconf.c: Prepare for compiling outside libc.
8040         * nscd/res_hconf.c: New file.
8041         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8042         the new file.
8043         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8044         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8046         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8048         [BZ #4925]
8049         * debug/pcprofiledump.c: Turn on internationalization by calling
8050         setlocale.  Patch mostly by Benno Schulenberg.
8052         [BZ #4936]
8053         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8054         the state.
8055         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8056         * iconvdata/bug-iconv5.c: New file.
8058 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8060         [BZ #4896]
8061         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8062         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8063         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8064         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8065         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8066         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8067         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8068         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8070 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8072         [BZ #4937]
8073         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8074         lookup loop.  Suggested by John Reiser.
8076 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8078         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8080 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8082         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8083         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8084         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8085         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8086         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8087         to...
8088         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8090 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8092         * po/nl.po: Update from translation team.
8094 2007-08-16  Andreas Jaeger  <aj@suse.de>
8096         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8097         Reported by Peter Festner <peter.festner@ewetel.net>.
8099 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8101         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8103 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8105         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8106         to check for undefined symbols.
8108         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8109         If the syscall fails, set errno to the actual returned error number
8110         rather than EINVAL.
8111         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8112         arguments are incorrect, set errno to EINVAL, if the syscall
8113         fails, set errno to the actual returned error number.
8115         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8116         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8118         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8119         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8120         file.
8121         (ASI_PNF, ASI_BLK_P): Don't define.
8122         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8123         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8124         file.
8125         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8126         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8127         file.
8129 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8131         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8132         FE_UNDERFLOW on Niagara CPUs.
8134         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8135         exceptions.
8137 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8139         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8140         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8141         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8142         flush should be used or not inside of the function.
8143         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8145         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8146         __thread_start): Use HIDDEN_JUMPTARGET.
8147         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8148         __thread_start): Likewise.
8149         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8151         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8152         Add libc_hidden_proto.
8153         (STRTOF): Add libc_hidden_proto.
8154         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8155         (strtold_l, wcstold_l): Use them as second argument for
8156         long_double_symbol.
8158 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8160         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8162 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8164         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8166 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8168         * po/bg.po: New file.  From the translation team.
8170 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8172         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8173         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8174         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8175         when each feature was introduced.
8177         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8178         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8179         (CHECK_HASH): New macro.
8180         (PREPARE_VERSION): Use it.
8182         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8183         prototype if not __ASSUME_PSELECT.
8184         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8185         prototype if not __ASSUME_PPOLL.
8187         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8189         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8190         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8191         is defined.
8193 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8195         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8196         (_libc_vdso_platform_setup): If vDSO is not available point
8197         __vdso_gettimeofday to the vsyscall.
8198         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8199         __vdso_gettimeofday instead of vsyscall.
8201 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8203         * nscd/servicescache.c: Include kernel-features.h.
8204         * nscd/gai.c: Likewise.
8205         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8206         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8207         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8208         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8209         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8210         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8211         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8212         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8213         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8215 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8217         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8218         and _dl_get_origin defines anymore.
8220         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8221         Build fix for systems which might lack POSIX timer support.
8223         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8224         (_libc_vdso_platform_setup): Mangle function pointers before storing
8225         them.
8226         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8227         Demangle vdso pointer before use.
8228         (INTERNAL_VSYSCALL): Likewise.
8230         * elf/cache.c (primes): Mark as const.
8231         Noted by Roland McGrath.
8233 2007-08-01  Andreas Jaeger  <aj@suse.de>
8234             Jakub Jelinek  <jakub@redhat.com>
8236         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8237         (options): Add option.
8238         (parse_opt): Handle option.
8239         (manual_link): Adjust process_file caller.  Call implicit_soname.
8240         (search_dir): Formatting.  Use and populate auxiliary cache.
8241         (main): Load and save auxiliary cache.
8242         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8243         stat64 from fstat64 to caller.
8244         (implicit_soname): New function.
8245         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8246         leave *soname as NULL.
8247         * elf/cache.c: Include libgen.h.
8248         (print_entry, print_cache, compare, save_cache, add_to_cache):
8249         Formatting and cleanups.
8250         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8251         aux_cache_file): New structures.
8252         (AUX_CACHEMAGIC): Define.
8253         (primes): New array.
8254         (aux_hash_size, aux_hash): New variables.
8255         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8256         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8257         load_aux_cache, save_aux_cache): New functions.
8258         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8259         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8260         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8261         (process_file): Adjust prototype.
8263 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8265         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8266         with __need_size_t.
8268 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8270         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8271         r_found_version structure as second parameter.
8272         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8273         (_dl_vdso_vsym): Change type of second parameter accordingly.
8274         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8275         (_libc_vdso_platform_setup): Adjust.
8276         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8277         (_libc_vdso_platform_setup): Likewise.
8279         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8280         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8281         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8282         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8283         * csu/libc-start.c: Pretty printing.
8284         Use VDSO_SETUP if defined.
8285         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8286         and let generic code call into _libc_vdso_platform_setup.
8287         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8288         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8289         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8290         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8291         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8292         for GLIBC_PRIVATE.
8293         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8294         (sysdep_rountines): Add dl-vdso.
8296         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8297         of routines.
8299         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8300         attribute_hidden to __vdso_gettimeofday prototype.
8302 2007-08-12  Roland McGrath  <roland@redhat.com>
8304         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8305         From: Karl Berry <karl@freefriends.org>.
8307 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8309         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8310         an atime update for the files we read.
8312 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8314         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8316         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8317         instead of mkstemp.
8319         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8320         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8321         * misc/mkostemp.c: New file.
8322         * misc/mkostemp64.c: New file.
8323         * stdlib/stdlib.h: Declare the new functions.
8324         * sysdeps/posix/tempname.c: Add new parameter which is added to
8325         the flags for open.  Remove __GT_BIGFILE handling.
8326         * stdio-common/tempname.c: Likewise.
8327         * include/stdio.h: Adjust __gen_tempname prototype.
8328         Renumber __GT_* constants.
8329         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8330         * misc/mkdtemp.c: Likewise.
8331         * misc/mkstemp.c: Likewise.
8332         * misc/mkstemp64.c: Likewise.
8333         * misc/mktemp.c: Likewise.
8334         * stdio-common/tempnam.c: Likewise.
8335         * stdio-common/tmpfile.c: Likewise.
8336         * stdio-common/tmpfile64.c: Likewise.
8337         * stdio-common/tmpnam.c: Likewise.
8338         * stdio-common/tmpnam_r.c: Likewise.
8340 2007-08-10  Roland McGrath  <roland@frob.com>
8342         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8343         New macros.
8344         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8345         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8347 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8349         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8350         possible.
8351         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8352         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8353         * nss/nss_files/files-have_o_cloexec.c: New file.
8355         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8356         available.
8358 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8360         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8361         ___new_wcstold_l): New weak aliases.
8362         (strtold_l, wcstold_l): Use them as second argument for
8363         long_double_symbol.
8365 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8367         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8368         register in test for error.
8370         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8371         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8373         * po/sv.po: Update from translation team.
8375 2007-08-06  Roland McGrath  <roland@redhat.com>
8377         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8378         Remove __strto*_l inlines.
8379         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8380         * stdlib/strtod.c: Add libc_hidden_def.
8381         * stdlib/strtod_l.c: Likewise.
8382         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8383         for __new_strtold and __new_wcstold.
8384         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8385         __STRTOF, STRTOF.
8386         * stdlib/strtol.c: Add libc_hidden_def.
8387         * stdlib/strtol_l.c: Likewise.
8388         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8389         strtoq.
8391         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8393         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8394         * scripts/data/localplt-generic.data: ... here.
8395         * elf/Makefile (check-data): Get generic file if no other.
8396         ($(objpfx)check-localplt.out): Make target unconditional.
8398         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8399         Use ElfW(Nhdr).
8401 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8403         * po/zh_CN.po: Updated translation from translation team.
8405 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8408         Don't use CGOTSETUP and CGOTRESTORE macros.
8410 2007-08-04  Roland McGrath  <roland@redhat.com>
8412         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8414 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8416         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8417         __extension__ around the whole statement expression.
8419 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8421         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8422         elements during initialization.
8424         * po/pl.po: Updated translation from translation team.
8425         * po/tr.po: Likewise.
8426         * po/nl.po: Likewise.
8428 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8430         * rt/aio.h: Add __nonnull attributes.
8432 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8434         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8435         * stdlib/Makefile (tests): Add tst-strtod5.
8436         (tst-strtod5-ENV): New.
8437         * stdlib/tst-strtod5.c: New file.
8439         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8440         failed.
8441         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8442         on failure.
8444         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8445         allocated.
8447 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8449         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8450         numbers.
8452 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8454         * io/Makefile (aux): Add have_o_cloexec.
8455         * include/fcntl.h: Declare __have_o_cloexec.
8456         * io/have_o_cloexec.c: New file.
8457         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8458         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8459         fcntl call if not necessary.
8460         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8461         of local variable.
8463         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8464         Avoid memset, add explicit initialization.
8465         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8466         to the end and change into zero-sized array.
8467         Move lock member to fill a hole on 64-bit platforms.
8469         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8470         inline functions.
8471         * include/stdlib.h: Add __strto*_internal prototypes here.
8472         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8473         inline functions.
8474         * include/wchar.h: Add __wcsto*_internal prototypes.
8475         * sysdeps/generic/inttypes.h: No need to protect the declaration
8476         of the __strto*_internal and __wcsto*_internal members here.
8478         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8480 2007-08-02  Roland McGrath  <roland@redhat.com>
8482         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8483         $(inst_bindir)/getconf if possible.
8485         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8486         (generated): Add it.
8487         ($(inst_libexecdir)/getconf): Use it.
8489 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8491         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8492         /proc is faster and sufficient.  /sys is still needed for
8493         __get_nprocs_conf.
8495 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8497         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8498         syscall as __fallocate64.
8499         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8500         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8502 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8504         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8505         value.
8507         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8508         if off_t is different rank from size_t.
8510         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8511         uw_frame_state_for): Avoid type punning warnings.
8512         * sysdeps/generic/unwind-dw2-fde-glibc.c
8513         (_Unwind_IteratePhdrCallback): Likewise.
8514         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8515         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8516         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8517         pointers.
8519 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8521         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8522         total processors using sysfs.
8523         (__get_nprocs): Use sysfs to determine which processors are online.
8525 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8527         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8528         syscall arguments count.
8530         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8532 2007-07-30  Roland McGrath  <roland@redhat.com>
8534         * manual/libc.texinfo: Update copyrights, formatting magic, and
8535         @dircategory.  From Karl Berry <karl@freefriends.org>.
8537 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8539         [BZ #4860]
8540         * io/Makefile (headers): Add bits/fcntl2.h.
8542         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8543         using gcc builtin.
8544         (__CPU_EQUAL_S): Likewise.
8546         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8547         (tests): Add tst-cpuset.
8548         * posix/sched_cpualloc.c: New file.
8549         * posix/sched_cpufree.c: New file.
8550         * posix/tst-cpuset.c: New file.
8551         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8552         GLIBC_2.7.
8553         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8554         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8555         macros.  Define CPU_*_S macros.
8557 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8559         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8560         entry.
8562         [BZ #4858]
8563         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8564         #.0g and value rounded to 1.0.
8565         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8567 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8569         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8570         for int_frac_digits and frac_digits.
8572         * login/logout.c (logout): Avoid aliasing violation.
8573         * login/logwtmp.c (logwtmp): Likewise.
8575         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8577         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8578         to avoid warning.
8579         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8580         warning.
8581         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8582         warning.
8583         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8584         to avoid warnings.
8586         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8587         void **.
8588         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8590         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8591         char * to avoid warning.
8592         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8594         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8596         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8597         allocate_arrays): Cast second argument to charmap_find_symbol
8598         to char * to avoid warnings.
8600         * locale/programs/repertoire.c (repertoire_new_char): Change
8601         from_nr, to_nr and cnt to unsigned long, adjust printf format
8602         string.
8604         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8605         Cast second argument to new_element to char * to avoid warnings.
8607         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8609         * intl/gettextP.h (struct loaded_domain): Change plural to const
8610         struct expression *.
8611         * intl/plural-eval.c (plural_eval): Change first argument to
8612         const struct expression *.
8613         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8614         argument to const struct expression **.
8615         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8616         prototypes.
8617         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8618         in call to __gettext_free_exp.
8620         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8621         unitialized wstring/wpattern var warnings.
8623         * posix/runtests.c (struct a_test): Make data field const char *.
8625         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8626         vars if not LDBL_MANT_DIG >= 106.
8628         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8630         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8631         __find_specmb to avoid warning.
8633         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8635         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8636         to avoid warnings.
8638         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8639         initializer.
8641         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8642         tv var when it will be actually used.
8644         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8645         to avoid warnings.
8647         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8648         char array resp. pointer.
8649         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8650         char array.
8651         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8652         to const unsigned char **.
8653         (ucs4_to_cns11643): Change second argument to unsigned char *.
8654         * iconvdata/euc-tw.c (BODY): Change endp type to
8655         const unsigned char *.
8656         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8657         to unsigned char *.
8658         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8659         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8660         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8661         types to unsigned char pointers/arrays instead of char.
8662         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8663         to unsigned char *.
8664         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8665         * iconvdata/jis0212.h: Include assert.h.
8666         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8667         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8668         of trying to handle that.
8669         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8670         shut up a warning.
8671         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8672         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8673         two dimensional const unsigned char arrays.
8674         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8675         Initialize endp to inptr to shut up a warning.
8677 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8679         [BZ #4772]
8680         * time/strptime_l.c (__strptime_internal): Silently ignore
8681         strftime modifiers and field width in recursive calls.
8683         * include/time.h (enum ptime_locale_status): Remove.
8684         (__strptime_internal): Remove decided and era_cnt arguments,
8685         add statep argument.
8686         * time/strptime_l.c (__strptime_internal): Remove decided
8687         and era_cnt arguments, add statep argument.  Don't recompute
8688         any fields in recursive calls, only update caller's tm
8689         and state, if recursive call fails, don't change tm nor
8690         any state.
8691         (get_alt_number): Adjust.
8692         (recursive): Adjust caller.
8693         (strptime): Likewise.
8694         * time/strptime.c (strptime): Likewise.
8696 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8698         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8699         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8700         if from and to charsets are the same.
8701         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8702         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8703         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8705 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8707         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8708         Don't define wint_t when __need_mbstate_t unless it
8709         is necessary.
8710         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8711         in the typedef if possible.
8712         * wctype/wctype.h (wint_t): Define by including
8713         wchar.h with __need_wint_t instead of including stddef.h
8714         with __need_wint_t and as fallback definining it ourselves.
8715         * iconv/gconv.h (__need_wint_t): Define before including
8716         wchar.h.
8717         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8718         or _GLIBCPP_USE_WCHAR_T.
8719         (__need_wchar_t): Don't define
8720         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8721         (__need_wint_t): Don't define before including stddef.h,
8722         define before including wchar.h only if _LIBC or
8723         _GLIBCPP_USE_WCHAR_T.
8724         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8725         * sysdeps/mach/hurd/_G_config.h: Likewise.
8726         * sysdeps/generic/_G_config.h: Likewise.
8727         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8728         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8729         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8730         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8732 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8734         * sysdeps/posix/posix_fallocate64.c: Undefine
8735         __posix_fallocate64_l64 before alias handling.
8736         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8737         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8738         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8739         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8741         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8743 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8745         * locale/programs/ld-collate.c (atwc): New variable.
8746         (add_to_tablewc): New toplevel function, moved from collate_output.
8747         (collate_output): Remove add_to_tablewc nested function.
8749         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8750         (name_insert): New function.
8751         (write_output): Remove hash_table and hash_size vars and name_insert
8752         nested function.
8754 2007-07-24  Roland McGrath  <roland@redhat.com>
8756         * Makerules (install-others-programs-nosubdir): New target.
8757         (install-no-libc.a-nosubdir): Depend on it.
8759         * iconv/Makefile (install-others-programs): Set this instead of
8760         install-others.
8761         * login/Makefile (install-others-programs): Likewise.
8762         * posix/Makefile (install-others-programs): Likewise.
8764         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8765         dependencies.
8767 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8769         * io/Makefile (tests): Add tst-posix_fallocate.
8770         * io/tst-posix_fallocate.c: New file.
8772         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8773         __ASSUME_FALLOCATE.
8775 2007-07-22  Roland McGrath  <roland@frob.com>
8777         * hurd/getdport.c: Add missing copyright year update.
8779         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8780         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8782 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
8784         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8786         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8787         O_CLOEXEC is needed.
8788         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8789         Avoid additional fcntl to set O_CLOEXEC if not needed.
8790         * nis/nss_compat/compat-initgroups.c: Likewise.
8791         * nis/nss_compat/compat-pwd.c: Likewise.
8792         * nis/nss_compat/compat-spwd.c: Likewise.
8794 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8796         [BZ #3665]
8797         * manual/errno.texi: Change ECANCELED value to 119.
8799         [BZ #4610]
8800         * mach/lock-intern.h: Include <sys/cdefs.h>.
8802         [BZ #4178]
8803         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8804         reading A.
8806         [BZ #4126]
8807         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8808         to __sigsuspend.
8810         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8812 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
8814         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8815         `__ASSEMBLER__'.
8816         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8818 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
8820         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8821         descriptor received from nscd.
8823         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8825         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8826         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8827         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8828         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8829         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8830         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8832 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8834         [BZ #4816]
8835         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8837         [BZ #4813]
8838         * login/forkpty.c (forkpty): Close master and slave fds on
8839         fork failure.  Patch by
8840         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8842 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
8844         * include/features.h (__USE_ISOC95): New define.
8845         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8846         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8847         for -std=iso9899:199409.
8848         * CONFORMANCE: Remove comments about unsupported AMD1.
8850 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8852         * sysdeps/ia64/sched_cpucount.c: New file.
8853         * sysdeps/powerpc/sched_cpucount.c: New file.
8855         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8856         __BEGIN_DECLS/__END_DECLS around the prototype.
8857         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
8858         pointer to const cpu_set_t.
8860         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8861         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8862         __need_size_t and include stddef.h.
8863         * sysvipc/sys/msg.h: Likewise.
8864         * posix/sched.h: Likewise.
8865         * hurd/hurd/signal.h (__need_size_t): Define.
8867         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8868         neither does signal.h in pedantic ISO C namespaces.  stdio.h
8869         no longer defines wint_t or wchar_t.
8871         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8872         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8873         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8874         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8875         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8876         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8877         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8878         * debug/printf_chk.c (__printf_chk): Likewise.
8879         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8880         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8882         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8883         Define.
8885         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8886         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8888 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8890         [BZ #4792]
8891         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8892         * malloc/malloc.h (realloc): Likewise.
8894         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8895         if one of proc_file_chain streams has that fileno.
8896         * stdio-common/Makefile (tests): Add tst-popen2.
8897         * stdio-common/tst-popen2.c: New test.
8899 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
8901         * elf/ldconfig.c: Allow GPLv2 or any later version.
8902         * elf/readlib.c: Likewise.
8903         * elf/chroot_canon.c: Likewise.
8904         * elf/cache.c: Likewise.
8905         * nscd/mem.c: Likewise.
8906         * nscd/getpwuid_r.c: Likewise.
8907         * nscd/grpcache.c: Likewise.
8908         * nscd/aicache.c: Likewise.
8909         * nscd/getsrvbynm_r.c: Likewise.
8910         * nscd/nscd.c: Likewise.
8911         * nscd/servicescache.c: Likewise.
8912         * nscd/getsrvbypt_r.c: Likewise.
8913         * nscd/initgrcache.c: Likewise.
8914         * nscd/gethstbyad_r.c: Likewise.
8915         * nscd/gethstbynm2_r.c: Likewise.
8916         * nscd/getgrnam_r.c: Likewise.
8917         * nscd/nscd_setup_thread.c: Likewise.
8918         * nscd/getpwnam_r.c: Likewise.
8919         * nscd/gai.c: Likewise.
8920         * nscd/connections.c: Likewise.
8921         * nscd/dbg_log.c: Likewise.
8922         * nscd/cache.c: Likewise.
8923         * nscd/hstcache.c: Likewise.
8924         * nscd/nscd_conf.c: Likewise.
8925         * nscd/getgrgid_r.c: Likewise.
8926         * nscd/pwdcache.c: Likewise.
8927         * catgets/gencat.c: Likewise.
8928         * locale/programs/linereader.h: Likewise.
8929         * locale/programs/locarchive.c: Likewise.
8930         * locale/programs/ld-paper.c: Likewise.
8931         * locale/programs/locfile-kw.h: Likewise.
8932         * locale/programs/ld-address.c: Likewise.
8933         * locale/programs/xmalloc.c: Likewise.
8934         * locale/programs/ld-time.c: Likewise.
8935         * locale/programs/localedef.c: Likewise.
8936         * locale/programs/simple-hash.c: Likewise.
8937         * locale/programs/xstrdup.c: Likewise.
8938         * locale/programs/ld-numeric.c: Likewise.
8939         * locale/programs/locfile-kw.gperf: Likewise.
8940         * locale/programs/ld-collate.c: Likewise.
8941         * locale/programs/charmap-kw.gperf: Likewise.
8942         * locale/programs/charmap.h: Likewise.
8943         * locale/programs/charmap-kw.h: Likewise.
8944         * locale/programs/config.h: Likewise.
8945         * locale/programs/locfile.c: Likewise.
8946         * locale/programs/ld-ctype.c: Likewise.
8947         * locale/programs/charmap.c: Likewise.
8948         * locale/programs/ld-messages.c: Likewise.
8949         * locale/programs/repertoire.h: Likewise.
8950         * locale/programs/locale.c: Likewise.
8951         * locale/programs/ld-name.c: Likewise.
8952         * locale/programs/linereader.c: Likewise.
8953         * locale/programs/locfile.h: Likewise.
8954         * locale/programs/3level.h: Likewise.
8955         * locale/programs/ld-monetary.c: Likewise.
8956         * locale/programs/ld-measurement.c: Likewise.
8957         * locale/programs/charmap-dir.c: Likewise.
8958         * locale/programs/ld-identification.c: Likewise.
8959         * locale/programs/localedef.h: Likewise.
8960         * locale/programs/charmap-dir.h: Likewise.
8961         * locale/programs/repertoire.c: Likewise.
8962         * locale/programs/simple-hash.h: Likewise.
8963         * locale/programs/ld-telephone.c: Likewise.
8964         * locale/programs/locale-spec.c: Likewise.
8965         * locale/programs/locfile-token.h: Likewise.
8966         * posix/getconf.c: Likewise.
8967         * iconv/dummy-repertoire.c: Likewise.
8968         * iconv/iconv_charmap.c: Likewise.
8969         * iconv/iconvconfig.c: Likewise.
8970         * iconv/iconv_prog.c: Likewise.
8971         * malloc/memusagestat.c: Likewise.
8972         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8974 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8976         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8977         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8978         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8979         check for the first argument.
8981 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
8983         [BZ #4775]
8984         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8985         (__tgmath_real_type): Fix if expr is const int or other const
8986         qualified integral type.
8987         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8988         expressions and handle const qualified arguments.
8989         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8990         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8991         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8992         statement expressions.
8993         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8994         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8995         (__TGMATH_UNARY_IMAG): Define.
8996         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8997         * math/Makefile (tests): Add test-tgmath2.
8998         (CFLAGS-test-tgmath2.c): Add.
8999         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9000         count_cfloat, count_cldouble): New variables.
9001         (NCCALLS): Define.
9002         (main): Check number of complex calls as well.
9003         (F(compile_test)): Add complex tests and tests with const qualified
9004         arguments.
9005         (y, z, ccount): Define.
9006         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9007         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9008         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9009         F(cproj)): New functions.
9010         * math/test-tgmath2.c: New test.
9012 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9014         [BZ #4776]
9015         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9016         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9017         instead output ".".
9018         * dlfcn/Makefile (distribute): Add glreflib3.c.
9019         (module-names): Add glreflib3.
9020         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9021         glreflib1.so.
9022         (LDFLAGS_glreflib3.so): New.
9023         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9024         glreflib1.so.
9025         * dlfcn/glreflib3.c: New file.
9027         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9028         returned -1, return NULL.
9029         * intl/explodename.c (_nl_explode_name): Return -1 if
9030         _nl_normalize_codeset failed.
9032 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9034         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9035         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9036         and avoid branch misspredicts for > 31 bytes memset case.
9037         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9038         Remove toc ref to __cache_line_size.
9040         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9041         to get ISA-V2.0 branch hints.
9042         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9043         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9044         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9045         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9046         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9047         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9048         Remove toc ref to __cache_line_size.
9050         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9051         Include math_ldbl_opt.h.
9053 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9055         [BZ #4773]
9056         * time/strptime_l.c (__strptime_internal): Implement greedy
9057         matching of weekday and month names.
9059 2007-07-09  Roland McGrath  <roland@redhat.com>
9061         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9062         (ELF_NOTE_ABI): Use it.
9063         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9065 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9067         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9068         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9070 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9072         [BZ #4745]
9073         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9074         in loop to look for conversion specifier to avoid testing of
9075         wrong errno value.
9076         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9077         * stdio-common/bug18.c: New file.
9078         * stdio-common/bug18a.c: New file.
9079         * stdio-common/bug19.c: New file.
9080         * stdio-common/bug19a.c: New file.
9082 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9084         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9085         running awk script.
9087 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9089         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9090         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9091         Return NULL if mmap failed instead of asserting it does not.
9092         (calloc): Check for integer overflow.
9094         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9095         than LONG_MAX / 10.
9097 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9099         [BZ #4702]
9100         * nis/nss-default.c: Include errno.h.
9101         (init): Preserve errno.
9103 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9105         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9107 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9109         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9111 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9113         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9115 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9117         * sysdeps/s390/dl-procinfo.c: New file.
9118         * sysdeps/s390/dl-procinfo.h: New file.
9119         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9121 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9123         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9124         in PT_NOTE segments with multiple notes.
9125         * elf/readelflib.c (process_elf_file): Likewise.
9127 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9129         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9130         ISO C compliant.
9132 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9134         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9136 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9138         * include/link.h: Don't include rtld-lowlevel.h.
9139         (struct link_map): Remove l_scope_lock.
9140         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9141         (_dl_scope_free_list): New field (variable) in _rtld_global.
9142         (DL_LOOKUP_SCOPE_LOCK): Remove.
9143         (_dl_scope_free): New prototype.
9144         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9145         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9146         (_dl_profile_fixup): Likewise.
9147         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9148         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9149         THREAD_GSCOPE_RESET_FLAG around it.
9150         * elf/dl-close.c (_dl_close_worker): Don't use
9151         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9152         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9153         scopes were queued or if l_scope_mem has been abandoned.
9154         * elf/dl-open.c (_dl_scope_free): New function.
9155         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9156         * elf/dl-support.c (_dl_scope_free_list): New variable.
9157         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9158         Remove DL_LOOKUP_SCOPE_LOCK handling.
9159         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9160         handling.
9161         * elf/dl-object.c (_dl_new_object): Don't use
9162         __rtld_mrlock_initialize.
9164 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9166         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9167         to fill in holes
9168         (rtld_global_ro): Likewise.
9170 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9172         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9173         Move PT_LOAD checking to...
9174         (_dl_addr_inside_object): ... here, new function.
9175         * elf/dl-sym.c (do_sym): If not l_contiguous,
9176         call _dl_addr_inside_object.
9177         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9178         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9179         * elf/dl-open.c (dl_open_worker): Likewise.
9180         (_dl_addr_inside_object): New function if IS_IN_rtld.
9181         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9182         holes are present or are PROT_NONE protected.
9183         * include/link.h (struct link_map): Add l_contiguous field.
9184         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9186 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9187             Tomas Janousek  <tjanouse@redhat.com>
9188             Ulrich Drepper  <drepper@redhat.com>
9190         [BZ #4647]
9191         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9192         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9193         socket.
9194         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9195         unused member a bitmap.
9196         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9197         servers are configured.
9199 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9201         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9203 2007-06-17  Andreas Schwab  <schwab@suse.de>
9205         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9207 2007-06-16  Andreas Jaeger  <aj@suse.de>
9209         [BZ #4125]
9210         * sysdeps/unix/sysv/linux/sys/ptrace.h
9211         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9212         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9213         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9214         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9215         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9216         Define.
9217         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9218         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9219         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9220         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9222 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9224         [BZ #4599]
9225         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9226         determining whether there are IPv4/IPv6 addresses, ignore loopback
9227         addresses.
9229 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9231         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9232         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9233         as the return type.  Change type of "r" variable to CMPtype.
9234         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9235         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9236         * soft-fp/gedf2.c (__gedf2): Likewise.
9237         * soft-fp/gesf2.c (__gesf2): Likewise.
9238         * soft-fp/getf2.c (__getf2): Likewise.
9239         * soft-fp/ledf2.c (__ledf2): Likewise.
9240         * soft-fp/lesf2.c (__lesf2): Likewise.
9241         * soft-fp/letf2.c (__letf2): Likewise.
9242         * soft-fp/unorddf2 (__unorddf2): Likewise.
9243         * soft-fp/unordsf2 (__unordsf2): Likewise.
9244         * soft-fp/unordtf2 (__unordtf2): Likewise.
9246 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9248         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9249         make sure gcc doesn't mess around with this.
9251 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9253         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9255 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9257         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9258         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9259         at most once per _dl_close_worker.
9261 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9263         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9264         __sched_cpucount as const.
9265         * posix/sched_cpucount.c: Adjust.
9267         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9268         instruction for counting bits.
9269         * sysdeps/x86_64/sched_cpucount.c: New file.
9271 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9273         * configure.in: Avoid variable named BASH.
9274         * config.make.in: Likewise.
9275         Patch in part by Mike Frysinger.
9277 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9279         [BZ #4586]
9280         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9281         pseudo-zeros as zero.
9282         * sysdeps/x86_64/ldbl2mpn.c: New file.
9283         * sysdeps/ia64/ldbl2mpn.c: New file.
9285 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9287         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9288         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9289         Remove unreachable code at the end.
9291 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9293         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9294         ldbl-128ibm in comment.
9295         (fpclassifyl): Correct classification of denormals.
9296         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9297         return value for MIN denormal. Rewrite using long double math too
9298         correctly handle denormals and canonicalize the results.
9300 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9302         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9303         (__mpn_construct_long_double): Fix conversion where result ought
9304         to be smaller than __LDBL_MIN__, or the low double should be
9305         denormal.  Fix decision where to negate low double - honor round
9306         to even rules.
9307         * stdio-common/tst-sprintf2.c: Include string.h.
9308         (COMPARE_LDBL): Define.
9309         (TEST): Also test whether a string hexadecimal float representation
9310         can be parsed back to the number.
9311         (main): Add a couple of further tests.
9313 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9315         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9316         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9317         is non-zero, but smaller than 2 * __DBL_MIN__.
9318         * stdio-common/tst-sprintf2.c: New test.
9319         * stdio-common/Makefile (tests): Add tst-sprintf2.
9321         * math/test-misc.c (main): Don't run last batch of tests with
9322         IBM long double format.
9324 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9326         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9327         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9328         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9329         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9330         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9331         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9332         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9333         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9334         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9335         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9338         New file.
9339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9340         New file.
9341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9342         New file.
9343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9344         New file.
9345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9346         New file.
9347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9349         New file.
9350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9351         New file.
9352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9353         New file.
9354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9355         New file.
9356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9357         New file.
9359 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9361         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9362         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9363         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9364         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9365         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9366         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9367         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9368         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9370 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9372         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9373         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9374         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9375         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9376         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9377         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9378         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9379         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9381 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9383         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9384         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9385         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9386         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9388 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9390         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9391         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9393 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9395         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9396         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9397         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9398         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9400 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9402         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9403         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9405 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9407         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9408         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9410         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9411         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9412         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9413         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9415 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9417         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9418         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9419         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9420         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9422 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9424         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9425         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9426         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9427         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9428         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9429         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9431 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9433         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9434         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9435         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9436         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9438 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9440         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9441         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9442         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9443         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9444         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9445         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9446         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9447         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9448         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9449         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9450         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9451         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9452         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9453         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9454         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9455         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9457 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9459         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9460         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9462 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9464         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9465         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9467 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9469         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9470         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9471         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9472         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9473         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9474         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9475         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9476         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9477         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9478         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9480 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9482         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9484 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9486         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9487         branch miss-predicts. Ensure that cache line crossing does not impact
9488         dispatch grouping.
9490 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9492         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9493         "../../powerpc32/power4/memcopy.h".
9494         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9495         "../../powerpc32/power4/wordcopy.c".
9497 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9499         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9500         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9501         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9502         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9503         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9504         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9506 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9508         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9510 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9512         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9513         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9514         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9515         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9516         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9517         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9518         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9519         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9521 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9523         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9525 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9527         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9528         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9529         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9530         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9531         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9532         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9533         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9535 2007-05-29  Roland McGrath  <roland@redhat.com>
9537         * po/Makefile (po-sed-cmd): New variable.
9538         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9540 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9542         * crypt/md5-crypt.c: Fix comment.
9544         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9545         of crashing.  When this is the case or if the reply is malformed,
9546         don't try to close the new file descriptor since it does not
9547         exist.
9548         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9550 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9552         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9553         if __NR_utimensat is not defined.
9555 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9557         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9559 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9561         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9562         (open): Fix comment typos.  Don't call __open_2 if flags
9563         is a compile time constant without O_CREAT.
9564         (__open64_2): Add nonnull attribute.
9565         (open64): Fix comment typos.  Don't call __open64_2 if flags
9566         is a compile time constant without O_CREAT.
9567         (__openat_2): Add nonnull attribute, fix nonnull attribute
9568         on redirect.
9569         (openat): Fix comment typos.  Don't call __openat_2 if flags
9570         is a compile time constant without O_CREAT.
9571         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9572         on redirect.
9573         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9574         is a compile time constant without O_CREAT.
9576 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9578         * Makerules (sysd-rules): Define PTW for ptw-* files.
9579         * Versions: Define GLIBC_2.7 for libc.
9580         * include/stdio.h: Declare __fortify_fail.
9581         * debug/fortify_fail.c: New file.
9582         * debug/Makefile (routines): Add fortify_fail.
9583         * debug/chk_fail.c: Use __fortify_fail.
9584         * debug/stack_chk_fail.c: Likewise.
9585         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9586         __openat64_2 for GLIBC_2.7.
9587         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9588         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9589         and fails if necessary.
9590         * io/open64.c: Likewise.
9591         * io/openat.c: Likewise.
9592         * io/openat64.c: Likewise.
9593         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9594         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9595         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9596         * io/bits/fcntl2.h: New file.
9597         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9598         __openat64_2.
9599         * include/bits/fcntl2.h: New file.
9600         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9601         Add open_2.
9602         * sysdeps/unix/sysv/linux/open_2.c: New file.
9604 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9606         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9607         as second parameter to handle_intel.
9609         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9610         the entry.
9612         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9613         handling to ...
9614         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9615         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9616         cacheinfo.
9617         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9618         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9619         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9621         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9623 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9625         [BZ #4525]
9626         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9627         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9628         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9630         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9632         [BZ #4514]
9633         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9634         reinitialize workend at the start of each do_positional format spec
9635         loop, free workstart before do_positional loops.
9636         (printf_unknown): Fix size of work_buffer.
9637         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9639         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9640         (public_sET_STATe): If ms->version < 3, put all chunks into
9641         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9642         chunks.
9644         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9645         * malloc/hooks.c: Likewise.
9646         * malloc/arena.c: Likewise.
9647         * malloc/malloc.c (do_check_malloc_state): Don't assert
9648         n_mmaps is not greater than n_mmaps_max.  This removes the need
9649         for the previous change.
9651         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9652         2007-05-07 commit.
9654 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9656         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9657         Define for kernel >= 2.6.22.
9659 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9661         * elf/dl-close.c (_dl_close_worker): When removing object from
9662         global scope, wait for all lookups to finish afterwards.
9663         * elf/dl-open.c (add_to_global): When global scope array must
9664         grow, allocate a new one and free old array only after all
9665         lookups finish.
9666         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9667         (_dl_lookup_symbol_x): Likewise.
9668         * elf/dl-support.c: Define _dl_wait_lookup_done.
9669         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9670         _dl_wait_lookup_done.
9672         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9673         not overlapping with arena.
9675         * malloc/mcheck.c (reallochook): If size==0, free the block.
9677         * rt/tst-shm.c: Use fstat64 instead of fstat.
9679         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9680         __NR_sync_file_range is not defined.
9682 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9684         Dummy files to prevent stub versions from being used.
9685         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9686         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9687         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9688         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9690         * version.h (VERSION): Set to 2.6.90.
9692 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9694         * version.h (VERSION): Define to 2.6.
9695         * include/features.h (__GLIBC_MINOR__): Define to 6.
9697         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9699         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9700         sizes.
9702 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9704         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9705         number of mmaps.  n_mmaps_max is the target.
9706         * malloc/hooks.c: Likewise.
9707         * malloc/arena.c: Likewise.
9709 2007-05-12  Andreas Jaeger  <aj@suse.de>
9711         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9712         getpid.
9714 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9716         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9717         adding new variables.
9719         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9720         optimize.  Completely extend global scope array before making the
9721         new entries visible.
9723 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9725         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9726         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9727         tst-getcpu.
9729         * include/link.h: Move l_version and l_nversion members around to
9730         fill gaps.
9732         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9734         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9735         (__sched_setaffinity_new): If syscall was successful and
9736         RESET_VGETCPU_CACHE is defined, use it before returning.
9737         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9739         * io/sys/stat.h: Make sure struct timespec is defined for
9740         __USE_ATFILE.
9742         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9743         UTIME_OMIT.
9744         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9745         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9746         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9747         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9748         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9749         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9750         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9751         * io/sys/stat.h: Declare utimensat, futimens.
9752         * io/utimensat.c: New file.
9753         * io/futimens.c: New file.
9754         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9755         * sysdeps/unix/sysv/linux/futimens.c: New file.
9756         * io/Makefile (routines): Add utimensat, futimens.
9757         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9758         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9759         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9760         available.
9762         * include/sys/cdefs.h: Redefine __nonnull so that test for
9763         incorrect parameters in the libc code itself are not omitted.
9765 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9767         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9768         exception in addition to inexact when asked to raise only FE_INEXACT.
9770         [BZ #3427]
9771         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9772         in *envp.
9774 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9776         [BZ #4403]
9777         * string/strfry.c (strfry): Make result more random.
9779 2007-05-07  Richard Henderson  <rth@redhat.com>
9781         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9782         if __NO_LONG_DOUBLE_MATH.
9783         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9784         available in the compiler, add .arch directive to the assembly.
9786 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
9788         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9789         compat_symbol to GLIBC_2_1.
9790         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9791         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9792         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9793         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9794         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9795         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9796         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9797         libc, not libm.
9798         (__isnanl): New compat_symbol.
9800 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9801             Jakub Jelinek  <jakub@redhat.com>
9803         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9804         (new_heap): Initialize mprotect_size.
9805         (grow_heap): When growing, only mprotect from mprotect_size till
9806         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
9807         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9809 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
9810             Peter Bergner  <bergner@us.ibm.com>
9812         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9813         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
9814         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9815         * sysdeps/powerpc/fpu/fe_mask.c: New file.
9816         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9817         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9818         Call __fe_mask_env() if all FP exceptions disabled.
9819         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9820         from old FPSCR to new fenv to propagate DFP rounding modes.
9821         Call __fe_mask_env() if FP exceptions previously enabled.
9822         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9823         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
9824         transitioning from all exceptions disabled to any exception enabled
9825         or visa versa.
9826         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9827         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
9828         when transitioning from all exceptions disabled to any exception
9829         enabled or visa versa.
9830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9837 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9839         [BZ #4465]
9840         * posix/unistd.h: Remove __THROW from fdatasync.
9842 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
9844         [BZ #4465]
9845         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9847 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9849         * stdio-common/vfprintf.c (process_string_arg): Optimize
9850         ridiculous precision in wide char code printing multi-byte string.
9851         Reported by Jim Meyering <jim@meyering.net>.
9853         [BZ #4131]
9854         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9855         boundaries to work around systems with overlapping binary loading.
9856         Based on a patch by Suzuki <suzuki@in.ibm.com>.
9858 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
9860         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9861         __mbsnrtowcs after last change.
9863         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9864         (get_ident): Likewise.
9866 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9868         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9869         with setting the sticky bit.
9870         * math/test-misc.c (main): Add more truncation tests.
9872 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
9874         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9875         double in the function declaration.
9876         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9877         double in the function declaration.
9878         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9879         float in the function declaration.
9880         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9881         float in the function declaration.
9883         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9884         denormal operands.  Do not generate FP_EX_DENORM exception.
9885         (FP_UNPACK_RAW_EP): Ditto.
9886         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9887         undefined _FP_UNPACK_RAW_E.
9888         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9889         undefined _FP_UNPACK_RAW_EP.
9890         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9891         undefined _FP_PACK_RAW_E.
9892         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9893         undefined _FP_PACK_RAW_EP.
9895         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9896         _FP_FRAC_COPY_2.
9897         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9898         _FP_FRAC_COPY_4.
9900 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
9901             Jakub Jelinek  <jakub@redhat.com>
9903         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9904         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
9905         this case.
9906         * soft-fp/op-common.h (FP_TRUNC): Ditto.
9908 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9910         * math/test-misc.c (main): Add tests for rounding long double
9911         values close to smallest double denormalized value to double.
9913 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
9915         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9916         condition for truncating to 0.  Set sticky bit for such
9917         truncation.
9919 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
9921         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9922         fixed length array for ignore.
9924 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9926         [BZ #4438]
9927         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9928         stack for large precisions.
9929         * stdio-common/test-vfprintf.c (main): Add test for large
9930         precision.
9932 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
9934         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9935         for exponent 0.
9936         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9938         [BZ #4439]
9939         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9940         account in the size check.
9941         * resolv/tst-inet_ntop.c: New test.
9942         * resolv/Makefile (tests): Add tst-inet_ntop.
9944 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9945             Jakub Jelinek  <jakub@redhat.com>
9947         [BZ #4349]
9948         * malloc/malloc.c: Keep separate list for first blocks on the bin
9949         lists with a given size.  This helps skipping over list elements
9950         we know won't fit in two places.
9951         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9953 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
9955         [BZ #4102]
9956         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9957         label to Teredo tunnel addresses 2001://32.
9959 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
9961         * locale/programs/ld-collate.c (collate_read): Allow order_start
9962         after copy.
9964         * locale/programs/ld-collate.c (collate_read): Fix printing of
9965         error message.
9967         [BZ #3213]
9968         * locale/C-translit.h.in: Add entry for U2044.
9970         [BZ #4342]
9971         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9972         hexa-decimal floats without exponent.
9973         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9975 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9977         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9978         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9979         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9980         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9981         GLIBC_2.6.
9982         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9983         Add sched_getcpu.
9985 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9987         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9988         of 0 after the out_fail label.
9990 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9992         [BZ #4406]
9993         * iconv/gconv_charset.h (strip): Allow ':'.
9994         * iconv/iconv_open.c (iconv_open): Adjust comment.
9996 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9998         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9999         version.
10001 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10003         [BZ #4381]
10004         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10005         alignment of buffer and tmp_buffer.
10006         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10007         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10008         alignment of buffer.
10009         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10010         bigger than INT_MAX.
10011         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10012         h_errnop arguments.  Fail if buflen is too small.
10013         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10015 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10017         [BZ #4405]
10018         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10019         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10021 2007-04-22  Roland McGrath  <roland@redhat.com>
10023         * elf/elf.h (NT_PRXFPREG): New macro.
10025 2007-04-19  Andreas Jaeger  <aj@suse.de>
10027         [BZ #3905]
10028         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10029         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10030         Added.
10032 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10034         * include/sys/mman.h: Mark madvise hidden.
10035         * misc/madvise.c: Add libc_hidden_def.
10037 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10039         * nis/nis_domain_of.c (__nis_domain_of): New function.
10040         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10041         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10042         * nis/nis_call.c (rec_dirsearch): Likewise.
10043         (first_shoot): Likewise.  Remove search_parent_first argument.
10044         (struct nis_server_cache): Rename search_parent_first field
10045         to search_parent.
10046         (nis_server_cache_search, nis_server_cache_add): Rename
10047         search_parent_first argument to search_parent.
10048         (__nisfind_server): Likewise.  If search_parent, call
10049         __nis_domain_of.
10051 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10053         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10055 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10057         [BZ #4368]
10058         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10060 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10062         [BZ #4364]
10063         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10065 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10067         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10068         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10069         current number of locales in SUPPORTED.
10070         (create_archive): Initialize serial.
10071         (enlarge_archive): Preserve aliases rather than duplicating
10072         their locrecs.
10074 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10076         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10077         after _IO_un_link, not before it.
10079         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10080         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10081         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10083 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10085         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10086         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10087         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10088         Remove __THROW.
10089         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10090         _IO_file_xsgetn_maybe_mmap): Likewise.
10091         * libio/oldfileops.c (old_do_write): Likewise.
10092         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10093         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10094         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10095         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10096         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10097         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10098         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10099         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10100         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10101         _IO_file_underflow, _IO_file_underflow_mmap,
10102         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10103         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10104         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10105         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10106         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10107         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10108         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10109         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10110         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10111         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10112         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10113         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10114         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10115         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10116         _IO_adjust_column_internal, _IO_default_uflow_internal,
10117         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10118         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10119         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10120         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10121         _IO_file_close_it_internal, _IO_file_underflow_internal,
10122         _IO_file_overflow_internal, _IO_file_attach_internal,
10123         _IO_file_fopen_internal, _IO_file_sync_internal,
10124         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10125         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10126         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10127         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10128         _IO_seekpos_unlocked): Likewise.
10129         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10130         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10132 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10134         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10135         argument in xmalloc size computation.
10137 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10139         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10140         math_opt_barrier and math_force_eval macros.
10142 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10144         [BZ #3306]
10145         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10146         * sysdeps/i386/fpu/math_private.h: New file.
10147         * sysdeps/x86_64/fpu/math_private.h: New file.
10148         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10149         math_force_eval macros.  Use "+m" constraint on asm rather than
10150         "=m" and "m".
10151         * math/s_nextafter.c (__nextafter): Likewise.
10152         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10153         Likewise.
10154         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10155         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10156         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10157         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10158         math_opt_barrier and math_force_eval macros.
10159         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10160         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10161         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10162         (__nexttoward): Use math_opt_barrier and
10163         math_force_eval macros.  Use "+m" constraint on asm rather than
10164         "=m" and "m".  Only use asm to force double result if
10165         FLT_EVAL_METHOD is 2.
10166         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10167         (__nexttowardf): Use math_opt_barrier and
10168         math_force_eval macros.  Use "+m" constraint on asm rather than
10169         "=m" and "m".  Only use asm to force double result if
10170         FLT_EVAL_METHOD is not 0.
10171         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10172         (__nexttowardf): Use math_opt_barrier and
10173         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10174         x to float using asm.
10175         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10176         (__nldbl_nexttowardf): Use math_opt_barrier and
10177         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10178         x to float using asm.
10179         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10180         (__nexttowardf): Use math_opt_barrier and math_force_eval
10181         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10182         * math/bug-nextafter.c (zero, inf): New variables.
10183         (main): Add new tests.
10184         * math/bug-nexttoward.c (zero, inf): New variables.
10185         (main): Add new tests.
10187 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10189         [BZ #3427]
10190         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10191         exceptions both in SW and MXCSR.
10192         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10193         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10194         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10195         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10196         in MXCSR if SSE is available.
10197         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10198         and ldsodefs.h.
10199         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10200         Fix comment typo.
10201         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10202         Return 0 rather than 1.
10203         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10204         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10205         * math/test-fenv.c (feholdexcept_tests): New function.
10206         (main): Call it.
10208 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10210         [BZ #3427]
10211         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10212         in SW.
10214 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10216         [BZ #4344]
10217         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10218         Reported by David Anderson <davea42@earthlink.net>.
10220 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10222         * posix/sys/wait.h: Remove unnecessary forward declaration.
10224 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10226         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10227         with obj->do_servers after first_shoot.
10229 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10231         * posix/Makefile (routines): Add sched_cpucount.
10232         (tests): Add tst-cpucount.
10233         * posix/sched_cpucount.c: New file.
10234         * posix/tst-cpucount.c: New file.
10235         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10236         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10237         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10238         * posix/sched.h: Define CPU_COUNT.
10240 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10242         * posix/fnmatch.c (STRUCT): Define.
10243         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10244         * posix/fnmatch_loop.c (struct STRUCT): New type.
10245         (FCT): Add ends argument.  If ends != NULL and normal * is
10246         seen in the pattern, store current pattern and string pointers
10247         and return.  Adjust recursive calls.
10248         (EXT): Adjust FCT callers.
10249         (STRUCT): Undef at the end of the file.
10250         * posix/Makefile (tests): Add tst-fnmatch2.
10251         * posix/tst-fnmatch2.c: New test.
10253 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10255         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10256         and 1 on failure.
10258         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10259         Change last argument to unsigned int.
10261 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10263         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10265 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10267         * config.h.in (HAVE_LIBCAP): Add.
10268         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10269         sys/capabilities.h.
10270         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10271         free_caps.  Cast away const from 4th cap_set_flag argument.
10273 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10275         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10276         GLIBC_2.6.
10277         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10278         Add sync_file_range.
10279         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10281 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10283         * sysdeps/powerpc/bits/atomic.h
10284         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10285         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10286         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10287         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10288         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10289         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10290         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10291         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10292         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10293         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10294         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10295         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10296         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10297         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10298         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10299         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10300         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10301         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10302         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10303         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10305 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10307         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10308         (__cache_line_size): Define the variable here.  Add
10309         attribute_hidden, remove weak_extern.
10310         (__libc_start_main): Set __cache_line_size
10311         unconditionally.
10312         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10313         (__cache_line_size): Define the variable here.  Add
10314         attribute_hidden, remove weak_extern.
10315         (DL_PLATFORM_AUXV): Set __cache_line_size
10316         unconditionally.
10317         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10318         weak_extern, add attribute_hidden.
10319         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10320         defined in ld.so.
10321         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10322         definition.
10323         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10325 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10327         [BZ #4276]
10328         * timezone/africa: Update from tzdata2007d.
10329         * timezone/asia: Likewise.
10330         * timezone/australasia: Likewise.
10331         * timezone/backward: Likewise.
10332         * timezone/europe: Likewise.
10333         * timezone/iso3166.tab: Likewise.
10334         * timezone/leapseconds: Likewise.
10335         * timezone/northamerica: Likewise.
10336         * timezone/southamerica: Likewise.
10337         * timezone/zone.tab: Likewise.
10339         * timezone/private.h: Update from tzcode2007d.
10340         * timezone/zdump.c: Likewise.
10341         * timezone/zic.c: Likewise.
10343 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10345         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10346         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10347         variables.
10348         (nis_server_cache_search, nis_server_cache_add): New functions.
10349         (__nisfind_server): Use them.  Add dbp and flags argument, if
10350         call __nisbind_create.
10351         (__nisbind_create): Add server_used and current_ep arguments,
10352         only call __nis_findfastest if server_used is ~0.
10353         (__do_niscall2, __prepare_niscall): Adjust callers.
10354         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10355         ckey_cache_euid, ckey_cache_lock): New variables.
10356         (get_ckey): New function.
10357         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10358         __pmap_getnisport.  Save __pmap_getnisport result in
10359         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10360         key.
10361         * nis/nis_lookup.c (nis_lookup): Likewise.
10362         * nis/nis_table.c (nis_list): Likewise.
10363         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10364         prototypes.
10366         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10367         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10368         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10369         _nss_nisplus_getservbyport_r): Likewise.
10370         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10371         _nss_nisplus_getnetbyaddr_r): Likewise.
10372         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10373         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10374         _nss_nisplus_getntohost_r): Likewise.
10375         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10376         _nss_nisplus_getrpcbynumber_r): Likewise.
10378 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10380         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10381         * configure: Rebuilt.
10383         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10384         bit-fields.
10385         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10387 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10389         [BZ #2831]
10390         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10391         bit-fields.
10393 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10395         * nscd/gai.c: Include alloca.h.
10396         (__libc_use_alloca): Define.
10398 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10400         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10401         smaller scopes.
10402         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10403         (DL_DST_REQUIRED): Adjust user.
10405         * include/dlfcn.h (struct link_map): New forward decl.
10407         * inet/getnameinfo.c: Include stddef.h.
10408         (getnameinfo): Use offsetof.
10410         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10412         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10414         * string/strerror_l.c: Include stdlib.h.
10416         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10417         * config.make.in (gnu89-inline-CFLAGS): New variable.
10418         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10419         -std=gnu99.
10420         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10421         * argp/argp.h: Use it.
10422         * bits/mathinline.h: Likewise.
10423         * bits/sigset.h: Likewise.
10424         * bits/string.h: Likewise.
10425         * ctype/ctype.h: Likewise.
10426         * hurd/hurd.h: Likewise.
10427         * hurd/hurd/fd.h: Likewise.
10428         * hurd/hurd/port.h: Likewise.
10429         * hurd/hurd/signal.h: Likewise.
10430         * hurd/hurd/threadvar.h: Likewise.
10431         * hurd/hurd/userlink.h: Likewise.
10432         * io/sys/stat.h: Likewise.
10433         * libio/bits/stdio.h: Likewise.
10434         * libio/bits/stdio2.h: Likewise.
10435         * mach/lock-intern.h: Likewise.
10436         * mach/mach/mig_support.h: Likewise.
10437         * math/bits/cmathcalls.h: Likewise.
10438         * posix/bits/unistd.h: Likewise.
10439         * socket/bits/socket2.h: Likewise.
10440         * stdlib/bits/stdlib.h: Likewise.
10441         * stdlib/stdlib.h: Likewise.
10442         * string/argz.h: Likewise.
10443         * string/bits/string2.h: Likewise.
10444         * string/bits/string3.h: Likewise.
10445         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10446         * sysdeps/generic/inttypes.h: Likewise.
10447         * sysdeps/generic/machine-lock.h: Likewise.
10448         * sysdeps/generic/machine-sp.h: Likewise.
10449         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10450         * sysdeps/i386/i486/bits/string.h: Likewise.
10451         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10452         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10453         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10454         * sysdeps/mach/i386/machine-lock.h: Likewise.
10455         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10456         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10457         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10458         * sysdeps/s390/bits/string.h: Likewise.
10459         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10460         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10461         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10462         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10463         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10464         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10465         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10466         * wcsmbs/bits/wchar2.h: Likewise.
10467         * wcsmbs/wchar.h: Likewise.
10468         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10469         __extern_inline definition.
10471 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10473         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10474         NULL.
10476         [BZ #3919]
10477         * math/libm-test.inc (log_test): Test -Inf and NaN.
10478         (log10_test, log1p_test, log2_test): Test -Inf.
10479         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10480         FE_INVALID when argument is qNaN.
10481         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10482         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10483         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10484         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10485         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10486         testb $4, %ah and jump if non-zero.
10487         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10488         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10490         [BZ #4101]
10491         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10492         ancestors with the same depths.
10493         Patch by Niels Moeller <nisse@lysator.liu.se>.
10494         (filter_doc): Don't crash if argp is NULL.
10495         * argp/Makefile (tests): Add tst-argp2.
10496         * argp/tst-argp2.c: New test.
10498         [BZ #4130]
10499         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10500         open_not_cancel_2.
10501         (updwtmp_file): Likewise.
10503         [BZ #4181]
10504         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10505         (inet6_opt_append): Don't check extlen is big enough if extbuf
10506         is NULL.
10507         (inet6_opt_finish): Likewise.
10508         * inet/Makefile (tests): Add test-inet6_opt.
10509         * inet/test-inet6_opt.c: New test.
10511         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10512         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10513         NLMSG_ERR.  Instead use a page sized buffer.
10514         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10515         buffer.
10517 2007-03-14  Richard Henderson  <rth@redhat.com>
10519         * sysdeps/alpha/fpu/s_llround.c: New file.
10520         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10521         * sysdeps/alpha/fpu/s_lround.c: New file.
10522         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10523         * sysdeps/alpha/fpu/s_round.c: New file.
10524         * sysdeps/alpha/fpu/s_roundf.c: New file.
10525         * sysdeps/alpha/fpu/s_trunc.c: New file.
10526         * sysdeps/alpha/fpu/s_truncf.c: New file.
10528         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10529         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10530         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10531         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10532         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10533         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10535         * sysdeps/alpha/fpu/s_fmax.S: New file.
10536         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10537         * sysdeps/alpha/fpu/s_fmin.S: New file.
10538         * sysdeps/alpha/fpu/s_fminf.S: New file.
10539         * sysdeps/alpha/fpu/s_isnan.c: New file.
10540         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10541         * sysdeps/alpha/fpu/s_llrint.c: New file.
10542         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10543         * sysdeps/alpha/fpu/s_lrint.c: New file.
10544         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10545         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10546         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10548         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10549         (__fdimf, fdimf, __fdim, fdim): Remove.
10550         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10551         (__isnanf, __isnan, __isnanl): New.
10553 2007-03-13  Richard Henderson  <rth@redhat.com>
10555         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10557 2007-03-13  Richard Henderson  <rth@redhat.com>
10559         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10560         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10561         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10562         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10563         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10564         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10566 2007-03-13  Richard Henderson  <rth@redhat.com>
10568         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10569         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10570         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10571         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10572         Move to dl-auxv.h; initialize instead of extern weak.
10573         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10574         weak symbol.
10575         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10576         Extern instead of initialized.
10578 2007-03-13  Richard Henderson  <rth@redhat.com>
10580         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10581         __sigsuspend_nocancel.
10583 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10585         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10586         172.16/12 address range.
10588 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10590         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10591         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10592         message.
10594 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10596         [BZ #4069]
10597         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10598         earlier.
10599         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10601         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10602         for x qNaN and y either +-inf or non-integer value.
10603         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10604         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10605         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10607 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10609         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10610         from sysdep_headers.
10612 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10614         * time/tzfile.c (find_transition): Instead of a linear search try to
10615         guess the transition index, use a linear search if the result is at
10616         most 10 transitions away from the guess or binary search otherwise.
10618 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10620         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10621         memory reallocation.
10623 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10625         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10626         and fix some typos.
10627         Optimize use of TOLOWER.
10629         [BZ #3325]
10630         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10631         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10632         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10634         [BZ #3458]
10635         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10636         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10638         [BZ #4076]
10639         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10640         (open_dir_stream): Likewise.
10641         * io/Makefile (tests): Add bug-ftw5.
10642         * io/bug-ftw5.c: New file.
10644         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10645         * nscd/servicescache.c (cache_addserv): Likewise.
10647         * nscd/grpcache.c (cache_addgr): In case a record changed on
10648         refresh, adjust key_copy.
10650         [BZ #4074]
10651         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10652         refresh, adjust key_copy.
10654         [BZ #4070]
10655         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10656         special cases.
10657         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10659 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10661         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10662         optimization.
10664         * stdio-common/vfscanf.c: Small cleanups throughout.
10666 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10668         [BZ #3325]
10669         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10670         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10671         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10672         Patch by Jared Casper <jaredcasper@gmail.com>.
10674         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10675         * sysdeps/unix/opendir.c: Likewise.
10676         * sysdeps/unix/readdir.c: Likewise.
10678         [BZ #2211]
10679         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10680         point numbers.
10681         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10683         * stdio-common/vfscanf.c: Fix problems in width accounting.
10684         * stdio-common/tst-sscanf.c (double_tests): New tests.
10685         (main): Hook them up.
10687         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10688         More simplifications of floating-point reader.
10690         * stdio-common/Makefile (tests): Add tst-swscanf.
10691         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10692         testing.
10693         * stdio-common/tst-swscanf.c: New file.
10695 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10697         [BZ #2633]
10698         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10699         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10700         Remove using for __jmp_buf_tag.
10701         * locale/locale.h (struct lconv): Also define in std namespace.
10702         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10704         [BZ #3842]
10705         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10706         using __libc_enable_secure.
10708         [BZ #3818]
10709         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10711         [BZ #3745]
10712         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10713         of names for ellipsises.
10715         [BZ #3348]
10716         * malloc/memusage.sh: Cleanups.
10717         * debug/xtrace.sh: Quoting and trap changes.
10719 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10721         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10723         * locale/iso-3166.def: Update entry for Serbia.
10724         * locale/iso-4217.def: Define RSD, remove CSD.
10726         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10727         and 64-bit operations.
10729         [BZ #4040]
10730         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10731         16-bit operations.
10733         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10734         of writev.
10736 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10738         [BZ #3991]
10739         * assert/assert.h (assert): Simplify.
10740         (assert_perror): Likewise.
10741         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10743         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10744         reqdata.
10746         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10747         change: don't pass NULL in place of an integer.
10749 2007-02-02  Bruno Haible  <bruno@clisp.org>
10751         [BZ #3954]
10752         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10753         Add mapping for U+327E.
10754         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10755         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10756         mapping of 0xD9 0xE8.
10757         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10758         mapping of U+327E.
10759         Reported by Jungshik Shin <jungshik@google.com>.
10761         [BZ #3955]
10762         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10763         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10764         Reported by Jungshik Shin <jungshik@google.com>.
10766 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10768         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10769         byte variants.
10771         [BZ #4040]
10772         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10773         byte variants.  Patch mostly be tom@tommay.net.
10775 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10777         [BZ #3996]
10778         * posix/glob.c (attribute_hidden): Define if not defined.
10779         (glob): Unescape dirname, filename or username when needed and not
10780         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10781         is NULL.  Handle unescaped [ in pattern without closing ].
10782         Don't pass GLOB_CHECK down to recursive glob for directories.
10783         (__glob_pattern_type): New function.
10784         (__glob_pattern_p): Implement using __glob_pattern_type.
10785         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10786         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10787         Remove unreachable code.
10788         * posix/globtest.sh: Add a couple of new tests.
10790 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
10792         * po/ru.po: Update from translation team.
10794 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
10796         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10797         to the list of i486+ CPUs.
10798         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10800 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
10802         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10803         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10804         references.
10806 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
10808         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10810         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10811         * resolv/res_mkquery.c: Define __res_nopt.
10812         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10813         try adding EDNS0 record.
10814         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10815         EDNS0 record was send make sure we don't try it again.
10816         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10817         * include/resolv.h: Declare __res_nopt.
10819 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
10821         [BZ #3944]
10822         * time/strptime_l.c (__strptime_internal): Set have_mon for
10823         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
10824         have been computed from tm_yday and tm_year.  Don't crash
10825         in day_of_the_week or day_of_the_year if not have_mon
10826         and tm_mon contains bogus value.
10827         * time/Makefile (tests): Add tst-strptime3.
10828         * time/tst-strptime3.c: New test.
10830 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10832         [BZ #3957]
10833         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10834         bit for RE_HAT_LISTS_NOT_NEWLINE.
10835         (build_charclass_op): Remove bogus comment.
10836         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10837         * posix/bug-regex27.c: New test.
10838         * posix/bug-regex28.c: New test.
10840 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
10842         * po/sv.po: Update from translation team.
10844 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
10846         * nscd/nscd_helper.c (open_socket): Minor size optimization.
10848 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10850         * include/locale.h (__uselocale): Add libc_hidden_proto.
10851         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10853         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10854         gettimeofday.
10856 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
10858         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10859         returning.
10860         (PTR_DEMANGLE): Real definition now that it's not the same as
10861         PRT_MANGLE anymore.
10862         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10864         * string/strerror_l.c: New file.
10865         * string/Makefile (routines): Add strerror_l.
10866         * string/string.h: Declare strerror_l.
10867         * string/Versions: Export strerror_l for GLIBC_2.6.
10869 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
10871         * nscd/nscd_helper.c (open_socket): Now takes request type and key
10872         as parameter.  Construct request record.  Try sending request
10873         before the first poll use, it usually succeeds.  Adjust all
10874         callers.
10875         * nscd/nscd-client.h: Define MAXKEYLEN.
10876         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10878 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
10880         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10881         from return value.
10882         * nscd/nscd_helper.c: Include string.h.
10883         (__nscd_cache_search): Remove const qualifier from return value.
10884         On strict alignment architectures check hash entry and data head
10885         alignment.
10886         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10887         mmapped data during GC cycle contains garbage.  If
10888         __nscd_drop_map_ref fails, decrement mapped->counter when returning
10889         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10890         dropped to 0.
10891         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10892         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10893         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10894         * nscd/nscd_getai.c (__nscd_getai): Likewise.
10895         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10897 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
10899         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10901 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
10903         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10904         names not numbers in cfi_*.
10906 2007-01-26  Andreas Jaeger  <aj@suse.de>
10908         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10909         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10910         Correct values of PER_HPUX and PER_OSF4.
10912 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
10914         * elf/dl-minimal.c: Undefine _itoa first.
10915         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10916         * malloc/mtrace.c: Revert last change.
10917         * posix/wordexp.c: Likewise.
10919 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10921         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10922         and __geode__ to the list of i486+ CPUs.
10923         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10925 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
10927         * stdio-common/_itoa.c: Include <limits.h>.
10928         * stdio-common/_itowa.c: Likewise.
10930 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
10932         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10933         platforms.
10934         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10935         64-bit platforms.
10936         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10937         possible.
10938         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10939         if possible.
10941         [BZ #3902]
10942         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10943         * stdio-common/Makefile (tests): Add bug17.
10944         * stdio-common/bug17.c: New file.
10946 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
10948         * iconvdata/brf.c: New file.
10949         * iconvdata/testdata/BRF: New file.
10950         * iconvdata/testdata/BRF..UTF8: New file.
10951         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10952         * iconvdata/Makefile: Add rules to build BRF.
10953         * iconvdata/TESTS: Add BRF entry.
10954         * iconvdata/gconv-modules: Likewise.
10955         * iconvdata/tst-tables.sh: Likewise.
10957 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
10959         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10960         type `long long int', not `long int'.
10961         (wcstoq): Likewise.
10963 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
10965         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10966         of values on 64-bit platforms which are too large.
10968 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
10969             Joe Kerian  <jkerian@us.us.ibm.com>
10971         [BZ #2749]
10972         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10973         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
10974         (__copysignl): Use signbit() for comparison.
10975         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10976         SET_LDOUBLE_WORDS64.
10978         [BZ #2423, #2749]
10979         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10980         (__ceill): Remove calls to fegetround(), fesetround().
10981         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10982         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10983         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10985 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
10987         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10989         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10991 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
10993         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10994         demangle pointer.
10995         * csu/libc-start.c: Likewise.
10997 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
10999         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11000         really work anyway.
11002 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11004         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11005         users.
11006         (handle_request): Remove unnecessary tests.
11008         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11010 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11012         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11013         workbits in semi-raw fraction.
11015         * math/test-misc.c: Add new tests.
11017 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11019         * math/basic-test.c: Include test-skeleton.c.
11020         (TEST_TRUNC): Define.
11021         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11022         (main): Rename to ...
11023         (do_test): ...this.  Run new tests.
11024         (TEST_FUNCTION): Define.
11026 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11027             Joe Kerian  <jkerian@us.us.ibm.com>
11029         [BZ #2749]
11030         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11031         handling for high words.
11032         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11033         and overflow for infinity.
11035 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11037         * nscd/connections.c (handle_request): Add a __builtin_expect.
11039         * nscd/connections.c (serv2db): Change type into structure which
11040         also says whether this is a request for data.  Renamed to
11041         servinfo.  All users changed.
11042         (handle_request): Much simpler test whether we should search the cache.
11044         * nscd/connections.c (handle_request): Fix thinko in selinux test
11045         invocation.
11047         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11048         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11049         it before getting dl_load_lock and then relock.
11050         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11051         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11052         case we unlocked the scope.
11053         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11054         _dl_lookup_symbol_x in case we locked the scope.
11055         (_dl_profile_fixup): Likewise.
11056         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11057         set DL_LOOKUP_SCOPE_LOCK.
11059 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11061         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11062         CFLAGS-getsrvbynpt_r.c.
11063         * nscd/getsrvbynm_r.c: New file.
11064         * nscd/getsrvbypt_r.c: New file.
11065         * nscd/nscd_getserv_r.c: New file.
11066         * nscd/servicescache.c: New file.
11067         * nscd/Makefile (routines): Add nscd_getserv_r.
11068         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11069         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11070         CFLAGS-getsrvbypt_r.c.
11071         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11072         table.  Add entries for services database.
11073         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11074         services database.
11075         (dbs): Add .reset_res and servdb initialization.
11076         (serv2db): Add entries for services database.
11077         (verify_persistent_db): Accept dbnr == servdb.
11078         (invalidate_cache): Rewrite database name recognition to use a table.
11079         Call res_init() if .reset_res is set for database.
11080         (handle_request): Add code to handle services database.
11081         * nscd/gai.c: Don't define __getservbyname_r.
11082         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11083         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11084         (serv_response_header): Define.
11085         (struct datahead): Add serv_response_header member.
11086         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11087         using table.
11088         * nscd/nscd.conf: Add entries for services database.
11089         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11090         Declare serv_iov_disabled.
11091         Declare addservbyname, readdservbyname, addservbyport, and
11092         readdservbyport.
11093         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11094         (find_db): Fix error message.
11095         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11096         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11097         * nscd/selinux.c (perms): Add entries for services database.
11098         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11099         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11101         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11102         * nscd/hstcache.c: Likewise.
11103         * nscd/pwdcache.c: Likewise.
11105         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11106         computation of keylen.
11108         * include/string.h: Only redefine strndupa if this is really for
11109         libc code.
11111 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11113         * nscd/nscd_gethst_r.c: Minor cleanups.
11115         * nscd/connections.c (handle_request): Check selinux permissions
11116         for all non-admin commands.
11118         * sysdeps/i386/i486/bits/atomic.h: Define
11119         atomic_compare_and_exchange_val_acq,
11120         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11121         using __sync_* built-ins for gcc >= 4.1.
11122         * sysdeps/x86_64/bits/atomic.h: Likewise.
11124         [BZ #3840]
11125         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11126         and .oS.d files.
11128 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11130         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11131         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11132         (do_test): Check errno and exit(0) if ENOSYS.
11134 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11136         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11137         thousands separators.
11138         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11139         * stdlib/tst-strtod4.c: New test.
11141         [BZ #3855]
11142         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11143         hexadecimal digit should accept just the initial 0.
11144         * stdlib/tst-strtod2.c (tests): New variable.
11145         (do_test): Run several tests rather than just one.
11147 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11149         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11150         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11152 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11154         * io/fts.c: Make sure fts_cur is always valid after return from
11155         fts_read.
11156         Patch by Miloslav Trmac <mitr@redhat.com>.
11158 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11160         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11161         (R_MIPS_NUM): Bump by 1.
11163 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11165         * posix/execvp.c: Include alloca.h.
11166         (allocate_scripts_argv): Renamed to...
11167         (scripts_argv): ... this.  Don't allocate buffer here nor count
11168         arguments.
11169         (execvp): Use alloca if possible.
11170         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11171         * posix/tst-vfork3.c: New test.
11173 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11175         * string/Makefile (tst-strxfrm2-ENV): Define.
11176         * stdlib/Makefile (tst-strtod3-ENV): Define.
11178 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11180         * posix/getconf.c: Update copyright year.
11181         * nss/getent.c: Likewise.
11182         * iconv/iconvconfig.c: Likewise.
11183         * iconv/iconv_prog.c: Likewise.
11184         * elf/ldconfig.c: Likewise.
11185         * catgets/gencat.c: Likewise.
11186         * csu/version.c: Likewise.
11187         * elf/ldd.bash.in: Likewise.
11188         * elf/sprof.c (print_version): Likewise.
11189         * locale/programs/locale.c: Likewise.
11190         * locale/programs/localedef.c: Likewise.
11191         * nscd/nscd.c (print_version): Likewise.
11192         * debug/xtrace.sh: Likewise.
11193         * malloc/memusage.sh: Likewise.
11194         * malloc/mtrace.pl: Likewise.
11195         * debug/catchsegv.sh: Likewise.
11197 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11199         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11200         attempts.
11202 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11204         * posix/wordexp.c: Remove some unnecessary tests.
11206 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11208         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11209         blacklist the group till after we look it up.
11211 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11213         * include/atomic.h (atomic_forced_read): New macro.
11215 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11217         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11219 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11221         * nss/getXXbyYY_r.c: Include atomic.h.
11222         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11223         add atomic_write_barrier () in between.
11225         * stdlib/Makefile (tests): Add tst-makecontext.
11226         * stdlib/tst-makecontext.c: New test.
11228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11229         (__makecontext): Don't realign uc_mcontext.uc_regs.
11231 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11233         * elf/dl-support.c: Include dl-procinfo.h.
11234         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11235         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11236         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11237         Define.
11238         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11239         hardcoded constants.
11240         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11241         PPC_PLATFORM_* macros for array designators.
11243 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11245         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11246         names to the beginning.
11247         (_dl_powerpc_platforms): Add "power6x".
11248         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11249         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11250         (_DL_PLATFORMS_COUNT): Increase.
11251         (_dl_string_platform): Handle power6x case.
11252         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11253         PPC_FEATURE_POWER6_EXT): Define.
11254         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11256 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11258         [BZ #3747]
11259         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11260         [-2^31 .. 2^31) range.
11261         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11262         targets.
11263         * stdlib/tst-rand48-2.c: New test.
11264         * stdlib/Makefile (tests): Add tst-rand48-2.
11266 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11268         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11270 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11272         * misc/tst-pselect.c (do_test): Make sure the helper process is
11273         terminating when the test is aborted.
11275 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11277         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11278         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11279         Handle relatime mount option.
11281         [BZ #2337]
11282         * libio/Makefile (tests): Add tst-setvbuf1.
11283         * libio/tst-setvbuf1.c: New file.
11285 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11287         [BZ #2337]
11288         * libio/genops.c (__uflow): Fix a typo.
11289         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11290         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11291         the narrow buffer size.
11293 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11295         [BZ #2337]
11296         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11297         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11298         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11299         in _flags.
11300         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11301         _IO_wstr_finish): Likewise.
11302         * libio/wmemstream.c (open_wmemstream): Likewise.
11303         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11304         even for wide streams.
11306 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11309         kernel-features.h.
11311 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11313         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11314         separators also if no non-zero digits found.
11315         * stdlib/Makefile (tests): Add tst-strtod3.
11317 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11319         [BZ #3632]
11320         * include/features.h: Fix comment about default value for
11321         _POSIX_C_SOURCE.
11323         [BZ #3664]
11324         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11325         empty parsed strings.
11326         * stdlib/Makefile (tests): Add tst-strtod2.
11327         * stdlib/tst-strtod2.c: New file.
11329         [BZ #3673]
11330         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11331         computation.
11332         * stdlib/Makefile (tests): Add tst-atof2.
11333         * stdlib/tst-atof2.c: New file.
11335         [BZ #3674]
11336         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11337         correctly if removing trailing zero of hex-float.
11338         * stdlib/Makefile (tests): Add tst-atof1.
11339         * stdlib/tst-atof1.c: New file.
11341 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11343         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11344         Start searching for next comma at p rather than rest.
11345         * misc/Makefile (tests): Add tst-mntent2.
11346         * misc/tst-mntent2.c: New test.
11348         * misc/getusershell.c (initshells): Check for integer overflows.
11349         Make strings buffer one bigger as fgets always succeeds when second
11350         argument is 1.  Don't use calloc for shells array.  Disallow
11351         / as shell.
11353 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11355         * malloc/memusage.c: Handle realloc with new size of zero and
11356         non-NULL pointer correctly.
11357         (me): Really write first record twice.
11358         (struct entry): Make format bi-arch safe.
11359         (dest): Write out more realloc statistics.
11360         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11362 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11364         * nis/nis_subr.c (nis_getnames): Revert last change.
11366 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11368         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11369         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11370         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11371         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11372         ENOTTY.
11373         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11374         * io/tst-ttyname_r.c: New test.
11376 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11378         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11380 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11382         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11383         jump table entries.
11385 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11387         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11388         `clone' function to ensure proper unwinding stop of gdb.
11389         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11391 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11393         * nscd/nscd.init: Remove obsolete and commented-out -S option
11394         handling.
11396 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11398         [BZ #3514]
11399         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11401         [BZ #3515]
11402         * manual/string.texi (strtok): Remove duplicate paragraph.
11404 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11406         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11407         libgcc not supporting `rflags' unwinding (register # >= 17).
11409 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11411         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11412         succeeded.
11414 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11415             Jakub Jelinek  <jakub@redhat.com>
11416             Jan Kratochvil  <jan.kratochvil@redhat.com>
11418         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11419         unwind information.
11420         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11421         'restore_rt' even in the 'signal' directory.
11422         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11424 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11426         [BZ #3559]
11427         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11428         malloc crashed.  Don't allocate memory unnecessarily in each
11429         loop.
11431 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11433         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11435 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11437         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11439 2006-11-18  Bruno Haible  <bruno@clisp.org>
11441         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11442         __sysconf only after having tried to call getgroups32.
11444 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11446         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11447         addresses for IPv4 queries if they can be mapped.
11449 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11451         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11452         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11453         (signmask): Add .size directive.
11454         (othermask): Add .type directive.
11456 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11458         * po/nl.po: Update from translation team.
11460         * timezone/zdump.c: Redo fix for BZ #3137.
11462 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11464         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11465         to first_unused after parsing :include: file.
11467 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11469         * timezone/africa: Update from tzdata2006o.
11470         * timezone/antarctica: Likewise.
11471         * timezone/asia: Likewise.
11472         * timezone/australasia: Likewise.
11473         * timezone/backward: Likewise.
11474         * timezone/europe: Likewise.
11475         * timezone/iso3166.tab: Likewise.
11476         * timezone/northamerica: Likewise.
11477         * timezone/southamerica: Likewise.
11478         * timezone/zone.tab: Likewise.
11480         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11481         on machines with 64-bit time_t.
11483         * timezone/checktab.awk: Update from tzcode2006o.
11484         * timezone/ialloc.c: Likewise.
11485         * timezone/private.h: Likewise.
11486         * timezone/scheck.c: Likewise.
11487         * timezone/tzfile.h: Likewise.
11488         * timezone/tzselect.ksh: Likewise.
11489         * timezone/zdump.c: Likewise.
11490         * timezone/zic.c: Likewise.
11492         [BZ #3483]
11493         * elf/ldconfig.c (main): Call setlocale and textdomain.
11494         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11496         [BZ #3480]
11497         * manual/argp.texi: Fix typos.
11498         * manual/charset.texi: Likewise.
11499         * manual/errno.texi: Likewise.
11500         * manual/filesys.texi: Likewise.
11501         * manual/lang.texi: Likewise.
11502         * manual/maint.texi: Likewise.
11503         * manual/memory.texi: Likewise.
11504         * manual/message.texi: Likewise.
11505         * manual/resource.texi: Likewise.
11506         * manual/search.texi: Likewise.
11507         * manual/signal.texi: Likewise.
11508         * manual/startup.texi: Likewise.
11509         * manual/stdio.texi: Likewise.
11510         * manual/sysinfo.texi: Likewise.
11511         * manual/syslog.texi: Likewise.
11512         * manual/time.texi: Likewise.
11513         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11515         [BZ #3465]
11516         * sunrpc/clnt_raw.c: Minimal message improvements.
11517         * sunrpc/pm_getmaps.c: Likewise.
11518         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11519         * nis/nis_print_group_entry.c: Likewise.
11520         * locale/programs/repertoire.c: Likewise.
11521         * locale/programs/charmap.c: Likewise.
11522         * malloc/memusage.sh: Likewise.
11523         * elf/dl-deps.c: Likewise.
11524         * locale/programs/ld-collate.c: Likewise.
11525         * libio/vswprintf.c: Likewise.
11526         * malloc/memusagestat.c: Likewise.
11527         * sunrpc/auth_unix.c: Likewise.
11528         * sunrpc/rpc_main.c: Likewise.
11529         * nscd/cache.c: Likewise.
11530         * locale/programs/repertoire.c: Unify output messages.
11531         * locale/programs/charmap.c: Likewise.
11532         * locale/programs/ld-ctype.c: Likewise.
11533         * locale/programs/ld-monetary.c: Likewise.
11534         * locale/programs/ld-numeric.c: Likewise.
11535         * locale/programs/ld-time.c: Likewise.
11536         * elf/ldconfig.c: Likewise.
11537         * nscd/selinux.c: Likewise.
11538         * elf/cache.c: Likewise.
11539         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11541         [BZ #3451]
11542         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11543         change atomic.
11544         (ceil): Likewise.
11546 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11548         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11549         if N is one bigger than return value.
11550         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11551         and l1 last arguments, if buf is defined, verify the return value
11552         equals to strlen (buf) and verify no byte beyond passed length
11553         is modified.
11555 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11557         * po/sv.po: Update from translation team.
11559 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11561         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11562         noinline attribute.
11564 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11566         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11567         noinline attribute.
11569         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11570         Use __new_sys_siglist instead of _sys_siglist_internal as
11571         second macro argument.
11572         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11573         strong_alias.
11575 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11577         [BZ #3493]
11578         * posix/unistd.h (sysconf): Remove const attribute.
11580         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11581         temporary or deprecated addresses.
11582         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11584         * string/Makefile (tests): Add tst-strxfrm2.
11585         * string/tst-strxfrm2.c: New file.
11587 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11589         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11590         rather than r->r_brk.
11592 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11594         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11595         optimization even if needed > n.
11597         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11598         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11599         return false, otherwise return true.
11600         (cache_rpath): Return decompose_rpath return value.
11602 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11604         * include/libc-symbols.h (declare_symbol): Rename to...
11605         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11606         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11607         .size directive.
11608         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11609         changes.
11610         * sysdeps/gnu/siglist.c: Likewise.
11612 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11614         * sysdeps/powerpc/fpu/bits/mathinline.h
11615         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11616         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11618 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11620         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11621         Update handling of cache descriptor 0x49 for new models.
11622         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11623         Likewise.
11625 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11627         * malloc/memusage.c (dest): Reset not_me back to false after
11628         printing statistics.
11630 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11632         * configure.in: Work around ld --help change and avoid -z relro
11633         test completely if the architecture doesn't care about security.
11635 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11637         * po/sv.po: Update from translation team.
11639 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11641         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11642         generate compatibility version.
11644 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11646         * configure.in: Relax -z relro requirement a bit.
11648         * po/sv.po: Update from translation team.
11650 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11652         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11653         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11654         * elf/dl-close.c (_dl_close_worker): Likewise.
11655         * elf/dl-open.c (_dl_open_worker): Likewise.
11656         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11658 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11660         * configure.in: Require assembler support for visibility, compiler
11661         support for visibility and aliases, linker support for various -z
11662         options.
11663         * Makeconfig: Remove conditional code which now is unnecessary.
11664         * config.h.in: Likewise.
11665         * config.make.in: Likewise.
11666         * dlfcn/Makefile: Likewise.
11667         * elf/Makefile: Likewise.
11668         * elf/dl-load.c: Likewise.
11669         * elf/rtld.c: Likewise.
11670         * include/libc-symbols.h: Likewise.
11671         * include/stdio.h: Likewise.
11672         * io/Makefile: Likewise.
11673         * io/fstat.c: Likewise.
11674         * io/fstat64.c: Likewise.
11675         * io/fstatat.c: Likewise.
11676         * io/fstatat64.c: Likewise.
11677         * io/lstat.c: Likewise.
11678         * io/lstat64.c: Likewise.
11679         * io/mknod.c: Likewise.
11680         * io/mknodat.c: Likewise.
11681         * io/stat.c: Likewise.
11682         * io/stat64.c: Likewise.
11683         * libio/stdio.c: Likewise.
11684         * nscd/Makefile: Likewise.
11685         * stdlib/Makefile: Likewise.
11686         * stdlib/atexit.c: Likewise.
11687         * sysdeps/generic/ldsodefs.h: Likewise.
11688         * sysdeps/i386/dl-machine.h: Likewise.
11689         * sysdeps/i386/sysdep.h: Likewise.
11690         * sysdeps/i386/i686/memcmp.S: Likewise.
11691         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11692         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11693         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11695         * Makerules: USE_TLS support is now default.
11696         * tls.make.c: Likewise.
11697         * csu/Versions: Likewise.
11698         * csu/libc-start.c: Likewise.
11699         * csu/libc-tls.c: Likewise.
11700         * csu/version.c: Likewise.
11701         * dlfcn/dlinfo.c: Likewise.
11702         * elf/dl-addr.c: Likewise.
11703         * elf/dl-cache.c: Likewise.
11704         * elf/dl-close.c: Likewise.
11705         * elf/dl-iteratephdr.c: Likewise.
11706         * elf/dl-load.c: Likewise.
11707         * elf/dl-lookup.c: Likewise.
11708         * elf/dl-object.c: Likewise.
11709         * elf/dl-open.c: Likewise.
11710         * elf/dl-reloc.c: Likewise.
11711         * elf/dl-support.c: Likewise.
11712         * elf/dl-sym.c: Likewise.
11713         * elf/dl-sysdep.c: Likewise.
11714         * elf/dl-tls.c: Likewise.
11715         * elf/ldconfig.c: Likewise.
11716         * elf/rtld.c: Likewise.
11717         * elf/tst-tls-dlinfo.c: Likewise.
11718         * elf/tst-tls1.c: Likewise.
11719         * elf/tst-tls10.h: Likewise.
11720         * elf/tst-tls14.c: Likewise.
11721         * elf/tst-tls2.c: Likewise.
11722         * elf/tst-tls3.c: Likewise.
11723         * elf/tst-tls4.c: Likewise.
11724         * elf/tst-tls5.c: Likewise.
11725         * elf/tst-tls6.c: Likewise.
11726         * elf/tst-tls7.c: Likewise.
11727         * elf/tst-tls8.c: Likewise.
11728         * elf/tst-tls9.c: Likewise.
11729         * elf/tst-tlsmod1.c: Likewise.
11730         * elf/tst-tlsmod13.c: Likewise.
11731         * elf/tst-tlsmod13a.c: Likewise.
11732         * elf/tst-tlsmod14a.c: Likewise.
11733         * elf/tst-tlsmod2.c: Likewise.
11734         * elf/tst-tlsmod3.c: Likewise.
11735         * elf/tst-tlsmod4.c: Likewise.
11736         * elf/tst-tlsmod5.c: Likewise.
11737         * elf/tst-tlsmod6.c: Likewise.
11738         * include/errno.h: Likewise.
11739         * include/link.h: Likewise.
11740         * include/tls.h: Likewise.
11741         * locale/global-locale.c: Likewise.
11742         * locale/localeinfo.h: Likewise.
11743         * malloc/arena.c: Likewise.
11744         * malloc/hooks.c: Likewise.
11745         * malloc/malloc.c: Likewise.
11746         * resolv/Versions: Likewise.
11747         * sysdeps/alpha/dl-machine.h: Likewise.
11748         * sysdeps/alpha/libc-tls.c: Likewise.
11749         * sysdeps/generic/ldsodefs.h: Likewise.
11750         * sysdeps/generic/tls.h: Likewise.
11751         * sysdeps/i386/dl-machine.h: Likewise.
11752         * sysdeps/ia64/dl-machine.h: Likewise.
11753         * sysdeps/ia64/libc-tls.c: Likewise.
11754         * sysdeps/mach/hurd/fork.c: Likewise.
11755         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11756         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11757         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11758         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11759         * sysdeps/s390/libc-tls.c: Likewise.
11760         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11761         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11762         * sysdeps/sh/dl-machine.h: Likewise.
11763         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11764         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11765         * sysdeps/x86_64/dl-machine.h: Likewise.
11767         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11768         split out locking and parameter checking.
11769         (_dl_close): Call _dl_close_worker after locking and checking.
11770         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11771         _dl_close.
11772         * elf/Makefile: Add rules to build and run tst-thrlock.
11773         * elf/tst-thrlock.c:  New file.
11775         [BZ #3426]
11776         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11777         reality.
11779         [BZ #3429]
11780         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11781         we are sure we do not need it anymore for _dl_close.  Also move
11782         the asserts inside the lock region.
11783         Patch mostly by Suzuki <suzuki@in.ibm.com>.
11785 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
11787         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11788         argument.
11789         (_dl_lookup_symbol_x): Adjust caller.
11791         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11792         _ns_global_scope.
11793         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11795         * elf/dl-libc.c: Revert l_scope name changes.
11796         * elf/dl-load.c: Likewise.
11797         * elf/dl-object.c: Likewise.
11798         * elf/rtld.c: Likewise.
11799         * elf/dl-close.c (_dl_close): Likewise.
11800         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
11801         always use __rtld_mrlock_{change,done}.  Always free old scope list
11802         here if not l_scope_mem.
11803         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11804         change.  Never free scope list here.  Just __rtld_mrlock_lock before
11805         the lookup and __rtld_mrlock_unlock it after the lookup.
11806         * elf/dl-sym.c: Likewise.
11807         * include/link.h (struct r_scoperec): Remove.
11808         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11809         with l_scope_mem and l_scoperec_lock with l_scope_lock.
11811 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
11813         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11815 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11817         * configure.in: Disable building profile libraries by default.
11819 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11821         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11822         as signed longs, check for x_base + pos overflow.
11823         * sunrpc/Makefile (tests): Add tst-xdrmem2.
11824         * sunrpc/tst-xdrmem2.c: New test.
11826 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11828         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11829         _dl_lookup_symbol_x code.
11831 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11833         * elf/dl-runtime.c: Include sysdep-cancel.h.
11834         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11835         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
11836         instead of catomic_* macros.
11837         * elf/dl-sym.c: Include sysdep-cancel.h.
11838         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11839         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11840         * elf/dl-close.c: Include sysdep-cancel.h.
11841         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11842         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11843         * elf/dl-open.c: Include sysdep-cancel.h.
11844         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11845         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11847 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11849         [BZ #3313]
11850         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11851         fastbin rather than end of fastbin array.
11853 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11855         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11856         body macro.
11857         * sysdeps/x86_64/bits/atomic.h
11858         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11859         (catomic_decrement): Use correct body macro.
11861 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11863         * include/atomic.h: Add a unique prefix to all local variables
11864         in macros.
11865         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11867 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
11869         [BZ #3369]
11870         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11871         and 7.
11873 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
11875         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11877 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
11879         [BZ #3313]
11880         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11881         determine highest fast bin to consolidate, always look into all of
11882         them.
11883         (do_check_malloc_state): Only require for empty bins for large
11884         sizes in main arena.
11886         * libio/stdio.h: Add more __wur attributes.
11888         * elf/dl-minimal.c (realloc): Optimize last patch.
11890 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
11892         [BZ #3352]
11893         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11894         and use memcpy() if it does.
11896 2006-11-12  Andreas Jaeger  <aj@suse.de>
11898         [BZ #2510]
11899         * manual/search.texi (Hash Search Function): Clarify.
11900         (Array Search Function): Clarify.
11902 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
11904         [BZ #2830]
11905         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11906         shifting.
11907         * math/atest-exp2.c (read_mpn_hex): Likewise.
11908         * math/atest-sincos.c (main): Likewise.
11910 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11912         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11913         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11914         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11915         version GLIBC_2.6.
11916         * Versions.def: Add GLIBC_2.6 for libc.
11918         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11920         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11922 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
11924         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11926         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11928         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11929         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11931 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11933         * include/atomic.c: Define catomic_* operations.
11934         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
11935         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11936         * malloc/memusage.c: Likewise.
11937         * gmon/mcount.c: Likewise.
11938         * elf/dl-close.c: Likewise.
11939         * elf/dl-open.c: Likewise.
11940         * elf/dl-profile.c: Likewise.
11941         * elf/dl-sym.c: Likewise.
11942         * elf/dl-runtime.c: Likewise.
11943         * elf/dl-fptr.c: Likewise.
11944         * resolv/res_libc.c: Likewise.
11946 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
11948         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11949         components which lack them.
11951         * nis/nis_subr.c (nis_getnames): Make sure that we always return
11952         at least one entry consisting of the parameter concatenated with
11953         the domain.
11955 2006-10-10  Roland McGrath  <roland@frob.com>
11957         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11958         * sysdeps/mach/hurd/futimes.c: Likewise.
11959         * sysdeps/mach/hurd/lutimes.c: Likewise.
11961 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
11962             Jakub Jelinek  <jakub@redhat.com>
11964         Implement reference counting of scope records.
11965         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11966         from the list in objects which remain.  Always allocate new scope
11967         record.
11968         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11969         don't resize, allocate a new one.
11970         * elf/dl-runtime.c: Update reference counters before using a scope
11971         array.
11972         * elf/dl-sym.c: Likewise.
11973         * elf/dl-libc.c: Adjust for l_scope name change.
11974         * elf/dl-load.c: Likewise.
11975         * elf/dl-object.c: Likewise.
11976         * elf/rtld.c: Likewise.
11977         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
11978         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
11979         Add l_scoperec_lock.
11980         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11981         * sysdeps/generic/rtld-lowlevel.h: New file.
11983         * include/atomic.h: Rename atomic_and to atomic_and_val and
11984         atomic_or to atomic_or_val.  Define new macros atomic_and and
11985         atomic_or which do not return values.
11986         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11987         Various cleanups.
11988         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11990         * po/sv.po: Update from translation team.
11992 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
11994         * Versions.def: Add GLIBC_2.6 to libpthread.
11996         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11997         (versioned_symbol): Likewise.
11998         (compat_symbol): Likewise.
12000         * po/tr.po: Update from translation team.
12002 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12004         * nis/Banner: Removed.  It's been integral part forever and the
12005         author info is incomplete anyway.
12006         * libio/Banner: Likewise.
12008         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12009         code, make sure the nis_freeresult call doesn't crash and that the
12010         result is reported correctly.
12012 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12014         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12015         when callback is NULL.
12017         * nis/Versions (libnss_nisplus): Add
12018         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12019         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12020         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12021         _nss_create_tablename): Rename to...
12022         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12023         ... these.  No longer static.
12024         (internal_setgrent): Adjust users.
12025         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12026         Don't use locking around _nss_grp_create_tablename call.
12027         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12029 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12031         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12033 2006-10-06  Andreas Jaeger  <aj@suse.de>
12035         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12037 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12039         * po/pl.po: Update from translation team.
12041         * nscd/nscd.c (main): Fix typo in message.
12042         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12044 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12046         [BZ #3291]
12047         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12048         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12049         (__sigprocmask): Define.
12051 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12053         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12054         used.
12056 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12058         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12059         in oldtotal and newtotal calculation.
12060         * nscd/nscd-client.h (struct mapped_database): Add datasize
12061         field.
12062         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12063         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12064         increased.
12065         (__nscd_cache_search): Add checks to make sure we never reference
12066         data beyond the current mapping.
12068 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12070         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12071         variables const to avoid compiler warnings.
12073         * io/fts.c (fts_close): Remove redundant checks.
12074         (fts_build): Likewise.
12075         (fts_palloc): Likewise.
12077         * manual/message.texi (Advanced gettext functions,
12078         Using gettextized software): Fix typos.
12080 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12082         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12083         explain why there are no leaks.
12085 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12087         * libio/wmemstream.c: Include <wchar.h>.
12088         * libio/bug-wmemstream1.c: Likewise.
12089         * libio/tst-wmemstream1.c: Likewise.
12090         * libio/tst-wmemstream2.c: Likewise.
12092         * version.h (RELEASE): Bump to 2.5.
12093         * README: Regenerated.
12095         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12097         [BZ #3273]
12098         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12099         found no group members.
12100         Patch by Petr Baudis.
12102 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12104         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12105         assert bootstrap_map.l_tls_modid is zero.
12106         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12107         if USE___THREAD.
12109 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12111         * libio/stdio.h: Move open_wmemstream prototype to ...
12112         * wcsmbs/wchar.h: ... here.
12114 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12116         [BZ #3252]
12117         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12118         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12119         __{,l}chown to handle the rest.
12120         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12121         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12122         __{,l}chown to handle the rest.
12123         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12124         i386/fchownat.c.
12125         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12126         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12128         [BZ #3253]
12129         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12130         time, rather allocate increasingly bigger arrays of pointers, if
12131         possible with alloca, if too large with malloc.
12133 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12135         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12137         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12139 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12141         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12142         home addresses.
12143         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12144         IFA_F_HOMEADDRESS flag for interfaces.
12145         * include/ifaddrs.h (struct in6addrinfo): Define
12146         in6ai_homeaddress.
12148 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12150         [BZ #3225]
12151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12152         PTR_DEMANGLE3): Define.
12153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12154         PTR_DEMANGLE3): Likewise.
12155         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12156         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12157         Likewise.
12158         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12160 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12162         * po/libc.pot: Regenerated.
12163         * po/be.po: Updated.
12164         * po/ca.po: Likewise.
12165         * po/cs.po: Likewise.
12166         * po/da.po: Likewise.
12167         * po/de.po: Likewise.
12168         * po/el.po: Likewise.
12169         * po/en_GB.po: Likewise.
12170         * po/es.po: Likewise.
12171         * po/fi.po: Likewise.
12172         * po/fr.po: Likewise.
12173         * po/gl.po: Likewise.
12174         * po/hr.po: Likewise.
12175         * po/hu.po: Likewise.
12176         * po/ja.po: Likewise.
12177         * po/ko.po: Likewise.
12178         * po/nb.po: Likewise.
12179         * po/nl.po: Likewise.
12180         * po/pl.po: Likewise.
12181         * po/pt_BR.po: Likewise.
12182         * po/ru.po: Likewise.
12183         * po/rw.po: Likewise.
12184         * po/sk.po: Likewise.
12185         * po/sv.po: Likewise.
12186         * po/tr.po: Likewise.
12187         * po/zh_CN.po: Likewise.
12188         * po/zh_TW.po: Likewise.
12190         [BZ #3137]
12191         * iconv/iconv_prog.c (main): Fix spelling in error message.
12192         * iconv/iconvconfig.c (main): Likewise.
12193         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12194         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12195         * locale/programs/localedef.c (main): Likewise.
12196         * locale/programs/repertoire.c (repertoire_read): Likewise.
12197         * timezone/zdump.c (main): Likewise.
12198         * nscd/connections.c (handle_request): Fix spelling in log message.
12199         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12201 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12203         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12204         interfaces.
12206 2006-09-20  Andreas Jaeger  <aj@suse.de>
12208         * math/libm-test.inc (lrint_test_upward): Fix typo.
12210 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12212         [BZ #2592]
12213         * math/libm-test.inc (lrint_test_tonearest): New function.
12214         (lrint_test_towardzero): New function.
12215         (lrint_test_downward): New function.
12216         (lrint_test_upward): New function.
12217         (main): Run these new tests.
12218         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12219         of values near to 0.
12220         (two52): Use double not long double.
12221         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12222         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12223         (two23): Use float not double.
12224         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12225         (two23): Use float not double.
12226         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12227         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12228         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12229         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12231 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12233         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12234         Cast sp to unsigned long to avoid compiler warning.
12235         Use __makecontext_ret function instead of a trampoline on the stack.
12236         (__makecontext_ret): New function.
12237         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12239 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12241         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12242         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12243         bits.
12245 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12247         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12248         sure no reference to the unloaded map's search list remains in the
12249         dependency's scope.
12251 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12253         * elf/Makefile: Add rules to build and run unload7 test.
12254         * elf/unload7.c: New test.
12255         * elf/unload7mod1.c: New file.
12256         * elf/unload7mod2.c: New file.
12258 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12260         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12261         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12262         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12263         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12264         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12265         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12266         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12267         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12268         PTRACE_GETEVENTMSG): Likewise.
12269         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12270         values.
12272 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12274         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12275         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12276         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12277         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12279 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12281         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12282         write '\0' to the fd.
12283         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12284         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12285         Change regs to unsigned long pointer from unsigned int, fix fscr
12286         offset.
12288 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12290         * io/Makefile (CFLAGS-fstatat.c): Set.
12291         (CFLAGS-fstatat64.c): Likewise.
12292         (CFLAGS-mknodat.c): Likewise.
12294         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12295         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12297         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12299 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12300             Steven Munroe  <sjmunroe@us.ibm.com>
12302         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12303         names to the beginning.  Rename "cell" to "cellbe".
12304         (_dl_powerpc_platforms): New.
12305         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12306         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12307         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12308         (_DL_HWCAP_PLATFORM): Define to new mask.
12309         (_dl_platform_string, _dl_string_platform): New functions.
12310         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12311         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12313 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12315         [BZ #2526]
12316         * README.libm: Fix a thinko in sqrt algorithm description.
12318         [BZ #3143]
12319         * manual/string.texi (argz_delete): Fix prototype.
12320         Patch by <alpt@freaknet.org>.
12322 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12324         [BZ #3138]
12325         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12326         * io/tst-fcntl.c (do_prepare): Likewise.
12327         * posix/tst-exec.c (do_prepare): Likewise.
12328         * posix/tst-preadwrite.c (do_prepare): Likewise.
12329         * posix/tst-spawn.c (do_prepare): Likewise.
12330         * posix/tst-truncate.c (do_prepare): Likewise.
12331         * rt/tst-aio.c (do_prepare): Likewise.
12332         * rt/tst-aio64.c (do_prepare): Likewise.
12333         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12334         size_t.
12336 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12338         [BZ #2821]
12339         * time/mktime.c (guess_time_tm): Fix overflow detection.
12340         * time/Makefile (tests): Add bug-mktime1.
12341         * time/bug-mktime1.c: New file.
12343         [BZ #3189, #3188]
12344         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12345         (mremap): Likewise.
12347 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12349         [BZ #1006]
12350         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12351         Ensure relocation doesn't clobber any bits outside of the
12352         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12353         R_SPARC_HI22 and R_SPARC_H44.
12355         [BZ #2775]
12356         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12357         (long) (MINSIZE + nb - old_size) is positive.
12359         * malloc/arena.c (grow_heap): When growing bail even if new_size
12360         is negative.
12362         [BZ #3155]
12363         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12364         stack below r1.
12366 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12368         * posix/regex_internal.c (re_string_reconstruct): Handle
12369         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12370         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12371         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12372         re_string_context_at.
12373         * posix/Makefile: Add rules to build and run bug-regex26 test.
12374         * posix/bug-regex26.c: New test.
12376         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12377         rather than col_sym_free.  Move seqp declaration earlier.
12379         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12381 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12383         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12384         decl before first goto out.
12386 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12388         * Makerules (shlib.lds): If have-hash-style, put .hash section
12389         at the end of the RO segment.
12391 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12393         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12394         style hash table format is used.
12396 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12398         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12399         randomization rather than before.
12400         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12402 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12404         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12406         * malloc/malloc.c (_int_malloc): Use full list insert and not
12407         shortcut which assumes the list is empty for large requests
12408         too.
12410         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12412 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12414         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12415         and offout arguments to the prototype.
12416         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12417         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12418         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12419         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12420         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12421         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12422         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12423         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12425 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12427         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12429         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12430         dlopen parameters.
12432 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12434         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12435         only if herrno is NETDB_INTERNAL.  Handle errors other than
12436         ERANGE outside of the loops, handle TRY_AGAIN.
12438         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12439         if other's ctype category was missing.
12440         * locale/programs/ld-collate.c (collate_read): Return if
12441         copy_locale's collate category is missing.
12443 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12445         [BZ #2684]
12446         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12447         arenas if allocation failed.
12448         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12450 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12452         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12453         waste bins[0..1].
12454         (malloc_state): Reduce bins size by 2.
12455         (_int_malloc): Fix test for large enough buffer for early termination.
12456         When no unsorted block matches perfectly and an exiting block has
12457         to be split, use full list insert and not shortcut which assumes
12458         the list is empty.
12460         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12461         failure.
12463 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12465         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12466         do anything.
12468         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12469         symbol require exact match (these are PLTs).
12470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12471         (_dl_ppc64_addr_sym_match): Likewise.
12473         [BZ #2683]
12474         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12475         If symbol has a value use it.
12476         * elf/tst-dladdr1.c: New file.
12477         * elf/Makefile: Add rules to build and run tst-addr1.
12479 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12481         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12482         keeps failing and heap growth or new heap creation isn't
12483         successful either.
12484         * malloc/tst-malloc.c (main): Add new tests.
12486 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12488         [BZ #2734]
12489         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12490         as in the x86-64 code to use bswap.
12492 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12494         [BZ #2680]
12495         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12496         __USE_UNIX98.
12497         * posix/bits/unistd.h: Likewise.
12499 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12501         [BZ #2751]
12502         * string/strchr.c: Add cast to avoid warning.
12504 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12506         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12507         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12508         limit is needed to avoid the exploding of the address space
12509         requirement for secondary heaps.
12510         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12511         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12513 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12515         [BZ #3018]
12516         * Makerules (depfiles): Handle extra-test-objs the same as
12517         extra-objs.
12518         (common-mostlyclean): Likewise.
12519         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12520         instead.
12521         * elf/Makefile (extra-objs): Likewise.
12522         * stdlib/Makefile (extra-objs): Likewise.
12524 2006-08-14  Eric Blake  <ebb9@byu.net>
12526         [BZ #3044]
12527         * misc/error.h: Assume C89 or better.
12528         * misc/error.c: Likewise.
12530 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12532         [BZ #3040]
12533         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12534         __ASSUME_ATFCTS is defined.
12536 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12538         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12539         to sort in each call.
12541         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12542         is empty simply return and use next service.
12543         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12545         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12546         tells us when not finding a charmap file is an error.
12547         * locale/programs/charmap.h: Adjust charmap_read prototype.
12548         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12549         cannot find a charmap.
12550         * locale/programs/localedef.c (main): Adjust charmap_read call.
12552 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12554         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12555         sysdeps/posix/pause.c implementation instead.
12557 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12559         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12560         to EPERM.
12562 2006-08-13  Andreas Schwab  <schwab@suse.de>
12564         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12565         Don't clobber caller's LRSAVE.
12566         (_dl_prof_resolve): Likewise.
12568 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12570         [BZ #1996]
12571         * libio/memstream.c (open_memstream): Allocate initial buffer with
12572         calloc.
12573         * libio/wmemstream.c (open_wmemstream): Likewise.
12574         * libio/strops.c: Pretty printing.
12575         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12576         (enlarge_userbuf): New function.
12577         (_IO_str_seekoff): Call it if seek position is larger than current
12578         buffer.
12579         * libio/wstrops.c: Likewise.
12580         * libio/vasprintf.c: Add comment as to why we do not have to use
12581         calloc instead of malloc to allocate initial buffer.
12582         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12583         * libio/bug-memstream1.c: New file.
12584         * libio/bug-wmemstream1.c: New file.
12586 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12588         * libio/wstrops.c: Remove dead macro definitions and comments.
12589         * libio/strops.c: Likewise.
12591         [BZ #2764]
12592         * login/utmpname.c (__utmpname): Remove unnecessary test.
12594 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12596         [BZ #2832]
12597         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12598         0s from integers.
12600 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12602         [BZ #2987]
12603         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12604         for CPU clocks.
12605         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12606         setting of CPU clocks.
12608 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12610         [BZ #2841]
12611         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12612         since C99 requires the result to promote to 'int' when uint_least8_t
12613         and uint_least16_t promote to 'int'.
12615 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12617         [BZ #3013]
12618         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12619         lenght of one output field, correct bitmask creation.
12620         * locale/programs/ld-time.c: Add alignment.
12622         [BZ #2997]
12623         * misc/error.c: Add space between program name and message if file
12624         name is missing.
12626 2006-08-03  Eric Blake  <ebb9@byu.net>
12628         [BZ #2998]
12629         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12631 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12633         * malloc/memusagestat.c: Silence warnings.
12635         * malloc/malloc.c: Dynamically size mmap treshold if the program
12636         frees mmaped blocks.
12637         Patch by Valerie Henson and Arjan van de Ven.
12639 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12641         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12642         __USE_GNU.
12644         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12645         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12646         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12647         Only provide var definitions in strtol_l (or for *ull*
12648         in strtoll_l).
12650         * stdio-common/bug16.c (tests): New array.
12651         (do_tests): Allow the first hexadecimal digit
12652         to be 1, 2, 4 or 8.  Do 3 additional tests.
12654         * sysdeps/s390/fpu/libm-test-ulps: Update.
12656         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12657         fchownat syscall if available.
12658         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12659         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12660         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12662 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12664         * nis/nis_xdr.c: Avoid some function calls.
12666 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12667             Ulrich Drepper  <drepper@redhat.com>
12669         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12670         short cut if only one name component is stripped away.
12672 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12674         * nis/nis_call.c: Minor cleanups throughout.
12675         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12676         (first_shoot): Add search_parent_first parameter.  Only if it is set
12677         search parent server first.
12678         If directory for table found through cold start cache is not the same
12679         as referenced in the cache, don't use it.
12680         (__nisfind_server): Take additional parameter.  Pass it on to
12681         first_shoot.
12682         (__prepare_niscall): Adjust __nisfind_server call.
12683         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12684         * nis/nis_table.c: Adjust __nisfind_server call.
12685         * nis/nis_lookup.c: Likewise.
12686         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12688 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12690         [BZ #2182]
12691         * math/s_cacosh.c: Return values from positive branch.
12692         * math/s_cacoshf.c: Likewise.
12693         * math/s_cacoshl.c: Likewise.
12695         [BZ #2883]
12696         * sysvipc/sys/msg.h: Change return value to ssize_t.
12697         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12698         * sysvipc/msgrcv.c: Likewise.
12699         * include/sys/msg.h: Likewise.
12701         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12702         test introduced in patch for bz #661.
12703         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12704         element for NEWGROUPS.
12706         [BZ #2908]
12707         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12708         'f', use '1' as leading digit not '\1'.
12709         * stdio-common/Makefile (tests): Add bug16.
12710         * stdio-common/bug16.c: New file.
12712         [BZ #2914]
12713         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12714         and don't try to open it.  The patch introducing the macro
12715         contained a bug and used the same file name as the new file
12716         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12717         this out completely.
12719         [BZ #2926]
12720         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12721         Patch by Jerry James <Jerry.James@usu.edu>.
12723         * rt/Makefile (tests): Add tst-clock2.
12724         * rt/tst-clock2.c: New file.
12726         [BZ #2978]
12727         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12728         function and its parameters and pass it to new thread.
12729         (__gai_notify): Add support for alternative waiting for completion.
12730         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12731         waiting for completion.
12732         * resolv/getaddrinfo_a.c: Likewise.
12733         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12734         waiting for completion is used.
12735         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12736         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12737         * resolv/gai_error.c: Likewise.
12738         * resolv/gai_sigqueue.c: Likewise.
12740 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12742         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12743         errno to EBADF and return MACH_PORT_NULL.
12745 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12747         [BZ #2980]
12748         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12750 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12752         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12753         walk them instead of the symbol table.
12755 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12757         [BZ #2098]
12758         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12759         status of NSS calls, not the number of returned entries.
12761         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12762         request_key, keyctl.
12764 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12766         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12768 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12770         * elf/tst-auditmod1.c: Fix typo in #error.
12772 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12774         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12776         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12778 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12780         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12781         that the directory is empty even on non-POSIX filesystems.
12783 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12785         * elf/dl-open.c (dl_open_worker): Add branch prediction.
12787         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12788         the backend NSS module.  If backend setgrent call failed, don't have
12789         internal_setgrent fail.  Just remember this until it is needed.
12790         * nis/nss_compat/compat-pwd.c: Likewise.
12791         * nis/nss_compat/compat-spwd.c: Likewise.
12793 2006-07-30  Roland McGrath  <roland@redhat.com>
12795         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12796         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12797         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12798         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12800         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12801         (nanosleep_not_cancel): New macro.
12802         (sigsuspend_not_cancel): new macro.
12803         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12804         (do_sigsuspend): Define as inline.
12805         (__sigsuspend): Always use do_sigsuspend.
12806         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12807         * include/signal.h: Declare __sigsuspend_nocancel.
12808         * sysdeps/posix/pause.c
12809         [! NO_CANCELLATION] (__pause_nocancel): New function.
12811         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12812         * include/time.h (__nanosleep_nocancel): Likewise.
12814 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
12816         * locale/programs/localedef.c (add_to_readlist): Rename local
12817         variables to avoid confusion.
12819         * locale/programs/charmap.c (charmap_read): Emit error message if
12820         charmap couldn't be found or read.
12822 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
12824         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12825         __ASSUME_FUTEX_LOCK_PI.
12826         * include/time.h: Declare __nanosleep_nocancel.
12827         * include/unistd.h: Declare __pause_nocancel.
12829         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12830         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
12831         get the __stack_chk_fail_local definition when it's needed.
12833 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
12835         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12836         * dlfcn/bug-atexit3.c: New file.
12837         * dlfcn/bug-atexit3-lib.cc: New file.
12839         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12840         used when the namespace is not the base namespace.
12842 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
12844         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12845         (__new_exitfn): Bump it in every successful call.
12846         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12847         more exit handlers, call them right away.
12848         * stdlib/exit.h: Declare __new_exitfn_called.
12850 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
12852         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12853         calling registered handler.
12855         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12856         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12857         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12858         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12859         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12860         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12861         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12862         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12864 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
12866         * elf/dl-lookup.c (dl_new_hash): New functions.
12867         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12868         value here.  Compute new-style hash value.  Pass new hash value
12869         and reference to variable with the old value to do_lookup_x.
12870         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12871         old-style hash table.
12872         (_dl_debug_bindings): Pass new hash value and reference to variable
12873         with the old value to do_lookup_x.
12874         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12875         new-style hash value and change old-style hash value parameter to
12876         be a reference.  Reoganize functions to determine whether
12877         new-style hash table is available.  Only fall back on old-style
12878         table.  If old-style hash value is needed, compute it here.
12879         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12880         entry.
12881         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12882         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
12883         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12884         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12885         * Makeconfig: If linker supports --hash-style option add it to all
12886         linker command lines to build DSOs.
12887         * config.make.in: Define have-hash-style.
12888         * configure.in: Test whether linker supports --hash-style option.
12890         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12891         * sysdeps/generic/ldsodefs.h: Adjust prototype.
12893 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
12895         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12896         auditing.
12898         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12899         RPATH of main map twice.
12901 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
12903         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12904         look further, return original strings.
12905         (_nl_find_msg): Do not return found translation if the conversion
12906         failed.  Either signal the string is unusable or that something went
12907         wrong and the original should be used.
12909 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
12911         * string/_strerror.c (__strerror_r): Add __builtin_expect.
12913 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
12915         [BZ #2766]
12916         * misc/insremque.c (insque): Handle prev == NULL.
12917         * misc/Makefile (tests): Add tst-insremque.
12918         * misc/tst-insremque.c: New test.
12920 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
12922         [BZ #2792]
12923         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12924         conflict with DL_DST_REQUIRED.
12926 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
12928         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12929         match what Solaris does.
12931 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
12933         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12934         local_setegid instead of seteuid and setegid.
12935         * sysdeps/generic/local-setxid.h: New file.
12936         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12938         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12940         * string/Makefile (tests): Add bug-envz1.
12941         * string/bug-envz1.c: New file.
12943 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12945         * posix/regex_internal.c (re_string_skip_chars): If no character has
12946         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
12947         to the byte which couldn't be converted.
12948         (re_string_reconstruct): Don't clear valid_raw_len before calling
12949         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12950         tip_context using re_string_context_at.
12951         * posix/Makefile: Add rules to build and run bug-regex25 test.
12952         * posix/bug-regex25.c: New test.
12954 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
12956         [BZ #2703]
12957         * string/envz.c (envz_strip): Correct erroneously reversed src
12958         and dest parameters to memmove() invocation.
12960 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
12962         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12963         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12964         to make sure the database has been already invalidated.
12965         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
12966         after the cache has been invalidated.  Use pthread_mutex_lock rather
12967         than pthread_mutex_trylock if fd != -1.
12968         * nscd/connections.c (invalidate_cache): Add fd argument, write
12969         response to fd if not calling prune_cache, pass fd to prune_cache.
12970         (handle_request): Adjust invalidate_cache caller.
12971         (nscd_run): Pass -1 as fd to prune_cache.
12973 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
12975         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12976         the correct place.
12978 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
12980         * nscd/nscd.h (struct database_dyn): Add prunelock field.
12981         * nscd/cache.c (prune_cache): Take prunelock before starting the
12982         work.  Just return in case it is already taken.
12983         * nscd/connections.c (dbs): Initialize .prunelock.
12985 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
12987         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12988         copying.  No need to allocate new array for group members.  Just
12989         move the pointers and update the size.
12991         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12992         Avoid memory leak in case realloc fails.  Simplification for
12993         better code generation.
12995         Avoid deprecation warning because of libc_hidden_proto for
12996         inet6_option_alloc.
12997         * inet/inet6_option.c (option_alloc): Renamed from
12998         inet6_option_alloc.  Made static.
12999         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13000         (inet6_option_append): Call option_alloc.
13001         * include/netinet/in.h: Remove libc_hidden_proto for
13002         inet6_option_alloc.
13004         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13005         for cleanup when cb!=NULL [Coverity CID 233].
13007 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13009         [BZ #2693]
13010         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13011         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13012         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13013         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13014         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13015         and inet6_rth_getaddr.
13016         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13017         array.
13018         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13019         Mark inet6_option_* interfaces as deprecated.
13020         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13021         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13022         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13023         inet6_rth_segments, and inet6_rth_getaddr.
13024         * inet/inet6_opt.c: New file.
13025         * inet/inet6_rth.c: New file.
13027         * inet/netinet/icmp6.h: Pretty printing.
13029         [BZ #2683]
13030         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13032 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13034         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13035         doing it all here.  When server does not know the answer do not
13036         fail immediate, try parent first.
13038         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13039         overflow test.
13041 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13043         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13044         from __do_niscall.
13045         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13046         and exported.
13047         (__follow_path): New function.  Split out from nis_list.
13048         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13049         _xdr_nis_result.
13050         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13051         _xdr_nis_result.
13052         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13053         and __follow_path.
13054         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13055         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13056         from libnsl for version GLIBC_PRIVATE.
13057         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13058         Remove entry parameter from _nss_nisplus_parse_pwent and
13059         _nss_nisplus_parse_grent.
13060         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13061         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13062         again.  Rewrite getpwent handling to not use nis_first_entry and
13063         nis_next_entry.  Roll out own niscall handling.
13064         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13066         * sunrpc/xdr_rec.c: Fix typo in comment.
13068 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13070         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13071         handling.
13073         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13074         to allocate memory for my_pollfd.  Better initialization of
13075         cb_is_running.  Use TEMP_FAILURE_RETRY.
13077         * malloc/memusage.sh (memusageso): Add quotes.
13078         (memusagestat): Likewise.
13079         * debug/xtrace.sh (pcprofileso): Likewise.
13080         (pcprofiledump): Likewise.
13081         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13082         replacement.
13083         * malloc/Makefile ($(objpfx)memusage): Likewise.
13085         * nis/nis_callback.c (__nis_create_callback): Calls to
13086         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13087         asprintf call fails.
13089         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13090         no uninitialized memory is passed to sendto.
13092 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13094         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13095         of snprintf+strdup.  Handle OOM.
13096         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13097         cb->serv together.  Remove now obsolete free calls.
13098         (__nis_destroy_callback): Remove now obsolete free call.
13100 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13102         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13103         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13104         and ULA respectively). Set precedence for IPv4 address to 10 as
13105         defined in RFC3484 for preferring IPv6.
13106         * posix/gai.conf: Update to match the new default tables.
13108 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13110         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13111         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13112         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13113         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13115         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13116         Removed.
13117         (init_nss_interface): Remove initialization of these variables.
13119 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13121         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13122         nis_free_directory forward to avoid duplication.
13124 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13126         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13127         rec_dirsearch returning NULL.
13128         (first_shoot): Handle __nis_finddirectory returning NULL.
13129         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13131         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13132         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13134 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13136         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13137         pid changed.
13139 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13141         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13143         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13144         * nscd/nscd_getgr_r.c: Likewise.
13146         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13148         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13149         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13151         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13153         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13155         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13157         * include/rpc/auth.h: Mark xdr_des_block_internal and
13158         xdr_opaque_auth_internal as hidden.
13160         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13161         hidden.
13163         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13165         * misc/getusershell.c (okshells): Don't use static initializers,
13166         do it dynamically.
13168         * stdlib/fmtmsg.c (keywords): Change type of len element to
13169         uint32_t to not waste space on 64bit machines.
13171         * locale/setlocale.c: Change _nl_category_names into a string.
13172         Add new _nl_category_name_idxs.  Change all users.
13173         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13174         Declare _nl_category_name_idxs.
13175         * locale/findlocale.c: Adjust for _nl_category_names change.
13176         * locale/loadlocale.c: Likewise.
13177         * locale/newlocale.c: Likewise.
13178         * intl/dcigettext.c: Likewise.
13180         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13181         (add_alias2): ...here.  New function.
13182         (__gconv_read_conf): Simplify builtin alias handling.
13183         (builtin_aliases): Convert to string to avoid relocations.
13184         * iconv/gconv_builtin.h: Add comment about correct formatting.
13186 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13188         * resolv/res_debug.c (loc_ntoa): Make error const.
13190 2006-05-14  Andreas Schwab  <schwab@suse.de>
13192         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13194 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13196         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13197         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13198         sizeof (cpu_set_t).
13200 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13202         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13204         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13206         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13207         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13209         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13210         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13212         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13213         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13214         xdr_cback_data.
13216         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13217         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13218         xdr_ypupdate_args.
13220         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13221         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13223         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13224         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13226         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13227         * include/rpcsvc/nis_callback.h: New file.
13229         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13230         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13232         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13233         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13235         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13236         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13238         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13239         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13241         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13242         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13243         xdr_ypdelete_args.
13245         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13246         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13248         * nis/nis_error.c: Remove table of strings.  Use position
13249         independent mechanism.
13250         * nis/nis_error.h: New file.
13252 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13254         * locale/programs/ld-time.c (time_finish): If wide era name or
13255         format aren't provided, set both wname and wformat to L"".
13257 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13259         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13260         results if the call was succesful.
13262         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13264         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13265         as hidden.
13267 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13269         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13271 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13273         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13274         caller makes sure this is not the case.
13275         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13277 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13279         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13280         calls.
13282         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13283         [Coverity CID 229, 230]
13285         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13286         DGETTEXT calls.
13287         (hol_help): Likewise.  [Coverity CID 226, 227]
13289         * string/argz-replace.c (__argz_replace): Unconditionally call
13290         free on SRC.  [Coverity CID 225]
13292         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13293         the return value of __nis_default_owner and __nis_default_group,
13294         it has been especially allocated.  [Coverity CID 224]
13296         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13297         searchgroup and searchowner.  Significantly simplified.
13298         (__nis_default_owner): Remove duplication.  Do not locally copy the
13299         string before duplicating it.
13300         (__nis_default_group): Likewise.
13302         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13303         we must clear the variable before calling __nisfind_server.
13305         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13306         nis_getnames.  [Coverity CID 223]
13308         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13309         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13311         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13312         allocate memory for the input to add_bytes.  [Coverity CID 221]
13314         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13315         was allocated here.  [Coverity CID 219, 220]
13317         * posix/getconf.c (print_all): Free confstr data after printing.
13318         [Coverity CID 218]
13320         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13321         list allocation fails.  [Coverity CID 215]
13323         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13324         [Coverity CID 213]
13326         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13327         string is NULL.  [Coverity CID 212]
13328         * argp/Makefile: Add rules to build and run bug-argp1.
13329         * argp/bug-argp1.c: New file.
13331         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13332         end of string.
13333         * stdlib/canonicalize.c (__realpath): Likewise.
13335         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13336         pointer.  [Coverity CID 206]
13338         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13339         in statically linked code.
13340         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13341         statically built code, be prepared to have no link map.
13342         [Coverity CID 205]
13344         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13345         dgettext calls. [Coverity CID 204]
13347         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13348         the one user.
13349         (uparam_names): Reduce size.  Avoid relative relocations.
13350         Moved to read-only segment.
13351         (fill_in_uparams): Update for new layout.
13353         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13354         assumed to always be != NULL. [Coverity CID 202]
13356         * argp/argp-help.c (hol_entry_help): Remove some dead code
13357         [Coverity CID 200].
13359         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13360         away a few more unconditional yperr2nss calls.
13361         (_nss_nis_getservbyname_r): Likewise.
13363 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13365         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13366         architectures.
13368         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13369         that unused memory passed to sendto is nevertheless initialized.
13371         [BZ #2499]
13372         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13373         possibly unaligned memory accesses.
13375         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13376         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13377         and __putlong respectively.  Correct buffer overflow check for
13378         NS_NOTIFY_OP.
13380         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13382         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13383         (send_dg): Rewrite error handling to be more compact and avoid
13384         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13386         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13388         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13389         instead of ns_get16.
13390         (res_queriesmatch): Likewise.  Minor optimization.
13392         [BZ #2499]
13393         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13394         __libc_res_nsend might reallocate the buffer for the answer.  In
13395         this case we have to reload the HP pointer.
13397 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13399         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13400         some branch prediction hints.
13402         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13403         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13404         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13405         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13406         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13407         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13408         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13409         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13411 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13413         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13414         by a GOT relocation to make Scrt1.o position independent.
13415         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13417         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13418         six system call parameters.
13419         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13421 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13423         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13424         malloc&bzero.
13426         * sunrpc/svc_udp.c (BZERO): Remove definition.
13427         (CALLOC): Define.
13428         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13430         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13431         (des_SPtrans): Use uint32_t type.
13432         (des_skb): Likewise.
13434         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13436 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13438         [BZ #2509]
13439         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13440         on 32-bit arches.
13442 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13444         * locale/programs/ld-address.c (address_finish): Fix one more
13445         place where the iso639 array might be accessed beyond the limits.
13447 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13449         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13450         filling it for the first time.
13452         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13453         Adjust all callers.
13454         Free res object content before returning.
13456         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13458         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13459         client->cl_auth.
13461         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13462         cleanup for initial thread, just the free call on TVP.
13464         * nscd/gai.c (__getline): Define.
13467 See ChangeLog.16 for earlier changes.