Revert "Fix F_GETOWN on some Linux archs." and "Define F_OWNER_* and f_owner_ex for...
[glibc.git] / ChangeLog
blobaa8a10ddaad30dd29a7e5b17dc8efbd35b42d373
1 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
3         * misc/mkostemps.c: New file.
4         * misc/mkostemps64.c: New file.
6 2009-10-30  Andreas Schwab  <schwab@redhat.com>
8         * locale/programs/locale-spec.c: Include <error.h> and
9         <libintl.h>.
11         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
13 2009-10-28  Roland McGrath  <roland@redhat.com>
15         * Makefile (dist-prepare): New target.
16         (tag-for-dist): Target removed.
17         (glibc-%.tar): Pattern rule removed.
18         (%.tar): New pattern rule, does simple use of git archive.
19         (dist-version): Remove variable definition.
20         (dist): Just depend on that.  Add .tar.xz dependency.
21         If dist-version variable not set on command line, depend on
22         dist-prepare, re-invoke with dist-version set via git describe.
24         * Makerules (%.xz): New pattern rule.
26 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
28         * elf/ifuncdep2.c: Include ifunc-sel.h.
29         (global): Delete.
30         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
31         * elf/ifuncmain1.c (global): Delete.
32         * elf/ifuncmain1vis.c: Likewise.
33         * elf/ifuncmain2.c: Likewise.
34         * elf/ifuncmain5.c: Likewise.
35         * elf/ifuncmod3.c: Likewise.
36         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
37         (foo_ifunc): Use ifunc_one.
38         * elf/ifuncmain7.c: Likewise.
39         * elf/ifuncmod1.c: Include ifunc-sel.h.
40         (global): Define protected var.
41         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
42         * elf/ifuncmod5.c: Likewise.
43         * sysdeps/generic/elf/ifunc-sel.h: New file.
44         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
46 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
48         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
49         (R_PPC_REL16*): Correct comments.
50         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
51         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
52          R_PPC64_REL16_HA): Define.
53         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
54         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
55         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
56         Delete unused "reloc" param.
57         (__process_machine_rela): Handle R_PPC_IRELATIVE.
58         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
59         Delete "reloc" param.
60         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
61         R_PPC_IRELATIVE.
62         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
63         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
64         relocations.
66 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
68         [BZ #10315]
69         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
70         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
71         UDP_ENCAP_L2TPINUDP.
73         [BZ #10349]
74         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
75         parameter, specifying length of prefix.
76         * stdio-common/tempname.c: Likewise.
77         * include/stdio.h: Adjust prototypes.
78         * libio/oldtmpfile.c: Adjust caller.
79         * misc/mkdtemp.c: Likewise.
80         * misc/mkostemp.c: Likewise.
81         * misc/mkostemp64.c: Likewise.
82         * misc/mkstemp.c:  Likewise.
83         * misc/mkstemp64.c: Likewise.
84         * misc/mktemp.c: Likewise.
85         * stdio-common/tempnam.c: Likewise.
86         * stdio-common/tmpfile.c: Likewise.
87         * stdio-common/tmpnam.c: Likewise.
88         * stdio-common/tmpnam_r.c: Likewise.
89         * misc/mkstemps.c: New file.
90         * misc/mkstemps64.c: New file.
91         * stdlib/stdlib.h: Add prototypes.
92         * misc/Makefile (routines): Add mkstemps and mkstemps64.
93         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
95 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
97         * locale/iso-639.def: Add sml entry.
99         [BZ #10391]
100         * resolv/res_send.c (send_dg): Initialize resplen.
102         [BZ #10446]
103         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
104         definition to the kernel's.
105         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
107 2009-08-18  Anders Johansson  <ajohansson@novell.com>
109         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
110         offsets and record sizes in assert()s and response sending.
111         * nscd/grpcache.c: Likewise.
112         * nscd/hstcache.c: Likewise.
113         * nscd/initgrcache.c: Likewise.
114         * nscd/pwdcache.c: Likewise.
116 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
118         [BZ #10540]
119         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
120         /etc/hosts does not exist set errnop and herrnop appropriately.
121         Patch by Steve Langasek <vorlon@debian.org>.
123         [BZ #10553]
124         * malloc/malloc.c (malloc_info): Fix typos in format strings.
125         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
127         [BZ #10564]
128         * login/utmp_file.c (TIMEOUT): Increase to 10.
130         [BZ #10609]
131         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
132         for file names in case the syscall is not available.
133         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
134         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
135         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
136         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
137         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
138         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
139         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
140         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
141         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
142         * sysdeps/unix/sysv/linux/openat.c: Likewise.
143         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
144         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
145         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
146         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
147         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
148         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
149         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
151         [BZ #10643]
152         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
153         creation filed, remove the request from the 'requests' list and signal
154         the caller that the request is finished.
156         [BZ #10692]
157         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
158         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
160         [BZ #10713]
161         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
162         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
164         [BZ #10780]
165         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
166         overflows the int return type.
168         [BZ #10717]
169         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
170         have to compute maxsize_total, we have to update the variables, and
171         the also_total handling must happen after the repair.
173         [BZ #10742]
174         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
175         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
177 2009-10-27  Andreas Schwab  <schwab@redhat.com>
179         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
180         errno is always set when returning unsuccessfully.
182 2009-10-29  Andreas Schwab  <schwab@redhat.com>
184         * malloc/memusage.c (update_data): Fix index wraparound handling
185         so that buffer_cnt is actually reset.
187 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
189         [BZ #10784]
190         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
191         of the directory we look at into the static buffer if there is one
192         at the start of the loop.
194         [BZ #10789]
195         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
196         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
198         [BZ #10847]
199         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
200         getutmpx symbol.
202         [BZ #10823]
203         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
204         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
206 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
208         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
210 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
212         [BZ #10817]
213         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
214         Reported by Ray Chason.
216 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
218         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
219         strend-sse4.
220         * sysdeps/x86_64/multiarch/strchr.S: New file.
221         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
222         * sysdeps/x86_64/multiarch/strrchr.S: New file.
224 2009-10-21  Andreas Schwab  <schwab@redhat.com>
226         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
228 2009-10-19  Andreas Schwab  <schwab@redhat.com>
230         * include/math.h: Add hidden protos for __exp/__expf/__expl.
231         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
232         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
233         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
234         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
235         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
236         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
237         __ieee751_expl to handle overflow.
239 2009-10-14  David S. Miller  <davem@davemloft.net>
241         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
242         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
244 2009-10-13  Andreas Schwab  <schwab@redhat.com>
246         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
247         !USE_MULTIARCH.
249 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
251         [BZ #10730]
252         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
253         Patch in part by Steve Ward <planet36@gmail.com>.
255         [BZ #10731]
256         * stdlib/rand_r.c: Fix typo.
258         * po/cs.po: Update from translation team.
260 2009-10-06  Andreas Schwab  <schwab@redhat.com>
262         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
263         returning if RTLD_NOLOAD.
265 2009-10-06  Roland McGrath  <roland@redhat.com>
267         * sysdeps/x86_64/multiarch/strstr-c.c
268         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
270         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
271         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
273         * sysdeps/x86_64/multiarch/init-arch.h
274         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
275         (HAS_CPU_FEATURE): New macro.
276         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
277         * sysdeps/x86_64/multiarch/init-arch.c
278         (__get_cpu_features): #undef it before definition.
280 2009-10-05  Andreas Schwab  <schwab@redhat.com>
282         * locale/C-time.c: Revert week-1stday back to 19971130 and set
283         first_weekday to 1 and first_workday to 2.
285 2009-09-28  Andreas Schwab  <schwab@redhat.com>
287         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
288         * stdio-common/vfprintf.c: Likewise.
290 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
292         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
293         (mkdirat): Call __directory_name_split_at instead of
294         __directory_name_split.
296 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
298         * locale/programs/locale-spec.c (locale_special): If nothing matches
299         fail with an appropriate message.
301 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
303         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
304         and XX.
306 2009-09-25  Andreas Schwab  <schwab@redhat.com>
308         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
309         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
311 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
313         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
315 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
317         * iconvdata/iso646.c (gconv_init): Correctly initialize the
318         character size elements in step data.
320 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
322         * po/hu.po: Update from translation team.
323         * po/vi.po: Likewise.
325 2009-09-19  Roland McGrath  <roland@redhat.com>
327         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
329 2009-09-15  Roland McGrath  <roland@redhat.com>
331         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
332         * nptl/sysdeps/pthread/configure: Regenerated.
333         * nptl/sysdeps/x86_64/configure: Regenerated.
334         * sysdeps/unix/sysv/linux/configure: Regenerated.
335         * sysdeps/x86_64/elf/configure: Regenerated.
337         * Makefile (autoconf-it): Set execute bit only on top-level configure.
339         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
340         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
341         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
342         * configure: Regenerated.
344 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
346         * posix/getconf.c (main): Handle -- on command line.
348 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
350         * configure.in: Support binutils 2.100 and 3.0.
352 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
354         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
355         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
356         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
357         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
359 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
361         * locale/programs/ld-collate.c (struct locale_collate_t): Add
362         unnamed_section_defined field.
363         (collate_read): Test and set unnamed_section_defined.
365         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
366         _POSIX2_LINE_MAX.
368 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
370         * configure.in: Support binutils 2.20.
372 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
374         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
375         __strstr_ia32): Add attribute_hidden.
377 2009-09-01  Andreas Schwab  <schwab@redhat.com>
379         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
380         parsing of group entry.
382 2009-09-02  Andreas Schwab  <schwab@redhat.com>
384         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
385         external buffer.  Always discard readahead in internal buffer.
386         * libio/Makefile (tests): Add bug-wsetpos.
387         * libio/bug-wsetpos.c: New file.
389 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
391         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
392         Add attribute_hidden.
393         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
394         __strcasestr_sse2): Likewise.
395         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
396         (__fma_fma): Make static.
397         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
398         (__fmaf_fma): Make static.
400 2009-08-31  Andreas Schwab  <schwab@redhat.com>
402         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
403         reformulate in-buffer optimisation check to match code in
404         _IO_new_file_seekoff.
406 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
408         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
409         to srwi in 32-bit memcpy for power6.
411 2009-09-01  Andreas Schwab  <schwab@redhat.com>
413         * include/stdio.h: Declare hidden proto for fflush.
414         * libio/iofflush.c: Add hidden weak alias for fflush.
416 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
418         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
419         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
421 2009-08-31  Andreas Schwab  <schwab@redhat.com>
423         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
425 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
427         [BZ #10560]
428         * malloc/malloc.c: Add local assert definition to avoid problems with
429         memory allocation in the real one.
431 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
433         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
434         Removed.
435         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
436         turn off SSSE3 on Atom.
438 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
440         * stdlib/tst-strtol.c (tests): More tests.
441         * stdlib/tst-strtoll.c (tests): Likewise.
443 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
445         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
447         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
449 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
451         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
452         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
454         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
456         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
458         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
460 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
462         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
464 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
466         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
467         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
469         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
471         * sysdeps/x86_64/fpu/s_signbit.S: New file.
472         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
474         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
475         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
477         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
478         leftover YMM_SIZE definition.
480 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
482         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
483         union.
484         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
485         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
486         Redefine.
487         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
489         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
490         and SET_FLOAT_WORD definitions.
492 2009-08-24  Roland McGrath  <roland@redhat.com>
494         * sysdeps/unix/syscall-template.S: New file.
495         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
496         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
497         (compile-syscall): Pass mkdep and -g options as normal.
498         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
499         (common-generated): Don't add them here.
501 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
503         * math/s_fdim.c: In case of overflows set errno.
504         * math/s_fdimf.c: Likewise.
505         * math/s_fdiml.c: Likewise.
507         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
508         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
509         are using the inline optimizations.
511         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
512         (__signbitf): Likewise.
514 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
516         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
517         terminated.
518         * posix/Makefile (tests): Add bug-regex29.
519         * posix/bug-regex29.c: New file.
521         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
522         older POSIX versions are selected.
524         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
525         as well.
526         * stdio-common/printf_fphex.c: Likewise.
527         * stdio-common/tstdiomisc.c: Add more tests.
529         * locale/locale.h: Include xlocale.h and the thread-local locale
530         declarations for XPG7, not XPG6.
532 2009-08-21  Andreas Schwab  <schwab@redhat.com>
534         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
535         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
538         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
539         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
541 2009-08-20  Roland McGrath  <roland@redhat.com>
543         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
544         Use l_addr instead of l_map_start (dli_fbase).
545         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
546         address when there is no proximate symbol.
547         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
548         Likewise.
550 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
552         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
554 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
556         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
557         Also handle SIGINT.  In that case only do the cleanup and then
558         re-raise the signal.
559         (main): Install handler for SIGINT.
561 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
563         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
564         clobber list.
566 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
568         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
569         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
570         tst-auditmod7b.c.
571         (tests): Add tst-audit6 tst-audit7.
572         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
573         tst-auditmod7a tst-auditmod7b.
574         ($(objpfx)tst-audit6): New.
575         ($(objpfx)tst-audit6.out): Likewise.
576         ($(objpfx)tst-audit7): Likewise.
577         ($(objpfx)tst-audit7.out): Likewise.
578         (tst-audit6-ENV): Likewise.
579         (tst-audit7-ENV): Likewise.
580         (CFLAGS-tst-auditmod6b.c): Likewise.
581         (CFLAGS-tst-auditmod6c.c): Likewise.
582         (CFLAGS-tst-auditmod7b.c): Likewise.
583         * elf/tst-audit6.c: New file.
584         * elf/tst-audit7.c: New file.
585         * elf/tst-auditmod6a.c: New file.
586         * elf/tst-auditmod6b.c: New file.
587         * elf/tst-auditmod6c.c: New file.
588         * elf/tst-auditmod7a.c: New file.
589         * elf/tst-auditmod7b.c: New file.
590         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
591         saving and restoring SSE/AVX registers to ...
592         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
594 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
596         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
597         only if SHARED is defined.
598         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
600 2009-08-03  Jim Meyering  <meyering@redhat.com>
602         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
604 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
606         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
607         section as the other functions for this architecture.
608         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
610 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
612         * sysdeps/x86_64/strcmp.S: Add support to compile with
613         USE_SSSE3.  In this case palignr is used.
614         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
615         available but SSSE3 is, pick __str{,n}cmp_ssse3.
616         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
617         Add strcmp-ssse3 and strncmp-ssse3.
618         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
619         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
621         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
622         warning through fake initialization.
624 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
626         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
628 2009-08-07  Andreas Schwab  <schwab@redhat.com>
630         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
631         unique symbols.
633 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
635         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
636         EBX from EAX = 1.  Handle EAX = 11.
638 2009-08-07  Andreas Schwab  <schwab@redhat.com>
640         * Makefile (TAGS): Use separate sed -e expressions to avoid \
641         inside ''.
643 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
645         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
646         hidden IFUNC functions.
647         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
649         * sysdeps/i386/i686/multiarch/strlen.S: New file.
651         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
652         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
653         strcasestr-c.
654         (CFLAGS-strcspn-c.c): Define.
655         (CFLAGS-strpbrk-c.c): Define.
656         (CFLAGS-strspn-c.c): Define.
657         (CFLAGS-strstr.c): Define.
658         (CFLAGS-strcasestr.c): Define.
659         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
660         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
661         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
662         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
663         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
664         * sysdeps/i386/i686/multiarch/strspn.S: New file.
665         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
666         * sysdeps/i386/i686/multiarch/strstr.c: New file.
667         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
668         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
669         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
670         -16L instead of 0xfffffffffffffff0L.
671         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
673 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
675         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
677 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
679         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
680         another rewrite.  Much smaller and faster.
681         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
683         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
684         ss_flags from the correct location.
686 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
688         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
689         * sysdeps/i386/i686/cacheinfo.c: New file.
690         * sysdeps/i386/i686/multiarch/Makefile: New file.
691         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
692         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
693         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
694         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
695         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
696         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
697         (__cpuid_count): New. Provide the default.
698         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
699         (__x86_64_preferred_memory_instruction): Define only if
700         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
701         (intel_check_word): Use __cpuid.
702         (handle_intel): Likewise.
703         (handle_amd): Likewise.
704         (__cache_sysconf): Likewise.
705         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
706         (__cache_sysconf): Likewise.
707         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
708         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
709         (get_common_indeces): Use __cpuid.
710         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
711         if ENABLE_SSSE3_ON_ATOM is not defined.
712         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
713         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
714         popcnt instead of popcntq.
716 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
718         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
720 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
722         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
723         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
724         which always causes a compile error.
726         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
728         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
729         comes from...
730         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
731         which always causes a compile error.
733         * debug/Makefile (tests): Add tst-longjmp_chk2.
734         * debug/tst-longjmp_chk2.c: New file.
736         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
737         Remove incorrect use of BP_SYM.
738         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
739         here now since it is more complex than just a simple check.
741         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
742         we make no more progress.
744 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
746         * math/s_fma.c: Don't define alias if __fma is a macro.
747         * math/s_fmaf.c: Likewise.
748         * sysdeps/x86_64/multiarch/s_fma.c: New file.
749         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
750         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
752         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
753         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
754         New macro HAS_FMA.
755         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
756         function.
757         * include/libc-symbols.h (libm_ifunc): Define.
758         * sysdeps/x86_64/multiarch/Versions: New file.
760         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
762 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
764         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
766 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
768         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
769         call that registers used in calling conventions need to be preserved.
770         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
771         to preserve register content if necessary.
772         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
773         (_dl_x86_64_restore_sse): New function.
774         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
775         is allowed to modify xmm/ymm registers.
777         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
778         application's perspective.
779         * stdio-common/scanf17.c: Likewise.
781 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
783         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
784         size to memsz.
785         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
786         here.
787         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
788         two steps to catch bugs.
790 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
792         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
793         determines which files are used in runtime lookups and only checks
794         those for SSE use.
795         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
796         testing.
797         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
798         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
799         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
800         take a while.
802         * elf/dl-open.c: Move _dl_scope_free to...
803         * elf/dl-scope.c: ...here.  New file.
804         * elf/Makefile (dl-routines): Add scope.
806         * resolv/resolv.h (RES_USE_DNSSEC): Define.
807         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
808         RES_USE_DNSSEC.
809         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
810         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
811         all the places we handled RES_USE_EDNS0 only before.
812         Patch by Adam Tkac <atkac@redhat.com>.
814 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
816         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
817         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
818         Update size when reallocating.
820 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
822         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
823         functions used in ld.so modify xmm/ymm registers.
824         * sysdeps/x86_64/Makefile:  Hook new test up.
825         * sysdeps/x86_64/rtld-memchr.c: New file.
826         * sysdeps/x86_64/rtld-memcmp.c: New file.
827         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
828         * sysdeps/x86_64/rtld-strchr.S: New file.
829         * sysdeps/x86_64/rtld-strlen.S: New file.
830         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
831         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
833 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
835         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
836         strncmp-c.
837         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
838         (exit): Likewise.
839         (Byte1): Likewise.
840         (Byte2): Likewise.
841         (Byte3): Likewise.
842         (Byte4): Likewise.
843         (Byte5): Likewise.
844         (Byte6): Likewise.
845         (next_8_bytes): Likewise.
846         (Byte0): Remove commented out codes.
847         (unaligned_table): Align jump table at 8 bytes.
848         Add _sse4_2 to all labels.  Always include "../strcmp.S".
849         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
850         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
851         * sysdeps/x86_64/strncmp.S: New file.
853 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
855         [BZ #10422]
856         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
857         kernels, dropped when eventfd2 support was added.
858         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
859         kernels, dropped when signalfd4 support was added.
860         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
861         added, name them.
863         [BZ #10452]
864         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
865         replies up.
867         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
869 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
871         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
872         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
874         [BZ #10448]
875         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
876         callback we must touch the status to avoid using stale value.
878         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
879         compiled in.
881 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
883         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
884         /lib/modules/* headers anymore.  We have sane headers in the standard
885         place now.
887 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
889         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
890         "etf3enh" and "highgprs" added.
891         (_dl_s390_platforms): "z10" added.
892         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
893         Increased for the new entries.
894         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
895         HWCAP_S390_HIGH_GPRS added.
897         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
898         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
899         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
900         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
901         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
903 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
905         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
906         avoid additional cpuid instructions.  Most of the information is
907         stored somewhere.
909         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
910         cache descriptors.
911         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
913         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
914         SSSE3 bit for Atoms.
915         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
916         here anymore.
918         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
919         structure before copying it to avoid warning.
920         * posix/tst-rfc3484-2.c (do_test): Likewise.
921         * posix/tst-rfc3484-3.c (do_test): Likewise.
923         [BZ #10416]
924         * include/unistd.h: Make header file suitable for C++ test cases.
925         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
927         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
928         stack alignment in the exit code.
930         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
931         potentially be zero.
933         * elf/tst-unique1.c: Extend test to check for unloading DSO with
934         unique symbol definition.
935         Patch by Jakub Jelinek.
936         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
937         make sure the object with the definition cannot be unloaded.  Adjust
938         a few types.
939         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
940         the unique symbol hash table should not be const.
942 2009-07-22  Jakub Jelinek  <jakub@redhat.com>
944         * Makeconfig (ASFLAGS): Append $(sysdep-ASFLAGS).
945         * sysdeps/i386/Makefile (sysdep-ASFLAGS): Add -U__i686.
947 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
949         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
950         unnecesary variables.  Comment fixes.
952 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
954         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
955         Use NONASCII_CASE information provided by the locale to determine
956         whether optimized string load function can be used.  Minor cleanups.
958 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
960         * string/strcasestr.c (STRCASESTR): New macro.
961         (__strcasestr): Renamed to ..
962         (STRCASESTR): ...this.
963         * string/strstr.c (STRSTR): New macro.
964         (strstr): Renamed to ..
965         (STRSTR): ...this.
966         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
967         strstr-c strcasestr-c
968         (CFLAGS-strstr.c): New.
969         (CFLAGS-strcasestr.c): Likewise.
970         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
971         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
972         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
973         * sysdeps/x86_64/multiarch/strstr.c: New file.
975 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
977         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
978         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
979         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
980         _NL_CTYPE_NONASCII_CASE.
981         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
982         field.
983         (ctype_finish): Check whether there are any 8-bit characters outside
984         the range ASCII has or whether the mapping isn't the same as for
985         ASCII (±0x20).  Set nonascii_case appropriately.
986         (ctype_output): Add output handler for nonascii_case.
988 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
990         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
991         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
993 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
995         [BZ #10360]
996         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
997         0xffff in the EDNS0 record.
999 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1001         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1002         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1003         is written before the list head update.
1004         Patch by Andreas Schwab <aschwab@redhat.com>.
1006 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1007             Jakub Jelinek  <jakub@redhat.com>
1009         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1010         corruption thread-safe.
1012 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1014         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1015         overrides atomic_compare_and_exchange_val_rel, define to
1016         atomic_compare_and_exchange_val_rel by default, otherwise default
1017         to catomic_compare_and_exchange_val_acq.
1018         (catomic_compare_and_exchange_bool_rel): If arch overrides
1019         atomic_compare_and_exchange_bool_rel, define to
1020         atomic_compare_and_exchange_bool_rel by default.
1021         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1022         Use catomic_compare_and_exchange_val_rel instead of
1023         catomic_compare_and_exchange_val_acq.
1025 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1027         * sysdeps/generic/ldsodefs.h: Add prototype for
1028         _dl_higher_prime_number.
1029         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1031         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1032         restoring of ymm registers a bit.
1034 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1036         * sysdeps/x86_64/memcmp.S: New file.
1038 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1040         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1041         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1042         pointers in writable memory.
1044 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1046         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1047         * config.make.in: Add config-cflags-avx entry.
1048         * configure.in: Substitute libc_cv_cc_avx.
1049         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1050         * elf/tst-audit4.c: New file.
1051         * elf/tst-audit5.c: New file.
1052         * elf/tst-auditmod4a.c: New file.
1053         * elf/tst-auditmod4b.c: New file.
1054         * elf/tst-auditmod5a.c: New file.
1055         * elf/tst-auditmod5b.c: New file.
1056         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1057         link-defines.sym.
1058         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1059         (La_x86_64_vector): Likewise.
1060         (La_x86_64_regs): Append lr_vector.
1061         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1062         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1063         saving and restoring SSE registers to ...
1064         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1065         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1066         <link-defines.h>.
1067         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1068         La_x86_64_regs.  Allocate extra space and jump to memory at
1069         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1070         (save_and_restore_vector_sse): New.
1071         (save_and_restore_vector_avx): Likewise.
1072         (check_avx): Likewise.
1073         (save_and_restore_vector): Likewise.
1074         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1075         HAVE_AVX_SUPPORT.
1076         * sysdeps/x86_64/link-defines.sym: New file.
1078 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1080         * elf/do-lookup.h: Removed after folding content into...
1081         * elf/dl-lookup.c: ...here.
1083         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1085 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1087         * configure.in: Check for gnu_unique_symbol symbol type.
1088         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1089         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1090         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1091         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1092         change.
1093         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1094         unique symbol table.
1095         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1096         for first namespace.
1097         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1098         unique symbol hash table.
1099         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1100         * elf/tst-unique1.c: New file.
1101         * elf/tst-unique1mod1.c: New file.
1102         * elf/tst-unique1mod2.c: New file.
1103         * elf/tst-unique2.c: New file.
1104         * elf/tst-unique2mod1.c: New file.
1105         * elf/tst-unique2mod2.c: New file.
1107 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1109         * elf/elf.h (STB_GNU_UNIQUE): Define.
1111         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1112         from...
1113         * include/inline-hashtab.h: ...here.
1114         (htab_expand): Adjust for renamed function.  Correct memory handling.
1116 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1118         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1120 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1122         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1123         (PPC_FEATURE_HAS_VSX): Likewise.
1125 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1127         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1128         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1130         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1131         aligned to 16 byte boundaries.
1132         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1133         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1134         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1136 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1138         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1139         * config.make.in (config-cflags-sse4): New variable.
1140         * configure.in: Substitute libc_cv_cc_sse4.
1141         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1142         HAVE_SSE4_SUPPORT.
1143         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1144         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1145         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1146         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1147         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1148         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1149         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1150         * sysdeps/x86_64/multiarch/strspn.S: New file.
1152 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1154         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1155         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1156         (tests): Add tst-audit3 for x86_64.
1157         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1158         ($(objpfx)tst-audit3): Define.
1159         ($(objpfx)tst-audit3.out): Define.
1160         (tst-audit3-ENV): Define.
1161         * elf/tst-audit3.c: New file.
1162         * elf/tst-auditmod3a.c: New file.
1163         * elf/tst-auditmod3b.c: New file.
1164         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1165         and restore xmm6.
1167         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1168         (__stpncpy): Renamed to ...
1169         (STPNCPY): This.
1170         (stpncpy): Create alias only if STPNCPY is not defined.
1171         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1172         defined.
1173         (strncpy): Renamed to ...
1174         (STRNCPY): This.
1175         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1176          stpncpy-c strncpy-c for string.
1177         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1178         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1179         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1180         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1181         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1182         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1184 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1186         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1187         adding to fast bin list.
1189 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1191         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1192         inet_makeaddr.  This worked only with class-based networks.
1193         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1194         Likewise.
1196         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1197         recognize all types.
1198         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1199         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1200         be in host byte order.
1202 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1204         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1205         (MODEL_OFFSET): Define.
1206         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1207         family and model.
1208         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1209         out common code into new function get_common_indeces. Determine
1210         extended family and model for Intel processors.
1212 2009-06-26  Andreas Schwab  <aschwab@redhat.com>
1214         * timezone/zic.c (stringzone): Don't try to generate a POSIX TZ
1215         string when the timezone ends in DST.
1217 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1219         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1220         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1221         option.
1222         * resolv/res_send.c (reopen): New function.  Broken out of...
1223         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1224         fallback mechanism.  If single-request fails switch to
1225         single-request-reopen mode which opens a new socket for the second
1226         request.
1228 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1230         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1231         (CHECK_SP): Use it.
1233 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1235         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1236         for saved registers.
1237         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1238         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1239         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1241 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1243         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1245 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1247         * po/id.po: Update from translation team.
1249         * po/bg.po: Update from translation team.
1251 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1253         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1254         defined.
1255         (strncmp): Renamed to STRNCMP.
1256         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1257         strncmp-c for string.
1258         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1259         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1260         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1261         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1263 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1265         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1266         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1267         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1268         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1269         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1270         ifuncmain7static.c.
1271         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1272         ifuncmain7static, and ifuncmain7picstatic.
1273         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1274         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1275         $(objpfx)ifuncmain7pie.out.
1276         (modules-names): Add ifuncmod5 ifuncmod6
1277         (ifuncmod5.so-no-z-defs): Define.
1278         (ifuncmod6.so-no-z-defs): Define.
1279         (CFLAGS-ifuncmain5pic.c): Define.
1280         (CFLAGS-ifuncmain5picstatic.c): Define.
1281         (CFLAGS-ifuncmain5staticpic.c): Define.
1282         (CFLAGS-ifuncdep5pic.c): Define.
1283         (CFLAGS-ifuncmain7pic.c): Define.
1284         (CFLAGS-ifuncmain7picstatic.c): Define.
1285         (CFLAGS-ifuncmain1staticpie.c): Define.
1286         (CFLAGS-ifuncmain5pie.c): Define.
1287         (CFLAGS-ifuncmain6pie.c): Define.
1288         (CFLAGS-ifuncmain7pie.c): Define.
1289         ($(objpfx)ifuncmain1staticpie.out): Define.
1290         ($(objpfx)ifuncmain1staticpie): Define.
1291         ($(objpfx)ifuncmain5pie.out): Define.
1292         ($(objpfx)ifuncmain5pie): Define.
1293         ($(objpfx)ifuncmain6pie.out): Define.
1294         ($(objpfx)ifuncmain6pie): Define.
1295         ($(objpfx)ifuncmain5): Define.
1296         ($(objpfx)ifuncmain5pic): Define.
1297         ($(objpfx)ifuncmain5static): Define.
1298         ($(objpfx)ifuncmain5staticpic): Define.
1299         ($(objpfx)ifuncmain5picstatic): Define.
1300         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1301         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1302         ifuncmain6pie.out.
1303         * elf/b/elf/ifuncmain1staticpie.c: New file.
1304         * elf/ifuncdep5.c: New file.
1305         * elf/ifuncdep5pic.c: New file.
1306         * elf/ifuncmain5.c: New file.
1307         * elf/ifuncmain5pic.c: New file.
1308         * elf/ifuncmain5picstatic.c: New file.
1309         * elf/ifuncmain5pie.c: New file.
1310         * elf/ifuncmain5static.c: New file.
1311         * elf/ifuncmain5staticpic.c: New file.
1312         * elf/ifuncmain6pie.c: New file.
1313         * elf/ifuncmain7.c: New file.
1314         * elf/ifuncmain7pic.c: New file.
1315         * elf/ifuncmain7picstatic.c: New file.
1316         * elf/ifuncmain7pie.c: New file.
1317         * elf/ifuncmain7static.c: New file.
1318         * elf/ifuncmod5.c: New file.
1319         * elf/ifuncmod6.c: New file.
1321 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1323         [BZ #10085]
1324         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1325         (nss_endgrent): New variable.
1326         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1327         fields. Change type of files to bool and adjust all users.
1328         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1329         (internal_endgrent): Call nss_endgrent if necessary.
1330         (add_group): New function.  Broken out of...
1331         (check_and_add_group): ...here.
1332         (getgrent_next_nss): Remove test that any callback is available.
1333         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1334         callback.  If there is no blacklist we can trust the results returned
1335         by the initgroups_dyn callback.  In case there is a callback and we
1336         find a group entry for the group ID but it doesn't contain the
1337         correct member, switch to the slow mode and use getgrent_r.
1338         (internal_getgrent_r): When we see a +: entry, determine whether
1339         there is any callback and which we can use the initgroups_dyn
1340         callback.
1342 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1344         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1345         (_int_free): Likewise.
1347         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1348         AF_IEEE802154.
1349         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1350         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1351         and ARPHRD_IEEE802154_PHY.
1353         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1354         relative to generic Linux version.
1356 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1358         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1359         ($(objpfx)ifuncmain1vispie): Likewise.
1361 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1363         * login/Makefile: Build pt_chown as PIE.
1365 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1367         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1368         a format string.
1369         * elf/sln.c (usage): Likewise.
1370         * malloc/memusage.sh (do_help): Likewise.
1371         * nss/getent.c (more_help): Likewise.
1372         * posix/getconf.c (main): Likewise.
1373         * sunrpc/rpcinfo.c (usage): Likewise.
1374         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1376 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1378         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1379         those needed.
1380         * login/Makefile: If necessary link pt_chown with -lcap.
1381         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1382         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1384 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1386         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1387         comparisons.
1388         * string/test-memchr.c (do_random_tests): Test very large lengths
1389         as well.
1391 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1393         * Makeconfig (+link-pie): Define.
1394         (+prectorS): Define.
1395         (+postctorS): Define.
1396         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1397         * nscd/Makefile ($(objpfx)nscd): Likewise.
1399 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1401         [BZ #10107]
1402         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1403         with cmplwi.
1404         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1406 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1408         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1409         into ...
1410         * sysdeps/unix/grantpt.c: ...here.
1412 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1414         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1415         chmod if it is necessary.
1417         [BZ #10166]
1418         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1419         when the slave device is in devpts or devfs.
1421         [BZ #10183]
1422         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1424         [BZ #10195]
1425         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1426         of nd_opt_home_agent_info_preference to uint16_t.
1427         Patch by Arnaud Ebalard <arno@natisbad.org>.
1429         [BZ #10207]
1430         * nss/getent.c: Add support for printing gshadow data.
1432         [BZ #10203]
1433         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1434         not just the currently used one and those which follow.
1435         Patch by Joe Landers <jlanders@vmware.com>.
1437         [BZ #10196]
1438         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1439         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1440         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1442         [BZ #10217]
1443         * stdlib/abort.c: Define variable __abort_msg.
1444         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1445         * include/stdlib.h: Declare __abort_msg.
1446         * assert/assert-perr.c: Don't free buffer for message immediately.
1447         Store atomically in __abort_msg and free old buffer if necessary.
1448         * assert/assert.c: Likewise.
1449         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1450         store pointer in __abort_msg, and possibly free old string.
1451         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1453         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1455         [BZ #10211]
1456         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1457         handle leap seconds if they are available.
1458         Patch by Akinori Hattori <hattya@gentoo.org>.
1460         * timezone/tzselect.ksh: Update from tzcode2009i.
1461         * timezone/zdump.c: Likewise.
1462         * timezone/zic.c: Likewise.
1464         * timezone/africa: Update from tzdata2009i.
1465         * timezone/antarctica: Likewise.
1466         * timezone/asia: Likewise.
1467         * timezone/australasia: Likewise.
1468         * timezone/backward: Likewise.
1469         * timezone/etcetera: Likewise.
1470         * timezone/europe: Likewise.
1471         * timezone/factory: Likewise.
1472         * timezone/iso3166.tab: Likewise.
1473         * timezone/leapseconds: Likewise.
1474         * timezone/northamerica: Likewise.
1475         * timezone/pacificnew: Likewise.
1476         * timezone/solar87: Likewise.
1477         * timezone/solar88: Likewise.
1478         * timezone/solar89: Likewise.
1479         * timezone/southamerica: Likewise.
1480         * timezone/systemv: Likewise.
1481         * timezone/yearistype: Likewise.
1482         * timezone/zone.tab: Likewise.
1484 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1486         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1487         STT_GNU_IFUNC symbol or in 8 into type_class.
1489         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1490         instead of Elf64_Addr.
1492 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1494         * po/sv.po: Update from translation team.
1496         [BZ #10229]
1497         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1498         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1499         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1500         the C version.
1502 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1504         * Versions.def: Add GLIBC_2.11 for libpthread.
1506 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1508         * resolv/res_send.c (send_dg): Remember we switched to
1509         single-request mode.
1511 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1513         * dlfcn/dlfcn.h: Remove comma at end of enum.
1514         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1516         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1517         parsing mode string.
1519 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1521         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1523         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1525         * sysdeps/x86_64/multiarch/strlen.S: New file.
1526         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1527         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1528         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1529         content.
1531         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1532         is defined.
1534 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1536         * sysdeps/x86_64/strlen.S: Minor optimizations.
1538 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1540         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1541         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1542         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1543         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1544         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1545         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1546         ifuncmain3.c, ifuncmod3.c,.
1547         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1548         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1549         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1550         ifuncmain4picstatic.
1551         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1552         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1553         ifuncmain3, ifuncmain4.
1554         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1555         $(objpfx)ifuncmain1vispie.out.
1556         (modules-names): Add ifuncmod1 ifuncmod3.
1557         (generated): Add ifuncmain1pie ifuncmain1pie.out
1558         ifuncmain1vispie ifuncmain1vispie.out.
1559         Define rules to build and run the tests.
1560         * elf/ifuncdep1.c: New file.
1561         * elf/ifuncdep1pic.c: New file.
1562         * elf/ifuncdep2.c: New file.
1563         * elf/ifuncdep2pic.c: New file.
1564         * elf/ifuncmain1.c: New file.
1565         * elf/ifuncmain1pic.c: New file.
1566         * elf/ifuncmain1picstatic.c: New file.
1567         * elf/ifuncmain1pie.c: New file.
1568         * elf/ifuncmain1static.c: New file.
1569         * elf/ifuncmain1staticpic.c: New file.
1570         * elf/ifuncmain1vis.c: New file..
1571         * elf/ifuncmain1vispic.c: New file..
1572         * elf/ifuncmain1vispie.c: New file.
1573         * elf/ifuncmain2.c: New file.
1574         * elf/ifuncmain2pic.c: New file.
1575         * elf/ifuncmain2picstatic.c: New file.
1576         * elf/ifuncmain2static.c: New file.
1577         * elf/ifuncmain3.c: New file.
1578         * elf/ifuncmain4.c: New file.
1579         * elf/ifuncmain4picstatic.c: New file.
1580         * elf/ifuncmain4static.c: New file.
1581         * elf/ifuncmod1.c: New file.
1582         * elf/ifuncmod3.c: New file.
1584 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1586         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1588 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1590         [BZ #10221]
1591         * posix/Makefile (routines): Add execvpe.
1592         * posix/Versions: Export execvpe for GLIBC_2.11.
1593         * posix/execvp.c: Now only a wrapper.  Move code to...
1594         * posix/execvpe.c: ...here.  New file.
1595         * posix/unistd.h: Declare execvpe.
1597 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1599         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1600         for STT_GNU_IFUNC handling for efficiency.
1601         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1603         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1604         _exit.
1605         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1607 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1609         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1610         for !SHARED.
1612 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1614         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1615         is not defined.
1616         (__rela_iplt_start): New declaration.
1617         (__rela_iplt_end): Likewise.
1618         (__rel_iplt_start): Likewise.
1619         (__rel_iplt_end): Likewise.
1620         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1621         * elf/elf.h (R_386_IRELATIVE): New macro.
1622         (R_X86_64_IRELATIVE): New macro.
1623         (R_386_NUM): Updated.
1624         (R_X86_64_NUM): Likewise.
1625         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1626         (libc_ifunc_hidden_def): New macro.
1627         * sysdeps/generic/dl-irel.h: New file.
1628         * sysdeps/i386/dl-irel.h: New file.
1629         * sysdeps/x86_64/dl-irel.h: New file.
1630         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1631         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1632         Handle R_386_IRELATIVE.
1633         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1634         (elf_machine_lazy_rela): Likewise.
1635         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1636         R_X86_64_IRELATIVE.
1637         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1639 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1641         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1642         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
1643         are no differences.  If an architecture has bits in CPUID index 1
1644         meaning different things the values for the COMMON_CPUID_INDEX_1
1645         index must not be set.
1646         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1647         (HAS_POPCOUNT): ...this.  New macro.
1648         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1649         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
1650         to set the value for Intel and AMD architectures.
1651         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1652         INTEL_CPUID_INDEX_1.
1653         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1654         change.
1656 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1658         * configure.in: Move AC_CANONICAL_HOST before first use of $host
1659         and $build.
1661 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1663         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1664         (__expm1l): Set errno to ERANGE on overflow.
1665         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1666         (__tanl): Set errno to EDOM for Â±Inf.
1667         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1668         (__cosl): Set errno to EDOM for Â±Inf.
1669         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1670         (__sinl): Set errno to EDOM for Â±Inf.
1672         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1673         defined, use it.
1674         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1675         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1676         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1678 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
1680         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
1681         code accessing it.
1682         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1684 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
1686         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
1687         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1688         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1689         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1691         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1692         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1693         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1694         defined.
1695         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1696         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1698 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
1700         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1701         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1702         is, either do nothing at all if __ASSUME_ACCEPT4, or
1703         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1704         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1705         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1706         define.
1707         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1708         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1709         internal_accept4 in socket directory.
1711 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1713         * sysdeps/ia64/configure.in: New file.
1715 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1717         [BZ #10162]
1718         * sysdeps/ia64/memchr.S: Use speculative load.
1720         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1721         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1722         use it.
1724         * sysdeps/i386/__longjmp.S: Add .text.
1725         * sysdeps/x86_64/__longjmp.S: Likewise.
1727 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
1729         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1730         __ASSUME_ACCEPT4 for IA-64.
1732 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
1734         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1736         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1737         (SOCKOP_accept4): Define.
1739 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
1741         Sun approved the change of the license.
1742         * sunrpc/auth_des.c: Replace license text.
1743         * sunrpc/auth_none.c: Likewise.
1744         * sunrpc/auth_unix.c: Likewise.
1745         * sunrpc/authdes_prot.c: Likewise.
1746         * sunrpc/authuxprot.c: Likewise.
1747         * sunrpc/bindrsvprt.c: Likewise.
1748         * sunrpc/clnt_gen.c: Likewise.
1749         * sunrpc/clnt_perr.c: Likewise.
1750         * sunrpc/clnt_raw.c: Likewise.
1751         * sunrpc/clnt_simp.c: Likewise.
1752         * sunrpc/clnt_tcp.c: Likewise.
1753         * sunrpc/clnt_udp.c: Likewise.
1754         * sunrpc/clnt_unix.c: Likewise.
1755         * sunrpc/des_crypt.c: Likewise.
1756         * sunrpc/des_soft.c: Likewise.
1757         * sunrpc/get_myaddr.c: Likewise.
1758         * sunrpc/getrpcport.c: Likewise.
1759         * sunrpc/key_call.c: Likewise.
1760         * sunrpc/key_prot.c: Likewise.
1761         * sunrpc/openchild.c: Likewise.
1762         * sunrpc/pm_getmaps.c: Likewise.
1763         * sunrpc/pm_getport.c: Likewise.
1764         * sunrpc/pmap_clnt.c: Likewise.
1765         * sunrpc/pmap_prot.c: Likewise.
1766         * sunrpc/pmap_prot2.c: Likewise.
1767         * sunrpc/pmap_rmt.c: Likewise.
1768         * sunrpc/rpc/auth.h: Likewise.
1769         * sunrpc/rpc/auth_unix.h: Likewise.
1770         * sunrpc/rpc/clnt.h: Likewise.
1771         * sunrpc/rpc/des_crypt.h: Likewise.
1772         * sunrpc/rpc/key_prot.h: Likewise.
1773         * sunrpc/rpc/netdb.h: Likewise.
1774         * sunrpc/rpc/pmap_clnt.h: Likewise.
1775         * sunrpc/rpc/pmap_prot.h: Likewise.
1776         * sunrpc/rpc/pmap_rmt.h: Likewise.
1777         * sunrpc/rpc/rpc.h: Likewise.
1778         * sunrpc/rpc/rpc_des.h: Likewise.
1779         * sunrpc/rpc/rpc_msg.h: Likewise.
1780         * sunrpc/rpc/svc.h: Likewise.
1781         * sunrpc/rpc/svc_auth.h: Likewise.
1782         * sunrpc/rpc/types.h: Likewise.
1783         * sunrpc/rpc/xdr.h: Likewise.
1784         * sunrpc/rpc_clntout.c: Likewise.
1785         * sunrpc/rpc_cmsg.c: Likewise.
1786         * sunrpc/rpc_common.c: Likewise.
1787         * sunrpc/rpc_cout.c: Likewise.
1788         * sunrpc/rpc_dtable.c: Likewise.
1789         * sunrpc/rpc_hout.c: Likewise.
1790         * sunrpc/rpc_main.c: Likewise.
1791         * sunrpc/rpc_parse.c: Likewise.
1792         * sunrpc/rpc_parse.h: Likewise.
1793         * sunrpc/rpc_prot.c: Likewise.
1794         * sunrpc/rpc_sample.c: Likewise.
1795         * sunrpc/rpc_scan.c: Likewise.
1796         * sunrpc/rpc_scan.h: Likewise.
1797         * sunrpc/rpc_svcout.c: Likewise.
1798         * sunrpc/rpc_tblout.c: Likewise.
1799         * sunrpc/rpc_util.c: Likewise.
1800         * sunrpc/rpc_util.h: Likewise.
1801         * sunrpc/rpcinfo.c: Likewise.
1802         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1803         * sunrpc/rpcsvc/key_prot.x: Likewise.
1804         * sunrpc/rpcsvc/klm_prot.x: Likewise.
1805         * sunrpc/rpcsvc/mount.x: Likewise.
1806         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1807         * sunrpc/rpcsvc/rex.x: Likewise.
1808         * sunrpc/rpcsvc/rstat.x: Likewise.
1809         * sunrpc/rpcsvc/rusers.x: Likewise.
1810         * sunrpc/rpcsvc/sm_inter.x: Likewise.
1811         * sunrpc/rpcsvc/spray.x: Likewise.
1812         * sunrpc/rpcsvc/yppasswd.x: Likewise.
1813         * sunrpc/rtime.c: Likewise.
1814         * sunrpc/svc.c: Likewise.
1815         * sunrpc/svc_auth.c: Likewise.
1816         * sunrpc/svc_authux.c: Likewise.
1817         * sunrpc/svc_raw.c: Likewise.
1818         * sunrpc/svc_run.c: Likewise.
1819         * sunrpc/svc_simple.c: Likewise.
1820         * sunrpc/svc_tcp.c: Likewise.
1821         * sunrpc/svc_udp.c: Likewise.
1822         * sunrpc/svc_unix.c: Likewise.
1823         * sunrpc/svcauth_des.c: Likewise.
1824         * sunrpc/xcrypt.c: Likewise.
1825         * sunrpc/xdr.c: Likewise.
1826         * sunrpc/xdr_array.c: Likewise.
1827         * sunrpc/xdr_float.c: Likewise.
1828         * sunrpc/xdr_mem.c: Likewise.
1829         * sunrpc/xdr_rec.c: Likewise.
1830         * sunrpc/xdr_ref.c: Likewise.
1831         * sunrpc/xdr_sizeof.c: Likewise.
1832         * sunrpc/xdr_stdio.c: Likewise.
1834         * po/da.po: Update from translation team.
1836 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1838         * sysdeps/sh/____longjmp_chk.S: New file.
1839         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1840         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1842 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
1843             Ulrich Drepper  <drepper@redhat.com>
1845         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1846         (__nscd_cache_search): Assume each entry in the
1847         hash chain needs one hashentry and half of datahead.  Use
1848         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1850 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
1852         * posix/sys/wait.h: Fix typos.  Pretty printing.
1853         * stdlib/stdlib.h: Likewise.  Correct comments.
1855         [BZ #10159]
1856         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1858         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1859         patch.
1861 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1863         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1864         Use it if we absolutely cannot reach any more correct list elements
1865         because that many do not fit into the currently mapped database.
1867 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
1869         * nscd/nscd_helper.c: Include stddef.h.
1870         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
1871         in a couple of places.  Return NULL if trail is not less than
1872         datasize, don't consider dataheads with length smaller than
1873         offsetof (struct datahead, data) + datalen.
1874         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1875         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1876         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1877         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1878         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1879         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1880         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1882         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1883         Rename ...
1884         (fallocate64): ... to this.
1885         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1886         Rename ...
1887         (fallocate64): ... to this.
1888         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1889         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1890         fallocate64@@GLIBC_2.10.
1891         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1892         fallocate64@@GLIBC_2.11.
1893         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1895         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1896         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1898         * nscd/selinux.c (nscd_avc_destroy): Removed.
1899         * nscd/selinux.h (nscd_avc_destroy): Likewise.
1900         * nscd/nscd.c (termination_handler): Don't call
1901         nscd_avc_destroy.
1903 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
1905         * include/atomic.h: Formatting.
1906         (catomic_compare_and_exchange_val_acq): Don't define if already
1907         defined by bits/atomic.h.
1909 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1911         * math/libm-test.inc (expm1_test): Add test for range error.
1913         * Versions.def: Add GLIBC_2.11 for libc.
1914         * debug/Makefile (routines): Add longjmp_chk.
1915         Add rules to build and run tst-longjmp_chk.
1916         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1917         * debug/longjmp_chk.c: New file.
1918         * debug/tst-longjmp_chk.c: New file.
1919         * include/bits/setjmp2.: New file.
1920         * include/stdio.h: Mark __fortify_fail as internal_function.
1921         * setjmp/Makefile (headers): Add bits/setjmp2.h.
1922         * setjmp/bits/setjmp2.h: New file.
1923         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1924         of the aliases.
1925         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1926         defined.
1927         * sysdeps/i386/____longjmp_chk.S: New file.
1928         * sysdeps/x86_64/____longjmp_chk.S: New file.
1929         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1930         * sysdeps/x86_64/__longjmp.S: Likewise.
1932         * version.h: Bump for 2.11 development.
1934         * elf/check-execstack.c: New file.
1935         * elf/Makefile: Add rules to build and run check-execstack.
1937 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
1939         * version.h (VERSION): Bump to 2.10.1.
1941         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1942         compatibility functions.
1943         * nss/getXXent_r.c: Likewise.
1944         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1945         * gshadow/getsgnam_r.c: Likewise.
1946         * gshadow/Version: Remove duplicate entries.
1948         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1949         for recent processor.
1950         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1951         Likewise.
1953 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
1955         * version.h (VERSION): Bump for 2.10 release.
1956         * include/features.h (__GLIBC_MINOR__): Bump to 10.
1958         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
1959         same place we add ASFLAGS-config.
1961 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1963         [BZ #10128]
1964         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1965         or FORMERR and the other NOERROR, don't raise an error.
1967 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
1969         [BZ #10118]
1970         * Makeconfig (+asflags): New variable based upon ASFLAG or
1971         asflags-cpu.
1972         (ASFLAGS): Add override to set ASFLAGS to +asflags.
1973         * config.make.in (asflags-cpu): Add variable based upon
1974         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1975         the assembler.
1976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1977         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1978         recognizes power6 instruction set due to passing -mcpu=power6 from
1979         --with-cpu=power6 when compiling .S files.
1980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1981         Likewise.
1982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1983         Likewise.
1984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1985         Likewise.
1987 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
1989         * string/stratcliff.c (do_test): Test for zero length
1990         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1991         at the end of the page.
1993 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
1995         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1997         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1998         count is zero.
2000         * po/da.po: Update from translation team.
2002 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2004         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2005         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2007 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2009         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2010         and READ_IMPLIES_EXEC.
2012 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2014         * po/da.po: Update from translation team.
2016 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2018         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2019         comment change.
2021 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2023         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2024         to MAP_ANON in PROT_NONE mmap64 call.
2025         (open_archive): Likewise.
2026         (file_data_available_p): Use mmap64 instead of mremap.
2027         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2028         Attempt to reserve address space after mmap64 region.
2030 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2032         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2033         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2034         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2036         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2037         atanh should set ERANGE.
2039         [BZ #10087]
2040         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2041         result of lookup to make call to implement STT_GNU_IFUNC.
2042         (_dl_profile_fixup): Likewise.
2043         Patch by H.J. Lu <hjl.tools@gmail.com>.
2045         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2046         warning.
2048         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2049         from definition.
2051         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2052         label if it is not used.
2054         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2055         of gmon_hist_hdr and gmon_hdr structures and use them.
2056         * elf/sprof.c: Likewise.
2058         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2059         warning.
2061         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2063         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2064         to avoid cast.
2066         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2067         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2068         to avoid warnings.
2069         (iruserok_af): Use ss_family instead of casts.
2071         * gmon/gmon.c (write_hist): Define real-type variant of
2072         gmon_hist_hdr structure and use it.
2073         (write_gmon): Likewise for gmon_hdr.
2075         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2076         function if we are not going to define it.
2077         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2079         * inet/inet6_option.c (option_alloc): Add temporary variable to
2080         avoid warning.
2082         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2083         name of VTable element.
2084         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2085         * libio/iovsscanf.c: Likewise.
2086         * libio/vasprintf.c: Likewise.
2087         * libio/vsnprintf.c: Likewise.
2088         * stdio-common/isoc99_vsscanf.c: Likewise.
2089         * stdlib/strfmon_l.c: Likewise.
2090         * debug/vasprintf_chk.c: Likewise.
2091         * debug/vsnprintf_chk.c: Likewise.
2092         * debug/vsprintf_chk.c: Likewise.
2094         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2095         function pointers.
2097 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2099         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2101 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2103         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2105         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2106         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2107         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2108         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2109         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2110         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2111         * math/libm-test.inc: Add tests for errno after tan calls with
2112         Â±Inf.
2114         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2115         errno value vor pow(+-0,neg).
2116         * math/libm-test.inc (pow_test): Add tests for errno value for
2117         pole errors.
2119         * math/w_fmod.c: Also handle x=±Inf as error.
2120         * math/w_fmodf.c: Likewise.
2121         * math/w_fmodl.c: Likewise.
2122         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2123         x=±Inf or y=0.
2125         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2126         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2127         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2128         * sysdeps/i386/fpu/s_sin.S: Likewise.
2129         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2130         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2131         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2132         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2133         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2134         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2135         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2136         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2137         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2138         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2139         Â±Inf.
2141         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2142         ERANGE for underflows.
2143         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2145         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2146         the 2001 revision.
2148         * libio/tst-widetext.input: Remove surrogates.
2150         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2152         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2153         for lgamma should set errno to ERANGE, not EDOM.
2154         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2156 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2158         [BZ #10093]
2159         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2160         UTF-16 surrogates.
2162         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2163         space when temporarily mapping the whole content of the old file.
2165         [BZ #10100]
2166         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2167         not zero.
2169 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2171         * iconvdata/sjis.c (BODY): Don't advance inptr before
2172         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2173         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2174         two byte chars.
2176 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2178         * locale/locarchive.h (struct locarhandle): Rename len field to
2179         mmaped and add new reserved field.
2180         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2181         (create_archive): Reserve address space and then map file into it.
2182         (open_archive): Likewise.
2183         (file_data_available_p): New function.
2184         (compare_from_file): New function.
2185         (close_archive): Adjust to member name changes.
2186         (add_locale): Before comparing locale data, check it is mapped.
2187         Otherwise fall back to reading from the file.
2189 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2191         * stdio-common/psiginfo.c: Include <errno.h>.
2193 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2195         [BZ #9920]
2196         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2197         to get consistency between 32 and 64 bit architectures.
2199         [BZ #10052]
2200         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2201         directory for dummy syscall rules.
2202         Patch by Chris Steinbroner <hesh@pobox.com>.
2204 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2206         [BZ #10092]
2207         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2208         MNT_EXPIRE.
2210 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2212         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2213         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2215 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2217         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2218         data from vector to temporary buffer and call PWRITEV after it
2219         instead of vice versa.
2220         * sysdeps/posix/preadv.c: Fix up comment.
2221         * misc/preadv.c: Likewise.
2222         * misc/preadv64.c: Likewise.
2223         * misc/pwritev.c: Likewise.
2224         * misc/pwritev64.c: Likewise.
2225         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2227 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2229         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2231         * shadow/Makefile (tests): Add tst-shadow.
2232         * shadow/tst-shadow.c: New file.
2234         [BZ #9955]
2235         * gshadow/Makefile: New file.
2236         * gshadow/Versions: New file.
2237         * gshadow/fgetsgent.c: New file.
2238         * gshadow/fgetsgent_r.c: New file.
2239         * gshadow/getsgent.c: New file.
2240         * gshadow/getsgent_r.c: New file.
2241         * gshadow/getsgnam.c: New file.
2242         * gshadow/getsgnam_r.c: New file.
2243         * gshadow/gshadow.h: New file.
2244         * gshadow/putsgent.c: New file.
2245         * gshadow/sgetsgent.c: New file.
2246         * gshadow/sgetsgent_r.c: New file.
2247         * gshadow/tst-gshadow.c: New file.
2248         * include/gshadow.h: New file.
2249         * Makeconfig (all-subdirs): Add gshadow.
2250         * Makefile (installed-headers): Add gshadow/gshadow.h.
2251         * nss/Makefile (databases): Add sgrp.
2252         * nss/Versions: Add gshadow functions as private exports.
2253         * nss/nsswitch.conf: Add gshadow entry.
2254         * nss/sgrp-lookup.c: New file.
2255         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2256         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2257         * nss/nss_files/files-sgrp.c: New file.
2258         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2259         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2261 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2263         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2264         * stdio-common/reg-modifier.c: Likewise.
2266 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2268         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2269         is no FPU.
2271 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2273         [BZ #10086]
2274         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2275         headers up to 2.6.30.
2277         * po/ca.po: Update from translation team.
2279 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2281         [BZ #10069]
2282         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2283         an object that uses static TLS if the TLS modid is higher than the
2284         reserve we always allocate.  At least for multi-threaded code.
2286 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2288         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2289         Numerically stable check for valid width.
2291         * locale/programs/locarchive.c (open_archive): Map the entire file
2292         and not just the administrative data.
2293         (add_locale): When we find a hash sum match compare the content
2294         to be sure.
2296         * malloc/malloc.c (malloc_info): Output address space information.
2298 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2300         * malloc/malloc.c (malloc_info): Also output system memory information.
2302         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2303         architectures have preadv/pwritev in 2.6.30.
2305         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2306         * sysdeps/posix/readv.c: Likewise.
2307         Reported by Markus Armbruster <armbru@redhat.com>.
2309         * malloc/hooks.c (top_check): Force hook value into register.
2311 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2313         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2314         calls to _dl_relocate_object.
2316 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2318         [BZ #9957]
2319         * malloc/malloc.c (force_reg): Define.
2320         (sYSMALLOc): Load hook variable into variable
2321         before test and force into register.
2322         (sYSTRIm): Likewise.
2323         (public_mALLOc): Force hook value into register.
2324         (public_fREe): Likewise.
2325         (public_rEALLOc): Likewise.
2326         (public_mEMALIGn): Likewise.
2327         (public_vALLOc): Likewise.
2328         (public_pVALLOc): Likewise.
2329         (public_cALLOc): Likewise.
2330         (__posix_memalign): Likewise.
2331         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2332         before test and force into register.
2333         * malloc/hooks.c (top_check): Likewise.
2334         (public_sET_STATe): Pretty printing.
2336         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2337         in case we only receive one reply in single-request mode.
2339 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2341         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2342         are dlopened in statically linked program even for __LM_ID_CALLER.
2344 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2346         * resolv/res_send.c (send_dg): Don't switch into single-request
2347         mode if we already are in it.
2349 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2351         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2352         are always at least 4 bytes in the returned line.
2354 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2356         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2357         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2358         instead of 8K.  Stop searching in /proc/stat after hitting first
2359         line not starting with cpu.
2360         (next_line): Truncate too long
2361         lines at buffer size * 3/4 instead of pretending there were line
2362         breaks inside of large lines.
2364 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2366         * sysdeps/x86_64/mp_clz_tab.c: New file.
2368 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2369             Ulrich Drepper  <drepper@redhat.com>
2371         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2372         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2373         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2375 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2377         * sysdeps/sh/libc-tls.c: New file.
2379         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2381 2009-04-14  Roland McGrath  <roland@redhat.com>
2383         * elf/elf.h: Add various missing ARM constants, to match binutils.
2385 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2387         Optimizations from GMP.
2388         * sysdeps/x86_64/add_n.S: New file.
2389         * sysdeps/x86_64/addmul_1.S: New file.
2390         * sysdeps/x86_64/lshift.S: New file.
2391         * sysdeps/x86_64/mul_1.S: New file.
2392         * sysdeps/x86_64/rshift.S: New file.
2393         * sysdeps/x86_64/sub_n.S: New file.
2394         * sysdeps/x86_64/submul_1.S: New file.
2396 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2398         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2399         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2400         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2401         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2403 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2405         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2406         preadv/pwritev.
2408 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2410         * sysdeps/x86-64/strrchr.S: New file.
2412 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2414         * stdio-common/printf.h (struct printf_info): Add user element.
2415         New types printf_arginfo_size_function, printf_va_arg_function.
2416         Declare register_printf_specifier, register_printf_modifier,
2417         register_printf_type.
2418         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2419         (union printf_arg): Add pa_user element.
2420         Adjust __printf_arginfo_table type.
2421         Add __printf_va_arg_table, __printf_modifier_table,
2422         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2423         declarations.
2424         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2425         If registered arginfo call failed try normal specifier.
2426         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2427         function.
2428         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2429         * stdio-common/Versions: Export register_printf_modifier,
2430         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2431         * stdio-common/reg-modifier.c: New file.
2432         * stdio-common/reg-type.c: New file.
2433         * stdio-common/reg-printf.c (__register_printf_specifier): New
2434         function.  Mostly the old __register_printf_function function but
2435         uses locking and type of third parameter changed.
2436         (__register_printf_function): Implement using
2437         __register_printf_specifier.
2438         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2439         calls to arginfo functions.  Allocate enough memory for user-defined
2440         types.  Call new va_arg functions to get user-defined types.
2441         Try installed handlers even for existing format specifiers first.
2443 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2445         * sysdeps/x86_64/rawmemchr.S: New file.
2447         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2448         Simplified code and possible copy problem fixed.
2450         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2451         function if it is not defined.  Add some necessary casts.
2452         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2454         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2455         have preadv/pwritev in 2.6.30.
2457 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2459         * malloc/malloc.c (malloc_info): New function.
2460         * malloc/malloc.h: Declare it.
2461         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2463         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2464         to avoid PLT slot.
2466         * malloc/malloc.c (_int_realloc): Add parameter with old block
2467         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2468         Adjust all callers.
2469         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2471 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2473         * sysdeps/x86_64/strchrnul.S: New file.
2475         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2476         depending libcrypt on -lfreebl3.
2478         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2479         preadv/pwritev in 2.6.30.
2481         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2482         instead of __strcasecmp.
2484         * string/stratcliff.c (do_test): Add memchr tests..
2485         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2486         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2487         first read quad word.
2489 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2491         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2492         * string/tst-svc.input: Add new test case.
2493         * string/tst-svc.expect: Adjust.
2494         * string/Makefile: Don't ignore tst-svc error.
2496         * sysdeps/x86_64/memchr.S: New file.
2498         * resolv/resolv.h (RES_SNGLKUP): Define.
2499         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2500         * resolv/res_send.c (send_dg): If we sent two requests at once and
2501         only get one reply before timeout switch to mode where we send the
2502         second request only after the first answer has been received.
2504 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2506         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2507         * sysdeps/x86_64/strchr.S: Likewise.
2509 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2511         * configure.in: We need to test for the compiler earlier.
2513         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2514         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2515         GLIBC_2.10.
2516         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2517         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2518         and pwritev.
2519         * misc/preadv.c: New file.
2520         * misc/preadv64.c: New file.
2521         * misc/pwritev.c: New file.
2522         * misc/pwritev64.c: New file.
2523         * sysdeps/posx/preadv.c: New file.
2524         * sysdeps/posx/preadv64.c: New file.
2525         * sysdeps/posx/pwritev.c: New file.
2526         * sysdeps/posx/pwritev64.c: New file.
2527         * sysdeps/unix/sysv/linux/preadv.c: New file.
2528         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2529         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2530         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2531         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2532         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2534         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2535         compatibility code.
2536         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2538         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2539         __ASSUME_COMPLETE_READV_WRITEV.
2540         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2541         with modern kernels.
2542         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2544         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2545         to free a possible malloced buffer in case of cancellation.
2546         * sysdeps/posix/writev.c: Likewise for write.
2548 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2550         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2552         * configure.in: Recognize --enable-nss-crypt.
2553         * config.make.in: Add nss-crypt entry.
2554         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2555         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2556         and include path for NSS directory to compiler for md5-crypt,
2557         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2558         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2559         function implementation, use NSS.  Introduce wrappers around the
2560         hash function calls.  Little code size optimization.
2561         * crypt/sha256-crypt.c: Likewise.
2562         * crypt/sha512-crypt.c: Likewise.
2563         * scripts/check-local-headers.sh: Ignore nss3 directory.
2565         * configure.in: Rename pic_default to libc_cv_pic_default.
2566         * config.make.in: Likewise.
2568 2009-04-01  Roland McGrath  <roland@redhat.com>
2570         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2571         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2572         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2573         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2574         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2575         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2576         (R_SPARC_NUM): Update.
2577         From Dave Miller <davem@davemloft.net>.
2579 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2581         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2583 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2585         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2586         those which are used.
2587         * elf/dl-addr.c: Likewise.
2588         * elf/dl-caller.c: Likewise.
2589         * elf/dl-fini.c: Likewise.
2590         * elf/dl-iteratephdr.c: Likewise.
2591         * elf/dl-libc.c: Likewise.
2592         * elf/dl-load.c: Likewise.
2593         * elf/dl-support.c: Likewise.
2594         * elf/dl-sym.c: Likewise.
2595         * elf/rtld.c: Likewise.
2596         * sysdeps/generic/ldsodefs.h: Likewise.
2598         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2599         * elf/dl-minimal.c: Likewise.
2600         * elf/dl-misc.c: Likewise.
2601         * elf/rtld.c: Likewise.
2602         * sysdeps/generic/ldsodefs.h: Likewise.
2604 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2606         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2607         Avoid reuse of complex expression.
2609         * po/fr.po: Update from translation team.
2611 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2613         * include/dirent.h: Yet more changes to match sort function type
2614         change.
2615         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2616         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2617         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2619 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2621         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2623 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2625         * nscd/connections.c (restart): Try to preserve the process name
2626         by reading the /proc/self/exe symlink and using the return name.
2627         Patch by Jeff Bastian <jbastian@redhat.com>.
2629 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2631         [BZ #9733]
2632         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2633         if we are not loading a new audit library.
2634         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2635         Only use profiling trampoline for auditing if we are not relocating
2636         an audit library.
2637         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2638         * elf/rtld.c: Likewise.
2639         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2641         * elf/rtld.c (dl_main): Extend help message for --audit option.
2643         [BZ #9759]
2644         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2645         alphasort64, versionsort, and versionsort64 to POSIX 2008.
2646         * dirent/alphasort.c: Adjust implementation to type change.
2647         * dirent/alphasort64.c: Likewise.
2648         * dirent/scandir.c: Likewise.
2649         * dirent/versionsort.c: Likewise.
2650         * dirent/versionsort64.c: Likewise.
2651         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2652         declaration.
2653         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2654         declaration.
2656         [BZ #9880]
2657         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2658         correctly.  Set segleft member in output as required.
2659         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2660         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2662         [BZ #9881]
2663         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2664         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2665         * inet/Makefile (tests): Add tst-inet6_rth.
2666         * inet/tst-inet6_rth.c: New file.
2668         [BZ #5807]
2669         * string/strlen.c (strlen): Fix omission in the expression to test
2670         for NUL bytes.
2672 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2674         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2676         * elf/dl-runtime.c (reloc_offset): Define.
2677         (reloc_index): Define.
2678         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2679         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
2680         computing index from reloc_offset.
2681         (_dl_call_pltexit): Likewise.
2682         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2683         the relocation index to _dl_fixup.
2684         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2685         _dl_call_pltexit.
2686         * sysdeps/x86_64/dl-runtime.c: New file.
2688         [BZ #9893]
2689         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2690         alignment of La_x86_64_regs.  Store xmm parameters.
2691         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2693         [BZ #9913]
2694         * string/strverscmp.c (__strverscmp): Fix case of different digits
2695         in fractional part of string.
2696         Patch by Jingyu Liu <jyliu@fortinet.com>.
2697         * string/Makefile (tests): Add tst-svc2.
2698         * string/tst-svc2.c: New file.
2700         * string/strverscmp.c (__strverscmp): Optimize size of tables.
2702         * locale/iso-639.def: Add Min Nan.
2704 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2706         [BZ #9948]
2707         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2709 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2711         * elf/dl-sysdep.c (auxvars): Compress data structure.
2713         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2714         STT_GNU_IFUNC handling.
2715         (elf_machine_rela): Likewise.
2717 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
2719         * config.h.in (USE_MULTIARCH): Define.
2720         * configure.in: Handle --enable-multi-arch.
2721         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2722         (_dl_fixup_profile): Likewise.
2723         * elf/do-lookup.c (dl_lookup_x): Likewise.
2724         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2725         * elf/elf.h (STT_GNU_IFUNC): Define.
2726         * include/libc-symbols.h (libc_ifunc): Define.
2727         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2728         framework in init-arch.h to get CPUID values.
2729         * sysdeps/x86_64/multiarch/Makefile: New file.
2730         * sysdeps/x86_64/multiarch/init-arch.c: New file.
2731         * sysdeps/x86_64/multiarch/init-arch.h: New file.
2732         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2734         * config.make.in (experimental-malloc): Define.
2735         * configure.in: Handle --enable-experimental-malloc.
2736         * malloc/Makefile: Handle experimental-malloc flag.
2737         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2738         * malloc/arena.c: Likewise.
2739         * malloc/hooks.c: Likewise.
2740         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2742 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
2744         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2745         prediction.  A few size optimizations.
2747 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2749         * time/tzset.c: Optimize a bit for size.
2751 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2753         * include/stdio.h (fmemopen): Add libc_hidden_proto.
2754         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2756         * elf/sprof.c: Avoid warning about multi-line comment.
2758 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2760         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2761         DST name.
2762         * time/tst-posixtz.c: Add tests for quoted timezone names.
2764 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2766         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2767         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2768         200809L instead of 200112L.
2769         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2770         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2772         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2773         instead of __quick_exit_funcs to __run_exit_handlers.
2774         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2775         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2776         (__cxa_at_quick_exit): Remove attribute_hidden.
2777         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2778         to __run_exit_handlers.
2779         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2780         attribute_hidden.
2782 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2784         * po/id.po: Update from translation team.
2786 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2789         .machine push; .machine "power6" and .machine pop around mtfsf
2790         insns outside of _ARCH_PWR6 define.
2791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2793         Likewise.
2794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2795         Likewise.
2796         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2797         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2798         relax_fenv_state): Likewise.
2800 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
2802         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2803         cxa_at_quick_exit.
2804         (static-only-routines): Add at_quick_exit.
2805         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2806         GLIBC_2.10.
2807         * stdlib/quick_exit.c: New file.
2808         * stdlib/at_quick_exit.c: New file.
2809         * stdlib/cxa_at_quick_exit.c: New file.
2810         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
2811         it appropriately.
2812         (__internal_atexit): New function.
2813         (__new_exitfn): Now takes parameter to point to the list to use.
2814         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2815         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
2816         (exit): ...here.  Just call __run_exit_handlers appropriately.
2817         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2818         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
2819         * stdlib/on_exit.c: Adjust call to __new_exitfn.
2820         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2822         * po/id.po: Update from translation team.
2824 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
2826         * po/ru.po: Update from translation team.
2828 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
2830         * po/nl.po: Update from translation team.
2832 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
2834         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2835         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2836         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2837         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2838         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2839         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2840         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2842         * po/pl.po: Update from translation team.
2844 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2846         [BZ #7083]
2847         * sysdeps/unix/sysv/linux/fallocate.c: New file.
2848         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2849         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2850         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2851         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2852         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2853         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2854         for GLIBC_2.10.
2855         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2856         Add fallocate and fallocate64.
2858         * io/fcntl.h: Pretty printing.
2860 2009-03-02  Richard Guenther  <rguenther@suse.de>
2862         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2863         attribute also for non-C99 inline semantics variant.
2865 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2867         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2868         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2869         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2870         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2872         Likewise.
2873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2874         Likewise.
2876 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2878         * po/cs.po: Update from translation team.
2880 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
2882         * po/bg.po: Update from translation team.
2883         * po/sv.po: Likewise.
2884         * po/fi.po: Likewise.
2885         * po/vi.po: Likewise.
2887 2009-02-27  Roland McGrath  <roland@redhat.com>
2889         * Makeconfig (%.v.i): Depend on Makeconfig.
2890         Exclude % lines from initial #-comment removal.
2892 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
2894         * po/ko.po: Update from translation team.
2896 2009-02-26  Roland McGrath  <roland@redhat.com>
2898         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2899         avoids unused warning.
2901 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
2902             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2904         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2905         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
2906         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2907         and asm/user.h.  Include asm/ptrace.h.
2908         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2909         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2910         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2911         Undefine.
2912         (start_thread): Don't undefine.
2913         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2914         Define.
2916 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
2918         * wctype/wctype.h: The *_l functions are in POSIX 2008.
2919         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2920         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2921         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2922         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2923         200112L to 200809L.
2924         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2925         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2926         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2927         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2928         _SC_THREAD_ROBUST_PRIO_PROTECT.
2929         * posix/unistd.h: fexecve is in POSIX 2008.
2930         * time/time.h: strftime_l is in POSIX 2008.
2931         * io/sys/stat.h: futimens is in POSIX 2008.
2932         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2933         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2934         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2935         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2936         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2937         open_memstream, and vdprintf are in POSIX 2008.
2939 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
2941         * include/features.h: Define macros for XPG7/POSIX 2008.
2942         * ctype/ctype.h: The *_l functions are in POSIX 2008.
2943         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2944         POSIX 2008.
2945         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2946         * locale/xlocale.h: Define locale_t type.
2947         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2948         in POSIX 2008.  Don't define locale_t here.
2949         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2950         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2951         UTIME_OMIT only with __USE_ATFILE.
2952         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2953         * stdio-common/psiginfo.c: New file.
2954         * stdio-common/psiginfo-data.h: New file.
2955         * stdio-common/psiginfo-define.h: New file.
2956         * stdio-common/Makefile (routines): Add psiginfo.
2957         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2958         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2959         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2960         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2961         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2962         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2963         * io/sys/stat.h: Move mknodat definition into same conditional as
2964         mknod.
2965         * time/sys/time.h: futimesat is not among the functions accepted
2966         into the POSIX standard.
2968         * include/features.h: If no feature selection given and we select
2969         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2970         * posix/Versions: Export __posix_getopt.
2971         * posix/getopt.c (_getopt_initialize): Take additional parameter.
2972         Use it to alternatively initialize __posixly_correct.
2973         (_getopt_internal_r): Take addition parameter.  Pass on to
2974         _getopt_initialize.
2975         (_getopt_internal): Take addition parameter.  Pass on to
2976         _getopt_internal_r.
2977         (getopt): Pass additional zero to _getopt_internal.
2978         (__posix_getopt): New function.
2979         * posix/getopt.h: Add redirection for getopt.
2980         * posix/getopt1.c (getopt_long): Pass additional zero to
2981         _getopt_internal.
2982         (getopt_long_only): Likewise.
2983         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2984         (_getopt_long_only_r): Likewise.
2985         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2986         _getopt_internal_r.
2988 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2990         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2991         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2992         * sysdeps/posix/sysconf.c (__sysconf): Handle
2993         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2994         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2996 2009-02-24  Roland McGrath  <roland@redhat.com>
2998         [BZ #9895]
2999         * README.template: Reworded not to use substituted version number.
3000         Renamed to ...
3001         * README: ... here (no longer generated).
3002         * Makefile (README): Target removed.
3004 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3006         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3007         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3008         instead.
3010         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3012         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3014 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3016         * po/bg.po: Update from translation team.
3018 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3020         * stdlib/monetary.h: Uglify function parameter names.
3021         * sunrpc/rpc/pmap_clnt.h: Likewise.
3022         * sunrpc/rpc/svc.h: Likewise.
3023         * sunrpc/rpc/xdr.h: Likewise.
3024         * sunrpc/rpc/clnt.h: Likewise.
3025         * resolv/netdb.h: Likewise.
3026         * resolv/arpa/nameser.h: Likewise.
3027         * resolv/resolv.h: Likewise.
3028         * argp/argp.h: Likewise.
3029         * locale/langinfo.h: Likewise.
3030         * io/sys/stat.h: Likewise.
3031         * posix/spawn.h: Likewise.
3032         * nis/rpcsvc/nislib.h: Likewise.
3033         * malloc/obstack.h: Likewise.
3034         * sysdeps/ia64/bits/link.h: Likewise.
3035         * sysdeps/i386/bits/link.h: Likewise.
3036         * sysdeps/s390/bits/link.h: Likewise.
3037         * sysdeps/powerpc/bits/link.h: Likewise.
3038         * sysdeps/x86_64/bits/link.h: Likewise.
3039         * sysdeps/sparc/bits/link.h: Likewise.
3040         * sysdeps/sh/bits/link.h: Likewise.
3041         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3042         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3043         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3044         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3046 2008-12-01  Fredrik Unger  <fred@tree.se>
3048         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3049         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3050         _FP_UNPACK_RAW_2, fix up first argument.
3052 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3054         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3055         (GET_NPROCS_PARSER): Change parameters and use next_line.
3056         (__get_nprocs): Rewrite to not use stdio routines.
3057         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3058         Change parameters and use next_line.
3060 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3062         [BZ #5381]
3063         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3064         Change mempool_alloc prototype.
3065         * nscd/mem.c (gc): Don't handle mem_in_flight.
3066         (mempool_alloc): Third parameter now only indicates whether this is the
3067         first call (to allocate data) or not.  If it is, get db rdlock.
3068         Release it on error.  Don't handle mem_in_flight.
3069         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3070         Adjust third parameter of mempool_alloc calls.
3071         Nothing to do here in case mempool_alloc fails.
3072         Avoid local variable shadowing parameter.  No need to get db rdlock
3073         before calling cache_add.
3074         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3075         no mem_in_flight array anymore.
3076         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3077         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3078         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3079         in case mempool_alloc fails. No need to get db rdlock before calling
3080         cache_add.
3081         * nscd/hstcache.c (cache_addhst): Likewise.
3082         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3083         * nscd/servicescache.c (cache_addserv): Likewise.
3084         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3086 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3088         * po/lt.po: Update from translation team.
3090 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3092         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3093         defined, allow additional data to be added using the optional
3094         MORE_ELF_HEADER_DATA macro.
3095         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3096         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3098 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3100         * include/atomic.h: Define catomic_and if not already defined.
3101         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3102         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3104 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3106         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3107         Change all callers.
3108         (_int_realloc): Likewise.  Third argument is now padded size
3109         All _int_* functions are now static.
3111         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3112         * malloc/arena.c: Likewise.
3113         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3114         functions.
3116         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3117         easily.
3119         * malloc/malloc.c: Add branch prediction for use of the hooks.
3121         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3123 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3125         [BZ #7095]
3126         * bits/confname.h: Add SUSv7 macros for getconf environments.
3127         * bits/environments.h: Likewise.
3128         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3129         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3130         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3131         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3132         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3133         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3134         * posix/getconf.c: Likewise.
3135         * posix/sysconf.c: Likewise.
3136         * sysdeps/posix/sysconf.c: Likewise.
3137         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3138         environments.
3140 2009-01-16  Petr Baudis  <pasky@suse.cz>
3142         [BZ #9753]
3143         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3144         even if we currently have zero nscount.
3146 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3148         [BZ #9781]
3149         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3150         the input line is too long.
3152         * po/Makefile (libc.pot): Add f_print as function taking c-format
3153         parameter.
3155         * debug/xtrace.sh: Unify translatable messages.
3156         * elf/ldd.bash.in: Likewise.
3157         * elf/sprof.c: Likewise.
3158         * locale/programs/locale.c: Likewise.
3159         * malloc/memusage.sh: Likewise.
3160         * nss/getent.c: Likewise.
3162 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3164         * debug/pcprofiledump.c (print_version,
3165         argp_program_version_hook): New function.
3166         * elf/ldconfig.c (more_help): New function.
3167         (argp): Use it.
3168         * elf/sln.c (usage): New function.
3169         (main): Support --help and --version.
3170         * malloc/memusagestat.c (print_version): New function.
3171         (argp_program_version_hook): New variable.
3172         * nscd/nscd.c (more_help): New function.
3173         (argp): Use it.
3174         * posix/getconf.c (main): Send --version output to stdout.
3175         Support --help.
3176         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3177         arguments.  All callers changed.
3178         (print_version): New function.
3179         (parseargs): Support --help and --version.
3180         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3181         changed.
3182         (print_version): New function.
3183         (main): Use getopt_long.  Support --help and --version.
3184         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3185         --version.
3187 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3189         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3190         (update_data): Fix handling of wrapping back
3191         to the beginning of the buffer.
3193         [BZ #9823]
3194         * stdio-common/psignal.c (psignal): Fix test for empty string.
3196 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3198         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3199         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3200         move _null_auth to .rodata.
3202         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3203         value of 24.
3205         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3207         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3208         today than when the original code was written.  Use larger
3209         buffers.  This also makes it unnecessary to have stat information,
3210         if this causes extra efforts.
3211         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3212         __alloc_dir.
3214 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3216         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3217         is set.
3218         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3219         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3220         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3221         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3222         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3223         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3225 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3227         * po/ru.po: Update from translation team.
3229 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3231         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3232         Add _tid slot to maintain consistency with kernel.
3234 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3236         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3237         incomplete characters at end of input buffer.
3238         * libio/Makefile (tests): Add tst-fgetwc.
3239         * libio/tst-fgetwc.c: New file.
3240         * libio/tst-fgetwc.input: New file.
3242 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3244         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3246 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3248         [BZ #9793]
3249         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3250         *OUTBUFSTART unless the whole output fit into the buffer.
3251         * iconv/Makefile (tests): Add tst-iconv4.
3252         * iconv/tst-iconv4.c: New file.
3254 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3256         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3257         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3259 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3261         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3262         newer linker scripts.
3264 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3266         [BZ #7040]
3267         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3268         inotify_rm_watch should have type int.
3270 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3272         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3273         Make aligned_restore_vmx a local symbol.
3274         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3275         Likewise.
3277 2009-01-30  Andreas Jaeger  <aj@suse.de>
3279         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3280         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3281         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3282         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3283         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3284         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3285         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3287 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3289         [BZ #9726]
3290         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3291         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3293 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3295         [BZ #9726]
3296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3297         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3299         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3301 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3303         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3304         memcpy instead of memcmp.
3305         (_dl_setup_pointer_guard): Likewise.
3307 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3309         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3310         manipulated brk, use malloc_printerr.
3311         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3312         requests.
3314 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3316         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3317         rindex): For C++ add inlines so that they can be recognized as
3318         builtins.
3319         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3321 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3322             Jakub Jelinek  <jakub@redhat.com>
3324         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3325         * wcsmbs/wchar.h: Likewise.
3327 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3329         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3330         (stackinfo_sub_sp): Define.
3332 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3334         [BZ #9750]
3335         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3336         * include/alloca.h (alloca_account): Define.
3337         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3338         (stackinfo_sub_sp): Define.
3340         * nscd/connections.c (nscd_init): If database file access fails
3341         check whether this is due to permission problems and bail in that
3342         case.
3344         [BZ #9741]
3345         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3346         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3348 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3350         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3351         Add "t" to clobber list.
3352         (INTERNAL_SYSCALL_NCS): Likewise.
3354 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3356         * nss/getent.c (print_networks): Don't print comma between aliases.
3358 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3360         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3362         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3363         the hash table.
3364         * misc/Makefile (tests): Add bug-hsearch1.
3365         * misc/bug-hsearch1.c: New file.
3367 2009-01-22  Roland McGrath  <roland@redhat.com>
3369         * Makeconfig (%.v.i): Strip trailing # comments,
3370         not only whole-line comments.
3372 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3374         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3375         one parameter.  If non-NULL use it to initialize return value.
3376         (_dl_setup_pointer_guard): New function.
3377         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3378         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3379         * elf/rtld.c (security_init): Pass _dl_random to
3380         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3381         pointer_chk_guard.
3382         * elf/dl-sysdep.c (_dl_random): New variable.
3383         (_dl_sysdep_start): Handle AT_RANDOM.
3384         (_dl_show_auxv): Likewise.
3385         * elf/dl-support.c (_dl_random): New variable.
3386         (_dl_aux_init): Handle AT_RANDOM.
3387         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3388         to _dl_setup_stack_chk_guard.
3390         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3392 2009-01-10  Roland McGrath  <roland@redhat.com>
3394         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3396 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3398         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3400         [BZ #9706]
3401         * nss/nss_files/files-parse.c (strtou32): New function.
3402         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3403         across 32-bit and 64-bit platforms.
3404         (INT_FIELD_MAYBE_NULL): Likewise.
3406 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3408         [BZ #9720]
3409         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3410         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3411         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3412         Likewise.
3414 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3416         [BZ #697]
3417         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3418         being NULL also if there are no backreferences.
3419         * posix/rxspencer/tests: Add testcases.
3421 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3423         [BZ #9697]
3424         * posix/bug-regex17.c: Add testcases.
3425         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3426         handling.
3428 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3430         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3431         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3432         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3433         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3434         for elf subdir.
3435         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3436         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3437         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3438         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3439         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3440         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3442 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3444         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3445         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3446         re_string_skip_chars, re_string_reconstruct): Likewise.
3447         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3449 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3451         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3452         adjust the buffer alignment.
3454 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3456         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3457         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3458         net/route.h.
3460         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3461         flavor to description only when flavor is not NULL.
3463         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3464         mutex after SIGIO/SIGURG lookup loop.
3466 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3468         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3470 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3472         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3473         handling.
3475 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3477         * sysdeps/unix/sysv/linux/kernel-features.h
3478         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3480         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3481         if no output is written.
3483         * version.h: Bump to 2.10 development.
3485         * posix/getconf.c: Update copyright year.
3486         * nss/getent.c: Likewise.
3487         * iconv/iconvconfig.c: Likewise.
3488         * iconv/iconv_prog.c: Likewise.
3489         * elf/ldconfig.c: Likewise.
3490         * catgets/gencat.c: Likewise.
3491         * csu/version.c: Likewise.
3492         * elf/ldd.bash.in: Likewise.
3493         * elf/sprof.c (print_version): Likewise.
3494         * locale/programs/locale.c: Likewise.
3495         * locale/programs/localedef.c: Likewise.
3496         * nscd/nscd.c (print_version): Likewise.
3497         * debug/xtrace.sh: Likewise.
3498         * malloc/memusage.sh: Likewise.
3499         * malloc/mtrace.pl: Likewise.
3500         * debug/catchsegv.sh: Likewise.
3502 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3504         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3505         script.
3507 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3509         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3510         gethostbyname4_r function call succeeded, just leave the loop.
3512         [BZ #9694]
3513         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3514         very end.
3515         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3516         * wctype/Makefile (tests): Add bug-wctypeh.
3517         * wctype/bug-wctypeh.c: New file.
3519         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3520         LOCALDOMAIN is defined.
3521         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3523         * sysdeps/x86_64/bits/select.h: New file.
3525         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3527 2008-12-21  Bruno Haible  <bruno@clisp.org>
3529         [BZ #9677]
3530         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3531         if no output is written.
3533 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3535         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3536         libc internal symbol __dup2 to avoid access through the PLT.
3538 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3540         [BZ #6545]
3541         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3542         available only for __USE_GNU.
3544         * inet/Makefile (tests): Add tst-getni2.
3545         * inet/tst-getni2.c: New file.
3547         [BZ #7080]
3548         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3549         NULL when NI_NAMEREQD is set.
3550         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3551         * inet/Makefile (tests): Add tst-getni1.
3552         * inet/tst-getni1.c: New file.
3554 2008-12-03  Petr Baudis  <pasky@suse.cz>
3556         [BZ #7067]
3557         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3558         instead of prune_lock.
3559         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3560         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3562 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3564         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3565         use.
3567         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3568         handling.
3570         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3571         after reading name server list.
3573         [BZ #7058]
3574         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3575         handling for host name aliases.
3577 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3579         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3580         instead of doing things manually.
3582 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3584         * posix/regex_internal.h (build_wcs_upper_buffer):
3585         Return type is reg_error_t.
3587 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3589         * posix/globtest.sh: Use mktemp to create temporary file and
3590         directory.
3592         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3593         sets correctly.
3594         (__CPU_CLR_S): Likewise.
3595         (__CPU_ISSET_S): Likewise.
3597 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3598             Ulrich Drepper  <drepper@redhat.com>
3600         * scripts/firstversion.awk: Use custom comparison function to compare
3601         version numbers.
3602         * scripts/versions.awk: Use sort invocation which can handle
3603         multi-digit sub-version numbers.
3605 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3607         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3608         * locale/iso-639.def: Add Chhattisgarhi entry.
3610 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3612         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3613         ESRCH return value.
3614         (_nss_dns_gethostbyname4_r): Likewise.
3615         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3616         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3617         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3618         the no_data variable.
3620         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3621         information at the correct index.
3623         * socket/sys/socket.h: Declare accept4.
3624         * socket/accept4.c: New file.
3625         * sysdeps/unix/sysv/linux/accept4.c: New file.
3626         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3627         * socket/Makefile (routines): Add accept4.
3628         * socket/Versions: Export accept4 with version GLIBC_2.10.
3629         * socket/paccept.c: Removed.
3630         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3631         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3632         * Versions.def: Define GLIBC_2.10 for libc.
3633         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3635         * nscd/connections.c: Use accept4.
3637         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3639 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
3641         * resolv/res_send.c (send_dg): Create sockets with non-blocking
3642         flag already set.
3644         * stdlib/setenv.c (unsetenv): Don't search environment if it does
3645         not exist.
3646         * stdlib/Makefile (tests): Add tst-unsetenv1.
3647         * stdlib/tst-unsetenv1.c: New file.
3649 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
3651         * login/utmp_file.c (file_writable): New variable.
3652         (setutent_file): Don't try to open file for writing.
3653         (pututline_file): Before writing, make descriptor writable if
3654         necessary.
3656 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
3658         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3659         to IPv4 or IPv6 if an interface has been found.
3661 2008-11-26  Roland McGrath  <roland@redhat.com>
3663         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3664         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3666         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3667         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3668         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3670         * elf/elf.h (NT_386_IOPERM): New macro.
3671         (NT_PPC_VSX): New macro.
3673 2008-11-25  Roland McGrath  <roland@redhat.com>
3675         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3676         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3677         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3678         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3679         Subdirectories moved to ports repository.
3680         * configure.in (base_machine): Remove alpha case.
3682 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
3684         * sysdeps/mach/strerror_l.c: New file.
3686 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
3688         [BZ #6411]
3689         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3690         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3691         magic numbers.
3692         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3693         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3694         (relax_fenv_state): Same as above.
3695         (FPSCR_29): Reserve bit in ISA 2.05.
3696         (FPSCR_NI): Provide define for compat.
3697         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3698         magic numbers.
3699         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3700         magic numbers.
3701         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
3702         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3703         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3704         access to hwcap to account for hwcap size increase to uint64_t.
3705         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3706         Likewise.
3707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3708         (*setcontext): Likewise.
3709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3710         New file.
3711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3712         New file.
3713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3714         (*setcontext): dynamically select mtfsf insn based on
3715         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3716         increase to uint64_t.
3717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3718         (*swapcontext): dynamically select mtfsf insn based on
3719         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
3720         increase to uint64_t.
3721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3722         New file.
3723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3724         New file.
3725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3726         (*setcontext): dynamically select mtfsf insn based on
3727         PPC_FEATURE_HAS_DFP.
3728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3729         (*swapcontext): dynamically select mtfsf insn based on
3730         PPC_FEATURE_HAS_DFP.
3732 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
3734         * version.h: Bump for 2.9 release.
3735         * include/features.h (__GLIBC_MINOR__): Bump to 9.
3737         [BZ #7029]
3738         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3739         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3740         all the rounding.
3742 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
3744         [BZ #7009]
3745         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3746         unknown request types for now.
3748 2008-11-11  Roland McGrath  <roland@redhat.com>
3750         * sysdeps/x86_64/configure: New file.
3752         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3753         * configure: Regenerated.
3755 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3757         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3758         correct instruction to remove the stack frame.
3760 2008-11-03  Michael Matz  <matz@suse.de>
3762         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3763         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3765 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
3767         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3768         Remove.
3770         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3771         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3772         of the thread variable instead of void *.
3773         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3774         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3775         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3776         __libc_tsd_define arguments.
3777         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3778         __libc_tsd_address arguments.  Remove union hack.
3779         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3780         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3781         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3782         Adjust __libc_tsd_{set,get} arguments.
3783         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3784         __libc_tsd_define arguments.
3785         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3786         arguments.
3787         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3788         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3789         (LOCALE): Adjust __libc_tsd_define arguments.
3790         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3791         arguments.
3792         (LOCALE): Adjust __libc_tsd_define arguments.
3793         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3794         arguments.
3795         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3796         arguments.
3798 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
3800         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3801         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3803 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
3805         [BZ #6966]
3806         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3808 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
3809             Ulrich Drepper  <drepper@redhat.com>
3811         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3812         definition for GCC 3.1 and later.
3814 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
3816         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3817         refetch dtv, as it might have changed.
3818         * elf/Makefile: Add rules to build and run tst-tls18.
3819         * elf/tst-tls18.c: New test.
3820         * elf/tst-tlsmod18a.c: New file.
3822 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
3824         [BZ #6875]
3825         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3827 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3829         [BZ #6867]
3830         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3832         [BZ #6919]
3833         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3834         Fix length of copy operation.
3836 2008-10-02  Pierre Habouzit <madcoder@debian.org>
3838         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3839         and fix its calling convention.
3841 2008-10-07  Andreas Schwab  <schwab@suse.de>
3843         [BZ #6942]
3844         * resolv/res_send.c (send_vc): Fix last change.
3845         (send_dg): Align here as well.
3847 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3849         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3850         return value in case rlimit is RLIM_INFINITY.
3852         [BZ #6947]
3853         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3854         for UL_SETFSIZE.
3855         * resource/Makefile (tests): Add bug-ulimit1.
3856         * resource/bug-ulimit1.c: New file.
3858         [BZ #6974]
3859         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3860         without dot.  Properly terminate the string with a null byte.
3861         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3863         [BZ #6980]
3864         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3865         negative sizees.
3866         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3867         negative __size.
3869         [BZ #6995]
3870         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3872 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
3874         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3875         abort if there is no initgroups_dyn function.
3877         * resolv/res_send.c (send_dg): On timeout, only return nonzero
3878         result if any of the queries really provided an answer.
3880 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
3882         * po/lt.po: Update from translation team.
3884 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
3886         * po/id.po: Update from translation team.
3888 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
3890         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3891         Fix tests for existence of second reply.
3893 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
3895         * po/id.po: New file.
3896         Contributed by the Indonesian translation team.
3898 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
3900         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3901         initialization.
3903 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
3905         * elf/Makefile: Add rules to build and run tst-tls17.
3906         * elf/tst-tls17.c: New test.
3907         * elf/tst-tlsmod17a.c: New file.
3908         * elf/tst-tlsmod17b.c: Likewise.
3910 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
3912         * stdlib/divmod_1.c: Use correct type for dummy variable.
3913         * stdlib/mod_1.c: Likewise.
3915 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
3917         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3919 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
3921         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3922         __nonnull order for C++.
3923         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3924         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3926 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
3928         * stdlib/longlong.h: Update from GCC.
3930 2008-10-09  Jakub Jelinek <jakub@redhat.com>
3931             David S. Miller  <davem@davemloft.net>
3933         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3934         make sure any registers used with 64-bit 'branch-on-register'
3935         instructions have their top 32-bits clear.
3936         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3937         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3939 2008-09-18  Andreas Schwab  <schwab@suse.de>
3941         [BZ #6942]
3942         * resolv/res_send.c (send_vc): Fix use of unaligned address.
3943         Properly handle partial reads.
3945 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
3947         * elf/elf.h (STO_MIPS_PLT): New.
3948         (R_MIPS_COPY): New.
3949         (R_MIPS_JUMP_SLOT): New.
3950         (R_MIPS_NUM): Redefine to 128.
3951         (DT_MIPS_PLTGOT): New.
3952         (DT_MIPS_RWPLT): New.
3953         (DT_MIPS_NUM): Redefine to 0x35.
3955 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
3957         * timezone/africa: Update from tzdata2008f.
3958         * timezone/asia: Likewise.
3959         * timezone/australasia: Likewise.
3960         * timezone/europe: Likewise.
3961         * timezone/leapseconds: Likewise.
3962         * timezone/northamerica: Likewise.
3963         * timezone/southamerica: Likewise.
3964         * timezone/zone.tab: Likewise.
3966 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
3968         * nscd/connections.c: Disable use of paccept for now.
3970 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
3972         * socket/Versions: Remove paccept export for GLIBC_2.9.
3973         * socket/Makefile (routines): Remove paccept.
3974         * socket/sys/socket.h: Remove paccept declaration.
3976         * po/sv.po: Update from translation team.
3978 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
3980         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3981         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3983 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
3985         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3986         Patch by Olivier Fourdan <ofourdan@redhat.com>.
3988 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
3990         * sunrpc/rpc/svc.h: Declare svcfd_create.
3991         Patch by Michael Solberg <msolberg@redhat.com>.
3993 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
3994             Ulrich Drepper  <drepper@redhat.com>
3996         * malloc/malloc.c (public_vALLOc): Try other arenas in case
3997         _int_valloc fails.
3998         (public_pVALLOc): Likewise.
4000 2008-09-02  Andreas Jaeger  <aj@suse.de>
4002         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4003         commit.
4005 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4007         [BZ #6860]
4008         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4010 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4012         * Makefile (check-data): Check data directory in add-ons.
4013         * elf/Makefile (check-data): Likewise.
4015 2008-08-18  Roland McGrath  <roland@redhat.com>
4017         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4018         * configure: Regenerated.
4019         * config.make.in (cflags-cpu): New substituted variable.
4020         (with-cpu): Variable removed.
4021         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4023 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4025         [BZ #6845]
4026         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4027         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4028         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4029         redundant.  Functions which call floating point assembler operations
4030         should go into a sysdeps powerpc/fpu directory.
4032 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4034         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4035         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4037 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4039         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4041         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4042         change related to AT_EXECFN.  We cannot use that string.
4043         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4044         _dl_execfn member.
4045         * elf/dl-support.c: Remove _dl_execfn variable.
4046         (_dl_aux_init): Remove handling of AT_EXECFN.
4047         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4048         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4050 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4052         [BZ #6544]
4053         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4054         byte gets added to writes and seeks from the end use the length of
4055         the buffer and not the currently terminating NUL byte.
4057         [BZ #6634]
4058         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4059         Set to true if locking failed.
4060         (getutid_r_file): Adjust caller.
4061         (pututline_file): Likewise.  Return NULL in this case.
4062         Patch mostly by halesh.s@gmail.com.
4064 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4066         [BZ #6589]
4067         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4068         Define.
4069         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4071 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4073         [BZ #6839]
4074         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4075         macro since it is now available in elf/dynamic-link.h.
4077 2008-08-12  Roland McGrath  <roland@frob.com>
4079         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4080         in case used outside of libc.
4081         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4083 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4085         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4086         directly instead of going through dn_comp.
4088 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4090         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4091         Fix asm constraints.
4093 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4095         [BZ #6790]
4096         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4097         (IPV6_PMTUDISC_PROBE): Likewise.
4099 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4101         [BZ #6791]
4102         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4104 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4105             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4107         [BZ #6817]
4108         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4109         Added the members 'vsx' and 'arch_2_06'.
4110         (_dl_powerpc_platforms): Add the member 'power7'.
4111         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4112         to reflect the changes required by VSX and ISA 2.06.
4113         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4114         'power7'.
4115         Defined PPC_PLATFORM_POWER7.
4116         (_dl_string_platform): Add support for POWER7.
4117         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4118         capability and ISA 2.06.
4120 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4122         [BZ #6824]
4123         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4124         macro to detect use of 128 bit long double.
4125         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4127 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4129         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4131         [BZ #5794]
4132         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4133         parameters.
4134         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4135         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4137 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4139         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4140         guaranteed to be large enough to read inotify event.  Ignore
4141         EAGAIN error.  Better error message.  Add branch predicition.
4142         (main_loop_epoll): Likewise.
4144 2008-08-02  Roland McGrath  <roland@frob.com>
4146         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4147         Add memory clobbers.
4149 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4151         * manual/arith.texi: Avoid @strong{Note:}.
4152         * manual/creature.texi: Likewise.
4153         * manual/filesys.texi: Likewise.
4154         * manual/math.texi: Likewise.
4155         * manual/memory.texi: Likewise.
4156         * manual/resource.texi: Likewise.
4157         * manual/syslog.texi: Likewise.
4158         * manual/time.texi: Likewise.
4160         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4161         to prevent warning.
4163 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4165         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4166         new epoll_create1 interface.
4167         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4168         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4169         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4171         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4172         (NS_GET32): Likewise.
4174         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4175         syscalls, too.
4177         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4178         use the AT_EXECFN value if it is no absolute path.
4179         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4180         __ASSUME_AT_EXECFN.
4182         * Versions.def: Add GLIBC_2.9 to libresolv.
4183         * include/resolv.h: Remove hidden proto declarations for __ns_*
4184         functions.  Add them for __dn_count_labels and __p_secstodate.
4185         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4186         Define ns_msg_getflags macro here.
4187         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4188         and __p_secstodate.
4189         * resolv/Versions: Export functions from <arpa/nameser.h> from
4190         libresolv in version GLIBC_2.9.
4191         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4192         hidden definitions.
4193         * resolv/ns_netint.c: Likewise.
4194         * resolv/ns_parse.c: Likewise.
4195         * resolv/ns_print.c: Likewise.
4196         * resolv/ns_samedomain.c: Likewise.
4197         * resolv/ns_ttl.c: Likewise.
4198         * resolv/arpa/nameser_compat.h: Likewise.
4199         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4200         function calls.
4201         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4202         instead of ns_get16.
4203         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4204         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4205         (gaih_getanswer_slice): Likewise.
4206         * resolv/Makefile (libresolv-routines): Add ns_date.
4207         * resolv/ns_date.c: New file.
4209         * elf/Makefile (check-localplt.out): Also check libresolv and
4210         libcrypt.
4212 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4214         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4215         __ASSUME_O_CLOEXEC.
4217 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4219         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4220         buffer passed to NSS functions.
4222         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4224         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4225         Define.
4227         * misc/syslog.c (openlog_internal): Fix compile problem.
4229 2008-07-28  Roland McGrath  <roland@redhat.com>
4231         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4233 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4235         * io/ftw.c (add_object): Remove inline to avoid warning.
4237         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4239         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4240         Use it instead of locally defined resplen2 variable.
4241         (res_nsend): Adjust for __libc_res_nsend interface change.
4242         (send_vc): Initialize *resplen2 if necessary.  Read length of
4243         package into an appropriately aligned variable.  Store converted length
4244         in new variable and use it appropriately.
4245         Add branch prediction help.
4246         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4247         and pass it on to __libc_res_nsend.  Adjust all callers.
4248         (__libc_res_nsearch): Likewise.
4249         (__libc_res_nqeurydomain): Likewise.
4250         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4251         change.
4252         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4253         Define resplen2 variable and pass it to __libc_res_nsearch and then
4254         to gaih_getanswer.
4255         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4256         Add branch prediction.
4257         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4258         (gaih_getanswer): Don't decode second slice if first one failed due
4259         to a too small buffer.  Don't let not found status of second
4260         decoder shadow results of the first.
4261         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4262         and __libc_res_nquery interface changes
4263         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4264         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4265         __libc_res_nsearch, and __libc_res_nsend.
4266         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4267         change.
4268         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4269         __libc_res_nsearch interface changes.
4271 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4273         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4275         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4276         file descriptors with close-on-exec set.
4277         (exec_comm_child): Fix the case where the write end of the pipe is
4278         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4280         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4281         * io/pipe2.c: Likewise.
4282         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4283         instead of __ASSUME_PACCEPT.
4284         * include/unistd.h: Declare __have_pipe2.
4285         * libio/iopopen.c: Implement "e" flag.
4286         * libio/Makefile (tests): Add tst-popen1.
4287         * libio/tst-popen1.c: New file.
4289         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4290         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4292 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4294         [BZ #6771]
4295         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4296         success call of _IO_SEEKOFF or calls which failed because the
4297         descriptor is for a pipe.
4299         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4300         magic number.
4302         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4304         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4305         F_SETFD use if we know fopen set the flag.
4307         * login/utmp_file.c (setutent_file): Minor optimization in case
4308         O_CLOEXEC is available.
4310 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4312         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4313         * elf/Makefile: Use pie-ccflag variable.
4314         * nscd/Makefile: Likewise.
4315         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4317 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4319         [BZ #6724]
4320         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4321         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4322         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4323         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4324         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4325         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4326         utmp32, utmpx32 and login32.
4327         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4328         versions of struct utmp functions to libc and libutil.
4329         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4330         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4331         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4332         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4333         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4334         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4335         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4336         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4337         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4338         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4339         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4340         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4341         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4342         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4343         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4344         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4345         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4346         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4347         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4348         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4349         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4350         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4352 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4354         * scripts/gen-as-const.awk: Generate more widely usable code by
4355         using 64-bit arithmetic.
4357         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4358         the same treatment as narrow output code in last patch.
4360         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4362         [BZ #6763]
4363         * elf/dl-load.c (local_strdup): Remove inline.
4364         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4365         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4366         part of the object.
4368         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4370 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4372         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4373         the new syscalls, too.
4375         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4376         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4378         [BZ #6698]
4379         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4380         parameter for end of buffer.  If temporary copy is too large use
4381         malloc.
4382         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4383         interface change.
4384         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4385         string rewrite when allocating buffer.
4387         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4388         syscalls, too.
4390         * nscd/connections.c (nscd_init): Clean up fcntl call.
4392         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4393         SOCK_NONBLOCK if possible.
4395         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4396         SOCK_CLOEXEC if available.
4398         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4399         __libc_clntudp_bufcreate_internal.
4400         * include/sys/socket.h: Declare __have_sock_cloexec.
4401         * socket/Makefile (aux): Add have_sock_cloexec.
4402         * socket/have_sock_cloexec.c: New file.
4403         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4404         __libc_clntudp_bufcreate.
4405         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4406         which takes an additional parameter.  Create socket with non-blocking
4407         mode and close-on-exec flag set, if wanted.
4408         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4409         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4410         instead of clntudp_create.  The socket has already the close-on-exec
4411         flag set if SOCK_CLOEXEC is defined.
4413 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4415         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4416         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4417         appropriate.
4418         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4419         non-blocking mode by using socket, paccept, and inotify_init1.
4421         * Versions.def (glibc): Add GLIBC_2.9.
4422         * io/Makefile (routines): Add dup3 and pipe2.
4423         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4424         * io/dup3.c: New file.
4425         * io/pipe2.c: New file.
4426         * posix/unistd.h: Declare dup3 and pipe2.
4427         * socket/Makefile (routines): Add paccept.
4428         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4429         * socket/paccept.c: New file.
4430         * socket/sys/socket.h: Declare paccept.
4431         * sysdeps/unix/syscalls.list: Add entry for dup3.
4432         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4433         epoll_create2 and inotify_init1.
4434         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4435         * sysdeps/unix/sysv/linux/paccept.c: New file.
4436         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4437         possible.
4438         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4439         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4440         inotify_init1, and pipe2 entries.
4441         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4442         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4443         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4444         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4445         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4446         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4447         SOCK_NONBLOCK.
4448         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4449         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4450         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4451         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4452         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4453         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4454         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4455         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4456         EPOLL_NONBLOCK.  Declare epoll_create2.
4457         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4458         EFD_NONBLOCK.
4459         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4460         IN_NONBLOCK.  Declare inotify_init1.
4461         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4462         SFD_NONBLOCK.
4463         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4464         TFD_NONBLOCK.
4466         * elf/elf.h: Define AT_EXECFN.
4467         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4468         LD_ORIGIN_PATH.
4469         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4470         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4471         if __ASSUME_AT_EXECFN is defined.
4472         (_dl_aux_init): Handle AT_EXECFN.
4473         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4474         for 2.6.27 and up.
4475         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4476         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4477         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4478         _dl_execfn if available and avoid compatibility code if
4479         __ASSUME_AT_EXECFN is defined.
4481         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4482         _dl_discover_osversion only for older kernels.
4484 2008-07-22  Roland McGrath  <roland@frob.com>
4486         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4488 2008-07-21  Roland McGrath  <roland@frob.com>
4490         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4491         returned too much data out of line.
4493 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4495         * locale/setlocale.c (setname): Remove inline to avoid compiler
4496         warning.
4498         [BZ #6712]
4499         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4501 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4503         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4504         doesn't manage to write anything, fail.
4506         * malloc/hooks.c (__malloc_check_init): Remove printf.
4508 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4510         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4512 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4514         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4515         from inotify.
4516         (main_loop_epoll): Likewise.
4518 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4520         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4522         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4523         if DEBUG is defined.
4525         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4526         query.  Adjust buffer size computation for padding.
4528 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4530         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4531         * stdio-common/tst-setvbuf1.c: New file.
4532         * stdio-common/tst-setvbuf1.expect: New file.
4534         [BZ #6719]
4535         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4536         when selecting fully-buffered stream.
4537         Patch by Wang Xin <wxinee@gmail.com>.
4539 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4541         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4542         (__open_2): New function.
4543         (__open64_2): New alias to __open_2.
4544         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4545         (__openat_2): New function.
4546         (__openat64_2): New alias to __openat_2.
4548 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4550         [BZ #6723]
4551         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4553 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4555         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4556         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4557         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4558         __hurd_dfail.
4559         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4560         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4561         * sysdeps/mach/hurd/send.c (__send): Likewise.
4562         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4563         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4565 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4567         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4568         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4569         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4570         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4571         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4572         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4574 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4576         [BZ #6657]
4577         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4578         of %EY.
4579         Patch by Petr Baudis.
4581 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4583         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4584         Patch by Peter Jones <pjones@redhat.com>.
4586 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4588         [BZ #6654]
4589         * stdlib/canonicalize.c (__realpath): readlink can write too much
4590         into the buffer on platforms without PATH_MAX.
4592 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4594         [BZ #6653]
4595         * posix/tst-regex.c (main): Rename to...
4596         (do_test): ... this. Remove cmdline option processing.
4597         (TIMEOUT): Define.
4598         (TEST_FUNCTION): Define.
4599         (CMDLINE_OPTIONS): Define.
4601 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4603         [BZ #5210]
4604         * configure.in: Add -Werror to -fstack-protector test to catch
4605         unsupported architectures.
4606         Patch by Gilles Esponasse <g.esp@free.fr>.
4608 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4610         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4611         getcontext returns ENOSYS.
4613 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4615         * nscd/connections.c (main_loop_poll): Fix test for read error.
4616         (main_loop_epoll): Likewise.
4618 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4620         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4621         better place so it is not called when nscd is used.
4623         * nscd/connections.c: Also recognize and handle changes to the
4624         resolver configuration file.
4626 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4628         * time/strftime.c: Pass reference to tzset_called around to handle
4629         recursive calls.
4631         [BZ #6612]
4632         * time/strftime.c (__strftime_internal): Call tzset() only
4633         when printing timezone-dependent values.
4634         Based on a patch by Petr Baudis <pasky@suse.cz>.
4636         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4637         unconditionally use second gaih_getanswer_slice result.
4639         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4640         (getaddrinfo): RES must always be non-NULL.
4642 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4644         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4645         cr[34] registers.
4646         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4647         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4648         Likewise.
4649         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4650         register.
4652 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4654         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4655         fields.
4656         * nscd/connections.c (inotify_fd): New variable.
4657         (nscd_init): Try to open an inotify descriptor.
4658         If successful, watch files for databases using inotify instead of
4659         having prune threads stat the files.
4660         (nscd_run_prune): Recognize clear_cache flag being set and call
4661         prune_cache appropriately.
4662         (main_loop_poll): Add inotify descriptor to wait set and handle the
4663         reported changes.
4664         (main_loop_epoll): Likewise.
4665         * nscd/cache.c (prune_cache): Don't stat files for databases if
4666         inotify is used.
4667         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4668         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4670         * nscd/grpcache.c (cache_addgr): Correctly compute size of
4671         fixed-size portion of the record.
4672         * nscd/servicescache.c (cache_addserv): Likewise.
4673         * nscd/pwdcache.c (cache_addpw): Likewise.
4674         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4676 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
4678         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4679         out we don't use uninitialized memory.
4681         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4682         the client.
4684 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
4686         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4687         ignore T_DNAME messages.
4688         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4690 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
4692         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4693         Avoid segfault if first GETC returns eof/'\0'/'\n'.
4695 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
4697         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4698         instead of portstr to nscd_getserv_r.  Patch by
4699         Roman Kagan <rkagan@mail.ru>.
4701 2008-05-26  Jim Meyering  <meyering@redhat.com>
4703         Remove more useless "if" tests before "free".
4704         * include/inline-hashtab.h (htab_delete): Likewise.
4705         * libio/freopen.c (freopen): Likewise.
4706         * libio/freopen64.c (freopen64): Likewise.
4707         * locale/programs/ld-collate.c (collate_read): Likewise.
4708         * misc/fstab.c (libc_freeres_fn): Likewise.
4709         * posix/glob.c (globfree): Likewise.
4711 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4713         * string/Makefile (strop-tests): Add memmem.
4714         * string/test-memmem.c: New file.
4715         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4716         (test_init): Size buf1 according to BUF1PAGES.
4718 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
4720         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4721         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4722         (CFLAGS-scanf17.c): New.
4723         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4724         * stdio-common/scanf15.c (main): Likewise.
4725         * stdio-common/scanf16.c: New file.
4726         * stdio-common/scanf17.c: New file.
4728 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4730         * resolv/res_send.c (send_dg): If we already have one of two
4731         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4732         use the one answer insted of failing.
4734 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
4736         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4737         being executed on PowerPC as the expected result exceeds IBM
4738         long double 128 __LDBL_MAX__.
4740 2008-05-21  Roland McGrath  <roland@redhat.com>
4742         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4744         * Makefile (check-data): Use $(abi-name) before other guesses.
4745         Look in $(add-ons) dirs before scripts/data/.
4746         * elf/Makefile (check-data): Likewise.
4748         * scripts/soversions.awk: Grok ABI line.
4749         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4750         Emit definition for abi-name variable.
4752 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
4754         * string/endian.h: Define new fixed-size hto* and *toh macros only
4755         if [__USE_BSD].
4757         * iconvdata/Depend: Add localedata.
4759 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4761         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4763 2008-05-08  David S. Miller  <davem@davemloft.net>
4765         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4766         HIDDEN_JUMPTARGET.
4767         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4768         (__SYSCALL_CLOBBERS): Remove %g* registers.
4769         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4770         (__SYSCALL_CLOBBERS): Likewise.
4771         * scripts/data/localplt-sparc-linux-gnu.data: New file.
4772         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4774 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
4776         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4777         (CALL_ERRNO_LOCATION): Define.
4778         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4779         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4780         (CALL_ERRNO_LOCATION): Define.
4781         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4782         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4783         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4785 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
4787         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4788         variable.
4790 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
4792         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4793         (FIRST_FRAME_POINTER): Define.
4795 2008-05-09  David S. Miller  <davem@davemloft.net>
4797         * sysdeps/sparc/sparc64/backtrace.c: New file.
4799 2008-05-14  David S. Miller  <davem@davemloft.net>
4801         * sysdeps/sparc/machine-gmon.h: New file.
4802         * sysdeps/sparc/sparc-mcount.S: Likewise.
4803         * sysdeps/sparc/Makefile: Add sparc-mcount target to
4804         sysdep_routines in gmon directory.
4806 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
4808         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4810 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
4812         * resolv/res_query.c (__libc_res_nquery): In case one of two
4813         answer was too short don't try to read that answer's header.
4815         * resolv/res_send.c (send_dg): In case of timeout and there are
4816         two queries and one has been answered, return value indicating
4817         success.
4819 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
4821         * nscd/cache.c (cache_add): Take additional parameter specifying
4822         whether this is in response of a cache refill.  Check alignment
4823         of package data.  Revamp waking of pruning thread.
4824         (prune_cache): Small optimization.
4825         * nscd/nscd.h: Adjust cache_add prototypes.
4826         * nscd/aicache.c: Adjust cache_add calls.
4827         * nscd/grpcache.c: Likewise.
4828         * nscd/hstcache.c: Likewise.
4829         * nscd/initgrcache.c: Likewise.
4830         * nscd/pwdcache.c: Likewise.
4831         * nscd/servicescache.c: Likewise.
4832         * nscd/connections.c (restart): Really disable cache use before
4833         exec attempt.  If it fails, reenable cache.
4834         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
4835         time to max to be able to notice concurrent cache additions.  Unlock
4836         prune_lock while performing gc.  Afterwards compute wakeup time with
4837         current wakeup_time value in mind.
4839 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
4841         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4843         * nscd/mem.c (gc): Correctly determine highest used array element
4844         in mark.
4846         * nscd/mem.c (markrange): Add assert to check entries are all
4847         aligned.  Small cleanup in bitmap use.
4849         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4850         blockoff of type nscd_ssize_t.
4851         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4852         (mempoll_alloc): Record block offset and not address.
4854         * nscd/mem.c (gc): Fix test for stack overuse.
4856         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4857         more asserts.
4859         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4860         entry is available, believe it.
4862         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4863         no answers return NSS_STATUS_NOTFOUND.
4864         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4865         buffer does not have any content.
4867 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
4869         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4871         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4872         lookup, don't assign canon unconditionally.
4874 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4876         * string/Makefile (distribute): Add str-two-way.h.
4878 2008-03-29  Eric Blake  <ebb9@byu.net>
4880         Rewrite string searches to O(n) rather than O(n^2).
4881         * string/str-two-way.h: New file.  For linear fixed-allocation
4882         string searching.
4883         * string/memmem.c: New implementation.
4884         * string/strstr.c: New implementation.
4885         * string/strcasestr.c: New implementation.
4887 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
4889         * posix/regcomp.c (optimize_utf8): Add a note on why we test
4890         opr.ctx_type.
4891         (calc_first): Initialize constraint field.
4892         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4893         Use search_duplicated_node to avoid loops.  Fix grammar.
4894         (duplicate_node): Merge constraint field for all node types.
4895         (calc_eclosure_iter): Look at constraint field for all node types.
4896         * posix/regex_internal.c (create_cd_newstate): Don't look at
4897         create_cd_newstate.
4899 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4901         [BZ #6428]
4902         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4904         [BZ #6442]
4905         * string/endian.h: Add macros for fixed-size endian conversion.
4906         * bits/byteswap.h: Allow inclusion from <endian.h>.
4907         * sysdeps/i386/bits/byteswap.h: Likewise.
4908         * sysdeps/ia64/bits/byteswap.h: Likewise.
4909         * sysdeps/s390/bits/byteswap.h: Likewise.
4910         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4911         * string/Makefile (tests): Add tst-endian.
4912         * string/tst-endian.c: New file.
4914         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4915         Patch by Reuben Thomas.
4917 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
4919         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4921 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4923         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4925         [BZ #6461]
4926         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4927         Add missing braces.
4928         (BODY for __gconv_transform_internal_ascii): Likewise.
4930         [BZ #6472]
4931         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4932         to be treated like link-local addresses.
4933         (match_prefix): Don't treat IPv4 loopback address special when
4934         converting to v4 mapped addressed.
4936         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4937         if necessary.
4938         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4939         * posix/tst-rfc3484-2.c: Likewise.
4940         * posix/tst-rfc3484-3.c: Likewise.
4942         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4943         and SCTP.
4945         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4947         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4949         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4951 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
4953         * po/lt.po: New file.  From Lituanian translation team.
4955 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
4957         Introduce TLS descriptors for i386 and x86_64.
4958         * include/inline-hashtab.h: New file, copied from 2005's
4959         libiberty, with fix for memory leak imported afterwards by
4960         Glauber de Oliveira Costa.
4961         * elf/tlsdeschtab.h: New file.
4962         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4963         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
4964         (CHECK_STATIC_TLS): Move to...
4965         * elf/dynamic-link.h: ... this file.
4966         (TRY_STATIC_TLS): New macro.
4967         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4968         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4969         R_386_TLS_DESC): Define.
4970         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4971         binutils.
4972         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4973         R_X86_64_TLSDESC): Define.
4974         (R_386_NUM, R_X86_64_NUM): Adjust.
4975         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4976         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4977         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4978         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4979         release tlsdesc_table.
4980         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4981         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4982         (elf_machine_rel): Handle R_386_TLS_DESC.
4983         (elf_machine_rela): Likewise.
4984         (elf_machine_lazy_rel): Likewise.
4985         (elf_machine_lazy_rela): Likewise.
4986         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4987         * sysdeps/i386/dl-tlsdesc.S: New file.
4988         * sysdeps/i386/dl-tlsdesc.h: New file.
4989         * sysdeps/i386/tlsdesc.c: New file.
4990         * sysdeps/i386/tlsdesc.sym: New file.
4991         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4992         tlsdesc_table.
4993         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4994         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4995         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4996         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4997         release tlsdesc_table.
4998         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4999         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5000         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5001         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5002         (elf_machine_rela): Likewise.
5003         (elf_machine_lazy_rel): Likewise.
5004         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5005         (__tls_get_addr): Do not declare for non-shared compiles.
5006         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5007         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5008         * sysdeps/x86_64/tlsdesc.c: New file.
5009         * sysdeps/x86_64/tlsdesc.sym: New file.
5010         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5011         tlsdesc_table for both 32- and 64-bit structs.
5013 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5015         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5016         its own function.  This reduces the frame setup costs and more.
5018 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5020         [BZ #3406]
5021         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5022         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5024 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5026         * io/openat.c (__openat_2): Also pass fd to __openat.
5027         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5028         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5030         * string/tester.c (test_memcmp): Add a few more tests.
5031         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5033 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5035         * nscd/cache.c (cache_add): Before returning with failure and this
5036         is the first use of the record, mark it as unusable.
5037         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5038         reporting a failure.
5039         * nscd/grpcache.c: Likewise
5040         * nscd/hstcache.c: Likewise.
5041         * nscd/initgrcache.c: Likewise.
5042         * nscd/pwdcache.c: Likewise.
5043         * nscd/servicescache.c: Likewise.
5045 2008-05-10  Roland McGrath  <roland@redhat.com>
5047         [BZ #6505]
5048         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5050 2008-05-08  David S. Miller  <davem@davemloft.net>
5052         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5054         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5055         (__ieee754_y0l): Likewise.
5056         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5057         (__ieee754_y1l): Likewise.
5058         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5059         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5060         frexpl and ldexpl.  math_private.h provides them and the latter
5061         is not even used.
5062         (__log1pl): Use __frexpl.
5064 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5066         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5067         prototypes.
5068         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5069         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5070         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5071         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5072         af==AF_UNSPEC.
5073         (_nss_nis_gethostbyname4_r): New function.
5074         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5075         Change to also handle af==AF_UNSPEC.
5076         (get_tablename): New function.  Use it to avoid duplication.
5077         (_nss_nisplus_gethostbyname4_r): New function.
5078         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5079         available.
5080         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5081         * nss/nss.h: Define struct gaih_addrtuple.
5082         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5083         af==AF_UNSPEC.
5084         (_nss_files_gethostbyname4_r): New function.
5085         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5086         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5087         calls.
5088         * resolv/res_query.c (__libc_res_nquery): Take two additional
5089         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5090         look up IPv4 and IPv6.
5091         Change all callers.
5092         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5093         for an additional query and answer buffer.  Pass to send_vc and
5094         send_dg.
5095         (send_vc): Send possibly two requests and receive two answers.
5096         (send_dg): Likewise.
5097         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5098         __libc_res_nquery.
5099         (_nss_dns_gethostbyname4_r): New function.
5100         (gaih_getanswer_slice): Likewise.
5101         (gaih_getanswer): Likewise.
5102         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5103         __libc_res_nquery call.
5104         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5105         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5106         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5107         available.
5109 2008-05-05  David S. Miller  <davem@davemloft.net>
5111         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5112         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5114 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5116         Fix termios bit macros.
5117         Move *DLY definitions where they belong, in termios.h.
5118         Add *[0-3] definitions.
5119         Fixes confusion between VT and FF.
5120         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5121         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5122         are already defined to avoid collision with termios.h.
5123         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5124         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5125         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5126         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5127         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5128         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5129         VTDLY, VT0, VT1): New macros.
5130         [__USE_GNU] (OLCUC): Change value of macro.
5131         [__USE_XOPEN] (OFILL): New macro.
5132         [__USE_BSD] (CRTSCTS): Change value.
5133         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5134         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5135         (B7200, B14400, B28800, B76800): New macros.
5137 2008-05-01  David S. Miller  <davem@davemloft.net>
5139         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5140         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5141         (gen-as-const-headers): Add it.
5142         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5143         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5144         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5145         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5147         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5148         six system call parameters.
5149         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5151 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5153         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5154         RUSAGE_LWP.
5155         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5156         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5158 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5160         * stdlib/tst-setcontext.c: Include unistd.h.
5162 2008-04-25  David S. Miller  <davem@davemloft.net>
5164         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5165         Pass "union semun" properly in to sys_ipc, it must be passed
5166         by value, not by reference.
5168 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5170         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5171         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5172         * nscd/connections.c (mem_in_flight): Likewise.
5174         * nscd/nscd.h (dbs): Make hidden.
5176         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5177         Avoid returning -1, return 0 instead.
5179 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5181         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5183 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5185         [BZ #5209]
5186         * sysdeps/unix/sysv/linux/times.c: New file.
5188         [BZ #5381]
5189         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5190         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5191         prototype.
5192         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5193         appropriate mem_in_flight element.
5194         (gc): Take allocations which have not yet been committed to the
5195         database into account.
5196         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5197         Reset mem_in_flight before returning.
5198         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5199         cue it up in mem_in_flight_list.
5200         * nscd/aicache.c: Adjust mempool_alloc call.
5201         * nscd/grpcache.c: Likewise.
5202         * nscd/hstcache.c: Likewise.
5203         * nscd/initgrcache.c: Likewise.
5204         * nscd/pwdcache.c: Likewise.
5205         * nscd/servicescache.c: Likewise.
5206         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5207         of -fpie.
5209         * nscd/connections.c (handle_request): Provide better error message
5210         in case SELinux forbids the service.
5212         * version.h (VERSION): Bump to 2.8.90.
5214 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5216         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5218 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5220         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5221         Also use for 32-bit.
5222         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5223         __nextafter instead of nextafter to avoid local PLT.
5224         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5225         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5227         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5229         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5230         __fe_nomask_env.
5231         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5232         <fenv_libc.h> instead of <fenv.h>.
5233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5236         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5238         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5239         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5240         function from fegetexcept and make old name weak alias.
5241         * include/fenv.h: Declare __fegetexcept.
5242         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5243         fegetexcept.
5244         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5245         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5246         to fetestexcept.
5247         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5248         instead of frexpl to avoid local PLT.
5249         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5250         ilogbl to avoid local PLT.
5251         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5252         instead of ldexpl to avoid local PLT.
5253         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5254         __roundl not roundl to avoid local PLT.
5255         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5256         local PLTs.  Use __sincosl instead of separate sinl and cosl
5257         calls.
5258         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5260         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5261         version for ppc64 to 2.4.21 since without it makecontext will fail.
5263         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5264         to the ABI in use.
5265         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5266         .__tls_get_addr.
5267         [__powerpc64__] (TLS_GD): Likewise.
5269 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5271         [BZ #4997]
5272         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5273         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5274         mantissa.
5275         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5276         Likewise.  Also account for when x is an odd number between 2^52
5277         and 2^53-1.
5278         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5279         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5280         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5281         detect aforementioned erroneous conditions.
5283 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5285         * configure.in: Check for -fno-section-anchors in addition to
5286         -fno-toplevel-reorder.
5288 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5290         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5292         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5293         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5294         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5295         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5296         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5297         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5299 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5301         [BZ #5443]
5302         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5303         * time/alt_digit.c: Likewise.
5304         * wcsmbs/wcsmbsload.c: Likewise.
5306 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5308         * version.h (VERSION): Bump to 2.8.
5310         * timzeone/asia: Update from tzdata2008b.
5311         * timezone/backward: Likewise.
5312         * timezone/europe: Likewise.
5313         * timezone/northamerica: Likewise.
5314         * timezone/southamerica: Likewise.
5315         * timezone/iso3166.tab: Likewise.
5316         * timezone/leapseconds: Likewise.
5317         * timezone/zone.tab: Likewise.
5318         * timezone/private.h: Update from tzcode2008a.
5319         * timezone/zdump.c: Likewise.
5320         * timezone/zic.c: Likewise.
5322 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5324         [BZ #5741]
5325         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5326         Define additonal Data Cache Block instruction macros.
5327         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5328         Replace dcbst with dcbf and sync with sync/isync.
5330 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5332         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5333         Always set ELF_RTYPE_CLASS_PLT.
5334         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5336 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5338         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5339         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5340         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5341         For ISA 2.01 and later replace mftb with mfspr 268.
5343 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5345         [BZ #5768]
5346         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5347         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5349 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5351         [BZ #5768]
5352         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5353         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5354         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5355         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5357 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5359         * stdlib/tst-makecontext.c (othervar): New variable.
5360         (cf): Test sign extending the argument to long.
5362 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5364         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5365         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5366         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5367         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5368         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5369         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5370         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5372 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5374         * elf/Makefile (tests): Substitute tests-vis-yes here.
5375         (tests-vis-yes): Delete.
5376         (modules-name, modules-vis-yes): Similarly.
5378 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5380         [BZ #4407]
5381         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5382         Preserve sign in signgamp when x is zero.
5384 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5386         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5387         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5388         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5389         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5390         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5391         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5393 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5395         [BZ #4314]
5396         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5397         buffers.
5399         [BZ #5209]
5400         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5401         a reserved error value.
5403         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5404         value to check for correct sign extension.
5406         [BZ #5436]
5407         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5408         Copy 64-bit parameter values even though this is not required in
5409         the standard.
5411         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5412         PC save.
5414 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5416         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5417         PC save.
5419 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5421         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5423 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5425         [BZ #5998]
5426         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5427         in line-buffered stream failed.
5428         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5430 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5432         [BZ #6024]
5433         * scripts/abi-versions.awk: If the version specified by
5434         --enable-oldest-abi is older than the first version for this
5435         architecture, use the default version.
5437         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5438         as well when ignoring the whole category.
5440 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5442         [BZ #6042]
5443         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5444         ETHERTYPE_* definitions.
5445         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5447 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5449         * stdlib/mbtowc.c (__no_r_state): Remove.
5450         (mbtowc): New static state variable.  Use it instead of
5451         __no_r_state.
5452         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5453         (__wctomb_state): New hidden variable.
5454         (wctomb): Use __wctomb_state instead of __no_r_state.
5455         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5456         (__wctomb_state): New extern decl.
5457         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5459 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5461         [BZ #5475]
5462         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5464 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5466         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5468 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5470         * po/nl.po: Update from translation team.
5472 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5474         [BZ #6007]
5475         * string/strfry.c: Handle empty strings again.
5477 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5479         [BZ #5443]
5480         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5481         before looking for translation.
5482         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5483         * locale/freelocale.c: Likewise.
5484         * locale/newlocale.c: Likewise.
5485         * locale/setlocale.c: Likewise.
5486         Based partially on a patch by ryo@np.css.fujitsu.com.
5488 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5490         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5491         acquiring wrlock.  Do conv_tab allocation while holding lock.
5492         * intl/Makefile: Add rules to build and run tst-gettext6.
5493         * intl/tst-gettext6.c: New test.
5494         * intl/tst-gettext6.sh: New file.
5496 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5498         * po/nl.po: Update from translation team.
5500         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5501         provided through st_blksize, try the default size before giving up.
5503 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5505         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5507         [BZ #5939]
5508         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5510         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5511         error message.  POSIX today does not require the messages to be in
5512         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5514         [BZ #5979]
5515         * sunrpc/auth_unix.c: Unify printed strings.
5516         * sunrpc/clnt_tcp.c: Likewise.
5517         * sunrpc/clnt_udp.c: Likewise.
5518         * sunrpc/clnt_unix.c: Likewise.
5519         * sunrpc/svc_tcp.c: Likewise.
5520         * sunrpc/svc_udp.c: Likewise.
5521         * sunrpc/svc_unix.c: Likewise.
5522         * sunrpc/xdr.c: Likewise.
5523         * sunrpc/xdr_array.c: Likewise.
5524         * sunrpc/xdr_rec.c: Likewise.
5525         * sunrpc/xdr_ref.c: Likewise.
5526         * locale/programs/ld-time.c (time_finish): Unify messages.
5527         * locale/programs/locfile.c (handle_copy): Fix typo.
5528         * nscd/nscd.c (options): Fix typo.
5530         [BZ #5995]
5531         * stdlib/strtod_l.c: Use correct sign for result in one more
5532         underflow case.
5533         Patch by Eric Blake <ebb9@byu.net>.
5535 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5537         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5538         and creat system calls.
5539         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5540         call.
5541         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5542         system calls.
5543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5544         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5545         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5547 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5549         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5550         <linux/limits.h> has defined it.
5551         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5552         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5553         headers.
5554         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5555         it instead of ARG_MAX.
5557 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5559         * posix/gai.conf: Fix comment for scope nullbits.
5560         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5561         default to 128 bits for v4 mapped addresses.
5563 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5565         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5566         ptrace call to get the ieee_instruction_pointer from the kernel.
5567         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5568         ptrace call to set the ieee_instructtion_pointer.
5569         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5570         Add comment that ieee_instruction_pointer is always 0.
5572 2008-03-09  Andreas Jaeger  <aj@suse.de>
5574         [BZ #5857]
5575         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5576         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5577         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5579         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5580         (rint_test): Likewise.
5582 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5584         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5585         call.
5586         (__nisfind_server): Similar for open readColdStartFile call.
5587         Patch partially by Jim Meyering.
5588         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5589         around internal_setent call.
5591         * po/vi.po: New Vietnamese translation.
5593         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5594         ADJ_OFFSET_SS_READ.
5596         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5597         remove CLONE_STOPPED.
5599 2008-02-10  Jim Meyering  <meyering@redhat.com>
5601         Remove useless "if" before "free":
5602         * elf/ldconfig.c (parse_conf_include): Likewise.
5603         * gmon/gmon.c (weak_alias): Likewise.
5604         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5605         * inet/rcmd.c (__validuser2_sa): Likewise.
5606         * intl/bindtextdom.c (set_binding_values): Likewise.
5607         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5608         * libio/genops.c (save_for_backup): Likewise.
5609         * libio/wgenops.c (save_for_wbackup): Likewise.
5610         * locale/programs/ld-collate.c (collate_read): Likewise.
5611         * locale/programs/linereader.c (get_string): Likewise.
5612         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5613         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5614         * resolv/res_debug.c (do_section): Likewise.
5615         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5616         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5617         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5618         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5619         * time/tzset.c (tzset_internal): Likewise.
5621 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5623         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5624         of ASSEMBLER.
5626 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5628         [BZ #5903]
5629         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5630         not stream for output file.  Open output file here.
5631         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5632         and output file name.
5633         (process_fd): Likewise.
5634         (process_file): Likewise.
5635         (main): Adjust callers of changed functions.
5636         * iconv/iconv_prog.h: Adjust prototype.
5638 2008-03-09  Andreas Jaeger  <aj@suse.de>
5640         [BZ #5753]
5641         * sysdeps/ia64/ieee754.h: Use protected namespace
5642         __BIG_ENDIAN/__LITTLE_ENDIAN.
5643         * sysdeps/ieee754/ieee754.h: Likewise.
5644         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5646 2008-03-08  Roland McGrath  <roland@frob.com>
5648         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5649         ignore a signal that came from a machine exception, treat it as a
5650         fatal core-dump signal instead.
5651         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5653         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5654         Clear DF bit in thread state's eflags.
5655         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5657 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
5659         [BZ #5774]
5660         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5661         of NAN(...) sequence.
5662         * stdlib/Makefile (tests): Add tst-strtod6.
5663         * stdlib/tst-strtod6.c: New file.
5665         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5667         [BZ #5762]
5668         * posix/getopt.c (_getopt_internal_r): Clarify error message by
5669         putting offending option character in quotes.  Clean up error
5670         messages.
5671         * po/be.po: Adjust msgstr in translation file.
5672         * po/bg.po: Likewise.
5673         * po/ca.po: Likewise.
5674         * po/cs.po: Likewise.
5675         * po/da.po: Likewise.
5676         * po/de.po: Likewise.
5677         * po/es.po: Likewise.
5678         * po/fr.po: Likewise.
5679         * po/hr.po: Likewise.
5680         * po/ko.po: Likewise.
5681         * po/nl.po: Likewise.
5682         * po/rw.po: Likewise.
5683         * po/sk.po: Likewise.
5684         * po/sv.po: Likewise.
5685         * po/tr.po: Likewise.
5686         * po/zh_CN.po: Likewise.
5687         * po/zh_TW.po: Likewise.
5689         [BZ #5760]
5690         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5691         Patch by Roland Bless <roland@bless.de>.
5693         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5694         .o file.
5695         * elf/Makefile (routines): Add dl-sysdep.
5696         (elide-routines.os): Likewise.
5698 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
5700         [BZ #5786]
5701         * elf/dl-sysdep.c: Undefine ROUND after use.
5702         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5703         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5704         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5705         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5706         to ...
5707         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5708         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5709         if necessary.
5710         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5712         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5713         _dl_tls_get_addr_soft element.
5714         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5715         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5716         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5717         GLRO.
5718         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5719         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5720         of internal_function.
5722         * stdlib/Makefile (aux): Add tens_in_limb.
5723         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5724         * stdlib/tens_in_limb.c: ...here.  New file.
5726         [BZ #5778]
5727         * sysdeps/unix/sysv/linux/pathconf.h: Declare
5728         __statfs_chown_restricted.
5729         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5730         for _PC_CHOWN_RESTRICTED.
5731         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5732         Implement __statfs_chown_restricted.
5733         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5734         _POSIX_CHOWN_RESTRICTED value to zero.
5735         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5736         defined to zero.
5738         * sysdeps/x86_64/rtld-memset.c: New file.
5740 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
5742         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5744         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5745         Barcelona machine.  Make default fall through branch of
5746         __x86_64_preferred_memory_instruction check as the integer code path.
5748 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5750         * sysdeps/x86_64/cacheinfo.c
5751         (__x86_64_preferred_memory_instruction): New variable.
5752         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5754         * sysdeps/x86_64/memset.S: Rewrite.
5756 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
5758         * include/stdio.h (__asprintf_chk, __dprintf_chk,
5759         __obstack_printf_chk): New prototypes.
5760         (__vasprintf_chk, __vdprintf_chk,
5761         __obstack_vprintf_chk): Likewise.
5762         Add libc_hidden_proto.
5763         * libio/obprintf.c
5764         (_IO_obstack_jumps): No longer static, add attribute_hidden.
5765         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5766         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5767         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5768         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5769         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5770         __obstack_vprintf_chk): New prototypes.
5771         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5772         obstack_vprintf): New inlines.
5773         * debug/dprintf_chk.c: New file.
5774         * debug/vdprintf_chk.c: New file.
5775         * debug/asprintf_chk.c: New file.
5776         * debug/vasprintf_chk.c: New file.
5777         * debug/obprintf_chk.c: New file.
5778         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5779         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5780         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5781         @@GLIBC_2.8.
5782         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5783         vdprintf_chk and obprintf_chk, set CFLAGS for them.
5784         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5785         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5786         libc_hidden_proto.
5787         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5788         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5789         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5790         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5791         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5792         @@GLIBC_2.8.
5793         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5794         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5795         obstack_vprintf_chk.
5796         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5797         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5798         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5799         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5800         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5801         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5803 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
5805         [BZ #5779]
5806         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5807         Patch by Roy Marples <roy@marples.name>.
5809         [BZ #5736]
5810         * malloc/malloc.c: Fix typo in comment.
5812         [BZ #5627]
5813         * locale/iso-639.def: Add Shuswap.
5815 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
5817         [BZ #5790]
5818         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5819         overwrite *h_errnop/*errnop values from getanswer_r in case of
5820         failure.
5822 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
5824         [BZ #5818]
5825         * nscd/connections.c (dbs): Add initializers for .suggested_module.
5826         (verify_persistent_db): Remove one unnecessary test and add a new one
5827         for bad configuration.
5828         (nscd_init): Improve error reported when persistent database cannot
5829         be reused.
5830         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5831         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5832         .suggested_module and .max_db_size and case config file says the
5833         values are zero.
5834         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5836         [BZ #5854]
5837         * nis/ypclnt.c (yp_order): Fix handling of return value of
5838         do_ypcall_tr call.
5839         Patch by Jeff Moyer <jmoyer@redhat.com>.
5841         * po/fr.po: Update from translation team.
5843 2008-02-22  Andreas Jaeger  <aj@suse.de>,
5844             Carlos O'Donell <carlos@systemhalted.org>
5846         [BZ #5012]
5847         * FAQ.in: Describe why glibc needs to be compiled with
5848         optimization.
5850 2008-02-19  Roland McGrath  <roland@redhat.com>
5852         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5854 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
5856         [BZ #5737]
5857         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5858         __USE_MISC is defined.
5860 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
5862         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5863         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5864         sys/timerfd.h.
5865         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5866         timerfd_gettime, timerfd_settime.
5867         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5868         timerfd_gettime, timerfd_settime for GLIBC_2.8.
5870 2008-02-08  Roland McGrath  <roland@redhat.com>
5872         * elf/elf.h (NT_PPC_SPE): New macro.
5874 2008-02-06  Roland McGrath  <roland@redhat.com>
5876         * Makerules ($(common-objpfx)sysd-rules):
5877         Depend on $(sysdep-makeconfigs).
5879 2008-01-31  Roland McGrath  <roland@redhat.com>
5881         [BZ #5442]
5882         * configure.in: Use -print-file-name if it yields a directory,
5883         for each of include and include-fixed.
5884         * configure: Regenerated.
5886         * Makeconfig (sysd-rules-targets): New variable.
5887         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5888         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5890 2008-01-30  Roland McGrath  <roland@redhat.com>
5892         * manual/libc.texinfo: Update back-cover text.
5894         * elf/elf.h (NT_386_TLS): New macro.
5896 2008-01-29  Roland McGrath  <roland@redhat.com>
5898         * Makeconfig (sysd-rules-patterns): New variable.
5899         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5900         (check-inhibit-asm): New canned sequence, replaces ...
5901         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5902         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5903         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5904         (CFLAGS-rtld): Variable removed.
5906 2008-01-24  Roland McGrath  <roland@redhat.com>
5908         * configure.in: Let configure fragments set base_os.
5909         * configure: Regenerated.
5911 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
5913         * po/ko.po: Update from translation team.
5915 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5917         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5919 2008-01-12  Andreas Jaeger  <aj@suse.de>
5921         [BZ #5040]
5922         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5923         Add EPOLLRDHUP.
5925 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5927         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5928         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5929         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5931 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
5933         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5934         * elf/dl-close.c (_dl_close): Check for it.
5935         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5936         (_dl_allocate_static_tls): Likewise.
5937         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5938         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5939         to it.
5940         * elf/tst-tls16.c: New file.
5941         * elf/tst-tlsmod16a.c: New file.
5942         * elf/tst-tlsmod16b.c: New file.
5943         * elf/Makefile: Add rules to build and run tst-tls16.
5945 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
5947         [BZ #5628]
5948         * bits/shm.h: Fix comment describing shmid_ds.
5949         * sysdeps/gnu/bits/shm.h: Likewise.
5950         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5951         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5952         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5953         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5954         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5955         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5956         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5957         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5958         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5960         [BZ #5607]
5961         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5962         prototypes.
5963         * conform/data/limits.h-data: Adjust limits changed in v6 and add
5964         additional suffixes.
5965         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5966         Add optional functions mq_timedreceive and mq_timedsend.
5967         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5968         * conform/data/pthread.h-data: Fix prototype of
5969         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
5970         * conform/data/semaphore.h-data: Allow time.h definitions.
5971         * conform/data/signal.h-data: Likewise.
5972         * conform/data/stdio.h-data: getw and putw are not required in v6.
5973         * conform/data/stdlib.h-data: Change setstate prototype.
5974         * conform/data/string.h-data: Fix strerror_r prototype.
5975         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5976         * conform/data/unistd.h-data: pthread_atfork not required in v6.
5977         Fix readlink prototype.
5978         * conform/data/netinet/in.h-data: Add const to in6addr_any and
5979         in6addr_loopback.
5980         * inet/netinet/in.h: Cleanup namespace.
5981         * posix/regex.h: Likewise.
5982         * resolv/netdb.h: Likewise.
5983         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5984         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5985         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5986         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5987         of names of in in6_addr.
5988         (default_precedence): Likewise.
5989         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5990         NULL definition.
5992 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
5994         * conform/data/fmtmsg.h-data: Add missing allows.
5995         * conform/data/ftw.h-data: Likewise.
5996         * conform/data/inttypes.h-data: Likewise.
5997         * conform/data/math.h-data: Likewise.
5998         * conform/data/signal.h-data: Likewise.
5999         * conform/data/net/if.h-data: Likewise.
6000         * conform/data/netinet/in.h-data: Likewise.
6001         * conform/data/sys/socket.h-data: Likewise.
6003         [BZ #5614]
6004         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6005         (__strtok_r): Simplify.
6006         * string/tester.c (test_strtok_r): Add test case for futile search
6007         with single-character seach string.
6009 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6011         * po/ko.po: Update from translation team.
6013 2008-01-11  Andreas Jaeger  <aj@suse.de>
6015         [BZ #5600]
6016         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6017         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6018         kernel header.
6020 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6022         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6023         native interface lookup in all the relevant places.
6025 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6026             Ulrich Drepper  <drepper@redhat.com>
6028         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6029         field.  Use sockaddr_in6 for source_addr.
6030         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6031         (match_prefix): Likewise.
6032         (get_label): Likewise.
6033         (get_precedence): Likewise.
6034         (rfc3484_sort): Change to use indirect access to results array.
6035         Adjust to use of sockaddr_in6.  Replace service_order test with
6036         simple index comparison.
6037         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6038         service_order field.  Adjust qsort_t calls.  Access sorted result
6039         array indirectly through order array.
6040         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6041         * posix/tst-rfc3484-2.c: Likewise.
6042         * posix/tst-rfc3484-3.c: Likewise.
6044 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6046         [BZ #5541]
6047         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6048         pollfd structures.
6049         Patch by André Cruz.
6051         [BZ #5545]
6052         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6053         (clnt_spcreateerror): Likewise.
6055         [BZ #5553]
6056         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6057         (public_mEMALIGn): Likewise.
6058         Patch mostly by Daniel Jacobowitz.
6060 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6062         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6063         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6064         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6065         * stdlib/tst-makecontext2.c: New test.
6067 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6069         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6070         defined.
6071         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6072         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6073         transliteration hooks and REINIT_PARAMS afterwards.
6074         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6075         status.
6076         (REINIT_PARAMS): Define.
6077         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6078         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6079         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6080         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6081         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6082         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6083         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6084         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6085         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6086         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6087         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6088         * iconvdata/tst-iconv7.c: New test.
6090 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6092         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6094 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6096         [BZ #5112]
6097         * nscd/connections.c (restart): Fix condition.
6099 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6101         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6102         __ctype_toupper_loc): Add __THROW.
6104 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6106         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6107         recognition of interface family.
6109         * posix/getconf.c: Update copyright year.
6110         * nss/getent.c: Likewise.
6111         * iconv/iconvconfig.c: Likewise.
6112         * iconv/iconv_prog.c: Likewise.
6113         * elf/ldconfig.c: Likewise.
6114         * catgets/gencat.c: Likewise.
6115         * csu/version.c: Likewise.
6116         * elf/ldd.bash.in: Likewise.
6117         * elf/sprof.c (print_version): Likewise.
6118         * locale/programs/locale.c: Likewise.
6119         * locale/programs/localedef.c: Likewise.
6120         * nscd/nscd.c (print_version): Likewise.
6121         * debug/xtrace.sh: Likewise.
6122         * malloc/memusage.sh: Likewise.
6123         * malloc/mtrace.pl: Likewise.
6124         * debug/catchsegv.sh: Likewise.
6126 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6128         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6129         second lookup.
6131 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6133         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6134         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6136 2007-12-17  Roland McGrath  <roland@redhat.com>
6138         * inet/ether_line.c (ether_line): Remove unused variable.
6140 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6142         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6143         and winp.
6144         * login/openpty.c (openpty): Likewise.
6145         * login/pty.h (openpty, forkpty): Likewise.
6146         * manual/terminal.texi (openpty, forkpty): Likewise.
6148 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6150         * malloc/malloc.c (public_cALLOc): For arenas other than
6151         main_arena, count all bytes inside the mprotect_size range of the
6152         heap as uninitialized.
6154 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6156         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6157         executable stacks.
6159         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6160         mTRIm for all of them.
6161         (mTRIm): Additionally iterate over all free blocks and use madvise
6162         to free memory for all those blocks which contain at least one
6163         memory page.
6164         * malloc/tst-trim1.c: New file.
6165         * malloc/Makefile (tests): Add tst-trim1.
6167         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6169 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6171         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6172         First cast argument to long
6173         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6174         Return long.
6175         (__vdso_clock_gettime): Likewise.
6176         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6177         return long.
6179 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6181         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6182         * locale/nl_langinfo_l.c: Real implementation, copied from
6183         nl_langinfo.c.
6184         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6186 2007-12-01  Jim Meyering  <meyering@redhat.com>
6188         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6189         that would inhibit utf8-optimization of a regexp containing line-
6190         or buffer-anchors, e.g., `^', `$'.
6192 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6194         * time/bug-getdate1.c (do_test): Don't use century values which
6195         aren't valid on 32-bit systems.
6197 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6199         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6200         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6201         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6202         __strcat_g, __strncat_g): Add __asm__.
6204 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6206         [BZ #5477]
6207         * io/fchmodat.c: Fix typo in stub_warning use.
6208         Patch by Petr Salinger.
6210 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6212         * iconvdata/hp-thai8.c: New file.
6213         * iconvdata/Makefile: Add rules for hp-thai8.c.
6214         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6215         * iconvdata/gconv-modules: Likewise.
6217         [BZ #5464]
6218         * iconvdata/hp-greek8.c: New file.
6219         * iconvdata/Makefile: Add rules for hp-greek8.c.
6220         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6221         * iconvdata/gconv-modules: Likewise.
6223         [BZ #5463]
6224         * iconvdata/hp-turkish8.c: New file.
6225         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6226         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6227         * iconvdata/gconv-modules: Likewise.
6229         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6230         (shrink_heap): ... this new function.
6231         (heap_trim): Call shrink_heap instead of grow_heap.
6233         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6234         case don't call alloc_perturb.
6236 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6238         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6239         possible.
6240         * sysdeps/unix/sysv/linux/kernel-features.h
6241         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6242         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6244 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6246         [BZ #5424]
6247         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6248         * stdio-common/Makefile (tests): Add bug22.
6249         * stdio-common/bug22.c: New file.
6251         [BZ #5451]
6252         * time/getdate.c: Fix filling in default values.
6253         * time/bug-getdate1.c: New file.
6254         * time/Makefile: Add rules to build and run bug-getdate1.
6256         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6257         * iconvdata/ebcdic-es.c: Likewise.
6258         * iconvdata/ebcdic-es-a.c: Likewise.
6259         * iconvdata/ebcdic-uk.c: Likewise.
6260         * iconvdata/iso8859-16.c: Likewise.
6261         * iconvdata/viscii.c: Likewise.
6262         * iconvdata/iso8859-9e.c: Likewise.
6263         * iconvdata/Makefile: Adjust appropriately.
6265         [BZ #5428]
6266         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6267         __need_wint_t.
6269 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6271         [BZ #5427]
6272         * iconvdata/hp-roman9.c: New file.
6273         * iconvdata/Makefile: Add rules for hp-roman9.c.
6274         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6275         * iconvdata/gconv-modules: Likewise.
6277         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6278         * iconvdata/Makefile: Adjust appropriately.
6280         [BZ #5441]
6281         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6282         structure, it's allocated with alloca.
6283         * stdio-common/Makefile (tests): Add bug21.
6284         * stdio-common/bug21.c: New file.
6286 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6288         [BZ #5452]
6289         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6290         keyword for gcc's braced-groups.
6292 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6294         [BZ #5454]
6295         * inet/ether_line.c: Strip hostname of whitespaces.
6296         * inet/Makefile (tests): Add tst-ether_line.
6297         * inet/tst-ether_line.c: New file.
6299 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6301         [BZ #5439]
6302         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6304         [BZ #5435]
6305         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6307         * stdlib/tst-setcontext.c: Catch the case where the links gets
6308         messed up and we do not reach main again.
6310         * po/ca.po: Update from translation team.
6312 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6314         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6315         * posix/regex.h (REG_ENOSYS): Likewise.
6316         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6318 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6320         * nscd/nscd.h (MAX_STACK_USE): Define.
6321         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6322         (gc): Initialize stack_used based on allocation in prune_cache.
6323         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6324         Clear array before use.
6326         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6327         memory allocation failed.
6328         * nscd/hstcache.c (cache_addhst): Likewise.
6329         * nscd/grpcache.c (cache_addgr): Likewise.
6330         * nscd/servicescache.c (cache_addserv): Likewise.
6331         * nscd/pwdcache.c (cache_addpw): Likewise.
6332         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6334 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6337         and creat system calls.
6339         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6341 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6343         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6344         Add netiucv/iucv.h.
6345         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6346         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6347         protocol.
6348         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6349         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6350         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6352 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6354         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6355         strncat): Define as macros to avoid compile errors.
6357         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6358         creat entries.
6360 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6362         [BZ #5382]
6363         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6364         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6365         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6366         overflow it.
6367         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6369         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6370         Return zero in case the thread library is not NPTL.
6372         [BZ #5375]
6373         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6374         initializing interface list.
6376         [BZ #5378]
6377         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6378         use result of nss_getgrgid_r if nothing was found.  For other
6379         error return with a failure.
6380         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6382         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6383         macro name.
6385 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6387         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6388         (get_scope): For IPv4 scope, use scopes table.
6389         (fini): Free scopes table if necessary.
6390         (free_scopelist): New function.
6391         (scopecmp): New function.
6392         (gaiconf_init): Also handle scopev4 entries.
6393         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6394         * posix/tst-rfc3484-2.c (do_test): Likewise.
6395         * posix/gai.conf: Document scopev4 defaults.
6396         * posix/Makefile (tests): Add tst-rfc3484-3.
6397         * posix/tst-rfc3484-3.c: New file.
6399         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6400         Teredo tunnels.
6401         * posix/gai.conf: Update for current default tables.
6403 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6405         * po/tr.po: Update from translation team.
6407 2007-11-18  Roland McGrath  <roland@frob.com>
6409         * manual/arith.texi (Remainder Functions): Spelling fix.
6410         From Shaun Silk <genix@mysoul.com.au>.
6412         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6414 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6416         * po/zh_CN.po: Update from translation team.
6418         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6419         Add sys/signalfd.h and sys/eventfd.h.
6421 2007-11-15  Bruno Haible  <bruno@clisp.org>
6423         [BZ #5346]
6424         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6425         union.
6426         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6427         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6428         it needs only fixed stack space. Delay the initialization of
6429         msgid_len until it is needed.
6431 2007-11-15  Andreas Jaeger  <aj@suse.de>
6433         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6434         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6436 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6438         * po/ko.po: Update from translation team.
6440 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6442         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6443         significantly.  The device type is also part of the ifinfomsg data.
6445         * po/sv.po: Update from translation team.
6446         * po/nl.po: Likewise.
6448         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6449         to wake up in 24 hours.
6451         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6453 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6455         * po/cs.po: Update from translation team.
6456         * po/pl.po: Likewise.
6458         * include/ifaddrs.h: Remove in6ai_temporary.
6459         (struct in6addrinfo): Add index element.
6460         Declare __check_native.
6461         * inet/Makefile (aux): Add check_native.
6462         * sysdeps/unix/sysv/linux/check_native.c: New file.
6463         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6464         IFA_F_TEMPORARY.  Pass back ifa_index.
6465         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6466         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6467         call __check_native if necessary.
6468         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6469         to sort addresses.  Pass information about the results.
6470         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6471         of rfc3484_sort interface.
6472         * posix/tst-rfc3484-2.c: Likewise.
6474         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6475         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6476         for _quicksort.
6477         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6478         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6479         on as third parameter to compare function and _quicksort.
6480         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6481         to the compare function.
6482         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6483         * Versions.def: Add GLIBC_2.8 for libc.
6485         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6486         * posix/tst-rfc3484-2.c: Likewise.
6488         * include/kernel-features.h: Moved to...
6489         * sysdeps/mach/hurd/kernel-features.h: ...here.
6491 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6493         * sysdeps/i386/i586/memcpy_chk.S: New file.
6494         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6495         * sysdeps/i386/i586/memset_chk.S: Likewise.
6497 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6499         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6500         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6501         list of interfaces.  Also store prefix length.
6502         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6503         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6504         prefix if source and destination address are in the same subnet.
6505         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6506         Always look for matching record in in6ai list.
6507         Correct source_addr_len value for IPv6->IPv4 converted records.
6509 2007-11-11  Roland McGrath  <roland@frob.com>
6511         * include/kernel-features.h: New file.
6513 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6515         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6516         complications for 64-bit platforms.
6518         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6519         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6520         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6521         open64_2.
6522         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6523         entries.
6524         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6525         * sysdeps/wordsize-64/alphasort.c: New file.
6526         * sysdeps/wordsize-64/alphasort64.c: New file.
6527         * sysdeps/wordsize-64/fseeko.c: New file.
6528         * sysdeps/wordsize-64/fseeko64.c: New file.
6529         * sysdeps/wordsize-64/ftello.c: New file.
6530         * sysdeps/wordsize-64/ftello64.c: New file.
6531         * sysdeps/wordsize-64/ftw.c: New file.
6532         * sysdeps/wordsize-64/ftw64.c: New file.
6533         * sysdeps/wordsize-64/iofgetpos.c: New file.
6534         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6535         * sysdeps/wordsize-64/iofopen.c: New file.
6536         * sysdeps/wordsize-64/iofopen64.c: New file.
6537         * sysdeps/wordsize-64/iofsetpos.c: New file.
6538         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6539         * sysdeps/wordsize-64/lockf.c: New file.
6540         * sysdeps/wordsize-64/lockf64.c: New file.
6541         * sysdeps/wordsize-64/mkostemp.c: New file.
6542         * sysdeps/wordsize-64/mkostemp64.c: New file.
6543         * sysdeps/wordsize-64/mkstemp.c: New file.
6544         * sysdeps/wordsize-64/mkstemp64.c: New file.
6545         * sysdeps/wordsize-64/scandir.c: New file.
6546         * sysdeps/wordsize-64/scandir64.c: New file.
6547         * sysdeps/wordsize-64/tmpfile.c: New file.
6548         * sysdeps/wordsize-64/tmpfile64.c: New file.
6549         * sysdeps/wordsize-64/versionsort.c: New file.
6550         * sysdeps/wordsize-64/versionsort64.c: New file.
6551         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6552         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6553         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6554         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6555         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6556         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6557         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6558         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6559         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6560         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6561         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6562         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6564         * crypt/sha256-crypt.c: Fix a comment.
6565         * crypt/sha512-crypt.c: Likewise.
6567 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6569         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6571 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6573         [BZ #5277]
6574         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6575         because output buffer is too small break, don't loop.
6576         * iconvdata/Makefile (tests): Add bug-iconv6.
6577         * iconvdata/bug-iconv6.c: New file.
6579 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6581         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6582         with size_t type.
6583         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6584         size_t.  Add casts where needed.
6586         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6587         old headers, don't call avc_has_perm if we don't have the
6588         permission information.
6590 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6592         * elf/rtld.c (dl_main): Use the page size to find the map start.
6594 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6596         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6597         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6599         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6600         when the lookup call failed.
6602         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6603         Add prune_cond and wakeup_time.
6604         (CACHE_PRUNE_INTERNAL): Define.
6605         Update declarations of prune_cache and setup_thread.
6606         * nscd/connections.c (dbs): Update initializers.
6607         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6608         (nscd_init): Default number of threads is now 4.
6609         (invalidate_cache): Take lock before calling prune_cache.
6610         (handle_request): If SELinux forbids the request, say so.
6611         (readylist_cond): Use static initializer.
6612         (nscd_run_prune): New function.  Used only by pruning threads.
6613         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6614         here.
6615         (fd_ready): Update nscd_run reference.
6616         (start_threads): No need to initialize readylist_cond.
6617         Start pruning threads separately.
6618         * nscd/nscd_setup_thread.c: Change return value type to int and always
6619         return 0.
6620         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6621         to int and return nonzero value if we can use the TID address hack.
6622         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6623         the database is later than the new entry's timeout, update the
6624         wakeup time and wake the cleanup thread.
6625         (prune_cache): Return seconds the next entry in the database is still
6626         valid.  Remove locking for pruning here.
6627         * nscd/nscd.conf: Document default number of threads.
6629 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6631         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6632         stack is properly aligned for the target function.
6633         Correct unwind info.
6635         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6636         when using auditing libraries.
6638 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
6640         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6641         _nss_dns_getnetbyaddr2_r.
6642         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
6643         extra parameter to getanswer_r.
6644         (_nss_dns_getnetbyaddr_r): Now a wrapper around
6645         _nss_dns_getnetbyaddr2_r.
6647         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6648         gethstbynm3_r.
6649         * nscd/gethstbynm2_r.c: Remove.
6650         * nscd/gethstbynm3_r.c: New file.
6651         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6652         __gethostbyaddr_r.
6653         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
6654         __gethostbyaddr_r compatibility wrapper.
6655         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
6656         determining timeout of entry.
6657         (lookup): Take new parameter and pass it to __gethostbyname3_r and
6658         __gethostbyaddr2_r.
6659         (addhstbyX): Pass reference to variable for TTL to lookup and
6660         cache_addhst.
6661         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6662         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6663         and __nss_next2.  Remove __nss_services_lookup.
6664         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
6665         Add compat wrapper.
6666         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6667         __nss_next2.
6668         * nss/getXXent_r.c: Likewise.
6669         * nss/getnssent_r.c: Likewise.
6670         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
6671         does not exist in module, try the optional second name.
6672         (__nss_next2): New function.
6673         (__nss_next): Now wrapper around __nss_next2.
6674         * nss/nsswitch.h: Adjust __nss_lookup prototype.
6675         Declare __nss_next2.
6676         Adjust definition of db_lookup_function type.
6677         * nss/service-lookup.c: Define NO_COMPAT.
6678         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6679         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6680         * inet/ether_ntoh.c: Likewise.
6681         * sunrpc/netname.c: Likewise.
6682         * sunrpc/publickey.c: Likewise.
6683         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
6684         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6685         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6686         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6687         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6689         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6691         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6693 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
6695         [BZ #5204]
6696         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6697         * crypt/sha512c-test.c: Likewise.
6699         [BZ #5225]
6700         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6701         to keep track of end of %[ format string element.
6702         * stdio-common/Makefile (tests): Add bug20.
6703         * stdio-common/bug20.c: New file.
6705         [BZ #5222]
6706         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6707         path elements in counting mode.
6709 2007-10-27  Andreas Jaeger  <aj@suse.de>
6711         [BZ #5040]
6712         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6714         [BZ #3112]
6715         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6716         (__cleanup): Free shared library when exiting.
6717         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6718         (__cleanup): Free shared library when exiting.
6720 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6722         [BZ #2549]
6723         * math/libm-test.inc (check_float_internal): Support
6724         denormalized return.
6726 2007-10-23  Andreas Jaeger  <aj@suse.de>
6728         [BZ #5208]
6729         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6730         __LONG_LONG_PAIR to handle little endian byte order.
6731         Suggested by abhishekrai@google.com
6733 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
6735         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6737 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
6739         * nscd/cache.c (prune_cache): Move test for modified file outside
6740         of locking.
6742 2007-10-21  Andreas Jaeger  <aj@suse.de>
6744         * manual/texinfo.tex: Update to latest version.
6746         * manual/sysinfo.texi (System Parameters): Fix Formatting.
6748         * manual/arith.texi (Status bit operations): Fix formatting.
6750         * manual/errno.texi (Error Messages): Fix formatting.
6752         * manual/sysinfo.texi (System Parameters): Fix formatting.
6754         * manual/libc.texinfo: Update VERSION and UPDATED.
6756 2007-10-19  Roland McGrath  <roland@redhat.com>
6758         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6760 2007-10-06  David S. Miller  <davem@davemloft.net>
6762         * configure.in: Add sparcv9v2 and sparc64v2.
6763         * scripts/config.sub: Likewise.
6764         * configure: Regenerate.
6765         * elf/elf.h (HWCAP_SPARC_N2): New.
6766         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6767         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6768         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6769         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6770         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6771         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6772         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6774 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
6776         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6777         even if the poll result indicates there is data to read.
6778         Patch by Jeff Moyer <jmoyer@redhat.com>.
6780 2007-10-18  Roland McGrath  <roland@redhat.com>
6782         * elf/elf.h (NT_PPC_VMX): New macro.
6784 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6786         * version.h (VERSION): Set to 2.7.90.
6788 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6790         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
6791         weak_alias.
6793 2007-10-17  Roland McGrath  <roland@frob.com>
6795         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6796         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6798 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6800         * version.h (VERSION): Bump to 2.7.
6801         * include/features.h (__GLIBC_MINOR__): Bump to 7.
6803         [BZ #5186]
6804         * time/tzset.c (__tz_convert): Don't force testing for a change of
6805         TZ if not called from localtime.  But then also see whether the
6806         file changed, in case __use_tzfile is set.
6808         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6809         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6810         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6811         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6812         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6813         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6814         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
6815         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6817 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6819         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6820         and admin selects to be able to replace the gai.conf file, lock
6821         data structures around the qsort call.
6823 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6825         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6826         new memset.
6827         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
6828         too high for the improvements.  Implement bzero unconditionally for
6829         use in libc.
6831 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6832             Jakub Jelinek  <jakub@redhat.com>
6834         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6835         even when time_t is 32-bit.
6836         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6837         timezone data read by __tzfile_default.  Ensure __tzname[0] is
6838         always set after the search.
6840 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6842         * time/tzfile.c (__tzfile_read): Help the compiler recognize
6843         unreachable code on 32-bit machines.
6845 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6847         [BZ #5184]
6848         * time/strftime_l.c: Include stdbool.h.
6849         (my_strftime): New wrapper, old function renamed to...
6850         (__strftime_internal): ... new function.  Add tzset_called
6851         argument, pass it down to recursive calls, don't call tzset ()
6852         if already true, set to true after call to tzset ().
6854 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6856         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6857         into account when copying TZ string.
6859 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6861         * time/tzfile.c (__tzfile_compute): For use_last case set i to
6862         num_transition rather than num_transitions - 1.
6864 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6866         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6867         PIC indirect jump.
6869         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6870         a local label rather than HIDDEN_JUMPTARGET.
6872 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6874         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6875         (init_cacheinfo): Initialize it.
6876         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6877         Always define bzero.
6878         Remove non-glibc code.
6879         * sysdeps/x86_64/bzero.S: Make an empty file.
6881 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6883         * sysdeps/x86_64/cacheinfo.c
6884         (__x86_64_preferred_memory_instruction): New.
6885         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6887         * sysdeps/x86_64/memset.S: Rewrite.
6889 2007-10-15  Roland McGrath  <roland@redhat.com>
6891         * po/libc.pot: Regenerated.
6893 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6895         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6896         pointers.
6898         [BZ #3425]
6899         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6900         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6901         address record to T_A/T_AAAA requests.
6903 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6905         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6907         * posix/glob.c: Add some branch prediction throughout.
6909         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6910         read from nscd.
6912         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6913         service_order.
6914         (rfc3484_sort): Make sure that even if qsort doesn't support
6915         stable sorting out sorting here is stable by comparing service_order.
6916         (getaddrinfo): Initialize service_order.
6917         * posix/tst-rfc3484.c (do_test): Adjust for addition of
6918         service_order field to sorting structure.
6919         * posix/tst-rfc3484-2.c (do_test): Likewise.
6921         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6922         * time/tzset.c (tzset_internal): Break TZ string parsing out into
6923         __tzset_parse_tz and updating of daylight, timezone, tzname into
6924         update_vars.
6925         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
6926         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6927         happens in __tz_compute.
6928         * time/tzfile.c (__tzfile_read): Also read TZ string.
6929         (find_transition): Fold into __tzfile_compute.
6930         (__tzfile_compute): For times beyond the last transition try to
6931         use the TZ string.
6932         * timezone/tst-timezone.c: Information in daylight and tzname does
6933         change for Asia/Tokyo timezone with more concrete information.
6934         Remove the test.
6936         * include/stdio.h: Add libc_hidden_proto for ftello.
6937         * libio/ftello.c: Add libc_hidden_def.
6939         [BZ #1140]
6940         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6941         on the specified time and not the last entries in the file.  Move
6942         code to determine tzname[] to...
6943         (find_transition): ...here.  Add ugly guess for times before the
6944         first transition.
6946 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6948         [BZ #3195]
6949         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6950         no entry.
6951         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6952         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6953         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6954         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6956         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6957         read mechanism when there are no group members and avoid no-op
6958         read syscall in this case.
6960         [BZ #3242]
6961         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6962         (__readall): If reading failed due to EAGAIN error wait a bit
6963         and possibly try again.
6964         (__readvall): Likewise.
6966 2007-10-13  Bruno Haible  <bruno@clisp.org>
6968         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6969         when we cannot recode the message.
6971 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6973         [BZ #4359]
6974         * libio/__freading.c (__freading): Don't return true for
6975         write-only streams.  For read/write streams, check whether we
6976         performed a read operation already.
6977         * libio/Makefile (tests): Add tst-ext2.
6978         * libio/tst-ext2.c: New file.
6980 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6982         * locale/programs/repertoire.c (repertoire_read): Always free
6983         memory for repertoire file name [Coverity CID 270].
6985         * elf/cache.c (save_aux_cache): Free memory allocated for
6986         temporary file name [Coverity CID 267].
6988 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6990         * misc/Makefile (headers): Add bits/error.h.
6992 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6994         * posix/fnmatch_loop.c: Take rule index returned as part of
6995         findidx return value into account when accessing weights.
6996         * posix/regcomp.c: Likewise.
6997         * posix/regexec.c: Likewise.
6999         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7000         (skip_to): Fix problems with parameter of elifdef/elifndef.
7002 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7004         * iconv/gconv_simple.c: Add some branch prediction.
7006 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7008         * locale/programs/ld-collate.c (collate_read): If ignore_content
7009         and nowtok is tok_define, eat any tok_eol tokens.
7011 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7013         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7014         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7016         * inet/netinet/in.h: Don't include bits/socket.h.
7017         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7018         macro.
7019         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7021 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7023         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7024         and tok_elifndef.
7025         * locale/programs/locfile-kw.gperf: Likewise.
7026         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7028 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7030         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7031         (__find_specwc): Change into __extern_always_inline function.
7032         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7033         (__parse_one_specmb): Remove ps argument.
7034         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7035         Adjust __find_specmb and __parse_one_specmb callers.
7036         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7037         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7038         Removed.
7039         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7040         caller.
7042 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7044         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7045         with some Pentium Ds.
7047 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7049         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7050         __read not read.
7051         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7052         __write not write.
7054 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7056         [BZ #181]
7057         * locale/C-time.c: Set week_1stday data to 19971201.
7058         * locale/programs/ld-time.c (time_finish): Default for
7059         first_workday is Monday.
7061         [BZ #2633]
7062         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7064         [BZ #5103]
7065         * posix/glob.c (glob): Recognize patterns starting \/.
7066         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7067         (main): Add test for pattern starting \/.
7069         * misc/error.h: Use __const instead of const.
7070         * misc/bits/error.h: Likewise.
7072 2007-10-07  Andreas Jaeger  <aj@suse.de>
7074         * include/bits/error.h: New file.
7076         * misc/bits/error.h (error_at_line): Fix prototype.
7078 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7080         [BZ #3924]
7081         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7082         more little bugs in creating the stack frame when pltexit has to
7083         be called.
7085         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7086         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7088         [BZ #4407]
7089         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7090         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7091         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7092         * math/libm-test.inc: Add test for this case.
7094         [BZ #5010]
7095         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7096         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7097         map service succeeded.
7098         (svc_is_mapped): New function.
7099         (svc_unregister): Use it before trying to unmap service.
7101 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7103         * timezone/zic.c: Update from tzcode2007h.
7105         [BZ #5063]
7106         * timezone/africa: Update from tzdata2007h.
7107         * timezone/antarctica: Likewise.
7108         * timezone/asia: Likewise.
7109         * timezone/australasia: Likewise.
7110         * timezone/europe: Likewise.
7111         * timezone/leapseconds: Likewise.
7112         * timezone/northamerica: Likewise.
7113         * timezone/southamerica: Likewise.
7114         * timzeone/zone.tab: Likewise.
7116         [BZ #5104]
7117         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7119         [BZ #5113]
7120         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7121         avoid warning with -Wconversion.
7122         (__strndup): Likewise.
7123         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7125         [BZ #5112]
7126         * nscd/connections.c (restart): Don't resync if database is
7127         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7129         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7130         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7132         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7133         evetnfd_read, eventfd_write.
7134         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7135         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7136         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7137         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7138         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7139         eventfd_write for GLIBC_2.7.
7141         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7142         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7143         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7144         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7146 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7148         * stdlib/msort.c: Include stdint.h.
7149         (struct msort_param): New type.
7150         (msort_with_tmp): Use struct msort_param pointer for unchanging
7151         parameters.  Add optimized handling for several common sizes
7152         and indirect sorting mode.
7153         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7154         sorting.
7155         Suggested by Belazougui Djamel .
7157         * stdlib/Makefile (tests): Add tst-qsort2.
7158         * stdlib/tst-qsort2.c: New test.
7160 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7162         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7163         for dup2 in case another thread races with the current one.  Retry
7164         in this case.
7166         * misc/error.h: Remove support for use outside of libc.  We have to
7167         include <features.h> now.  Include <bits/error.h> if possible.
7168         * misc/bits/error.h: New file.
7170 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7172         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7173         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7174         __extern_always_inline functions unconditionally, drop macros.
7176         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7177         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7178         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7180         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7181         add __artificial__ attribute.
7183 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7185         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7186         backward to forward direction.
7188         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7190         [BZ #645]
7191         * locale/programs/ld-collate.c (collate_finish): Compare against last
7192         used section which is known to have rules defined.
7193         (collate_read): After order_start, correctly record order of sections
7194         and queue sections up.
7196 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7198         [BZ #5071]
7199         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7200         the same number of pages.
7201         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7203         * locale/programs/ld-collate.c (collate_read): After initial copy
7204         statement, continue in state 0.
7206         * include/stdio_ext.h (__fsetlocking): Define as macro.
7208 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7210         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7211         of section order.
7213         * po/pt_BR.po: Fix typo.
7215 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7217         * iconvdata/Makefile (modules): Add ISO8859-9E.
7218         (distribute): Add iso8859-9e.c.
7219         (gen-8bit-gap-modules): Add iso8859-9e.
7220         * iconvdata/iso8859-9e.c: New file.
7221         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7222         * iconvdata/TESTS: Likewise.
7223         * iconvdata/tst-tables.sh: Likewise.
7225         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7227         * locale/iso-639.def: Add several new entries.
7229 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7231         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7232         void * pointers instead of struct link_map **.
7233         (_dl_scope_free): Change argument type to void *.
7234         * include/link.h (struct link_map): Change type of l_reldeps
7235         to struct link_map_reldeps, move l_reldepsact into that
7236         struct too.
7237         * elf/dl-deps.c: Include atomic.h.
7238         (_dl_map_object_deps): Only change l->l_initfini when it is
7239         fully populated, use _dl_scope_free for freeing it.  Optimize
7240         removal of libs from reldeps by using l_reserved flag, when
7241         some removal is needed, allocate a new list instead of
7242         reallocating and free the old with _dl_scope_free.  Adjust
7243         for l_reldeps and l_reldepsact changes.
7244         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7245         searching in l_initfini and l_reldeps without holding dl_load_lock.
7246         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7247         l_reldepsact changes.
7248         * elf/dl-close.c (_dl_close_worker): Likewise.
7249         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7251 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7253         * iconvdata/Makefile (modules): Add KOI8-RU.
7254         (distribute): Add koi8-ru.c.
7255         (gen-8bit-gap-modules): Add koi8-ru.
7256         * iconvdata/koi8-ru.c: New file.
7257         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7258         * iconvdata/TESTS: Likewise.
7259         * iconvdata/tst-tables.sh: Likewise.
7261         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7263 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7265         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7266         with __warning__/__error__ attributes.
7267         (__warnattr): Define.
7268         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7269         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7270         __warnattr.
7271         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7272         of __*_chk if compile time detectable overflow is found.
7273         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7274         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7275         with __warnattr.
7276         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7277         instead of __*_chk if compile time detectable overflow is found.
7278         (__gets_alias): Rename to...
7279         (__gets_warn): ... this.  Add __warnattr.
7280         (gets): Call __gets_warn instead of __gets_alias.
7281         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7282         aliases with __warnattr.
7283         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7284         time detectable overflow is found.
7285         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7286         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7287         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7288         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7289         __getdomainname_chk_warn): New aliases with __warnattr.
7290         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7291         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7292         __*_chk_warn instead of __*_chk if compile time detectable overflow
7293         is found.
7294         (__getgroups_chk): Rename argument to __listlen from listlen.
7295         (__getwd_alias): Rename to...
7296         (__getwd_warn): ... this.  Add __warnattr.
7297         (getwd): Call __getwd_warn instead of __getwd_alias.
7298         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7299         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7300         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7301         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7302         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7303         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7304         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7305         compile time detectable overflow is found.
7306         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7307         to use __*_chk or not.
7308         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7309         in comparisons which function should be called and in __*_chk*
7310         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7311         detectable overflow is found.
7312         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7313         __*_chk argument.
7314         * debug/tst-chk1.c (do_test): Add a few more tests.
7316 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7318         [BZ #5058]
7319         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7320         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7321         (_nl_unload_domain): Finalize conversions_lock.
7322         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7323         handling table of known conversions.
7325 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7327         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7328         close_not_cancel_no_status instead of close.
7330 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7332         [BZ #5028]
7333         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7334         nrules != 0 for multibyte chars.
7336 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7338         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7339         Provide better error message in case the type is unknown.
7341         [BZ #4963]
7342         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7343         * string/stratcliff.c: Make usable to test wide char functions.
7344         * wcsmbs/wcsatcliff.c: New file.
7345         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7347         [BZ #4972]
7348         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7349         (distribute): Add mac-centraleurope.c.
7350         (gen-8bit-gap-modules): Add mac-centraleurope.
7351         * iconvdata/mac-centraleurope.c: New file.
7352         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7353         * iconvdata/TESTS: Likewise.
7354         * iconvdata/tst-tables.sh: Likewise.
7356         [BZ #5043]
7357         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7359 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7361         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7362         from __x86_64_core_cache_size_half.
7363         (init_cacheinfo): Compute shared cache size for AMD processors with
7364         shared L3 correctly.
7365         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7366         name change.
7367         Patch in large parts by Evandro Menezes.
7369 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7371         * elf/dl-lookup.c (add_dependency): Handle failing memory
7372         allocation for dependency list.  Remove unnecessary check.
7374         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7375         open/close when determining source addresses.
7377         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7378         sha512-crypt, and sha512.
7379         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7380         (distribute): Add sha256.h and sha512.h.
7381         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7382         and call the appropriate code.
7383         * crypt/sha256-crypt.c: New file.
7384         * crypt/sha256.c: New file.
7385         * crypt/sha256.h: New file.
7386         * crypt/sha256c-test.c: New file.
7387         * crypt/sha256test.c: New file.
7388         * crypt/sha512-crypt.c: New file.
7389         * crypt/sha512.c: New file.
7390         * crypt/sha512.h: New file.
7391         * crypt/sha512c-test.c: New file.
7392         * crypt/sha512test.c: New file.
7394 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7396         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7397         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7398         __syslog_chk.
7400 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7402         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7403         %as in fscanf format strings.
7405         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7406         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7407         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7408         Likewise.
7409         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7410         Likewise.
7412         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7413         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7414         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7415         * elf/dl-sym.c (do_sym): Likewise.
7416         * include/link.h (struct link_map): Add l_serial field.
7417         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7418         * elf/dl-lookup.c (add_dependency): Add flags argument.
7419         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7420         flags, use THREAD_GSCOPE_RESET_FLAG before and
7421         THREAD_GSCOPE_SET_FLAG after
7422         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7423         Don't dereference map until it has been found on some list.
7424         If map->l_serial changed, return -1.
7426 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7428         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7429         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7430         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7431         libc_hidden_proto.
7432         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7433         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7434         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7435         add libc_hidden_proto.
7436         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7437         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7438         conformance requested.
7439         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7440         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7441         conformance requested.
7442         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7443         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7444         conformance requested.
7445         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7446         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7447         ISO C99 or POSIX conformance requested.
7448         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7449         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7450         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7451         and __isoc99_vsscanf@@GLIBC_2.7.
7452         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7453         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7454         (tests): Add scanf14.
7455         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7456         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7457         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7458         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7459         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7460         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7461         from using internal headers.
7462         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7463         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7464         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7465         and __isoc99_vswscanf@@GLIBC_2.7.
7466         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7467         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7468         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7469         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7470         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7471         * stdio-common/isoc99_scanf.c: New file.
7472         * stdio-common/isoc99_vsscanf.c: New file.
7473         * stdio-common/isoc99_vscanf.c: New file.
7474         * stdio-common/isoc99_vfscanf.c: New file.
7475         * stdio-common/isoc99_fscanf.c: New file.
7476         * stdio-common/isoc99_sscanf.c: New file.
7477         * wcsmbs/isoc99_fwscanf.c: New file.
7478         * wcsmbs/isoc99_vswscanf.c: New file.
7479         * wcsmbs/isoc99_swscanf.c: New file.
7480         * wcsmbs/isoc99_wscanf.c: New file.
7481         * wcsmbs/isoc99_vwscanf.c: New file.
7482         * wcsmbs/isoc99_vfwscanf.c: New file.
7483         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7484         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7485         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7486         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7487         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7488         * stdio-common/scanf14.c: New test.
7489         * stdio-common/scanf15.c: New test.
7490         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7491         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7492         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7493         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7494         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7495         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7496         __nldbl___isoc99_scanf@@GLIBC_2.7,
7497         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7498         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7499         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7500         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7501         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7502         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7503         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7504         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7505         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7506         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7507         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7508         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7509         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7510         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7511         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7512         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7513         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7514         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7515         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7516         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7517         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7518         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7519         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7520         functions.
7521         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7522         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7523         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7524         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7525         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7526         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7527         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7528         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7529         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7530         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7531         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7532         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7534         * stdio-common/Makefile (tests): Add scanf13.
7535         (scanf13-ENV): New.
7536         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7537         m modifier followed by l.
7538         (STRING_ARG): Add width argument.
7539         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7540         <case L_('C')>: Handle %mlc and %mC.
7541         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7542         arguments.
7543         * stdio-common/scanf13.c: New test.
7545         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7546         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7548 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7550         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7551         type and __THROW marker of splice, vmsplice, and tee.
7552         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7553         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7554         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7555         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7556         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7557         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7558         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7559         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7560         as cancellation points.
7562 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7564         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7565         parse more than three parts of the version number.
7567 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7569         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7570         modifier.  Patch by Jakub Jelinek.
7572 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7574         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7575         call_fallocate in misc subdir.
7576         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7577         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7578         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7579         instead of __fallocate64.
7580         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7582 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7584         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7585         * rt/Makefile (headers): Add bits/mqueue2.h.
7586         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7587         optimizing with GCC and __va_arg_pack_len is defined.
7588         * rt/bits/mqueue2.h: New file.
7589         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7590         (mq_open): New strong_alias.
7591         (__mq_open_2): New function.
7592         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7593         (mq_open): New strong_alias.
7594         (__mq_open_2): New function.
7595         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7596         * Versions.def (librt): Add GLIBC_2.7 version.
7597         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7598         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7600         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7601         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7602         is defined rather than when not C++.
7603         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7604         __openat64_alias): New redirects.
7605         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7606         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7607         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7608         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7609         functions instead of function-like macros.
7611 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7613         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7614         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7615         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7617 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7619         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7620         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7622 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7624         * inet/tst-network.c: Increment ERRORS for failing tests.
7626 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7628         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7629         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7630         implement as __extern_always_inline function.
7631         (vsyslog): Define as __extern_always_inline function unconditionally.
7632         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7633         When __va_arg_pack is defined, implement as __extern_always_inline
7634         functions.
7635         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7636         __extern_always_inline functions unconditionally.
7637         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7638         bits/stdio2.h will be included.
7639         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7640         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7641         implement as __extern_always_inline functions.
7642         (vswprintf, vwprintf, vfwprintf): Define as
7643         __extern_always_inline functions unconditionally.
7644         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7646 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
7648         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7649         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7650         attribute.
7651         * include/features.h (__USE_EXTERN_INLINES): Define only when
7652         __extern_inline is defined.
7653         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7654         is defined instead of when not __cplusplus.
7655         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7656         is defined instead of when not __cplusplus.
7657         * socket/sys/socket.h: Include bits/socket2.h when
7658         __extern_always_inline is defined instead of when not __cplusplus.
7659         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7660         is defined instead of when not __cplusplus.
7661         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7662         is defined instead of when not __cplusplus.
7663         * string/string.h: Include bits/string3.h when __extern_always_inline
7664         is defined instead of when not __cplusplus.
7665         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7666         is defined instead of when not __cplusplus.
7667         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7668         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7669         is not defined.
7670         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7671         defined __extern_always_inline instead of !defined __cplusplus.
7672         * libio/bits/stdio-ldbl.h: Likewise.
7673         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7674         * misc/bits/syslog.h (syslog): Don't define for C++.
7675         (vsyslog): Use __extern_always_inline function for C++ instead of
7676         a macro.
7677         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7678         whenever that macro is defined.
7679         (vprintf): Don't provide the inline for C++.
7680         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7681         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7682         define the macros for C++.
7683         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7684         __extern_always_inline functions for C++.
7685         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7686         stat64, lstat64, fstat64, fstatat64): Don't define if not
7687         __USE_EXTERN_INLINES.
7688         * wcsmbs/bits/wchar2.h: Fix #error message.
7689         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7690         (vswprintf, vwprintf, vfwprintf): Define using
7691         __extern_always_inline functions for C++.
7692         * string/bits/string3.h: Don't #undef macros if __cplusplus.
7693         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7694         strncpy, strcat, strncat): Define as __extern_always_inline
7695         functions instead of macros for C++.
7696         * math/bits/cmathcalls.h: Guard __extern_inline routines with
7697         defined __extern_inline.
7698         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7699         to __extern_inline whenever that macro is defined.
7700         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7701         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7702         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7703         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7704         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7705         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7706         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7707         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7708         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7709         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7710         prototypes.  Only provide __extern_inline routines if
7711         __USE_EXTERN_INLINES.
7712         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7713         tests.
7714         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7715         For now avoid some *printf tests in C++.  Skip all testing
7716         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7717         is not.
7718         * debug/tst-chk4.cc: New file.
7719         * debug/tst-chk5.cc: New file.
7720         * debug/tst-chk6.cc: New file.
7721         * debug/tst-lfschk4.cc: New file.
7722         * debug/tst-lfschk5.cc: New file.
7723         * debug/tst-lfschk6.cc: New file.
7724         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7725         prototypes in C++.
7726         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7727         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7728         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7730 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
7732         * po/cs.po: Update from translation team.
7734 2007-09-11  Roland McGrath  <roland@redhat.com>
7736         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7737         compiling.
7739 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7741         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7743 2007-09-05  Roland McGrath  <roland@redhat.com>
7745         * manual/signal.texi (Signaling Another Process): Typo fix.
7746         From Karl Berry <karl@freefriends.org>.
7748 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
7750         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7751         zero if not defined.
7752         (make_request): Recognize optimistic addresses and treat them like
7753         deprecated addresses.
7754         Reported by Neil Horman <nhorman@redhat.com>.
7756 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
7758         * nscd/connections.c (send_ro_fd): Also transfer file size.
7759         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7760         file size don't call fstat.
7762         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7763         ahead and map the file.  This should always be correct and we can
7764         catch problems later.
7766 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
7768         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7769         prototypes.
7770         (__fread_alias, __fread_unlocked_alias): New aliases.
7771         (fread): New extern inline.
7772         (fread_unlocked): Likewise.  Undef macro before definition of
7773         the inline function.
7774         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7775         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7776         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7777         and __fread_unlocked_chk@@GLIBC_2.7.
7778         * debug/fread_chk.c: New file.
7779         * debug/fread_u_chk.c: New file.
7780         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7782 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
7784         * sysdeps/unix/sysv/linux/syscalls.list
7785         (personality): Change caller to EXTRA.
7787 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
7789         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7790         to keep gcc quiet.
7791         * iconvdata/iso-2022-cn.c (BODY): Likewise.
7793         * locale/programs/ld-collate.c (collate_output): Avoid warning if
7794         NDEBUG is defined.
7796         * Makerules: Use -p option with mkdir.
7798         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7799         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7800         (_xdr_directory_obj): Likewise.
7801         (xdr_entry_obj): Likewise.
7802         (xdr_group_obj): Likewise.
7803         (xdr_link_obj): Likewise.
7804         (xdr_table_obj): Likewise.
7805         (_xdr_nis_result): Likewise.
7806         (_xdr_ns_request): Likewise.
7807         (_xdr_ib_request): Likewise.
7808         (_xdr_nis_taglist): Likewise.
7809         (xdr_cback_data): Likewise.
7810         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7811         (xdr_ypresp_maplist): Likewise.
7813         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7815         * posix/regex_internal.h: Prevent some declarations and definitions
7816         to be seen when used in tests.
7818         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7819         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7821         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7823         * config.make.in (datarootdir): Add to shut up configure.
7825         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7826         associativity for fully-associative caches.
7828         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7829         requests.  Fill on more associativity values for L2.
7830         Patch mostly by Evandro Menezes.
7832 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
7834         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7835         (_libc_vdso_platform_setup): Avoid using exported variable by using
7836         alias.
7838         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7840         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7841         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
7842         defined.
7844 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
7846         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7847         align stack for call if pltexit is to be used.
7849         [BZ #3924]
7850         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7851         align for function call in case pltexit has to be called later.
7853         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7854         implicit atomic operation when storing function pointer.
7855         (_dl_runtime_profile): Likewise.
7857 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7859         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7860         NIS_NOTFOUND.
7862 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7864         [BZ #4566]
7865         * string/strtok.c: Fix typo in comment.
7867         [BZ #4582]
7868         * debug/segfault.c: Fix typos in comments.
7870         [BZ #4588]
7871         * stdio-common/tempnam.c: Fix comment, it is not checked that
7872         TMPDIR points to a writable directory.
7874         [BZ #4726]
7875         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7876         memory allocated for the name server address.
7878         [BZ #4946]
7879         * nscd/connections.c (handle_request): Using sendfile always
7880         requires that mmap is used for the database.
7881         Patch by Petr Baudis <pasky@suse.cz>.
7883         [BZ #4905]
7884         * nscd/hstcache.c (cache_addhst): When reloading an entry which
7885         suddenly has two or more addresses, ignore it and remove the old
7886         entry.
7888         [BZ #4814]
7889         * resolv/res_hconf.c: Prepare for compiling outside libc.
7890         * nscd/res_hconf.c: New file.
7891         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
7892         the new file.
7893         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7894         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7896         * nscd/hstcache.c (cache_addhst): Minimal optimization.
7898         [BZ #4925]
7899         * debug/pcprofiledump.c: Turn on internationalization by calling
7900         setlocale.  Patch mostly by Benno Schulenberg.
7902         [BZ #4936]
7903         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7904         the state.
7905         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7906         * iconvdata/bug-iconv5.c: New file.
7908 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
7910         [BZ #4896]
7911         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7912         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7913         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7914         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7915         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7916         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7917         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7918         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7920 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7922         [BZ #4937]
7923         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7924         lookup loop.  Suggested by John Reiser.
7926 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
7928         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7930 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
7932         * csu/libc-start.c: Don't handle VDSO_SETUP here.
7933         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7934         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7935         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
7936         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7937         to...
7938         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
7940 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
7942         * po/nl.po: Update from translation team.
7944 2007-08-16  Andreas Jaeger  <aj@suse.de>
7946         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7947         Reported by Peter Festner <peter.festner@ewetel.net>.
7949 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7951         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7953 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
7955         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7956         to check for undefined symbols.
7958         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7959         If the syscall fails, set errno to the actual returned error number
7960         rather than EINVAL.
7961         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7962         arguments are incorrect, set errno to EINVAL, if the syscall
7963         fails, set errno to the actual returned error number.
7965         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7966         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7968         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7969         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
7970         file.
7971         (ASI_PNF, ASI_BLK_P): Don't define.
7972         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7973         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
7974         file.
7975         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7976         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
7977         file.
7979 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
7981         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7982         FE_UNDERFLOW on Niagara CPUs.
7984         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7985         exceptions.
7987 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
7989         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7990         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7991         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7992         flush should be used or not inside of the function.
7993         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7995         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7996         __thread_start): Use HIDDEN_JUMPTARGET.
7997         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7998         __thread_start): Likewise.
7999         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8001         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8002         Add libc_hidden_proto.
8003         (STRTOF): Add libc_hidden_proto.
8004         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8005         (strtold_l, wcstold_l): Use them as second argument for
8006         long_double_symbol.
8008 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8010         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8012 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8014         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8016 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8018         * po/bg.po: New file.  From the translation team.
8020 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8022         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8023         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8024         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8025         when each feature was introduced.
8027         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8028         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8029         (CHECK_HASH): New macro.
8030         (PREPARE_VERSION): Use it.
8032         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8033         prototype if not __ASSUME_PSELECT.
8034         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8035         prototype if not __ASSUME_PPOLL.
8037         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8039         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8040         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8041         is defined.
8043 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8045         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8046         (_libc_vdso_platform_setup): If vDSO is not available point
8047         __vdso_gettimeofday to the vsyscall.
8048         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8049         __vdso_gettimeofday instead of vsyscall.
8051 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8053         * nscd/servicescache.c: Include kernel-features.h.
8054         * nscd/gai.c: Likewise.
8055         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8056         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8057         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8058         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8059         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8060         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8061         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8062         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8063         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8065 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8067         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8068         and _dl_get_origin defines anymore.
8070         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8071         Build fix for systems which might lack POSIX timer support.
8073         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8074         (_libc_vdso_platform_setup): Mangle function pointers before storing
8075         them.
8076         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8077         Demangle vdso pointer before use.
8078         (INTERNAL_VSYSCALL): Likewise.
8080         * elf/cache.c (primes): Mark as const.
8081         Noted by Roland McGrath.
8083 2007-08-01  Andreas Jaeger  <aj@suse.de>
8084             Jakub Jelinek  <jakub@redhat.com>
8086         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8087         (options): Add option.
8088         (parse_opt): Handle option.
8089         (manual_link): Adjust process_file caller.  Call implicit_soname.
8090         (search_dir): Formatting.  Use and populate auxiliary cache.
8091         (main): Load and save auxiliary cache.
8092         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8093         stat64 from fstat64 to caller.
8094         (implicit_soname): New function.
8095         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8096         leave *soname as NULL.
8097         * elf/cache.c: Include libgen.h.
8098         (print_entry, print_cache, compare, save_cache, add_to_cache):
8099         Formatting and cleanups.
8100         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8101         aux_cache_file): New structures.
8102         (AUX_CACHEMAGIC): Define.
8103         (primes): New array.
8104         (aux_hash_size, aux_hash): New variables.
8105         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8106         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8107         load_aux_cache, save_aux_cache): New functions.
8108         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8109         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8110         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8111         (process_file): Adjust prototype.
8113 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8115         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8116         with __need_size_t.
8118 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8120         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8121         r_found_version structure as second parameter.
8122         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8123         (_dl_vdso_vsym): Change type of second parameter accordingly.
8124         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8125         (_libc_vdso_platform_setup): Adjust.
8126         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8127         (_libc_vdso_platform_setup): Likewise.
8129         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8130         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8131         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8132         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8133         * csu/libc-start.c: Pretty printing.
8134         Use VDSO_SETUP if defined.
8135         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8136         and let generic code call into _libc_vdso_platform_setup.
8137         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8138         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8139         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8140         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8141         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8142         for GLIBC_PRIVATE.
8143         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8144         (sysdep_rountines): Add dl-vdso.
8146         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8147         of routines.
8149         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8150         attribute_hidden to __vdso_gettimeofday prototype.
8152 2007-08-12  Roland McGrath  <roland@redhat.com>
8154         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8155         From: Karl Berry <karl@freefriends.org>.
8157 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8159         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8160         an atime update for the files we read.
8162 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8164         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8166         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8167         instead of mkstemp.
8169         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8170         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8171         * misc/mkostemp.c: New file.
8172         * misc/mkostemp64.c: New file.
8173         * stdlib/stdlib.h: Declare the new functions.
8174         * sysdeps/posix/tempname.c: Add new parameter which is added to
8175         the flags for open.  Remove __GT_BIGFILE handling.
8176         * stdio-common/tempname.c: Likewise.
8177         * include/stdio.h: Adjust __gen_tempname prototype.
8178         Renumber __GT_* constants.
8179         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8180         * misc/mkdtemp.c: Likewise.
8181         * misc/mkstemp.c: Likewise.
8182         * misc/mkstemp64.c: Likewise.
8183         * misc/mktemp.c: Likewise.
8184         * stdio-common/tempnam.c: Likewise.
8185         * stdio-common/tmpfile.c: Likewise.
8186         * stdio-common/tmpfile64.c: Likewise.
8187         * stdio-common/tmpnam.c: Likewise.
8188         * stdio-common/tmpnam_r.c: Likewise.
8190 2007-08-10  Roland McGrath  <roland@frob.com>
8192         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8193         New macros.
8194         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8195         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8197 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8199         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8200         possible.
8201         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8202         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8203         * nss/nss_files/files-have_o_cloexec.c: New file.
8205         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8206         available.
8208 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8210         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8211         ___new_wcstold_l): New weak aliases.
8212         (strtold_l, wcstold_l): Use them as second argument for
8213         long_double_symbol.
8215 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8217         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8218         register in test for error.
8220         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8221         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8223         * po/sv.po: Update from translation team.
8225 2007-08-06  Roland McGrath  <roland@redhat.com>
8227         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8228         Remove __strto*_l inlines.
8229         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8230         * stdlib/strtod.c: Add libc_hidden_def.
8231         * stdlib/strtod_l.c: Likewise.
8232         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8233         for __new_strtold and __new_wcstold.
8234         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8235         __STRTOF, STRTOF.
8236         * stdlib/strtol.c: Add libc_hidden_def.
8237         * stdlib/strtol_l.c: Likewise.
8238         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8239         strtoq.
8241         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8243         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8244         * scripts/data/localplt-generic.data: ... here.
8245         * elf/Makefile (check-data): Get generic file if no other.
8246         ($(objpfx)check-localplt.out): Make target unconditional.
8248         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8249         Use ElfW(Nhdr).
8251 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8253         * po/zh_CN.po: Updated translation from translation team.
8255 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8258         Don't use CGOTSETUP and CGOTRESTORE macros.
8260 2007-08-04  Roland McGrath  <roland@redhat.com>
8262         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8264 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8266         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8267         __extension__ around the whole statement expression.
8269 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8271         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8272         elements during initialization.
8274         * po/pl.po: Updated translation from translation team.
8275         * po/tr.po: Likewise.
8276         * po/nl.po: Likewise.
8278 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8280         * rt/aio.h: Add __nonnull attributes.
8282 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8284         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8285         * stdlib/Makefile (tests): Add tst-strtod5.
8286         (tst-strtod5-ENV): New.
8287         * stdlib/tst-strtod5.c: New file.
8289         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8290         failed.
8291         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8292         on failure.
8294         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8295         allocated.
8297 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8299         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8300         numbers.
8302 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8304         * io/Makefile (aux): Add have_o_cloexec.
8305         * include/fcntl.h: Declare __have_o_cloexec.
8306         * io/have_o_cloexec.c: New file.
8307         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8308         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8309         fcntl call if not necessary.
8310         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8311         of local variable.
8313         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8314         Avoid memset, add explicit initialization.
8315         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8316         to the end and change into zero-sized array.
8317         Move lock member to fill a hole on 64-bit platforms.
8319         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8320         inline functions.
8321         * include/stdlib.h: Add __strto*_internal prototypes here.
8322         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8323         inline functions.
8324         * include/wchar.h: Add __wcsto*_internal prototypes.
8325         * sysdeps/generic/inttypes.h: No need to protect the declaration
8326         of the __strto*_internal and __wcsto*_internal members here.
8328         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8330 2007-08-02  Roland McGrath  <roland@redhat.com>
8332         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8333         $(inst_bindir)/getconf if possible.
8335         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8336         (generated): Add it.
8337         ($(inst_libexecdir)/getconf): Use it.
8339 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8341         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8342         /proc is faster and sufficient.  /sys is still needed for
8343         __get_nprocs_conf.
8345 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8347         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8348         syscall as __fallocate64.
8349         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8350         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8352 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8354         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8355         value.
8357         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8358         if off_t is different rank from size_t.
8360         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8361         uw_frame_state_for): Avoid type punning warnings.
8362         * sysdeps/generic/unwind-dw2-fde-glibc.c
8363         (_Unwind_IteratePhdrCallback): Likewise.
8364         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8365         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8366         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8367         pointers.
8369 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8371         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8372         total processors using sysfs.
8373         (__get_nprocs): Use sysfs to determine which processors are online.
8375 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8377         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8378         syscall arguments count.
8380         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8382 2007-07-30  Roland McGrath  <roland@redhat.com>
8384         * manual/libc.texinfo: Update copyrights, formatting magic, and
8385         @dircategory.  From Karl Berry <karl@freefriends.org>.
8387 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8389         [BZ #4860]
8390         * io/Makefile (headers): Add bits/fcntl2.h.
8392         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8393         using gcc builtin.
8394         (__CPU_EQUAL_S): Likewise.
8396         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8397         (tests): Add tst-cpuset.
8398         * posix/sched_cpualloc.c: New file.
8399         * posix/sched_cpufree.c: New file.
8400         * posix/tst-cpuset.c: New file.
8401         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8402         GLIBC_2.7.
8403         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8404         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8405         macros.  Define CPU_*_S macros.
8407 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8409         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8410         entry.
8412         [BZ #4858]
8413         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8414         #.0g and value rounded to 1.0.
8415         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8417 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8419         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8420         for int_frac_digits and frac_digits.
8422         * login/logout.c (logout): Avoid aliasing violation.
8423         * login/logwtmp.c (logwtmp): Likewise.
8425         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8427         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8428         to avoid warning.
8429         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8430         warning.
8431         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8432         warning.
8433         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8434         to avoid warnings.
8436         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8437         void **.
8438         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8440         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8441         char * to avoid warning.
8442         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8444         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8446         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8447         allocate_arrays): Cast second argument to charmap_find_symbol
8448         to char * to avoid warnings.
8450         * locale/programs/repertoire.c (repertoire_new_char): Change
8451         from_nr, to_nr and cnt to unsigned long, adjust printf format
8452         string.
8454         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8455         Cast second argument to new_element to char * to avoid warnings.
8457         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8459         * intl/gettextP.h (struct loaded_domain): Change plural to const
8460         struct expression *.
8461         * intl/plural-eval.c (plural_eval): Change first argument to
8462         const struct expression *.
8463         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8464         argument to const struct expression **.
8465         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8466         prototypes.
8467         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8468         in call to __gettext_free_exp.
8470         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8471         unitialized wstring/wpattern var warnings.
8473         * posix/runtests.c (struct a_test): Make data field const char *.
8475         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8476         vars if not LDBL_MANT_DIG >= 106.
8478         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8480         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8481         __find_specmb to avoid warning.
8483         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8485         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8486         to avoid warnings.
8488         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8489         initializer.
8491         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8492         tv var when it will be actually used.
8494         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8495         to avoid warnings.
8497         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8498         char array resp. pointer.
8499         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8500         char array.
8501         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8502         to const unsigned char **.
8503         (ucs4_to_cns11643): Change second argument to unsigned char *.
8504         * iconvdata/euc-tw.c (BODY): Change endp type to
8505         const unsigned char *.
8506         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8507         to unsigned char *.
8508         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8509         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8510         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8511         types to unsigned char pointers/arrays instead of char.
8512         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8513         to unsigned char *.
8514         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8515         * iconvdata/jis0212.h: Include assert.h.
8516         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8517         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8518         of trying to handle that.
8519         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8520         shut up a warning.
8521         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8522         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8523         two dimensional const unsigned char arrays.
8524         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8525         Initialize endp to inptr to shut up a warning.
8527 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8529         [BZ #4772]
8530         * time/strptime_l.c (__strptime_internal): Silently ignore
8531         strftime modifiers and field width in recursive calls.
8533         * include/time.h (enum ptime_locale_status): Remove.
8534         (__strptime_internal): Remove decided and era_cnt arguments,
8535         add statep argument.
8536         * time/strptime_l.c (__strptime_internal): Remove decided
8537         and era_cnt arguments, add statep argument.  Don't recompute
8538         any fields in recursive calls, only update caller's tm
8539         and state, if recursive call fails, don't change tm nor
8540         any state.
8541         (get_alt_number): Adjust.
8542         (recursive): Adjust caller.
8543         (strptime): Likewise.
8544         * time/strptime.c (strptime): Likewise.
8546 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8548         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8549         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8550         if from and to charsets are the same.
8551         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8552         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8553         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8555 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8557         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8558         Don't define wint_t when __need_mbstate_t unless it
8559         is necessary.
8560         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8561         in the typedef if possible.
8562         * wctype/wctype.h (wint_t): Define by including
8563         wchar.h with __need_wint_t instead of including stddef.h
8564         with __need_wint_t and as fallback definining it ourselves.
8565         * iconv/gconv.h (__need_wint_t): Define before including
8566         wchar.h.
8567         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8568         or _GLIBCPP_USE_WCHAR_T.
8569         (__need_wchar_t): Don't define
8570         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8571         (__need_wint_t): Don't define before including stddef.h,
8572         define before including wchar.h only if _LIBC or
8573         _GLIBCPP_USE_WCHAR_T.
8574         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8575         * sysdeps/mach/hurd/_G_config.h: Likewise.
8576         * sysdeps/generic/_G_config.h: Likewise.
8577         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8578         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8579         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8580         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8582 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8584         * sysdeps/posix/posix_fallocate64.c: Undefine
8585         __posix_fallocate64_l64 before alias handling.
8586         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8587         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8588         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8589         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8591         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8593 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8595         * locale/programs/ld-collate.c (atwc): New variable.
8596         (add_to_tablewc): New toplevel function, moved from collate_output.
8597         (collate_output): Remove add_to_tablewc nested function.
8599         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8600         (name_insert): New function.
8601         (write_output): Remove hash_table and hash_size vars and name_insert
8602         nested function.
8604 2007-07-24  Roland McGrath  <roland@redhat.com>
8606         * Makerules (install-others-programs-nosubdir): New target.
8607         (install-no-libc.a-nosubdir): Depend on it.
8609         * iconv/Makefile (install-others-programs): Set this instead of
8610         install-others.
8611         * login/Makefile (install-others-programs): Likewise.
8612         * posix/Makefile (install-others-programs): Likewise.
8614         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8615         dependencies.
8617 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8619         * io/Makefile (tests): Add tst-posix_fallocate.
8620         * io/tst-posix_fallocate.c: New file.
8622         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8623         __ASSUME_FALLOCATE.
8625 2007-07-22  Roland McGrath  <roland@frob.com>
8627         * hurd/getdport.c: Add missing copyright year update.
8629         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8630         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8632 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
8634         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8636         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8637         O_CLOEXEC is needed.
8638         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8639         Avoid additional fcntl to set O_CLOEXEC if not needed.
8640         * nis/nss_compat/compat-initgroups.c: Likewise.
8641         * nis/nss_compat/compat-pwd.c: Likewise.
8642         * nis/nss_compat/compat-spwd.c: Likewise.
8644 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8646         [BZ #3665]
8647         * manual/errno.texi: Change ECANCELED value to 119.
8649         [BZ #4610]
8650         * mach/lock-intern.h: Include <sys/cdefs.h>.
8652         [BZ #4178]
8653         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8654         reading A.
8656         [BZ #4126]
8657         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8658         to __sigsuspend.
8660         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8662 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
8664         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8665         `__ASSEMBLER__'.
8666         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8668 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
8670         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8671         descriptor received from nscd.
8673         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8675         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8676         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8677         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8678         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8679         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8680         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8682 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8684         [BZ #4816]
8685         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8687         [BZ #4813]
8688         * login/forkpty.c (forkpty): Close master and slave fds on
8689         fork failure.  Patch by
8690         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8692 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
8694         * include/features.h (__USE_ISOC95): New define.
8695         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8696         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8697         for -std=iso9899:199409.
8698         * CONFORMANCE: Remove comments about unsupported AMD1.
8700 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8702         * sysdeps/ia64/sched_cpucount.c: New file.
8703         * sysdeps/powerpc/sched_cpucount.c: New file.
8705         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8706         __BEGIN_DECLS/__END_DECLS around the prototype.
8707         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
8708         pointer to const cpu_set_t.
8710         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8711         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8712         __need_size_t and include stddef.h.
8713         * sysvipc/sys/msg.h: Likewise.
8714         * posix/sched.h: Likewise.
8715         * hurd/hurd/signal.h (__need_size_t): Define.
8717         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8718         neither does signal.h in pedantic ISO C namespaces.  stdio.h
8719         no longer defines wint_t or wchar_t.
8721         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8722         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8723         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8724         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8725         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8726         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8727         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8728         * debug/printf_chk.c (__printf_chk): Likewise.
8729         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8730         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8732         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8733         Define.
8735         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8736         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8738 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8740         [BZ #4792]
8741         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8742         * malloc/malloc.h (realloc): Likewise.
8744         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8745         if one of proc_file_chain streams has that fileno.
8746         * stdio-common/Makefile (tests): Add tst-popen2.
8747         * stdio-common/tst-popen2.c: New test.
8749 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
8751         * elf/ldconfig.c: Allow GPLv2 or any later version.
8752         * elf/readlib.c: Likewise.
8753         * elf/chroot_canon.c: Likewise.
8754         * elf/cache.c: Likewise.
8755         * nscd/mem.c: Likewise.
8756         * nscd/getpwuid_r.c: Likewise.
8757         * nscd/grpcache.c: Likewise.
8758         * nscd/aicache.c: Likewise.
8759         * nscd/getsrvbynm_r.c: Likewise.
8760         * nscd/nscd.c: Likewise.
8761         * nscd/servicescache.c: Likewise.
8762         * nscd/getsrvbypt_r.c: Likewise.
8763         * nscd/initgrcache.c: Likewise.
8764         * nscd/gethstbyad_r.c: Likewise.
8765         * nscd/gethstbynm2_r.c: Likewise.
8766         * nscd/getgrnam_r.c: Likewise.
8767         * nscd/nscd_setup_thread.c: Likewise.
8768         * nscd/getpwnam_r.c: Likewise.
8769         * nscd/gai.c: Likewise.
8770         * nscd/connections.c: Likewise.
8771         * nscd/dbg_log.c: Likewise.
8772         * nscd/cache.c: Likewise.
8773         * nscd/hstcache.c: Likewise.
8774         * nscd/nscd_conf.c: Likewise.
8775         * nscd/getgrgid_r.c: Likewise.
8776         * nscd/pwdcache.c: Likewise.
8777         * catgets/gencat.c: Likewise.
8778         * locale/programs/linereader.h: Likewise.
8779         * locale/programs/locarchive.c: Likewise.
8780         * locale/programs/ld-paper.c: Likewise.
8781         * locale/programs/locfile-kw.h: Likewise.
8782         * locale/programs/ld-address.c: Likewise.
8783         * locale/programs/xmalloc.c: Likewise.
8784         * locale/programs/ld-time.c: Likewise.
8785         * locale/programs/localedef.c: Likewise.
8786         * locale/programs/simple-hash.c: Likewise.
8787         * locale/programs/xstrdup.c: Likewise.
8788         * locale/programs/ld-numeric.c: Likewise.
8789         * locale/programs/locfile-kw.gperf: Likewise.
8790         * locale/programs/ld-collate.c: Likewise.
8791         * locale/programs/charmap-kw.gperf: Likewise.
8792         * locale/programs/charmap.h: Likewise.
8793         * locale/programs/charmap-kw.h: Likewise.
8794         * locale/programs/config.h: Likewise.
8795         * locale/programs/locfile.c: Likewise.
8796         * locale/programs/ld-ctype.c: Likewise.
8797         * locale/programs/charmap.c: Likewise.
8798         * locale/programs/ld-messages.c: Likewise.
8799         * locale/programs/repertoire.h: Likewise.
8800         * locale/programs/locale.c: Likewise.
8801         * locale/programs/ld-name.c: Likewise.
8802         * locale/programs/linereader.c: Likewise.
8803         * locale/programs/locfile.h: Likewise.
8804         * locale/programs/3level.h: Likewise.
8805         * locale/programs/ld-monetary.c: Likewise.
8806         * locale/programs/ld-measurement.c: Likewise.
8807         * locale/programs/charmap-dir.c: Likewise.
8808         * locale/programs/ld-identification.c: Likewise.
8809         * locale/programs/localedef.h: Likewise.
8810         * locale/programs/charmap-dir.h: Likewise.
8811         * locale/programs/repertoire.c: Likewise.
8812         * locale/programs/simple-hash.h: Likewise.
8813         * locale/programs/ld-telephone.c: Likewise.
8814         * locale/programs/locale-spec.c: Likewise.
8815         * locale/programs/locfile-token.h: Likewise.
8816         * posix/getconf.c: Likewise.
8817         * iconv/dummy-repertoire.c: Likewise.
8818         * iconv/iconv_charmap.c: Likewise.
8819         * iconv/iconvconfig.c: Likewise.
8820         * iconv/iconv_prog.c: Likewise.
8821         * malloc/memusagestat.c: Likewise.
8822         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8824 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8826         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8827         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8828         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8829         check for the first argument.
8831 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
8833         [BZ #4775]
8834         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8835         (__tgmath_real_type): Fix if expr is const int or other const
8836         qualified integral type.
8837         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8838         expressions and handle const qualified arguments.
8839         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8840         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8841         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8842         statement expressions.
8843         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8844         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8845         (__TGMATH_UNARY_IMAG): Define.
8846         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8847         * math/Makefile (tests): Add test-tgmath2.
8848         (CFLAGS-test-tgmath2.c): Add.
8849         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8850         count_cfloat, count_cldouble): New variables.
8851         (NCCALLS): Define.
8852         (main): Check number of complex calls as well.
8853         (F(compile_test)): Add complex tests and tests with const qualified
8854         arguments.
8855         (y, z, ccount): Define.
8856         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8857         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8858         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8859         F(cproj)): New functions.
8860         * math/test-tgmath2.c: New test.
8862 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
8864         [BZ #4776]
8865         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8866         RPATH etc. as "/" rather than "", don't segfault on empty paths,
8867         instead output ".".
8868         * dlfcn/Makefile (distribute): Add glreflib3.c.
8869         (module-names): Add glreflib3.
8870         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8871         glreflib1.so.
8872         (LDFLAGS_glreflib3.so): New.
8873         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8874         glreflib1.so.
8875         * dlfcn/glreflib3.c: New file.
8877         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8878         returned -1, return NULL.
8879         * intl/explodename.c (_nl_explode_name): Return -1 if
8880         _nl_normalize_codeset failed.
8882 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
8884         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8885         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
8886         and avoid branch misspredicts for > 31 bytes memset case.
8887         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8888         Remove toc ref to __cache_line_size.
8890         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8891         to get ISA-V2.0 branch hints.
8892         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8893         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8894         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8895         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8896         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8897         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8898         Remove toc ref to __cache_line_size.
8900         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8901         Include math_ldbl_opt.h.
8903 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
8905         [BZ #4773]
8906         * time/strptime_l.c (__strptime_internal): Implement greedy
8907         matching of weekday and month names.
8909 2007-07-09  Roland McGrath  <roland@redhat.com>
8911         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8912         (ELF_NOTE_ABI): Use it.
8913         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8915 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
8917         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8918         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8920 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
8922         [BZ #4745]
8923         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8924         in loop to look for conversion specifier to avoid testing of
8925         wrong errno value.
8926         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8927         * stdio-common/bug18.c: New file.
8928         * stdio-common/bug18a.c: New file.
8929         * stdio-common/bug19.c: New file.
8930         * stdio-common/bug19a.c: New file.
8932 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
8934         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8935         running awk script.
8937 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
8939         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8940         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
8941         Return NULL if mmap failed instead of asserting it does not.
8942         (calloc): Check for integer overflow.
8944         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8945         than LONG_MAX / 10.
8947 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
8949         [BZ #4702]
8950         * nis/nss-default.c: Include errno.h.
8951         (init): Preserve errno.
8953 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
8955         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8957 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
8959         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8961 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8963         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8965 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8967         * sysdeps/s390/dl-procinfo.c: New file.
8968         * sysdeps/s390/dl-procinfo.h: New file.
8969         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8971 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
8973         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8974         in PT_NOTE segments with multiple notes.
8975         * elf/readelflib.c (process_elf_file): Likewise.
8977 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
8979         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8980         ISO C compliant.
8982 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8984         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8986 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
8988         * include/link.h: Don't include rtld-lowlevel.h.
8989         (struct link_map): Remove l_scope_lock.
8990         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8991         (_dl_scope_free_list): New field (variable) in _rtld_global.
8992         (DL_LOOKUP_SCOPE_LOCK): Remove.
8993         (_dl_scope_free): New prototype.
8994         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8995         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8996         (_dl_profile_fixup): Likewise.
8997         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
8998         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8999         THREAD_GSCOPE_RESET_FLAG around it.
9000         * elf/dl-close.c (_dl_close_worker): Don't use
9001         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9002         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9003         scopes were queued or if l_scope_mem has been abandoned.
9004         * elf/dl-open.c (_dl_scope_free): New function.
9005         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9006         * elf/dl-support.c (_dl_scope_free_list): New variable.
9007         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9008         Remove DL_LOOKUP_SCOPE_LOCK handling.
9009         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9010         handling.
9011         * elf/dl-object.c (_dl_new_object): Don't use
9012         __rtld_mrlock_initialize.
9014 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9016         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9017         to fill in holes
9018         (rtld_global_ro): Likewise.
9020 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9022         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9023         Move PT_LOAD checking to...
9024         (_dl_addr_inside_object): ... here, new function.
9025         * elf/dl-sym.c (do_sym): If not l_contiguous,
9026         call _dl_addr_inside_object.
9027         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9028         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9029         * elf/dl-open.c (dl_open_worker): Likewise.
9030         (_dl_addr_inside_object): New function if IS_IN_rtld.
9031         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9032         holes are present or are PROT_NONE protected.
9033         * include/link.h (struct link_map): Add l_contiguous field.
9034         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9036 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9037             Tomas Janousek  <tjanouse@redhat.com>
9038             Ulrich Drepper  <drepper@redhat.com>
9040         [BZ #4647]
9041         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9042         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9043         socket.
9044         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9045         unused member a bitmap.
9046         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9047         servers are configured.
9049 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9051         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9053 2007-06-17  Andreas Schwab  <schwab@suse.de>
9055         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9057 2007-06-16  Andreas Jaeger  <aj@suse.de>
9059         [BZ #4125]
9060         * sysdeps/unix/sysv/linux/sys/ptrace.h
9061         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9062         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9063         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9064         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9065         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9066         Define.
9067         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9068         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9069         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9070         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9072 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9074         [BZ #4599]
9075         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9076         determining whether there are IPv4/IPv6 addresses, ignore loopback
9077         addresses.
9079 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9081         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9082         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9083         as the return type.  Change type of "r" variable to CMPtype.
9084         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9085         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9086         * soft-fp/gedf2.c (__gedf2): Likewise.
9087         * soft-fp/gesf2.c (__gesf2): Likewise.
9088         * soft-fp/getf2.c (__getf2): Likewise.
9089         * soft-fp/ledf2.c (__ledf2): Likewise.
9090         * soft-fp/lesf2.c (__lesf2): Likewise.
9091         * soft-fp/letf2.c (__letf2): Likewise.
9092         * soft-fp/unorddf2 (__unorddf2): Likewise.
9093         * soft-fp/unordsf2 (__unordsf2): Likewise.
9094         * soft-fp/unordtf2 (__unordtf2): Likewise.
9096 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9098         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9099         make sure gcc doesn't mess around with this.
9101 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9103         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9105 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9107         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9108         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9109         at most once per _dl_close_worker.
9111 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9113         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9114         __sched_cpucount as const.
9115         * posix/sched_cpucount.c: Adjust.
9117         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9118         instruction for counting bits.
9119         * sysdeps/x86_64/sched_cpucount.c: New file.
9121 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9123         * configure.in: Avoid variable named BASH.
9124         * config.make.in: Likewise.
9125         Patch in part by Mike Frysinger.
9127 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9129         [BZ #4586]
9130         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9131         pseudo-zeros as zero.
9132         * sysdeps/x86_64/ldbl2mpn.c: New file.
9133         * sysdeps/ia64/ldbl2mpn.c: New file.
9135 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9137         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9138         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9139         Remove unreachable code at the end.
9141 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9143         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9144         ldbl-128ibm in comment.
9145         (fpclassifyl): Correct classification of denormals.
9146         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9147         return value for MIN denormal. Rewrite using long double math too
9148         correctly handle denormals and canonicalize the results.
9150 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9152         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9153         (__mpn_construct_long_double): Fix conversion where result ought
9154         to be smaller than __LDBL_MIN__, or the low double should be
9155         denormal.  Fix decision where to negate low double - honor round
9156         to even rules.
9157         * stdio-common/tst-sprintf2.c: Include string.h.
9158         (COMPARE_LDBL): Define.
9159         (TEST): Also test whether a string hexadecimal float representation
9160         can be parsed back to the number.
9161         (main): Add a couple of further tests.
9163 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9165         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9166         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9167         is non-zero, but smaller than 2 * __DBL_MIN__.
9168         * stdio-common/tst-sprintf2.c: New test.
9169         * stdio-common/Makefile (tests): Add tst-sprintf2.
9171         * math/test-misc.c (main): Don't run last batch of tests with
9172         IBM long double format.
9174 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9176         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9177         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9178         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9179         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9180         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9181         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9182         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9183         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9184         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9185         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9188         New file.
9189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9190         New file.
9191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9192         New file.
9193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9194         New file.
9195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9196         New file.
9197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9199         New file.
9200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9201         New file.
9202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9203         New file.
9204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9205         New file.
9206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9207         New file.
9209 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9211         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9212         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9213         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9214         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9215         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9216         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9217         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9218         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9220 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9222         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9223         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9224         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9225         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9226         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9227         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9228         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9229         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9231 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9233         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9234         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9235         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9236         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9238 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9240         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9241         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9243 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9245         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9246         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9247         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9248         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9250 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9252         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9253         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9255 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9257         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9258         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9260         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9261         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9262         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9263         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9265 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9267         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9268         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9269         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9270         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9272 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9274         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9275         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9276         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9277         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9278         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9279         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9281 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9283         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9284         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9285         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9286         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9288 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9290         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9291         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9292         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9293         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9294         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9295         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9296         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9297         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9298         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9299         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9300         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9301         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9302         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9303         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9304         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9305         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9307 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9309         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9310         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9312 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9314         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9315         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9317 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9319         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9320         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9321         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9322         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9323         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9324         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9325         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9326         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9327         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9328         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9330 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9332         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9334 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9336         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9337         branch miss-predicts. Ensure that cache line crossing does not impact
9338         dispatch grouping.
9340 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9342         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9343         "../../powerpc32/power4/memcopy.h".
9344         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9345         "../../powerpc32/power4/wordcopy.c".
9347 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9349         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9350         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9351         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9352         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9353         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9354         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9356 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9358         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9360 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9362         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9363         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9364         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9365         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9366         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9367         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9368         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9369         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9371 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9373         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9375 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9377         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9378         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9379         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9380         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9381         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9382         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9383         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9385 2007-05-29  Roland McGrath  <roland@redhat.com>
9387         * po/Makefile (po-sed-cmd): New variable.
9388         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9390 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9392         * crypt/md5-crypt.c: Fix comment.
9394         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9395         of crashing.  When this is the case or if the reply is malformed,
9396         don't try to close the new file descriptor since it does not
9397         exist.
9398         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9400 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9402         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9403         if __NR_utimensat is not defined.
9405 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9407         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9409 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9411         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9412         (open): Fix comment typos.  Don't call __open_2 if flags
9413         is a compile time constant without O_CREAT.
9414         (__open64_2): Add nonnull attribute.
9415         (open64): Fix comment typos.  Don't call __open64_2 if flags
9416         is a compile time constant without O_CREAT.
9417         (__openat_2): Add nonnull attribute, fix nonnull attribute
9418         on redirect.
9419         (openat): Fix comment typos.  Don't call __openat_2 if flags
9420         is a compile time constant without O_CREAT.
9421         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9422         on redirect.
9423         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9424         is a compile time constant without O_CREAT.
9426 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9428         * Makerules (sysd-rules): Define PTW for ptw-* files.
9429         * Versions: Define GLIBC_2.7 for libc.
9430         * include/stdio.h: Declare __fortify_fail.
9431         * debug/fortify_fail.c: New file.
9432         * debug/Makefile (routines): Add fortify_fail.
9433         * debug/chk_fail.c: Use __fortify_fail.
9434         * debug/stack_chk_fail.c: Likewise.
9435         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9436         __openat64_2 for GLIBC_2.7.
9437         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9438         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9439         and fails if necessary.
9440         * io/open64.c: Likewise.
9441         * io/openat.c: Likewise.
9442         * io/openat64.c: Likewise.
9443         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9444         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9445         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9446         * io/bits/fcntl2.h: New file.
9447         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9448         __openat64_2.
9449         * include/bits/fcntl2.h: New file.
9450         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9451         Add open_2.
9452         * sysdeps/unix/sysv/linux/open_2.c: New file.
9454 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9456         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9457         as second parameter to handle_intel.
9459         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9460         the entry.
9462         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9463         handling to ...
9464         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9465         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9466         cacheinfo.
9467         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9468         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9469         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9471         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9473 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9475         [BZ #4525]
9476         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9477         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9478         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9480         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9482         [BZ #4514]
9483         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9484         reinitialize workend at the start of each do_positional format spec
9485         loop, free workstart before do_positional loops.
9486         (printf_unknown): Fix size of work_buffer.
9487         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9489         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9490         (public_sET_STATe): If ms->version < 3, put all chunks into
9491         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9492         chunks.
9494         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9495         * malloc/hooks.c: Likewise.
9496         * malloc/arena.c: Likewise.
9497         * malloc/malloc.c (do_check_malloc_state): Don't assert
9498         n_mmaps is not greater than n_mmaps_max.  This removes the need
9499         for the previous change.
9501         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9502         2007-05-07 commit.
9504 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9506         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9507         Define for kernel >= 2.6.22.
9509 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9511         * elf/dl-close.c (_dl_close_worker): When removing object from
9512         global scope, wait for all lookups to finish afterwards.
9513         * elf/dl-open.c (add_to_global): When global scope array must
9514         grow, allocate a new one and free old array only after all
9515         lookups finish.
9516         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9517         (_dl_lookup_symbol_x): Likewise.
9518         * elf/dl-support.c: Define _dl_wait_lookup_done.
9519         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9520         _dl_wait_lookup_done.
9522         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9523         not overlapping with arena.
9525         * malloc/mcheck.c (reallochook): If size==0, free the block.
9527         * rt/tst-shm.c: Use fstat64 instead of fstat.
9529         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9530         __NR_sync_file_range is not defined.
9532 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9534         Dummy files to prevent stub versions from being used.
9535         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9536         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9537         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9538         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9540         * version.h (VERSION): Set to 2.6.90.
9542 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9544         * version.h (VERSION): Define to 2.6.
9545         * include/features.h (__GLIBC_MINOR__): Define to 6.
9547         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9549         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9550         sizes.
9552 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9554         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9555         number of mmaps.  n_mmaps_max is the target.
9556         * malloc/hooks.c: Likewise.
9557         * malloc/arena.c: Likewise.
9559 2007-05-12  Andreas Jaeger  <aj@suse.de>
9561         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9562         getpid.
9564 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9566         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9567         adding new variables.
9569         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9570         optimize.  Completely extend global scope array before making the
9571         new entries visible.
9573 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9575         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9576         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9577         tst-getcpu.
9579         * include/link.h: Move l_version and l_nversion members around to
9580         fill gaps.
9582         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9584         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9585         (__sched_setaffinity_new): If syscall was successful and
9586         RESET_VGETCPU_CACHE is defined, use it before returning.
9587         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9589         * io/sys/stat.h: Make sure struct timespec is defined for
9590         __USE_ATFILE.
9592         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9593         UTIME_OMIT.
9594         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9595         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9596         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9597         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9598         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9599         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9600         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9601         * io/sys/stat.h: Declare utimensat, futimens.
9602         * io/utimensat.c: New file.
9603         * io/futimens.c: New file.
9604         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9605         * sysdeps/unix/sysv/linux/futimens.c: New file.
9606         * io/Makefile (routines): Add utimensat, futimens.
9607         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9608         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9609         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9610         available.
9612         * include/sys/cdefs.h: Redefine __nonnull so that test for
9613         incorrect parameters in the libc code itself are not omitted.
9615 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9617         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9618         exception in addition to inexact when asked to raise only FE_INEXACT.
9620         [BZ #3427]
9621         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9622         in *envp.
9624 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9626         [BZ #4403]
9627         * string/strfry.c (strfry): Make result more random.
9629 2007-05-07  Richard Henderson  <rth@redhat.com>
9631         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9632         if __NO_LONG_DOUBLE_MATH.
9633         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9634         available in the compiler, add .arch directive to the assembly.
9636 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
9638         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9639         compat_symbol to GLIBC_2_1.
9640         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9641         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9642         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9643         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9644         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9645         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9646         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9647         libc, not libm.
9648         (__isnanl): New compat_symbol.
9650 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9651             Jakub Jelinek  <jakub@redhat.com>
9653         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9654         (new_heap): Initialize mprotect_size.
9655         (grow_heap): When growing, only mprotect from mprotect_size till
9656         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
9657         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9659 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
9660             Peter Bergner  <bergner@us.ibm.com>
9662         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9663         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
9664         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9665         * sysdeps/powerpc/fpu/fe_mask.c: New file.
9666         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9667         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9668         Call __fe_mask_env() if all FP exceptions disabled.
9669         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9670         from old FPSCR to new fenv to propagate DFP rounding modes.
9671         Call __fe_mask_env() if FP exceptions previously enabled.
9672         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9673         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
9674         transitioning from all exceptions disabled to any exception enabled
9675         or visa versa.
9676         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9677         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
9678         when transitioning from all exceptions disabled to any exception
9679         enabled or visa versa.
9680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9687 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9689         [BZ #4465]
9690         * posix/unistd.h: Remove __THROW from fdatasync.
9692 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
9694         [BZ #4465]
9695         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9697 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9699         * stdio-common/vfprintf.c (process_string_arg): Optimize
9700         ridiculous precision in wide char code printing multi-byte string.
9701         Reported by Jim Meyering <jim@meyering.net>.
9703         [BZ #4131]
9704         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9705         boundaries to work around systems with overlapping binary loading.
9706         Based on a patch by Suzuki <suzuki@in.ibm.com>.
9708 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
9710         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9711         __mbsnrtowcs after last change.
9713         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9714         (get_ident): Likewise.
9716 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9718         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9719         with setting the sticky bit.
9720         * math/test-misc.c (main): Add more truncation tests.
9722 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
9724         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9725         double in the function declaration.
9726         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9727         double in the function declaration.
9728         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9729         float in the function declaration.
9730         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9731         float in the function declaration.
9733         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9734         denormal operands.  Do not generate FP_EX_DENORM exception.
9735         (FP_UNPACK_RAW_EP): Ditto.
9736         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9737         undefined _FP_UNPACK_RAW_E.
9738         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9739         undefined _FP_UNPACK_RAW_EP.
9740         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9741         undefined _FP_PACK_RAW_E.
9742         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9743         undefined _FP_PACK_RAW_EP.
9745         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9746         _FP_FRAC_COPY_2.
9747         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9748         _FP_FRAC_COPY_4.
9750 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
9751             Jakub Jelinek  <jakub@redhat.com>
9753         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9754         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
9755         this case.
9756         * soft-fp/op-common.h (FP_TRUNC): Ditto.
9758 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9760         * math/test-misc.c (main): Add tests for rounding long double
9761         values close to smallest double denormalized value to double.
9763 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
9765         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9766         condition for truncating to 0.  Set sticky bit for such
9767         truncation.
9769 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
9771         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9772         fixed length array for ignore.
9774 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9776         [BZ #4438]
9777         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9778         stack for large precisions.
9779         * stdio-common/test-vfprintf.c (main): Add test for large
9780         precision.
9782 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
9784         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9785         for exponent 0.
9786         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9788         [BZ #4439]
9789         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9790         account in the size check.
9791         * resolv/tst-inet_ntop.c: New test.
9792         * resolv/Makefile (tests): Add tst-inet_ntop.
9794 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9795             Jakub Jelinek  <jakub@redhat.com>
9797         [BZ #4349]
9798         * malloc/malloc.c: Keep separate list for first blocks on the bin
9799         lists with a given size.  This helps skipping over list elements
9800         we know won't fit in two places.
9801         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9803 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
9805         [BZ #4102]
9806         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9807         label to Teredo tunnel addresses 2001://32.
9809 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
9811         * locale/programs/ld-collate.c (collate_read): Allow order_start
9812         after copy.
9814         * locale/programs/ld-collate.c (collate_read): Fix printing of
9815         error message.
9817         [BZ #3213]
9818         * locale/C-translit.h.in: Add entry for U2044.
9820         [BZ #4342]
9821         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9822         hexa-decimal floats without exponent.
9823         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9825 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9827         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9828         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9829         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9830         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9831         GLIBC_2.6.
9832         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9833         Add sched_getcpu.
9835 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9837         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9838         of 0 after the out_fail label.
9840 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9842         [BZ #4406]
9843         * iconv/gconv_charset.h (strip): Allow ':'.
9844         * iconv/iconv_open.c (iconv_open): Adjust comment.
9846 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9848         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9849         version.
9851 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9853         [BZ #4381]
9854         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9855         alignment of buffer and tmp_buffer.
9856         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9857         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9858         alignment of buffer.
9859         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
9860         bigger than INT_MAX.
9861         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
9862         h_errnop arguments.  Fail if buflen is too small.
9863         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9865 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9867         [BZ #4405]
9868         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9869         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
9871 2007-04-22  Roland McGrath  <roland@redhat.com>
9873         * elf/elf.h (NT_PRXFPREG): New macro.
9875 2007-04-19  Andreas Jaeger  <aj@suse.de>
9877         [BZ #3905]
9878         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9879         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9880         Added.
9882 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
9884         * include/sys/mman.h: Mark madvise hidden.
9885         * misc/madvise.c: Add libc_hidden_def.
9887 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
9889         * nis/nis_domain_of.c (__nis_domain_of): New function.
9890         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9891         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9892         * nis/nis_call.c (rec_dirsearch): Likewise.
9893         (first_shoot): Likewise.  Remove search_parent_first argument.
9894         (struct nis_server_cache): Rename search_parent_first field
9895         to search_parent.
9896         (nis_server_cache_search, nis_server_cache_add): Rename
9897         search_parent_first argument to search_parent.
9898         (__nisfind_server): Likewise.  If search_parent, call
9899         __nis_domain_of.
9901 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
9903         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9905 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
9907         [BZ #4368]
9908         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9910 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9912         * locale/programs/locarchive.c (add_alias, insert_name): Remove static.
9914 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
9916         [BZ #4364]
9917         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9919 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
9921         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9922         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9923         current number of locales in SUPPORTED.
9924         (create_archive): Initialize serial.
9925         (enlarge_archive): Preserve aliases rather than duplicating
9926         their locrecs.
9928 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9930         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9931         after _IO_un_link, not before it.
9933         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9934         special case handling when wcp == wstartp + 1.  Fix a comment typo.
9935         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9937 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
9939         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9940         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9941         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9942         Remove __THROW.
9943         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9944         _IO_file_xsgetn_maybe_mmap): Likewise.
9945         * libio/oldfileops.c (old_do_write): Likewise.
9946         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9947         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9948         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9949         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9950         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9951         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9952         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9953         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9954         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9955         _IO_file_underflow, _IO_file_underflow_mmap,
9956         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9957         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9958         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9959         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9960         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9961         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9962         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9963         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9964         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9965         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9966         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9967         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9968         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9969         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9970         _IO_adjust_column_internal, _IO_default_uflow_internal,
9971         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9972         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9973         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9974         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9975         _IO_file_close_it_internal, _IO_file_underflow_internal,
9976         _IO_file_overflow_internal, _IO_file_attach_internal,
9977         _IO_file_fopen_internal, _IO_file_sync_internal,
9978         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9979         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9980         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9981         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9982         _IO_seekpos_unlocked): Likewise.
9983         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9984         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9986 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9988         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9989         argument in xmalloc size computation.
9991 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9993         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9994         math_opt_barrier and math_force_eval macros.
9996 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9998         [BZ #3306]
9999         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10000         * sysdeps/i386/fpu/math_private.h: New file.
10001         * sysdeps/x86_64/fpu/math_private.h: New file.
10002         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10003         math_force_eval macros.  Use "+m" constraint on asm rather than
10004         "=m" and "m".
10005         * math/s_nextafter.c (__nextafter): Likewise.
10006         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10007         Likewise.
10008         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10009         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10010         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10011         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10012         math_opt_barrier and math_force_eval macros.
10013         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10014         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10015         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10016         (__nexttoward): Use math_opt_barrier and
10017         math_force_eval macros.  Use "+m" constraint on asm rather than
10018         "=m" and "m".  Only use asm to force double result if
10019         FLT_EVAL_METHOD is 2.
10020         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10021         (__nexttowardf): Use math_opt_barrier and
10022         math_force_eval macros.  Use "+m" constraint on asm rather than
10023         "=m" and "m".  Only use asm to force double result if
10024         FLT_EVAL_METHOD is not 0.
10025         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10026         (__nexttowardf): Use math_opt_barrier and
10027         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10028         x to float using asm.
10029         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10030         (__nldbl_nexttowardf): Use math_opt_barrier and
10031         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10032         x to float using asm.
10033         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10034         (__nexttowardf): Use math_opt_barrier and math_force_eval
10035         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10036         * math/bug-nextafter.c (zero, inf): New variables.
10037         (main): Add new tests.
10038         * math/bug-nexttoward.c (zero, inf): New variables.
10039         (main): Add new tests.
10041 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10043         [BZ #3427]
10044         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10045         exceptions both in SW and MXCSR.
10046         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10047         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10048         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10049         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10050         in MXCSR if SSE is available.
10051         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10052         and ldsodefs.h.
10053         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10054         Fix comment typo.
10055         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10056         Return 0 rather than 1.
10057         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10058         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10059         * math/test-fenv.c (feholdexcept_tests): New function.
10060         (main): Call it.
10062 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10064         [BZ #3427]
10065         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10066         in SW.
10068 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10070         [BZ #4344]
10071         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10072         Reported by David Anderson <davea42@earthlink.net>.
10074 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10076         * posix/sys/wait.h: Remove unnecessary forward declaration.
10078 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10080         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10081         with obj->do_servers after first_shoot.
10083 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10085         * posix/Makefile (routines): Add sched_cpucount.
10086         (tests): Add tst-cpucount.
10087         * posix/sched_cpucount.c: New file.
10088         * posix/tst-cpucount.c: New file.
10089         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10090         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10091         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10092         * posix/sched.h: Define CPU_COUNT.
10094 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10096         * posix/fnmatch.c (STRUCT): Define.
10097         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10098         * posix/fnmatch_loop.c (struct STRUCT): New type.
10099         (FCT): Add ends argument.  If ends != NULL and normal * is
10100         seen in the pattern, store current pattern and string pointers
10101         and return.  Adjust recursive calls.
10102         (EXT): Adjust FCT callers.
10103         (STRUCT): Undef at the end of the file.
10104         * posix/Makefile (tests): Add tst-fnmatch2.
10105         * posix/tst-fnmatch2.c: New test.
10107 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10109         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10110         and 1 on failure.
10112         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10113         Change last argument to unsigned int.
10115 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10117         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10119 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10121         * config.h.in (HAVE_LIBCAP): Add.
10122         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10123         sys/capabilities.h.
10124         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10125         free_caps.  Cast away const from 4th cap_set_flag argument.
10127 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10129         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10130         GLIBC_2.6.
10131         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10132         Add sync_file_range.
10133         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10135 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10137         * sysdeps/powerpc/bits/atomic.h
10138         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10139         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10140         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10141         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10142         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10143         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10144         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10145         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10146         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10147         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10148         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10149         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10150         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10151         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10152         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10153         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10154         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10155         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10156         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10157         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10159 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10161         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10162         (__cache_line_size): Define the variable here.  Add
10163         attribute_hidden, remove weak_extern.
10164         (__libc_start_main): Set __cache_line_size
10165         unconditionally.
10166         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10167         (__cache_line_size): Define the variable here.  Add
10168         attribute_hidden, remove weak_extern.
10169         (DL_PLATFORM_AUXV): Set __cache_line_size
10170         unconditionally.
10171         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10172         weak_extern, add attribute_hidden.
10173         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10174         defined in ld.so.
10175         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10176         definition.
10177         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10179 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10181         [BZ #4276]
10182         * timezone/africa: Update from tzdata2007d.
10183         * timezone/asia: Likewise.
10184         * timezone/australasia: Likewise.
10185         * timezone/backward: Likewise.
10186         * timezone/europe: Likewise.
10187         * timezone/iso3166.tab: Likewise.
10188         * timezone/leapseconds: Likewise.
10189         * timezone/northamerica: Likewise.
10190         * timezone/southamerica: Likewise.
10191         * timezone/zone.tab: Likewise.
10193         * timezone/private.h: Update from tzcode2007d.
10194         * timezone/zdump.c: Likewise.
10195         * timezone/zic.c: Likewise.
10197 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10199         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10200         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10201         variables.
10202         (nis_server_cache_search, nis_server_cache_add): New functions.
10203         (__nisfind_server): Use them.  Add dbp and flags argument, if
10204         call __nisbind_create.
10205         (__nisbind_create): Add server_used and current_ep arguments,
10206         only call __nis_findfastest if server_used is ~0.
10207         (__do_niscall2, __prepare_niscall): Adjust callers.
10208         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10209         ckey_cache_euid, ckey_cache_lock): New variables.
10210         (get_ckey): New function.
10211         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10212         __pmap_getnisport.  Save __pmap_getnisport result in
10213         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10214         key.
10215         * nis/nis_lookup.c (nis_lookup): Likewise.
10216         * nis/nis_table.c (nis_list): Likewise.
10217         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10218         prototypes.
10220         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10221         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10222         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10223         _nss_nisplus_getservbyport_r): Likewise.
10224         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10225         _nss_nisplus_getnetbyaddr_r): Likewise.
10226         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10227         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10228         _nss_nisplus_getntohost_r): Likewise.
10229         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10230         _nss_nisplus_getrpcbynumber_r): Likewise.
10232 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10234         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10235         * configure: Rebuilt.
10237         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10238         bit-fields.
10239         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10241 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10243         [BZ #2831]
10244         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10245         bit-fields.
10247 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10249         * nscd/gai.c: Include alloca.h.
10250         (__libc_use_alloca): Define.
10252 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10254         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10255         smaller scopes.
10256         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10257         (DL_DST_REQUIRED): Adjust user.
10259         * include/dlfcn.h (struct link_map): New forward decl.
10261         * inet/getnameinfo.c: Include stddef.h.
10262         (getnameinfo): Use offsetof.
10264         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10266         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10268         * string/strerror_l.c: Include stdlib.h.
10270         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10271         * config.make.in (gnu89-inline-CFLAGS): New variable.
10272         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10273         -std=gnu99.
10274         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10275         * argp/argp.h: Use it.
10276         * bits/mathinline.h: Likewise.
10277         * bits/sigset.h: Likewise.
10278         * bits/string.h: Likewise.
10279         * ctype/ctype.h: Likewise.
10280         * hurd/hurd.h: Likewise.
10281         * hurd/hurd/fd.h: Likewise.
10282         * hurd/hurd/port.h: Likewise.
10283         * hurd/hurd/signal.h: Likewise.
10284         * hurd/hurd/threadvar.h: Likewise.
10285         * hurd/hurd/userlink.h: Likewise.
10286         * io/sys/stat.h: Likewise.
10287         * libio/bits/stdio.h: Likewise.
10288         * libio/bits/stdio2.h: Likewise.
10289         * mach/lock-intern.h: Likewise.
10290         * mach/mach/mig_support.h: Likewise.
10291         * math/bits/cmathcalls.h: Likewise.
10292         * posix/bits/unistd.h: Likewise.
10293         * socket/bits/socket2.h: Likewise.
10294         * stdlib/bits/stdlib.h: Likewise.
10295         * stdlib/stdlib.h: Likewise.
10296         * string/argz.h: Likewise.
10297         * string/bits/string2.h: Likewise.
10298         * string/bits/string3.h: Likewise.
10299         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10300         * sysdeps/generic/inttypes.h: Likewise.
10301         * sysdeps/generic/machine-lock.h: Likewise.
10302         * sysdeps/generic/machine-sp.h: Likewise.
10303         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10304         * sysdeps/i386/i486/bits/string.h: Likewise.
10305         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10306         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10307         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10308         * sysdeps/mach/i386/machine-lock.h: Likewise.
10309         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10310         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10311         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10312         * sysdeps/s390/bits/string.h: Likewise.
10313         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10314         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10315         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10316         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10317         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10318         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10319         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10320         * wcsmbs/bits/wchar2.h: Likewise.
10321         * wcsmbs/wchar.h: Likewise.
10322         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10323         __extern_inline definition.
10325 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10327         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10328         NULL.
10330         [BZ #3919]
10331         * math/libm-test.inc (log_test): Test -Inf and NaN.
10332         (log10_test, log1p_test, log2_test): Test -Inf.
10333         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10334         FE_INVALID when argument is qNaN.
10335         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10336         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10337         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10338         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10339         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10340         testb $4, %ah and jump if non-zero.
10341         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10342         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10344         [BZ #4101]
10345         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10346         ancestors with the same depths.
10347         Patch by Niels Moeller <nisse@lysator.liu.se>.
10348         (filter_doc): Don't crash if argp is NULL.
10349         * argp/Makefile (tests): Add tst-argp2.
10350         * argp/tst-argp2.c: New test.
10352         [BZ #4130]
10353         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10354         open_not_cancel_2.
10355         (updwtmp_file): Likewise.
10357         [BZ #4181]
10358         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10359         (inet6_opt_append): Don't check extlen is big enough if extbuf
10360         is NULL.
10361         (inet6_opt_finish): Likewise.
10362         * inet/Makefile (tests): Add test-inet6_opt.
10363         * inet/test-inet6_opt.c: New test.
10365         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10366         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10367         NLMSG_ERR.  Instead use a page sized buffer.
10368         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10369         buffer.
10371 2007-03-14  Richard Henderson  <rth@redhat.com>
10373         * sysdeps/alpha/fpu/s_llround.c: New file.
10374         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10375         * sysdeps/alpha/fpu/s_lround.c: New file.
10376         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10377         * sysdeps/alpha/fpu/s_round.c: New file.
10378         * sysdeps/alpha/fpu/s_roundf.c: New file.
10379         * sysdeps/alpha/fpu/s_trunc.c: New file.
10380         * sysdeps/alpha/fpu/s_truncf.c: New file.
10382         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10383         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10384         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10385         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10386         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10387         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10389         * sysdeps/alpha/fpu/s_fmax.S: New file.
10390         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10391         * sysdeps/alpha/fpu/s_fmin.S: New file.
10392         * sysdeps/alpha/fpu/s_fminf.S: New file.
10393         * sysdeps/alpha/fpu/s_isnan.c: New file.
10394         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10395         * sysdeps/alpha/fpu/s_llrint.c: New file.
10396         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10397         * sysdeps/alpha/fpu/s_lrint.c: New file.
10398         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10399         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10400         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10402         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10403         (__fdimf, fdimf, __fdim, fdim): Remove.
10404         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10405         (__isnanf, __isnan, __isnanl): New.
10407 2007-03-13  Richard Henderson  <rth@redhat.com>
10409         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10411 2007-03-13  Richard Henderson  <rth@redhat.com>
10413         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10414         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10415         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10416         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10417         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10418         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10420 2007-03-13  Richard Henderson  <rth@redhat.com>
10422         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10423         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10424         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10425         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10426         Move to dl-auxv.h; initialize instead of extern weak.
10427         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10428         weak symbol.
10429         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10430         Extern instead of initialized.
10432 2007-03-13  Richard Henderson  <rth@redhat.com>
10434         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10435         __sigsuspend_nocancel.
10437 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10439         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10440         172.16/12 address range.
10442 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10444         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10445         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10446         message.
10448 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10450         [BZ #4069]
10451         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10452         earlier.
10453         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10455         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10456         for x qNaN and y either +-inf or non-integer value.
10457         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10458         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10459         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10461 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10463         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10464         from sysdep_headers.
10466 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10468         * time/tzfile.c (find_transition): Instead of a linear search try to
10469         guess the transition index, use a linear search if the result is at
10470         most 10 transitions away from the guess or binary search otherwise.
10472 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10474         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10475         memory reallocation.
10477 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10479         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10480         and fix some typos.
10481         Optimize use of TOLOWER.
10483         [BZ #3325]
10484         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10485         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10486         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10488         [BZ #3458]
10489         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10490         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10492         [BZ #4076]
10493         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10494         (open_dir_stream): Likewise.
10495         * io/Makefile (tests): Add bug-ftw5.
10496         * io/bug-ftw5.c: New file.
10498         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10499         * nscd/servicescache.c (cache_addserv): Likewise.
10501         * nscd/grpcache.c (cache_addgr): In case a record changed on
10502         refresh, adjust key_copy.
10504         [BZ #4074]
10505         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10506         refresh, adjust key_copy.
10508         [BZ #4070]
10509         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10510         special cases.
10511         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10513 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10515         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10516         optimization.
10518         * stdio-common/vfscanf.c: Small cleanups throughout.
10520 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10522         [BZ #3325]
10523         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10524         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10525         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10526         Patch by Jared Casper <jaredcasper@gmail.com>.
10528         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10529         * sysdeps/unix/opendir.c: Likewise.
10530         * sysdeps/unix/readdir.c: Likewise.
10532         [BZ #2211]
10533         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10534         point numbers.
10535         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10537         * stdio-common/vfscanf.c: Fix problems in width accounting.
10538         * stdio-common/tst-sscanf.c (double_tests): New tests.
10539         (main): Hook them up.
10541         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10542         More simplifications of floating-point reader.
10544         * stdio-common/Makefile (tests): Add tst-swscanf.
10545         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10546         testing.
10547         * stdio-common/tst-swscanf.c: New file.
10549 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10551         [BZ #2633]
10552         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10553         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10554         Remove using for __jmp_buf_tag.
10555         * locale/locale.h (struct lconv): Also define in std namespace.
10556         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10558         [BZ #3842]
10559         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10560         using __libc_enable_secure.
10562         [BZ #3818]
10563         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10565         [BZ #3745]
10566         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10567         of names for ellipsises.
10569         [BZ #3348]
10570         * malloc/memusage.sh: Cleanups.
10571         * debug/xtrace.sh: Quoting and trap changes.
10573 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10575         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10577         * locale/iso-3166.def: Update entry for Serbia.
10578         * locale/iso-4217.def: Define RSD, remove CSD.
10580         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10581         and 64-bit operations.
10583         [BZ #4040]
10584         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10585         16-bit operations.
10587         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10588         of writev.
10590 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10592         [BZ #3991]
10593         * assert/assert.h (assert): Simplify.
10594         (assert_perror): Likewise.
10595         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10597         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10598         reqdata.
10600         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10601         change: don't pass NULL in place of an integer.
10603 2007-02-02  Bruno Haible  <bruno@clisp.org>
10605         [BZ #3954]
10606         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10607         Add mapping for U+327E.
10608         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10609         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10610         mapping of 0xD9 0xE8.
10611         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10612         mapping of U+327E.
10613         Reported by Jungshik Shin <jungshik@google.com>.
10615         [BZ #3955]
10616         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10617         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10618         Reported by Jungshik Shin <jungshik@google.com>.
10620 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10622         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10623         byte variants.
10625         [BZ #4040]
10626         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10627         byte variants.  Patch mostly be tom@tommay.net.
10629 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10631         [BZ #3996]
10632         * posix/glob.c (attribute_hidden): Define if not defined.
10633         (glob): Unescape dirname, filename or username when needed and not
10634         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10635         is NULL.  Handle unescaped [ in pattern without closing ].
10636         Don't pass GLOB_CHECK down to recursive glob for directories.
10637         (__glob_pattern_type): New function.
10638         (__glob_pattern_p): Implement using __glob_pattern_type.
10639         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10640         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10641         Remove unreachable code.
10642         * posix/globtest.sh: Add a couple of new tests.
10644 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
10646         * po/ru.po: Update from translation team.
10648 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
10650         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10651         to the list of i486+ CPUs.
10652         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10654 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
10656         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10657         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10658         references.
10660 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
10662         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10664         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10665         * resolv/res_mkquery.c: Define __res_nopt.
10666         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10667         try adding EDNS0 record.
10668         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10669         EDNS0 record was send make sure we don't try it again.
10670         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10671         * include/resolv.h: Declare __res_nopt.
10673 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
10675         [BZ #3944]
10676         * time/strptime_l.c (__strptime_internal): Set have_mon for
10677         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
10678         have been computed from tm_yday and tm_year.  Don't crash
10679         in day_of_the_week or day_of_the_year if not have_mon
10680         and tm_mon contains bogus value.
10681         * time/Makefile (tests): Add tst-strptime3.
10682         * time/tst-strptime3.c: New test.
10684 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10686         [BZ #3957]
10687         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10688         bit for RE_HAT_LISTS_NOT_NEWLINE.
10689         (build_charclass_op): Remove bogus comment.
10690         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10691         * posix/bug-regex27.c: New test.
10692         * posix/bug-regex28.c: New test.
10694 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
10696         * po/sv.po: Update from translation team.
10698 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
10700         * nscd/nscd_helper.c (open_socket): Minor size optimization.
10702 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10704         * include/locale.h (__uselocale): Add libc_hidden_proto.
10705         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10707         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10708         gettimeofday.
10710 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
10712         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10713         returning.
10714         (PTR_DEMANGLE): Real definition now that it's not the same as
10715         PRT_MANGLE anymore.
10716         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10718         * string/strerror_l.c: New file.
10719         * string/Makefile (routines): Add strerror_l.
10720         * string/string.h: Declare strerror_l.
10721         * string/Versions: Export strerror_l for GLIBC_2.6.
10723 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
10725         * nscd/nscd_helper.c (open_socket): Now takes request type and key
10726         as parameter.  Construct request record.  Try sending request
10727         before the first poll use, it usually succeeds.  Adjust all
10728         callers.
10729         * nscd/nscd-client.h: Define MAXKEYLEN.
10730         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10732 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
10734         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10735         from return value.
10736         * nscd/nscd_helper.c: Include string.h.
10737         (__nscd_cache_search): Remove const qualifier from return value.
10738         On strict alignment architectures check hash entry and data head
10739         alignment.
10740         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10741         mmapped data during GC cycle contains garbage.  If
10742         __nscd_drop_map_ref fails, decrement mapped->counter when returning
10743         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10744         dropped to 0.
10745         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10746         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10747         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10748         * nscd/nscd_getai.c (__nscd_getai): Likewise.
10749         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10751 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
10753         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10755 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
10757         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10758         names not numbers in cfi_*.
10760 2007-01-26  Andreas Jaeger  <aj@suse.de>
10762         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10763         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10764         Correct values of PER_HPUX and PER_OSF4.
10766 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
10768         * elf/dl-minimal.c: Undefine _itoa first.
10769         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10770         * malloc/mtrace.c: Revert last change.
10771         * posix/wordexp.c: Likewise.
10773 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10775         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10776         and __geode__ to the list of i486+ CPUs.
10777         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10779 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
10781         * stdio-common/_itoa.c: Include <limits.h>.
10782         * stdio-common/_itowa.c: Likewise.
10784 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
10786         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10787         platforms.
10788         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10789         64-bit platforms.
10790         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10791         possible.
10792         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10793         if possible.
10795         [BZ #3902]
10796         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10797         * stdio-common/Makefile (tests): Add bug17.
10798         * stdio-common/bug17.c: New file.
10800 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
10802         * iconvdata/brf.c: New file.
10803         * iconvdata/testdata/BRF: New file.
10804         * iconvdata/testdata/BRF..UTF8: New file.
10805         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10806         * iconvdata/Makefile: Add rules to build BRF.
10807         * iconvdata/TESTS: Add BRF entry.
10808         * iconvdata/gconv-modules: Likewise.
10809         * iconvdata/tst-tables.sh: Likewise.
10811 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
10813         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10814         type `long long int', not `long int'.
10815         (wcstoq): Likewise.
10817 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
10819         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10820         of values on 64-bit platforms which are too large.
10822 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
10823             Joe Kerian  <jkerian@us.us.ibm.com>
10825         [BZ #2749]
10826         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10827         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
10828         (__copysignl): Use signbit() for comparison.
10829         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10830         SET_LDOUBLE_WORDS64.
10832         [BZ #2423, #2749]
10833         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10834         (__ceill): Remove calls to fegetround(), fesetround().
10835         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10836         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10837         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10839 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
10841         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10843         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10845 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
10847         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10848         demangle pointer.
10849         * csu/libc-start.c: Likewise.
10851 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
10853         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10854         really work anyway.
10856 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10858         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
10859         users.
10860         (handle_request): Remove unnecessary tests.
10862         * nscd/cache.c (cache_add): Record the failure to add to the cache.
10864 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
10866         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10867         workbits in semi-raw fraction.
10869         * math/test-misc.c: Add new tests.
10871 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
10873         * math/basic-test.c: Include test-skeleton.c.
10874         (TEST_TRUNC): Define.
10875         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10876         (main): Rename to ...
10877         (do_test): ...this.  Run new tests.
10878         (TEST_FUNCTION): Define.
10880 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
10881             Joe Kerian  <jkerian@us.us.ibm.com>
10883         [BZ #2749]
10884         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10885         handling for high words.
10886         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10887         and overflow for infinity.
10889 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10891         * nscd/connections.c (handle_request): Add a __builtin_expect.
10893         * nscd/connections.c (serv2db): Change type into structure which
10894         also says whether this is a request for data.  Renamed to
10895         servinfo.  All users changed.
10896         (handle_request): Much simpler test whether we should search the cache.
10898         * nscd/connections.c (handle_request): Fix thinko in selinux test
10899         invocation.
10901         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10902         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10903         it before getting dl_load_lock and then relock.
10904         (_dl_lookup_symbol_x): Pass flags to add_dependency.
10905         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10906         case we unlocked the scope.
10907         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10908         _dl_lookup_symbol_x in case we locked the scope.
10909         (_dl_profile_fixup): Likewise.
10910         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10911         set DL_LOOKUP_SCOPE_LOCK.
10913 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
10915         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10916         CFLAGS-getsrvbynpt_r.c.
10917         * nscd/getsrvbynm_r.c: New file.
10918         * nscd/getsrvbypt_r.c: New file.
10919         * nscd/nscd_getserv_r.c: New file.
10920         * nscd/servicescache.c: New file.
10921         * nscd/Makefile (routines): Add nscd_getserv_r.
10922         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10923         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10924         CFLAGS-getsrvbypt_r.c.
10925         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10926         table.  Add entries for services database.
10927         * nscd/connections.c (serv2str): Mark as const.  Add entries for
10928         services database.
10929         (dbs): Add .reset_res and servdb initialization.
10930         (serv2db): Add entries for services database.
10931         (verify_persistent_db): Accept dbnr == servdb.
10932         (invalidate_cache): Rewrite database name recognition to use a table.
10933         Call res_init() if .reset_res is set for database.
10934         (handle_request): Add code to handle services database.
10935         * nscd/gai.c: Don't define __getservbyname_r.
10936         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10937         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10938         (serv_response_header): Define.
10939         (struct datahead): Add serv_response_header member.
10940         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10941         using table.
10942         * nscd/nscd.conf: Add entries for services database.
10943         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10944         Declare serv_iov_disabled.
10945         Declare addservbyname, readdservbyname, addservbyport, and
10946         readdservbyport.
10947         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
10948         (find_db): Fix error message.
10949         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10950         __nscd_getservbyname_r, and __nscd_getservbyport_r.
10951         * nscd/selinux.c (perms): Add entries for services database.
10952         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10953         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10955         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
10956         * nscd/hstcache.c: Likewise.
10957         * nscd/pwdcache.c: Likewise.
10959         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10960         computation of keylen.
10962         * include/string.h: Only redefine strndupa if this is really for
10963         libc code.
10965 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
10967         * nscd/nscd_gethst_r.c: Minor cleanups.
10969         * nscd/connections.c (handle_request): Check selinux permissions
10970         for all non-admin commands.
10972         * sysdeps/i386/i486/bits/atomic.h: Define
10973         atomic_compare_and_exchange_val_acq,
10974         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10975         using __sync_* built-ins for gcc >= 4.1.
10976         * sysdeps/x86_64/bits/atomic.h: Likewise.
10978         [BZ #3840]
10979         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10980         and .oS.d files.
10982 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
10984         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
10985         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
10986         (do_test): Check errno and exit(0) if ENOSYS.
10988 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10990         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10991         thousands separators.
10992         * stdlib/Makefile: Add rules to build and run tst-strtod4.
10993         * stdlib/tst-strtod4.c: New test.
10995         [BZ #3855]
10996         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10997         hexadecimal digit should accept just the initial 0.
10998         * stdlib/tst-strtod2.c (tests): New variable.
10999         (do_test): Run several tests rather than just one.
11001 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11003         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11004         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11006 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11008         * io/fts.c: Make sure fts_cur is always valid after return from
11009         fts_read.
11010         Patch by Miloslav Trmac <mitr@redhat.com>.
11012 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11014         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11015         (R_MIPS_NUM): Bump by 1.
11017 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11019         * posix/execvp.c: Include alloca.h.
11020         (allocate_scripts_argv): Renamed to...
11021         (scripts_argv): ... this.  Don't allocate buffer here nor count
11022         arguments.
11023         (execvp): Use alloca if possible.
11024         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11025         * posix/tst-vfork3.c: New test.
11027 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11029         * string/Makefile (tst-strxfrm2-ENV): Define.
11030         * stdlib/Makefile (tst-strtod3-ENV): Define.
11032 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11034         * posix/getconf.c: Update copyright year.
11035         * nss/getent.c: Likewise.
11036         * iconv/iconvconfig.c: Likewise.
11037         * iconv/iconv_prog.c: Likewise.
11038         * elf/ldconfig.c: Likewise.
11039         * catgets/gencat.c: Likewise.
11040         * csu/version.c: Likewise.
11041         * elf/ldd.bash.in: Likewise.
11042         * elf/sprof.c (print_version): Likewise.
11043         * locale/programs/locale.c: Likewise.
11044         * locale/programs/localedef.c: Likewise.
11045         * nscd/nscd.c (print_version): Likewise.
11046         * debug/xtrace.sh: Likewise.
11047         * malloc/memusage.sh: Likewise.
11048         * malloc/mtrace.pl: Likewise.
11049         * debug/catchsegv.sh: Likewise.
11051 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11053         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11054         attempts.
11056 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11058         * posix/wordexp.c: Remove some unnecessary tests.
11060 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11062         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11063         blacklist the group till after we look it up.
11065 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11067         * include/atomic.h (atomic_forced_read): New macro.
11069 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11071         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11073 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11075         * nss/getXXbyYY_r.c: Include atomic.h.
11076         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11077         add atomic_write_barrier () in between.
11079         * stdlib/Makefile (tests): Add tst-makecontext.
11080         * stdlib/tst-makecontext.c: New test.
11082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11083         (__makecontext): Don't realign uc_mcontext.uc_regs.
11085 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11087         * elf/dl-support.c: Include dl-procinfo.h.
11088         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11089         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11090         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11091         Define.
11092         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11093         hardcoded constants.
11094         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11095         PPC_PLATFORM_* macros for array designators.
11097 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11099         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11100         names to the beginning.
11101         (_dl_powerpc_platforms): Add "power6x".
11102         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11103         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11104         (_DL_PLATFORMS_COUNT): Increase.
11105         (_dl_string_platform): Handle power6x case.
11106         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11107         PPC_FEATURE_POWER6_EXT): Define.
11108         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11110 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11112         [BZ #3747]
11113         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11114         [-2^31 .. 2^31) range.
11115         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11116         targets.
11117         * stdlib/tst-rand48-2.c: New test.
11118         * stdlib/Makefile (tests): Add tst-rand48-2.
11120 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11122         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11124 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11126         * misc/tst-pselect.c (do_test): Make sure the helper process is
11127         terminating when the test is aborted.
11129 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11131         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11132         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11133         Handle relatime mount option.
11135         [BZ #2337]
11136         * libio/Makefile (tests): Add tst-setvbuf1.
11137         * libio/tst-setvbuf1.c: New file.
11139 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11141         [BZ #2337]
11142         * libio/genops.c (__uflow): Fix a typo.
11143         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11144         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11145         the narrow buffer size.
11147 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11149         [BZ #2337]
11150         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11151         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11152         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11153         in _flags.
11154         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11155         _IO_wstr_finish): Likewise.
11156         * libio/wmemstream.c (open_wmemstream): Likewise.
11157         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11158         even for wide streams.
11160 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11163         kernel-features.h.
11165 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11167         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11168         separators also if no non-zero digits found.
11169         * stdlib/Makefile (tests): Add tst-strtod3.
11171 2006-12-10  Jakub Jelinek  <jakub@redhat.com>
11173         * sysdeps/unix/sysv/linux/netlinkaccess.h: Include linux/if_addr.h
11174         if IFA_MAX is not defined.
11175         (IFA_RTA, IFA_PAYLOAD, IFLA_RTA, IFLA_PAYLOAD): Define if not
11176         defined.
11177         * sysdeps/unix/sysv/linux/check_pf.c: Include netlinkaccess.h
11178         instead of asm/types.h, linux/netlink.h and linux/rtnetlink.h.
11180 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11182         [BZ #3632]
11183         * include/features.h: Fix comment about default value for
11184         _POSIX_C_SOURCE.
11186         [BZ #3664]
11187         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11188         empty parsed strings.
11189         * stdlib/Makefile (tests): Add tst-strtod2.
11190         * stdlib/tst-strtod2.c: New file.
11192         [BZ #3673]
11193         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11194         computation.
11195         * stdlib/Makefile (tests): Add tst-atof2.
11196         * stdlib/tst-atof2.c: New file.
11198         [BZ #3674]
11199         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11200         correctly if removing trailing zero of hex-float.
11201         * stdlib/Makefile (tests): Add tst-atof1.
11202         * stdlib/tst-atof1.c: New file.
11204 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11206         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11207         Start searching for next comma at p rather than rest.
11208         * misc/Makefile (tests): Add tst-mntent2.
11209         * misc/tst-mntent2.c: New test.
11211         * misc/getusershell.c (initshells): Check for integer overflows.
11212         Make strings buffer one bigger as fgets always succeeds when second
11213         argument is 1.  Don't use calloc for shells array.  Disallow
11214         / as shell.
11216 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11218         * malloc/memusage.c: Handle realloc with new size of zero and
11219         non-NULL pointer correctly.
11220         (me): Really write first record twice.
11221         (struct entry): Make format bi-arch safe.
11222         (dest): Write out more realloc statistics.
11223         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11225 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11227         * nis/nis_subr.c (nis_getnames): Revert last change.
11229 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11231         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11232         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11233         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11234         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11235         ENOTTY.
11236         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11237         * io/tst-ttyname_r.c: New test.
11239 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11241         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11243 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11245         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11246         jump table entries.
11248 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11250         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11251         `clone' function to ensure proper unwinding stop of gdb.
11252         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11254 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11256         * nscd/nscd.init: Remove obsolete and commented-out -S option
11257         handling.
11259 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11261         [BZ #3514]
11262         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11264         [BZ #3515]
11265         * manual/string.texi (strtok): Remove duplicate paragraph.
11267 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11269         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11270         libgcc not supporting `rflags' unwinding (register # >= 17).
11272 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11274         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11275         succeeded.
11277 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11278             Jakub Jelinek  <jakub@redhat.com>
11279             Jan Kratochvil  <jan.kratochvil@redhat.com>
11281         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11282         unwind information.
11283         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11284         'restore_rt' even in the 'signal' directory.
11285         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11287 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11289         [BZ #3559]
11290         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11291         malloc crashed.  Don't allocate memory unnecessarily in each
11292         loop.
11294 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11296         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11298 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11300         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11302 2006-11-18  Bruno Haible  <bruno@clisp.org>
11304         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11305         __sysconf only after having tried to call getgroups32.
11307 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11309         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11310         addresses for IPv4 queries if they can be mapped.
11312 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11314         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11315         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11316         (signmask): Add .size directive.
11317         (othermask): Add .type directive.
11319 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11321         * po/nl.po: Update from translation team.
11323         * timezone/zdump.c: Redo fix for BZ #3137.
11325 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11327         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11328         to first_unused after parsing :include: file.
11330 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11332         * timezone/africa: Update from tzdata2006o.
11333         * timezone/antarctica: Likewise.
11334         * timezone/asia: Likewise.
11335         * timezone/australasia: Likewise.
11336         * timezone/backward: Likewise.
11337         * timezone/europe: Likewise.
11338         * timezone/iso3166.tab: Likewise.
11339         * timezone/northamerica: Likewise.
11340         * timezone/southamerica: Likewise.
11341         * timezone/zone.tab: Likewise.
11343         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11344         on machines with 64-bit time_t.
11346         * timezone/checktab.awk: Update from tzcode2006o.
11347         * timezone/ialloc.c: Likewise.
11348         * timezone/private.h: Likewise.
11349         * timezone/scheck.c: Likewise.
11350         * timezone/tzfile.h: Likewise.
11351         * timezone/tzselect.ksh: Likewise.
11352         * timezone/zdump.c: Likewise.
11353         * timezone/zic.c: Likewise.
11355         [BZ #3483]
11356         * elf/ldconfig.c (main): Call setlocale and textdomain.
11357         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11359         [BZ #3480]
11360         * manual/argp.texi: Fix typos.
11361         * manual/charset.texi: Likewise.
11362         * manual/errno.texi: Likewise.
11363         * manual/filesys.texi: Likewise.
11364         * manual/lang.texi: Likewise.
11365         * manual/maint.texi: Likewise.
11366         * manual/memory.texi: Likewise.
11367         * manual/message.texi: Likewise.
11368         * manual/resource.texi: Likewise.
11369         * manual/search.texi: Likewise.
11370         * manual/signal.texi: Likewise.
11371         * manual/startup.texi: Likewise.
11372         * manual/stdio.texi: Likewise.
11373         * manual/sysinfo.texi: Likewise.
11374         * manual/syslog.texi: Likewise.
11375         * manual/time.texi: Likewise.
11376         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11378         [BZ #3465]
11379         * sunrpc/clnt_raw.c: Minimal message improvements.
11380         * sunrpc/pm_getmaps.c: Likewise.
11381         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11382         * nis/nis_print_group_entry.c: Likewise.
11383         * locale/programs/repertoire.c: Likewise.
11384         * locale/programs/charmap.c: Likewise.
11385         * malloc/memusage.sh: Likewise.
11386         * elf/dl-deps.c: Likewise.
11387         * locale/programs/ld-collate.c: Likewise.
11388         * libio/vswprintf.c: Likewise.
11389         * malloc/memusagestat.c: Likewise.
11390         * sunrpc/auth_unix.c: Likewise.
11391         * sunrpc/rpc_main.c: Likewise.
11392         * nscd/cache.c: Likewise.
11393         * locale/programs/repertoire.c: Unify output messages.
11394         * locale/programs/charmap.c: Likewise.
11395         * locale/programs/ld-ctype.c: Likewise.
11396         * locale/programs/ld-monetary.c: Likewise.
11397         * locale/programs/ld-numeric.c: Likewise.
11398         * locale/programs/ld-time.c: Likewise.
11399         * elf/ldconfig.c: Likewise.
11400         * nscd/selinux.c: Likewise.
11401         * elf/cache.c: Likewise.
11402         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11404         [BZ #3451]
11405         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11406         change atomic.
11407         (ceil): Likewise.
11409 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11411         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11412         if N is one bigger than return value.
11413         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11414         and l1 last arguments, if buf is defined, verify the return value
11415         equals to strlen (buf) and verify no byte beyond passed length
11416         is modified.
11418 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11420         * po/sv.po: Update from translation team.
11422 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11424         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11425         noinline attribute.
11427 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11429         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11430         noinline attribute.
11432         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11433         Use __new_sys_siglist instead of _sys_siglist_internal as
11434         second macro argument.
11435         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11436         strong_alias.
11438 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11440         [BZ #3493]
11441         * posix/unistd.h (sysconf): Remove const attribute.
11443         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11444         temporary or deprecated addresses.
11445         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11447         * string/Makefile (tests): Add tst-strxfrm2.
11448         * string/tst-strxfrm2.c: New file.
11450 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11452         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11453         rather than r->r_brk.
11455 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11457         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11458         optimization even if needed > n.
11460         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11461         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11462         return false, otherwise return true.
11463         (cache_rpath): Return decompose_rpath return value.
11465 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11467         * include/libc-symbols.h (declare_symbol): Rename to...
11468         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11469         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11470         .size directive.
11471         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11472         changes.
11473         * sysdeps/gnu/siglist.c: Likewise.
11475 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11477         * sysdeps/powerpc/fpu/bits/mathinline.h
11478         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11479         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11481 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11483         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11484         Update handling of cache descriptor 0x49 for new models.
11485         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11486         Likewise.
11488 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11490         * malloc/memusage.c (dest): Reset not_me back to false after
11491         printing statistics.
11493 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11495         * configure.in: Work around ld --help change and avoid -z relro
11496         test completely if the architecture doesn't care about security.
11498 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11500         * po/sv.po: Update from translation team.
11502 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11504         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11505         generate compatibility version.
11507 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11509         * configure.in: Relax -z relro requirement a bit.
11511         * po/sv.po: Update from translation team.
11513 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11515         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11516         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11517         * elf/dl-close.c (_dl_close_worker): Likewise.
11518         * elf/dl-open.c (_dl_open_worker): Likewise.
11519         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11521 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11523         * configure.in: Require assembler support for visibility, compiler
11524         support for visibility and aliases, linker support for various -z
11525         options.
11526         * Makeconfig: Remove conditional code which now is unnecessary.
11527         * config.h.in: Likewise.
11528         * config.make.in: Likewise.
11529         * dlfcn/Makefile: Likewise.
11530         * elf/Makefile: Likewise.
11531         * elf/dl-load.c: Likewise.
11532         * elf/rtld.c: Likewise.
11533         * include/libc-symbols.h: Likewise.
11534         * include/stdio.h: Likewise.
11535         * io/Makefile: Likewise.
11536         * io/fstat.c: Likewise.
11537         * io/fstat64.c: Likewise.
11538         * io/fstatat.c: Likewise.
11539         * io/fstatat64.c: Likewise.
11540         * io/lstat.c: Likewise.
11541         * io/lstat64.c: Likewise.
11542         * io/mknod.c: Likewise.
11543         * io/mknodat.c: Likewise.
11544         * io/stat.c: Likewise.
11545         * io/stat64.c: Likewise.
11546         * libio/stdio.c: Likewise.
11547         * nscd/Makefile: Likewise.
11548         * stdlib/Makefile: Likewise.
11549         * stdlib/atexit.c: Likewise.
11550         * sysdeps/generic/ldsodefs.h: Likewise.
11551         * sysdeps/i386/dl-machine.h: Likewise.
11552         * sysdeps/i386/sysdep.h: Likewise.
11553         * sysdeps/i386/i686/memcmp.S: Likewise.
11554         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11555         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11556         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11558         * Makerules: USE_TLS support is now default.
11559         * tls.make.c: Likewise.
11560         * csu/Versions: Likewise.
11561         * csu/libc-start.c: Likewise.
11562         * csu/libc-tls.c: Likewise.
11563         * csu/version.c: Likewise.
11564         * dlfcn/dlinfo.c: Likewise.
11565         * elf/dl-addr.c: Likewise.
11566         * elf/dl-cache.c: Likewise.
11567         * elf/dl-close.c: Likewise.
11568         * elf/dl-iteratephdr.c: Likewise.
11569         * elf/dl-load.c: Likewise.
11570         * elf/dl-lookup.c: Likewise.
11571         * elf/dl-object.c: Likewise.
11572         * elf/dl-open.c: Likewise.
11573         * elf/dl-reloc.c: Likewise.
11574         * elf/dl-support.c: Likewise.
11575         * elf/dl-sym.c: Likewise.
11576         * elf/dl-sysdep.c: Likewise.
11577         * elf/dl-tls.c: Likewise.
11578         * elf/ldconfig.c: Likewise.
11579         * elf/rtld.c: Likewise.
11580         * elf/tst-tls-dlinfo.c: Likewise.
11581         * elf/tst-tls1.c: Likewise.
11582         * elf/tst-tls10.h: Likewise.
11583         * elf/tst-tls14.c: Likewise.
11584         * elf/tst-tls2.c: Likewise.
11585         * elf/tst-tls3.c: Likewise.
11586         * elf/tst-tls4.c: Likewise.
11587         * elf/tst-tls5.c: Likewise.
11588         * elf/tst-tls6.c: Likewise.
11589         * elf/tst-tls7.c: Likewise.
11590         * elf/tst-tls8.c: Likewise.
11591         * elf/tst-tls9.c: Likewise.
11592         * elf/tst-tlsmod1.c: Likewise.
11593         * elf/tst-tlsmod13.c: Likewise.
11594         * elf/tst-tlsmod13a.c: Likewise.
11595         * elf/tst-tlsmod14a.c: Likewise.
11596         * elf/tst-tlsmod2.c: Likewise.
11597         * elf/tst-tlsmod3.c: Likewise.
11598         * elf/tst-tlsmod4.c: Likewise.
11599         * elf/tst-tlsmod5.c: Likewise.
11600         * elf/tst-tlsmod6.c: Likewise.
11601         * include/errno.h: Likewise.
11602         * include/link.h: Likewise.
11603         * include/tls.h: Likewise.
11604         * locale/global-locale.c: Likewise.
11605         * locale/localeinfo.h: Likewise.
11606         * malloc/arena.c: Likewise.
11607         * malloc/hooks.c: Likewise.
11608         * malloc/malloc.c: Likewise.
11609         * resolv/Versions: Likewise.
11610         * sysdeps/alpha/dl-machine.h: Likewise.
11611         * sysdeps/alpha/libc-tls.c: Likewise.
11612         * sysdeps/generic/ldsodefs.h: Likewise.
11613         * sysdeps/generic/tls.h: Likewise.
11614         * sysdeps/i386/dl-machine.h: Likewise.
11615         * sysdeps/ia64/dl-machine.h: Likewise.
11616         * sysdeps/ia64/libc-tls.c: Likewise.
11617         * sysdeps/mach/hurd/fork.c: Likewise.
11618         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11619         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11620         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11621         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11622         * sysdeps/s390/libc-tls.c: Likewise.
11623         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11624         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11625         * sysdeps/sh/dl-machine.h: Likewise.
11626         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11627         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11628         * sysdeps/x86_64/dl-machine.h: Likewise.
11630         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11631         split out locking and parameter checking.
11632         (_dl_close): Call _dl_close_worker after locking and checking.
11633         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11634         _dl_close.
11635         * elf/Makefile: Add rules to build and run tst-thrlock.
11636         * elf/tst-thrlock.c:  New file.
11638         [BZ #3426]
11639         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11640         reality.
11642         [BZ #3429]
11643         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11644         we are sure we do not need it anymore for _dl_close.  Also move
11645         the asserts inside the lock region.
11646         Patch mostly by Suzuki <suzuki@in.ibm.com>.
11648 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
11650         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11651         argument.
11652         (_dl_lookup_symbol_x): Adjust caller.
11654         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11655         _ns_global_scope.
11656         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11658         * elf/dl-libc.c: Revert l_scope name changes.
11659         * elf/dl-load.c: Likewise.
11660         * elf/dl-object.c: Likewise.
11661         * elf/rtld.c: Likewise.
11662         * elf/dl-close.c (_dl_close): Likewise.
11663         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
11664         always use __rtld_mrlock_{change,done}.  Always free old scope list
11665         here if not l_scope_mem.
11666         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11667         change.  Never free scope list here.  Just __rtld_mrlock_lock before
11668         the lookup and __rtld_mrlock_unlock it after the lookup.
11669         * elf/dl-sym.c: Likewise.
11670         * include/link.h (struct r_scoperec): Remove.
11671         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11672         with l_scope_mem and l_scoperec_lock with l_scope_lock.
11674 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
11676         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11678 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11680         * configure.in: Disable building profile libraries by default.
11682 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11684         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11685         as signed longs, check for x_base + pos overflow.
11686         * sunrpc/Makefile (tests): Add tst-xdrmem2.
11687         * sunrpc/tst-xdrmem2.c: New test.
11689 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11691         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11692         _dl_lookup_symbol_x code.
11694 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11696         * elf/dl-runtime.c: Include sysdep-cancel.h.
11697         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11698         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
11699         instead of catomic_* macros.
11700         * elf/dl-sym.c: Include sysdep-cancel.h.
11701         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11702         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11703         * elf/dl-close.c: Include sysdep-cancel.h.
11704         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11705         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11706         * elf/dl-open.c: Include sysdep-cancel.h.
11707         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11708         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11710 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11712         [BZ #3313]
11713         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11714         fastbin rather than end of fastbin array.
11716 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11718         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11719         body macro.
11720         * sysdeps/x86_64/bits/atomic.h
11721         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11722         (catomic_decrement): Use correct body macro.
11724 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11726         * include/atomic.h: Add a unique prefix to all local variables
11727         in macros.
11728         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11730 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
11732         [BZ #3369]
11733         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11734         and 7.
11736 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
11738         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11740 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
11742         [BZ #3313]
11743         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11744         determine highest fast bin to consolidate, always look into all of
11745         them.
11746         (do_check_malloc_state): Only require for empty bins for large
11747         sizes in main arena.
11749         * libio/stdio.h: Add more __wur attributes.
11751         * elf/dl-minimal.c (realloc): Optimize last patch.
11753 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
11755         [BZ #3352]
11756         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11757         and use memcpy() if it does.
11759 2006-11-12  Andreas Jaeger  <aj@suse.de>
11761         [BZ #2510]
11762         * manual/search.texi (Hash Search Function): Clarify.
11763         (Array Search Function): Clarify.
11765 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
11767         [BZ #2830]
11768         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11769         shifting.
11770         * math/atest-exp2.c (read_mpn_hex): Likewise.
11771         * math/atest-sincos.c (main): Likewise.
11773 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11775         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11776         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11777         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11778         version GLIBC_2.6.
11779         * Versions.def: Add GLIBC_2.6 for libc.
11781         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11783         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11785 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
11787         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11789         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11791         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11792         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11794 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11796         * include/atomic.c: Define catomic_* operations.
11797         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
11798         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11799         * malloc/memusage.c: Likewise.
11800         * gmon/mcount.c: Likewise.
11801         * elf/dl-close.c: Likewise.
11802         * elf/dl-open.c: Likewise.
11803         * elf/dl-profile.c: Likewise.
11804         * elf/dl-sym.c: Likewise.
11805         * elf/dl-runtime.c: Likewise.
11806         * elf/dl-fptr.c: Likewise.
11807         * resolv/res_libc.c: Likewise.
11809 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
11811         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11812         components which lack them.
11814         * nis/nis_subr.c (nis_getnames): Make sure that we always return
11815         at least one entry consisting of the parameter concatenated with
11816         the domain.
11818 2006-10-10  Roland McGrath  <roland@frob.com>
11820         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11821         * sysdeps/mach/hurd/futimes.c: Likewise.
11822         * sysdeps/mach/hurd/lutimes.c: Likewise.
11824 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
11825             Jakub Jelinek  <jakub@redhat.com>
11827         Implement reference counting of scope records.
11828         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11829         from the list in objects which remain.  Always allocate new scope
11830         record.
11831         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11832         don't resize, allocate a new one.
11833         * elf/dl-runtime.c: Update reference counters before using a scope
11834         array.
11835         * elf/dl-sym.c: Likewise.
11836         * elf/dl-libc.c: Adjust for l_scope name change.
11837         * elf/dl-load.c: Likewise.
11838         * elf/dl-object.c: Likewise.
11839         * elf/rtld.c: Likewise.
11840         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
11841         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
11842         Add l_scoperec_lock.
11843         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11844         * sysdeps/generic/rtld-lowlevel.h: New file.
11846         * include/atomic.h: Rename atomic_and to atomic_and_val and
11847         atomic_or to atomic_or_val.  Define new macros atomic_and and
11848         atomic_or which do not return values.
11849         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11850         Various cleanups.
11851         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11853         * po/sv.po: Update from translation team.
11855 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
11857         * Versions.def: Add GLIBC_2.6 to libpthread.
11859         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11860         (versioned_symbol): Likewise.
11861         (compat_symbol): Likewise.
11863         * po/tr.po: Update from translation team.
11865 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11867         * nis/Banner: Removed.  It's been integral part forever and the
11868         author info is incomplete anyway.
11869         * libio/Banner: Likewise.
11871         * nis/nis_table.c (nis_list): If __follow_path fails in the new
11872         code, make sure the nis_freeresult call doesn't crash and that the
11873         result is reported correctly.
11875 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
11877         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11878         when callback is NULL.
11880         * nis/Versions (libnss_nisplus): Add
11881         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11882         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11883         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11884         _nss_create_tablename): Rename to...
11885         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11886         ... these.  No longer static.
11887         (internal_setgrent): Adjust users.
11888         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11889         Don't use locking around _nss_grp_create_tablename call.
11890         * nis/nss_nisplus/nisplus-initgroups.c: New file.
11892 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11894         * version.h (VERSION): Bump to 2.5.90 for new development tree.
11896 2006-10-06  Andreas Jaeger  <aj@suse.de>
11898         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11900 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11902         * po/pl.po: Update from translation team.
11904         * nscd/nscd.c (main): Fix typo in message.
11905         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11907 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11909         [BZ #3291]
11910         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11911         errno.h, signal.h, unistd.h and sysdep-cancel.h.
11912         (__sigprocmask): Define.
11914 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
11916         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11917         used.
11919 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11921         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11922         in oldtotal and newtotal calculation.
11923         * nscd/nscd-client.h (struct mapped_database): Add datasize
11924         field.
11925         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11926         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11927         increased.
11928         (__nscd_cache_search): Add checks to make sure we never reference
11929         data beyond the current mapping.
11931 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11933         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11934         variables const to avoid compiler warnings.
11936         * io/fts.c (fts_close): Remove redundant checks.
11937         (fts_build): Likewise.
11938         (fts_palloc): Likewise.
11940         * manual/message.texi (Advanced gettext functions,
11941         Using gettextized software): Fix typos.
11943 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11945         * posix/glob.c (glob_in_dir): Add some comments and asserts to
11946         explain why there are no leaks.
11948 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
11950         * libio/wmemstream.c: Include <wchar.h>.
11951         * libio/bug-wmemstream1.c: Likewise.
11952         * libio/tst-wmemstream1.c: Likewise.
11953         * libio/tst-wmemstream2.c: Likewise.
11955         * version.h (RELEASE): Bump to 2.5.
11956         * README: Regenerated.
11958         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11960         [BZ #3273]
11961         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11962         found no group members.
11963         Patch by Petr Baudis.
11965 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
11967         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11968         assert bootstrap_map.l_tls_modid is zero.
11969         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11970         if USE___THREAD.
11972 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
11974         * libio/stdio.h: Move open_wmemstream prototype to ...
11975         * wcsmbs/wchar.h: ... here.
11977 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11979         [BZ #3252]
11980         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11981         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11982         __{,l}chown to handle the rest.
11983         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11984         fchownat syscall and __ASSUME_32BITUIDS case inline, call
11985         __{,l}chown to handle the rest.
11986         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11987         i386/fchownat.c.
11988         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11989         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11991         [BZ #3253]
11992         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11993         time, rather allocate increasingly bigger arrays of pointers, if
11994         possible with alloca, if too large with malloc.
11996 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
11998         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12000         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12002 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12004         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12005         home addresses.
12006         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12007         IFA_F_HOMEADDRESS flag for interfaces.
12008         * include/ifaddrs.h (struct in6addrinfo): Define
12009         in6ai_homeaddress.
12011 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12013         [BZ #3225]
12014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12015         PTR_DEMANGLE3): Define.
12016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12017         PTR_DEMANGLE3): Likewise.
12018         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12019         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12020         Likewise.
12021         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12023 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12025         * po/libc.pot: Regenerated.
12026         * po/be.po: Updated.
12027         * po/ca.po: Likewise.
12028         * po/cs.po: Likewise.
12029         * po/da.po: Likewise.
12030         * po/de.po: Likewise.
12031         * po/el.po: Likewise.
12032         * po/en_GB.po: Likewise.
12033         * po/es.po: Likewise.
12034         * po/fi.po: Likewise.
12035         * po/fr.po: Likewise.
12036         * po/gl.po: Likewise.
12037         * po/hr.po: Likewise.
12038         * po/hu.po: Likewise.
12039         * po/ja.po: Likewise.
12040         * po/ko.po: Likewise.
12041         * po/nb.po: Likewise.
12042         * po/nl.po: Likewise.
12043         * po/pl.po: Likewise.
12044         * po/pt_BR.po: Likewise.
12045         * po/ru.po: Likewise.
12046         * po/rw.po: Likewise.
12047         * po/sk.po: Likewise.
12048         * po/sv.po: Likewise.
12049         * po/tr.po: Likewise.
12050         * po/zh_CN.po: Likewise.
12051         * po/zh_TW.po: Likewise.
12053         [BZ #3137]
12054         * iconv/iconv_prog.c (main): Fix spelling in error message.
12055         * iconv/iconvconfig.c (main): Likewise.
12056         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12057         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12058         * locale/programs/localedef.c (main): Likewise.
12059         * locale/programs/repertoire.c (repertoire_read): Likewise.
12060         * timezone/zdump.c (main): Likewise.
12061         * nscd/connections.c (handle_request): Fix spelling in log message.
12062         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12064 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12066         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12067         interfaces.
12069 2006-09-20  Andreas Jaeger  <aj@suse.de>
12071         * math/libm-test.inc (lrint_test_upward): Fix typo.
12073 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12075         [BZ #2592]
12076         * math/libm-test.inc (lrint_test_tonearest): New function.
12077         (lrint_test_towardzero): New function.
12078         (lrint_test_downward): New function.
12079         (lrint_test_upward): New function.
12080         (main): Run these new tests.
12081         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12082         of values near to 0.
12083         (two52): Use double not long double.
12084         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12085         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12086         (two23): Use float not double.
12087         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12088         (two23): Use float not double.
12089         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12090         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12091         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12092         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12094 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12096         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12097         Cast sp to unsigned long to avoid compiler warning.
12098         Use __makecontext_ret function instead of a trampoline on the stack.
12099         (__makecontext_ret): New function.
12100         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12102 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12104         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12105         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12106         bits.
12108 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12110         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12111         sure no reference to the unloaded map's search list remains in the
12112         dependency's scope.
12114 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12116         * elf/Makefile: Add rules to build and run unload7 test.
12117         * elf/unload7.c: New test.
12118         * elf/unload7mod1.c: New file.
12119         * elf/unload7mod2.c: New file.
12121 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12123         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12124         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12125         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12126         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12127         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12128         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12129         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12130         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12131         PTRACE_GETEVENTMSG): Likewise.
12132         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12133         values.
12135 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12137         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12138         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12139         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12140         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12142 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12144         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12145         write '\0' to the fd.
12146         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12147         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12148         Change regs to unsigned long pointer from unsigned int, fix fscr
12149         offset.
12151 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12153         * io/Makefile (CFLAGS-fstatat.c): Set.
12154         (CFLAGS-fstatat64.c): Likewise.
12155         (CFLAGS-mknodat.c): Likewise.
12157         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12158         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12160         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12162 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12163             Steven Munroe  <sjmunroe@us.ibm.com>
12165         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12166         names to the beginning.  Rename "cell" to "cellbe".
12167         (_dl_powerpc_platforms): New.
12168         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12169         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12170         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12171         (_DL_HWCAP_PLATFORM): Define to new mask.
12172         (_dl_platform_string, _dl_string_platform): New functions.
12173         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12174         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12176 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12178         [BZ #2526]
12179         * README.libm: Fix a thinko in sqrt algorithm description.
12181         [BZ #3143]
12182         * manual/string.texi (argz_delete): Fix prototype.
12183         Patch by <alpt@freaknet.org>.
12185 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12187         [BZ #3138]
12188         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12189         * io/tst-fcntl.c (do_prepare): Likewise.
12190         * posix/tst-exec.c (do_prepare): Likewise.
12191         * posix/tst-preadwrite.c (do_prepare): Likewise.
12192         * posix/tst-spawn.c (do_prepare): Likewise.
12193         * posix/tst-truncate.c (do_prepare): Likewise.
12194         * rt/tst-aio.c (do_prepare): Likewise.
12195         * rt/tst-aio64.c (do_prepare): Likewise.
12196         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12197         size_t.
12199 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12201         [BZ #2821]
12202         * time/mktime.c (guess_time_tm): Fix overflow detection.
12203         * time/Makefile (tests): Add bug-mktime1.
12204         * time/bug-mktime1.c: New file.
12206         [BZ #3189, #3188]
12207         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12208         (mremap): Likewise.
12210 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12212         [BZ #1006]
12213         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12214         Ensure relocation doesn't clobber any bits outside of the
12215         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12216         R_SPARC_HI22 and R_SPARC_H44.
12218         [BZ #2775]
12219         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12220         (long) (MINSIZE + nb - old_size) is positive.
12222         * malloc/arena.c (grow_heap): When growing bail even if new_size
12223         is negative.
12225         [BZ #3155]
12226         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12227         stack below r1.
12229 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12231         * posix/regex_internal.c (re_string_reconstruct): Handle
12232         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12233         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12234         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12235         re_string_context_at.
12236         * posix/Makefile: Add rules to build and run bug-regex26 test.
12237         * posix/bug-regex26.c: New test.
12239         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12240         rather than col_sym_free.  Move seqp declaration earlier.
12242         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12244 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12246         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12247         decl before first goto out.
12249 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12251         * Makerules (shlib.lds): If have-hash-style, put .hash section
12252         at the end of the RO segment.
12254 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12256         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12257         style hash table format is used.
12259 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12261         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12262         randomization rather than before.
12263         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12265 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12267         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12269         * malloc/malloc.c (_int_malloc): Use full list insert and not
12270         shortcut which assumes the list is empty for large requests
12271         too.
12273         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12275 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12277         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12278         and offout arguments to the prototype.
12279         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12280         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12281         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12282         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12283         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12284         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12285         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12286         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12288 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12290         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12292         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12293         dlopen parameters.
12295 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12297         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12298         only if herrno is NETDB_INTERNAL.  Handle errors other than
12299         ERANGE outside of the loops, handle TRY_AGAIN.
12301         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12302         if other's ctype category was missing.
12303         * locale/programs/ld-collate.c (collate_read): Return if
12304         copy_locale's collate category is missing.
12306 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12308         [BZ #2684]
12309         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12310         arenas if allocation failed.
12311         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12313 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12315         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12316         waste bins[0..1].
12317         (malloc_state): Reduce bins size by 2.
12318         (_int_malloc): Fix test for large enough buffer for early termination.
12319         When no unsorted block matches perfectly and an exiting block has
12320         to be split, use full list insert and not shortcut which assumes
12321         the list is empty.
12323         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12324         failure.
12326 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12328         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12329         do anything.
12331         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12332         symbol require exact match (these are PLTs).
12333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12334         (_dl_ppc64_addr_sym_match): Likewise.
12336         [BZ #2683]
12337         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12338         If symbol has a value use it.
12339         * elf/tst-dladdr1.c: New file.
12340         * elf/Makefile: Add rules to build and run tst-addr1.
12342 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12344         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12345         keeps failing and heap growth or new heap creation isn't
12346         successful either.
12347         * malloc/tst-malloc.c (main): Add new tests.
12349 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12351         [BZ #2734]
12352         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12353         as in the x86-64 code to use bswap.
12355 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12357         [BZ #2680]
12358         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12359         __USE_UNIX98.
12360         * posix/bits/unistd.h: Likewise.
12362 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12364         [BZ #2751]
12365         * string/strchr.c: Add cast to avoid warning.
12367 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12369         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12370         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12371         limit is needed to avoid the exploding of the address space
12372         requirement for secondary heaps.
12373         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12374         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12376 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12378         [BZ #3018]
12379         * Makerules (depfiles): Handle extra-test-objs the same as
12380         extra-objs.
12381         (common-mostlyclean): Likewise.
12382         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12383         instead.
12384         * elf/Makefile (extra-objs): Likewise.
12385         * stdlib/Makefile (extra-objs): Likewise.
12387 2006-08-14  Eric Blake  <ebb9@byu.net>
12389         [BZ #3044]
12390         * misc/error.h: Assume C89 or better.
12391         * misc/error.c: Likewise.
12393 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12395         [BZ #3040]
12396         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12397         __ASSUME_ATFCTS is defined.
12399 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12401         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12402         to sort in each call.
12404         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12405         is empty simply return and use next service.
12406         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12408         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12409         tells us when not finding a charmap file is an error.
12410         * locale/programs/charmap.h: Adjust charmap_read prototype.
12411         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12412         cannot find a charmap.
12413         * locale/programs/localedef.c (main): Adjust charmap_read call.
12415 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12417         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12418         sysdeps/posix/pause.c implementation instead.
12420 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12422         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12423         to EPERM.
12425 2006-08-13  Andreas Schwab  <schwab@suse.de>
12427         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12428         Don't clobber caller's LRSAVE.
12429         (_dl_prof_resolve): Likewise.
12431 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12433         [BZ #1996]
12434         * libio/memstream.c (open_memstream): Allocate initial buffer with
12435         calloc.
12436         * libio/wmemstream.c (open_wmemstream): Likewise.
12437         * libio/strops.c: Pretty printing.
12438         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12439         (enlarge_userbuf): New function.
12440         (_IO_str_seekoff): Call it if seek position is larger than current
12441         buffer.
12442         * libio/wstrops.c: Likewise.
12443         * libio/vasprintf.c: Add comment as to why we do not have to use
12444         calloc instead of malloc to allocate initial buffer.
12445         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12446         * libio/bug-memstream1.c: New file.
12447         * libio/bug-wmemstream1.c: New file.
12449 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12451         * libio/wstrops.c: Remove dead macro definitions and comments.
12452         * libio/strops.c: Likewise.
12454         [BZ #2764]
12455         * login/utmpname.c (__utmpname): Remove unnecessary test.
12457 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12459         [BZ #2832]
12460         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12461         0s from integers.
12463 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12465         [BZ #2987]
12466         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12467         for CPU clocks.
12468         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12469         setting of CPU clocks.
12471 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12473         [BZ #2841]
12474         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12475         since C99 requires the result to promote to 'int' when uint_least8_t
12476         and uint_least16_t promote to 'int'.
12478 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12480         [BZ #3013]
12481         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12482         lenght of one output field, correct bitmask creation.
12483         * locale/programs/ld-time.c: Add alignment.
12485         [BZ #2997]
12486         * misc/error.c: Add space between program name and message if file
12487         name is missing.
12489 2006-08-03  Eric Blake  <ebb9@byu.net>
12491         [BZ #2998]
12492         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12494 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12496         * malloc/memusagestat.c: Silence warnings.
12498         * malloc/malloc.c: Dynamically size mmap treshold if the program
12499         frees mmaped blocks.
12500         Patch by Valerie Henson and Arjan van de Ven.
12502 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12504         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12505         __USE_GNU.
12507         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12508         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12509         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12510         Only provide var definitions in strtol_l (or for *ull*
12511         in strtoll_l).
12513         * stdio-common/bug16.c (tests): New array.
12514         (do_tests): Allow the first hexadecimal digit
12515         to be 1, 2, 4 or 8.  Do 3 additional tests.
12517         * sysdeps/s390/fpu/libm-test-ulps: Update.
12519         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12520         fchownat syscall if available.
12521         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12522         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12523         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12525 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12527         * nis/nis_xdr.c: Avoid some function calls.
12529 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12530             Ulrich Drepper  <drepper@redhat.com>
12532         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12533         short cut if only one name component is stripped away.
12535 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12537         * nis/nis_call.c: Minor cleanups throughout.
12538         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12539         (first_shoot): Add search_parent_first parameter.  Only if it is set
12540         search parent server first.
12541         If directory for table found through cold start cache is not the same
12542         as referenced in the cache, don't use it.
12543         (__nisfind_server): Take additional parameter.  Pass it on to
12544         first_shoot.
12545         (__prepare_niscall): Adjust __nisfind_server call.
12546         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12547         * nis/nis_table.c: Adjust __nisfind_server call.
12548         * nis/nis_lookup.c: Likewise.
12549         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12551 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12553         [BZ #2182]
12554         * math/s_cacosh.c: Return values from positive branch.
12555         * math/s_cacoshf.c: Likewise.
12556         * math/s_cacoshl.c: Likewise.
12558         [BZ #2883]
12559         * sysvipc/sys/msg.h: Change return value to ssize_t.
12560         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12561         * sysvipc/msgrcv.c: Likewise.
12562         * include/sys/msg.h: Likewise.
12564         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12565         test introduced in patch for bz #661.
12566         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12567         element for NEWGROUPS.
12569         [BZ #2908]
12570         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12571         'f', use '1' as leading digit not '\1'.
12572         * stdio-common/Makefile (tests): Add bug16.
12573         * stdio-common/bug16.c: New file.
12575         [BZ #2914]
12576         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12577         and don't try to open it.  The patch introducing the macro
12578         contained a bug and used the same file name as the new file
12579         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12580         this out completely.
12582         [BZ #2926]
12583         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12584         Patch by Jerry James <Jerry.James@usu.edu>.
12586         * rt/Makefile (tests): Add tst-clock2.
12587         * rt/tst-clock2.c: New file.
12589         [BZ #2978]
12590         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12591         function and its parameters and pass it to new thread.
12592         (__gai_notify): Add support for alternative waiting for completion.
12593         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12594         waiting for completion.
12595         * resolv/getaddrinfo_a.c: Likewise.
12596         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12597         waiting for completion is used.
12598         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12599         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12600         * resolv/gai_error.c: Likewise.
12601         * resolv/gai_sigqueue.c: Likewise.
12603 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12605         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12606         errno to EBADF and return MACH_PORT_NULL.
12608 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12610         [BZ #2980]
12611         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12613 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12615         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12616         walk them instead of the symbol table.
12618 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12620         [BZ #2098]
12621         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12622         status of NSS calls, not the number of returned entries.
12624         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12625         request_key, keyctl.
12627 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12629         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12631 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12633         * elf/tst-auditmod1.c: Fix typo in #error.
12635 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12637         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12639         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12641 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12643         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12644         that the directory is empty even on non-POSIX filesystems.
12646 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12648         * elf/dl-open.c (dl_open_worker): Add branch prediction.
12650         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12651         the backend NSS module.  If backend setgrent call failed, don't have
12652         internal_setgrent fail.  Just remember this until it is needed.
12653         * nis/nss_compat/compat-pwd.c: Likewise.
12654         * nis/nss_compat/compat-spwd.c: Likewise.
12656 2006-07-30  Roland McGrath  <roland@redhat.com>
12658         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12659         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12660         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12661         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12663         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12664         (nanosleep_not_cancel): New macro.
12665         (sigsuspend_not_cancel): new macro.
12666         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12667         (do_sigsuspend): Define as inline.
12668         (__sigsuspend): Always use do_sigsuspend.
12669         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12670         * include/signal.h: Declare __sigsuspend_nocancel.
12671         * sysdeps/posix/pause.c
12672         [! NO_CANCELLATION] (__pause_nocancel): New function.
12674         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12675         * include/time.h (__nanosleep_nocancel): Likewise.
12677 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
12679         * locale/programs/localedef.c (add_to_readlist): Rename local
12680         variables to avoid confusion.
12682         * locale/programs/charmap.c (charmap_read): Emit error message if
12683         charmap couldn't be found or read.
12685 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
12687         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12688         __ASSUME_FUTEX_LOCK_PI.
12689         * include/time.h: Declare __nanosleep_nocancel.
12690         * include/unistd.h: Declare __pause_nocancel.
12692         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12693         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
12694         get the __stack_chk_fail_local definition when it's needed.
12696 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
12698         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12699         * dlfcn/bug-atexit3.c: New file.
12700         * dlfcn/bug-atexit3-lib.cc: New file.
12702         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12703         used when the namespace is not the base namespace.
12705 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
12707         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12708         (__new_exitfn): Bump it in every successful call.
12709         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12710         more exit handlers, call them right away.
12711         * stdlib/exit.h: Declare __new_exitfn_called.
12713 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
12715         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12716         calling registered handler.
12718         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12719         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12720         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12721         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12722         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12723         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12724         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12725         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12727 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
12729         * elf/dl-lookup.c (dl_new_hash): New functions.
12730         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12731         value here.  Compute new-style hash value.  Pass new hash value
12732         and reference to variable with the old value to do_lookup_x.
12733         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12734         old-style hash table.
12735         (_dl_debug_bindings): Pass new hash value and reference to variable
12736         with the old value to do_lookup_x.
12737         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12738         new-style hash value and change old-style hash value parameter to
12739         be a reference.  Reoganize functions to determine whether
12740         new-style hash table is available.  Only fall back on old-style
12741         table.  If old-style hash value is needed, compute it here.
12742         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12743         entry.
12744         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12745         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
12746         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12747         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12748         * Makeconfig: If linker supports --hash-style option add it to all
12749         linker command lines to build DSOs.
12750         * config.make.in: Define have-hash-style.
12751         * configure.in: Test whether linker supports --hash-style option.
12753         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12754         * sysdeps/generic/ldsodefs.h: Adjust prototype.
12756 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
12758         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12759         auditing.
12761         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12762         RPATH of main map twice.
12764 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
12766         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12767         look further, return original strings.
12768         (_nl_find_msg): Do not return found translation if the conversion
12769         failed.  Either signal the string is unusable or that something went
12770         wrong and the original should be used.
12772 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
12774         * string/_strerror.c (__strerror_r): Add __builtin_expect.
12776 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
12778         [BZ #2766]
12779         * misc/insremque.c (insque): Handle prev == NULL.
12780         * misc/Makefile (tests): Add tst-insremque.
12781         * misc/tst-insremque.c: New test.
12783 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
12785         [BZ #2792]
12786         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12787         conflict with DL_DST_REQUIRED.
12789 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
12791         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12792         match what Solaris does.
12794 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
12796         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12797         local_setegid instead of seteuid and setegid.
12798         * sysdeps/generic/local-setxid.h: New file.
12799         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12801         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12803         * string/Makefile (tests): Add bug-envz1.
12804         * string/bug-envz1.c: New file.
12806 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12808         * posix/regex_internal.c (re_string_skip_chars): If no character has
12809         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
12810         to the byte which couldn't be converted.
12811         (re_string_reconstruct): Don't clear valid_raw_len before calling
12812         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12813         tip_context using re_string_context_at.
12814         * posix/Makefile: Add rules to build and run bug-regex25 test.
12815         * posix/bug-regex25.c: New test.
12817 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
12819         [BZ #2703]
12820         * string/envz.c (envz_strip): Correct erroneously reversed src
12821         and dest parameters to memmove() invocation.
12823 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
12825         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12826         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12827         to make sure the database has been already invalidated.
12828         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
12829         after the cache has been invalidated.  Use pthread_mutex_lock rather
12830         than pthread_mutex_trylock if fd != -1.
12831         * nscd/connections.c (invalidate_cache): Add fd argument, write
12832         response to fd if not calling prune_cache, pass fd to prune_cache.
12833         (handle_request): Adjust invalidate_cache caller.
12834         (nscd_run): Pass -1 as fd to prune_cache.
12836 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
12838         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12839         the correct place.
12841 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
12843         * nscd/nscd.h (struct database_dyn): Add prunelock field.
12844         * nscd/cache.c (prune_cache): Take prunelock before starting the
12845         work.  Just return in case it is already taken.
12846         * nscd/connections.c (dbs): Initialize .prunelock.
12848 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
12850         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12851         copying.  No need to allocate new array for group members.  Just
12852         move the pointers and update the size.
12854         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12855         Avoid memory leak in case realloc fails.  Simplification for
12856         better code generation.
12858         Avoid deprecation warning because of libc_hidden_proto for
12859         inet6_option_alloc.
12860         * inet/inet6_option.c (option_alloc): Renamed from
12861         inet6_option_alloc.  Made static.
12862         (inet6_option_alloc): Now a simple wrapper around option_alloc.
12863         (inet6_option_append): Call option_alloc.
12864         * include/netinet/in.h: Remove libc_hidden_proto for
12865         inet6_option_alloc.
12867         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12868         for cleanup when cb!=NULL [Coverity CID 233].
12870 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
12872         [BZ #2693]
12873         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12874         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12875         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12876         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12877         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12878         and inet6_rth_getaddr.
12879         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12880         array.
12881         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12882         Mark inet6_option_* interfaces as deprecated.
12883         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12884         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12885         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12886         inet6_rth_segments, and inet6_rth_getaddr.
12887         * inet/inet6_opt.c: New file.
12888         * inet/inet6_rth.c: New file.
12890         * inet/netinet/icmp6.h: Pretty printing.
12892         [BZ #2683]
12893         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12895 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
12897         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12898         doing it all here.  When server does not know the answer do not
12899         fail immediate, try parent first.
12901         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12902         overflow test.
12904 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
12906         * nis/nis_call.c (__prepare_niscall): New function.  Split out
12907         from __do_niscall.
12908         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12909         and exported.
12910         (__follow_path): New function.  Split out from nis_list.
12911         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12912         _xdr_nis_result.
12913         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12914         _xdr_nis_result.
12915         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12916         and __follow_path.
12917         * nis/Versions: Export __prepare_niscall, __create_ib_request,
12918         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12919         from libnsl for version GLIBC_PRIVATE.
12920         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12921         Remove entry parameter from _nss_nisplus_parse_pwent and
12922         _nss_nisplus_parse_grent.
12923         * nis/nss_nisplus/nisplus-parser.c: Likewise.
12924         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12925         again.  Rewrite getpwent handling to not use nis_first_entry and
12926         nis_next_entry.  Roll out own niscall handling.
12927         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12929         * sunrpc/xdr_rec.c: Fix typo in comment.
12931 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
12933         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12934         handling.
12936         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12937         to allocate memory for my_pollfd.  Better initialization of
12938         cb_is_running.  Use TEMP_FAILURE_RETRY.
12940         * malloc/memusage.sh (memusageso): Add quotes.
12941         (memusagestat): Likewise.
12942         * debug/xtrace.sh (pcprofileso): Likewise.
12943         (pcprofiledump): Likewise.
12944         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12945         replacement.
12946         * malloc/Makefile ($(objpfx)memusage): Likewise.
12948         * nis/nis_callback.c (__nis_create_callback): Calls to
12949         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
12950         asprintf call fails.
12952         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12953         no uninitialized memory is passed to sendto.
12955 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12957         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12958         of snprintf+strdup.  Handle OOM.
12959         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12960         cb->serv together.  Remove now obsolete free calls.
12961         (__nis_destroy_callback): Remove now obsolete free call.
12963 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
12965         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12966         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12967         and ULA respectively). Set precedence for IPv4 address to 10 as
12968         defined in RFC3484 for preferring IPv6.
12969         * posix/gai.conf: Update to match the new default tables.
12971 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
12973         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12974         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12975         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12976         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12978         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12979         Removed.
12980         (init_nss_interface): Remove initialization of these variables.
12982 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12984         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12985         nis_free_directory forward to avoid duplication.
12987 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
12989         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12990         rec_dirsearch returning NULL.
12991         (first_shoot): Handle __nis_finddirectory returning NULL.
12992         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12994         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12995         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12997 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12999         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13000         pid changed.
13002 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13004         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13006         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13007         * nscd/nscd_getgr_r.c: Likewise.
13009         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13011         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13012         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13014         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13016         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13018         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13020         * include/rpc/auth.h: Mark xdr_des_block_internal and
13021         xdr_opaque_auth_internal as hidden.
13023         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13024         hidden.
13026         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13028         * misc/getusershell.c (okshells): Don't use static initializers,
13029         do it dynamically.
13031         * stdlib/fmtmsg.c (keywords): Change type of len element to
13032         uint32_t to not waste space on 64bit machines.
13034         * locale/setlocale.c: Change _nl_category_names into a string.
13035         Add new _nl_category_name_idxs.  Change all users.
13036         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13037         Declare _nl_category_name_idxs.
13038         * locale/findlocale.c: Adjust for _nl_category_names change.
13039         * locale/loadlocale.c: Likewise.
13040         * locale/newlocale.c: Likewise.
13041         * intl/dcigettext.c: Likewise.
13043         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13044         (add_alias2): ...here.  New function.
13045         (__gconv_read_conf): Simplify builtin alias handling.
13046         (builtin_aliases): Convert to string to avoid relocations.
13047         * iconv/gconv_builtin.h: Add comment about correct formatting.
13049 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13051         * resolv/res_debug.c (loc_ntoa): Make error const.
13053 2006-05-14  Andreas Schwab  <schwab@suse.de>
13055         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13057 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13059         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13060         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13061         sizeof (cpu_set_t).
13063 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13065         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13067         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13069         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13070         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13072         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13073         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13075         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13076         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13077         xdr_cback_data.
13079         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13080         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13081         xdr_ypupdate_args.
13083         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13084         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13086         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13087         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13089         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13090         * include/rpcsvc/nis_callback.h: New file.
13092         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13093         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13095         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13096         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13098         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13099         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13101         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13102         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13104         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13105         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13106         xdr_ypdelete_args.
13108         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13109         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13111         * nis/nis_error.c: Remove table of strings.  Use position
13112         independent mechanism.
13113         * nis/nis_error.h: New file.
13115 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13117         * locale/programs/ld-time.c (time_finish): If wide era name or
13118         format aren't provided, set both wname and wformat to L"".
13120 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13122         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13123         results if the call was succesful.
13125         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13127         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13128         as hidden.
13130 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13132         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13134 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13136         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13137         caller makes sure this is not the case.
13138         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13140 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13142         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13143         calls.
13145         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13146         [Coverity CID 229, 230]
13148         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13149         DGETTEXT calls.
13150         (hol_help): Likewise.  [Coverity CID 226, 227]
13152         * string/argz-replace.c (__argz_replace): Unconditionally call
13153         free on SRC.  [Coverity CID 225]
13155         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13156         the return value of __nis_default_owner and __nis_default_group,
13157         it has been especially allocated.  [Coverity CID 224]
13159         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13160         searchgroup and searchowner.  Significantly simplified.
13161         (__nis_default_owner): Remove duplication.  Do not locally copy the
13162         string before duplicating it.
13163         (__nis_default_group): Likewise.
13165         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13166         we must clear the variable before calling __nisfind_server.
13168         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13169         nis_getnames.  [Coverity CID 223]
13171         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13172         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13174         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13175         allocate memory for the input to add_bytes.  [Coverity CID 221]
13177         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13178         was allocated here.  [Coverity CID 219, 220]
13180         * posix/getconf.c (print_all): Free confstr data after printing.
13181         [Coverity CID 218]
13183         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13184         list allocation fails.  [Coverity CID 215]
13186         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13187         [Coverity CID 213]
13189         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13190         string is NULL.  [Coverity CID 212]
13191         * argp/Makefile: Add rules to build and run bug-argp1.
13192         * argp/bug-argp1.c: New file.
13194         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13195         end of string.
13196         * stdlib/canonicalize.c (__realpath): Likewise.
13198         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13199         pointer.  [Coverity CID 206]
13201         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13202         in statically linked code.
13203         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13204         statically built code, be prepared to have no link map.
13205         [Coverity CID 205]
13207         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13208         dgettext calls. [Coverity CID 204]
13210         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13211         the one user.
13212         (uparam_names): Reduce size.  Avoid relative relocations.
13213         Moved to read-only segment.
13214         (fill_in_uparams): Update for new layout.
13216         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13217         assumed to always be != NULL. [Coverity CID 202]
13219         * argp/argp-help.c (hol_entry_help): Remove some dead code
13220         [Coverity CID 200].
13222         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13223         away a few more unconditional yperr2nss calls.
13224         (_nss_nis_getservbyname_r): Likewise.
13226 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13228         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13229         architectures.
13231         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13232         that unused memory passed to sendto is nevertheless initialized.
13234         [BZ #2499]
13235         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13236         possibly unaligned memory accesses.
13238         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13239         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13240         and __putlong respectively.  Correct buffer overflow check for
13241         NS_NOTIFY_OP.
13243         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13245         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13246         (send_dg): Rewrite error handling to be more compact and avoid
13247         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13249         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13251         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13252         instead of ns_get16.
13253         (res_queriesmatch): Likewise.  Minor optimization.
13255         [BZ #2499]
13256         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13257         __libc_res_nsend might reallocate the buffer for the answer.  In
13258         this case we have to reload the HP pointer.
13260 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13262         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13263         some branch prediction hints.
13265         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13266         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13267         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13268         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13269         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13270         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13271         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13272         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13274 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13276         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13277         by a GOT relocation to make Scrt1.o position independent.
13278         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13280         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13281         six system call parameters.
13282         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13284 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13286         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13287         malloc&bzero.
13289         * sunrpc/svc_udp.c (BZERO): Remove definition.
13290         (CALLOC): Define.
13291         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13293         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13294         (des_SPtrans): Use uint32_t type.
13295         (des_skb): Likewise.
13297         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13299 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13301         [BZ #2509]
13302         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13303         on 32-bit arches.
13305 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13307         * locale/programs/ld-address.c (address_finish): Fix one more
13308         place where the iso639 array might be accessed beyond the limits.
13310 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13312         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13313         filling it for the first time.
13315         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13316         Adjust all callers.
13317         Free res object content before returning.
13319         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13321         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13322         client->cl_auth.
13324         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13325         cleanup for initial thread, just the free call on TVP.
13327         * nscd/gai.c (__getline): Define.
13330 See ChangeLog.16 for earlier changes.