libc part of prelink IFUNC support.
[glibc/pb-stable.git] / ChangeLog
blob95b13e00f94fbf07a337ce79e0b223293c8c51af
1 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
3         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
4         STT_GNU_IFUNC symbol or in 8 into type_class.
6         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
7         instead of Elf64_Addr.
9 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
11         * po/sv.po: Update from translation team.
13         [BZ #10229]
14         * misc/sys/select.h (__NFDBITS): Expression should have type int.
15         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
16         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
17         the C version.
19 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
21         * Versions.def: Add GLIBC_2.11 for libpthread.
23 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
25         * resolv/res_send.c (send_dg): Remember we switched to
26         single-request mode.
28 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
30         * dlfcn/dlfcn.h: Remove comma at end of enum.
31         Patch by J.H.M. Dassen <rdassen@redhat.com>.
33         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
34         parsing mode string.
36 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
38         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
40         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
42         * sysdeps/x86_64/multiarch/strlen.S: New file.
43         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
44         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
45         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
46         content.
48         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
49         is defined.
51 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
53         * sysdeps/x86_64/strlen.S: Minor optimizations.
55 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
57         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
58         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
59         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
60         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
61         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
62         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
63         ifuncmain3.c, ifuncmod3.c,.
64         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
65         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
66         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
67         ifuncmain4picstatic.
68         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
69         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
70         ifuncmain3, ifuncmain4.
71         (tests): Depend on $(objpfx)ifuncmain1pie.out and
72         $(objpfx)ifuncmain1vispie.out.
73         (modules-names): Add ifuncmod1 ifuncmod3.
74         (generated): Add ifuncmain1pie ifuncmain1pie.out
75         ifuncmain1vispie ifuncmain1vispie.out.
76         Define rules to build and run the tests.
77         * elf/ifuncdep1.c: New file.
78         * elf/ifuncdep1pic.c: New file.
79         * elf/ifuncdep2.c: New file.
80         * elf/ifuncdep2pic.c: New file.
81         * elf/ifuncmain1.c: New file.
82         * elf/ifuncmain1pic.c: New file.
83         * elf/ifuncmain1picstatic.c: New file.
84         * elf/ifuncmain1pie.c: New file.
85         * elf/ifuncmain1static.c: New file.
86         * elf/ifuncmain1staticpic.c: New file.
87         * elf/ifuncmain1vis.c: New file..
88         * elf/ifuncmain1vispic.c: New file..
89         * elf/ifuncmain1vispie.c: New file.
90         * elf/ifuncmain2.c: New file.
91         * elf/ifuncmain2pic.c: New file.
92         * elf/ifuncmain2picstatic.c: New file.
93         * elf/ifuncmain2static.c: New file.
94         * elf/ifuncmain3.c: New file.
95         * elf/ifuncmain4.c: New file.
96         * elf/ifuncmain4picstatic.c: New file.
97         * elf/ifuncmain4static.c: New file.
98         * elf/ifuncmod1.c: New file.
99         * elf/ifuncmod3.c: New file.
101 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
103         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
105 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
107         [BZ #10221]
108         * posix/Makefile (routines): Add execvpe.
109         * posix/Versions: Export execvpe for GLIBC_2.11.
110         * posix/execvp.c: Now only a wrapper.  Move code to...
111         * posix/execvpe.c: ...here.  New file.
112         * posix/unistd.h: Declare execvpe.
114 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
116         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
117         for STT_GNU_IFUNC handling for efficiency.
118         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
120         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
121         _exit.
122         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
124 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
126         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
127         for !SHARED.
129 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
131         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
132         is not defined.
133         (__rela_iplt_start): New declaration.
134         (__rela_iplt_end): Likewise.
135         (__rel_iplt_start): Likewise.
136         (__rel_iplt_end): Likewise.
137         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
138         * elf/elf.h (R_386_IRELATIVE): New macro.
139         (R_X86_64_IRELATIVE): New macro.
140         (R_386_NUM): Updated.
141         (R_X86_64_NUM): Likewise.
142         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
143         (libc_ifunc_hidden_def): New macro.
144         * sysdeps/generic/dl-irel.h: New file.
145         * sysdeps/i386/dl-irel.h: New file.
146         * sysdeps/x86_64/dl-irel.h: New file.
147         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
148         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
149         Handle R_386_IRELATIVE.
150         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
151         (elf_machine_lazy_rela): Likewise.
152         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
153         R_X86_64_IRELATIVE.
154         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
156 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
158         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
159         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
160         are no differences.  If an architecture has bits in CPUID index 1
161         meaning different things the values for the COMMON_CPUID_INDEX_1
162         index must not be set.
163         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
164         (HAS_POPCOUNT): ...this.  New macro.
165         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
166         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
167         to set the value for Intel and AMD architectures.
168         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
169         INTEL_CPUID_INDEX_1.
170         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
171         change.
173 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
175         * configure.in: Move AC_CANONICAL_HOST before first use of $host
176         and $build.
178 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
180         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
181         (__expm1l): Set errno to ERANGE on overflow.
182         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
183         (__tanl): Set errno to EDOM for ±Inf.
184         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
185         (__cosl): Set errno to EDOM for ±Inf.
186         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
187         (__sinl): Set errno to EDOM for ±Inf.
189         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
190         defined, use it.
191         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
192         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
193         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
195 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
197         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
198         code accessing it.
199         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
201 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
203         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
204         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
205         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
206         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
208         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
209         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
210         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
211         defined.
212         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
213         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
215 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
217         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
218         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
219         is, either do nothing at all if __ASSUME_ACCEPT4, or
220         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
221         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
222         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
223         define.
224         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
225         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
226         internal_accept4 in socket directory.
228 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
230         * sysdeps/ia64/configure.in: New file.
232 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
234         [BZ #10162]
235         * sysdeps/ia64/memchr.S: Use speculative load.
237         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
238         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
239         use it.
241         * sysdeps/i386/__longjmp.S: Add .text.
242         * sysdeps/x86_64/__longjmp.S: Likewise.
244 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
246         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
247         __ASSUME_ACCEPT4 for IA-64.
249 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
251         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
253         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
254         (SOCKOP_accept4): Define.
256 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
258         Sun approved the change of the license.
259         * sunrpc/auth_des.c: Replace license text.
260         * sunrpc/auth_none.c: Likewise.
261         * sunrpc/auth_unix.c: Likewise.
262         * sunrpc/authdes_prot.c: Likewise.
263         * sunrpc/authuxprot.c: Likewise.
264         * sunrpc/bindrsvprt.c: Likewise.
265         * sunrpc/clnt_gen.c: Likewise.
266         * sunrpc/clnt_perr.c: Likewise.
267         * sunrpc/clnt_raw.c: Likewise.
268         * sunrpc/clnt_simp.c: Likewise.
269         * sunrpc/clnt_tcp.c: Likewise.
270         * sunrpc/clnt_udp.c: Likewise.
271         * sunrpc/clnt_unix.c: Likewise.
272         * sunrpc/des_crypt.c: Likewise.
273         * sunrpc/des_soft.c: Likewise.
274         * sunrpc/get_myaddr.c: Likewise.
275         * sunrpc/getrpcport.c: Likewise.
276         * sunrpc/key_call.c: Likewise.
277         * sunrpc/key_prot.c: Likewise.
278         * sunrpc/openchild.c: Likewise.
279         * sunrpc/pm_getmaps.c: Likewise.
280         * sunrpc/pm_getport.c: Likewise.
281         * sunrpc/pmap_clnt.c: Likewise.
282         * sunrpc/pmap_prot.c: Likewise.
283         * sunrpc/pmap_prot2.c: Likewise.
284         * sunrpc/pmap_rmt.c: Likewise.
285         * sunrpc/rpc/auth.h: Likewise.
286         * sunrpc/rpc/auth_unix.h: Likewise.
287         * sunrpc/rpc/clnt.h: Likewise.
288         * sunrpc/rpc/des_crypt.h: Likewise.
289         * sunrpc/rpc/key_prot.h: Likewise.
290         * sunrpc/rpc/netdb.h: Likewise.
291         * sunrpc/rpc/pmap_clnt.h: Likewise.
292         * sunrpc/rpc/pmap_prot.h: Likewise.
293         * sunrpc/rpc/pmap_rmt.h: Likewise.
294         * sunrpc/rpc/rpc.h: Likewise.
295         * sunrpc/rpc/rpc_des.h: Likewise.
296         * sunrpc/rpc/rpc_msg.h: Likewise.
297         * sunrpc/rpc/svc.h: Likewise.
298         * sunrpc/rpc/svc_auth.h: Likewise.
299         * sunrpc/rpc/types.h: Likewise.
300         * sunrpc/rpc/xdr.h: Likewise.
301         * sunrpc/rpc_clntout.c: Likewise.
302         * sunrpc/rpc_cmsg.c: Likewise.
303         * sunrpc/rpc_common.c: Likewise.
304         * sunrpc/rpc_cout.c: Likewise.
305         * sunrpc/rpc_dtable.c: Likewise.
306         * sunrpc/rpc_hout.c: Likewise.
307         * sunrpc/rpc_main.c: Likewise.
308         * sunrpc/rpc_parse.c: Likewise.
309         * sunrpc/rpc_parse.h: Likewise.
310         * sunrpc/rpc_prot.c: Likewise.
311         * sunrpc/rpc_sample.c: Likewise.
312         * sunrpc/rpc_scan.c: Likewise.
313         * sunrpc/rpc_scan.h: Likewise.
314         * sunrpc/rpc_svcout.c: Likewise.
315         * sunrpc/rpc_tblout.c: Likewise.
316         * sunrpc/rpc_util.c: Likewise.
317         * sunrpc/rpc_util.h: Likewise.
318         * sunrpc/rpcinfo.c: Likewise.
319         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
320         * sunrpc/rpcsvc/key_prot.x: Likewise.
321         * sunrpc/rpcsvc/klm_prot.x: Likewise.
322         * sunrpc/rpcsvc/mount.x: Likewise.
323         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
324         * sunrpc/rpcsvc/rex.x: Likewise.
325         * sunrpc/rpcsvc/rstat.x: Likewise.
326         * sunrpc/rpcsvc/rusers.x: Likewise.
327         * sunrpc/rpcsvc/sm_inter.x: Likewise.
328         * sunrpc/rpcsvc/spray.x: Likewise.
329         * sunrpc/rpcsvc/yppasswd.x: Likewise.
330         * sunrpc/rtime.c: Likewise.
331         * sunrpc/svc.c: Likewise.
332         * sunrpc/svc_auth.c: Likewise.
333         * sunrpc/svc_authux.c: Likewise.
334         * sunrpc/svc_raw.c: Likewise.
335         * sunrpc/svc_run.c: Likewise.
336         * sunrpc/svc_simple.c: Likewise.
337         * sunrpc/svc_tcp.c: Likewise.
338         * sunrpc/svc_udp.c: Likewise.
339         * sunrpc/svc_unix.c: Likewise.
340         * sunrpc/svcauth_des.c: Likewise.
341         * sunrpc/xcrypt.c: Likewise.
342         * sunrpc/xdr.c: Likewise.
343         * sunrpc/xdr_array.c: Likewise.
344         * sunrpc/xdr_float.c: Likewise.
345         * sunrpc/xdr_mem.c: Likewise.
346         * sunrpc/xdr_rec.c: Likewise.
347         * sunrpc/xdr_ref.c: Likewise.
348         * sunrpc/xdr_sizeof.c: Likewise.
349         * sunrpc/xdr_stdio.c: Likewise.
351         * po/da.po: Update from translation team.
353 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
355         * sysdeps/sh/____longjmp_chk.S: New file.
356         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
357         * sysdeps/sh/sh4/__longjmp.S: Likewise.
359 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
360             Ulrich Drepper  <drepper@redhat.com>
362         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
363         (__nscd_cache_search): Assume each entry in the
364         hash chain needs one hashentry and half of datahead.  Use
365         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
367 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
369         * posix/sys/wait.h: Fix typos.  Pretty printing.
370         * stdlib/stdlib.h: Likewise.  Correct comments.
372         [BZ #10159]
373         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
375         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
376         patch.
378 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
380         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
381         Use it if we absolutely cannot reach any more correct list elements
382         because that many do not fit into the currently mapped database.
384 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
386         * nscd/nscd_helper.c: Include stddef.h.
387         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
388         in a couple of places.  Return NULL if trail is not less than
389         datasize, don't consider dataheads with length smaller than
390         offsetof (struct datahead, data) + datalen.
391         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
392         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
393         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
394         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
395         * nscd/nscd_getai.c (__nscd_getai): Likewise.
396         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
397         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
399         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
400         Rename ...
401         (fallocate64): ... to this.
402         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
403         Rename ...
404         (fallocate64): ... to this.
405         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
406         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
407         fallocate64@@GLIBC_2.10.
408         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
409         fallocate64@@GLIBC_2.11.
410         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
412         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
413         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
415         * nscd/selinux.c (nscd_avc_destroy): Removed.
416         * nscd/selinux.h (nscd_avc_destroy): Likewise.
417         * nscd/nscd.c (termination_handler): Don't call
418         nscd_avc_destroy.
420 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
422         * include/atomic.h: Formatting.
423         (catomic_compare_and_exchange_val_acq): Don't define if already
424         defined by bits/atomic.h.
426 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
428         * math/libm-test.inc (expm1_test): Add test for range error.
430         * Versions.def: Add GLIBC_2.11 for libc.
431         * debug/Makefile (routines): Add longjmp_chk.
432         Add rules to build and run tst-longjmp_chk.
433         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
434         * debug/longjmp_chk.c: New file.
435         * debug/tst-longjmp_chk.c: New file.
436         * include/bits/setjmp2.: New file.
437         * include/stdio.h: Mark __fortify_fail as internal_function.
438         * setjmp/Makefile (headers): Add bits/setjmp2.h.
439         * setjmp/bits/setjmp2.h: New file.
440         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
441         of the aliases.
442         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
443         defined.
444         * sysdeps/i386/____longjmp_chk.S: New file.
445         * sysdeps/x86_64/____longjmp_chk.S: New file.
446         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
447         * sysdeps/x86_64/__longjmp.S: Likewise.
449         * version.h: Bump for 2.11 development.
451         * elf/check-execstack.c: New file.
452         * elf/Makefile: Add rules to build and run check-execstack.
454 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
456         * version.h (VERSION): Bump to 2.10.1.
458         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
459         compatibility functions.
460         * nss/getXXent_r.c: Likewise.
461         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
462         * gshadow/getsgnam_r.c: Likewise.
463         * gshadow/Version: Remove duplicate entries.
465         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
466         for recent processor.
467         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
468         Likewise.
470 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
472         * version.h (VERSION): Bump for 2.10 release.
473         * include/features.h (__GLIBC_MINOR__): Bump to 10.
475         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
476         same place we add ASFLAGS-config.
478 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
480         [BZ #10128]
481         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
482         or FORMERR and the other NOERROR, don't raise an error.
484 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
486         [BZ #10118]
487         * Makeconfig (+asflags): New variable based upon ASFLAG or
488         asflags-cpu.
489         (ASFLAGS): Add override to set ASFLAGS to +asflags.
490         * config.make.in (asflags-cpu): Add variable based upon
491         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
492         the assembler.
493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
494         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
495         recognizes power6 instruction set due to passing -mcpu=power6 from
496         --with-cpu=power6 when compiling .S files.
497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
498         Likewise.
499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
500         Likewise.
501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
502         Likewise.
504 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
506         * string/stratcliff.c (do_test): Test for zero length
507         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
508         at the end of the page.
510 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
512         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
514         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
515         count is zero.
517         * po/da.po: Update from translation team.
519 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
521         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
522         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
524 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
526         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
527         and READ_IMPLIES_EXEC.
529 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
531         * po/da.po: Update from translation team.
533 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
535         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
536         comment change.
538 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
540         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
541         to MAP_ANON in PROT_NONE mmap64 call.
542         (open_archive): Likewise.
543         (file_data_available_p): Use mmap64 instead of mremap.
544         (enlarge_archive): Likewise.  Update head if ah->addr changed.
545         Attempt to reserve address space after mmap64 region.
547 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
549         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
550         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
551         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
553         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
554         atanh should set ERANGE.
556         [BZ #10087]
557         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
558         result of lookup to make call to implement STT_GNU_IFUNC.
559         (_dl_profile_fixup): Likewise.
560         Patch by H.J. Lu <hjl.tools@gmail.com>.
562         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
563         warning.
565         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
566         from definition.
568         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
569         label if it is not used.
571         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
572         of gmon_hist_hdr and gmon_hdr structures and use them.
573         * elf/sprof.c: Likewise.
575         * elf/dl-load.c (open_verify): Add temporary variable to avoid
576         warning.
578         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
580         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
581         to avoid cast.
583         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
584         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
585         to avoid warnings.
586         (iruserok_af): Use ss_family instead of casts.
588         * gmon/gmon.c (write_hist): Define real-type variant of
589         gmon_hist_hdr structure and use it.
590         (write_gmon): Likewise for gmon_hdr.
592         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
593         function if we are not going to define it.
594         * sysdeps/unix/sysv/linux/writev.c: Likewise.
596         * inet/inet6_option.c (option_alloc): Add temporary variable to
597         avoid warning.
599         * libio/strfile.h (struct _IO_streambuf): Use correct type and
600         name of VTable element.
601         * libio/iovsprintf.c: Avoid casts to avoid warnings.
602         * libio/iovsscanf.c: Likewise.
603         * libio/vasprintf.c: Likewise.
604         * libio/vsnprintf.c: Likewise.
605         * stdio-common/isoc99_vsscanf.c: Likewise.
606         * stdlib/strfmon_l.c: Likewise.
607         * debug/vasprintf_chk.c: Likewise.
608         * debug/vsnprintf_chk.c: Likewise.
609         * debug/vsprintf_chk.c: Likewise.
611         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
612         function pointers.
614 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
616         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
618 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
620         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
622         * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
623         * sysdeps/i386/fpu/s_tanf.S: Likewise.
624         * sysdeps/i386/fpu/s_tanl.S: Likewise.
625         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
626         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
627         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
628         * math/libm-test.inc: Add tests for errno after tan calls with
629         ±Inf.
631         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
632         errno value vor pow(+-0,neg).
633         * math/libm-test.inc (pow_test): Add tests for errno value for
634         pole errors.
636         * math/w_fmod.c: Also handle x=±Inf as error.
637         * math/w_fmodf.c: Likewise.
638         * math/w_fmodl.c: Likewise.
639         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
640         x=±Inf or y=0.
642         * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
643         * sysdeps/i386/fpu/s_cosf.S: Likewise.
644         * sysdeps/i386/fpu/s_cosl.S: Likewise.
645         * sysdeps/i386/fpu/s_sin.S: Likewise.
646         * sysdeps/i386/fpu/s_sinf.S: Likewise.
647         * sysdeps/i386/fpu/s_sinl.S: Likewise.
648         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
649         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
650         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
651         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
652         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
653         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
654         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
655         * math/libm-test.inc: Add tests for errno after sin/cos calls with
656         ±Inf.
658         * stdlib/strtod_l.c (round_and_return): We have to set errno to
659         ERANGE for underflows.
660         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
662         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
663         the 2001 revision.
665         * libio/tst-widetext.input: Remove surrogates.
667         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
669         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
670         for lgamma should set errno to ERANGE, not EDOM.
671         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
673 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
675         [BZ #10093]
676         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
677         UTF-16 surrogates.
679         * locale/programs/locarchive.c (enlarge_archive): Conserve address
680         space when temporarily mapping the whole content of the old file.
682         [BZ #10100]
683         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
684         not zero.
686 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
688         * iconvdata/sjis.c (BODY): Don't advance inptr before
689         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
690         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
691         two byte chars.
693 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
695         * locale/locarchive.h (struct locarhandle): Rename len field to
696         mmaped and add new reserved field.
697         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
698         (create_archive): Reserve address space and then map file into it.
699         (open_archive): Likewise.
700         (file_data_available_p): New function.
701         (compare_from_file): New function.
702         (close_archive): Adjust to member name changes.
703         (add_locale): Before comparing locale data, check it is mapped.
704         Otherwise fall back to reading from the file.
706 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
708         * stdio-common/psiginfo.c: Include <errno.h>.
710 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
712         [BZ #9920]
713         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
714         to get consistency between 32 and 64 bit architectures.
716         [BZ #10052]
717         * sysdeps/unix/make-syscalls.sh: Add rule to create target
718         directory for dummy syscall rules.
719         Patch by Chris Steinbroner <hesh@pobox.com>.
721 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
723         [BZ #10092]
724         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
725         MNT_EXPIRE.
727 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
729         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
730         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
732 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
734         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
735         data from vector to temporary buffer and call PWRITEV after it
736         instead of vice versa.
737         * sysdeps/posix/preadv.c: Fix up comment.
738         * misc/preadv.c: Likewise.
739         * misc/preadv64.c: Likewise.
740         * misc/pwritev.c: Likewise.
741         * misc/pwritev64.c: Likewise.
742         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
744 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
746         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
748         * shadow/Makefile (tests): Add tst-shadow.
749         * shadow/tst-shadow.c: New file.
751         [BZ #9955]
752         * gshadow/Makefile: New file.
753         * gshadow/Versions: New file.
754         * gshadow/fgetsgent.c: New file.
755         * gshadow/fgetsgent_r.c: New file.
756         * gshadow/getsgent.c: New file.
757         * gshadow/getsgent_r.c: New file.
758         * gshadow/getsgnam.c: New file.
759         * gshadow/getsgnam_r.c: New file.
760         * gshadow/gshadow.h: New file.
761         * gshadow/putsgent.c: New file.
762         * gshadow/sgetsgent.c: New file.
763         * gshadow/sgetsgent_r.c: New file.
764         * gshadow/tst-gshadow.c: New file.
765         * include/gshadow.h: New file.
766         * Makeconfig (all-subdirs): Add gshadow.
767         * Makefile (installed-headers): Add gshadow/gshadow.h.
768         * nss/Makefile (databases): Add sgrp.
769         * nss/Versions: Add gshadow functions as private exports.
770         * nss/nsswitch.conf: Add gshadow entry.
771         * nss/sgrp-lookup.c: New file.
772         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
773         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
774         * nss/nss_files/files-sgrp.c: New file.
775         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
776         * sysdeps/unix/sysv/linux/paths.h: Likewise.
778 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
780         * stdio-common/printf.h: Add missing const to register_printf_modifier.
781         * stdio-common/reg-modifier.c: Likewise.
783 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
785         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
786         is no FPU.
788 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
790         [BZ #10086]
791         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
792         headers up to 2.6.30.
794         * po/ca.po: Update from translation team.
796 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
798         [BZ #10069]
799         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
800         an object that uses static TLS if the TLS modid is higher than the
801         reserve we always allocate.  At least for multi-threaded code.
803 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
805         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
806         Numerically stable check for valid width.
808         * locale/programs/locarchive.c (open_archive): Map the entire file
809         and not just the administrative data.
810         (add_locale): When we find a hash sum match compare the content
811         to be sure.
813         * malloc/malloc.c (malloc_info): Output address space information.
815 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
817         * malloc/malloc.c (malloc_info): Also output system memory information.
819         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
820         architectures have preadv/pwritev in 2.6.30.
822         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
823         * sysdeps/posix/readv.c: Likewise.
824         Reported by Markus Armbruster <armbru@redhat.com>.
826         * malloc/hooks.c (top_check): Force hook value into register.
828 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
830         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
831         calls to _dl_relocate_object.
833 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
835         [BZ #9957]
836         * malloc/malloc.c (force_reg): Define.
837         (sYSMALLOc): Load hook variable into variable
838         before test and force into register.
839         (sYSTRIm): Likewise.
840         (public_mALLOc): Force hook value into register.
841         (public_fREe): Likewise.
842         (public_rEALLOc): Likewise.
843         (public_mEMALIGn): Likewise.
844         (public_vALLOc): Likewise.
845         (public_pVALLOc): Likewise.
846         (public_cALLOc): Likewise.
847         (__posix_memalign): Likewise.
848         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
849         before test and force into register.
850         * malloc/hooks.c (top_check): Likewise.
851         (public_sET_STATe): Pretty printing.
853         * resolv/res_send.c (send_dg): Don't just ignore the result we got
854         in case we only receive one reply in single-request mode.
856 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
858         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
859         are dlopened in statically linked program even for __LM_ID_CALLER.
861 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
863         * resolv/res_send.c (send_dg): Don't switch into single-request
864         mode if we already are in it.
866 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
868         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
869         are always at least 4 bytes in the returned line.
871 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
873         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
874         __libc_use_alloca (8192), if the stack is too small use 512 bytes
875         instead of 8K.  Stop searching in /proc/stat after hitting first
876         line not starting with cpu.
877         (next_line): Truncate too long
878         lines at buffer size * 3/4 instead of pretending there were line
879         breaks inside of large lines.
881 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
883         * sysdeps/x86_64/mp_clz_tab.c: New file.
885 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
886             Ulrich Drepper  <drepper@redhat.com>
888         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
889         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
890         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
892 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
894         * sysdeps/sh/libc-tls.c: New file.
896         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
898 2009-04-14  Roland McGrath  <roland@redhat.com>
900         * elf/elf.h: Add various missing ARM constants, to match binutils.
902 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
904         Optimizations from GMP.
905         * sysdeps/x86_64/add_n.S: New file.
906         * sysdeps/x86_64/addmul_1.S: New file.
907         * sysdeps/x86_64/lshift.S: New file.
908         * sysdeps/x86_64/mul_1.S: New file.
909         * sysdeps/x86_64/rshift.S: New file.
910         * sysdeps/x86_64/sub_n.S: New file.
911         * sysdeps/x86_64/submul_1.S: New file.
913 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
915         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
916         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
917         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
918         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
920 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
922         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
923         preadv/pwritev.
925 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
927         * sysdeps/x86-64/strrchr.S: New file.
929 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
931         * stdio-common/printf.h (struct printf_info): Add user element.
932         New types printf_arginfo_size_function, printf_va_arg_function.
933         Declare register_printf_specifier, register_printf_modifier,
934         register_printf_type.
935         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
936         (union printf_arg): Add pa_user element.
937         Adjust __printf_arginfo_table type.
938         Add __printf_va_arg_table, __printf_modifier_table,
939         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
940         declarations.
941         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
942         If registered arginfo call failed try normal specifier.
943         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
944         function.
945         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
946         * stdio-common/Versions: Export register_printf_modifier,
947         register_printf_type, and register_printf_specifier for GLIBC_2.10.
948         * stdio-common/reg-modifier.c: New file.
949         * stdio-common/reg-type.c: New file.
950         * stdio-common/reg-printf.c (__register_printf_specifier): New
951         function.  Mostly the old __register_printf_function function but
952         uses locking and type of third parameter changed.
953         (__register_printf_function): Implement using
954         __register_printf_specifier.
955         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
956         calls to arginfo functions.  Allocate enough memory for user-defined
957         types.  Call new va_arg functions to get user-defined types.
958         Try installed handlers even for existing format specifiers first.
960 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
962         * sysdeps/x86_64/rawmemchr.S: New file.
964         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
965         Simplified code and possible copy problem fixed.
967         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
968         function if it is not defined.  Add some necessary casts.
969         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
971         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
972         have preadv/pwritev in 2.6.30.
974 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
976         * malloc/malloc.c (malloc_info): New function.
977         * malloc/malloc.h: Declare it.
978         * malloc/Versions: Export malloc_info for GLIBC_2.10.
980         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
981         to avoid PLT slot.
983         * malloc/malloc.c (_int_realloc): Add parameter with old block
984         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
985         Adjust all callers.
986         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
988 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
990         * sysdeps/x86_64/strchrnul.S: New file.
992         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
993         depending libcrypt on -lfreebl3.
995         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
996         preadv/pwritev in 2.6.30.
998         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
999         instead of __strcasecmp.
1001         * string/stratcliff.c (do_test): Add memchr tests..
1002         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
1003         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1004         first read quad word.
1006 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
1008         * string/strverscmp.c (__strverscmp): Fix last cleanups.
1009         * string/tst-svc.input: Add new test case.
1010         * string/tst-svc.expect: Adjust.
1011         * string/Makefile: Don't ignore tst-svc error.
1013         * sysdeps/x86_64/memchr.S: New file.
1015         * resolv/resolv.h (RES_SNGLKUP): Define.
1016         * resolv/res_init.c (res_setoptions): Recognize single-request option.
1017         * resolv/res_send.c (send_dg): If we sent two requests at once and
1018         only get one reply before timeout switch to mode where we send the
1019         second request only after the first answer has been received.
1021 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
1023         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1024         * sysdeps/x86_64/strchr.S: Likewise.
1026 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
1028         * configure.in: We need to test for the compiler earlier.
1030         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1031         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1032         GLIBC_2.10.
1033         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1034         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1035         and pwritev.
1036         * misc/preadv.c: New file.
1037         * misc/preadv64.c: New file.
1038         * misc/pwritev.c: New file.
1039         * misc/pwritev64.c: New file.
1040         * sysdeps/posx/preadv.c: New file.
1041         * sysdeps/posx/preadv64.c: New file.
1042         * sysdeps/posx/pwritev.c: New file.
1043         * sysdeps/posx/pwritev64.c: New file.
1044         * sysdeps/unix/sysv/linux/preadv.c: New file.
1045         * sysdeps/unix/sysv/linux/preadv64.c: New file.
1046         * sysdeps/unix/sysv/linux/pwritev.c: New file.
1047         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1048         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1049         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1051         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1052         compatibility code.
1053         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1055         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1056         __ASSUME_COMPLETE_READV_WRITEV.
1057         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1058         with modern kernels.
1059         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1061         * sysdeps/posix/readv.c: Since read is a cancellation point we have
1062         to free a possible malloced buffer in case of cancellation.
1063         * sysdeps/posix/writev.c: Likewise for write.
1065 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
1067         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1069         * configure.in: Recognize --enable-nss-crypt.
1070         * config.make.in: Add nss-crypt entry.
1071         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1072         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
1073         and include path for NSS directory to compiler for md5-crypt,
1074         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
1075         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1076         function implementation, use NSS.  Introduce wrappers around the
1077         hash function calls.  Little code size optimization.
1078         * crypt/sha256-crypt.c: Likewise.
1079         * crypt/sha512-crypt.c: Likewise.
1080         * scripts/check-local-headers.sh: Ignore nss3 directory.
1082         * configure.in: Rename pic_default to libc_cv_pic_default.
1083         * config.make.in: Likewise.
1085 2009-04-01  Roland McGrath  <roland@redhat.com>
1087         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1088         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1089         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1090         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1091         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1092         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1093         (R_SPARC_NUM): Update.
1094         From Dave Miller <davem@davemloft.net>.
1096 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
1098         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1100 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
1102         * elf/dl-open.c: Keep track of used name spaces and only iterate over
1103         those which are used.
1104         * elf/dl-addr.c: Likewise.
1105         * elf/dl-caller.c: Likewise.
1106         * elf/dl-fini.c: Likewise.
1107         * elf/dl-iteratephdr.c: Likewise.
1108         * elf/dl-libc.c: Likewise.
1109         * elf/dl-load.c: Likewise.
1110         * elf/dl-support.c: Likewise.
1111         * elf/dl-sym.c: Likewise.
1112         * elf/rtld.c: Likewise.
1113         * sysdeps/generic/ldsodefs.h: Likewise.
1115         * elf/dl-load.c: Remove support for systems without MAP_ANON.
1116         * elf/dl-minimal.c: Likewise.
1117         * elf/dl-misc.c: Likewise.
1118         * elf/rtld.c: Likewise.
1119         * sysdeps/generic/ldsodefs.h: Likewise.
1121 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
1123         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1124         Avoid reuse of complex expression.
1126         * po/fr.po: Update from translation team.
1128 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1130         * include/dirent.h: Yet more changes to match sort function type
1131         change.
1132         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1133         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1134         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1136 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
1138         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1140 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1142         * nscd/connections.c (restart): Try to preserve the process name
1143         by reading the /proc/self/exe symlink and using the return name.
1144         Patch by Jeff Bastian <jbastian@redhat.com>.
1146 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
1148         [BZ #9733]
1149         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1150         if we are not loading a new audit library.
1151         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1152         Only use profiling trampoline for auditing if we are not relocating
1153         an audit library.
1154         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1155         * elf/rtld.c: Likewise.
1156         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1158         * elf/rtld.c (dl_main): Extend help message for --audit option.
1160         [BZ #9759]
1161         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1162         alphasort64, versionsort, and versionsort64 to POSIX 2008.
1163         * dirent/alphasort.c: Adjust implementation to type change.
1164         * dirent/alphasort64.c: Likewise.
1165         * dirent/scandir.c: Likewise.
1166         * dirent/versionsort.c: Likewise.
1167         * dirent/versionsort64.c: Likewise.
1168         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1169         declaration.
1170         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1171         declaration.
1173         [BZ #9880]
1174         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
1175         correctly.  Set segleft member in output as required.
1176         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1177         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
1179         [BZ #9881]
1180         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
1181         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1182         * inet/Makefile (tests): Add tst-inet6_rth.
1183         * inet/tst-inet6_rth.c: New file.
1185         [BZ #5807]
1186         * string/strlen.c (strlen): Fix omission in the expression to test
1187         for NUL bytes.
1189 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1191         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1193         * elf/dl-runtime.c (reloc_offset): Define.
1194         (reloc_index): Define.
1195         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1196         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
1197         computing index from reloc_offset.
1198         (_dl_call_pltexit): Likewise.
1199         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1200         the relocation index to _dl_fixup.
1201         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1202         _dl_call_pltexit.
1203         * sysdeps/x86_64/dl-runtime.c: New file.
1205         [BZ #9893]
1206         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
1207         alignment of La_x86_64_regs.  Store xmm parameters.
1208         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1210         [BZ #9913]
1211         * string/strverscmp.c (__strverscmp): Fix case of different digits
1212         in fractional part of string.
1213         Patch by Jingyu Liu <jyliu@fortinet.com>.
1214         * string/Makefile (tests): Add tst-svc2.
1215         * string/tst-svc2.c: New file.
1217         * string/strverscmp.c (__strverscmp): Optimize size of tables.
1219         * locale/iso-639.def: Add Min Nan.
1221 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1223         [BZ #9948]
1224         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1226 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1228         * elf/dl-sysdep.c (auxvars): Compress data structure.
1230         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1231         STT_GNU_IFUNC handling.
1232         (elf_machine_rela): Likewise.
1234 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
1236         * config.h.in (USE_MULTIARCH): Define.
1237         * configure.in: Handle --enable-multi-arch.
1238         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1239         (_dl_fixup_profile): Likewise.
1240         * elf/do-lookup.c (dl_lookup_x): Likewise.
1241         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1242         * elf/elf.h (STT_GNU_IFUNC): Define.
1243         * include/libc-symbols.h (libc_ifunc): Define.
1244         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1245         framework in init-arch.h to get CPUID values.
1246         * sysdeps/x86_64/multiarch/Makefile: New file.
1247         * sysdeps/x86_64/multiarch/init-arch.c: New file.
1248         * sysdeps/x86_64/multiarch/init-arch.h: New file.
1249         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1251         * config.make.in (experimental-malloc): Define.
1252         * configure.in: Handle --enable-experimental-malloc.
1253         * malloc/Makefile: Handle experimental-malloc flag.
1254         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1255         * malloc/arena.c: Likewise.
1256         * malloc/hooks.c: Likewise.
1257         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1259 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
1261         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1262         prediction.  A few size optimizations.
1264 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1266         * time/tzset.c: Optimize a bit for size.
1268 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1270         * include/stdio.h (fmemopen): Add libc_hidden_proto.
1271         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1273         * elf/sprof.c: Avoid warning about multi-line comment.
1275 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1277         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1278         DST name.
1279         * time/tst-posixtz.c: Add tests for quoted timezone names.
1281 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1283         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1284         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1285         200809L instead of 200112L.
1286         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1287         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1289         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1290         instead of __quick_exit_funcs to __run_exit_handlers.
1291         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1292         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1293         (__cxa_at_quick_exit): Remove attribute_hidden.
1294         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1295         to __run_exit_handlers.
1296         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1297         attribute_hidden.
1299 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1301         * po/id.po: Update from translation team.
1303 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
1305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1306         .machine push; .machine "power6" and .machine pop around mtfsf
1307         insns outside of _ARCH_PWR6 define.
1308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1310         Likewise.
1311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1312         Likewise.
1313         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1314         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1315         relax_fenv_state): Likewise.
1317 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
1319         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1320         cxa_at_quick_exit.
1321         (static-only-routines): Add at_quick_exit.
1322         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1323         GLIBC_2.10.
1324         * stdlib/quick_exit.c: New file.
1325         * stdlib/at_quick_exit.c: New file.
1326         * stdlib/cxa_at_quick_exit.c: New file.
1327         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
1328         it appropriately.
1329         (__internal_atexit): New function.
1330         (__new_exitfn): Now takes parameter to point to the list to use.
1331         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1332         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
1333         (exit): ...here.  Just call __run_exit_handlers appropriately.
1334         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1335         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
1336         * stdlib/on_exit.c: Adjust call to __new_exitfn.
1337         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1339         * po/id.po: Update from translation team.
1341 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
1343         * po/ru.po: Update from translation team.
1345 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
1347         * po/nl.po: Update from translation team.
1349 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
1351         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1352         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1353         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1354         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1355         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1356         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1357         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1359         * po/pl.po: Update from translation team.
1361 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1363         [BZ #7083]
1364         * sysdeps/unix/sysv/linux/fallocate.c: New file.
1365         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1366         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1367         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1368         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1369         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1370         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1371         for GLIBC_2.10.
1372         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1373         Add fallocate and fallocate64.
1375         * io/fcntl.h: Pretty printing.
1377 2009-03-02  Richard Guenther  <rguenther@suse.de>
1379         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1380         attribute also for non-C99 inline semantics variant.
1382 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1384         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1385         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1386         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1387         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1389         Likewise.
1390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1391         Likewise.
1393 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1395         * po/cs.po: Update from translation team.
1397 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
1399         * po/bg.po: Update from translation team.
1400         * po/sv.po: Likewise.
1401         * po/fi.po: Likewise.
1402         * po/vi.po: Likewise.
1404 2009-02-27  Roland McGrath  <roland@redhat.com>
1406         * Makeconfig (%.v.i): Depend on Makeconfig.
1407         Exclude % lines from initial #-comment removal.
1409 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
1411         * po/ko.po: Update from translation team.
1413 2009-02-26  Roland McGrath  <roland@redhat.com>
1415         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1416         avoids unused warning.
1418 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
1419             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1421         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1422         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
1423         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1424         and asm/user.h.  Include asm/ptrace.h.
1425         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1426         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1427         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1428         Undefine.
1429         (start_thread): Don't undefine.
1430         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1431         Define.
1433 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
1435         * wctype/wctype.h: The *_l functions are in POSIX 2008.
1436         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1437         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1438         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1439         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1440         200112L to 200809L.
1441         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1442         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1443         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1444         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1445         _SC_THREAD_ROBUST_PRIO_PROTECT.
1446         * posix/unistd.h: fexecve is in POSIX 2008.
1447         * time/time.h: strftime_l is in POSIX 2008.
1448         * io/sys/stat.h: futimens is in POSIX 2008.
1449         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1450         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1451         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1452         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1453         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1454         open_memstream, and vdprintf are in POSIX 2008.
1456 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
1458         * include/features.h: Define macros for XPG7/POSIX 2008.
1459         * ctype/ctype.h: The *_l functions are in POSIX 2008.
1460         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1461         POSIX 2008.
1462         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1463         * locale/xlocale.h: Define locale_t type.
1464         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1465         in POSIX 2008.  Don't define locale_t here.
1466         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1467         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1468         UTIME_OMIT only with __USE_ATFILE.
1469         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1470         * stdio-common/psiginfo.c: New file.
1471         * stdio-common/psiginfo-data.h: New file.
1472         * stdio-common/psiginfo-define.h: New file.
1473         * stdio-common/Makefile (routines): Add psiginfo.
1474         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1475         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1476         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1477         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1478         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1479         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1480         * io/sys/stat.h: Move mknodat definition into same conditional as
1481         mknod.
1482         * time/sys/time.h: futimesat is not among the functions accepted
1483         into the POSIX standard.
1485         * include/features.h: If no feature selection given and we select
1486         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1487         * posix/Versions: Export __posix_getopt.
1488         * posix/getopt.c (_getopt_initialize): Take additional parameter.
1489         Use it to alternatively initialize __posixly_correct.
1490         (_getopt_internal_r): Take addition parameter.  Pass on to
1491         _getopt_initialize.
1492         (_getopt_internal): Take addition parameter.  Pass on to
1493         _getopt_internal_r.
1494         (getopt): Pass additional zero to _getopt_internal.
1495         (__posix_getopt): New function.
1496         * posix/getopt.h: Add redirection for getopt.
1497         * posix/getopt1.c (getopt_long): Pass additional zero to
1498         _getopt_internal.
1499         (getopt_long_only): Likewise.
1500         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1501         (_getopt_long_only_r): Likewise.
1502         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1503         _getopt_internal_r.
1505 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1507         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1508         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1509         * sysdeps/posix/sysconf.c (__sysconf): Handle
1510         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1511         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1513 2009-02-24  Roland McGrath  <roland@redhat.com>
1515         [BZ #9895]
1516         * README.template: Reworded not to use substituted version number.
1517         Renamed to ...
1518         * README: ... here (no longer generated).
1519         * Makefile (README): Target removed.
1521 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1523         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1524         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1525         instead.
1527         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1529         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1531 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
1533         * po/bg.po: Update from translation team.
1535 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
1537         * stdlib/monetary.h: Uglify function parameter names.
1538         * sunrpc/rpc/pmap_clnt.h: Likewise.
1539         * sunrpc/rpc/svc.h: Likewise.
1540         * sunrpc/rpc/xdr.h: Likewise.
1541         * sunrpc/rpc/clnt.h: Likewise.
1542         * resolv/netdb.h: Likewise.
1543         * resolv/arpa/nameser.h: Likewise.
1544         * resolv/resolv.h: Likewise.
1545         * argp/argp.h: Likewise.
1546         * locale/langinfo.h: Likewise.
1547         * io/sys/stat.h: Likewise.
1548         * posix/spawn.h: Likewise.
1549         * nis/rpcsvc/nislib.h: Likewise.
1550         * malloc/obstack.h: Likewise.
1551         * sysdeps/ia64/bits/link.h: Likewise.
1552         * sysdeps/i386/bits/link.h: Likewise.
1553         * sysdeps/s390/bits/link.h: Likewise.
1554         * sysdeps/powerpc/bits/link.h: Likewise.
1555         * sysdeps/x86_64/bits/link.h: Likewise.
1556         * sysdeps/sparc/bits/link.h: Likewise.
1557         * sysdeps/sh/bits/link.h: Likewise.
1558         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1559         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1560         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1561         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1563 2008-12-01  Fredrik Unger  <fred@tree.se>
1565         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1566         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1567         _FP_UNPACK_RAW_2, fix up first argument.
1569 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
1571         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1572         (GET_NPROCS_PARSER): Change parameters and use next_line.
1573         (__get_nprocs): Rewrite to not use stdio routines.
1574         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1575         Change parameters and use next_line.
1577 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
1579         [BZ #5381]
1580         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1581         Change mempool_alloc prototype.
1582         * nscd/mem.c (gc): Don't handle mem_in_flight.
1583         (mempool_alloc): Third parameter now only indicates whether this is the
1584         first call (to allocate data) or not.  If it is, get db rdlock.
1585         Release it on error.  Don't handle mem_in_flight.
1586         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1587         Adjust third parameter of mempool_alloc calls.
1588         Nothing to do here in case mempool_alloc fails.
1589         Avoid local variable shadowing parameter.  No need to get db rdlock
1590         before calling cache_add.
1591         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
1592         no mem_in_flight array anymore.
1593         * nscd/connections.c: Remove definition and handling of mem_in_flight.
1594         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1595         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
1596         in case mempool_alloc fails. No need to get db rdlock before calling
1597         cache_add.
1598         * nscd/hstcache.c (cache_addhst): Likewise.
1599         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1600         * nscd/servicescache.c (cache_addserv): Likewise.
1601         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
1603 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
1605         * po/lt.po: Update from translation team.
1607 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
1609         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1610         defined, allow additional data to be added using the optional
1611         MORE_ELF_HEADER_DATA macro.
1612         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1613         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1615 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
1617         * include/atomic.h: Define catomic_and if not already defined.
1618         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1619         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1621 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
1623         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1624         Change all callers.
1625         (_int_realloc): Likewise.  Third argument is now padded size
1626         All _int_* functions are now static.
1628         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1629         * malloc/arena.c: Likewise.
1630         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1631         functions.
1633         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1634         easily.
1636         * malloc/malloc.c: Add branch prediction for use of the hooks.
1638         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1640 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1642         [BZ #7095]
1643         * bits/confname.h: Add SUSv7 macros for getconf environments.
1644         * bits/environments.h: Likewise.
1645         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1646         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1647         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1648         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1649         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1650         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1651         * posix/getconf.c: Likewise.
1652         * posix/sysconf.c: Likewise.
1653         * sysdeps/posix/sysconf.c: Likewise.
1654         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1655         environments.
1657 2009-01-16  Petr Baudis  <pasky@suse.cz>
1659         [BZ #9753]
1660         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1661         even if we currently have zero nscount.
1663 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1665         [BZ #9781]
1666         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1667         the input line is too long.
1669         * po/Makefile (libc.pot): Add f_print as function taking c-format
1670         parameter.
1672         * debug/xtrace.sh: Unify translatable messages.
1673         * elf/ldd.bash.in: Likewise.
1674         * elf/sprof.c: Likewise.
1675         * locale/programs/locale.c: Likewise.
1676         * malloc/memusage.sh: Likewise.
1677         * nss/getent.c: Likewise.
1679 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
1681         * debug/pcprofiledump.c (print_version,
1682         argp_program_version_hook): New function.
1683         * elf/ldconfig.c (more_help): New function.
1684         (argp): Use it.
1685         * elf/sln.c (usage): New function.
1686         (main): Support --help and --version.
1687         * malloc/memusagestat.c (print_version): New function.
1688         (argp_program_version_hook): New variable.
1689         * nscd/nscd.c (more_help): New function.
1690         (argp): Use it.
1691         * posix/getconf.c (main): Send --version output to stdout.
1692         Support --help.
1693         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1694         arguments.  All callers changed.
1695         (print_version): New function.
1696         (parseargs): Support --help and --version.
1697         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
1698         changed.
1699         (print_version): New function.
1700         (main): Use getopt_long.  Support --help and --version.
1701         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1702         --version.
1704 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1706         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1707         (update_data): Fix handling of wrapping back
1708         to the beginning of the buffer.
1710         [BZ #9823]
1711         * stdio-common/psignal.c (psignal): Fix test for empty string.
1713 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1715         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1716         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1717         move _null_auth to .rodata.
1719         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1720         value of 24.
1722         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1724         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1725         today than when the original code was written.  Use larger
1726         buffers.  This also makes it unnecessary to have stat information,
1727         if this causes extra efforts.
1728         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1729         __alloc_dir.
1731 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1733         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1734         is set.
1735         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1736         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1737         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1738         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1739         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1740         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1742 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1744         * po/ru.po: Update from translation team.
1746 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1748         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1749         Add _tid slot to maintain consistency with kernel.
1751 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1753         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1754         incomplete characters at end of input buffer.
1755         * libio/Makefile (tests): Add tst-fgetwc.
1756         * libio/tst-fgetwc.c: New file.
1757         * libio/tst-fgetwc.input: New file.
1759 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1761         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1763 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1765         [BZ #9793]
1766         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1767         *OUTBUFSTART unless the whole output fit into the buffer.
1768         * iconv/Makefile (tests): Add tst-iconv4.
1769         * iconv/tst-iconv4.c: New file.
1771 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1773         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1774         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1776 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1778         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1779         newer linker scripts.
1781 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1783         [BZ #7040]
1784         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1785         inotify_rm_watch should have type int.
1787 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1789         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1790         Make aligned_restore_vmx a local symbol.
1791         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1792         Likewise.
1794 2009-01-30  Andreas Jaeger  <aj@suse.de>
1796         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1797         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1798         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1799         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1800         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1801         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1802         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1804 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1806         [BZ #9726]
1807         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1808         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1810 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1812         [BZ #9726]
1813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1814         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1816         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1818 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1820         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1821         memcpy instead of memcmp.
1822         (_dl_setup_pointer_guard): Likewise.
1824 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1826         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1827         manipulated brk, use malloc_printerr.
1828         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1829         requests.
1831 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1833         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1834         rindex): For C++ add inlines so that they can be recognized as
1835         builtins.
1836         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1838 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1839             Jakub Jelinek  <jakub@redhat.com>
1841         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1842         * wcsmbs/wchar.h: Likewise.
1844 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1846         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1847         (stackinfo_sub_sp): Define.
1849 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1851         [BZ #9750]
1852         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1853         * include/alloca.h (alloca_account): Define.
1854         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1855         (stackinfo_sub_sp): Define.
1857         * nscd/connections.c (nscd_init): If database file access fails
1858         check whether this is due to permission problems and bail in that
1859         case.
1861         [BZ #9741]
1862         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1863         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1865 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1867         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1868         Add "t" to clobber list.
1869         (INTERNAL_SYSCALL_NCS): Likewise.
1871 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1873         * nss/getent.c (print_networks): Don't print comma between aliases.
1875 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1877         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1879         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1880         the hash table.
1881         * misc/Makefile (tests): Add bug-hsearch1.
1882         * misc/bug-hsearch1.c: New file.
1884 2009-01-22  Roland McGrath  <roland@redhat.com>
1886         * Makeconfig (%.v.i): Strip trailing # comments,
1887         not only whole-line comments.
1889 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1891         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1892         one parameter.  If non-NULL use it to initialize return value.
1893         (_dl_setup_pointer_guard): New function.
1894         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1895         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1896         * elf/rtld.c (security_init): Pass _dl_random to
1897         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1898         pointer_chk_guard.
1899         * elf/dl-sysdep.c (_dl_random): New variable.
1900         (_dl_sysdep_start): Handle AT_RANDOM.
1901         (_dl_show_auxv): Likewise.
1902         * elf/dl-support.c (_dl_random): New variable.
1903         (_dl_aux_init): Handle AT_RANDOM.
1904         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1905         to _dl_setup_stack_chk_guard.
1907         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1909 2009-01-10  Roland McGrath  <roland@redhat.com>
1911         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1913 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1915         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1917         [BZ #9706]
1918         * nss/nss_files/files-parse.c (strtou32): New function.
1919         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1920         across 32-bit and 64-bit platforms.
1921         (INT_FIELD_MAYBE_NULL): Likewise.
1923 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1925         [BZ #9720]
1926         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1927         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1928         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1929         Likewise.
1931 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1933         [BZ #697]
1934         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1935         being NULL also if there are no backreferences.
1936         * posix/rxspencer/tests: Add testcases.
1938 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1940         [BZ #9697]
1941         * posix/bug-regex17.c: Add testcases.
1942         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1943         handling.
1945 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1947         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1948         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1949         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1950         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1951         for elf subdir.
1952         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1953         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1954         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1955         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1956         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1957         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1959 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1961         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1962         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1963         re_string_skip_chars, re_string_reconstruct): Likewise.
1964         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1966 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1968         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1969         adjust the buffer alignment.
1971 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1973         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1974         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1975         net/route.h.
1977         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1978         flavor to description only when flavor is not NULL.
1980         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1981         mutex after SIGIO/SIGURG lookup loop.
1983 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1985         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1987 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1989         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1990         handling.
1992 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1994         * sysdeps/unix/sysv/linux/kernel-features.h
1995         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1997         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1998         if no output is written.
2000         * version.h: Bump to 2.10 development.
2002         * posix/getconf.c: Update copyright year.
2003         * nss/getent.c: Likewise.
2004         * iconv/iconvconfig.c: Likewise.
2005         * iconv/iconv_prog.c: Likewise.
2006         * elf/ldconfig.c: Likewise.
2007         * catgets/gencat.c: Likewise.
2008         * csu/version.c: Likewise.
2009         * elf/ldd.bash.in: Likewise.
2010         * elf/sprof.c (print_version): Likewise.
2011         * locale/programs/locale.c: Likewise.
2012         * locale/programs/localedef.c: Likewise.
2013         * nscd/nscd.c (print_version): Likewise.
2014         * debug/xtrace.sh: Likewise.
2015         * malloc/memusage.sh: Likewise.
2016         * malloc/mtrace.pl: Likewise.
2017         * debug/catchsegv.sh: Likewise.
2019 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
2021         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2022         script.
2024 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
2026         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2027         gethostbyname4_r function call succeeded, just leave the loop.
2029         [BZ #9694]
2030         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2031         very end.
2032         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2033         * wctype/Makefile (tests): Add bug-wctypeh.
2034         * wctype/bug-wctypeh.c: New file.
2036         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2037         LOCALDOMAIN is defined.
2038         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2040         * sysdeps/x86_64/bits/select.h: New file.
2042         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2044 2008-12-21  Bruno Haible  <bruno@clisp.org>
2046         [BZ #9677]
2047         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2048         if no output is written.
2050 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
2052         * login/utmp_file.c (pututline_file): Replace call to dup2 with
2053         libc internal symbol __dup2 to avoid access through the PLT.
2055 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
2057         [BZ #6545]
2058         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2059         available only for __USE_GNU.
2061         * inet/Makefile (tests): Add tst-getni2.
2062         * inet/tst-getni2.c: New file.
2064         [BZ #7080]
2065         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2066         NULL when NI_NAMEREQD is set.
2067         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2068         * inet/Makefile (tests): Add tst-getni1.
2069         * inet/tst-getni1.c: New file.
2071 2008-12-03  Petr Baudis  <pasky@suse.cz>
2073         [BZ #7067]
2074         * nscd/connections.c (invalidate_cache): Use prune_run_lock
2075         instead of prune_lock.
2076         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2077         * nscd/nscd.h (database_dyn): Add prune_run_cache.
2079 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
2081         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2082         use.
2084         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2085         handling.
2087         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2088         after reading name server list.
2090         [BZ #7058]
2091         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2092         handling for host name aliases.
2094 2008-11-24  Arkadiusz Miśkiewicz  <arekm@maven.pl>
2096         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2097         instead of doing things manually.
2099 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
2101         * posix/regex_internal.h (build_wcs_upper_buffer):
2102         Return type is reg_error_t.
2104 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
2106         * posix/globtest.sh: Use mktemp to create temporary file and
2107         directory.
2109         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2110         sets correctly.
2111         (__CPU_CLR_S): Likewise.
2112         (__CPU_ISSET_S): Likewise.
2114 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
2115             Ulrich Drepper  <drepper@redhat.com>
2117         * scripts/firstversion.awk: Use custom comparison function to compare
2118         version numbers.
2119         * scripts/versions.awk: Use sort invocation which can handle
2120         multi-digit sub-version numbers.
2122 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
2124         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2125         * locale/iso-639.def: Add Chhattisgarhi entry.
2127 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
2129         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2130         ESRCH return value.
2131         (_nss_dns_gethostbyname4_r): Likewise.
2132         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2133         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2134         gethostbyname4_r, we don't have a separate IPv6 status, so copy
2135         the no_data variable.
2137         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2138         information at the correct index.
2140         * socket/sys/socket.h: Declare accept4.
2141         * socket/accept4.c: New file.
2142         * sysdeps/unix/sysv/linux/accept4.c: New file.
2143         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2144         * socket/Makefile (routines): Add accept4.
2145         * socket/Versions: Export accept4 with version GLIBC_2.10.
2146         * socket/paccept.c: Removed.
2147         * sysdeps/unix/sysv/linux/paccept.c: Removed.
2148         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2149         * Versions.def: Define GLIBC_2.10 for libc.
2150         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2152         * nscd/connections.c: Use accept4.
2154         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2156 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
2158         * resolv/res_send.c (send_dg): Create sockets with non-blocking
2159         flag already set.
2161         * stdlib/setenv.c (unsetenv): Don't search environment if it does
2162         not exist.
2163         * stdlib/Makefile (tests): Add tst-unsetenv1.
2164         * stdlib/tst-unsetenv1.c: New file.
2166 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
2168         * login/utmp_file.c (file_writable): New variable.
2169         (setutent_file): Don't try to open file for writing.
2170         (pututline_file): Before writing, make descriptor writable if
2171         necessary.
2173 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
2175         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2176         to IPv4 or IPv6 if an interface has been found.
2178 2008-11-26  Roland McGrath  <roland@redhat.com>
2180         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2181         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2183         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
2184         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
2185         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
2187         * elf/elf.h (NT_386_IOPERM): New macro.
2188         (NT_PPC_VSX): New macro.
2190 2008-11-25  Roland McGrath  <roland@redhat.com>
2192         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
2193         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2194         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2195         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2196         Subdirectories moved to ports repository.
2197         * configure.in (base_machine): Remove alpha case.
2199 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
2201         * sysdeps/mach/strerror_l.c: New file.
2203 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
2205         [BZ #6411]
2206         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2207         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2208         magic numbers.
2209         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2210         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2211         (relax_fenv_state): Same as above.
2212         (FPSCR_29): Reserve bit in ISA 2.05.
2213         (FPSCR_NI): Provide define for compat.
2214         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2215         magic numbers.
2216         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2217         magic numbers.
2218         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
2219         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2220         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2221         access to hwcap to account for hwcap size increase to uint64_t.
2222         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2223         Likewise.
2224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2225         (*setcontext): Likewise.
2226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2227         New file.
2228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2229         New file.
2230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2231         (*setcontext): dynamically select mtfsf insn based on
2232         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2233         increase to uint64_t.
2234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2235         (*swapcontext): dynamically select mtfsf insn based on
2236         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
2237         increase to uint64_t.
2238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2239         New file.
2240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2241         New file.
2242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2243         (*setcontext): dynamically select mtfsf insn based on
2244         PPC_FEATURE_HAS_DFP.
2245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2246         (*swapcontext): dynamically select mtfsf insn based on
2247         PPC_FEATURE_HAS_DFP.
2249 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
2251         * version.h: Bump for 2.9 release.
2252         * include/features.h (__GLIBC_MINOR__): Bump to 9.
2254         [BZ #7029]
2255         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2256         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2257         all the rounding.
2259 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
2261         [BZ #7009]
2262         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2263         unknown request types for now.
2265 2008-11-11  Roland McGrath  <roland@redhat.com>
2267         * sysdeps/x86_64/configure: New file.
2269         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2270         * configure: Regenerated.
2272 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2274         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2275         correct instruction to remove the stack frame.
2277 2008-11-03  Michael Matz  <matz@suse.de>
2279         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2280         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2282 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
2284         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2285         Remove.
2287         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2288         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2289         of the thread variable instead of void *.
2290         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2291         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2292         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2293         __libc_tsd_define arguments.
2294         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2295         __libc_tsd_address arguments.  Remove union hack.
2296         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2297         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2298         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2299         Adjust __libc_tsd_{set,get} arguments.
2300         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2301         __libc_tsd_define arguments.
2302         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2303         arguments.
2304         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2305         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2306         (LOCALE): Adjust __libc_tsd_define arguments.
2307         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2308         arguments.
2309         (LOCALE): Adjust __libc_tsd_define arguments.
2310         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2311         arguments.
2312         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2313         arguments.
2315 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
2317         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2318         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2320 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
2322         [BZ #6966]
2323         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2325 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
2326             Ulrich Drepper  <drepper@redhat.com>
2328         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2329         definition for GCC 3.1 and later.
2331 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
2333         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2334         refetch dtv, as it might have changed.
2335         * elf/Makefile: Add rules to build and run tst-tls18.
2336         * elf/tst-tls18.c: New test.
2337         * elf/tst-tlsmod18a.c: New file.
2339 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
2341         [BZ #6875]
2342         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2344 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2346         [BZ #6867]
2347         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2349         [BZ #6919]
2350         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2351         Fix length of copy operation.
2353 2008-10-02  Pierre Habouzit <madcoder@debian.org>
2355         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2356         and fix its calling convention.
2358 2008-10-07  Andreas Schwab  <schwab@suse.de>
2360         [BZ #6942]
2361         * resolv/res_send.c (send_vc): Fix last change.
2362         (send_dg): Align here as well.
2364 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2366         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2367         return value in case rlimit is RLIM_INFINITY.
2369         [BZ #6947]
2370         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2371         for UL_SETFSIZE.
2372         * resource/Makefile (tests): Add bug-ulimit1.
2373         * resource/bug-ulimit1.c: New file.
2375         [BZ #6974]
2376         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2377         without dot.  Properly terminate the string with a null byte.
2378         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2380         [BZ #6980]
2381         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2382         negative sizees.
2383         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2384         negative __size.
2386         [BZ #6995]
2387         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2389 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
2391         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2392         abort if there is no initgroups_dyn function.
2394         * resolv/res_send.c (send_dg): On timeout, only return nonzero
2395         result if any of the queries really provided an answer.
2397 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
2399         * po/lt.po: Update from translation team.
2401 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
2403         * po/id.po: Update from translation team.
2405 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
2407         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2408         Fix tests for existence of second reply.
2410 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
2412         * po/id.po: New file.
2413         Contributed by the Indonesian translation team.
2415 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
2417         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2418         initialization.
2420 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
2422         * elf/Makefile: Add rules to build and run tst-tls17.
2423         * elf/tst-tls17.c: New test.
2424         * elf/tst-tlsmod17a.c: New file.
2425         * elf/tst-tlsmod17b.c: Likewise.
2427 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
2429         * stdlib/divmod_1.c: Use correct type for dummy variable.
2430         * stdlib/mod_1.c: Likewise.
2432 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
2434         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2436 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2438         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2439         __nonnull order for C++.
2440         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2441         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2443 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
2445         * stdlib/longlong.h: Update from GCC.
2447 2008-10-09  Jakub Jelinek <jakub@redhat.com>
2448             David S. Miller  <davem@davemloft.net>
2450         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2451         make sure any registers used with 64-bit 'branch-on-register'
2452         instructions have their top 32-bits clear.
2453         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2454         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2456 2008-09-18  Andreas Schwab  <schwab@suse.de>
2458         [BZ #6942]
2459         * resolv/res_send.c (send_vc): Fix use of unaligned address.
2460         Properly handle partial reads.
2462 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
2464         * elf/elf.h (STO_MIPS_PLT): New.
2465         (R_MIPS_COPY): New.
2466         (R_MIPS_JUMP_SLOT): New.
2467         (R_MIPS_NUM): Redefine to 128.
2468         (DT_MIPS_PLTGOT): New.
2469         (DT_MIPS_RWPLT): New.
2470         (DT_MIPS_NUM): Redefine to 0x35.
2472 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
2474         * timezone/africa: Update from tzdata2008f.
2475         * timezone/asia: Likewise.
2476         * timezone/australasia: Likewise.
2477         * timezone/europe: Likewise.
2478         * timezone/leapseconds: Likewise.
2479         * timezone/northamerica: Likewise.
2480         * timezone/southamerica: Likewise.
2481         * timezone/zone.tab: Likewise.
2483 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
2485         * nscd/connections.c: Disable use of paccept for now.
2487 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
2489         * socket/Versions: Remove paccept export for GLIBC_2.9.
2490         * socket/Makefile (routines): Remove paccept.
2491         * socket/sys/socket.h: Remove paccept declaration.
2493         * po/sv.po: Update from translation team.
2495 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
2497         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2498         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2500 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
2502         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2503         Patch by Olivier Fourdan <ofourdan@redhat.com>.
2505 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
2507         * sunrpc/rpc/svc.h: Declare svcfd_create.
2508         Patch by Michael Solberg <msolberg@redhat.com>.
2510 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
2511             Ulrich Drepper  <drepper@redhat.com>
2513         * malloc/malloc.c (public_vALLOc): Try other arenas in case
2514         _int_valloc fails.
2515         (public_pVALLOc): Likewise.
2517 2008-09-02  Andreas Jaeger  <aj@suse.de>
2519         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2520         commit.
2522 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
2524         [BZ #6860]
2525         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2527 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
2529         * Makefile (check-data): Check data directory in add-ons.
2530         * elf/Makefile (check-data): Likewise.
2532 2008-08-18  Roland McGrath  <roland@redhat.com>
2534         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2535         * configure: Regenerated.
2536         * config.make.in (cflags-cpu): New substituted variable.
2537         (with-cpu): Variable removed.
2538         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2540 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
2542         [BZ #6845]
2543         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2544         __signbitl definition and __LONG_DOUBLE_128__ guard from:
2545         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2546         redundant.  Functions which call floating point assembler operations
2547         should go into a sysdeps powerpc/fpu directory.
2549 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
2551         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2552         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2554 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
2556         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2558         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2559         change related to AT_EXECFN.  We cannot use that string.
2560         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2561         _dl_execfn member.
2562         * elf/dl-support.c: Remove _dl_execfn variable.
2563         (_dl_aux_init): Remove handling of AT_EXECFN.
2564         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2565         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2567 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
2569         [BZ #6544]
2570         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
2571         byte gets added to writes and seeks from the end use the length of
2572         the buffer and not the currently terminating NUL byte.
2574         [BZ #6634]
2575         * login/utmp_file.c (getutent_r_file): Take additional parameter.
2576         Set to true if locking failed.
2577         (getutid_r_file): Adjust caller.
2578         (pututline_file): Likewise.  Return NULL in this case.
2579         Patch mostly by halesh.s@gmail.com.
2581 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
2583         [BZ #6589]
2584         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2585         Define.
2586         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2588 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
2590         [BZ #6839]
2591         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2592         macro since it is now available in elf/dynamic-link.h.
2594 2008-08-12  Roland McGrath  <roland@frob.com>
2596         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2597         in case used outside of libc.
2598         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2600 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
2602         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2603         directly instead of going through dn_comp.
2605 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
2607         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2608         Fix asm constraints.
2610 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2612         [BZ #6790]
2613         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2614         (IPV6_PMTUDISC_PROBE): Likewise.
2616 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
2618         [BZ #6791]
2619         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2621 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
2622             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2624         [BZ #6817]
2625         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2626         Added the members 'vsx' and 'arch_2_06'.
2627         (_dl_powerpc_platforms): Add the member 'power7'.
2628         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2629         to reflect the changes required by VSX and ISA 2.06.
2630         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2631         'power7'.
2632         Defined PPC_PLATFORM_POWER7.
2633         (_dl_string_platform): Add support for POWER7.
2634         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2635         capability and ISA 2.06.
2637 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2639         [BZ #6824]
2640         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2641         macro to detect use of 128 bit long double.
2642         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2644 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2646         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2648         [BZ #5794]
2649         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2650         parameters.
2651         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2652         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2654 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
2656         * nscd/connections.c (main_loop_poll): Pass a buffer which is
2657         guaranteed to be large enough to read inotify event.  Ignore
2658         EAGAIN error.  Better error message.  Add branch predicition.
2659         (main_loop_epoll): Likewise.
2661 2008-08-02  Roland McGrath  <roland@frob.com>
2663         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2664         Add memory clobbers.
2666 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
2668         * manual/arith.texi: Avoid @strong{Note:}.
2669         * manual/creature.texi: Likewise.
2670         * manual/filesys.texi: Likewise.
2671         * manual/math.texi: Likewise.
2672         * manual/memory.texi: Likewise.
2673         * manual/resource.texi: Likewise.
2674         * manual/syslog.texi: Likewise.
2675         * manual/time.texi: Likewise.
2677         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2678         to prevent warning.
2680 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
2682         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2683         new epoll_create1 interface.
2684         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2685         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2686         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2688         * include/arpa/nameser.h (NS_GET16): Use const pointer.
2689         (NS_GET32): Likewise.
2691         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2692         syscalls, too.
2694         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2695         use the AT_EXECFN value if it is no absolute path.
2696         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2697         __ASSUME_AT_EXECFN.
2699         * Versions.def: Add GLIBC_2.9 to libresolv.
2700         * include/resolv.h: Remove hidden proto declarations for __ns_*
2701         functions.  Add them for __dn_count_labels and __p_secstodate.
2702         * include/arpa/nameser.h: Add a number of hidden proto declarations.
2703         Define ns_msg_getflags macro here.
2704         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2705         and __p_secstodate.
2706         * resolv/Versions: Export functions from <arpa/nameser.h> from
2707         libresolv in version GLIBC_2.9.
2708         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2709         hidden definitions.
2710         * resolv/ns_netint.c: Likewise.
2711         * resolv/ns_parse.c: Likewise.
2712         * resolv/ns_print.c: Likewise.
2713         * resolv/ns_samedomain.c: Likewise.
2714         * resolv/ns_ttl.c: Likewise.
2715         * resolv/arpa/nameser_compat.h: Likewise.
2716         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2717         function calls.
2718         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2719         instead of ns_get16.
2720         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2721         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2722         (gaih_getanswer_slice): Likewise.
2723         * resolv/Makefile (libresolv-routines): Add ns_date.
2724         * resolv/ns_date.c: New file.
2726         * elf/Makefile (check-localplt.out): Also check libresolv and
2727         libcrypt.
2729 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2731         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2732         __ASSUME_O_CLOEXEC.
2734 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2736         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2737         buffer passed to NSS functions.
2739         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2741         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2742         Define.
2744         * misc/syslog.c (openlog_internal): Fix compile problem.
2746 2008-07-28  Roland McGrath  <roland@redhat.com>
2748         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2750 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2752         * io/ftw.c (add_object): Remove inline to avoid warning.
2754         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2756         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2757         Use it instead of locally defined resplen2 variable.
2758         (res_nsend): Adjust for __libc_res_nsend interface change.
2759         (send_vc): Initialize *resplen2 if necessary.  Read length of
2760         package into an appropriately aligned variable.  Store converted length
2761         in new variable and use it appropriately.
2762         Add branch prediction help.
2763         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2764         and pass it on to __libc_res_nsend.  Adjust all callers.
2765         (__libc_res_nsearch): Likewise.
2766         (__libc_res_nqeurydomain): Likewise.
2767         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2768         change.
2769         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2770         Define resplen2 variable and pass it to __libc_res_nsearch and then
2771         to gaih_getanswer.
2772         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2773         Add branch prediction.
2774         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2775         (gaih_getanswer): Don't decode second slice if first one failed due
2776         to a too small buffer.  Don't let not found status of second
2777         decoder shadow results of the first.
2778         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2779         and __libc_res_nquery interface changes
2780         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2781         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2782         __libc_res_nsearch, and __libc_res_nsend.
2783         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2784         change.
2785         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2786         __libc_res_nsearch interface changes.
2788 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2790         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2792         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2793         file descriptors with close-on-exec set.
2794         (exec_comm_child): Fix the case where the write end of the pipe is
2795         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2797         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2798         * io/pipe2.c: Likewise.
2799         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2800         instead of __ASSUME_PACCEPT.
2801         * include/unistd.h: Declare __have_pipe2.
2802         * libio/iopopen.c: Implement "e" flag.
2803         * libio/Makefile (tests): Add tst-popen1.
2804         * libio/tst-popen1.c: New file.
2806         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2807         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2809 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2811         [BZ #6771]
2812         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2813         success call of _IO_SEEKOFF or calls which failed because the
2814         descriptor is for a pipe.
2816         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2817         magic number.
2819         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2821         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2822         F_SETFD use if we know fopen set the flag.
2824         * login/utmp_file.c (setutent_file): Minor optimization in case
2825         O_CLOEXEC is available.
2827 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2829         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2830         * elf/Makefile: Use pie-ccflag variable.
2831         * nscd/Makefile: Likewise.
2832         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2834 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2836         [BZ #6724]
2837         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2838         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2839         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2840         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2841         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2842         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2843         utmp32, utmpx32 and login32.
2844         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2845         versions of struct utmp functions to libc and libutil.
2846         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2847         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2848         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2849         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2850         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2851         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2852         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2853         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2854         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2855         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2856         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2857         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2858         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2859         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2860         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2861         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2862         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2863         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2864         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2865         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2866         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2867         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2869 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2871         * scripts/gen-as-const.awk: Generate more widely usable code by
2872         using 64-bit arithmetic.
2874         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2875         the same treatment as narrow output code in last patch.
2877         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2879         [BZ #6763]
2880         * elf/dl-load.c (local_strdup): Remove inline.
2881         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2882         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2883         part of the object.
2885         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2887 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2889         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2890         the new syscalls, too.
2892         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2893         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2895         [BZ #6698]
2896         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2897         parameter for end of buffer.  If temporary copy is too large use
2898         malloc.
2899         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2900         interface change.
2901         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2902         string rewrite when allocating buffer.
2904         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2905         syscalls, too.
2907         * nscd/connections.c (nscd_init): Clean up fcntl call.
2909         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2910         SOCK_NONBLOCK if possible.
2912         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2913         SOCK_CLOEXEC if available.
2915         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2916         __libc_clntudp_bufcreate_internal.
2917         * include/sys/socket.h: Declare __have_sock_cloexec.
2918         * socket/Makefile (aux): Add have_sock_cloexec.
2919         * socket/have_sock_cloexec.c: New file.
2920         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2921         __libc_clntudp_bufcreate.
2922         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2923         which takes an additional parameter.  Create socket with non-blocking
2924         mode and close-on-exec flag set, if wanted.
2925         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2926         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2927         instead of clntudp_create.  The socket has already the close-on-exec
2928         flag set if SOCK_CLOEXEC is defined.
2930 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2932         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2933         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2934         appropriate.
2935         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2936         non-blocking mode by using socket, paccept, and inotify_init1.
2938         * Versions.def (glibc): Add GLIBC_2.9.
2939         * io/Makefile (routines): Add dup3 and pipe2.
2940         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2941         * io/dup3.c: New file.
2942         * io/pipe2.c: New file.
2943         * posix/unistd.h: Declare dup3 and pipe2.
2944         * socket/Makefile (routines): Add paccept.
2945         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2946         * socket/paccept.c: New file.
2947         * socket/sys/socket.h: Declare paccept.
2948         * sysdeps/unix/syscalls.list: Add entry for dup3.
2949         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2950         epoll_create2 and inotify_init1.
2951         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2952         * sysdeps/unix/sysv/linux/paccept.c: New file.
2953         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2954         possible.
2955         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2956         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2957         inotify_init1, and pipe2 entries.
2958         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2959         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2960         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2961         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2962         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2963         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2964         SOCK_NONBLOCK.
2965         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2966         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2967         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2968         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2969         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2970         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2971         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2972         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2973         EPOLL_NONBLOCK.  Declare epoll_create2.
2974         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2975         EFD_NONBLOCK.
2976         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2977         IN_NONBLOCK.  Declare inotify_init1.
2978         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2979         SFD_NONBLOCK.
2980         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2981         TFD_NONBLOCK.
2983         * elf/elf.h: Define AT_EXECFN.
2984         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2985         LD_ORIGIN_PATH.
2986         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2987         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2988         if __ASSUME_AT_EXECFN is defined.
2989         (_dl_aux_init): Handle AT_EXECFN.
2990         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2991         for 2.6.27 and up.
2992         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2993         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2994         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2995         _dl_execfn if available and avoid compatibility code if
2996         __ASSUME_AT_EXECFN is defined.
2998         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2999         _dl_discover_osversion only for older kernels.
3001 2008-07-22  Roland McGrath  <roland@frob.com>
3003         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3005 2008-07-21  Roland McGrath  <roland@frob.com>
3007         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3008         returned too much data out of line.
3010 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
3012         * locale/setlocale.c (setname): Remove inline to avoid compiler
3013         warning.
3015         [BZ #6712]
3016         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3018 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
3020         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3021         doesn't manage to write anything, fail.
3023         * malloc/hooks.c (__malloc_check_init): Remove printf.
3025 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3027         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3029 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
3031         * nscd/connections.c (main_loop_poll): Fix handling of read errors
3032         from inotify.
3033         (main_loop_epoll): Likewise.
3035 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
3037         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3039         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3040         if DEBUG is defined.
3042         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3043         query.  Adjust buffer size computation for padding.
3045 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
3047         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3048         * stdio-common/tst-setvbuf1.c: New file.
3049         * stdio-common/tst-setvbuf1.expect: New file.
3051         [BZ #6719]
3052         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3053         when selecting fully-buffered stream.
3054         Patch by Wang Xin <wxinee@gmail.com>.
3056 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3058         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3059         (__open_2): New function.
3060         (__open64_2): New alias to __open_2.
3061         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3062         (__openat_2): New function.
3063         (__openat64_2): New alias to __openat_2.
3065 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
3067         [BZ #6723]
3068         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3070 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3072         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3073         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3074         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3075         __hurd_dfail.
3076         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3077         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3078         * sysdeps/mach/hurd/send.c (__send): Likewise.
3079         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3080         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3082 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3084         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3085         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3086         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3087         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3088         * hurd/get-host.c (_hurd_get_host_config): Likewise.
3089         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3091 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
3093         [BZ #6657]
3094         * time/strptime_l.c: Don't clear s.era_cnt after successful match
3095         of %EY.
3096         Patch by Petr Baudis.
3098 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
3100         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
3101         Patch by Peter Jones <pjones@redhat.com>.
3103 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3105         [BZ #6654]
3106         * stdlib/canonicalize.c (__realpath): readlink can write too much
3107         into the buffer on platforms without PATH_MAX.
3109 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
3111         [BZ #6653]
3112         * posix/tst-regex.c (main): Rename to...
3113         (do_test): ... this. Remove cmdline option processing.
3114         (TIMEOUT): Define.
3115         (TEST_FUNCTION): Define.
3116         (CMDLINE_OPTIONS): Define.
3118 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3120         [BZ #5210]
3121         * configure.in: Add -Werror to -fstack-protector test to catch
3122         unsupported architectures.
3123         Patch by Gilles Esponasse <g.esp@free.fr>.
3125 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
3127         * stdlib/tst-setcontext.c: Set back_in_main before exit if
3128         getcontext returns ENOSYS.
3130 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
3132         * nscd/connections.c (main_loop_poll): Fix test for read error.
3133         (main_loop_epoll): Likewise.
3135 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
3137         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3138         better place so it is not called when nscd is used.
3140         * nscd/connections.c: Also recognize and handle changes to the
3141         resolver configuration file.
3143 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3145         * time/strftime.c: Pass reference to tzset_called around to handle
3146         recursive calls.
3148         [BZ #6612]
3149         * time/strftime.c (__strftime_internal): Call tzset() only
3150         when printing timezone-dependent values.
3151         Based on a patch by Petr Baudis <pasky@suse.cz>.
3153         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3154         unconditionally use second gaih_getanswer_slice result.
3156         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3157         (getaddrinfo): RES must always be non-NULL.
3159 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3161         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3162         cr[34] registers.
3163         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3164         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3165         Likewise.
3166         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3167         register.
3169 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3171         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3172         fields.
3173         * nscd/connections.c (inotify_fd): New variable.
3174         (nscd_init): Try to open an inotify descriptor.
3175         If successful, watch files for databases using inotify instead of
3176         having prune threads stat the files.
3177         (nscd_run_prune): Recognize clear_cache flag being set and call
3178         prune_cache appropriately.
3179         (main_loop_poll): Add inotify descriptor to wait set and handle the
3180         reported changes.
3181         (main_loop_epoll): Likewise.
3182         * nscd/cache.c (prune_cache): Don't stat files for databases if
3183         inotify is used.
3184         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3185         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3187         * nscd/grpcache.c (cache_addgr): Correctly compute size of
3188         fixed-size portion of the record.
3189         * nscd/servicescache.c (cache_addserv): Likewise.
3190         * nscd/pwdcache.c (cache_addpw): Likewise.
3191         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3193 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
3195         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3196         out we don't use uninitialized memory.
3198         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3199         the client.
3201 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
3203         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3204         ignore T_DNAME messages.
3205         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3207 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
3209         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3210         Avoid segfault if first GETC returns eof/'\0'/'\n'.
3212 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
3214         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3215         instead of portstr to nscd_getserv_r.  Patch by
3216         Roman Kagan <rkagan@mail.ru>.
3218 2008-05-26  Jim Meyering  <meyering@redhat.com>
3220         Remove more useless "if" tests before "free".
3221         * include/inline-hashtab.h (htab_delete): Likewise.
3222         * libio/freopen.c (freopen): Likewise.
3223         * libio/freopen64.c (freopen64): Likewise.
3224         * locale/programs/ld-collate.c (collate_read): Likewise.
3225         * misc/fstab.c (libc_freeres_fn): Likewise.
3226         * posix/glob.c (globfree): Likewise.
3228 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3230         * string/Makefile (strop-tests): Add memmem.
3231         * string/test-memmem.c: New file.
3232         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3233         (test_init): Size buf1 according to BUF1PAGES.
3235 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
3237         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3238         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3239         (CFLAGS-scanf17.c): New.
3240         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3241         * stdio-common/scanf15.c (main): Likewise.
3242         * stdio-common/scanf16.c: New file.
3243         * stdio-common/scanf17.c: New file.
3245 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3247         * resolv/res_send.c (send_dg): If we already have one of two
3248         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
3249         use the one answer insted of failing.
3251 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
3253         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3254         being executed on PowerPC as the expected result exceeds IBM
3255         long double 128 __LDBL_MAX__.
3257 2008-05-21  Roland McGrath  <roland@redhat.com>
3259         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3261         * Makefile (check-data): Use $(abi-name) before other guesses.
3262         Look in $(add-ons) dirs before scripts/data/.
3263         * elf/Makefile (check-data): Likewise.
3265         * scripts/soversions.awk: Grok ABI line.
3266         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3267         Emit definition for abi-name variable.
3269 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
3271         * string/endian.h: Define new fixed-size hto* and *toh macros only
3272         if [__USE_BSD].
3274         * iconvdata/Depend: Add localedata.
3276 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3278         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3280 2008-05-08  David S. Miller  <davem@davemloft.net>
3282         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3283         HIDDEN_JUMPTARGET.
3284         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3285         (__SYSCALL_CLOBBERS): Remove %g* registers.
3286         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3287         (__SYSCALL_CLOBBERS): Likewise.
3288         * scripts/data/localplt-sparc-linux-gnu.data: New file.
3289         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3291 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
3293         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3294         (CALL_ERRNO_LOCATION): Define.
3295         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3296         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3297         (CALL_ERRNO_LOCATION): Define.
3298         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3299         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3300         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3302 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
3304         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3305         variable.
3307 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
3309         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3310         (FIRST_FRAME_POINTER): Define.
3312 2008-05-09  David S. Miller  <davem@davemloft.net>
3314         * sysdeps/sparc/sparc64/backtrace.c: New file.
3316 2008-05-14  David S. Miller  <davem@davemloft.net>
3318         * sysdeps/sparc/machine-gmon.h: New file.
3319         * sysdeps/sparc/sparc-mcount.S: Likewise.
3320         * sysdeps/sparc/Makefile: Add sparc-mcount target to
3321         sysdep_routines in gmon directory.
3323 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
3325         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3327 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
3329         * resolv/res_query.c (__libc_res_nquery): In case one of two
3330         answer was too short don't try to read that answer's header.
3332         * resolv/res_send.c (send_dg): In case of timeout and there are
3333         two queries and one has been answered, return value indicating
3334         success.
3336 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
3338         * nscd/cache.c (cache_add): Take additional parameter specifying
3339         whether this is in response of a cache refill.  Check alignment
3340         of package data.  Revamp waking of pruning thread.
3341         (prune_cache): Small optimization.
3342         * nscd/nscd.h: Adjust cache_add prototypes.
3343         * nscd/aicache.c: Adjust cache_add calls.
3344         * nscd/grpcache.c: Likewise.
3345         * nscd/hstcache.c: Likewise.
3346         * nscd/initgrcache.c: Likewise.
3347         * nscd/pwdcache.c: Likewise.
3348         * nscd/servicescache.c: Likewise.
3349         * nscd/connections.c (restart): Really disable cache use before
3350         exec attempt.  If it fails, reenable cache.
3351         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
3352         time to max to be able to notice concurrent cache additions.  Unlock
3353         prune_lock while performing gc.  Afterwards compute wakeup time with
3354         current wakeup_time value in mind.
3356 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
3358         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3360         * nscd/mem.c (gc): Correctly determine highest used array element
3361         in mark.
3363         * nscd/mem.c (markrange): Add assert to check entries are all
3364         aligned.  Small cleanup in bitmap use.
3366         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3367         blockoff of type nscd_ssize_t.
3368         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3369         (mempoll_alloc): Record block offset and not address.
3371         * nscd/mem.c (gc): Fix test for stack overuse.
3373         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3374         more asserts.
3376         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3377         entry is available, believe it.
3379         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3380         no answers return NSS_STATUS_NOTFOUND.
3381         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3382         buffer does not have any content.
3384 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
3386         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3388         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3389         lookup, don't assign canon unconditionally.
3391 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3393         * string/Makefile (distribute): Add str-two-way.h.
3395 2008-03-29  Eric Blake  <ebb9@byu.net>
3397         Rewrite string searches to O(n) rather than O(n^2).
3398         * string/str-two-way.h: New file.  For linear fixed-allocation
3399         string searching.
3400         * string/memmem.c: New implementation.
3401         * string/strstr.c: New implementation.
3402         * string/strcasestr.c: New implementation.
3404 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
3406         * posix/regcomp.c (optimize_utf8): Add a note on why we test
3407         opr.ctx_type.
3408         (calc_first): Initialize constraint field.
3409         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3410         Use search_duplicated_node to avoid loops.  Fix grammar.
3411         (duplicate_node): Merge constraint field for all node types.
3412         (calc_eclosure_iter): Look at constraint field for all node types.
3413         * posix/regex_internal.c (create_cd_newstate): Don't look at
3414         create_cd_newstate.
3416 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3418         [BZ #6428]
3419         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3421         [BZ #6442]
3422         * string/endian.h: Add macros for fixed-size endian conversion.
3423         * bits/byteswap.h: Allow inclusion from <endian.h>.
3424         * sysdeps/i386/bits/byteswap.h: Likewise.
3425         * sysdeps/ia64/bits/byteswap.h: Likewise.
3426         * sysdeps/s390/bits/byteswap.h: Likewise.
3427         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3428         * string/Makefile (tests): Add tst-endian.
3429         * string/tst-endian.c: New file.
3431         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3432         Patch by Reuben Thomas.
3434 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
3436         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3438 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3440         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3442         [BZ #6461]
3443         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3444         Add missing braces.
3445         (BODY for __gconv_transform_internal_ascii): Likewise.
3447         [BZ #6472]
3448         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3449         to be treated like link-local addresses.
3450         (match_prefix): Don't treat IPv4 loopback address special when
3451         converting to v4 mapped addressed.
3453         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3454         if necessary.
3455         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3456         * posix/tst-rfc3484-2.c: Likewise.
3457         * posix/tst-rfc3484-3.c: Likewise.
3459         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3460         and SCTP.
3462         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3464         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3466         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3468 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
3470         * po/lt.po: New file.  From Lituanian translation team.
3472 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
3474         Introduce TLS descriptors for i386 and x86_64.
3475         * include/inline-hashtab.h: New file, copied from 2005's
3476         libiberty, with fix for memory leak imported afterwards by
3477         Glauber de Oliveira Costa.
3478         * elf/tlsdeschtab.h: New file.
3479         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3480         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
3481         (CHECK_STATIC_TLS): Move to...
3482         * elf/dynamic-link.h: ... this file.
3483         (TRY_STATIC_TLS): New macro.
3484         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3485         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3486         R_386_TLS_DESC): Define.
3487         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3488         binutils.
3489         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3490         R_X86_64_TLSDESC): Define.
3491         (R_386_NUM, R_X86_64_NUM): Adjust.
3492         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3493         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3494         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3495         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3496         release tlsdesc_table.
3497         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3498         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3499         (elf_machine_rel): Handle R_386_TLS_DESC.
3500         (elf_machine_rela): Likewise.
3501         (elf_machine_lazy_rel): Likewise.
3502         (elf_machine_lazy_rela): Likewise.
3503         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3504         * sysdeps/i386/dl-tlsdesc.S: New file.
3505         * sysdeps/i386/dl-tlsdesc.h: New file.
3506         * sysdeps/i386/tlsdesc.c: New file.
3507         * sysdeps/i386/tlsdesc.sym: New file.
3508         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3509         tlsdesc_table.
3510         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3511         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3512         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3513         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3514         release tlsdesc_table.
3515         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3516         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3517         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3518         (elf_machine_rel): Handle R_X86_64_TLSDESC.
3519         (elf_machine_rela): Likewise.
3520         (elf_machine_lazy_rel): Likewise.
3521         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3522         (__tls_get_addr): Do not declare for non-shared compiles.
3523         * sysdeps/x86_64/dl-tlsdesc.S: New file.
3524         * sysdeps/x86_64/dl-tlsdesc.h: New file.
3525         * sysdeps/x86_64/tlsdesc.c: New file.
3526         * sysdeps/x86_64/tlsdesc.sym: New file.
3527         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3528         tlsdesc_table for both 32- and 64-bit structs.
3530 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3532         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3533         its own function.  This reduces the frame setup costs and more.
3535 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
3537         [BZ #3406]
3538         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3539         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3541 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3543         * io/openat.c (__openat_2): Also pass fd to __openat.
3544         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3545         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3547         * string/tester.c (test_memcmp): Add a few more tests.
3548         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3550 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3552         * nscd/cache.c (cache_add): Before returning with failure and this
3553         is the first use of the record, mark it as unusable.
3554         * nscd/aicache.c: Don't touch the dataset after cache_add returns
3555         reporting a failure.
3556         * nscd/grpcache.c: Likewise
3557         * nscd/hstcache.c: Likewise.
3558         * nscd/initgrcache.c: Likewise.
3559         * nscd/pwdcache.c: Likewise.
3560         * nscd/servicescache.c: Likewise.
3562 2008-05-10  Roland McGrath  <roland@redhat.com>
3564         [BZ #6505]
3565         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3567 2008-05-08  David S. Miller  <davem@davemloft.net>
3569         * misc/truncate64.c (truncate64): Use __truncate not truncate.
3571         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3572         (__ieee754_y0l): Likewise.
3573         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3574         (__ieee754_y1l): Likewise.
3575         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3576         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3577         frexpl and ldexpl.  math_private.h provides them and the latter
3578         is not even used.
3579         (__log1pl): Use __frexpl.
3581 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3583         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3584         prototypes.
3585         * include/arpa/nameser_compat.h: Define T_UNSPEC.
3586         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3587         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3588         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3589         af==AF_UNSPEC.
3590         (_nss_nis_gethostbyname4_r): New function.
3591         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3592         Change to also handle af==AF_UNSPEC.
3593         (get_tablename): New function.  Use it to avoid duplication.
3594         (_nss_nisplus_gethostbyname4_r): New function.
3595         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3596         available.
3597         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3598         * nss/nss.h: Define struct gaih_addrtuple.
3599         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3600         af==AF_UNSPEC.
3601         (_nss_files_gethostbyname4_r): New function.
3602         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3603         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3604         calls.
3605         * resolv/res_query.c (__libc_res_nquery): Take two additional
3606         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
3607         look up IPv4 and IPv6.
3608         Change all callers.
3609         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3610         for an additional query and answer buffer.  Pass to send_vc and
3611         send_dg.
3612         (send_vc): Send possibly two requests and receive two answers.
3613         (send_dg): Likewise.
3614         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3615         __libc_res_nquery.
3616         (_nss_dns_gethostbyname4_r): New function.
3617         (gaih_getanswer_slice): Likewise.
3618         (gaih_getanswer): Likewise.
3619         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3620         __libc_res_nquery call.
3621         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3622         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3623         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3624         available.
3626 2008-05-05  David S. Miller  <davem@davemloft.net>
3628         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3629         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3631 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3633         Fix termios bit macros.
3634         Move *DLY definitions where they belong, in termios.h.
3635         Add *[0-3] definitions.
3636         Fixes confusion between VT and FF.
3637         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3638         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3639         are already defined to avoid collision with termios.h.
3640         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3641         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3642         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3643         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3644         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3645         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3646         VTDLY, VT0, VT1): New macros.
3647         [__USE_GNU] (OLCUC): Change value of macro.
3648         [__USE_XOPEN] (OFILL): New macro.
3649         [__USE_BSD] (CRTSCTS): Change value.
3650         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3651         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3652         (B7200, B14400, B28800, B76800): New macros.
3654 2008-05-01  David S. Miller  <davem@davemloft.net>
3656         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3657         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3658         (gen-as-const-headers): Add it.
3659         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3660         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3661         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3662         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3664         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3665         six system call parameters.
3666         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3668 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
3670         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3671         RUSAGE_LWP.
3672         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3673         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3675 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
3677         * stdlib/tst-setcontext.c: Include unistd.h.
3679 2008-04-25  David S. Miller  <davem@davemloft.net>
3681         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3682         Pass "union semun" properly in to sys_ipc, it must be passed
3683         by value, not by reference.
3685 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
3687         * nscd/Makefile (nscd-cflags): Set back to -fpie.
3688         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3689         * nscd/connections.c (mem_in_flight): Likewise.
3691         * nscd/nscd.h (dbs): Make hidden.
3693         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3694         Avoid returning -1, return 0 instead.
3696 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
3698         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3700 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
3702         [BZ #5209]
3703         * sysdeps/unix/sysv/linux/times.c: New file.
3705         [BZ #5381]
3706         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3707         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3708         prototype.
3709         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3710         appropriate mem_in_flight element.
3711         (gc): Take allocations which have not yet been committed to the
3712         database into account.
3713         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3714         Reset mem_in_flight before returning.
3715         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3716         cue it up in mem_in_flight_list.
3717         * nscd/aicache.c: Adjust mempool_alloc call.
3718         * nscd/grpcache.c: Likewise.
3719         * nscd/hstcache.c: Likewise.
3720         * nscd/initgrcache.c: Likewise.
3721         * nscd/pwdcache.c: Likewise.
3722         * nscd/servicescache.c: Likewise.
3723         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3724         of -fpie.
3726         * nscd/connections.c (handle_request): Provide better error message
3727         in case SELinux forbids the service.
3729         * version.h (VERSION): Bump to 2.8.90.
3731 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3733         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3735 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3737         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3738         Also use for 32-bit.
3739         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3740         __nextafter instead of nextafter to avoid local PLT.
3741         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3742         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3744         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3746         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3747         __fe_nomask_env.
3748         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3749         <fenv_libc.h> instead of <fenv.h>.
3750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3753         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3755         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3756         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3757         function from fegetexcept and make old name weak alias.
3758         * include/fenv.h: Declare __fegetexcept.
3759         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3760         fegetexcept.
3761         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3762         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3763         to fetestexcept.
3764         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3765         instead of frexpl to avoid local PLT.
3766         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3767         ilogbl to avoid local PLT.
3768         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3769         instead of ldexpl to avoid local PLT.
3770         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3771         __roundl not roundl to avoid local PLT.
3772         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3773         local PLTs.  Use __sincosl instead of separate sinl and cosl
3774         calls.
3775         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3777         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3778         version for ppc64 to 2.4.21 since without it makecontext will fail.
3780         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3781         to the ABI in use.
3782         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3783         .__tls_get_addr.
3784         [__powerpc64__] (TLS_GD): Likewise.
3786 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3788         [BZ #4997]
3789         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3790         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3791         mantissa.
3792         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3793         Likewise.  Also account for when x is an odd number between 2^52
3794         and 2^53-1.
3795         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3796         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3797         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3798         detect aforementioned erroneous conditions.
3800 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3802         * configure.in: Check for -fno-section-anchors in addition to
3803         -fno-toplevel-reorder.
3805 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3807         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3809         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3810         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3811         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3812         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3813         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3814         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3816 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3818         [BZ #5443]
3819         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3820         * time/alt_digit.c: Likewise.
3821         * wcsmbs/wcsmbsload.c: Likewise.
3823 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3825         * version.h (VERSION): Bump to 2.8.
3827         * timzeone/asia: Update from tzdata2008b.
3828         * timezone/backward: Likewise.
3829         * timezone/europe: Likewise.
3830         * timezone/northamerica: Likewise.
3831         * timezone/southamerica: Likewise.
3832         * timezone/iso3166.tab: Likewise.
3833         * timezone/leapseconds: Likewise.
3834         * timezone/zone.tab: Likewise.
3835         * timezone/private.h: Update from tzcode2008a.
3836         * timezone/zdump.c: Likewise.
3837         * timezone/zic.c: Likewise.
3839 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3841         [BZ #5741]
3842         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3843         Define additonal Data Cache Block instruction macros.
3844         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3845         Replace dcbst with dcbf and sync with sync/isync.
3847 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3849         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3850         Always set ELF_RTYPE_CLASS_PLT.
3851         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3853 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3855         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3856         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3857         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3858         For ISA 2.01 and later replace mftb with mfspr 268.
3860 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3862         [BZ #5768]
3863         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3864         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3866 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3868         [BZ #5768]
3869         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3870         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3871         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3872         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3874 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3876         * stdlib/tst-makecontext.c (othervar): New variable.
3877         (cf): Test sign extending the argument to long.
3879 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3881         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3882         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3883         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3884         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3885         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3886         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3887         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3889 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3891         * elf/Makefile (tests): Substitute tests-vis-yes here.
3892         (tests-vis-yes): Delete.
3893         (modules-name, modules-vis-yes): Similarly.
3895 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3897         [BZ #4407]
3898         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3899         Preserve sign in signgamp when x is zero.
3901 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3903         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3904         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3905         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3906         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3907         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3908         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3910 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3912         [BZ #4314]
3913         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3914         buffers.
3916         [BZ #5209]
3917         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3918         a reserved error value.
3920         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3921         value to check for correct sign extension.
3923         [BZ #5436]
3924         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3925         Copy 64-bit parameter values even though this is not required in
3926         the standard.
3928         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3929         PC save.
3931 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3933         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3934         PC save.
3936 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3938         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3940 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3942         [BZ #5998]
3943         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3944         in line-buffered stream failed.
3945         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3947 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3949         [BZ #6024]
3950         * scripts/abi-versions.awk: If the version specified by
3951         --enable-oldest-abi is older than the first version for this
3952         architecture, use the default version.
3954         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3955         as well when ignoring the whole category.
3957 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3959         [BZ #6042]
3960         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3961         ETHERTYPE_* definitions.
3962         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3964 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3966         * stdlib/mbtowc.c (__no_r_state): Remove.
3967         (mbtowc): New static state variable.  Use it instead of
3968         __no_r_state.
3969         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3970         (__wctomb_state): New hidden variable.
3971         (wctomb): Use __wctomb_state instead of __no_r_state.
3972         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3973         (__wctomb_state): New extern decl.
3974         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3976 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3978         [BZ #5475]
3979         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3981 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3983         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3985 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3987         * po/nl.po: Update from translation team.
3989 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3991         [BZ #6007]
3992         * string/strfry.c: Handle empty strings again.
3994 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3996         [BZ #5443]
3997         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3998         before looking for translation.
3999         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4000         * locale/freelocale.c: Likewise.
4001         * locale/newlocale.c: Likewise.
4002         * locale/setlocale.c: Likewise.
4003         Based partially on a patch by ryo@np.css.fujitsu.com.
4005 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
4007         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4008         acquiring wrlock.  Do conv_tab allocation while holding lock.
4009         * intl/Makefile: Add rules to build and run tst-gettext6.
4010         * intl/tst-gettext6.c: New test.
4011         * intl/tst-gettext6.sh: New file.
4013 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4015         * po/nl.po: Update from translation team.
4017         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4018         provided through st_blksize, try the default size before giving up.
4020 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
4022         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4024         [BZ #5939]
4025         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4027         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4028         error message.  POSIX today does not require the messages to be in
4029         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
4031         [BZ #5979]
4032         * sunrpc/auth_unix.c: Unify printed strings.
4033         * sunrpc/clnt_tcp.c: Likewise.
4034         * sunrpc/clnt_udp.c: Likewise.
4035         * sunrpc/clnt_unix.c: Likewise.
4036         * sunrpc/svc_tcp.c: Likewise.
4037         * sunrpc/svc_udp.c: Likewise.
4038         * sunrpc/svc_unix.c: Likewise.
4039         * sunrpc/xdr.c: Likewise.
4040         * sunrpc/xdr_array.c: Likewise.
4041         * sunrpc/xdr_rec.c: Likewise.
4042         * sunrpc/xdr_ref.c: Likewise.
4043         * locale/programs/ld-time.c (time_finish): Unify messages.
4044         * locale/programs/locfile.c (handle_copy): Fix typo.
4045         * nscd/nscd.c (options): Fix typo.
4047         [BZ #5995]
4048         * stdlib/strtod_l.c: Use correct sign for result in one more
4049         underflow case.
4050         Patch by Eric Blake <ebb9@byu.net>.
4052 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
4054         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4055         and creat system calls.
4056         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4057         call.
4058         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4059         system calls.
4060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4061         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4062         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4064 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
4066         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4067         <linux/limits.h> has defined it.
4068         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4069         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4070         headers.
4071         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4072         it instead of ARG_MAX.
4074 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
4076         * posix/gai.conf: Fix comment for scope nullbits.
4077         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4078         default to 128 bits for v4 mapped addresses.
4080 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4082         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4083         ptrace call to get the ieee_instruction_pointer from the kernel.
4084         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4085         ptrace call to set the ieee_instructtion_pointer.
4086         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4087         Add comment that ieee_instruction_pointer is always 0.
4089 2008-03-09  Andreas Jaeger  <aj@suse.de>
4091         [BZ #5857]
4092         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4093         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4094         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4096         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4097         (rint_test): Likewise.
4099 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
4101         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4102         call.
4103         (__nisfind_server): Similar for open readColdStartFile call.
4104         Patch partially by Jim Meyering.
4105         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4106         around internal_setent call.
4108         * po/vi.po: New Vietnamese translation.
4110         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4111         ADJ_OFFSET_SS_READ.
4113         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4114         remove CLONE_STOPPED.
4116 2008-02-10  Jim Meyering  <meyering@redhat.com>
4118         Remove useless "if" before "free":
4119         * elf/ldconfig.c (parse_conf_include): Likewise.
4120         * gmon/gmon.c (weak_alias): Likewise.
4121         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4122         * inet/rcmd.c (__validuser2_sa): Likewise.
4123         * intl/bindtextdom.c (set_binding_values): Likewise.
4124         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4125         * libio/genops.c (save_for_backup): Likewise.
4126         * libio/wgenops.c (save_for_wbackup): Likewise.
4127         * locale/programs/ld-collate.c (collate_read): Likewise.
4128         * locale/programs/linereader.c (get_string): Likewise.
4129         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4130         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4131         * resolv/res_debug.c (do_section): Likewise.
4132         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4133         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4134         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4135         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4136         * time/tzset.c (tzset_internal): Likewise.
4138 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
4140         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4141         of ASSEMBLER.
4143 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
4145         [BZ #5903]
4146         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4147         not stream for output file.  Open output file here.
4148         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4149         and output file name.
4150         (process_fd): Likewise.
4151         (process_file): Likewise.
4152         (main): Adjust callers of changed functions.
4153         * iconv/iconv_prog.h: Adjust prototype.
4155 2008-03-09  Andreas Jaeger  <aj@suse.de>
4157         [BZ #5753]
4158         * sysdeps/ia64/ieee754.h: Use protected namespace
4159         __BIG_ENDIAN/__LITTLE_ENDIAN.
4160         * sysdeps/ieee754/ieee754.h: Likewise.
4161         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4163 2008-03-08  Roland McGrath  <roland@frob.com>
4165         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4166         ignore a signal that came from a machine exception, treat it as a
4167         fatal core-dump signal instead.
4168         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4170         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4171         Clear DF bit in thread state's eflags.
4172         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4174 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
4176         [BZ #5774]
4177         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
4178         of NAN(...) sequence.
4179         * stdlib/Makefile (tests): Add tst-strtod6.
4180         * stdlib/tst-strtod6.c: New file.
4182         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4184         [BZ #5762]
4185         * posix/getopt.c (_getopt_internal_r): Clarify error message by
4186         putting offending option character in quotes.  Clean up error
4187         messages.
4188         * po/be.po: Adjust msgstr in translation file.
4189         * po/bg.po: Likewise.
4190         * po/ca.po: Likewise.
4191         * po/cs.po: Likewise.
4192         * po/da.po: Likewise.
4193         * po/de.po: Likewise.
4194         * po/es.po: Likewise.
4195         * po/fr.po: Likewise.
4196         * po/hr.po: Likewise.
4197         * po/ko.po: Likewise.
4198         * po/nl.po: Likewise.
4199         * po/rw.po: Likewise.
4200         * po/sk.po: Likewise.
4201         * po/sv.po: Likewise.
4202         * po/tr.po: Likewise.
4203         * po/zh_CN.po: Likewise.
4204         * po/zh_TW.po: Likewise.
4206         [BZ #5760]
4207         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4208         Patch by Roland Bless <roland@bless.de>.
4210         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4211         .o file.
4212         * elf/Makefile (routines): Add dl-sysdep.
4213         (elide-routines.os): Likewise.
4215 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
4217         [BZ #5786]
4218         * elf/dl-sysdep.c: Undefine ROUND after use.
4219         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4220         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4221         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4222         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4223         to ...
4224         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4225         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4226         if necessary.
4227         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4229         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4230         _dl_tls_get_addr_soft element.
4231         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4232         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4233         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4234         GLRO.
4235         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4236         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4237         of internal_function.
4239         * stdlib/Makefile (aux): Add tens_in_limb.
4240         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4241         * stdlib/tens_in_limb.c: ...here.  New file.
4243         [BZ #5778]
4244         * sysdeps/unix/sysv/linux/pathconf.h: Declare
4245         __statfs_chown_restricted.
4246         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4247         for _PC_CHOWN_RESTRICTED.
4248         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4249         Implement __statfs_chown_restricted.
4250         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4251         _POSIX_CHOWN_RESTRICTED value to zero.
4252         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4253         defined to zero.
4255         * sysdeps/x86_64/rtld-memset.c: New file.
4257 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
4259         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4261         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4262         Barcelona machine.  Make default fall through branch of
4263         __x86_64_preferred_memory_instruction check as the integer code path.
4265 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4267         * sysdeps/x86_64/cacheinfo.c
4268         (__x86_64_preferred_memory_instruction): New variable.
4269         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4271         * sysdeps/x86_64/memset.S: Rewrite.
4273 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
4275         * include/stdio.h (__asprintf_chk, __dprintf_chk,
4276         __obstack_printf_chk): New prototypes.
4277         (__vasprintf_chk, __vdprintf_chk,
4278         __obstack_vprintf_chk): Likewise.
4279         Add libc_hidden_proto.
4280         * libio/obprintf.c
4281         (_IO_obstack_jumps): No longer static, add attribute_hidden.
4282         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4283         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4284         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4285         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4286         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4287         __obstack_vprintf_chk): New prototypes.
4288         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4289         obstack_vprintf): New inlines.
4290         * debug/dprintf_chk.c: New file.
4291         * debug/vdprintf_chk.c: New file.
4292         * debug/asprintf_chk.c: New file.
4293         * debug/vasprintf_chk.c: New file.
4294         * debug/obprintf_chk.c: New file.
4295         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4296         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4297         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4298         @@GLIBC_2.8.
4299         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4300         vdprintf_chk and obprintf_chk, set CFLAGS for them.
4301         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4302         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4303         libc_hidden_proto.
4304         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4305         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4306         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4307         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4308         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4309         @@GLIBC_2.8.
4310         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4311         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4312         obstack_vprintf_chk.
4313         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4314         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4315         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4316         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4317         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4318         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4320 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
4322         [BZ #5779]
4323         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4324         Patch by Roy Marples <roy@marples.name>.
4326         [BZ #5736]
4327         * malloc/malloc.c: Fix typo in comment.
4329         [BZ #5627]
4330         * locale/iso-639.def: Add Shuswap.
4332 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
4334         [BZ #5790]
4335         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4336         overwrite *h_errnop/*errnop values from getanswer_r in case of
4337         failure.
4339 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
4341         [BZ #5818]
4342         * nscd/connections.c (dbs): Add initializers for .suggested_module.
4343         (verify_persistent_db): Remove one unnecessary test and add a new one
4344         for bad configuration.
4345         (nscd_init): Improve error reported when persistent database cannot
4346         be reused.
4347         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4348         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4349         .suggested_module and .max_db_size and case config file says the
4350         values are zero.
4351         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4353         [BZ #5854]
4354         * nis/ypclnt.c (yp_order): Fix handling of return value of
4355         do_ypcall_tr call.
4356         Patch by Jeff Moyer <jmoyer@redhat.com>.
4358         * po/fr.po: Update from translation team.
4360 2008-02-22  Andreas Jaeger  <aj@suse.de>,
4361             Carlos O'Donell <carlos@systemhalted.org>
4363         [BZ #5012]
4364         * FAQ.in: Describe why glibc needs to be compiled with
4365         optimization.
4367 2008-02-19  Roland McGrath  <roland@redhat.com>
4369         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4371 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
4373         [BZ #5737]
4374         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4375         __USE_MISC is defined.
4377 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
4379         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4380         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4381         sys/timerfd.h.
4382         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4383         timerfd_gettime, timerfd_settime.
4384         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4385         timerfd_gettime, timerfd_settime for GLIBC_2.8.
4387 2008-02-08  Roland McGrath  <roland@redhat.com>
4389         * elf/elf.h (NT_PPC_SPE): New macro.
4391 2008-02-06  Roland McGrath  <roland@redhat.com>
4393         * Makerules ($(common-objpfx)sysd-rules):
4394         Depend on $(sysdep-makeconfigs).
4396 2008-01-31  Roland McGrath  <roland@redhat.com>
4398         [BZ #5442]
4399         * configure.in: Use -print-file-name if it yields a directory,
4400         for each of include and include-fixed.
4401         * configure: Regenerated.
4403         * Makeconfig (sysd-rules-targets): New variable.
4404         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4405         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4407 2008-01-30  Roland McGrath  <roland@redhat.com>
4409         * manual/libc.texinfo: Update back-cover text.
4411         * elf/elf.h (NT_386_TLS): New macro.
4413 2008-01-29  Roland McGrath  <roland@redhat.com>
4415         * Makeconfig (sysd-rules-patterns): New variable.
4416         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4417         (check-inhibit-asm): New canned sequence, replaces ...
4418         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4419         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4420         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4421         (CFLAGS-rtld): Variable removed.
4423 2008-01-24  Roland McGrath  <roland@redhat.com>
4425         * configure.in: Let configure fragments set base_os.
4426         * configure: Regenerated.
4428 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
4430         * po/ko.po: Update from translation team.
4432 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4434         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4436 2008-01-12  Andreas Jaeger  <aj@suse.de>
4438         [BZ #5040]
4439         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4440         Add EPOLLRDHUP.
4442 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4444         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4445         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4446         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4448 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
4450         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4451         * elf/dl-close.c (_dl_close): Check for it.
4452         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4453         (_dl_allocate_static_tls): Likewise.
4454         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4455         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4456         to it.
4457         * elf/tst-tls16.c: New file.
4458         * elf/tst-tlsmod16a.c: New file.
4459         * elf/tst-tlsmod16b.c: New file.
4460         * elf/Makefile: Add rules to build and run tst-tls16.
4462 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
4464         [BZ #5628]
4465         * bits/shm.h: Fix comment describing shmid_ds.
4466         * sysdeps/gnu/bits/shm.h: Likewise.
4467         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4468         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4469         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4470         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4471         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4472         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4473         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4474         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4475         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4477         [BZ #5607]
4478         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4479         prototypes.
4480         * conform/data/limits.h-data: Adjust limits changed in v6 and add
4481         additional suffixes.
4482         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4483         Add optional functions mq_timedreceive and mq_timedsend.
4484         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4485         * conform/data/pthread.h-data: Fix prototype of
4486         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
4487         * conform/data/semaphore.h-data: Allow time.h definitions.
4488         * conform/data/signal.h-data: Likewise.
4489         * conform/data/stdio.h-data: getw and putw are not required in v6.
4490         * conform/data/stdlib.h-data: Change setstate prototype.
4491         * conform/data/string.h-data: Fix strerror_r prototype.
4492         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4493         * conform/data/unistd.h-data: pthread_atfork not required in v6.
4494         Fix readlink prototype.
4495         * conform/data/netinet/in.h-data: Add const to in6addr_any and
4496         in6addr_loopback.
4497         * inet/netinet/in.h: Cleanup namespace.
4498         * posix/regex.h: Likewise.
4499         * resolv/netdb.h: Likewise.
4500         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4501         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4502         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4503         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4504         of names of in in6_addr.
4505         (default_precedence): Likewise.
4506         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4507         NULL definition.
4509 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
4511         * conform/data/fmtmsg.h-data: Add missing allows.
4512         * conform/data/ftw.h-data: Likewise.
4513         * conform/data/inttypes.h-data: Likewise.
4514         * conform/data/math.h-data: Likewise.
4515         * conform/data/signal.h-data: Likewise.
4516         * conform/data/net/if.h-data: Likewise.
4517         * conform/data/netinet/in.h-data: Likewise.
4518         * conform/data/sys/socket.h-data: Likewise.
4520         [BZ #5614]
4521         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4522         (__strtok_r): Simplify.
4523         * string/tester.c (test_strtok_r): Add test case for futile search
4524         with single-character seach string.
4526 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
4528         * po/ko.po: Update from translation team.
4530 2008-01-11  Andreas Jaeger  <aj@suse.de>
4532         [BZ #5600]
4533         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4534         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4535         kernel header.
4537 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
4539         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4540         native interface lookup in all the relevant places.
4542 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
4543             Ulrich Drepper  <drepper@redhat.com>
4545         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4546         field.  Use sockaddr_in6 for source_addr.
4547         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
4548         (match_prefix): Likewise.
4549         (get_label): Likewise.
4550         (get_precedence): Likewise.
4551         (rfc3484_sort): Change to use indirect access to results array.
4552         Adjust to use of sockaddr_in6.  Replace service_order test with
4553         simple index comparison.
4554         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
4555         service_order field.  Adjust qsort_t calls.  Access sorted result
4556         array indirectly through order array.
4557         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4558         * posix/tst-rfc3484-2.c: Likewise.
4559         * posix/tst-rfc3484-3.c: Likewise.
4561 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
4563         [BZ #5541]
4564         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4565         pollfd structures.
4566         Patch by André Cruz.
4568         [BZ #5545]
4569         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4570         (clnt_spcreateerror): Likewise.
4572         [BZ #5553]
4573         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4574         (public_mEMALIGn): Likewise.
4575         Patch mostly by Daniel Jacobowitz.
4577 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
4579         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4580         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4581         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4582         * stdlib/tst-makecontext2.c: New test.
4584 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4586         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4587         defined.
4588         (REINIT_PARAMS): Likewise.  Undefine before end of file.
4589         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4590         transliteration hooks and REINIT_PARAMS afterwards.
4591         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4592         status.
4593         (REINIT_PARAMS): Define.
4594         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4595         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4596         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4597         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4598         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4599         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4600         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4601         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4602         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4603         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4604         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4605         * iconvdata/tst-iconv7.c: New test.
4607 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
4609         * libio/stdio.h (vscanf): Fix definition for loser compilers.
4611 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
4613         [BZ #5112]
4614         * nscd/connections.c (restart): Fix condition.
4616 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
4618         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4619         __ctype_toupper_loc): Add __THROW.
4621 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
4623         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4624         recognition of interface family.
4626         * posix/getconf.c: Update copyright year.
4627         * nss/getent.c: Likewise.
4628         * iconv/iconvconfig.c: Likewise.
4629         * iconv/iconv_prog.c: Likewise.
4630         * elf/ldconfig.c: Likewise.
4631         * catgets/gencat.c: Likewise.
4632         * csu/version.c: Likewise.
4633         * elf/ldd.bash.in: Likewise.
4634         * elf/sprof.c (print_version): Likewise.
4635         * locale/programs/locale.c: Likewise.
4636         * locale/programs/localedef.c: Likewise.
4637         * nscd/nscd.c (print_version): Likewise.
4638         * debug/xtrace.sh: Likewise.
4639         * malloc/memusage.sh: Likewise.
4640         * malloc/mtrace.pl: Likewise.
4641         * debug/catchsegv.sh: Likewise.
4643 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4645         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4646         second lookup.
4648 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
4650         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4651         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4653 2007-12-17  Roland McGrath  <roland@redhat.com>
4655         * inet/ether_line.c (ether_line): Remove unused variable.
4657 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4659         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4660         and winp.
4661         * login/openpty.c (openpty): Likewise.
4662         * login/pty.h (openpty, forkpty): Likewise.
4663         * manual/terminal.texi (openpty, forkpty): Likewise.
4665 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
4667         * malloc/malloc.c (public_cALLOc): For arenas other than
4668         main_arena, count all bytes inside the mprotect_size range of the
4669         heap as uninitialized.
4671 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
4673         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4674         executable stacks.
4676         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4677         mTRIm for all of them.
4678         (mTRIm): Additionally iterate over all free blocks and use madvise
4679         to free memory for all those blocks which contain at least one
4680         memory page.
4681         * malloc/tst-trim1.c: New file.
4682         * malloc/Makefile (tests): Add tst-trim1.
4684         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4686 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
4688         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4689         First cast argument to long
4690         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4691         Return long.
4692         (__vdso_clock_gettime): Likewise.
4693         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4694         return long.
4696 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
4698         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4699         * locale/nl_langinfo_l.c: Real implementation, copied from
4700         nl_langinfo.c.
4701         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4703 2007-12-01  Jim Meyering  <meyering@redhat.com>
4705         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4706         that would inhibit utf8-optimization of a regexp containing line-
4707         or buffer-anchors, e.g., `^', `$'.
4709 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4711         * time/bug-getdate1.c (do_test): Don't use century values which
4712         aren't valid on 32-bit systems.
4714 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4716         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4717         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4718         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4719         __strcat_g, __strncat_g): Add __asm__.
4721 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4723         [BZ #5477]
4724         * io/fchmodat.c: Fix typo in stub_warning use.
4725         Patch by Petr Salinger.
4727 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4729         * iconvdata/hp-thai8.c: New file.
4730         * iconvdata/Makefile: Add rules for hp-thai8.c.
4731         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4732         * iconvdata/gconv-modules: Likewise.
4734         [BZ #5464]
4735         * iconvdata/hp-greek8.c: New file.
4736         * iconvdata/Makefile: Add rules for hp-greek8.c.
4737         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4738         * iconvdata/gconv-modules: Likewise.
4740         [BZ #5463]
4741         * iconvdata/hp-turkish8.c: New file.
4742         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4743         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4744         * iconvdata/gconv-modules: Likewise.
4746         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4747         (shrink_heap): ... this new function.
4748         (heap_trim): Call shrink_heap instead of grow_heap.
4750         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4751         case don't call alloc_perturb.
4753 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4755         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4756         possible.
4757         * sysdeps/unix/sysv/linux/kernel-features.h
4758         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4759         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4761 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4763         [BZ #5424]
4764         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4765         * stdio-common/Makefile (tests): Add bug22.
4766         * stdio-common/bug22.c: New file.
4768         [BZ #5451]
4769         * time/getdate.c: Fix filling in default values.
4770         * time/bug-getdate1.c: New file.
4771         * time/Makefile: Add rules to build and run bug-getdate1.
4773         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4774         * iconvdata/ebcdic-es.c: Likewise.
4775         * iconvdata/ebcdic-es-a.c: Likewise.
4776         * iconvdata/ebcdic-uk.c: Likewise.
4777         * iconvdata/iso8859-16.c: Likewise.
4778         * iconvdata/viscii.c: Likewise.
4779         * iconvdata/iso8859-9e.c: Likewise.
4780         * iconvdata/Makefile: Adjust appropriately.
4782         [BZ #5428]
4783         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4784         __need_wint_t.
4786 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4788         [BZ #5427]
4789         * iconvdata/hp-roman9.c: New file.
4790         * iconvdata/Makefile: Add rules for hp-roman9.c.
4791         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4792         * iconvdata/gconv-modules: Likewise.
4794         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4795         * iconvdata/Makefile: Adjust appropriately.
4797         [BZ #5441]
4798         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4799         structure, it's allocated with alloca.
4800         * stdio-common/Makefile (tests): Add bug21.
4801         * stdio-common/bug21.c: New file.
4803 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4805         [BZ #5452]
4806         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4807         keyword for gcc's braced-groups.
4809 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4811         [BZ #5454]
4812         * inet/ether_line.c: Strip hostname of whitespaces.
4813         * inet/Makefile (tests): Add tst-ether_line.
4814         * inet/tst-ether_line.c: New file.
4816 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4818         [BZ #5439]
4819         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4821         [BZ #5435]
4822         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4824         * stdlib/tst-setcontext.c: Catch the case where the links gets
4825         messed up and we do not reach main again.
4827         * po/ca.po: Update from translation team.
4829 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4831         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4832         * posix/regex.h (REG_ENOSYS): Likewise.
4833         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4835 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4837         * nscd/nscd.h (MAX_STACK_USE): Define.
4838         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4839         (gc): Initialize stack_used based on allocation in prune_cache.
4840         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4841         Clear array before use.
4843         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4844         memory allocation failed.
4845         * nscd/hstcache.c (cache_addhst): Likewise.
4846         * nscd/grpcache.c (cache_addgr): Likewise.
4847         * nscd/servicescache.c (cache_addserv): Likewise.
4848         * nscd/pwdcache.c (cache_addpw): Likewise.
4849         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4851 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4854         and creat system calls.
4856         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4858 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4860         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4861         Add netiucv/iucv.h.
4862         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4863         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4864         protocol.
4865         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4866         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4867         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4869 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4871         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4872         strncat): Define as macros to avoid compile errors.
4874         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4875         creat entries.
4877 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4879         [BZ #5382]
4880         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4881         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4882         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4883         overflow it.
4884         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4886         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4887         Return zero in case the thread library is not NPTL.
4889         [BZ #5375]
4890         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4891         initializing interface list.
4893         [BZ #5378]
4894         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4895         use result of nss_getgrgid_r if nothing was found.  For other
4896         error return with a failure.
4897         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4899         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4900         macro name.
4902 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4904         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4905         (get_scope): For IPv4 scope, use scopes table.
4906         (fini): Free scopes table if necessary.
4907         (free_scopelist): New function.
4908         (scopecmp): New function.
4909         (gaiconf_init): Also handle scopev4 entries.
4910         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4911         * posix/tst-rfc3484-2.c (do_test): Likewise.
4912         * posix/gai.conf: Document scopev4 defaults.
4913         * posix/Makefile (tests): Add tst-rfc3484-3.
4914         * posix/tst-rfc3484-3.c: New file.
4916         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4917         Teredo tunnels.
4918         * posix/gai.conf: Update for current default tables.
4920 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4922         * po/tr.po: Update from translation team.
4924 2007-11-18  Roland McGrath  <roland@frob.com>
4926         * manual/arith.texi (Remainder Functions): Spelling fix.
4927         From Shaun Silk <genix@mysoul.com.au>.
4929         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4931 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4933         * po/zh_CN.po: Update from translation team.
4935         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4936         Add sys/signalfd.h and sys/eventfd.h.
4938 2007-11-15  Bruno Haible  <bruno@clisp.org>
4940         [BZ #5346]
4941         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4942         union.
4943         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4944         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4945         it needs only fixed stack space. Delay the initialization of
4946         msgid_len until it is needed.
4948 2007-11-15  Andreas Jaeger  <aj@suse.de>
4950         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4951         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4953 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4955         * po/ko.po: Update from translation team.
4957 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4959         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4960         significantly.  The device type is also part of the ifinfomsg data.
4962         * po/sv.po: Update from translation team.
4963         * po/nl.po: Likewise.
4965         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4966         to wake up in 24 hours.
4968         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4970 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4972         * po/cs.po: Update from translation team.
4973         * po/pl.po: Likewise.
4975         * include/ifaddrs.h: Remove in6ai_temporary.
4976         (struct in6addrinfo): Add index element.
4977         Declare __check_native.
4978         * inet/Makefile (aux): Add check_native.
4979         * sysdeps/unix/sysv/linux/check_native.c: New file.
4980         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4981         IFA_F_TEMPORARY.  Pass back ifa_index.
4982         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4983         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4984         call __check_native if necessary.
4985         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4986         to sort addresses.  Pass information about the results.
4987         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4988         of rfc3484_sort interface.
4989         * posix/tst-rfc3484-2.c: Likewise.
4991         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4992         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4993         for _quicksort.
4994         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4995         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4996         on as third parameter to compare function and _quicksort.
4997         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4998         to the compare function.
4999         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5000         * Versions.def: Add GLIBC_2.8 for libc.
5002         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5003         * posix/tst-rfc3484-2.c: Likewise.
5005         * include/kernel-features.h: Moved to...
5006         * sysdeps/mach/hurd/kernel-features.h: ...here.
5008 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5010         * sysdeps/i386/i586/memcpy_chk.S: New file.
5011         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5012         * sysdeps/i386/i586/memset_chk.S: Likewise.
5014 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
5016         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5017         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5018         list of interfaces.  Also store prefix length.
5019         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5020         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5021         prefix if source and destination address are in the same subnet.
5022         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
5023         Always look for matching record in in6ai list.
5024         Correct source_addr_len value for IPv6->IPv4 converted records.
5026 2007-11-11  Roland McGrath  <roland@frob.com>
5028         * include/kernel-features.h: New file.
5030 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
5032         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5033         complications for 64-bit platforms.
5035         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5036         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
5037         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5038         open64_2.
5039         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5040         entries.
5041         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5042         * sysdeps/wordsize-64/alphasort.c: New file.
5043         * sysdeps/wordsize-64/alphasort64.c: New file.
5044         * sysdeps/wordsize-64/fseeko.c: New file.
5045         * sysdeps/wordsize-64/fseeko64.c: New file.
5046         * sysdeps/wordsize-64/ftello.c: New file.
5047         * sysdeps/wordsize-64/ftello64.c: New file.
5048         * sysdeps/wordsize-64/ftw.c: New file.
5049         * sysdeps/wordsize-64/ftw64.c: New file.
5050         * sysdeps/wordsize-64/iofgetpos.c: New file.
5051         * sysdeps/wordsize-64/iofgetpos64.c: New file.
5052         * sysdeps/wordsize-64/iofopen.c: New file.
5053         * sysdeps/wordsize-64/iofopen64.c: New file.
5054         * sysdeps/wordsize-64/iofsetpos.c: New file.
5055         * sysdeps/wordsize-64/iofsetpos64.c: New file.
5056         * sysdeps/wordsize-64/lockf.c: New file.
5057         * sysdeps/wordsize-64/lockf64.c: New file.
5058         * sysdeps/wordsize-64/mkostemp.c: New file.
5059         * sysdeps/wordsize-64/mkostemp64.c: New file.
5060         * sysdeps/wordsize-64/mkstemp.c: New file.
5061         * sysdeps/wordsize-64/mkstemp64.c: New file.
5062         * sysdeps/wordsize-64/scandir.c: New file.
5063         * sysdeps/wordsize-64/scandir64.c: New file.
5064         * sysdeps/wordsize-64/tmpfile.c: New file.
5065         * sysdeps/wordsize-64/tmpfile64.c: New file.
5066         * sysdeps/wordsize-64/versionsort.c: New file.
5067         * sysdeps/wordsize-64/versionsort64.c: New file.
5068         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5069         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5070         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5071         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5072         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5073         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5074         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5075         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5076         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5077         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5078         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5079         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5081         * crypt/sha256-crypt.c: Fix a comment.
5082         * crypt/sha512-crypt.c: Likewise.
5084 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5086         * sysdeps/x86_64/memset.S: Add sfence after movnti.
5088 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
5090         [BZ #5277]
5091         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5092         because output buffer is too small break, don't loop.
5093         * iconvdata/Makefile (tests): Add bug-iconv6.
5094         * iconvdata/bug-iconv6.c: New file.
5096 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
5098         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5099         with size_t type.
5100         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5101         size_t.  Add casts where needed.
5103         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5104         old headers, don't call avc_has_perm if we don't have the
5105         permission information.
5107 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
5109         * elf/rtld.c (dl_main): Use the page size to find the map start.
5111 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
5113         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5114         Patch by Szymon Siwek <sls@poczta.wp.pl>.
5116         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5117         when the lookup call failed.
5119         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5120         Add prune_cond and wakeup_time.
5121         (CACHE_PRUNE_INTERNAL): Define.
5122         Update declarations of prune_cache and setup_thread.
5123         * nscd/connections.c (dbs): Update initializers.
5124         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5125         (nscd_init): Default number of threads is now 4.
5126         (invalidate_cache): Take lock before calling prune_cache.
5127         (handle_request): If SELinux forbids the request, say so.
5128         (readylist_cond): Use static initializer.
5129         (nscd_run_prune): New function.  Used only by pruning threads.
5130         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
5131         here.
5132         (fd_ready): Update nscd_run reference.
5133         (start_threads): No need to initialize readylist_cond.
5134         Start pruning threads separately.
5135         * nscd/nscd_setup_thread.c: Change return value type to int and always
5136         return 0.
5137         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5138         to int and return nonzero value if we can use the TID address hack.
5139         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5140         the database is later than the new entry's timeout, update the
5141         wakeup time and wake the cleanup thread.
5142         (prune_cache): Return seconds the next entry in the database is still
5143         valid.  Remove locking for pruning here.
5144         * nscd/nscd.conf: Document default number of threads.
5146 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
5148         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5149         stack is properly aligned for the target function.
5150         Correct unwind info.
5152         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5153         when using auditing libraries.
5155 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
5157         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5158         _nss_dns_getnetbyaddr2_r.
5159         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
5160         extra parameter to getanswer_r.
5161         (_nss_dns_getnetbyaddr_r): Now a wrapper around
5162         _nss_dns_getnetbyaddr2_r.
5164         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5165         gethstbynm3_r.
5166         * nscd/gethstbynm2_r.c: Remove.
5167         * nscd/gethstbynm3_r.c: New file.
5168         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5169         __gethostbyaddr_r.
5170         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
5171         __gethostbyaddr_r compatibility wrapper.
5172         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
5173         determining timeout of entry.
5174         (lookup): Take new parameter and pass it to __gethostbyname3_r and
5175         __gethostbyaddr2_r.
5176         (addhstbyX): Pass reference to variable for TTL to lookup and
5177         cache_addhst.
5178         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
5179         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
5180         and __nss_next2.  Remove __nss_services_lookup.
5181         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
5182         Add compat wrapper.
5183         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5184         __nss_next2.
5185         * nss/getXXent_r.c: Likewise.
5186         * nss/getnssent_r.c: Likewise.
5187         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
5188         does not exist in module, try the optional second name.
5189         (__nss_next2): New function.
5190         (__nss_next): Now wrapper around __nss_next2.
5191         * nss/nsswitch.h: Adjust __nss_lookup prototype.
5192         Declare __nss_next2.
5193         Adjust definition of db_lookup_function type.
5194         * nss/service-lookup.c: Define NO_COMPAT.
5195         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5196         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5197         * inet/ether_ntoh.c: Likewise.
5198         * sunrpc/netname.c: Likewise.
5199         * sunrpc/publickey.c: Likewise.
5200         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
5201         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5202         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5203         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5204         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5206         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5208         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
5210 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
5212         [BZ #5204]
5213         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5214         * crypt/sha512c-test.c: Likewise.
5216         [BZ #5225]
5217         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5218         to keep track of end of %[ format string element.
5219         * stdio-common/Makefile (tests): Add bug20.
5220         * stdio-common/bug20.c: New file.
5222         [BZ #5222]
5223         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5224         path elements in counting mode.
5226 2007-10-27  Andreas Jaeger  <aj@suse.de>
5228         [BZ #5040]
5229         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5231         [BZ #3112]
5232         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5233         (__cleanup): Free shared library when exiting.
5234         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5235         (__cleanup): Free shared library when exiting.
5237 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5239         [BZ #2549]
5240         * math/libm-test.inc (check_float_internal): Support
5241         denormalized return.
5243 2007-10-23  Andreas Jaeger  <aj@suse.de>
5245         [BZ #5208]
5246         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5247         __LONG_LONG_PAIR to handle little endian byte order.
5248         Suggested by abhishekrai@google.com
5250 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
5252         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5254 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
5256         * nscd/cache.c (prune_cache): Move test for modified file outside
5257         of locking.
5259 2007-10-21  Andreas Jaeger  <aj@suse.de>
5261         * manual/texinfo.tex: Update to latest version.
5263         * manual/sysinfo.texi (System Parameters): Fix Formatting.
5265         * manual/arith.texi (Status bit operations): Fix formatting.
5267         * manual/errno.texi (Error Messages): Fix formatting.
5269         * manual/sysinfo.texi (System Parameters): Fix formatting.
5271         * manual/libc.texinfo: Update VERSION and UPDATED.
5273 2007-10-19  Roland McGrath  <roland@redhat.com>
5275         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5277 2007-10-06  David S. Miller  <davem@davemloft.net>
5279         * configure.in: Add sparcv9v2 and sparc64v2.
5280         * scripts/config.sub: Likewise.
5281         * configure: Regenerate.
5282         * elf/elf.h (HWCAP_SPARC_N2): New.
5283         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5284         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5285         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5286         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5287         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5288         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5289         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5291 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
5293         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5294         even if the poll result indicates there is data to read.
5295         Patch by Jeff Moyer <jmoyer@redhat.com>.
5297 2007-10-18  Roland McGrath  <roland@redhat.com>
5299         * elf/elf.h (NT_PPC_VMX): New macro.
5301 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5303         * version.h (VERSION): Set to 2.7.90.
5305 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5307         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
5308         weak_alias.
5310 2007-10-17  Roland McGrath  <roland@frob.com>
5312         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5313         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5315 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5317         * version.h (VERSION): Bump to 2.7.
5318         * include/features.h (__GLIBC_MINOR__): Bump to 7.
5320         [BZ #5186]
5321         * time/tzset.c (__tz_convert): Don't force testing for a change of
5322         TZ if not called from localtime.  But then also see whether the
5323         file changed, in case __use_tzfile is set.
5325         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5326         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5327         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5328         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5329         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5330         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5331         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
5332         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5334 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5336         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5337         and admin selects to be able to replace the gai.conf file, lock
5338         data structures around the qsort call.
5340 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5342         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5343         new memset.
5344         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
5345         too high for the improvements.  Implement bzero unconditionally for
5346         use in libc.
5348 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5349             Jakub Jelinek  <jakub@redhat.com>
5351         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5352         even when time_t is 32-bit.
5353         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5354         timezone data read by __tzfile_default.  Ensure __tzname[0] is
5355         always set after the search.
5357 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5359         * time/tzfile.c (__tzfile_read): Help the compiler recognize
5360         unreachable code on 32-bit machines.
5362 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5364         [BZ #5184]
5365         * time/strftime_l.c: Include stdbool.h.
5366         (my_strftime): New wrapper, old function renamed to...
5367         (__strftime_internal): ... new function.  Add tzset_called
5368         argument, pass it down to recursive calls, don't call tzset ()
5369         if already true, set to true after call to tzset ().
5371 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5373         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5374         into account when copying TZ string.
5376 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5378         * time/tzfile.c (__tzfile_compute): For use_last case set i to
5379         num_transition rather than num_transitions - 1.
5381 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5383         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5384         PIC indirect jump.
5386         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5387         a local label rather than HIDDEN_JUMPTARGET.
5389 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5391         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5392         (init_cacheinfo): Initialize it.
5393         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5394         Always define bzero.
5395         Remove non-glibc code.
5396         * sysdeps/x86_64/bzero.S: Make an empty file.
5398 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5400         * sysdeps/x86_64/cacheinfo.c
5401         (__x86_64_preferred_memory_instruction): New.
5402         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5404         * sysdeps/x86_64/memset.S: Rewrite.
5406 2007-10-15  Roland McGrath  <roland@redhat.com>
5408         * po/libc.pot: Regenerated.
5410 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5412         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5413         pointers.
5415         [BZ #3425]
5416         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5417         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5418         address record to T_A/T_AAAA requests.
5420 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5422         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5424         * posix/glob.c: Add some branch prediction throughout.
5426         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5427         read from nscd.
5429         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5430         service_order.
5431         (rfc3484_sort): Make sure that even if qsort doesn't support
5432         stable sorting out sorting here is stable by comparing service_order.
5433         (getaddrinfo): Initialize service_order.
5434         * posix/tst-rfc3484.c (do_test): Adjust for addition of
5435         service_order field to sorting structure.
5436         * posix/tst-rfc3484-2.c (do_test): Likewise.
5438         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5439         * time/tzset.c (tzset_internal): Break TZ string parsing out into
5440         __tzset_parse_tz and updating of daylight, timezone, tzname into
5441         update_vars.
5442         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
5443         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5444         happens in __tz_compute.
5445         * time/tzfile.c (__tzfile_read): Also read TZ string.
5446         (find_transition): Fold into __tzfile_compute.
5447         (__tzfile_compute): For times beyond the last transition try to
5448         use the TZ string.
5449         * timezone/tst-timezone.c: Information in daylight and tzname does
5450         change for Asia/Tokyo timezone with more concrete information.
5451         Remove the test.
5453         * include/stdio.h: Add libc_hidden_proto for ftello.
5454         * libio/ftello.c: Add libc_hidden_def.
5456         [BZ #1140]
5457         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5458         on the specified time and not the last entries in the file.  Move
5459         code to determine tzname[] to...
5460         (find_transition): ...here.  Add ugly guess for times before the
5461         first transition.
5463 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5465         [BZ #3195]
5466         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5467         no entry.
5468         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5469         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5470         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5471         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5473         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5474         read mechanism when there are no group members and avoid no-op
5475         read syscall in this case.
5477         [BZ #3242]
5478         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5479         (__readall): If reading failed due to EAGAIN error wait a bit
5480         and possibly try again.
5481         (__readvall): Likewise.
5483 2007-10-13  Bruno Haible  <bruno@clisp.org>
5485         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5486         when we cannot recode the message.
5488 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5490         [BZ #4359]
5491         * libio/__freading.c (__freading): Don't return true for
5492         write-only streams.  For read/write streams, check whether we
5493         performed a read operation already.
5494         * libio/Makefile (tests): Add tst-ext2.
5495         * libio/tst-ext2.c: New file.
5497 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5499         * locale/programs/repertoire.c (repertoire_read): Always free
5500         memory for repertoire file name [Coverity CID 270].
5502         * elf/cache.c (save_aux_cache): Free memory allocated for
5503         temporary file name [Coverity CID 267].
5505 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5507         * misc/Makefile (headers): Add bits/error.h.
5509 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5511         * posix/fnmatch_loop.c: Take rule index returned as part of
5512         findidx return value into account when accessing weights.
5513         * posix/regcomp.c: Likewise.
5514         * posix/regexec.c: Likewise.
5516         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5517         (skip_to): Fix problems with parameter of elifdef/elifndef.
5519 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
5521         * iconv/gconv_simple.c: Add some branch prediction.
5523 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5525         * locale/programs/ld-collate.c (collate_read): If ignore_content
5526         and nowtok is tok_define, eat any tok_eol tokens.
5528 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
5530         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5531         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5533         * inet/netinet/in.h: Don't include bits/socket.h.
5534         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5535         macro.
5536         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5538 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
5540         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5541         and tok_elifndef.
5542         * locale/programs/locfile-kw.gperf: Likewise.
5543         * locale/programs/ld-collate.c: Implement primitive preprocessor.
5545 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
5547         * stdio-common/printf-parse.h: Include string.h and wchar.h.
5548         (__find_specwc): Change into __extern_always_inline function.
5549         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
5550         (__parse_one_specmb): Remove ps argument.
5551         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5552         Adjust __find_specmb and __parse_one_specmb callers.
5553         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5554         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5555         Removed.
5556         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5557         caller.
5559 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
5561         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5562         with some Pentium Ds.
5564 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
5566         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5567         __read not read.
5568         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5569         __write not write.
5571 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5573         [BZ #181]
5574         * locale/C-time.c: Set week_1stday data to 19971201.
5575         * locale/programs/ld-time.c (time_finish): Default for
5576         first_workday is Monday.
5578         [BZ #2633]
5579         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5581         [BZ #5103]
5582         * posix/glob.c (glob): Recognize patterns starting \/.
5583         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5584         (main): Add test for pattern starting \/.
5586         * misc/error.h: Use __const instead of const.
5587         * misc/bits/error.h: Likewise.
5589 2007-10-07  Andreas Jaeger  <aj@suse.de>
5591         * include/bits/error.h: New file.
5593         * misc/bits/error.h (error_at_line): Fix prototype.
5595 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
5597         [BZ #3924]
5598         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5599         more little bugs in creating the stack frame when pltexit has to
5600         be called.
5602         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5603         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5605         [BZ #4407]
5606         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5607         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5608         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5609         * math/libm-test.inc: Add test for this case.
5611         [BZ #5010]
5612         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5613         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
5614         map service succeeded.
5615         (svc_is_mapped): New function.
5616         (svc_unregister): Use it before trying to unmap service.
5618 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
5620         * timezone/zic.c: Update from tzcode2007h.
5622         [BZ #5063]
5623         * timezone/africa: Update from tzdata2007h.
5624         * timezone/antarctica: Likewise.
5625         * timezone/asia: Likewise.
5626         * timezone/australasia: Likewise.
5627         * timezone/europe: Likewise.
5628         * timezone/leapseconds: Likewise.
5629         * timezone/northamerica: Likewise.
5630         * timezone/southamerica: Likewise.
5631         * timzeone/zone.tab: Likewise.
5633         [BZ #5104]
5634         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5636         [BZ #5113]
5637         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5638         avoid warning with -Wconversion.
5639         (__strndup): Likewise.
5640         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5642         [BZ #5112]
5643         * nscd/connections.c (restart): Don't resync if database is
5644         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5646         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5647         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
5649         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5650         evetnfd_read, eventfd_write.
5651         * sysdeps/unix/sysv/linux/eventfd.c: New file.
5652         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5653         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5654         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5655         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5656         eventfd_write for GLIBC_2.7.
5658         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5659         * sysdeps/unix/sysv/linux/signalfd.c: New file.
5660         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5661         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5663 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
5665         * stdlib/msort.c: Include stdint.h.
5666         (struct msort_param): New type.
5667         (msort_with_tmp): Use struct msort_param pointer for unchanging
5668         parameters.  Add optimized handling for several common sizes
5669         and indirect sorting mode.
5670         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
5671         sorting.
5672         Suggested by Belazougui Djamel .
5674         * stdlib/Makefile (tests): Add tst-qsort2.
5675         * stdlib/tst-qsort2.c: New test.
5677 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
5679         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5680         for dup2 in case another thread races with the current one.  Retry
5681         in this case.
5683         * misc/error.h: Remove support for use outside of libc.  We have to
5684         include <features.h> now.  Include <bits/error.h> if possible.
5685         * misc/bits/error.h: New file.
5687 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
5689         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5690         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5691         __extern_always_inline functions unconditionally, drop macros.
5693         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5694         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5695         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5697         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5698         add __artificial__ attribute.
5700 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
5702         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5703         backward to forward direction.
5705         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5707         [BZ #645]
5708         * locale/programs/ld-collate.c (collate_finish): Compare against last
5709         used section which is known to have rules defined.
5710         (collate_read): After order_start, correctly record order of sections
5711         and queue sections up.
5713 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5715         [BZ #5071]
5716         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5717         the same number of pages.
5718         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5720         * locale/programs/ld-collate.c (collate_read): After initial copy
5721         statement, continue in state 0.
5723         * include/stdio_ext.h (__fsetlocking): Define as macro.
5725 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5727         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5728         of section order.
5730         * po/pt_BR.po: Fix typo.
5732 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5734         * iconvdata/Makefile (modules): Add ISO8859-9E.
5735         (distribute): Add iso8859-9e.c.
5736         (gen-8bit-gap-modules): Add iso8859-9e.
5737         * iconvdata/iso8859-9e.c: New file.
5738         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5739         * iconvdata/TESTS: Likewise.
5740         * iconvdata/tst-tables.sh: Likewise.
5742         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5744         * locale/iso-639.def: Add several new entries.
5746 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5748         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5749         void * pointers instead of struct link_map **.
5750         (_dl_scope_free): Change argument type to void *.
5751         * include/link.h (struct link_map): Change type of l_reldeps
5752         to struct link_map_reldeps, move l_reldepsact into that
5753         struct too.
5754         * elf/dl-deps.c: Include atomic.h.
5755         (_dl_map_object_deps): Only change l->l_initfini when it is
5756         fully populated, use _dl_scope_free for freeing it.  Optimize
5757         removal of libs from reldeps by using l_reserved flag, when
5758         some removal is needed, allocate a new list instead of
5759         reallocating and free the old with _dl_scope_free.  Adjust
5760         for l_reldeps and l_reldepsact changes.
5761         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5762         searching in l_initfini and l_reldeps without holding dl_load_lock.
5763         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5764         l_reldepsact changes.
5765         * elf/dl-close.c (_dl_close_worker): Likewise.
5766         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5768 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5770         * iconvdata/Makefile (modules): Add KOI8-RU.
5771         (distribute): Add koi8-ru.c.
5772         (gen-8bit-gap-modules): Add koi8-ru.
5773         * iconvdata/koi8-ru.c: New file.
5774         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5775         * iconvdata/TESTS: Likewise.
5776         * iconvdata/tst-tables.sh: Likewise.
5778         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5780 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5782         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5783         with __warning__/__error__ attributes.
5784         (__warnattr): Define.
5785         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5786         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5787         __warnattr.
5788         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5789         of __*_chk if compile time detectable overflow is found.
5790         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5791         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5792         with __warnattr.
5793         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5794         instead of __*_chk if compile time detectable overflow is found.
5795         (__gets_alias): Rename to...
5796         (__gets_warn): ... this.  Add __warnattr.
5797         (gets): Call __gets_warn instead of __gets_alias.
5798         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5799         aliases with __warnattr.
5800         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5801         time detectable overflow is found.
5802         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5803         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5804         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5805         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5806         __getdomainname_chk_warn): New aliases with __warnattr.
5807         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5808         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5809         __*_chk_warn instead of __*_chk if compile time detectable overflow
5810         is found.
5811         (__getgroups_chk): Rename argument to __listlen from listlen.
5812         (__getwd_alias): Rename to...
5813         (__getwd_warn): ... this.  Add __warnattr.
5814         (getwd): Call __getwd_warn instead of __getwd_alias.
5815         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5816         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5817         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5818         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5819         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5820         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5821         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5822         compile time detectable overflow is found.
5823         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5824         to use __*_chk or not.
5825         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5826         in comparisons which function should be called and in __*_chk*
5827         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5828         detectable overflow is found.
5829         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5830         __*_chk argument.
5831         * debug/tst-chk1.c (do_test): Add a few more tests.
5833 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5835         [BZ #5058]
5836         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5837         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5838         (_nl_unload_domain): Finalize conversions_lock.
5839         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5840         handling table of known conversions.
5842 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5844         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5845         close_not_cancel_no_status instead of close.
5847 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5849         [BZ #5028]
5850         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5851         nrules != 0 for multibyte chars.
5853 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5855         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5856         Provide better error message in case the type is unknown.
5858         [BZ #4963]
5859         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5860         * string/stratcliff.c: Make usable to test wide char functions.
5861         * wcsmbs/wcsatcliff.c: New file.
5862         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5864         [BZ #4972]
5865         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5866         (distribute): Add mac-centraleurope.c.
5867         (gen-8bit-gap-modules): Add mac-centraleurope.
5868         * iconvdata/mac-centraleurope.c: New file.
5869         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5870         * iconvdata/TESTS: Likewise.
5871         * iconvdata/tst-tables.sh: Likewise.
5873         [BZ #5043]
5874         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5876 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5878         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5879         from __x86_64_core_cache_size_half.
5880         (init_cacheinfo): Compute shared cache size for AMD processors with
5881         shared L3 correctly.
5882         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5883         name change.
5884         Patch in large parts by Evandro Menezes.
5886 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5888         * elf/dl-lookup.c (add_dependency): Handle failing memory
5889         allocation for dependency list.  Remove unnecessary check.
5891         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5892         open/close when determining source addresses.
5894         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5895         sha512-crypt, and sha512.
5896         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5897         (distribute): Add sha256.h and sha512.h.
5898         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5899         and call the appropriate code.
5900         * crypt/sha256-crypt.c: New file.
5901         * crypt/sha256.c: New file.
5902         * crypt/sha256.h: New file.
5903         * crypt/sha256c-test.c: New file.
5904         * crypt/sha256test.c: New file.
5905         * crypt/sha512-crypt.c: New file.
5906         * crypt/sha512.c: New file.
5907         * crypt/sha512.h: New file.
5908         * crypt/sha512c-test.c: New file.
5909         * crypt/sha512test.c: New file.
5911 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5913         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5914         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5915         __syslog_chk.
5917 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5919         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5920         %as in fscanf format strings.
5922         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5923         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5924         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5925         Likewise.
5926         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5927         Likewise.
5929         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5930         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5931         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5932         * elf/dl-sym.c (do_sym): Likewise.
5933         * include/link.h (struct link_map): Add l_serial field.
5934         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5935         * elf/dl-lookup.c (add_dependency): Add flags argument.
5936         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5937         flags, use THREAD_GSCOPE_RESET_FLAG before and
5938         THREAD_GSCOPE_SET_FLAG after
5939         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5940         Don't dereference map until it has been found on some list.
5941         If map->l_serial changed, return -1.
5943 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5945         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5946         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5947         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5948         libc_hidden_proto.
5949         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5950         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5951         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5952         add libc_hidden_proto.
5953         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5954         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5955         conformance requested.
5956         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5957         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5958         conformance requested.
5959         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5960         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5961         conformance requested.
5962         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5963         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5964         ISO C99 or POSIX conformance requested.
5965         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5966         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5967         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5968         and __isoc99_vsscanf@@GLIBC_2.7.
5969         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5970         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5971         (tests): Add scanf14.
5972         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5973         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5974         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5975         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5976         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5977         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5978         from using internal headers.
5979         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5980         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5981         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5982         and __isoc99_vswscanf@@GLIBC_2.7.
5983         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5984         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5985         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5986         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5987         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5988         * stdio-common/isoc99_scanf.c: New file.
5989         * stdio-common/isoc99_vsscanf.c: New file.
5990         * stdio-common/isoc99_vscanf.c: New file.
5991         * stdio-common/isoc99_vfscanf.c: New file.
5992         * stdio-common/isoc99_fscanf.c: New file.
5993         * stdio-common/isoc99_sscanf.c: New file.
5994         * wcsmbs/isoc99_fwscanf.c: New file.
5995         * wcsmbs/isoc99_vswscanf.c: New file.
5996         * wcsmbs/isoc99_swscanf.c: New file.
5997         * wcsmbs/isoc99_wscanf.c: New file.
5998         * wcsmbs/isoc99_vwscanf.c: New file.
5999         * wcsmbs/isoc99_vfwscanf.c: New file.
6000         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6001         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6002         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6003         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6004         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6005         * stdio-common/scanf14.c: New test.
6006         * stdio-common/scanf15.c: New test.
6007         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6008         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6009         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6010         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6011         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6012         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6013         __nldbl___isoc99_scanf@@GLIBC_2.7,
6014         __nldbl___isoc99_fscanf@@GLIBC_2.7,
6015         __nldbl___isoc99_sscanf@@GLIBC_2.7,
6016         __nldbl___isoc99_vscanf@@GLIBC_2.7,
6017         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6018         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6019         __nldbl___isoc99_wscanf@@GLIBC_2.7,
6020         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6021         __nldbl___isoc99_swscanf@@GLIBC_2.7,
6022         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6023         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6024         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6025         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6026         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6027         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6028         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6029         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6030         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6031         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6032         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6033         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6034         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6035         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6036         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6037         functions.
6038         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6039         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6040         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6041         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6042         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6043         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6044         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6045         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6046         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6047         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6048         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6049         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6051         * stdio-common/Makefile (tests): Add scanf13.
6052         (scanf13-ENV): New.
6053         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6054         m modifier followed by l.
6055         (STRING_ARG): Add width argument.
6056         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6057         <case L_('C')>: Handle %mlc and %mC.
6058         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6059         arguments.
6060         * stdio-common/scanf13.c: New test.
6062         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6063         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6065 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
6067         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
6068         type and __THROW marker of splice, vmsplice, and tee.
6069         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6070         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6071         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6072         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6073         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6074         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6075         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6076         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6077         as cancellation points.
6079 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
6081         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6082         parse more than three parts of the version number.
6084 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
6086         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6087         modifier.  Patch by Jakub Jelinek.
6089 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
6091         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6092         call_fallocate in misc subdir.
6093         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6094         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6095         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6096         instead of __fallocate64.
6097         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6099 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
6101         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6102         * rt/Makefile (headers): Add bits/mqueue2.h.
6103         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6104         optimizing with GCC and __va_arg_pack_len is defined.
6105         * rt/bits/mqueue2.h: New file.
6106         * rt/mq_open.c (__mq_open): Renamed from mq_open.
6107         (mq_open): New strong_alias.
6108         (__mq_open_2): New function.
6109         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6110         (mq_open): New strong_alias.
6111         (__mq_open_2): New function.
6112         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6113         * Versions.def (librt): Add GLIBC_2.7 version.
6114         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6115         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6117         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6118         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6119         is defined rather than when not C++.
6120         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6121         __openat64_alias): New redirects.
6122         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6123         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6124         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6125         (open, open64, openat, openat64): Rewrite as __extern_always_inline
6126         functions instead of function-like macros.
6128 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6130         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6131         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6132         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6134 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
6136         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6137         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6139 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
6141         * inet/tst-network.c: Increment ERRORS for failing tests.
6143 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
6145         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6146         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6147         implement as __extern_always_inline function.
6148         (vsyslog): Define as __extern_always_inline function unconditionally.
6149         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6150         When __va_arg_pack is defined, implement as __extern_always_inline
6151         functions.
6152         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6153         __extern_always_inline functions unconditionally.
6154         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6155         bits/stdio2.h will be included.
6156         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6157         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6158         implement as __extern_always_inline functions.
6159         (vswprintf, vwprintf, vfwprintf): Define as
6160         __extern_always_inline functions unconditionally.
6161         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6163 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
6165         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6166         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6167         attribute.
6168         * include/features.h (__USE_EXTERN_INLINES): Define only when
6169         __extern_inline is defined.
6170         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6171         is defined instead of when not __cplusplus.
6172         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6173         is defined instead of when not __cplusplus.
6174         * socket/sys/socket.h: Include bits/socket2.h when
6175         __extern_always_inline is defined instead of when not __cplusplus.
6176         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
6177         is defined instead of when not __cplusplus.
6178         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
6179         is defined instead of when not __cplusplus.
6180         * string/string.h: Include bits/string3.h when __extern_always_inline
6181         is defined instead of when not __cplusplus.
6182         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
6183         is defined instead of when not __cplusplus.
6184         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
6185         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
6186         is not defined.
6187         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
6188         defined __extern_always_inline instead of !defined __cplusplus.
6189         * libio/bits/stdio-ldbl.h: Likewise.
6190         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6191         * misc/bits/syslog.h (syslog): Don't define for C++.
6192         (vsyslog): Use __extern_always_inline function for C++ instead of
6193         a macro.
6194         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6195         whenever that macro is defined.
6196         (vprintf): Don't provide the inline for C++.
6197         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6198         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6199         define the macros for C++.
6200         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6201         __extern_always_inline functions for C++.
6202         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6203         stat64, lstat64, fstat64, fstatat64): Don't define if not
6204         __USE_EXTERN_INLINES.
6205         * wcsmbs/bits/wchar2.h: Fix #error message.
6206         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6207         (vswprintf, vwprintf, vfwprintf): Define using
6208         __extern_always_inline functions for C++.
6209         * string/bits/string3.h: Don't #undef macros if __cplusplus.
6210         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6211         strncpy, strcat, strncat): Define as __extern_always_inline
6212         functions instead of macros for C++.
6213         * math/bits/cmathcalls.h: Guard __extern_inline routines with
6214         defined __extern_inline.
6215         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6216         to __extern_inline whenever that macro is defined.
6217         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6218         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6219         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6220         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6221         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6222         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6223         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6224         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6225         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6226         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6227         prototypes.  Only provide __extern_inline routines if
6228         __USE_EXTERN_INLINES.
6229         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6230         tests.
6231         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6232         For now avoid some *printf tests in C++.  Skip all testing
6233         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6234         is not.
6235         * debug/tst-chk4.cc: New file.
6236         * debug/tst-chk5.cc: New file.
6237         * debug/tst-chk6.cc: New file.
6238         * debug/tst-lfschk4.cc: New file.
6239         * debug/tst-lfschk5.cc: New file.
6240         * debug/tst-lfschk6.cc: New file.
6241         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6242         prototypes in C++.
6243         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6244         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6245         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6247 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
6249         * po/cs.po: Update from translation team.
6251 2007-09-11  Roland McGrath  <roland@redhat.com>
6253         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6254         compiling.
6256 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6258         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6260 2007-09-05  Roland McGrath  <roland@redhat.com>
6262         * manual/signal.texi (Signaling Another Process): Typo fix.
6263         From Karl Berry <karl@freefriends.org>.
6265 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
6267         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6268         zero if not defined.
6269         (make_request): Recognize optimistic addresses and treat them like
6270         deprecated addresses.
6271         Reported by Neil Horman <nhorman@redhat.com>.
6273 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
6275         * nscd/connections.c (send_ro_fd): Also transfer file size.
6276         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6277         file size don't call fstat.
6279         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6280         ahead and map the file.  This should always be correct and we can
6281         catch problems later.
6283 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
6285         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6286         prototypes.
6287         (__fread_alias, __fread_unlocked_alias): New aliases.
6288         (fread): New extern inline.
6289         (fread_unlocked): Likewise.  Undef macro before definition of
6290         the inline function.
6291         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6292         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6293         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6294         and __fread_unlocked_chk@@GLIBC_2.7.
6295         * debug/fread_chk.c: New file.
6296         * debug/fread_u_chk.c: New file.
6297         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6299 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
6301         * sysdeps/unix/sysv/linux/syscalls.list
6302         (personality): Change caller to EXTRA.
6304 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
6306         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6307         to keep gcc quiet.
6308         * iconvdata/iso-2022-cn.c (BODY): Likewise.
6310         * locale/programs/ld-collate.c (collate_output): Avoid warning if
6311         NDEBUG is defined.
6313         * Makerules: Use -p option with mkdir.
6315         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6316         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6317         (_xdr_directory_obj): Likewise.
6318         (xdr_entry_obj): Likewise.
6319         (xdr_group_obj): Likewise.
6320         (xdr_link_obj): Likewise.
6321         (xdr_table_obj): Likewise.
6322         (_xdr_nis_result): Likewise.
6323         (_xdr_ns_request): Likewise.
6324         (_xdr_ib_request): Likewise.
6325         (_xdr_nis_taglist): Likewise.
6326         (xdr_cback_data): Likewise.
6327         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6328         (xdr_ypresp_maplist): Likewise.
6330         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6332         * posix/regex_internal.h: Prevent some declarations and definitions
6333         to be seen when used in tests.
6335         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6336         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6338         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6340         * config.make.in (datarootdir): Add to shut up configure.
6342         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6343         associativity for fully-associative caches.
6345         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6346         requests.  Fill on more associativity values for L2.
6347         Patch mostly by Evandro Menezes.
6349 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
6351         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6352         (_libc_vdso_platform_setup): Avoid using exported variable by using
6353         alias.
6355         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6357         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6358         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
6359         defined.
6361 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
6363         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6364         align stack for call if pltexit is to be used.
6366         [BZ #3924]
6367         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6368         align for function call in case pltexit has to be called later.
6370         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6371         implicit atomic operation when storing function pointer.
6372         (_dl_runtime_profile): Likewise.
6374 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6376         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6377         NIS_NOTFOUND.
6379 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6381         [BZ #4566]
6382         * string/strtok.c: Fix typo in comment.
6384         [BZ #4582]
6385         * debug/segfault.c: Fix typos in comments.
6387         [BZ #4588]
6388         * stdio-common/tempnam.c: Fix comment, it is not checked that
6389         TMPDIR points to a writable directory.
6391         [BZ #4726]
6392         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6393         memory allocated for the name server address.
6395         [BZ #4946]
6396         * nscd/connections.c (handle_request): Using sendfile always
6397         requires that mmap is used for the database.
6398         Patch by Petr Baudis <pasky@suse.cz>.
6400         [BZ #4905]
6401         * nscd/hstcache.c (cache_addhst): When reloading an entry which
6402         suddenly has two or more addresses, ignore it and remove the old
6403         entry.
6405         [BZ #4814]
6406         * resolv/res_hconf.c: Prepare for compiling outside libc.
6407         * nscd/res_hconf.c: New file.
6408         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
6409         the new file.
6410         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6411         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6413         * nscd/hstcache.c (cache_addhst): Minimal optimization.
6415         [BZ #4925]
6416         * debug/pcprofiledump.c: Turn on internationalization by calling
6417         setlocale.  Patch mostly by Benno Schulenberg.
6419         [BZ #4936]
6420         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6421         the state.
6422         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6423         * iconvdata/bug-iconv5.c: New file.
6425 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
6427         [BZ #4896]
6428         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6429         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6430         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6431         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6432         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6433         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6434         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6435         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6437 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6439         [BZ #4937]
6440         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6441         lookup loop.  Suggested by John Reiser.
6443 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
6445         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6447 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
6449         * csu/libc-start.c: Don't handle VDSO_SETUP here.
6450         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6451         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6452         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
6453         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6454         to...
6455         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
6457 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
6459         * po/nl.po: Update from translation team.
6461 2007-08-16  Andreas Jaeger  <aj@suse.de>
6463         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6464         Reported by Peter Festner <peter.festner@ewetel.net>.
6466 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6468         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6470 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
6472         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6473         to check for undefined symbols.
6475         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6476         If the syscall fails, set errno to the actual returned error number
6477         rather than EINVAL.
6478         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6479         arguments are incorrect, set errno to EINVAL, if the syscall
6480         fails, set errno to the actual returned error number.
6482         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6483         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6485         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6486         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
6487         file.
6488         (ASI_PNF, ASI_BLK_P): Don't define.
6489         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6490         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
6491         file.
6492         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6493         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
6494         file.
6496 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6498         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6499         FE_UNDERFLOW on Niagara CPUs.
6501         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6502         exceptions.
6504 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
6506         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6507         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6508         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6509         flush should be used or not inside of the function.
6510         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6512         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6513         __thread_start): Use HIDDEN_JUMPTARGET.
6514         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6515         __thread_start): Likewise.
6516         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6518         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6519         Add libc_hidden_proto.
6520         (STRTOF): Add libc_hidden_proto.
6521         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6522         (strtold_l, wcstold_l): Use them as second argument for
6523         long_double_symbol.
6525 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6527         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
6529 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6531         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
6533 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6535         * po/bg.po: New file.  From the translation team.
6537 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6539         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6540         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6541         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6542         when each feature was introduced.
6544         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6545         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6546         (CHECK_HASH): New macro.
6547         (PREPARE_VERSION): Use it.
6549         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6550         prototype if not __ASSUME_PSELECT.
6551         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6552         prototype if not __ASSUME_PPOLL.
6554         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6556         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6557         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6558         is defined.
6560 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
6562         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6563         (_libc_vdso_platform_setup): If vDSO is not available point
6564         __vdso_gettimeofday to the vsyscall.
6565         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6566         __vdso_gettimeofday instead of vsyscall.
6568 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6570         * nscd/servicescache.c: Include kernel-features.h.
6571         * nscd/gai.c: Likewise.
6572         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6573         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6574         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6575         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6576         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6577         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6578         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6579         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6580         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6582 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6584         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6585         and _dl_get_origin defines anymore.
6587         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6588         Build fix for systems which might lack POSIX timer support.
6590         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6591         (_libc_vdso_platform_setup): Mangle function pointers before storing
6592         them.
6593         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6594         Demangle vdso pointer before use.
6595         (INTERNAL_VSYSCALL): Likewise.
6597         * elf/cache.c (primes): Mark as const.
6598         Noted by Roland McGrath.
6600 2007-08-01  Andreas Jaeger  <aj@suse.de>
6601             Jakub Jelinek  <jakub@redhat.com>
6603         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6604         (options): Add option.
6605         (parse_opt): Handle option.
6606         (manual_link): Adjust process_file caller.  Call implicit_soname.
6607         (search_dir): Formatting.  Use and populate auxiliary cache.
6608         (main): Load and save auxiliary cache.
6609         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
6610         stat64 from fstat64 to caller.
6611         (implicit_soname): New function.
6612         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6613         leave *soname as NULL.
6614         * elf/cache.c: Include libgen.h.
6615         (print_entry, print_cache, compare, save_cache, add_to_cache):
6616         Formatting and cleanups.
6617         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6618         aux_cache_file): New structures.
6619         (AUX_CACHEMAGIC): Define.
6620         (primes): New array.
6621         (aux_hash_size, aux_hash): New variables.
6622         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6623         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6624         load_aux_cache, save_aux_cache): New functions.
6625         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6626         (init_aux_cache, search_aux_cache, add_to_aux_cache,
6627         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6628         (process_file): Adjust prototype.
6630 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6632         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6633         with __need_size_t.
6635 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6637         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6638         r_found_version structure as second parameter.
6639         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6640         (_dl_vdso_vsym): Change type of second parameter accordingly.
6641         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6642         (_libc_vdso_platform_setup): Adjust.
6643         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6644         (_libc_vdso_platform_setup): Likewise.
6646         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6647         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6648         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6649         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6650         * csu/libc-start.c: Pretty printing.
6651         Use VDSO_SETUP if defined.
6652         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6653         and let generic code call into _libc_vdso_platform_setup.
6654         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6655         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6656         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6657         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6658         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6659         for GLIBC_PRIVATE.
6660         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6661         (sysdep_rountines): Add dl-vdso.
6663         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6664         of routines.
6666         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6667         attribute_hidden to __vdso_gettimeofday prototype.
6669 2007-08-12  Roland McGrath  <roland@redhat.com>
6671         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6672         From: Karl Berry <karl@freefriends.org>.
6674 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
6676         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6677         an atime update for the files we read.
6679 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6681         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6683         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
6684         instead of mkstemp.
6686         * misc/Makefile (routines): Add mkostemp and mkostemp64.
6687         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6688         * misc/mkostemp.c: New file.
6689         * misc/mkostemp64.c: New file.
6690         * stdlib/stdlib.h: Declare the new functions.
6691         * sysdeps/posix/tempname.c: Add new parameter which is added to
6692         the flags for open.  Remove __GT_BIGFILE handling.
6693         * stdio-common/tempname.c: Likewise.
6694         * include/stdio.h: Adjust __gen_tempname prototype.
6695         Renumber __GT_* constants.
6696         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6697         * misc/mkdtemp.c: Likewise.
6698         * misc/mkstemp.c: Likewise.
6699         * misc/mkstemp64.c: Likewise.
6700         * misc/mktemp.c: Likewise.
6701         * stdio-common/tempnam.c: Likewise.
6702         * stdio-common/tmpfile.c: Likewise.
6703         * stdio-common/tmpfile64.c: Likewise.
6704         * stdio-common/tmpnam.c: Likewise.
6705         * stdio-common/tmpnam_r.c: Likewise.
6707 2007-08-10  Roland McGrath  <roland@frob.com>
6709         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6710         New macros.
6711         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6712         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6714 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6716         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6717         possible.
6718         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6719         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6720         * nss/nss_files/files-have_o_cloexec.c: New file.
6722         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6723         available.
6725 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6727         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6728         ___new_wcstold_l): New weak aliases.
6729         (strtold_l, wcstold_l): Use them as second argument for
6730         long_double_symbol.
6732 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6734         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6735         register in test for error.
6737         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6738         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6740         * po/sv.po: Update from translation team.
6742 2007-08-06  Roland McGrath  <roland@redhat.com>
6744         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6745         Remove __strto*_l inlines.
6746         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6747         * stdlib/strtod.c: Add libc_hidden_def.
6748         * stdlib/strtod_l.c: Likewise.
6749         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6750         for __new_strtold and __new_wcstold.
6751         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6752         __STRTOF, STRTOF.
6753         * stdlib/strtol.c: Add libc_hidden_def.
6754         * stdlib/strtol_l.c: Likewise.
6755         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6756         strtoq.
6758         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6760         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6761         * scripts/data/localplt-generic.data: ... here.
6762         * elf/Makefile (check-data): Get generic file if no other.
6763         ($(objpfx)check-localplt.out): Make target unconditional.
6765         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6766         Use ElfW(Nhdr).
6768 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6770         * po/zh_CN.po: Updated translation from translation team.
6772 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6775         Don't use CGOTSETUP and CGOTRESTORE macros.
6777 2007-08-04  Roland McGrath  <roland@redhat.com>
6779         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6781 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6783         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6784         __extension__ around the whole statement expression.
6786 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6788         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6789         elements during initialization.
6791         * po/pl.po: Updated translation from translation team.
6792         * po/tr.po: Likewise.
6793         * po/nl.po: Likewise.
6795 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6797         * rt/aio.h: Add __nonnull attributes.
6799 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6801         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6802         * stdlib/Makefile (tests): Add tst-strtod5.
6803         (tst-strtod5-ENV): New.
6804         * stdlib/tst-strtod5.c: New file.
6806         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6807         failed.
6808         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6809         on failure.
6811         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6812         allocated.
6814 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6816         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6817         numbers.
6819 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6821         * io/Makefile (aux): Add have_o_cloexec.
6822         * include/fcntl.h: Declare __have_o_cloexec.
6823         * io/have_o_cloexec.c: New file.
6824         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6825         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6826         fcntl call if not necessary.
6827         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6828         of local variable.
6830         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6831         Avoid memset, add explicit initialization.
6832         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6833         to the end and change into zero-sized array.
6834         Move lock member to fill a hole on 64-bit platforms.
6836         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6837         inline functions.
6838         * include/stdlib.h: Add __strto*_internal prototypes here.
6839         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6840         inline functions.
6841         * include/wchar.h: Add __wcsto*_internal prototypes.
6842         * sysdeps/generic/inttypes.h: No need to protect the declaration
6843         of the __strto*_internal and __wcsto*_internal members here.
6845         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6847 2007-08-02  Roland McGrath  <roland@redhat.com>
6849         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6850         $(inst_bindir)/getconf if possible.
6852         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6853         (generated): Add it.
6854         ($(inst_libexecdir)/getconf): Use it.
6856 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6858         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6859         /proc is faster and sufficient.  /sys is still needed for
6860         __get_nprocs_conf.
6862 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6864         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6865         syscall as __fallocate64.
6866         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6867         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6869 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6871         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6872         value.
6874         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6875         if off_t is different rank from size_t.
6877         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6878         uw_frame_state_for): Avoid type punning warnings.
6879         * sysdeps/generic/unwind-dw2-fde-glibc.c
6880         (_Unwind_IteratePhdrCallback): Likewise.
6881         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6882         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6883         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6884         pointers.
6886 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6888         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6889         total processors using sysfs.
6890         (__get_nprocs): Use sysfs to determine which processors are online.
6892 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6894         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6895         syscall arguments count.
6897         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6899 2007-07-30  Roland McGrath  <roland@redhat.com>
6901         * manual/libc.texinfo: Update copyrights, formatting magic, and
6902         @dircategory.  From Karl Berry <karl@freefriends.org>.
6904 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6906         [BZ #4860]
6907         * io/Makefile (headers): Add bits/fcntl2.h.
6909         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6910         using gcc builtin.
6911         (__CPU_EQUAL_S): Likewise.
6913         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6914         (tests): Add tst-cpuset.
6915         * posix/sched_cpualloc.c: New file.
6916         * posix/sched_cpufree.c: New file.
6917         * posix/tst-cpuset.c: New file.
6918         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6919         GLIBC_2.7.
6920         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6921         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6922         macros.  Define CPU_*_S macros.
6924 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6926         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6927         entry.
6929         [BZ #4858]
6930         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6931         #.0g and value rounded to 1.0.
6932         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6934 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6936         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6937         for int_frac_digits and frac_digits.
6939         * login/logout.c (logout): Avoid aliasing violation.
6940         * login/logwtmp.c (logwtmp): Likewise.
6942         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6944         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6945         to avoid warning.
6946         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6947         warning.
6948         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6949         warning.
6950         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6951         to avoid warnings.
6953         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6954         void **.
6955         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6957         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6958         char * to avoid warning.
6959         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6961         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6963         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6964         allocate_arrays): Cast second argument to charmap_find_symbol
6965         to char * to avoid warnings.
6967         * locale/programs/repertoire.c (repertoire_new_char): Change
6968         from_nr, to_nr and cnt to unsigned long, adjust printf format
6969         string.
6971         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6972         Cast second argument to new_element to char * to avoid warnings.
6974         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6976         * intl/gettextP.h (struct loaded_domain): Change plural to const
6977         struct expression *.
6978         * intl/plural-eval.c (plural_eval): Change first argument to
6979         const struct expression *.
6980         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6981         argument to const struct expression **.
6982         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6983         prototypes.
6984         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6985         in call to __gettext_free_exp.
6987         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6988         unitialized wstring/wpattern var warnings.
6990         * posix/runtests.c (struct a_test): Make data field const char *.
6992         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6993         vars if not LDBL_MANT_DIG >= 106.
6995         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6997         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6998         __find_specmb to avoid warning.
7000         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7002         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7003         to avoid warnings.
7005         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7006         initializer.
7008         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7009         tv var when it will be actually used.
7011         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7012         to avoid warnings.
7014         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7015         char array resp. pointer.
7016         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7017         char array.
7018         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7019         to const unsigned char **.
7020         (ucs4_to_cns11643): Change second argument to unsigned char *.
7021         * iconvdata/euc-tw.c (BODY): Change endp type to
7022         const unsigned char *.
7023         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7024         to unsigned char *.
7025         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7026         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7027         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7028         types to unsigned char pointers/arrays instead of char.
7029         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7030         to unsigned char *.
7031         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7032         * iconvdata/jis0212.h: Include assert.h.
7033         (ucs4_to_jisx0212): Change second argument to unsigned char *.
7034         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7035         of trying to handle that.
7036         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7037         shut up a warning.
7038         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7039         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7040         two dimensional const unsigned char arrays.
7041         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7042         Initialize endp to inptr to shut up a warning.
7044 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7046         [BZ #4772]
7047         * time/strptime_l.c (__strptime_internal): Silently ignore
7048         strftime modifiers and field width in recursive calls.
7050         * include/time.h (enum ptime_locale_status): Remove.
7051         (__strptime_internal): Remove decided and era_cnt arguments,
7052         add statep argument.
7053         * time/strptime_l.c (__strptime_internal): Remove decided
7054         and era_cnt arguments, add statep argument.  Don't recompute
7055         any fields in recursive calls, only update caller's tm
7056         and state, if recursive call fails, don't change tm nor
7057         any state.
7058         (get_alt_number): Adjust.
7059         (recursive): Adjust caller.
7060         (strptime): Likewise.
7061         * time/strptime.c (strptime): Likewise.
7063 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
7065         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7066         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7067         if from and to charsets are the same.
7068         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7069         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7070         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7072 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7074         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7075         Don't define wint_t when __need_mbstate_t unless it
7076         is necessary.
7077         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7078         in the typedef if possible.
7079         * wctype/wctype.h (wint_t): Define by including
7080         wchar.h with __need_wint_t instead of including stddef.h
7081         with __need_wint_t and as fallback definining it ourselves.
7082         * iconv/gconv.h (__need_wint_t): Define before including
7083         wchar.h.
7084         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7085         or _GLIBCPP_USE_WCHAR_T.
7086         (__need_wchar_t): Don't define
7087         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7088         (__need_wint_t): Don't define before including stddef.h,
7089         define before including wchar.h only if _LIBC or
7090         _GLIBCPP_USE_WCHAR_T.
7091         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7092         * sysdeps/mach/hurd/_G_config.h: Likewise.
7093         * sysdeps/generic/_G_config.h: Likewise.
7094         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7095         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7096         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7097         if _LIBC or _GLIBCPP_USE_WCHAR_T.
7099 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7101         * sysdeps/posix/posix_fallocate64.c: Undefine
7102         __posix_fallocate64_l64 before alias handling.
7103         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7104         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7105         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7106         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7108         * io/tst-posix_fallocate.c: Include <fcntl.h>.
7110 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
7112         * locale/programs/ld-collate.c (atwc): New variable.
7113         (add_to_tablewc): New toplevel function, moved from collate_output.
7114         (collate_output): Remove add_to_tablewc nested function.
7116         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7117         (name_insert): New function.
7118         (write_output): Remove hash_table and hash_size vars and name_insert
7119         nested function.
7121 2007-07-24  Roland McGrath  <roland@redhat.com>
7123         * Makerules (install-others-programs-nosubdir): New target.
7124         (install-no-libc.a-nosubdir): Depend on it.
7126         * iconv/Makefile (install-others-programs): Set this instead of
7127         install-others.
7128         * login/Makefile (install-others-programs): Likewise.
7129         * posix/Makefile (install-others-programs): Likewise.
7131         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7132         dependencies.
7134 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
7136         * io/Makefile (tests): Add tst-posix_fallocate.
7137         * io/tst-posix_fallocate.c: New file.
7139         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7140         __ASSUME_FALLOCATE.
7142 2007-07-22  Roland McGrath  <roland@frob.com>
7144         * hurd/getdport.c: Add missing copyright year update.
7146         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7147         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7149 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
7151         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7153         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7154         O_CLOEXEC is needed.
7155         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7156         Avoid additional fcntl to set O_CLOEXEC if not needed.
7157         * nis/nss_compat/compat-initgroups.c: Likewise.
7158         * nis/nss_compat/compat-pwd.c: Likewise.
7159         * nis/nss_compat/compat-spwd.c: Likewise.
7161 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7163         [BZ #3665]
7164         * manual/errno.texi: Change ECANCELED value to 119.
7166         [BZ #4610]
7167         * mach/lock-intern.h: Include <sys/cdefs.h>.
7169         [BZ #4178]
7170         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7171         reading A.
7173         [BZ #4126]
7174         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7175         to __sigsuspend.
7177         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7179 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
7181         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7182         `__ASSEMBLER__'.
7183         * sysdeps/mach/hurd/i386/tls.h: Likewise.
7185 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
7187         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7188         descriptor received from nscd.
7190         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7192         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
7193         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7194         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7195         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7196         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7197         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7199 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7201         [BZ #4816]
7202         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7204         [BZ #4813]
7205         * login/forkpty.c (forkpty): Close master and slave fds on
7206         fork failure.  Patch by
7207         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7209 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
7211         * include/features.h (__USE_ISOC95): New define.
7212         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7213         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7214         for -std=iso9899:199409.
7215         * CONFORMANCE: Remove comments about unsupported AMD1.
7217 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7219         * sysdeps/ia64/sched_cpucount.c: New file.
7220         * sysdeps/powerpc/sched_cpucount.c: New file.
7222         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7223         __BEGIN_DECLS/__END_DECLS around the prototype.
7224         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
7225         pointer to const cpu_set_t.
7227         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7228         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7229         __need_size_t and include stddef.h.
7230         * sysvipc/sys/msg.h: Likewise.
7231         * posix/sched.h: Likewise.
7232         * hurd/hurd/signal.h (__need_size_t): Define.
7234         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7235         neither does signal.h in pedantic ISO C namespaces.  stdio.h
7236         no longer defines wint_t or wchar_t.
7238         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7239         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7240         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7241         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7242         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7243         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7244         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7245         * debug/printf_chk.c (__printf_chk): Likewise.
7246         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7247         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7249         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7250         Define.
7252         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7253         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7255 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
7257         [BZ #4792]
7258         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7259         * malloc/malloc.h (realloc): Likewise.
7261         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7262         if one of proc_file_chain streams has that fileno.
7263         * stdio-common/Makefile (tests): Add tst-popen2.
7264         * stdio-common/tst-popen2.c: New test.
7266 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
7268         * elf/ldconfig.c: Allow GPLv2 or any later version.
7269         * elf/readlib.c: Likewise.
7270         * elf/chroot_canon.c: Likewise.
7271         * elf/cache.c: Likewise.
7272         * nscd/mem.c: Likewise.
7273         * nscd/getpwuid_r.c: Likewise.
7274         * nscd/grpcache.c: Likewise.
7275         * nscd/aicache.c: Likewise.
7276         * nscd/getsrvbynm_r.c: Likewise.
7277         * nscd/nscd.c: Likewise.
7278         * nscd/servicescache.c: Likewise.
7279         * nscd/getsrvbypt_r.c: Likewise.
7280         * nscd/initgrcache.c: Likewise.
7281         * nscd/gethstbyad_r.c: Likewise.
7282         * nscd/gethstbynm2_r.c: Likewise.
7283         * nscd/getgrnam_r.c: Likewise.
7284         * nscd/nscd_setup_thread.c: Likewise.
7285         * nscd/getpwnam_r.c: Likewise.
7286         * nscd/gai.c: Likewise.
7287         * nscd/connections.c: Likewise.
7288         * nscd/dbg_log.c: Likewise.
7289         * nscd/cache.c: Likewise.
7290         * nscd/hstcache.c: Likewise.
7291         * nscd/nscd_conf.c: Likewise.
7292         * nscd/getgrgid_r.c: Likewise.
7293         * nscd/pwdcache.c: Likewise.
7294         * catgets/gencat.c: Likewise.
7295         * locale/programs/linereader.h: Likewise.
7296         * locale/programs/locarchive.c: Likewise.
7297         * locale/programs/ld-paper.c: Likewise.
7298         * locale/programs/locfile-kw.h: Likewise.
7299         * locale/programs/ld-address.c: Likewise.
7300         * locale/programs/xmalloc.c: Likewise.
7301         * locale/programs/ld-time.c: Likewise.
7302         * locale/programs/localedef.c: Likewise.
7303         * locale/programs/simple-hash.c: Likewise.
7304         * locale/programs/xstrdup.c: Likewise.
7305         * locale/programs/ld-numeric.c: Likewise.
7306         * locale/programs/locfile-kw.gperf: Likewise.
7307         * locale/programs/ld-collate.c: Likewise.
7308         * locale/programs/charmap-kw.gperf: Likewise.
7309         * locale/programs/charmap.h: Likewise.
7310         * locale/programs/charmap-kw.h: Likewise.
7311         * locale/programs/config.h: Likewise.
7312         * locale/programs/locfile.c: Likewise.
7313         * locale/programs/ld-ctype.c: Likewise.
7314         * locale/programs/charmap.c: Likewise.
7315         * locale/programs/ld-messages.c: Likewise.
7316         * locale/programs/repertoire.h: Likewise.
7317         * locale/programs/locale.c: Likewise.
7318         * locale/programs/ld-name.c: Likewise.
7319         * locale/programs/linereader.c: Likewise.
7320         * locale/programs/locfile.h: Likewise.
7321         * locale/programs/3level.h: Likewise.
7322         * locale/programs/ld-monetary.c: Likewise.
7323         * locale/programs/ld-measurement.c: Likewise.
7324         * locale/programs/charmap-dir.c: Likewise.
7325         * locale/programs/ld-identification.c: Likewise.
7326         * locale/programs/localedef.h: Likewise.
7327         * locale/programs/charmap-dir.h: Likewise.
7328         * locale/programs/repertoire.c: Likewise.
7329         * locale/programs/simple-hash.h: Likewise.
7330         * locale/programs/ld-telephone.c: Likewise.
7331         * locale/programs/locale-spec.c: Likewise.
7332         * locale/programs/locfile-token.h: Likewise.
7333         * posix/getconf.c: Likewise.
7334         * iconv/dummy-repertoire.c: Likewise.
7335         * iconv/iconv_charmap.c: Likewise.
7336         * iconv/iconvconfig.c: Likewise.
7337         * iconv/iconv_prog.c: Likewise.
7338         * malloc/memusagestat.c: Likewise.
7339         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7341 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7343         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7344         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7345         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7346         check for the first argument.
7348 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
7350         [BZ #4775]
7351         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7352         (__tgmath_real_type): Fix if expr is const int or other const
7353         qualified integral type.
7354         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7355         expressions and handle const qualified arguments.
7356         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7357         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7358         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7359         statement expressions.
7360         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7361         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7362         (__TGMATH_UNARY_IMAG): Define.
7363         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7364         * math/Makefile (tests): Add test-tgmath2.
7365         (CFLAGS-test-tgmath2.c): Add.
7366         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7367         count_cfloat, count_cldouble): New variables.
7368         (NCCALLS): Define.
7369         (main): Check number of complex calls as well.
7370         (F(compile_test)): Add complex tests and tests with const qualified
7371         arguments.
7372         (y, z, ccount): Define.
7373         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7374         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7375         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7376         F(cproj)): New functions.
7377         * math/test-tgmath2.c: New test.
7379 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
7381         [BZ #4776]
7382         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7383         RPATH etc. as "/" rather than "", don't segfault on empty paths,
7384         instead output ".".
7385         * dlfcn/Makefile (distribute): Add glreflib3.c.
7386         (module-names): Add glreflib3.
7387         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7388         glreflib1.so.
7389         (LDFLAGS_glreflib3.so): New.
7390         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7391         glreflib1.so.
7392         * dlfcn/glreflib3.c: New file.
7394         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7395         returned -1, return NULL.
7396         * intl/explodename.c (_nl_explode_name): Return -1 if
7397         _nl_normalize_codeset failed.
7399 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
7401         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7402         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
7403         and avoid branch misspredicts for > 31 bytes memset case.
7404         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7405         Remove toc ref to __cache_line_size.
7407         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7408         to get ISA-V2.0 branch hints.
7409         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7410         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7411         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7412         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7413         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7414         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7415         Remove toc ref to __cache_line_size.
7417         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7418         Include math_ldbl_opt.h.
7420 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
7422         [BZ #4773]
7423         * time/strptime_l.c (__strptime_internal): Implement greedy
7424         matching of weekday and month names.
7426 2007-07-09  Roland McGrath  <roland@redhat.com>
7428         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7429         (ELF_NOTE_ABI): Use it.
7430         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7432 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
7434         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7435         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7437 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
7439         [BZ #4745]
7440         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7441         in loop to look for conversion specifier to avoid testing of
7442         wrong errno value.
7443         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7444         * stdio-common/bug18.c: New file.
7445         * stdio-common/bug18a.c: New file.
7446         * stdio-common/bug19.c: New file.
7447         * stdio-common/bug19a.c: New file.
7449 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
7451         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7452         running awk script.
7454 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
7456         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7457         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
7458         Return NULL if mmap failed instead of asserting it does not.
7459         (calloc): Check for integer overflow.
7461         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7462         than LONG_MAX / 10.
7464 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
7466         [BZ #4702]
7467         * nis/nss-default.c: Include errno.h.
7468         (init): Preserve errno.
7470 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
7472         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7474 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
7476         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7478 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7480         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7482 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7484         * sysdeps/s390/dl-procinfo.c: New file.
7485         * sysdeps/s390/dl-procinfo.h: New file.
7486         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7488 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
7490         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7491         in PT_NOTE segments with multiple notes.
7492         * elf/readelflib.c (process_elf_file): Likewise.
7494 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
7496         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7497         ISO C compliant.
7499 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7501         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7503 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
7505         * include/link.h: Don't include rtld-lowlevel.h.
7506         (struct link_map): Remove l_scope_lock.
7507         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7508         (_dl_scope_free_list): New field (variable) in _rtld_global.
7509         (DL_LOOKUP_SCOPE_LOCK): Remove.
7510         (_dl_scope_free): New prototype.
7511         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7512         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7513         (_dl_profile_fixup): Likewise.
7514         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
7515         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7516         THREAD_GSCOPE_RESET_FLAG around it.
7517         * elf/dl-close.c (_dl_close_worker): Don't use
7518         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
7519         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
7520         scopes were queued or if l_scope_mem has been abandoned.
7521         * elf/dl-open.c (_dl_scope_free): New function.
7522         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
7523         * elf/dl-support.c (_dl_scope_free_list): New variable.
7524         * elf/dl-lookup.c (add_dependency): Remove flags argument.
7525         Remove DL_LOOKUP_SCOPE_LOCK handling.
7526         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
7527         handling.
7528         * elf/dl-object.c (_dl_new_object): Don't use
7529         __rtld_mrlock_initialize.
7531 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7533         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7534         to fill in holes
7535         (rtld_global_ro): Likewise.
7537 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7539         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7540         Move PT_LOAD checking to...
7541         (_dl_addr_inside_object): ... here, new function.
7542         * elf/dl-sym.c (do_sym): If not l_contiguous,
7543         call _dl_addr_inside_object.
7544         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7545         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7546         * elf/dl-open.c (dl_open_worker): Likewise.
7547         (_dl_addr_inside_object): New function if IS_IN_rtld.
7548         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7549         holes are present or are PROT_NONE protected.
7550         * include/link.h (struct link_map): Add l_contiguous field.
7551         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7553 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7554             Tomas Janousek  <tjanouse@redhat.com>
7555             Ulrich Drepper  <drepper@redhat.com>
7557         [BZ #4647]
7558         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
7559         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7560         socket.
7561         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
7562         unused member a bitmap.
7563         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7564         servers are configured.
7566 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7568         * elf/rtld.c (dl_main): Don't call init_tls more than once.
7570 2007-06-17  Andreas Schwab  <schwab@suse.de>
7572         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7574 2007-06-16  Andreas Jaeger  <aj@suse.de>
7576         [BZ #4125]
7577         * sysdeps/unix/sysv/linux/sys/ptrace.h
7578         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7579         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7580         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7581         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7582         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7583         Define.
7584         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7585         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7586         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7587         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7589 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
7591         [BZ #4599]
7592         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7593         determining whether there are IPv4/IPv6 addresses, ignore loopback
7594         addresses.
7596 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7598         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7599         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7600         as the return type.  Change type of "r" variable to CMPtype.
7601         * soft-fp/eqsf2.c (__eqsf2): Likewise.
7602         * soft-fp/eqtf2.c (__eqtf2): Likewise.
7603         * soft-fp/gedf2.c (__gedf2): Likewise.
7604         * soft-fp/gesf2.c (__gesf2): Likewise.
7605         * soft-fp/getf2.c (__getf2): Likewise.
7606         * soft-fp/ledf2.c (__ledf2): Likewise.
7607         * soft-fp/lesf2.c (__lesf2): Likewise.
7608         * soft-fp/letf2.c (__letf2): Likewise.
7609         * soft-fp/unorddf2 (__unorddf2): Likewise.
7610         * soft-fp/unordsf2 (__unordsf2): Likewise.
7611         * soft-fp/unordtf2 (__unordtf2): Likewise.
7613 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
7615         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7616         make sure gcc doesn't mess around with this.
7618 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7620         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7622 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
7624         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7625         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7626         at most once per _dl_close_worker.
7628 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7630         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7631         __sched_cpucount as const.
7632         * posix/sched_cpucount.c: Adjust.
7634         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7635         instruction for counting bits.
7636         * sysdeps/x86_64/sched_cpucount.c: New file.
7638 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7640         * configure.in: Avoid variable named BASH.
7641         * config.make.in: Likewise.
7642         Patch in part by Mike Frysinger.
7644 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7646         [BZ #4586]
7647         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7648         pseudo-zeros as zero.
7649         * sysdeps/x86_64/ldbl2mpn.c: New file.
7650         * sysdeps/ia64/ldbl2mpn.c: New file.
7652 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7654         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7655         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7656         Remove unreachable code at the end.
7658 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7660         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7661         ldbl-128ibm in comment.
7662         (fpclassifyl): Correct classification of denormals.
7663         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7664         return value for MIN denormal. Rewrite using long double math too
7665         correctly handle denormals and canonicalize the results.
7667 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
7669         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7670         (__mpn_construct_long_double): Fix conversion where result ought
7671         to be smaller than __LDBL_MIN__, or the low double should be
7672         denormal.  Fix decision where to negate low double - honor round
7673         to even rules.
7674         * stdio-common/tst-sprintf2.c: Include string.h.
7675         (COMPARE_LDBL): Define.
7676         (TEST): Also test whether a string hexadecimal float representation
7677         can be parsed back to the number.
7678         (main): Add a couple of further tests.
7680 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7682         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7683         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7684         is non-zero, but smaller than 2 * __DBL_MIN__.
7685         * stdio-common/tst-sprintf2.c: New test.
7686         * stdio-common/Makefile (tests): Add tst-sprintf2.
7688         * math/test-misc.c (main): Don't run last batch of tests with
7689         IBM long double format.
7691 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7693         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7694         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7695         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7696         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7697         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7698         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7699         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7700         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7701         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7702         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7705         New file.
7706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7707         New file.
7708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7709         New file.
7710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7711         New file.
7712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7713         New file.
7714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7716         New file.
7717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7718         New file.
7719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7720         New file.
7721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7722         New file.
7723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7724         New file.
7726 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7728         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7729         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7730         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7731         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7732         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7733         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7734         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7735         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7737 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7739         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7740         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7741         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7742         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7743         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7744         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7745         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7746         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7748 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7750         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7751         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7752         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7753         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7755 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7757         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7758         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7760 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7762         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7763         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7764         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7765         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7767 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7769         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7770         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7772 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7774         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7775         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7777         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7778         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7779         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7780         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7782 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7784         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7785         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7786         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7787         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7789 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7791         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7792         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7793         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7794         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7795         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7796         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7798 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7800         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7801         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7802         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7803         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7805 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7807         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7808         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7809         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7810         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7811         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7812         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7813         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7814         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7815         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7816         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7817         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7818         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7819         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7820         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7821         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7822         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7824 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7826         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7827         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7829 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7831         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7832         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7834 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7836         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7837         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7838         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7839         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7840         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7841         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7842         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7843         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7844         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7845         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7847 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7849         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7851 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7853         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7854         branch miss-predicts. Ensure that cache line crossing does not impact
7855         dispatch grouping.
7857 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7859         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7860         "../../powerpc32/power4/memcopy.h".
7861         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7862         "../../powerpc32/power4/wordcopy.c".
7864 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7866         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7867         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7868         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7869         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7870         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7871         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7873 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7875         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7877 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7879         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7880         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7881         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7882         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7883         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7884         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7885         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7886         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7888 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7890         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7892 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7894         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7895         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7896         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7897         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7898         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7899         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7900         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7902 2007-05-29  Roland McGrath  <roland@redhat.com>
7904         * po/Makefile (po-sed-cmd): New variable.
7905         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7907 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7909         * crypt/md5-crypt.c: Fix comment.
7911         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7912         of crashing.  When this is the case or if the reply is malformed,
7913         don't try to close the new file descriptor since it does not
7914         exist.
7915         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7917 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7919         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7920         if __NR_utimensat is not defined.
7922 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7924         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7926 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7928         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7929         (open): Fix comment typos.  Don't call __open_2 if flags
7930         is a compile time constant without O_CREAT.
7931         (__open64_2): Add nonnull attribute.
7932         (open64): Fix comment typos.  Don't call __open64_2 if flags
7933         is a compile time constant without O_CREAT.
7934         (__openat_2): Add nonnull attribute, fix nonnull attribute
7935         on redirect.
7936         (openat): Fix comment typos.  Don't call __openat_2 if flags
7937         is a compile time constant without O_CREAT.
7938         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7939         on redirect.
7940         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7941         is a compile time constant without O_CREAT.
7943 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7945         * Makerules (sysd-rules): Define PTW for ptw-* files.
7946         * Versions: Define GLIBC_2.7 for libc.
7947         * include/stdio.h: Declare __fortify_fail.
7948         * debug/fortify_fail.c: New file.
7949         * debug/Makefile (routines): Add fortify_fail.
7950         * debug/chk_fail.c: Use __fortify_fail.
7951         * debug/stack_chk_fail.c: Likewise.
7952         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7953         __openat64_2 for GLIBC_2.7.
7954         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7955         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7956         and fails if necessary.
7957         * io/open64.c: Likewise.
7958         * io/openat.c: Likewise.
7959         * io/openat64.c: Likewise.
7960         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7961         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7962         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7963         * io/bits/fcntl2.h: New file.
7964         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7965         __openat64_2.
7966         * include/bits/fcntl2.h: New file.
7967         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7968         Add open_2.
7969         * sysdeps/unix/sysv/linux/open_2.c: New file.
7971 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7973         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7974         as second parameter to handle_intel.
7976         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7977         the entry.
7979         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7980         handling to ...
7981         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7982         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7983         cacheinfo.
7984         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7985         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7986         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7988         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7990 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7992         [BZ #4525]
7993         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7994         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7995         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7997         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7999         [BZ #4514]
8000         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8001         reinitialize workend at the start of each do_positional format spec
8002         loop, free workstart before do_positional loops.
8003         (printf_unknown): Fix size of work_buffer.
8004         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8006         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8007         (public_sET_STATe): If ms->version < 3, put all chunks into
8008         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8009         chunks.
8011         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8012         * malloc/hooks.c: Likewise.
8013         * malloc/arena.c: Likewise.
8014         * malloc/malloc.c (do_check_malloc_state): Don't assert
8015         n_mmaps is not greater than n_mmaps_max.  This removes the need
8016         for the previous change.
8018         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8019         2007-05-07 commit.
8021 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
8023         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8024         Define for kernel >= 2.6.22.
8026 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
8028         * elf/dl-close.c (_dl_close_worker): When removing object from
8029         global scope, wait for all lookups to finish afterwards.
8030         * elf/dl-open.c (add_to_global): When global scope array must
8031         grow, allocate a new one and free old array only after all
8032         lookups finish.
8033         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8034         (_dl_lookup_symbol_x): Likewise.
8035         * elf/dl-support.c: Define _dl_wait_lookup_done.
8036         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8037         _dl_wait_lookup_done.
8039         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8040         not overlapping with arena.
8042         * malloc/mcheck.c (reallochook): If size==0, free the block.
8044         * rt/tst-shm.c: Use fstat64 instead of fstat.
8046         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8047         __NR_sync_file_range is not defined.
8049 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
8051         Dummy files to prevent stub versions from being used.
8052         * sysdeps/x86_64/fpu/k_cosl.c: New file.
8053         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8054         * sysdeps/x86_64/fpu/k_sinl.c: New file.
8055         * sysdeps/x86_64/fpu/k_tanl.c: New file.
8057         * version.h (VERSION): Set to 2.6.90.
8059 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
8061         * version.h (VERSION): Define to 2.6.
8062         * include/features.h (__GLIBC_MINOR__): Define to 6.
8064         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8066         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8067         sizes.
8069 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
8071         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8072         number of mmaps.  n_mmaps_max is the target.
8073         * malloc/hooks.c: Likewise.
8074         * malloc/arena.c: Likewise.
8076 2007-05-12  Andreas Jaeger  <aj@suse.de>
8078         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8079         getpid.
8081 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
8083         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8084         adding new variables.
8086         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
8087         optimize.  Completely extend global scope array before making the
8088         new entries visible.
8090 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
8092         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8093         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8094         tst-getcpu.
8096         * include/link.h: Move l_version and l_nversion members around to
8097         fill gaps.
8099         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8101         * sysdeps/unix/sysv/linux/sched_setaffinity.c
8102         (__sched_setaffinity_new): If syscall was successful and
8103         RESET_VGETCPU_CACHE is defined, use it before returning.
8104         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8106         * io/sys/stat.h: Make sure struct timespec is defined for
8107         __USE_ATFILE.
8109         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8110         UTIME_OMIT.
8111         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8112         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8113         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8114         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8115         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8116         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8117         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8118         * io/sys/stat.h: Declare utimensat, futimens.
8119         * io/utimensat.c: New file.
8120         * io/futimens.c: New file.
8121         * sysdeps/unix/sysv/linux/utimensat.c: New file.
8122         * sysdeps/unix/sysv/linux/futimens.c: New file.
8123         * io/Makefile (routines): Add utimensat, futimens.
8124         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8125         * sysdeps/unix/sysv/linux/lutimes.c: New file.
8126         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8127         available.
8129         * include/sys/cdefs.h: Redefine __nonnull so that test for
8130         incorrect parameters in the libc code itself are not omitted.
8132 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
8134         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8135         exception in addition to inexact when asked to raise only FE_INEXACT.
8137         [BZ #3427]
8138         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8139         in *envp.
8141 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8143         [BZ #4403]
8144         * string/strfry.c (strfry): Make result more random.
8146 2007-05-07  Richard Henderson  <rth@redhat.com>
8148         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8149         if __NO_LONG_DOUBLE_MATH.
8150         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
8151         available in the compiler, add .arch directive to the assembly.
8153 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
8155         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8156         compat_symbol to GLIBC_2_1.
8157         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8158         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8159         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8160         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8161         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8162         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8163         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8164         libc, not libm.
8165         (__isnanl): New compat_symbol.
8167 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8168             Jakub Jelinek  <jakub@redhat.com>
8170         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8171         (new_heap): Initialize mprotect_size.
8172         (grow_heap): When growing, only mprotect from mprotect_size till
8173         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
8174         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
8176 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
8177             Peter Bergner  <bergner@us.ibm.com>
8179         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
8180         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
8181         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
8182         * sysdeps/powerpc/fpu/fe_mask.c: New file.
8183         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
8184         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
8185         Call __fe_mask_env() if all FP exceptions disabled.
8186         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
8187         from old FPSCR to new fenv to propagate DFP rounding modes.
8188         Call __fe_mask_env() if FP exceptions previously enabled.
8189         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
8190         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
8191         transitioning from all exceptions disabled to any exception enabled
8192         or visa versa.
8193         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8194         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
8195         when transitioning from all exceptions disabled to any exception
8196         enabled or visa versa.
8197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8204 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8206         [BZ #4465]
8207         * posix/unistd.h: Remove __THROW from fdatasync.
8209 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
8211         [BZ #4465]
8212         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8214 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8216         * stdio-common/vfprintf.c (process_string_arg): Optimize
8217         ridiculous precision in wide char code printing multi-byte string.
8218         Reported by Jim Meyering <jim@meyering.net>.
8220         [BZ #4131]
8221         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8222         boundaries to work around systems with overlapping binary loading.
8223         Based on a patch by Suzuki <suzuki@in.ibm.com>.
8225 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
8227         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8228         __mbsnrtowcs after last change.
8230         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8231         (get_ident): Likewise.
8233 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8235         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8236         with setting the sticky bit.
8237         * math/test-misc.c (main): Add more truncation tests.
8239 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
8241         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8242         double in the function declaration.
8243         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8244         double in the function declaration.
8245         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8246         float in the function declaration.
8247         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8248         float in the function declaration.
8250         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8251         denormal operands.  Do not generate FP_EX_DENORM exception.
8252         (FP_UNPACK_RAW_EP): Ditto.
8253         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8254         undefined _FP_UNPACK_RAW_E.
8255         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8256         undefined _FP_UNPACK_RAW_EP.
8257         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8258         undefined _FP_PACK_RAW_E.
8259         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8260         undefined _FP_PACK_RAW_EP.
8262         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8263         _FP_FRAC_COPY_2.
8264         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8265         _FP_FRAC_COPY_4.
8267 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
8268             Jakub Jelinek  <jakub@redhat.com>
8270         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8271         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
8272         this case.
8273         * soft-fp/op-common.h (FP_TRUNC): Ditto.
8275 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8277         * math/test-misc.c (main): Add tests for rounding long double
8278         values close to smallest double denormalized value to double.
8280 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
8282         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8283         condition for truncating to 0.  Set sticky bit for such
8284         truncation.
8286 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
8288         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8289         fixed length array for ignore.
8291 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8293         [BZ #4438]
8294         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8295         stack for large precisions.
8296         * stdio-common/test-vfprintf.c (main): Add test for large
8297         precision.
8299 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
8301         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8302         for exponent 0.
8303         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8305         [BZ #4439]
8306         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8307         account in the size check.
8308         * resolv/tst-inet_ntop.c: New test.
8309         * resolv/Makefile (tests): Add tst-inet_ntop.
8311 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8312             Jakub Jelinek  <jakub@redhat.com>
8314         [BZ #4349]
8315         * malloc/malloc.c: Keep separate list for first blocks on the bin
8316         lists with a given size.  This helps skipping over list elements
8317         we know won't fit in two places.
8318         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8320 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
8322         [BZ #4102]
8323         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8324         label to Teredo tunnel addresses 2001://32.
8326 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
8328         * locale/programs/ld-collate.c (collate_read): Allow order_start
8329         after copy.
8331         * locale/programs/ld-collate.c (collate_read): Fix printing of
8332         error message.
8334         [BZ #3213]
8335         * locale/C-translit.h.in: Add entry for U2044.
8337         [BZ #4342]
8338         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8339         hexa-decimal floats without exponent.
8340         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8342 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8344         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8345         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8346         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8347         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8348         GLIBC_2.6.
8349         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8350         Add sched_getcpu.
8352 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8354         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8355         of 0 after the out_fail label.
8357 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8359         [BZ #4406]
8360         * iconv/gconv_charset.h (strip): Allow ':'.
8361         * iconv/iconv_open.c (iconv_open): Adjust comment.
8363 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8365         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8366         version.
8368 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8370         [BZ #4381]
8371         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8372         alignment of buffer and tmp_buffer.
8373         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8374         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8375         alignment of buffer.
8376         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8377         bigger than INT_MAX.
8378         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
8379         h_errnop arguments.  Fail if buflen is too small.
8380         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8382 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8384         [BZ #4405]
8385         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8386         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
8388 2007-04-22  Roland McGrath  <roland@redhat.com>
8390         * elf/elf.h (NT_PRXFPREG): New macro.
8392 2007-04-19  Andreas Jaeger  <aj@suse.de>
8394         [BZ #3905]
8395         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8396         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8397         Added.
8399 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
8401         * include/sys/mman.h: Mark madvise hidden.
8402         * misc/madvise.c: Add libc_hidden_def.
8404 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
8406         * nis/nis_domain_of.c (__nis_domain_of): New function.
8407         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8408         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8409         * nis/nis_call.c (rec_dirsearch): Likewise.
8410         (first_shoot): Likewise.  Remove search_parent_first argument.
8411         (struct nis_server_cache): Rename search_parent_first field
8412         to search_parent.
8413         (nis_server_cache_search, nis_server_cache_add): Rename
8414         search_parent_first argument to search_parent.
8415         (__nisfind_server): Likewise.  If search_parent, call
8416         __nis_domain_of.
8418 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
8420         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8422 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
8424         [BZ #4368]
8425         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8427 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
8429         [BZ #4364]
8430         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8432 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
8434         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8435         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8436         current number of locales in SUPPORTED.
8437         (create_archive): Initialize serial.
8438         (enlarge_archive): Preserve aliases rather than duplicating
8439         their locrecs.
8441 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8443         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8444         after _IO_un_link, not before it.
8446         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8447         special case handling when wcp == wstartp + 1.  Fix a comment typo.
8448         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8450 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
8452         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8453         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8454         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8455         Remove __THROW.
8456         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8457         _IO_file_xsgetn_maybe_mmap): Likewise.
8458         * libio/oldfileops.c (old_do_write): Likewise.
8459         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8460         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8461         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8462         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8463         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8464         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8465         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8466         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8467         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8468         _IO_file_underflow, _IO_file_underflow_mmap,
8469         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8470         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8471         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8472         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8473         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8474         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8475         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8476         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8477         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8478         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8479         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8480         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8481         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8482         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8483         _IO_adjust_column_internal, _IO_default_uflow_internal,
8484         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8485         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8486         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8487         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8488         _IO_file_close_it_internal, _IO_file_underflow_internal,
8489         _IO_file_overflow_internal, _IO_file_attach_internal,
8490         _IO_file_fopen_internal, _IO_file_sync_internal,
8491         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8492         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8493         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8494         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8495         _IO_seekpos_unlocked): Likewise.
8496         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8497         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8499 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
8501         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8502         argument in xmalloc size computation.
8504 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8506         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8507         math_opt_barrier and math_force_eval macros.
8509 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8511         [BZ #3306]
8512         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8513         * sysdeps/i386/fpu/math_private.h: New file.
8514         * sysdeps/x86_64/fpu/math_private.h: New file.
8515         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8516         math_force_eval macros.  Use "+m" constraint on asm rather than
8517         "=m" and "m".
8518         * math/s_nextafter.c (__nextafter): Likewise.
8519         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8520         Likewise.
8521         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8522         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8523         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8524         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8525         math_opt_barrier and math_force_eval macros.
8526         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8527         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8528         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8529         (__nexttoward): Use math_opt_barrier and
8530         math_force_eval macros.  Use "+m" constraint on asm rather than
8531         "=m" and "m".  Only use asm to force double result if
8532         FLT_EVAL_METHOD is 2.
8533         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8534         (__nexttowardf): Use math_opt_barrier and
8535         math_force_eval macros.  Use "+m" constraint on asm rather than
8536         "=m" and "m".  Only use asm to force double result if
8537         FLT_EVAL_METHOD is not 0.
8538         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8539         (__nexttowardf): Use math_opt_barrier and
8540         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8541         x to float using asm.
8542         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8543         (__nldbl_nexttowardf): Use math_opt_barrier and
8544         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8545         x to float using asm.
8546         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8547         (__nexttowardf): Use math_opt_barrier and math_force_eval
8548         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
8549         * math/bug-nextafter.c (zero, inf): New variables.
8550         (main): Add new tests.
8551         * math/bug-nexttoward.c (zero, inf): New variables.
8552         (main): Add new tests.
8554 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8556         [BZ #3427]
8557         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8558         exceptions both in SW and MXCSR.
8559         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8560         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8561         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8562         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8563         in MXCSR if SSE is available.
8564         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8565         and ldsodefs.h.
8566         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8567         Fix comment typo.
8568         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8569         Return 0 rather than 1.
8570         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8571         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
8572         * math/test-fenv.c (feholdexcept_tests): New function.
8573         (main): Call it.
8575 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
8577         [BZ #3427]
8578         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8579         in SW.
8581 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8583         [BZ #4344]
8584         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8585         Reported by David Anderson <davea42@earthlink.net>.
8587 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
8589         * posix/sys/wait.h: Remove unnecessary forward declaration.
8591 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
8593         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8594         with obj->do_servers after first_shoot.
8596 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
8598         * posix/Makefile (routines): Add sched_cpucount.
8599         (tests): Add tst-cpucount.
8600         * posix/sched_cpucount.c: New file.
8601         * posix/tst-cpucount.c: New file.
8602         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8603         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
8604         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8605         * posix/sched.h: Define CPU_COUNT.
8607 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8609         * posix/fnmatch.c (STRUCT): Define.
8610         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8611         * posix/fnmatch_loop.c (struct STRUCT): New type.
8612         (FCT): Add ends argument.  If ends != NULL and normal * is
8613         seen in the pattern, store current pattern and string pointers
8614         and return.  Adjust recursive calls.
8615         (EXT): Adjust FCT callers.
8616         (STRUCT): Undef at the end of the file.
8617         * posix/Makefile (tests): Add tst-fnmatch2.
8618         * posix/tst-fnmatch2.c: New test.
8620 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8622         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8623         and 1 on failure.
8625         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8626         Change last argument to unsigned int.
8628 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8630         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8632 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8634         * config.h.in (HAVE_LIBCAP): Add.
8635         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8636         sys/capabilities.h.
8637         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8638         free_caps.  Cast away const from 4th cap_set_flag argument.
8640 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8642         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8643         GLIBC_2.6.
8644         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8645         Add sync_file_range.
8646         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8648 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
8650         * sysdeps/powerpc/bits/atomic.h
8651         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8652         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8653         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8654         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8655         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8656         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8657         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8658         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8659         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8660         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8661         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8662         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8663         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8664         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8665         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8666         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8667         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8668         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8669         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8670         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8672 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8674         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8675         (__cache_line_size): Define the variable here.  Add
8676         attribute_hidden, remove weak_extern.
8677         (__libc_start_main): Set __cache_line_size
8678         unconditionally.
8679         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8680         (__cache_line_size): Define the variable here.  Add
8681         attribute_hidden, remove weak_extern.
8682         (DL_PLATFORM_AUXV): Set __cache_line_size
8683         unconditionally.
8684         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8685         weak_extern, add attribute_hidden.
8686         (__elf_machine_runtime_setup): Assume __cache_line_size is always
8687         defined in ld.so.
8688         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8689         definition.
8690         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8692 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8694         [BZ #4276]
8695         * timezone/africa: Update from tzdata2007d.
8696         * timezone/asia: Likewise.
8697         * timezone/australasia: Likewise.
8698         * timezone/backward: Likewise.
8699         * timezone/europe: Likewise.
8700         * timezone/iso3166.tab: Likewise.
8701         * timezone/leapseconds: Likewise.
8702         * timezone/northamerica: Likewise.
8703         * timezone/southamerica: Likewise.
8704         * timezone/zone.tab: Likewise.
8706         * timezone/private.h: Update from tzcode2007d.
8707         * timezone/zdump.c: Likewise.
8708         * timezone/zic.c: Likewise.
8710 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8712         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8713         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8714         variables.
8715         (nis_server_cache_search, nis_server_cache_add): New functions.
8716         (__nisfind_server): Use them.  Add dbp and flags argument, if
8717         call __nisbind_create.
8718         (__nisbind_create): Add server_used and current_ep arguments,
8719         only call __nis_findfastest if server_used is ~0.
8720         (__do_niscall2, __prepare_niscall): Adjust callers.
8721         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8722         ckey_cache_euid, ckey_cache_lock): New variables.
8723         (get_ckey): New function.
8724         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8725         __pmap_getnisport.  Save __pmap_getnisport result in
8726         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8727         key.
8728         * nis/nis_lookup.c (nis_lookup): Likewise.
8729         * nis/nis_table.c (nis_list): Likewise.
8730         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8731         prototypes.
8733         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8734         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8735         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8736         _nss_nisplus_getservbyport_r): Likewise.
8737         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8738         _nss_nisplus_getnetbyaddr_r): Likewise.
8739         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8740         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8741         _nss_nisplus_getntohost_r): Likewise.
8742         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8743         _nss_nisplus_getrpcbynumber_r): Likewise.
8745 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8747         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8748         * configure: Rebuilt.
8750         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8751         bit-fields.
8752         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8754 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8756         [BZ #2831]
8757         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8758         bit-fields.
8760 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8762         * nscd/gai.c: Include alloca.h.
8763         (__libc_use_alloca): Define.
8765 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8767         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8768         smaller scopes.
8769         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8770         (DL_DST_REQUIRED): Adjust user.
8772         * include/dlfcn.h (struct link_map): New forward decl.
8774         * inet/getnameinfo.c: Include stddef.h.
8775         (getnameinfo): Use offsetof.
8777         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8779         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8781         * string/strerror_l.c: Include stdlib.h.
8783         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8784         * config.make.in (gnu89-inline-CFLAGS): New variable.
8785         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8786         -std=gnu99.
8787         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8788         * argp/argp.h: Use it.
8789         * bits/mathinline.h: Likewise.
8790         * bits/sigset.h: Likewise.
8791         * bits/string.h: Likewise.
8792         * ctype/ctype.h: Likewise.
8793         * hurd/hurd.h: Likewise.
8794         * hurd/hurd/fd.h: Likewise.
8795         * hurd/hurd/port.h: Likewise.
8796         * hurd/hurd/signal.h: Likewise.
8797         * hurd/hurd/threadvar.h: Likewise.
8798         * hurd/hurd/userlink.h: Likewise.
8799         * io/sys/stat.h: Likewise.
8800         * libio/bits/stdio.h: Likewise.
8801         * libio/bits/stdio2.h: Likewise.
8802         * mach/lock-intern.h: Likewise.
8803         * mach/mach/mig_support.h: Likewise.
8804         * math/bits/cmathcalls.h: Likewise.
8805         * posix/bits/unistd.h: Likewise.
8806         * socket/bits/socket2.h: Likewise.
8807         * stdlib/bits/stdlib.h: Likewise.
8808         * stdlib/stdlib.h: Likewise.
8809         * string/argz.h: Likewise.
8810         * string/bits/string2.h: Likewise.
8811         * string/bits/string3.h: Likewise.
8812         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8813         * sysdeps/generic/inttypes.h: Likewise.
8814         * sysdeps/generic/machine-lock.h: Likewise.
8815         * sysdeps/generic/machine-sp.h: Likewise.
8816         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8817         * sysdeps/i386/i486/bits/string.h: Likewise.
8818         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8819         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8820         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8821         * sysdeps/mach/i386/machine-lock.h: Likewise.
8822         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8823         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8824         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8825         * sysdeps/s390/bits/string.h: Likewise.
8826         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8827         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8828         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8829         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8830         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8831         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8832         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8833         * wcsmbs/bits/wchar2.h: Likewise.
8834         * wcsmbs/wchar.h: Likewise.
8835         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8836         __extern_inline definition.
8838 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8840         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8841         NULL.
8843         [BZ #3919]
8844         * math/libm-test.inc (log_test): Test -Inf and NaN.
8845         (log10_test, log1p_test, log2_test): Test -Inf.
8846         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8847         FE_INVALID when argument is qNaN.
8848         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8849         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8850         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8851         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8852         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8853         testb $4, %ah and jump if non-zero.
8854         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8855         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8857         [BZ #4101]
8858         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8859         ancestors with the same depths.
8860         Patch by Niels Moeller <nisse@lysator.liu.se>.
8861         (filter_doc): Don't crash if argp is NULL.
8862         * argp/Makefile (tests): Add tst-argp2.
8863         * argp/tst-argp2.c: New test.
8865         [BZ #4130]
8866         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8867         open_not_cancel_2.
8868         (updwtmp_file): Likewise.
8870         [BZ #4181]
8871         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8872         (inet6_opt_append): Don't check extlen is big enough if extbuf
8873         is NULL.
8874         (inet6_opt_finish): Likewise.
8875         * inet/Makefile (tests): Add test-inet6_opt.
8876         * inet/test-inet6_opt.c: New test.
8878         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8879         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8880         NLMSG_ERR.  Instead use a page sized buffer.
8881         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8882         buffer.
8884 2007-03-14  Richard Henderson  <rth@redhat.com>
8886         * sysdeps/alpha/fpu/s_llround.c: New file.
8887         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8888         * sysdeps/alpha/fpu/s_lround.c: New file.
8889         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8890         * sysdeps/alpha/fpu/s_round.c: New file.
8891         * sysdeps/alpha/fpu/s_roundf.c: New file.
8892         * sysdeps/alpha/fpu/s_trunc.c: New file.
8893         * sysdeps/alpha/fpu/s_truncf.c: New file.
8895         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8896         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8897         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8898         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8899         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8900         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8902         * sysdeps/alpha/fpu/s_fmax.S: New file.
8903         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8904         * sysdeps/alpha/fpu/s_fmin.S: New file.
8905         * sysdeps/alpha/fpu/s_fminf.S: New file.
8906         * sysdeps/alpha/fpu/s_isnan.c: New file.
8907         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8908         * sysdeps/alpha/fpu/s_llrint.c: New file.
8909         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8910         * sysdeps/alpha/fpu/s_lrint.c: New file.
8911         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8912         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8913         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8915         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8916         (__fdimf, fdimf, __fdim, fdim): Remove.
8917         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8918         (__isnanf, __isnan, __isnanl): New.
8920 2007-03-13  Richard Henderson  <rth@redhat.com>
8922         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8924 2007-03-13  Richard Henderson  <rth@redhat.com>
8926         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8927         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8928         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8929         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8930         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8931         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8933 2007-03-13  Richard Henderson  <rth@redhat.com>
8935         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8936         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8937         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8938         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8939         Move to dl-auxv.h; initialize instead of extern weak.
8940         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8941         weak symbol.
8942         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8943         Extern instead of initialized.
8945 2007-03-13  Richard Henderson  <rth@redhat.com>
8947         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8948         __sigsuspend_nocancel.
8950 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8952         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8953         172.16/12 address range.
8955 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8957         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8958         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8959         message.
8961 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8963         [BZ #4069]
8964         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8965         earlier.
8966         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8968         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8969         for x qNaN and y either +-inf or non-integer value.
8970         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8971         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8972         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8974 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8976         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8977         from sysdep_headers.
8979 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8981         * time/tzfile.c (find_transition): Instead of a linear search try to
8982         guess the transition index, use a linear search if the result is at
8983         most 10 transitions away from the guess or binary search otherwise.
8985 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8987         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8988         memory reallocation.
8990 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8992         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8993         and fix some typos.
8994         Optimize use of TOLOWER.
8996         [BZ #3325]
8997         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8998         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8999         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9001         [BZ #3458]
9002         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9003         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9005         [BZ #4076]
9006         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9007         (open_dir_stream): Likewise.
9008         * io/Makefile (tests): Add bug-ftw5.
9009         * io/bug-ftw5.c: New file.
9011         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9012         * nscd/servicescache.c (cache_addserv): Likewise.
9014         * nscd/grpcache.c (cache_addgr): In case a record changed on
9015         refresh, adjust key_copy.
9017         [BZ #4074]
9018         * nscd/pwdcache.c (cache_addpw): In case a record changed on
9019         refresh, adjust key_copy.
9021         [BZ #4070]
9022         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
9023         special cases.
9024         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
9026 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
9028         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9029         optimization.
9031         * stdio-common/vfscanf.c: Small cleanups throughout.
9033 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
9035         [BZ #3325]
9036         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9037         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9038         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9039         Patch by Jared Casper <jaredcasper@gmail.com>.
9041         * sysdeps/unix/closedir.c: Outside libc don't use locking.
9042         * sysdeps/unix/opendir.c: Likewise.
9043         * sysdeps/unix/readdir.c: Likewise.
9045         [BZ #2211]
9046         * stdio-common/vfscanf.c: Handle localized digits etc for floating
9047         point numbers.
9048         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9050         * stdio-common/vfscanf.c: Fix problems in width accounting.
9051         * stdio-common/tst-sscanf.c (double_tests): New tests.
9052         (main): Hook them up.
9054         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
9055         More simplifications of floating-point reader.
9057         * stdio-common/Makefile (tests): Add tst-swscanf.
9058         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9059         testing.
9060         * stdio-common/tst-swscanf.c: New file.
9062 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
9064         [BZ #2633]
9065         * libio/stdio.h: Define struct _IO_FILE in global namespace.
9066         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9067         Remove using for __jmp_buf_tag.
9068         * locale/locale.h (struct lconv): Also define in std namespace.
9069         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9071         [BZ #3842]
9072         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9073         using __libc_enable_secure.
9075         [BZ #3818]
9076         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9078         [BZ #3745]
9079         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9080         of names for ellipsises.
9082         [BZ #3348]
9083         * malloc/memusage.sh: Cleanups.
9084         * debug/xtrace.sh: Quoting and trap changes.
9086 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
9088         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9090         * locale/iso-3166.def: Update entry for Serbia.
9091         * locale/iso-4217.def: Define RSD, remove CSD.
9093         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9094         and 64-bit operations.
9096         [BZ #4040]
9097         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9098         16-bit operations.
9100         * nscd/nscd.c (parse_opt): One more conversion to use send instead
9101         of writev.
9103 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
9105         [BZ #3991]
9106         * assert/assert.h (assert): Simplify.
9107         (assert_perror): Likewise.
9108         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9110         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9111         reqdata.
9113         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9114         change: don't pass NULL in place of an integer.
9116 2007-02-02  Bruno Haible  <bruno@clisp.org>
9118         [BZ #3954]
9119         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9120         Add mapping for U+327E.
9121         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9122         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9123         mapping of 0xD9 0xE8.
9124         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9125         mapping of U+327E.
9126         Reported by Jungshik Shin <jungshik@google.com>.
9128         [BZ #3955]
9129         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9130         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9131         Reported by Jungshik Shin <jungshik@google.com>.
9133 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
9135         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9136         byte variants.
9138         [BZ #4040]
9139         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9140         byte variants.  Patch mostly be tom@tommay.net.
9142 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9144         [BZ #3996]
9145         * posix/glob.c (attribute_hidden): Define if not defined.
9146         (glob): Unescape dirname, filename or username when needed and not
9147         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9148         is NULL.  Handle unescaped [ in pattern without closing ].
9149         Don't pass GLOB_CHECK down to recursive glob for directories.
9150         (__glob_pattern_type): New function.
9151         (__glob_pattern_p): Implement using __glob_pattern_type.
9152         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9153         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9154         Remove unreachable code.
9155         * posix/globtest.sh: Add a couple of new tests.
9157 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
9159         * po/ru.po: Update from translation team.
9161 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
9163         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9164         to the list of i486+ CPUs.
9165         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9167 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
9169         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9170         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9171         references.
9173 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
9175         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9177         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
9178         * resolv/res_mkquery.c: Define __res_nopt.
9179         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
9180         try adding EDNS0 record.
9181         * resolv/res_send.c (send_dg): If request failed with FORMERR and
9182         EDNS0 record was send make sure we don't try it again.
9183         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
9184         * include/resolv.h: Declare __res_nopt.
9186 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
9188         [BZ #3944]
9189         * time/strptime_l.c (__strptime_internal): Set have_mon for
9190         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
9191         have been computed from tm_yday and tm_year.  Don't crash
9192         in day_of_the_week or day_of_the_year if not have_mon
9193         and tm_mon contains bogus value.
9194         * time/Makefile (tests): Add tst-strptime3.
9195         * time/tst-strptime3.c: New test.
9197 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
9199         [BZ #3957]
9200         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9201         bit for RE_HAT_LISTS_NOT_NEWLINE.
9202         (build_charclass_op): Remove bogus comment.
9203         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9204         * posix/bug-regex27.c: New test.
9205         * posix/bug-regex28.c: New test.
9207 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
9209         * po/sv.po: Update from translation team.
9211 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
9213         * nscd/nscd_helper.c (open_socket): Minor size optimization.
9215 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
9217         * include/locale.h (__uselocale): Add libc_hidden_proto.
9218         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9220         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9221         gettimeofday.
9223 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
9225         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9226         returning.
9227         (PTR_DEMANGLE): Real definition now that it's not the same as
9228         PRT_MANGLE anymore.
9229         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9231         * string/strerror_l.c: New file.
9232         * string/Makefile (routines): Add strerror_l.
9233         * string/string.h: Declare strerror_l.
9234         * string/Versions: Export strerror_l for GLIBC_2.6.
9236 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
9238         * nscd/nscd_helper.c (open_socket): Now takes request type and key
9239         as parameter.  Construct request record.  Try sending request
9240         before the first poll use, it usually succeeds.  Adjust all
9241         callers.
9242         * nscd/nscd-client.h: Define MAXKEYLEN.
9243         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
9245 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
9247         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9248         from return value.
9249         * nscd/nscd_helper.c: Include string.h.
9250         (__nscd_cache_search): Remove const qualifier from return value.
9251         On strict alignment architectures check hash entry and data head
9252         alignment.
9253         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9254         mmapped data during GC cycle contains garbage.  If
9255         __nscd_drop_map_ref fails, decrement mapped->counter when returning
9256         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9257         dropped to 0.
9258         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9259         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9260         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9261         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9262         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9264 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
9266         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9268 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
9270         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9271         names not numbers in cfi_*.
9273 2007-01-26  Andreas Jaeger  <aj@suse.de>
9275         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9276         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9277         Correct values of PER_HPUX and PER_OSF4.
9279 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
9281         * elf/dl-minimal.c: Undefine _itoa first.
9282         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9283         * malloc/mtrace.c: Revert last change.
9284         * posix/wordexp.c: Likewise.
9286 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
9288         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9289         and __geode__ to the list of i486+ CPUs.
9290         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9292 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
9294         * stdio-common/_itoa.c: Include <limits.h>.
9295         * stdio-common/_itowa.c: Likewise.
9297 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
9299         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9300         platforms.
9301         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9302         64-bit platforms.
9303         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9304         possible.
9305         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9306         if possible.
9308         [BZ #3902]
9309         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9310         * stdio-common/Makefile (tests): Add bug17.
9311         * stdio-common/bug17.c: New file.
9313 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
9315         * iconvdata/brf.c: New file.
9316         * iconvdata/testdata/BRF: New file.
9317         * iconvdata/testdata/BRF..UTF8: New file.
9318         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9319         * iconvdata/Makefile: Add rules to build BRF.
9320         * iconvdata/TESTS: Add BRF entry.
9321         * iconvdata/gconv-modules: Likewise.
9322         * iconvdata/tst-tables.sh: Likewise.
9324 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
9326         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9327         type `long long int', not `long int'.
9328         (wcstoq): Likewise.
9330 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
9332         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9333         of values on 64-bit platforms which are too large.
9335 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
9336             Joe Kerian  <jkerian@us.us.ibm.com>
9338         [BZ #2749]
9339         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9340         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
9341         (__copysignl): Use signbit() for comparison.
9342         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9343         SET_LDOUBLE_WORDS64.
9345         [BZ #2423, #2749]
9346         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9347         (__ceill): Remove calls to fegetround(), fesetround().
9348         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9349         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9350         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9352 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
9354         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9356         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9358 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
9360         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9361         demangle pointer.
9362         * csu/libc-start.c: Likewise.
9364 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
9366         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9367         really work anyway.
9369 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9371         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
9372         users.
9373         (handle_request): Remove unnecessary tests.
9375         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9377 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
9379         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9380         workbits in semi-raw fraction.
9382         * math/test-misc.c: Add new tests.
9384 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
9386         * math/basic-test.c: Include test-skeleton.c.
9387         (TEST_TRUNC): Define.
9388         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9389         (main): Rename to ...
9390         (do_test): ...this.  Run new tests.
9391         (TEST_FUNCTION): Define.
9393 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
9394             Joe Kerian  <jkerian@us.us.ibm.com>
9396         [BZ #2749]
9397         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9398         handling for high words.
9399         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9400         and overflow for infinity.
9402 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9404         * nscd/connections.c (handle_request): Add a __builtin_expect.
9406         * nscd/connections.c (serv2db): Change type into structure which
9407         also says whether this is a request for data.  Renamed to
9408         servinfo.  All users changed.
9409         (handle_request): Much simpler test whether we should search the cache.
9411         * nscd/connections.c (handle_request): Fix thinko in selinux test
9412         invocation.
9414         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9415         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9416         it before getting dl_load_lock and then relock.
9417         (_dl_lookup_symbol_x): Pass flags to add_dependency.
9418         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9419         case we unlocked the scope.
9420         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9421         _dl_lookup_symbol_x in case we locked the scope.
9422         (_dl_profile_fixup): Likewise.
9423         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9424         set DL_LOOKUP_SCOPE_LOCK.
9426 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
9428         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9429         CFLAGS-getsrvbynpt_r.c.
9430         * nscd/getsrvbynm_r.c: New file.
9431         * nscd/getsrvbypt_r.c: New file.
9432         * nscd/nscd_getserv_r.c: New file.
9433         * nscd/servicescache.c: New file.
9434         * nscd/Makefile (routines): Add nscd_getserv_r.
9435         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9436         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9437         CFLAGS-getsrvbypt_r.c.
9438         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9439         table.  Add entries for services database.
9440         * nscd/connections.c (serv2str): Mark as const.  Add entries for
9441         services database.
9442         (dbs): Add .reset_res and servdb initialization.
9443         (serv2db): Add entries for services database.
9444         (verify_persistent_db): Accept dbnr == servdb.
9445         (invalidate_cache): Rewrite database name recognition to use a table.
9446         Call res_init() if .reset_res is set for database.
9447         (handle_request): Add code to handle services database.
9448         * nscd/gai.c: Don't define __getservbyname_r.
9449         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9450         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9451         (serv_response_header): Define.
9452         (struct datahead): Add serv_response_header member.
9453         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9454         using table.
9455         * nscd/nscd.conf: Add entries for services database.
9456         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9457         Declare serv_iov_disabled.
9458         Declare addservbyname, readdservbyname, addservbyport, and
9459         readdservbyport.
9460         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
9461         (find_db): Fix error message.
9462         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9463         __nscd_getservbyname_r, and __nscd_getservbyport_r.
9464         * nscd/selinux.c (perms): Add entries for services database.
9465         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9466         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9468         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
9469         * nscd/hstcache.c: Likewise.
9470         * nscd/pwdcache.c: Likewise.
9472         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9473         computation of keylen.
9475         * include/string.h: Only redefine strndupa if this is really for
9476         libc code.
9478 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
9480         * nscd/nscd_gethst_r.c: Minor cleanups.
9482         * nscd/connections.c (handle_request): Check selinux permissions
9483         for all non-admin commands.
9485         * sysdeps/i386/i486/bits/atomic.h: Define
9486         atomic_compare_and_exchange_val_acq,
9487         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9488         using __sync_* built-ins for gcc >= 4.1.
9489         * sysdeps/x86_64/bits/atomic.h: Likewise.
9491         [BZ #3840]
9492         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9493         and .oS.d files.
9495 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9497         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
9498         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
9499         (do_test): Check errno and exit(0) if ENOSYS.
9501 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9503         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9504         thousands separators.
9505         * stdlib/Makefile: Add rules to build and run tst-strtod4.
9506         * stdlib/tst-strtod4.c: New test.
9508         [BZ #3855]
9509         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9510         hexadecimal digit should accept just the initial 0.
9511         * stdlib/tst-strtod2.c (tests): New variable.
9512         (do_test): Run several tests rather than just one.
9514 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9516         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9517         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9519 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
9521         * io/fts.c: Make sure fts_cur is always valid after return from
9522         fts_read.
9523         Patch by Miloslav Trmac <mitr@redhat.com>.
9525 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
9527         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9528         (R_MIPS_NUM): Bump by 1.
9530 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
9532         * posix/execvp.c: Include alloca.h.
9533         (allocate_scripts_argv): Renamed to...
9534         (scripts_argv): ... this.  Don't allocate buffer here nor count
9535         arguments.
9536         (execvp): Use alloca if possible.
9537         * posix/Makefile: Add rules to build and run tst-vfork3 test.
9538         * posix/tst-vfork3.c: New test.
9540 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
9542         * string/Makefile (tst-strxfrm2-ENV): Define.
9543         * stdlib/Makefile (tst-strtod3-ENV): Define.
9545 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
9547         * posix/getconf.c: Update copyright year.
9548         * nss/getent.c: Likewise.
9549         * iconv/iconvconfig.c: Likewise.
9550         * iconv/iconv_prog.c: Likewise.
9551         * elf/ldconfig.c: Likewise.
9552         * catgets/gencat.c: Likewise.
9553         * csu/version.c: Likewise.
9554         * elf/ldd.bash.in: Likewise.
9555         * elf/sprof.c (print_version): Likewise.
9556         * locale/programs/locale.c: Likewise.
9557         * locale/programs/localedef.c: Likewise.
9558         * nscd/nscd.c (print_version): Likewise.
9559         * debug/xtrace.sh: Likewise.
9560         * malloc/memusage.sh: Likewise.
9561         * malloc/mtrace.pl: Likewise.
9562         * debug/catchsegv.sh: Likewise.
9564 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
9566         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9567         attempts.
9569 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
9571         * posix/wordexp.c: Remove some unnecessary tests.
9573 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
9575         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9576         blacklist the group till after we look it up.
9578 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
9580         * include/atomic.h (atomic_forced_read): New macro.
9582 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9584         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9586 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
9588         * nss/getXXbyYY_r.c: Include atomic.h.
9589         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9590         add atomic_write_barrier () in between.
9592         * stdlib/Makefile (tests): Add tst-makecontext.
9593         * stdlib/tst-makecontext.c: New test.
9595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9596         (__makecontext): Don't realign uc_mcontext.uc_regs.
9598 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
9600         * elf/dl-support.c: Include dl-procinfo.h.
9601         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9602         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9603         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9604         Define.
9605         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9606         hardcoded constants.
9607         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9608         PPC_PLATFORM_* macros for array designators.
9610 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
9612         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9613         names to the beginning.
9614         (_dl_powerpc_platforms): Add "power6x".
9615         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9616         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9617         (_DL_PLATFORMS_COUNT): Increase.
9618         (_dl_string_platform): Handle power6x case.
9619         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9620         PPC_FEATURE_POWER6_EXT): Define.
9621         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9623 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
9625         [BZ #3747]
9626         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9627         [-2^31 .. 2^31) range.
9628         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9629         targets.
9630         * stdlib/tst-rand48-2.c: New test.
9631         * stdlib/Makefile (tests): Add tst-rand48-2.
9633 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9635         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9637 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9639         * misc/tst-pselect.c (do_test): Make sure the helper process is
9640         terminating when the test is aborted.
9642 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9644         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9645         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9646         Handle relatime mount option.
9648         [BZ #2337]
9649         * libio/Makefile (tests): Add tst-setvbuf1.
9650         * libio/tst-setvbuf1.c: New file.
9652 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
9654         [BZ #2337]
9655         * libio/genops.c (__uflow): Fix a typo.
9656         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9657         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
9658         the narrow buffer size.
9660 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
9662         [BZ #2337]
9663         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9664         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9665         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9666         in _flags.
9667         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9668         _IO_wstr_finish): Likewise.
9669         * libio/wmemstream.c (open_wmemstream): Likewise.
9670         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9671         even for wide streams.
9673 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
9675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9676         kernel-features.h.
9678 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
9680         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9681         separators also if no non-zero digits found.
9682         * stdlib/Makefile (tests): Add tst-strtod3.
9684 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
9686         [BZ #3632]
9687         * include/features.h: Fix comment about default value for
9688         _POSIX_C_SOURCE.
9690         [BZ #3664]
9691         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9692         empty parsed strings.
9693         * stdlib/Makefile (tests): Add tst-strtod2.
9694         * stdlib/tst-strtod2.c: New file.
9696         [BZ #3673]
9697         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9698         computation.
9699         * stdlib/Makefile (tests): Add tst-atof2.
9700         * stdlib/tst-atof2.c: New file.
9702         [BZ #3674]
9703         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9704         correctly if removing trailing zero of hex-float.
9705         * stdlib/Makefile (tests): Add tst-atof1.
9706         * stdlib/tst-atof1.c: New file.
9708 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9710         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9711         Start searching for next comma at p rather than rest.
9712         * misc/Makefile (tests): Add tst-mntent2.
9713         * misc/tst-mntent2.c: New test.
9715         * misc/getusershell.c (initshells): Check for integer overflows.
9716         Make strings buffer one bigger as fgets always succeeds when second
9717         argument is 1.  Don't use calloc for shells array.  Disallow
9718         / as shell.
9720 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9722         * malloc/memusage.c: Handle realloc with new size of zero and
9723         non-NULL pointer correctly.
9724         (me): Really write first record twice.
9725         (struct entry): Make format bi-arch safe.
9726         (dest): Write out more realloc statistics.
9727         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9729 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9731         * nis/nis_subr.c (nis_getnames): Revert last change.
9733 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9735         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9736         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9737         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9738         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9739         ENOTTY.
9740         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9741         * io/tst-ttyname_r.c: New test.
9743 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9745         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9747 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9749         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9750         jump table entries.
9752 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9754         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9755         `clone' function to ensure proper unwinding stop of gdb.
9756         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9758 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9760         * nscd/nscd.init: Remove obsolete and commented-out -S option
9761         handling.
9763 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9765         [BZ #3514]
9766         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9768         [BZ #3515]
9769         * manual/string.texi (strtok): Remove duplicate paragraph.
9771 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9773         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9774         libgcc not supporting `rflags' unwinding (register # >= 17).
9776 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9778         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9779         succeeded.
9781 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9782             Jakub Jelinek  <jakub@redhat.com>
9783             Jan Kratochvil  <jan.kratochvil@redhat.com>
9785         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9786         unwind information.
9787         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9788         'restore_rt' even in the 'signal' directory.
9789         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9791 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9793         [BZ #3559]
9794         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9795         malloc crashed.  Don't allocate memory unnecessarily in each
9796         loop.
9798 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9800         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9802 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9804         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9806 2006-11-18  Bruno Haible  <bruno@clisp.org>
9808         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9809         __sysconf only after having tried to call getgroups32.
9811 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9813         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9814         addresses for IPv4 queries if they can be mapped.
9816 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9818         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9819         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9820         (signmask): Add .size directive.
9821         (othermask): Add .type directive.
9823 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9825         * po/nl.po: Update from translation team.
9827         * timezone/zdump.c: Redo fix for BZ #3137.
9829 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9831         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9832         to first_unused after parsing :include: file.
9834 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9836         * timezone/africa: Update from tzdata2006o.
9837         * timezone/antarctica: Likewise.
9838         * timezone/asia: Likewise.
9839         * timezone/australasia: Likewise.
9840         * timezone/backward: Likewise.
9841         * timezone/europe: Likewise.
9842         * timezone/iso3166.tab: Likewise.
9843         * timezone/northamerica: Likewise.
9844         * timezone/southamerica: Likewise.
9845         * timezone/zone.tab: Likewise.
9847         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9848         on machines with 64-bit time_t.
9850         * timezone/checktab.awk: Update from tzcode2006o.
9851         * timezone/ialloc.c: Likewise.
9852         * timezone/private.h: Likewise.
9853         * timezone/scheck.c: Likewise.
9854         * timezone/tzfile.h: Likewise.
9855         * timezone/tzselect.ksh: Likewise.
9856         * timezone/zdump.c: Likewise.
9857         * timezone/zic.c: Likewise.
9859         [BZ #3483]
9860         * elf/ldconfig.c (main): Call setlocale and textdomain.
9861         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9863         [BZ #3480]
9864         * manual/argp.texi: Fix typos.
9865         * manual/charset.texi: Likewise.
9866         * manual/errno.texi: Likewise.
9867         * manual/filesys.texi: Likewise.
9868         * manual/lang.texi: Likewise.
9869         * manual/maint.texi: Likewise.
9870         * manual/memory.texi: Likewise.
9871         * manual/message.texi: Likewise.
9872         * manual/resource.texi: Likewise.
9873         * manual/search.texi: Likewise.
9874         * manual/signal.texi: Likewise.
9875         * manual/startup.texi: Likewise.
9876         * manual/stdio.texi: Likewise.
9877         * manual/sysinfo.texi: Likewise.
9878         * manual/syslog.texi: Likewise.
9879         * manual/time.texi: Likewise.
9880         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9882         [BZ #3465]
9883         * sunrpc/clnt_raw.c: Minimal message improvements.
9884         * sunrpc/pm_getmaps.c: Likewise.
9885         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9886         * nis/nis_print_group_entry.c: Likewise.
9887         * locale/programs/repertoire.c: Likewise.
9888         * locale/programs/charmap.c: Likewise.
9889         * malloc/memusage.sh: Likewise.
9890         * elf/dl-deps.c: Likewise.
9891         * locale/programs/ld-collate.c: Likewise.
9892         * libio/vswprintf.c: Likewise.
9893         * malloc/memusagestat.c: Likewise.
9894         * sunrpc/auth_unix.c: Likewise.
9895         * sunrpc/rpc_main.c: Likewise.
9896         * nscd/cache.c: Likewise.
9897         * locale/programs/repertoire.c: Unify output messages.
9898         * locale/programs/charmap.c: Likewise.
9899         * locale/programs/ld-ctype.c: Likewise.
9900         * locale/programs/ld-monetary.c: Likewise.
9901         * locale/programs/ld-numeric.c: Likewise.
9902         * locale/programs/ld-time.c: Likewise.
9903         * elf/ldconfig.c: Likewise.
9904         * nscd/selinux.c: Likewise.
9905         * elf/cache.c: Likewise.
9906         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9908         [BZ #3451]
9909         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9910         change atomic.
9911         (ceil): Likewise.
9913 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9915         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9916         if N is one bigger than return value.
9917         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9918         and l1 last arguments, if buf is defined, verify the return value
9919         equals to strlen (buf) and verify no byte beyond passed length
9920         is modified.
9922 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9924         * po/sv.po: Update from translation team.
9926 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9928         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9929         noinline attribute.
9931 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9933         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9934         noinline attribute.
9936         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9937         Use __new_sys_siglist instead of _sys_siglist_internal as
9938         second macro argument.
9939         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9940         strong_alias.
9942 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9944         [BZ #3493]
9945         * posix/unistd.h (sysconf): Remove const attribute.
9947         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9948         temporary or deprecated addresses.
9949         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9951         * string/Makefile (tests): Add tst-strxfrm2.
9952         * string/tst-strxfrm2.c: New file.
9954 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9956         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9957         rather than r->r_brk.
9959 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9961         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9962         optimization even if needed > n.
9964         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9965         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9966         return false, otherwise return true.
9967         (cache_rpath): Return decompose_rpath return value.
9969 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9971         * include/libc-symbols.h (declare_symbol): Rename to...
9972         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9973         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9974         .size directive.
9975         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9976         changes.
9977         * sysdeps/gnu/siglist.c: Likewise.
9979 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9981         * sysdeps/powerpc/fpu/bits/mathinline.h
9982         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9983         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9985 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9987         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9988         Update handling of cache descriptor 0x49 for new models.
9989         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9990         Likewise.
9992 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9994         * malloc/memusage.c (dest): Reset not_me back to false after
9995         printing statistics.
9997 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9999         * configure.in: Work around ld --help change and avoid -z relro
10000         test completely if the architecture doesn't care about security.
10002 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
10004         * po/sv.po: Update from translation team.
10006 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
10008         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10009         generate compatibility version.
10011 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
10013         * configure.in: Relax -z relro requirement a bit.
10015         * po/sv.po: Update from translation team.
10017 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
10019         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10020         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10021         * elf/dl-close.c (_dl_close_worker): Likewise.
10022         * elf/dl-open.c (_dl_open_worker): Likewise.
10023         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10025 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
10027         * configure.in: Require assembler support for visibility, compiler
10028         support for visibility and aliases, linker support for various -z
10029         options.
10030         * Makeconfig: Remove conditional code which now is unnecessary.
10031         * config.h.in: Likewise.
10032         * config.make.in: Likewise.
10033         * dlfcn/Makefile: Likewise.
10034         * elf/Makefile: Likewise.
10035         * elf/dl-load.c: Likewise.
10036         * elf/rtld.c: Likewise.
10037         * include/libc-symbols.h: Likewise.
10038         * include/stdio.h: Likewise.
10039         * io/Makefile: Likewise.
10040         * io/fstat.c: Likewise.
10041         * io/fstat64.c: Likewise.
10042         * io/fstatat.c: Likewise.
10043         * io/fstatat64.c: Likewise.
10044         * io/lstat.c: Likewise.
10045         * io/lstat64.c: Likewise.
10046         * io/mknod.c: Likewise.
10047         * io/mknodat.c: Likewise.
10048         * io/stat.c: Likewise.
10049         * io/stat64.c: Likewise.
10050         * libio/stdio.c: Likewise.
10051         * nscd/Makefile: Likewise.
10052         * stdlib/Makefile: Likewise.
10053         * stdlib/atexit.c: Likewise.
10054         * sysdeps/generic/ldsodefs.h: Likewise.
10055         * sysdeps/i386/dl-machine.h: Likewise.
10056         * sysdeps/i386/sysdep.h: Likewise.
10057         * sysdeps/i386/i686/memcmp.S: Likewise.
10058         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10059         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10060         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10062         * Makerules: USE_TLS support is now default.
10063         * tls.make.c: Likewise.
10064         * csu/Versions: Likewise.
10065         * csu/libc-start.c: Likewise.
10066         * csu/libc-tls.c: Likewise.
10067         * csu/version.c: Likewise.
10068         * dlfcn/dlinfo.c: Likewise.
10069         * elf/dl-addr.c: Likewise.
10070         * elf/dl-cache.c: Likewise.
10071         * elf/dl-close.c: Likewise.
10072         * elf/dl-iteratephdr.c: Likewise.
10073         * elf/dl-load.c: Likewise.
10074         * elf/dl-lookup.c: Likewise.
10075         * elf/dl-object.c: Likewise.
10076         * elf/dl-open.c: Likewise.
10077         * elf/dl-reloc.c: Likewise.
10078         * elf/dl-support.c: Likewise.
10079         * elf/dl-sym.c: Likewise.
10080         * elf/dl-sysdep.c: Likewise.
10081         * elf/dl-tls.c: Likewise.
10082         * elf/ldconfig.c: Likewise.
10083         * elf/rtld.c: Likewise.
10084         * elf/tst-tls-dlinfo.c: Likewise.
10085         * elf/tst-tls1.c: Likewise.
10086         * elf/tst-tls10.h: Likewise.
10087         * elf/tst-tls14.c: Likewise.
10088         * elf/tst-tls2.c: Likewise.
10089         * elf/tst-tls3.c: Likewise.
10090         * elf/tst-tls4.c: Likewise.
10091         * elf/tst-tls5.c: Likewise.
10092         * elf/tst-tls6.c: Likewise.
10093         * elf/tst-tls7.c: Likewise.
10094         * elf/tst-tls8.c: Likewise.
10095         * elf/tst-tls9.c: Likewise.
10096         * elf/tst-tlsmod1.c: Likewise.
10097         * elf/tst-tlsmod13.c: Likewise.
10098         * elf/tst-tlsmod13a.c: Likewise.
10099         * elf/tst-tlsmod14a.c: Likewise.
10100         * elf/tst-tlsmod2.c: Likewise.
10101         * elf/tst-tlsmod3.c: Likewise.
10102         * elf/tst-tlsmod4.c: Likewise.
10103         * elf/tst-tlsmod5.c: Likewise.
10104         * elf/tst-tlsmod6.c: Likewise.
10105         * include/errno.h: Likewise.
10106         * include/link.h: Likewise.
10107         * include/tls.h: Likewise.
10108         * locale/global-locale.c: Likewise.
10109         * locale/localeinfo.h: Likewise.
10110         * malloc/arena.c: Likewise.
10111         * malloc/hooks.c: Likewise.
10112         * malloc/malloc.c: Likewise.
10113         * resolv/Versions: Likewise.
10114         * sysdeps/alpha/dl-machine.h: Likewise.
10115         * sysdeps/alpha/libc-tls.c: Likewise.
10116         * sysdeps/generic/ldsodefs.h: Likewise.
10117         * sysdeps/generic/tls.h: Likewise.
10118         * sysdeps/i386/dl-machine.h: Likewise.
10119         * sysdeps/ia64/dl-machine.h: Likewise.
10120         * sysdeps/ia64/libc-tls.c: Likewise.
10121         * sysdeps/mach/hurd/fork.c: Likewise.
10122         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10123         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10124         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10125         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10126         * sysdeps/s390/libc-tls.c: Likewise.
10127         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10128         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10129         * sysdeps/sh/dl-machine.h: Likewise.
10130         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10131         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10132         * sysdeps/x86_64/dl-machine.h: Likewise.
10134         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10135         split out locking and parameter checking.
10136         (_dl_close): Call _dl_close_worker after locking and checking.
10137         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10138         _dl_close.
10139         * elf/Makefile: Add rules to build and run tst-thrlock.
10140         * elf/tst-thrlock.c:  New file.
10142         [BZ #3426]
10143         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10144         reality.
10146         [BZ #3429]
10147         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
10148         we are sure we do not need it anymore for _dl_close.  Also move
10149         the asserts inside the lock region.
10150         Patch mostly by Suzuki <suzuki@in.ibm.com>.
10152 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
10154         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10155         argument.
10156         (_dl_lookup_symbol_x): Adjust caller.
10158         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10159         _ns_global_scope.
10160         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10162         * elf/dl-libc.c: Revert l_scope name changes.
10163         * elf/dl-load.c: Likewise.
10164         * elf/dl-object.c: Likewise.
10165         * elf/rtld.c: Likewise.
10166         * elf/dl-close.c (_dl_close): Likewise.
10167         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
10168         always use __rtld_mrlock_{change,done}.  Always free old scope list
10169         here if not l_scope_mem.
10170         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10171         change.  Never free scope list here.  Just __rtld_mrlock_lock before
10172         the lookup and __rtld_mrlock_unlock it after the lookup.
10173         * elf/dl-sym.c: Likewise.
10174         * include/link.h (struct r_scoperec): Remove.
10175         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
10176         with l_scope_mem and l_scoperec_lock with l_scope_lock.
10178 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
10180         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10182 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10184         * configure.in: Disable building profile libraries by default.
10186 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10188         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
10189         as signed longs, check for x_base + pos overflow.
10190         * sunrpc/Makefile (tests): Add tst-xdrmem2.
10191         * sunrpc/tst-xdrmem2.c: New test.
10193 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10195         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10196         _dl_lookup_symbol_x code.
10198 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10200         * elf/dl-runtime.c: Include sysdep-cancel.h.
10201         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10202         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
10203         instead of catomic_* macros.
10204         * elf/dl-sym.c: Include sysdep-cancel.h.
10205         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10206         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10207         * elf/dl-close.c: Include sysdep-cancel.h.
10208         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10209         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10210         * elf/dl-open.c: Include sysdep-cancel.h.
10211         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10212         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10214 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10216         [BZ #3313]
10217         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10218         fastbin rather than end of fastbin array.
10220 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10222         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10223         body macro.
10224         * sysdeps/x86_64/bits/atomic.h
10225         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10226         (catomic_decrement): Use correct body macro.
10228 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10230         * include/atomic.h: Add a unique prefix to all local variables
10231         in macros.
10232         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10234 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
10236         [BZ #3369]
10237         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10238         and 7.
10240 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
10242         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10244 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
10246         [BZ #3313]
10247         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10248         determine highest fast bin to consolidate, always look into all of
10249         them.
10250         (do_check_malloc_state): Only require for empty bins for large
10251         sizes in main arena.
10253         * libio/stdio.h: Add more __wur attributes.
10255         * elf/dl-minimal.c (realloc): Optimize last patch.
10257 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
10259         [BZ #3352]
10260         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10261         and use memcpy() if it does.
10263 2006-11-12  Andreas Jaeger  <aj@suse.de>
10265         [BZ #2510]
10266         * manual/search.texi (Hash Search Function): Clarify.
10267         (Array Search Function): Clarify.
10269 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
10271         [BZ #2830]
10272         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10273         shifting.
10274         * math/atest-exp2.c (read_mpn_hex): Likewise.
10275         * math/atest-sincos.c (main): Likewise.
10277 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10279         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10280         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10281         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10282         version GLIBC_2.6.
10283         * Versions.def: Add GLIBC_2.6 for libc.
10285         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10287         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10289 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
10291         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10293         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10295         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10296         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10298 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10300         * include/atomic.c: Define catomic_* operations.
10301         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
10302         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10303         * malloc/memusage.c: Likewise.
10304         * gmon/mcount.c: Likewise.
10305         * elf/dl-close.c: Likewise.
10306         * elf/dl-open.c: Likewise.
10307         * elf/dl-profile.c: Likewise.
10308         * elf/dl-sym.c: Likewise.
10309         * elf/dl-runtime.c: Likewise.
10310         * elf/dl-fptr.c: Likewise.
10311         * resolv/res_libc.c: Likewise.
10313 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
10315         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10316         components which lack them.
10318         * nis/nis_subr.c (nis_getnames): Make sure that we always return
10319         at least one entry consisting of the parameter concatenated with
10320         the domain.
10322 2006-10-10  Roland McGrath  <roland@frob.com>
10324         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10325         * sysdeps/mach/hurd/futimes.c: Likewise.
10326         * sysdeps/mach/hurd/lutimes.c: Likewise.
10328 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
10329             Jakub Jelinek  <jakub@redhat.com>
10331         Implement reference counting of scope records.
10332         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10333         from the list in objects which remain.  Always allocate new scope
10334         record.
10335         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10336         don't resize, allocate a new one.
10337         * elf/dl-runtime.c: Update reference counters before using a scope
10338         array.
10339         * elf/dl-sym.c: Likewise.
10340         * elf/dl-libc.c: Adjust for l_scope name change.
10341         * elf/dl-load.c: Likewise.
10342         * elf/dl-object.c: Likewise.
10343         * elf/rtld.c: Likewise.
10344         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
10345         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
10346         Add l_scoperec_lock.
10347         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10348         * sysdeps/generic/rtld-lowlevel.h: New file.
10350         * include/atomic.h: Rename atomic_and to atomic_and_val and
10351         atomic_or to atomic_or_val.  Define new macros atomic_and and
10352         atomic_or which do not return values.
10353         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10354         Various cleanups.
10355         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10357         * po/sv.po: Update from translation team.
10359 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
10361         * Versions.def: Add GLIBC_2.6 to libpthread.
10363         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10364         (versioned_symbol): Likewise.
10365         (compat_symbol): Likewise.
10367         * po/tr.po: Update from translation team.
10369 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10371         * nis/Banner: Removed.  It's been integral part forever and the
10372         author info is incomplete anyway.
10373         * libio/Banner: Likewise.
10375         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10376         code, make sure the nis_freeresult call doesn't crash and that the
10377         result is reported correctly.
10379 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
10381         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10382         when callback is NULL.
10384         * nis/Versions (libnss_nisplus): Add
10385         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10386         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10387         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10388         _nss_create_tablename): Rename to...
10389         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10390         ... these.  No longer static.
10391         (internal_setgrent): Adjust users.
10392         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10393         Don't use locking around _nss_grp_create_tablename call.
10394         * nis/nss_nisplus/nisplus-initgroups.c: New file.
10396 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10398         * version.h (VERSION): Bump to 2.5.90 for new development tree.
10400 2006-10-06  Andreas Jaeger  <aj@suse.de>
10402         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10404 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10406         * po/pl.po: Update from translation team.
10408         * nscd/nscd.c (main): Fix typo in message.
10409         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10411 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10413         [BZ #3291]
10414         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10415         errno.h, signal.h, unistd.h and sysdep-cancel.h.
10416         (__sigprocmask): Define.
10418 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
10420         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10421         used.
10423 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10425         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10426         in oldtotal and newtotal calculation.
10427         * nscd/nscd-client.h (struct mapped_database): Add datasize
10428         field.
10429         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10430         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10431         increased.
10432         (__nscd_cache_search): Add checks to make sure we never reference
10433         data beyond the current mapping.
10435 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10437         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10438         variables const to avoid compiler warnings.
10440         * io/fts.c (fts_close): Remove redundant checks.
10441         (fts_build): Likewise.
10442         (fts_palloc): Likewise.
10444         * manual/message.texi (Advanced gettext functions,
10445         Using gettextized software): Fix typos.
10447 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10449         * posix/glob.c (glob_in_dir): Add some comments and asserts to
10450         explain why there are no leaks.
10452 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
10454         * libio/wmemstream.c: Include <wchar.h>.
10455         * libio/bug-wmemstream1.c: Likewise.
10456         * libio/tst-wmemstream1.c: Likewise.
10457         * libio/tst-wmemstream2.c: Likewise.
10459         * version.h (RELEASE): Bump to 2.5.
10460         * README: Regenerated.
10462         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10464         [BZ #3273]
10465         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10466         found no group members.
10467         Patch by Petr Baudis.
10469 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
10471         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10472         assert bootstrap_map.l_tls_modid is zero.
10473         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10474         if USE___THREAD.
10476 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
10478         * libio/stdio.h: Move open_wmemstream prototype to ...
10479         * wcsmbs/wchar.h: ... here.
10481 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10483         [BZ #3252]
10484         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10485         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10486         __{,l}chown to handle the rest.
10487         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10488         fchownat syscall and __ASSUME_32BITUIDS case inline, call
10489         __{,l}chown to handle the rest.
10490         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10491         i386/fchownat.c.
10492         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10493         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10495         [BZ #3253]
10496         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10497         time, rather allocate increasingly bigger arrays of pointers, if
10498         possible with alloca, if too large with malloc.
10500 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
10502         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10504         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10506 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
10508         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10509         home addresses.
10510         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10511         IFA_F_HOMEADDRESS flag for interfaces.
10512         * include/ifaddrs.h (struct in6addrinfo): Define
10513         in6ai_homeaddress.
10515 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
10517         [BZ #3225]
10518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10519         PTR_DEMANGLE3): Define.
10520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10521         PTR_DEMANGLE3): Likewise.
10522         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10523         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10524         Likewise.
10525         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10527 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
10529         * po/libc.pot: Regenerated.
10530         * po/be.po: Updated.
10531         * po/ca.po: Likewise.
10532         * po/cs.po: Likewise.
10533         * po/da.po: Likewise.
10534         * po/de.po: Likewise.
10535         * po/el.po: Likewise.
10536         * po/en_GB.po: Likewise.
10537         * po/es.po: Likewise.
10538         * po/fi.po: Likewise.
10539         * po/fr.po: Likewise.
10540         * po/gl.po: Likewise.
10541         * po/hr.po: Likewise.
10542         * po/hu.po: Likewise.
10543         * po/ja.po: Likewise.
10544         * po/ko.po: Likewise.
10545         * po/nb.po: Likewise.
10546         * po/nl.po: Likewise.
10547         * po/pl.po: Likewise.
10548         * po/pt_BR.po: Likewise.
10549         * po/ru.po: Likewise.
10550         * po/rw.po: Likewise.
10551         * po/sk.po: Likewise.
10552         * po/sv.po: Likewise.
10553         * po/tr.po: Likewise.
10554         * po/zh_CN.po: Likewise.
10555         * po/zh_TW.po: Likewise.
10557         [BZ #3137]
10558         * iconv/iconv_prog.c (main): Fix spelling in error message.
10559         * iconv/iconvconfig.c (main): Likewise.
10560         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10561         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10562         * locale/programs/localedef.c (main): Likewise.
10563         * locale/programs/repertoire.c (repertoire_read): Likewise.
10564         * timezone/zdump.c (main): Likewise.
10565         * nscd/connections.c (handle_request): Fix spelling in log message.
10566         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10568 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
10570         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10571         interfaces.
10573 2006-09-20  Andreas Jaeger  <aj@suse.de>
10575         * math/libm-test.inc (lrint_test_upward): Fix typo.
10577 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
10579         [BZ #2592]
10580         * math/libm-test.inc (lrint_test_tonearest): New function.
10581         (lrint_test_towardzero): New function.
10582         (lrint_test_downward): New function.
10583         (lrint_test_upward): New function.
10584         (main): Run these new tests.
10585         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10586         of values near to 0.
10587         (two52): Use double not long double.
10588         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10589         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10590         (two23): Use float not double.
10591         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10592         (two23): Use float not double.
10593         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10594         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10595         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10596         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10598 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10600         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10601         Cast sp to unsigned long to avoid compiler warning.
10602         Use __makecontext_ret function instead of a trampoline on the stack.
10603         (__makecontext_ret): New function.
10604         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10606 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
10608         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10609         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10610         bits.
10612 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
10614         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10615         sure no reference to the unloaded map's search list remains in the
10616         dependency's scope.
10618 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10620         * elf/Makefile: Add rules to build and run unload7 test.
10621         * elf/unload7.c: New test.
10622         * elf/unload7mod1.c: New file.
10623         * elf/unload7mod2.c: New file.
10625 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
10627         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10628         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10629         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10630         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10631         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10632         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10633         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10634         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10635         PTRACE_GETEVENTMSG): Likewise.
10636         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10637         values.
10639 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10641         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10642         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10643         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10644         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10646 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10648         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10649         write '\0' to the fd.
10650         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10651         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10652         Change regs to unsigned long pointer from unsigned int, fix fscr
10653         offset.
10655 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10657         * io/Makefile (CFLAGS-fstatat.c): Set.
10658         (CFLAGS-fstatat64.c): Likewise.
10659         (CFLAGS-mknodat.c): Likewise.
10661         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10662         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10663         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10664         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10666 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10667             Steven Munroe  <sjmunroe@us.ibm.com>
10669         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10670         names to the beginning.  Rename "cell" to "cellbe".
10671         (_dl_powerpc_platforms): New.
10672         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10673         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10674         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10675         (_DL_HWCAP_PLATFORM): Define to new mask.
10676         (_dl_platform_string, _dl_string_platform): New functions.
10677         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10678         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10680 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
10682         [BZ #2526]
10683         * README.libm: Fix a thinko in sqrt algorithm description.
10685         [BZ #3143]
10686         * manual/string.texi (argz_delete): Fix prototype.
10687         Patch by <alpt@freaknet.org>.
10689 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
10691         [BZ #3138]
10692         * io/test-lfs.c (do_prepare): Give name_len type size_t.
10693         * io/tst-fcntl.c (do_prepare): Likewise.
10694         * posix/tst-exec.c (do_prepare): Likewise.
10695         * posix/tst-preadwrite.c (do_prepare): Likewise.
10696         * posix/tst-spawn.c (do_prepare): Likewise.
10697         * posix/tst-truncate.c (do_prepare): Likewise.
10698         * rt/tst-aio.c (do_prepare): Likewise.
10699         * rt/tst-aio64.c (do_prepare): Likewise.
10700         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10701         size_t.
10703 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10705         [BZ #2821]
10706         * time/mktime.c (guess_time_tm): Fix overflow detection.
10707         * time/Makefile (tests): Add bug-mktime1.
10708         * time/bug-mktime1.c: New file.
10710         [BZ #3189, #3188]
10711         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10712         (mremap): Likewise.
10714 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10716         [BZ #1006]
10717         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10718         Ensure relocation doesn't clobber any bits outside of the
10719         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10720         R_SPARC_HI22 and R_SPARC_H44.
10722         [BZ #2775]
10723         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10724         (long) (MINSIZE + nb - old_size) is positive.
10726         * malloc/arena.c (grow_heap): When growing bail even if new_size
10727         is negative.
10729         [BZ #3155]
10730         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10731         stack below r1.
10733 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10735         * posix/regex_internal.c (re_string_reconstruct): Handle
10736         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10737         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10738         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10739         re_string_context_at.
10740         * posix/Makefile: Add rules to build and run bug-regex26 test.
10741         * posix/bug-regex26.c: New test.
10743         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10744         rather than col_sym_free.  Move seqp declaration earlier.
10746         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10748 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10750         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10751         decl before first goto out.
10753 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10755         * Makerules (shlib.lds): If have-hash-style, put .hash section
10756         at the end of the RO segment.
10758 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10760         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10761         style hash table format is used.
10763 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10765         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10766         randomization rather than before.
10767         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10769 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10771         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10773         * malloc/malloc.c (_int_malloc): Use full list insert and not
10774         shortcut which assumes the list is empty for large requests
10775         too.
10777         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10779 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10781         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10782         and offout arguments to the prototype.
10783         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10784         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10785         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10786         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10787         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10788         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10789         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10790         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10792 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10794         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10796         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10797         dlopen parameters.
10799 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10801         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10802         only if herrno is NETDB_INTERNAL.  Handle errors other than
10803         ERANGE outside of the loops, handle TRY_AGAIN.
10805         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10806         if other's ctype category was missing.
10807         * locale/programs/ld-collate.c (collate_read): Return if
10808         copy_locale's collate category is missing.
10810 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10812         [BZ #2684]
10813         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10814         arenas if allocation failed.
10815         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10817 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10819         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10820         waste bins[0..1].
10821         (malloc_state): Reduce bins size by 2.
10822         (_int_malloc): Fix test for large enough buffer for early termination.
10823         When no unsorted block matches perfectly and an exiting block has
10824         to be split, use full list insert and not shortcut which assumes
10825         the list is empty.
10827         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10828         failure.
10830 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10832         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10833         do anything.
10835         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10836         symbol require exact match (these are PLTs).
10837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10838         (_dl_ppc64_addr_sym_match): Likewise.
10840         [BZ #2683]
10841         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10842         If symbol has a value use it.
10843         * elf/tst-dladdr1.c: New file.
10844         * elf/Makefile: Add rules to build and run tst-addr1.
10846 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10848         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10849         keeps failing and heap growth or new heap creation isn't
10850         successful either.
10851         * malloc/tst-malloc.c (main): Add new tests.
10853 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10855         [BZ #2734]
10856         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10857         as in the x86-64 code to use bswap.
10859 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10861         [BZ #2680]
10862         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10863         __USE_UNIX98.
10864         * posix/bits/unistd.h: Likewise.
10866 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10868         [BZ #2751]
10869         * string/strchr.c: Add cast to avoid warning.
10871 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10873         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10874         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10875         limit is needed to avoid the exploding of the address space
10876         requirement for secondary heaps.
10877         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10878         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10880 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10882         [BZ #3018]
10883         * Makerules (depfiles): Handle extra-test-objs the same as
10884         extra-objs.
10885         (common-mostlyclean): Likewise.
10886         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10887         instead.
10888         * elf/Makefile (extra-objs): Likewise.
10889         * stdlib/Makefile (extra-objs): Likewise.
10891 2006-08-14  Eric Blake  <ebb9@byu.net>
10893         [BZ #3044]
10894         * misc/error.h: Assume C89 or better.
10895         * misc/error.c: Likewise.
10897 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10899         [BZ #3040]
10900         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10901         __ASSUME_ATFCTS is defined.
10903 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10905         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10906         to sort in each call.
10908         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10909         is empty simply return and use next service.
10910         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10912         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10913         tells us when not finding a charmap file is an error.
10914         * locale/programs/charmap.h: Adjust charmap_read prototype.
10915         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10916         cannot find a charmap.
10917         * locale/programs/localedef.c (main): Adjust charmap_read call.
10919 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10921         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10922         sysdeps/posix/pause.c implementation instead.
10924 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10926         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10927         to EPERM.
10929 2006-08-13  Andreas Schwab  <schwab@suse.de>
10931         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10932         Don't clobber caller's LRSAVE.
10933         (_dl_prof_resolve): Likewise.
10935 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10937         [BZ #1996]
10938         * libio/memstream.c (open_memstream): Allocate initial buffer with
10939         calloc.
10940         * libio/wmemstream.c (open_wmemstream): Likewise.
10941         * libio/strops.c: Pretty printing.
10942         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10943         (enlarge_userbuf): New function.
10944         (_IO_str_seekoff): Call it if seek position is larger than current
10945         buffer.
10946         * libio/wstrops.c: Likewise.
10947         * libio/vasprintf.c: Add comment as to why we do not have to use
10948         calloc instead of malloc to allocate initial buffer.
10949         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10950         * libio/bug-memstream1.c: New file.
10951         * libio/bug-wmemstream1.c: New file.
10953 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10955         * libio/wstrops.c: Remove dead macro definitions and comments.
10956         * libio/strops.c: Likewise.
10958         [BZ #2764]
10959         * login/utmpname.c (__utmpname): Remove unnecessary test.
10961 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10963         [BZ #2832]
10964         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10965         0s from integers.
10967 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10969         [BZ #2987]
10970         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10971         for CPU clocks.
10972         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10973         setting of CPU clocks.
10975 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10977         [BZ #2841]
10978         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10979         since C99 requires the result to promote to 'int' when uint_least8_t
10980         and uint_least16_t promote to 'int'.
10982 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10984         [BZ #3013]
10985         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10986         lenght of one output field, correct bitmask creation.
10987         * locale/programs/ld-time.c: Add alignment.
10989         [BZ #2997]
10990         * misc/error.c: Add space between program name and message if file
10991         name is missing.
10993 2006-08-03  Eric Blake  <ebb9@byu.net>
10995         [BZ #2998]
10996         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10998 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
11000         * malloc/memusagestat.c: Silence warnings.
11002         * malloc/malloc.c: Dynamically size mmap treshold if the program
11003         frees mmaped blocks.
11004         Patch by Valerie Henson and Arjan van de Ven.
11006 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
11008         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11009         __USE_GNU.
11011         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11012         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11013         (DEF): Don't put the var into .gnu.linkonce.r.* section.
11014         Only provide var definitions in strtol_l (or for *ull*
11015         in strtoll_l).
11017         * stdio-common/bug16.c (tests): New array.
11018         (do_tests): Allow the first hexadecimal digit
11019         to be 1, 2, 4 or 8.  Do 3 additional tests.
11021         * sysdeps/s390/fpu/libm-test-ulps: Update.
11023         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11024         fchownat syscall if available.
11025         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11026         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11027         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11029 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11031         * nis/nis_xdr.c: Avoid some function calls.
11033 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
11034             Ulrich Drepper  <drepper@redhat.com>
11036         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11037         short cut if only one name component is stripped away.
11039 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11041         * nis/nis_call.c: Minor cleanups throughout.
11042         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
11043         (first_shoot): Add search_parent_first parameter.  Only if it is set
11044         search parent server first.
11045         If directory for table found through cold start cache is not the same
11046         as referenced in the cache, don't use it.
11047         (__nisfind_server): Take additional parameter.  Pass it on to
11048         first_shoot.
11049         (__prepare_niscall): Adjust __nisfind_server call.
11050         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11051         * nis/nis_table.c: Adjust __nisfind_server call.
11052         * nis/nis_lookup.c: Likewise.
11053         (nis_lookup): Don't loop endlessly if name is reduced to ".".
11055 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
11057         [BZ #2182]
11058         * math/s_cacosh.c: Return values from positive branch.
11059         * math/s_cacoshf.c: Likewise.
11060         * math/s_cacoshl.c: Likewise.
11062         [BZ #2883]
11063         * sysvipc/sys/msg.h: Change return value to ssize_t.
11064         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11065         * sysvipc/msgrcv.c: Likewise.
11066         * include/sys/msg.h: Likewise.
11068         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11069         test introduced in patch for bz #661.
11070         (getgrouplist): Simplify code a bit.  Don't allocate one additional
11071         element for NEWGROUPS.
11073         [BZ #2908]
11074         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11075         'f', use '1' as leading digit not '\1'.
11076         * stdio-common/Makefile (tests): Add bug16.
11077         * stdio-common/bug16.c: New file.
11079         [BZ #2914]
11080         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11081         and don't try to open it.  The patch introducing the macro
11082         contained a bug and used the same file name as the new file
11083         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
11084         this out completely.
11086         [BZ #2926]
11087         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11088         Patch by Jerry James <Jerry.James@usu.edu>.
11090         * rt/Makefile (tests): Add tst-clock2.
11091         * rt/tst-clock2.c: New file.
11093         [BZ #2978]
11094         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11095         function and its parameters and pass it to new thread.
11096         (__gai_notify): Add support for alternative waiting for completion.
11097         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11098         waiting for completion.
11099         * resolv/getaddrinfo_a.c: Likewise.
11100         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11101         waiting for completion is used.
11102         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11103         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11104         * resolv/gai_error.c: Likewise.
11105         * resolv/gai_sigqueue.c: Likewise.
11107 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
11109         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
11110         errno to EBADF and return MACH_PORT_NULL.
11112 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
11114         [BZ #2980]
11115         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
11117 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
11119         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11120         walk them instead of the symbol table.
11122 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
11124         [BZ #2098]
11125         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11126         status of NSS calls, not the number of returned entries.
11128         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11129         request_key, keyctl.
11131 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11133         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11135 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
11137         * elf/tst-auditmod1.c: Fix typo in #error.
11139 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11141         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11143         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11145 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
11147         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
11148         that the directory is empty even on non-POSIX filesystems.
11150 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11152         * elf/dl-open.c (dl_open_worker): Add branch prediction.
11154         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11155         the backend NSS module.  If backend setgrent call failed, don't have
11156         internal_setgrent fail.  Just remember this until it is needed.
11157         * nis/nss_compat/compat-pwd.c: Likewise.
11158         * nis/nss_compat/compat-spwd.c: Likewise.
11160 2006-07-30  Roland McGrath  <roland@redhat.com>
11162         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11163         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11164         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11165         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11167         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11168         (nanosleep_not_cancel): New macro.
11169         (sigsuspend_not_cancel): new macro.
11170         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11171         (do_sigsuspend): Define as inline.
11172         (__sigsuspend): Always use do_sigsuspend.
11173         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11174         * include/signal.h: Declare __sigsuspend_nocancel.
11175         * sysdeps/posix/pause.c
11176         [! NO_CANCELLATION] (__pause_nocancel): New function.
11178         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11179         * include/time.h (__nanosleep_nocancel): Likewise.
11181 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
11183         * locale/programs/localedef.c (add_to_readlist): Rename local
11184         variables to avoid confusion.
11186         * locale/programs/charmap.c (charmap_read): Emit error message if
11187         charmap couldn't be found or read.
11189 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
11191         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11192         __ASSUME_FUTEX_LOCK_PI.
11193         * include/time.h: Declare __nanosleep_nocancel.
11194         * include/unistd.h: Declare __pause_nocancel.
11196         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11197         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
11198         get the __stack_chk_fail_local definition when it's needed.
11200 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
11202         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11203         * dlfcn/bug-atexit3.c: New file.
11204         * dlfcn/bug-atexit3-lib.cc: New file.
11206         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11207         used when the namespace is not the base namespace.
11209 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
11211         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11212         (__new_exitfn): Bump it in every successful call.
11213         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11214         more exit handlers, call them right away.
11215         * stdlib/exit.h: Declare __new_exitfn_called.
11217 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
11219         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11220         calling registered handler.
11222         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11223         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11224         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11225         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11226         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11227         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11228         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11229         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11231 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
11233         * elf/dl-lookup.c (dl_new_hash): New functions.
11234         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11235         value here.  Compute new-style hash value.  Pass new hash value
11236         and reference to variable with the old value to do_lookup_x.
11237         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11238         old-style hash table.
11239         (_dl_debug_bindings): Pass new hash value and reference to variable
11240         with the old value to do_lookup_x.
11241         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11242         new-style hash value and change old-style hash value parameter to
11243         be a reference.  Reoganize functions to determine whether
11244         new-style hash table is available.  Only fall back on old-style
11245         table.  If old-style hash value is needed, compute it here.
11246         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11247         entry.
11248         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11249         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
11250         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11251         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11252         * Makeconfig: If linker supports --hash-style option add it to all
11253         linker command lines to build DSOs.
11254         * config.make.in: Define have-hash-style.
11255         * configure.in: Test whether linker supports --hash-style option.
11257         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11258         * sysdeps/generic/ldsodefs.h: Adjust prototype.
11260 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
11262         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11263         auditing.
11265         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11266         RPATH of main map twice.
11268 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
11270         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11271         look further, return original strings.
11272         (_nl_find_msg): Do not return found translation if the conversion
11273         failed.  Either signal the string is unusable or that something went
11274         wrong and the original should be used.
11276 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
11278         * string/_strerror.c (__strerror_r): Add __builtin_expect.
11280 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
11282         [BZ #2766]
11283         * misc/insremque.c (insque): Handle prev == NULL.
11284         * misc/Makefile (tests): Add tst-insremque.
11285         * misc/tst-insremque.c: New test.
11287 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
11289         [BZ #2792]
11290         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11291         conflict with DL_DST_REQUIRED.
11293 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
11295         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11296         match what Solaris does.
11298 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
11300         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11301         local_setegid instead of seteuid and setegid.
11302         * sysdeps/generic/local-setxid.h: New file.
11303         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11305         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11307         * string/Makefile (tests): Add bug-envz1.
11308         * string/bug-envz1.c: New file.
11310 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11312         * posix/regex_internal.c (re_string_skip_chars): If no character has
11313         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
11314         to the byte which couldn't be converted.
11315         (re_string_reconstruct): Don't clear valid_raw_len before calling
11316         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11317         tip_context using re_string_context_at.
11318         * posix/Makefile: Add rules to build and run bug-regex25 test.
11319         * posix/bug-regex25.c: New test.
11321 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
11323         [BZ #2703]
11324         * string/envz.c (envz_strip): Correct erroneously reversed src
11325         and dest parameters to memmove() invocation.
11327 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
11329         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11330         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11331         to make sure the database has been already invalidated.
11332         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
11333         after the cache has been invalidated.  Use pthread_mutex_lock rather
11334         than pthread_mutex_trylock if fd != -1.
11335         * nscd/connections.c (invalidate_cache): Add fd argument, write
11336         response to fd if not calling prune_cache, pass fd to prune_cache.
11337         (handle_request): Adjust invalidate_cache caller.
11338         (nscd_run): Pass -1 as fd to prune_cache.
11340 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
11342         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11343         the correct place.
11345 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
11347         * nscd/nscd.h (struct database_dyn): Add prunelock field.
11348         * nscd/cache.c (prune_cache): Take prunelock before starting the
11349         work.  Just return in case it is already taken.
11350         * nscd/connections.c (dbs): Initialize .prunelock.
11352 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
11354         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11355         copying.  No need to allocate new array for group members.  Just
11356         move the pointers and update the size.
11358         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11359         Avoid memory leak in case realloc fails.  Simplification for
11360         better code generation.
11362         Avoid deprecation warning because of libc_hidden_proto for
11363         inet6_option_alloc.
11364         * inet/inet6_option.c (option_alloc): Renamed from
11365         inet6_option_alloc.  Made static.
11366         (inet6_option_alloc): Now a simple wrapper around option_alloc.
11367         (inet6_option_append): Call option_alloc.
11368         * include/netinet/in.h: Remove libc_hidden_proto for
11369         inet6_option_alloc.
11371         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11372         for cleanup when cb!=NULL [Coverity CID 233].
11374 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11376         [BZ #2693]
11377         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11378         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11379         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11380         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11381         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11382         and inet6_rth_getaddr.
11383         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11384         array.
11385         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11386         Mark inet6_option_* interfaces as deprecated.
11387         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11388         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11389         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11390         inet6_rth_segments, and inet6_rth_getaddr.
11391         * inet/inet6_opt.c: New file.
11392         * inet/inet6_rth.c: New file.
11394         * inet/netinet/icmp6.h: Pretty printing.
11396         [BZ #2683]
11397         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11399 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
11401         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11402         doing it all here.  When server does not know the answer do not
11403         fail immediate, try parent first.
11405         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11406         overflow test.
11408 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
11410         * nis/nis_call.c (__prepare_niscall): New function.  Split out
11411         from __do_niscall.
11412         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11413         and exported.
11414         (__follow_path): New function.  Split out from nis_list.
11415         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11416         _xdr_nis_result.
11417         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11418         _xdr_nis_result.
11419         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11420         and __follow_path.
11421         * nis/Versions: Export __prepare_niscall, __create_ib_request,
11422         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11423         from libnsl for version GLIBC_PRIVATE.
11424         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11425         Remove entry parameter from _nss_nisplus_parse_pwent and
11426         _nss_nisplus_parse_grent.
11427         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11428         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11429         again.  Rewrite getpwent handling to not use nis_first_entry and
11430         nis_next_entry.  Roll out own niscall handling.
11431         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11433         * sunrpc/xdr_rec.c: Fix typo in comment.
11435 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
11437         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11438         handling.
11440         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11441         to allocate memory for my_pollfd.  Better initialization of
11442         cb_is_running.  Use TEMP_FAILURE_RETRY.
11444         * malloc/memusage.sh (memusageso): Add quotes.
11445         (memusagestat): Likewise.
11446         * debug/xtrace.sh (pcprofileso): Likewise.
11447         (pcprofiledump): Likewise.
11448         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11449         replacement.
11450         * malloc/Makefile ($(objpfx)memusage): Likewise.
11452         * nis/nis_callback.c (__nis_create_callback): Calls to
11453         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
11454         asprintf call fails.
11456         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11457         no uninitialized memory is passed to sendto.
11459 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11461         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11462         of snprintf+strdup.  Handle OOM.
11463         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11464         cb->serv together.  Remove now obsolete free calls.
11465         (__nis_destroy_callback): Remove now obsolete free call.
11467 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
11469         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11470         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11471         and ULA respectively). Set precedence for IPv4 address to 10 as
11472         defined in RFC3484 for preferring IPv6.
11473         * posix/gai.conf: Update to match the new default tables.
11475 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
11477         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11478         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11479         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11480         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11482         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11483         Removed.
11484         (init_nss_interface): Remove initialization of these variables.
11486 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11488         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11489         nis_free_directory forward to avoid duplication.
11491 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
11493         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11494         rec_dirsearch returning NULL.
11495         (first_shoot): Handle __nis_finddirectory returning NULL.
11496         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11498         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11499         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11501 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
11503         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11504         pid changed.
11506 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
11508         * include/rpc/pmap_prot.h: Mark all functions as hidden.
11510         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11511         * nscd/nscd_getgr_r.c: Likewise.
11513         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11515         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11516         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11518         * stdlib/longlong.h (__clz_tab): Mark as hidden.
11520         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11522         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11524         * include/rpc/auth.h: Mark xdr_des_block_internal and
11525         xdr_opaque_auth_internal as hidden.
11527         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11528         hidden.
11530         * include/rpc/xdr.h: Mark all _internal functions as hidden.
11532         * misc/getusershell.c (okshells): Don't use static initializers,
11533         do it dynamically.
11535         * stdlib/fmtmsg.c (keywords): Change type of len element to
11536         uint32_t to not waste space on 64bit machines.
11538         * locale/setlocale.c: Change _nl_category_names into a string.
11539         Add new _nl_category_name_idxs.  Change all users.
11540         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11541         Declare _nl_category_name_idxs.
11542         * locale/findlocale.c: Adjust for _nl_category_names change.
11543         * locale/loadlocale.c: Likewise.
11544         * locale/newlocale.c: Likewise.
11545         * intl/dcigettext.c: Likewise.
11547         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11548         (add_alias2): ...here.  New function.
11549         (__gconv_read_conf): Simplify builtin alias handling.
11550         (builtin_aliases): Convert to string to avoid relocations.
11551         * iconv/gconv_builtin.h: Add comment about correct formatting.
11553 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
11555         * resolv/res_debug.c (loc_ntoa): Make error const.
11557 2006-05-14  Andreas Schwab  <schwab@suse.de>
11559         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11561 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
11563         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11564         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11565         sizeof (cpu_set_t).
11567 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
11569         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11571         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11573         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11574         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11576         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11577         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11579         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11580         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11581         xdr_cback_data.
11583         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11584         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11585         xdr_ypupdate_args.
11587         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11588         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11590         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11591         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11593         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11594         * include/rpcsvc/nis_callback.h: New file.
11596         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11597         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11599         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11600         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11602         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11603         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11605         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11606         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11608         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11609         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11610         xdr_ypdelete_args.
11612         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
11613         __BEGIN_DECLS and __END_DECLS, the header is not installed.
11615         * nis/nis_error.c: Remove table of strings.  Use position
11616         independent mechanism.
11617         * nis/nis_error.h: New file.
11619 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
11621         * locale/programs/ld-time.c (time_finish): If wide era name or
11622         format aren't provided, set both wname and wformat to L"".
11624 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11626         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11627         results if the call was succesful.
11629         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11631         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11632         as hidden.
11634 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11636         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11638 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11640         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11641         caller makes sure this is not the case.
11642         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11644 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11646         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11647         calls.
11649         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11650         [Coverity CID 229, 230]
11652         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11653         DGETTEXT calls.
11654         (hol_help): Likewise.  [Coverity CID 226, 227]
11656         * string/argz-replace.c (__argz_replace): Unconditionally call
11657         free on SRC.  [Coverity CID 225]
11659         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11660         the return value of __nis_default_owner and __nis_default_group,
11661         it has been especially allocated.  [Coverity CID 224]
11663         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
11664         searchgroup and searchowner.  Significantly simplified.
11665         (__nis_default_owner): Remove duplication.  Do not locally copy the
11666         string before duplicating it.
11667         (__nis_default_group): Likewise.
11669         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11670         we must clear the variable before calling __nisfind_server.
11672         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11673         nis_getnames.  [Coverity CID 223]
11675         * locale/programs/locfile.c (locfile_read): Use alloca instead of
11676         xmalloc to allocate local repertoire name.  [Coverity CID 222]
11678         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11679         allocate memory for the input to add_bytes.  [Coverity CID 221]
11681         * posix/wordexp.c (w_addword): Free word if realloc fails and it
11682         was allocated here.  [Coverity CID 219, 220]
11684         * posix/getconf.c (print_all): Free confstr data after printing.
11685         [Coverity CID 218]
11687         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11688         list allocation fails.  [Coverity CID 215]
11690         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11691         [Coverity CID 213]
11693         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11694         string is NULL.  [Coverity CID 212]
11695         * argp/Makefile: Add rules to build and run bug-argp1.
11696         * argp/bug-argp1.c: New file.
11698         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11699         end of string.
11700         * stdlib/canonicalize.c (__realpath): Likewise.
11702         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11703         pointer.  [Coverity CID 206]
11705         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11706         in statically linked code.
11707         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11708         statically built code, be prepared to have no link map.
11709         [Coverity CID 205]
11711         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11712         dgettext calls. [Coverity CID 204]
11714         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11715         the one user.
11716         (uparam_names): Reduce size.  Avoid relative relocations.
11717         Moved to read-only segment.
11718         (fill_in_uparams): Update for new layout.
11720         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11721         assumed to always be != NULL. [Coverity CID 202]
11723         * argp/argp-help.c (hol_entry_help): Remove some dead code
11724         [Coverity CID 200].
11726         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11727         away a few more unconditional yperr2nss calls.
11728         (_nss_nis_getservbyname_r): Likewise.
11730 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11732         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11733         architectures.
11735         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11736         that unused memory passed to sendto is nevertheless initialized.
11738         [BZ #2499]
11739         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11740         possibly unaligned memory accesses.
11742         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11743         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11744         and __putlong respectively.  Correct buffer overflow check for
11745         NS_NOTIFY_OP.
11747         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11749         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11750         (send_dg): Rewrite error handling to be more compact and avoid
11751         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11753         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11755         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11756         instead of ns_get16.
11757         (res_queriesmatch): Likewise.  Minor optimization.
11759         [BZ #2499]
11760         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11761         __libc_res_nsend might reallocate the buffer for the answer.  In
11762         this case we have to reload the HP pointer.
11764 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11766         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11767         some branch prediction hints.
11769         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11770         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11771         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11772         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11773         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11774         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11775         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11776         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11778 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11780         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11781         by a GOT relocation to make Scrt1.o position independent.
11782         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11784         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11785         six system call parameters.
11786         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11788 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11790         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11791         malloc&bzero.
11793         * sunrpc/svc_udp.c (BZERO): Remove definition.
11794         (CALLOC): Define.
11795         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11797         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11798         (des_SPtrans): Use uint32_t type.
11799         (des_skb): Likewise.
11801         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11803 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11805         [BZ #2509]
11806         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11807         on 32-bit arches.
11809 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11811         * locale/programs/ld-address.c (address_finish): Fix one more
11812         place where the iso639 array might be accessed beyond the limits.
11814 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11816         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11817         filling it for the first time.
11819         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11820         Adjust all callers.
11821         Free res object content before returning.
11823         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11825         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11826         client->cl_auth.
11828         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11829         cleanup for initial thread, just the free call on TVP.
11831         * nscd/gai.c (__getline): Define.
11834 See ChangeLog.16 for earlier changes.